globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"en-US"});
"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["en"]=["en",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",plural,[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);;
(self.webpackChunkCommunityView=self.webpackChunkCommunityView||[]).push([[179],{9416:(qe,re,l)=>{"use strict";l.d(re,{_:()=>L});var t=l(2560),i=l(4329),r=l(4356);let L=(()=>{class M extends i.u{el;zone;set accelaTooltip(y){this._tooltipOptions.tooltipLabel=y}constructor(y,u,_,p,C,g){super(g,y,u,_,p,C),this.el=y,this.zone=u}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{switch(this.getOption("tooltipEvent")){case"hover":this.initHoverForTooltipEvent();break;case"focus":this.initFocusForTooltipEvent();break;case"hover|focus":this.initHoverForTooltipEvent(),this.initFocusForTooltipEvent()}})}initHoverForTooltipEvent(){this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener)}initFocusForTooltipEvent(){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this),this.el.nativeElement.addEventListener("focus",this.focusListener),this.el.nativeElement.addEventListener("blur",this.blurListener)}static \u0275fac=function(u){return new(u||M)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(r.b4),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(t.Lbi))};static \u0275dir=t.lG2({type:M,selectors:[["","accelaTooltip",""]],inputs:{accelaTooltip:"accelaTooltip"},features:[t.qOj]})}return M})()},3342:(qe,re,l)=>{"use strict";l.d(re,{E:()=>r});var t=l(2560),i=l(6803);let r=(()=>{class L{el;controlRef;constructor(v,y){this.el=v,this.controlRef=y}onBlur(){this.controlRef.control.setValue(this.el.nativeElement.value.trim())}static \u0275fac=function(y){return new(y||L)(t.Y36(t.SBq),t.Y36(i.a5,8))};static \u0275dir=t.lG2({type:L,selectors:[["","inputTrim",""]],hostBindings:function(y,u){1&y&&t.NdJ("blur",function(){return u.onBlur()})}})}return L})()},9440:(qe,re,l)=>{"use strict";l.r(re),l.d(re,{APOModule:()=>Vt});var t=l(4666),i=l(6328),r=l(4357),L=l(9999),M=l(2578),v=l(9129),y=l(4329),u=l(2533),_=l(7641),p=l(253),C=l(8951);class g{address;address1;address2;address3;auditDate;auditID;auditStatus;city;country;email;eventID;fax;faxCountryCode;hightestCondition;noticeConditions;isPrimary;ivrPinNumber;ivrUserNumber;mailFullName;mailAddress1;mailAddress2;mailAddress3;mailCity;mailCountry;mailState;mailZip;mappingDailyOwnerNbr;ownerFirstName;ownerFullName;ownerLastName;ownerMiddleName;ownerNumber;ownerStatus;ownerTitle;parcelLists;phone;phoneCountryCode;resCountry;sourceSeqNumber;state;taxID;templates;UID;zip}class f{auditDate;publicSourceSeqNBR;auditID;auditStatus;block;book;capID;censusTract;councilDistrict;duplicatedAPOKeys;eventID;exemptValue;gisSeqNo;hightestCondition;noticeConditions;improvedValue;inspectionDistrict;landValue;legalDesc;lot;mapNo;mapRef;page;parcel;parcelArea;parcelNumber;parcelStatus;planArea;primaryParcelFlag;range;refAddressTypes;resSubdivision;section;sourceSeqNumber;subdivision;supervisorDistrict;templates;township;tract;UID;unmaskedParcelNumber}class d{addressLine1="";addressLine2="";addressLine3;addressType;city;countryCode;effectiveDate;entityID;entityType;expirationDate;fax;faxCountryCode;fullAddress;houseNumberEnd;houseNumberStart;orderBy;phone;phoneCountryCode;recipient;state;streetDirection="";streetName="";streetPrefix="";streetSuffix="";streetSuffixDirection;unitEnd;unitStart;unitType;zip;levelPrefix;levelNumberStart;levelNumberEnd;houseNumberAlphaStart;houseNumberAlphaEnd;replaceAddressID;validateFlag;addressDescription;addressStatus;addressTypeFlag;auditDate;auditID;auditStatus;country;county;eventID;houseFractionEnd;houseFractionStart;inspectionDistrict;inspectionDistrictPrefix;neighborhoodPrefix;neighborhood;primaryFlag;secondaryRoad;serviceProviderCode;sourceFlag;sourceNumber;streetSuffixdirection;UID;resState;addressId;refAddressId;resCountryCode;resStreetDirection;resStreetSuffixdirection;resUnitType;resStreetSuffix;templates;hightestCondition;noticeConditions}var h=(()=>{return(ae=h||(h={})).Yes="Yes",ae.No="No",ae.Y="Y",ae.N="N",h;var ae})(),T=(()=>{return(ae=T||(T={})).NONE="N",ae.ADMIN="A",ae.EDIT="E",ae.SEARCH="S",ae.VIEW="V",T;var ae})(),W=l(6382);const I=(ae,Qe,A)=>{ae.sort((ie,_e)=>ie[Qe]<_e[Qe]?-1:ie[Qe]>_e[Qe]?1:0),"DESC"===A&&ae.reverse()};let N=(()=>class ae{static Address="ADDRESS";static Parcel="PARCEL";static Owner="OWNER"})();var s=l(2560),V=l(6803),Q=l(5699),me=l(9921),ue=l(2651);let Ue=(()=>class ae{static CAP_ADDRESS=0;static CAP_PARCEL=1;static CAP_OWNER=2})();var Xe=l(276);class st{publicSourceSeqNBR;addressDescription;addressLine1;addressLine2;addressStatus;addressType;addressTypeFlag;auditDate;auditID;auditStatus;city;country;countryCode;county;crossStreetNameEnd;crossStreetNameStart;distance;eventID;fullAddress;hightestCondition;houseFractionEnd;houseFractionStart;houseNumberEnd;houseNumberRangeEnd;houseNumberRangeStart;houseNumberStart;inspectionDistrict;inspectionDistrictPrefix;locationType;lot;mappingDailyAddressNbr;neighborhoodPrefix;neighborhood;noticeConditions;ownerModelLists;parcelLists;parcelNumber;primaryFlag;refAddressId;refAddressTypes;resCountryCode;resState;resStreetDirection;resStreetSuffix;resStreetSuffixdirection;resUnitType;secondaryRoad;secondaryRoadNumber;sourceFlag;sourceNumber;state;streetDirection;streetName;streetNameStart;streetNameEnd;streetPrefix;streetSuffix;streetSuffixdirection;subdivision;UID;unitEnd;unitRangeEnd;unitRangeStart;unitStart;unitType;XCoordinator;YCoordinator;zip;levelPrefix;levelNumberStart;levelNumberEnd;houseNumberAlphaStart;houseNumberAlphaEnd;houseNumberStartFrom;houseNumberStartTo;houseNumberEndFrom;houseNumberEndTo}const F=ae=>{let Qe=new Array;return Qe.push(ae.streetPrefix),Qe.push(ae.houseNumberStart?.toString()),Qe.push(ae.streetName),Qe.push(ae.streetSuffix),Qe.push(ae.unitStart),Qe.push(ae.unitEnd?` - ${ae.unitEnd}`:""),Qe.push(ae.streetDirection),Qe.push(ae.addressLine1),Qe.push(ae.addressLine2),Qe=Qe.filter(A=>A&&A.trim()),Qe&&Qe.length>0&&(Qe[Qe.length-1]=`${Qe[Qe.length-1]},`),Qe.push(ae.city?`${ae.city},`:""),Qe.push(ae.state?`${ae.state},`:""),Qe.push(ae.zip),Qe.filter(A=>A&&A.trim()).join(" ")},Ce=ae=>{const Qe=new Array;return Qe.push(ae.streetPrefix),Qe.push(ae.houseNumberStart?.toString()),Qe.push(ae.streetName),Qe.push(ae.streetSuffix),Qe.push(ae.unitStart),Qe.push(ae.unitEnd?" - "+ae.unitEnd:""),Qe.push(ae.streetDirection),Qe.push(ae.addressLine1),Qe.push(ae.addressLine2),Qe.filter(A=>A&&A.trim()).join(" ")},oe=ae=>{const Qe=new Array;return Qe.push(ae.ownerFullName??ae.mailFullName??`${ae.ownerFirstName??""} ${ae.ownerLastName??""}`),Qe.filter(A=>A&&A.trim()).join(" ").trim()},ye=ae=>{const Qe=new Array,A=new Array;return null==ae.mailAddress1?(Qe.push(null==ae.address1?"":"</br>"+ae.address1+"</br>"),Qe.push(null==ae.address2?"":ae.address2+"</br>")):(Qe.push("</br>"+ae.mailAddress1+"</br>"),Qe.push(null==ae.mailAddress2?"":ae.mailAddress2+"</br>")),A.push(ae.mailCity??ae.city),A.push(ae.mailState??ae.state),A.push(ae.mailZip??ae.zip),Qe.push(A.filter(ie=>ie&&ie.trim()).join(", ")),Qe.filter(ie=>ie&&ie.trim()).join("").trim()},we=ae=>`${oe(ae)} ${ye(ae)}`.trim(),Fe=ae=>{const Qe=new Array;return Qe.push(ae.parcelNumber),Qe.push(ae.parcelStatus),Qe.filter(A=>A&&A.trim()).join(", ")},Pt=ae=>{const Qe=new d;return Object.assign(Qe,ae),(!Qe.addressId||-1===Qe.refAddressId)&&(Qe.addressId=ae.refAddressId),Qe},wt=ae=>{const Qe=new st;return Object.assign(Qe,ae),(!Qe.refAddressId||-1===Qe.refAddressId)&&(Qe.refAddressId=ae.refAddressId),Qe};var nn=(()=>{return(ae=nn||(nn={})).Hold="HOLD",ae.Lock="LOCK",ae.Notice="NOTICE",ae.Required="REQUIRED",nn;var ae})();var ct=l(4356),Ve=l(3462),rt=l(4050);function Et(ae,Qe){1&ae&&(s.TgZ(0,"th",15)(1,"span"),s.SDv(2,16),s.qZA(),s._UZ(3,"p-sortIcon",17),s.qZA())}function Ft(ae,Qe){1&ae&&(s.TgZ(0,"th",18)(1,"span"),s.SDv(2,19),s.qZA(),s._UZ(3,"p-sortIcon",20),s.qZA())}function yt(ae,Qe){1&ae&&(s.TgZ(0,"th",21)(1,"span"),s.SDv(2,22),s.qZA(),s._UZ(3,"p-sortIcon",23),s.qZA())}function un(ae,Qe){if(1&ae&&(s.TgZ(0,"th",24),s._uU(1),s._UZ(2,"p-sortIcon",25),s.qZA()),2&ae){const A=Qe.$implicit;s.Q6J("id",A.field)("ariaLabel",A.field)("pSortableColumn",A.field),s.xp6(1),s.hij(" ",A.header," "),s.xp6(1),s.Q6J("field",A.field)}}function bt(ae,Qe){if(1&ae&&(s.TgZ(0,"tr")(1,"th",9),s._UZ(2,"p-tableHeaderCheckbox",10),s.qZA(),s.YNc(3,Et,4,0,"th",11),s.YNc(4,Ft,4,0,"th",12),s.YNc(5,yt,4,0,"th",13),s.YNc(6,un,3,5,"th",14),s.qZA()),2&ae){const A=Qe.$implicit,ie=s.oxw();s.xp6(3),s.Q6J("ngIf",ie.addStreetDescriptionColumn),s.xp6(1),s.Q6J("ngIf",ie.addOwnerNameColumn),s.xp6(1),s.Q6J("ngIf",ie.addOwnerAddressColumn),s.xp6(1),s.Q6J("ngForOf",A)}}function Jt(ae,Qe){if(1&ae&&(s.TgZ(0,"td",30,31),s._UZ(2,"icon",32),s.qZA()),2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("pTooltip",ie.getTooltip(A))("escape",!1)}}function en(ae,Qe){1&ae&&s._UZ(0,"icon",39)}function mn(ae,Qe){1&ae&&s._UZ(0,"icon",40)}function En(ae,Qe){1&ae&&s._UZ(0,"icon",41)}const Ln=function(ae,Qe,A){return{holdColumn:ae,noticeColumn:Qe,requiredColumn:A}};function dt(ae,Qe){if(1&ae&&(s.TgZ(0,"td",33)(1,"div",34),s._UZ(2,"p-tableCheckbox",35),s.YNc(3,en,1,0,"icon",36),s.YNc(4,mn,1,0,"icon",37),s.YNc(5,En,1,0,"icon",38),s.qZA()()),2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("pTooltip",ie.getTooltip(A))("escape",!1)("ngClass",s.kEZ(7,Ln,ie.hasCondition(A,ie.conditionType.Hold),ie.hasCondition(A,ie.conditionType.Notice),ie.hasCondition(A,ie.conditionType.Required))),s.xp6(2),s.Q6J("value",A),s.xp6(1),s.Q6J("ngIf",ie.hasCondition(A,ie.conditionType.Hold)),s.xp6(1),s.Q6J("ngIf",ie.hasCondition(A,ie.conditionType.Notice)),s.xp6(1),s.Q6J("ngIf",ie.hasCondition(A,ie.conditionType.Required))}}function Ot(ae,Qe){if(1&ae&&(s.TgZ(0,"td"),s._uU(1),s.qZA()),2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.xp6(1),s.Oqu(ie.getRefAddressDescription(A))}}function $(ae,Qe){if(1&ae&&(s.TgZ(0,"td"),s._uU(1),s.qZA()),2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.xp6(1),s.Oqu(ie.getOwnerNameDescription(A))}}function pe(ae,Qe){if(1&ae&&(s.TgZ(0,"td"),s._uU(1),s.qZA()),2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.xp6(1),s.Oqu(ie.getOwnerAddressDescription(A))}}function Ee(ae,Qe){if(1&ae&&(s.TgZ(0,"td"),s._uU(1),s.qZA()),2&ae){const A=Qe.$implicit,ie=s.oxw().$implicit;s.xp6(1),s.Oqu(ie[A.field])}}function Ge(ae,Qe){if(1&ae&&(s.TgZ(0,"tr"),s.YNc(1,Jt,3,2,"td",26),s.YNc(2,dt,6,11,"td",27),s.YNc(3,Ot,2,1,"td",28),s.YNc(4,$,2,1,"td",28),s.YNc(5,pe,2,1,"td",28),s.YNc(6,Ee,2,1,"td",29),s.qZA()),2&ae){const A=Qe.$implicit,ie=Qe.columns,_e=s.oxw();s.xp6(1),s.Q6J("ngIf",_e.hasCondition(A,_e.conditionType.Lock)),s.xp6(1),s.Q6J("ngIf",!_e.hasCondition(A,_e.conditionType.Lock)),s.xp6(1),s.Q6J("ngIf",_e.addStreetDescriptionColumn),s.xp6(1),s.Q6J("ngIf",_e.addOwnerNameColumn),s.xp6(1),s.Q6J("ngIf",_e.addOwnerAddressColumn),s.xp6(1),s.Q6J("ngForOf",ie)}}function Zt(ae,Qe){if(1&ae&&(s.TgZ(0,"div",42),s.SDv(1,43),s.qZA()),2&ae){const A=s.oxw();s.xp6(1),s.pQV(null==A.selectedData?null:A.selectedData.length),s.QtT(1)}}function tn(ae,Qe){if(1&ae&&(s.TgZ(0,"tr")(1,"td"),s.SDv(2,44),s.qZA()()),2&ae){const A=Qe.$implicit;s.xp6(1),s.uIk("colspan",A.length)}}function on(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-secondary",45),s.NdJ("click",function(_e){s.CHM(A);const Ke=s.oxw();return s.KtG(Ke.altClick(_e))}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("label",A.alternateActionLabel)}}let Un=(()=>{class ae{sectionTitle;searchResults;columnData;addStreetDescriptionColumn=!1;addOwnerNameColumn=!1;addOwnerAddressColumn=!1;alternateActionLabel="";showAddButton=!0;cancelAction=new s.vpe;submitAction=new s.vpe;altAction=new s.vpe;selectedData;conditionType=nn;constructor(){}ngOnInit(){}getRefAddressDescription(A){return Ce(A)}getOwnerNameDescription(A){return oe(A)}getOwnerAddressDescription(A){return ye(A).split("</br>").join(" ")}sortColumn(A){A.data.sort((ie,_e)=>{let Ke=0;if("description"===A.field){const gt=Ce(ie),_n=Ce(_e);Ke=gt.localeCompare(_n)}else if("OwnerName"===A.field){const gt=oe(ie),_n=oe(_e);Ke=gt.localeCompare(_n)}else if("OwnerAddress"===A.field){const gt=ye(ie),_n=ye(_e);Ke=gt.localeCompare(_n)}else{const gt=ie[A.field],_n=_e[A.field];Ke=null==gt&&null!=_n?-1:null!=gt&&null==_n?1:null==gt&&null==_n?0:"string"==typeof gt&&"string"==typeof _n?gt.localeCompare(_n):gt<_n?-1:gt>_n?1:0}return A.order*Ke})}hasCondition(A,ie){let _e=!1;return A&&A.hasOwnProperty("hightestCondition")&&(_e=A.hightestCondition?.impactCode.toUpperCase()===ie),_e}cancelClick(A){this.cancelAction.emit()}altClick(A){this.altAction.emit()}submitRows(){this.submitAction.emit(this.selectedData),this.selectedData=[]}getTooltip(A){return A.hightestCondition?(ae=>`<div>\n        <span>${"There is a "}${ae.hightestCondition.impactCode} on ${(ae=>ae.hasOwnProperty("addressId")?F(ae):ae.hasOwnProperty("parcelNumber")?Fe(ae):ae.hasOwnProperty("ownerNumber")?we(ae):ae.hasOwnProperty("Name")?ae.Name:"Record")(ae)}\n            as of ${ae.hightestCondition.issuedDate}</span>\n        <span>${ae.hightestCondition.conditionStatus}</span>\n        <span>${ae.hightestCondition.conditionComment}</span>\n    </div>`)(A):Object.getPrototypeOf(A)===d.prototype?F(A):Object.getPrototypeOf(A)===f.prototype?Fe(A):Object.getPrototypeOf(A)===g.prototype?we(A):"Select a Record Column"}static \u0275fac=function(ie){return new(ie||ae)};static \u0275cmp=s.Xpm({type:ae,selectors:[["apo-search-results-panel"]],inputs:{sectionTitle:"sectionTitle",searchResults:"searchResults",columnData:"columnData",addStreetDescriptionColumn:"addStreetDescriptionColumn",addOwnerNameColumn:"addOwnerNameColumn",addOwnerAddressColumn:"addOwnerAddressColumn",alternateActionLabel:"alternateActionLabel",showAddButton:"showAddButton"},outputs:{cancelAction:"cancelAction",submitAction:"submitAction",altAction:"altAction"},decls:9,vars:9,consts:function(){let A,ie,_e,Ke,gt,_n,An,mi;return A="Select",ie="SELECT",_e="Address",Ke="Name",gt="Address",_n="SELECT",An=" Selected Items: " + "\ufffd0\ufffd" + " ",mi=" No records found ",[[1,"accela-theme"],["responsiveLayout","scroll","styleClass","p-datatable-striped",3,"columns","value","rows","selection","paginator","loading","customSort","selectionChange","sortFunction"],["pTemplate","header"],["pTemplate","body"],["pTemplate","summary"],["pTemplate","emptymessage"],[1,"search-footer","p-mt-3"],["type","button","accessButton","n","class","p-button-outlined p-mr-5","pRipple","",3,"label","click",4,"ngIf"],["type","submit","value","submit","label",A,"pRipple","",1,"createBtn",3,"disabled","click"],["id","selectColumn",1,"selectColumn"],["ariaLabel",ie],["id","descriptionCol","pSortableColumn","description",4,"ngIf"],["id","ownerNameCol","pSortableColumn","OwnerName",4,"ngIf"],["id","ownerAddressCol","pSortableColumn","OwnerAddress",4,"ngIf"],["class","SuggestionResultsTH",3,"id","ariaLabel","pSortableColumn",4,"ngFor","ngForOf"],["id","descriptionCol","pSortableColumn","description"],_e,["field","description"],["id","ownerNameCol","pSortableColumn","OwnerName"],Ke,["field","OwnerName"],["id","ownerAddressCol","pSortableColumn","OwnerAddress"],gt,["field","OwnerAddress"],[1,"SuggestionResultsTH",3,"id","ariaLabel","pSortableColumn"],[3,"field"],["class","selectColumn lockedColumn",3,"pTooltip","escape",4,"ngIf"],["class","selectColumn",3,"pTooltip","escape","ngClass",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"selectColumn","lockedColumn",3,"pTooltip","escape"],["conditionCol",""],["aria-label","Locked",1,"accelicons","accelicons-lock-small"],[1,"selectColumn",3,"pTooltip","escape","ngClass"],[1,"checkboxCell"],["ariaLabel",_n,3,"value"],["aria-label","Hold","class","accelicons accelicons-hand-small",4,"ngIf"],["aria-label","Notice","class","accelicons accelicons-alert-small",4,"ngIf"],["aria-label","Required","class","accelicons accelicons-alert-small",4,"ngIf"],["aria-label","Hold",1,"accelicons","accelicons-hand-small"],["aria-label","Notice",1,"accelicons","accelicons-alert-small"],["aria-label","Required",1,"accelicons","accelicons-alert-small"],[2,"text-align","left"],An,mi,["type","button","accessButton","n","pRipple","",1,"p-button-outlined","p-mr-5",3,"label","click"]]},template:function(ie,_e){1&ie&&(s.TgZ(0,"div",0)(1,"p-table",1),s.NdJ("selectionChange",function(gt){return _e.selectedData=gt})("sortFunction",function(gt){return _e.sortColumn(gt)}),s.YNc(2,bt,7,4,"ng-template",2),s.YNc(3,Ge,7,6,"ng-template",3),s.YNc(4,Zt,2,1,"ng-template",4),s.YNc(5,tn,3,1,"ng-template",5),s.qZA(),s.TgZ(6,"div",6),s.YNc(7,on,1,1,"accela-button-secondary",7),s.TgZ(8,"accela-button-primary",8),s.NdJ("click",function(){return _e.submitRows()}),s.qZA()()()),2&ie&&(s.xp6(1),s.Q6J("columns",_e.columnData)("value",_e.searchResults)("rows",20)("selection",_e.selectedData)("paginator",!0)("loading",!_e.searchResults)("customSort",!0),s.xp6(6),s.Q6J("ngIf",""!==_e.alternateActionLabel&&_e.showAddButton),s.xp6(1),s.Q6J("disabled",(null==_e.selectedData?null:_e.selectedData.length)<=0))},dependencies:[ct.jx,t.mk,t.sg,t.O5,Ve.s,rt.o,M.iA,M.lQ,M.fz,M.UA,M.Mo,y.u],styles:["th[_ngcontent-%COMP%]:not(th:nth-child(1)){min-width:-moz-fit-content;min-width:fit-content}  .p-datatable .p-datatable-tbody>tr{background-color:#fff}  .p-datatable .p-datatable-tbody>tr:nth-child(odd){background-color:#f9fafb}.search-footer[_ngcontent-%COMP%]{display:flex;flex:1 1 auto}  .createBtn{margin-left:auto}  .createBtn button{margin-left:auto;background-color:#23653d;border:1px solid rgb(35,101,61)}.checkboxCell[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:flex-start;flex-direction:row;align-items:stretch;justify-content:flex-start}.accelicons[_ngcontent-%COMP%]{margin-left:1em;align-items:flex-end;flex-direction:row;align-items:stretch;justify-content:flex-end}  .p-datatable .p-datatable-footer{border:none}.accela-theme[_ngcontent-%COMP%]   .p-datatable[_ngcontent-%COMP%]   .p-datatable-footer[_ngcontent-%COMP%]{background-color:#fff}.accela-theme[_ngcontent-%COMP%]   .p-datatable[_ngcontent-%COMP%]   .p-datatable-thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{color:gray}  .p-datatable .p-datatable-tbody>tr>td.lockedColumn{border-left:5px solid #FF5B76}  .p-datatable .p-datatable-tbody>tr>td.holdColumn{border-left:5px solid #EE7125}  .p-datatable .p-datatable-tbody>tr>td.noticeColumn{border-left:5px solid #FFC900}  .p-datatable .p-datatable-tbody>tr>td.requiredColumn{border-left:5px solid #FAB600}@media only screen and (max-device-width: 480px),(max-width: 480px){  .p-dialog-content .search-footer{display:grid}  .createBtn{float:left;margin-top:1em;margin-left:unset}}@media screen and (max-width: 480px){.SuggestionResultsTH[_ngcontent-%COMP%]{width:10rem}  .p-dialog,   .p-datatable-wrapper{width:100%;overflow-y:auto}}\n/*# sourceMappingURL=apo-search-results-panel.component.css.map*/"]})}return ae})();var vn=l(5583),zt=l(8987),Ht=l(3158),pt=l(635),Dt=l(8286),ot=l(508);let Be=(()=>{class ae{http;apiRef;errorHandler;headers;apiServer;constructor(A,ie,_e){this.http=A,this.apiRef=ie,this.errorHandler=_e,this.headers=new zt.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/GlobalSearch/"}getGeneralAPOSearchResults(A,ie,_e){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}APOSearch`,[{Key:"queryText",Value:A},{Key:"apoEntityType",Value:ie},{Key:"sort",Value:""},{Key:"isAsc",Value:"true"},{Key:"isFilter",Value:"false"},{Key:"module",Value:_e}])).pipe((0,Ht.K)(this.errorHandler.handleError))}getSelectedAddressAPOResults(A,ie){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}GetAPOSuggestionsList`,[{Key:"moduleName",Value:ie}]),A).pipe((0,Ht.K)(this.errorHandler.handleError))}getRelatedAPOfromAddresses(A,ie){const _e={APOEntityType:"",AddressList:A,ParcelList:null,OwnerList:null};return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}GetAssociatedAPO`,[{Key:"moduleName",Value:ie}]),_e).pipe((0,pt.U)(Ke=>JSON.parse(Ke.toString()))).pipe((0,Ht.K)(this.errorHandler.handleError))}getRefAddressModelByKey(A){const ie=[{Key:"refAddressId",Value:A.refAddressId?.toString()},{Key:"sourceNumber",Value:A.sourceNumber?.toString()}];return A.UID&&ie.push({Key:"UID",Value:A.UID}),this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetRefAddressByKey`,ie)).pipe((0,Ht.K)(this.errorHandler.handleError))}getLookupResultsFromAddressModel(A){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}GetLookupResultsFromAddressModel`),A).pipe((0,pt.U)(ie=>JSON.parse(JSON.stringify(ie))),(0,Ht.K)(this.errorHandler.handleError))}getRelatedAPOfromParcels(A,ie){const _e={APOEntityType:"",AddressList:null,ParcelList:A,OwnerList:null};return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}GetAssociatedAPO`,[{Key:"moduleName",Value:ie}]),_e).pipe((0,pt.U)(Ke=>JSON.parse(Ke.toString()))).pipe((0,Ht.K)(this.errorHandler.handleError))}getLookupResultsFromParcelModel(A){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}GetLookupResultsFromParcelModel`),A).pipe((0,Ht.K)(this.errorHandler.handleError))}getRelatedAPOfromOwners(A,ie){const _e={APOEntityType:"",AddressList:null,ParcelList:null,OwnerList:A};return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}GetAssociatedAPO`,[{Key:"moduleName",Value:ie}]),_e).pipe((0,pt.U)(Ke=>JSON.parse(Ke.toString()))).pipe((0,Ht.K)(this.errorHandler.handleError))}getLookupResultsFromOwnerModel(A){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}GetLookupResultsFromOwnerModel`),A).pipe((0,Ht.K)(this.errorHandler.handleError))}static \u0275fac=function(ie){return new(ie||ae)(s.LFG(zt.eN),s.LFG(Dt.q),s.LFG(ot.k))};static \u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"})}return ae})();var at=l(7874),Gt=l(4227),Ut=l(2527),gn=l(970),Mn=l(8244),kn=l(9461),Rn=l(3245),Fn=l(1867),ut=l(9591),Je=l(7133),Y=l(563),le=l(3933),Oe=l(2869),nt=l(8616),Xt=l(9350);const Dn=["input"];function St(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-text-input",5),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("controlRef",A.value)("requiredValidationMsg","Must enter a")("readonlyMode",ie.readonlyMode)("parentFormRef",ie.controlGroup)}}function Vn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-textarea-input",5),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("controlRef",A.value)("requiredValidationMsg","Must enter a")("readonlyMode",ie.readonlyMode)("parentFormRef",ie.controlGroup)}}function He(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-password-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function ht(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-phone-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function Ze(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-dropdown-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function Kt(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-checkbox-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function Hn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-email-input",7),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")("emailValidationMsg","Must enter a Valid Email address for ")}}function ei(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-date-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function ai(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-ssn-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function xn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-zip-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function ni(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-fein-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function Oi(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-radio-group",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must Select a")}}function so(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-number-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function Ii(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-money-input",6),s.NdJ("focusChange",function(){s.CHM(A);const _e=s.oxw().$implicit,Ke=s.oxw();return s.KtG(Ke.onFocusChange(_e.value))}),s.qZA()}if(2&ae){const A=s.oxw().$implicit,ie=s.oxw();s.Q6J("parentFormRef",ie.controlGroup)("controlRef",A.value)("readonlyMode",ie.readonlyMode)("requiredValidationMsg","Must enter a")}}function yo(ae,Qe){if(1&ae&&(s.TgZ(0,"div",1),s.YNc(1,St,1,4,"accela-text-input",2),s.YNc(2,Vn,1,4,"accela-textarea-input",2),s.YNc(3,He,1,4,"accela-password-input",3),s.YNc(4,ht,1,4,"accela-phone-input",3),s.YNc(5,Ze,1,4,"accela-dropdown-input",3),s.YNc(6,Kt,1,4,"accela-checkbox-input",3),s.YNc(7,Hn,1,5,"accela-email-input",4),s.YNc(8,ei,1,4,"accela-date-input",3),s.YNc(9,ai,1,4,"accela-ssn-input",3),s.YNc(10,xn,1,4,"accela-zip-input",3),s.YNc(11,ni,1,4,"accela-fein-input",3),s.YNc(12,Oi,1,4,"accela-radio-group",3),s.YNc(13,so,1,4,"accela-number-input",3),s.YNc(14,Ii,1,4,"accela-money-input",3),s.qZA()),2&ae){const A=Qe.$implicit,ie=s.oxw();s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Textbox&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.TextArea&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Password&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Phone&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Dropdown&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Checkbox&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Email&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Date&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.SSN&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Zip&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.FEIN&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.RadioGroup&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Number&&!(null!=A.value.controlData&&A.value.controlData.hidden)),s.xp6(1),s.Q6J("ngIf",(null==A.value.controlData?null:A.value.controlData.type)===ie.controlTypes.Money&&!(null!=A.value.controlData&&A.value.controlData.hidden))}}let ao=(()=>{class ae{readonlyMode=!1;controlGroup;controlOnBlur=new s.vpe;controlTypes=Q.h;set inputElRef(A){}ngAfterViewInit(){this.inputElRef&&this.inputElRef.nativeElement.focus()}unsorted(){return 0}onFocusChange(A){this.controlOnBlur.emit(A)}static \u0275fac=function(ie){return new(ie||ae)};static \u0275cmp=s.Xpm({type:ae,selectors:[["search-page-layout"]],viewQuery:function(ie,_e){if(1&ie&&s.Gf(Dn,5),2&ie){let Ke;s.iGM(Ke=s.CRH())&&(_e.inputElRef=Ke.first)}},inputs:{readonlyMode:"readonlyMode",controlGroup:"controlGroup"},outputs:{controlOnBlur:"controlOnBlur"},decls:2,vars:4,consts:[["class","controlsSection p-jc-centered p-pt-0 p-pb-0 p-pr-1 p-pl-1 col-6",4,"ngFor","ngForOf"],[1,"controlsSection","p-jc-centered","p-pt-0","p-pb-0","p-pr-1","p-pl-1","col-6"],[3,"controlRef","requiredValidationMsg","readonlyMode","parentFormRef","focusChange",4,"ngIf"],[3,"parentFormRef","controlRef","readonlyMode","requiredValidationMsg","focusChange",4,"ngIf"],[3,"parentFormRef","controlRef","readonlyMode","requiredValidationMsg","emailValidationMsg","focusChange",4,"ngIf"],[3,"controlRef","requiredValidationMsg","readonlyMode","parentFormRef","focusChange"],[3,"parentFormRef","controlRef","readonlyMode","requiredValidationMsg","focusChange"],[3,"parentFormRef","controlRef","readonlyMode","requiredValidationMsg","emailValidationMsg","focusChange"]],template:function(ie,_e){1&ie&&(s.YNc(0,yo,15,14,"div",0),s.ALo(1,"keyvalue")),2&ie&&s.Q6J("ngForOf",s.xi3(1,1,null==_e.controlGroup?null:_e.controlGroup.controls,_e.unsorted))},dependencies:[t.sg,t.O5,Gt.D,Ut.f,gn.T,Mn.a,kn.R,Rn._,Fn.i,ut.H,Je.X,Y.r,le.v,Oe.K,nt.u,Xt.t,t.Nd],styles:[".controlsSection[_ngcontent-%COMP%]{min-width:250px}@media only screen and (max-device-width: 660px),(max-width: 600px){.controlsSection[_ngcontent-%COMP%]{min-width:100%;width:100%}}"]})}return ae})();var Fi=l(9416);const Di=["searchResultsPanel"];function pn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"search-page-layout",11),s.NdJ("controlOnBlur",function(_e){s.CHM(A);const Ke=s.oxw();return s.KtG(Ke.invokeExpressionForExecute(_e))}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("controlGroup",A.addressForm)("readonlyMode",A.mode===A.pageLayoutModes.VIEW)}}function $n(ae,Qe){if(1&ae&&s._UZ(0,"aca-admin-page-layout",12),2&ae){const A=s.oxw();s.Q6J("module",A.module)("viewId",A.viewId)("permissionLevel",A.permissionLevel)("permissionValue",A.permissionValue)}}function bi(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-primary",13),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.saveChangesToModel())}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("disabled",A.processing)}}function no(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-primary",14),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.close())}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("disabled",A.processing)}}function ro(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-primary",15),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.performSearch())}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("disabled",A.processing)}}function _i(ae,Qe){if(1&ae&&(s.tHW(0,17,1),s._UZ(1,"span"),s.N_p()),2&ae){const A=s.oxw(2);s.xp6(1),s.pQV(A.addressMax),s.QtT(0)}}function zi(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"div")(1,"h2",16),s.tHW(2,17),s.YNc(3,_i,2,1,"span",18),s.N_p(),s.qZA(),s._UZ(4,"div",19),s.TgZ(5,"button",20),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.backToSearch())}),s.qZA()()}if(2&ae){const A=s.oxw();s.xp6(3),s.Q6J("ngIf",A.addressMax>1),s.xp6(1),s.Q6J("innerHTML",A.editTermsText,s.oJD)("escape",!1)("accelaTooltip",A.editTermsText)}}let Pn=(()=>{class ae{formBuilder;messageService;datePipe;expressionService;pageLayoutService;apoSearchService;model;module;mode;addressType="";addressMax;saveChanges=new s.vpe;closeDialog=new s.vpe;uiBlock=new s.vpe;searchResultsPanelComponent;addressForm;controlAddrModelMap;onLoadExpression;onSubmitExpression;onExecuteExpressions;executeFields=new Array;originalAPOTemplatesdata;pageLayoutModes=T;processing=!1;searchResults;editTermsText;showSearchResults;searchColumns=[{field:"city",header:"City"},{field:"state",header:"State"},{field:"zip",header:"Zip"}];viewId=ue.fA.AddressEdit;permissionLevel=ue.U.APO;permissionValue=N.Address;destroyActions=new p.x;constructor(A,ie,_e,Ke,gt,_n){this.formBuilder=A,this.messageService=ie,this.datePipe=_e,this.expressionService=Ke,this.pageLayoutService=gt,this.apoSearchService=_n,this.addressForm=this.formBuilder.group({}),this.populateControlAddrModelMap(),this.createAddressFormInstance()}ngOnInit(){this.processing=!0,this.uiBlock.emit(!0),this.fetchExpressions()}ngAfterViewInit(){}populateControlAddrModelMap(){this.controlAddrModelMap=new Map,this.controlAddrModelMap.set("ddlCountry","country"),this.controlAddrModelMap.set("txtStreetNo","houseNumberStart"),this.controlAddrModelMap.set("txtStartFraction","houseFractionStart"),this.controlAddrModelMap.set("txtStreetEnd","houseNumberEnd"),this.controlAddrModelMap.set("txtEndFraction","houseFractionEnd"),this.controlAddrModelMap.set("ddlStreetDirection","streetDirection"),this.controlAddrModelMap.set("txtPrefix","streetPrefix"),this.controlAddrModelMap.set("txtStreetName","streetName"),this.controlAddrModelMap.set("ddlStreetSuffix","streetSuffix"),this.controlAddrModelMap.set("ddlStreetSuffixDirection","streetSuffixDirection"),this.controlAddrModelMap.set("ddlUnitType","unitType"),this.controlAddrModelMap.set("txtUnitNo","unitStart"),this.controlAddrModelMap.set("txtUnitEnd","unitEnd"),this.controlAddrModelMap.set("txtSecondaryRoad","secondaryRoad"),this.controlAddrModelMap.set("txtSecondaryRoadNo","secondaryRoadNumber"),this.controlAddrModelMap.set("txtNeighborhoodP","neighborhoodPrefix"),this.controlAddrModelMap.set("txtNeighborhood","neighborhood"),this.controlAddrModelMap.set("txtDescription","addressDescription"),this.controlAddrModelMap.set("txtDistance","distance"),this.controlAddrModelMap.set("txtXCoordinator","XCoordinator"),this.controlAddrModelMap.set("txtYCoordinator","YCoordinator"),this.controlAddrModelMap.set("txtInspectionDP","inspectionDistrictPrefix"),this.controlAddrModelMap.set("txtInspectionD","inspectionDistrict"),this.controlAddrModelMap.set("txtCity","city"),this.controlAddrModelMap.set("txtCounty","county"),this.controlAddrModelMap.set("txtState","state"),this.controlAddrModelMap.set("txtZip","zip"),this.controlAddrModelMap.set("txtStreetAddress","fullAddress"),this.controlAddrModelMap.set("txtAddressLine1","addressLine1"),this.controlAddrModelMap.set("txtAddressLine2","addressLine2"),this.controlAddrModelMap.set("ddlAddressTypeFlag","addressType"),this.controlAddrModelMap.set("addressTypeFlag","addressTypeFlag"),this.controlAddrModelMap.set("txtLevelPrefix","levelPrefix"),this.controlAddrModelMap.set("txtLevelNbrStart","levelNumberStart"),this.controlAddrModelMap.set("txtLevelNbrEnd","levelNumberEnd"),this.controlAddrModelMap.set("txtHouseAlphaStart","houseNumberAlphaStart"),this.controlAddrModelMap.set("txtHouseAlphaEnd","houseNumberAlphaEnd"),this.controlAddrModelMap.set("txtStreetNameStart","streetNameStart"),this.controlAddrModelMap.set("txtStreetNameEnd","streetNameEnd"),this.controlAddrModelMap.set("txtCrossStreetNameStart","crossStreetNameStart"),this.controlAddrModelMap.set("txtCrossStreetNameEnd","crossStreetNameEnd"),this.controlAddrModelMap.set("txtAddressUID","UID")}createAddressFormInstance(){this.processing=!0,this.uiBlock.emit(!0),this.addressForm=this.formBuilder.group({}),this.pageLayoutService.getDynamicFormData(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.processing=!0,A.forEach(ie=>{if(this.mode===T.ADMIN||ie.display){const _e=new V.NI(ie.value);this.pageLayoutService.processAccelaControl(ie,_e),this.model?ie.templateField||this.isTemplateField(ie.name)?_e.patchValue(this.getTemplateAtrributeVal(ie.name)):_e.patchValue(this.model[this.controlAddrModelMap.get(ie.name)]):_e.patchValue(null),ie.display&&ie.type!==Q.h.Separator&&this.addressForm.addControl(ie.name,_e)}}),this.handleOnLoadExpression(),this.mode!==T.ADMIN&&(this.processing=!0,this.uiBlock.emit(!0),this.expressionService.getExpressionJsScriptForExecute(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(ie=>{ie&&ie.length>0&&(this.onExecuteExpressions=ie,ie.forEach(_e=>{Object.keys(_e.inputFields).forEach(Ke=>{_e.inputFields[Ke].forEach(gt=>{this.addressForm.get(gt)&&!(this.executeFields.findIndex(An=>An===gt)>=0)&&this.executeFields.push(gt)})})})),this.processing=!1,this.uiBlock.emit(!1)},ie=>{throw this.processing=!1,this.uiBlock.emit(!1),ie}))},A=>{this.messageService.clear(),this.messageService.add({severity:"error",summary:A,closable:!1}),this.processing=!1,this.uiBlock.emit(!1)}),this.getOriginalAPOTemplatesdata()}updateAddressFormInstance(A){this.model=A,Object.keys(this.addressForm.controls).forEach(ie=>{this.isTemplateField(ie)?this.addressForm.controls[ie].patchValue(this.getTemplateAtrributeVal(ie)):this.addressForm.controls[ie]&&this.addressForm.controls[ie].patchValue(this.model[this.controlAddrModelMap.get(ie)])}),this.handleOnLoadExpression()}fetchExpressions(){this.expressionService.getExpressionJsScriptOnLoad(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.onLoadExpression=A,this.processing=!1,this.uiBlock.emit(!1)},A=>{throw this.processing=!1,this.uiBlock.emit(!1),A}),this.expressionService.getExpressionJsScriptOnSubmit(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.onSubmitExpression=A})}invokeExpressionForExecute(A){this.executeFields.findIndex(ie=>ie===A.controlData.name)>=0&&this.onExecuteExpressions.forEach(ie=>{this.executeFields.forEach(_e=>{const Ke=this.addressForm.get(_e);if(Ke){const gt=Ke.controlData;gt.value=Ke.value,ie.inputFieldProperties[gt.name]=Ke.controlData}}),this.expressionService.invokeExpression(ie,this.addressForm,null).subscribe()})}handleOnLoadExpression(){this.onLoadExpression?this.expressionService.invokeExpression(this.onLoadExpression,this.addressForm).pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.processing=!1,this.uiBlock.emit(!1)},A=>{throw this.processing=!1,this.uiBlock.emit(!1),A}):(this.processing=!1,this.uiBlock.emit(!1))}getOriginalAPOTemplatesdata(){this.pageLayoutService.getAPOTemplateData(Ue.CAP_ADDRESS).then(A=>{A&&(this.originalAPOTemplatesdata=JSON.parse(A.toString()))})}getTemplateAtrributeVal(A){let ie;return null!=this.model?.templates&&this.model.templates.forEach(_e=>{if(_e.attributeName===A)return ie="Date"===_e.attributeValueDataType?new Date(_e.attributeValue):_e.attributeValue,ie}),ie}isTemplateField(A){let ie=!1;return null!=this.model?.templates&&this.model.templates.forEach(_e=>{if(_e.attributeName===A)return ie=!0,ie}),ie}resize(A){window.parent.postMessage("CommunityView:ResizeDialog","*")}collapseSize(A){window.parent.postMessage("CommunityView:RemoveMin","*")}performSearch(){if(this.processing||this.isSearchFormEmpty())return;if(this.processing=!0,this.uiBlock.emit(!0),!this.validateForm())return this.messageService.clear(),this.messageService.add({severity:"error",summary:"Not all fields are filled out correctly. Please check again.",closable:!1}),void(this.processing=!1);const ie=new d;this.mapUiFieldsToModel(ie),this.editTermsText=this.getEditTermText();const Ke=wt(ie);this.apoSearchService.getLookupResultsFromAddressModel(Ke).subscribe(gt=>{this.searchResults=gt,this.searchResultsPanelComponent.selectedData=[],this.showSearchResults=!0,this.uiBlock.emit(!1),this.processing=!1})}backToSearch(){this.showSearchResults=!1}validateForm(){let A=!0;for(const ie in this.addressForm.controls)if(Object.prototype.hasOwnProperty.call(this.addressForm.controls,ie)){const _e=this.addressForm.controls[ie];_e.validator&&_e.markAsDirty(),_e.errors&&Object.keys(_e.errors).length>0&&(A=!1)}return A}isSearchFormEmpty(){return Object.values(this.addressForm.value).every(ie=>null===ie||""===ie)}mapUiFieldsToModel(A){this.mapUItoModel(A,"country","ddlCountry"),this.mapUItoModel(A,"houseNumberStart","txtStreetNo"),this.mapUItoModel(A,"houseFractionStart","txtStartFraction"),this.mapUItoModel(A,"houseNumberEnd","txtStreetEnd"),this.mapUItoModel(A,"houseFractionEnd","txtEndFraction"),this.mapUItoModel(A,"streetDirection","ddlStreetDirection"),this.mapUItoModel(A,"streetPrefix","txtPrefix"),this.mapUItoModel(A,"streetName","txtStreetName"),this.mapUItoModel(A,"streetSuffix","ddlStreetSuffix"),this.mapUItoModel(A,"streetSuffixDirection","ddlStreetSuffixDirection"),this.mapUItoModel(A,"unitType","ddlUnitType"),this.mapUItoModel(A,"unitStart","txtUnitNo"),this.mapUItoModel(A,"unitEnd","txtUnitEnd"),this.mapUItoModel(A,"secondaryRoad","txtSecondaryRoad"),this.mapUItoModel(A,"secondaryRoadNumber","txtSecondaryRoadNo"),this.mapUItoModel(A,"neighborhoodPrefix","txtNeighborhoodP"),this.mapUItoModel(A,"neighborhood","txtNeighborhood"),this.mapUItoModel(A,"addressDescription","txtDescription"),this.mapUItoModel(A,"distance","txtDistance"),this.mapUItoModel(A,"XCoordinator","txtXCoordinator"),this.mapUItoModel(A,"YCoordinator","txtYCoordinator"),this.mapUItoModel(A,"inspectionDistrictPrefix","txtInspectionDP"),this.mapUItoModel(A,"inspectionDistrict","txtInspectionD"),this.mapUItoModel(A,"city","txtCity"),this.mapUItoModel(A,"county","txtCounty"),this.mapUItoModel(A,"state","txtState"),this.mapUItoModel(A,"zip","txtZip"),this.mapUItoModel(A,"fullAddress","txtStreetAddress"),this.mapUItoModel(A,"addressLine1","txtAddressLine1"),this.mapUItoModel(A,"addressLine2","txtAddressLine2"),this.mapUItoModel(A,"addressType","ddlAddressTypeFlag"),this.mapUItoModel(A,"addressTypeFlag","addressTypeFlag"),this.mapUItoModel(A,"levelPrefix","txtLevelPrefix"),this.mapUItoModel(A,"levelNumberStart","txtLevelNbrStart"),this.mapUItoModel(A,"levelNumberEnd","txtLevelNbrEnd"),this.mapUItoModel(A,"houseNumberAlphaStart","txtHouseAlphaStart"),this.mapUItoModel(A,"houseNumberAlphaEnd","txtHouseAlphaEnd"),this.mapUItoModel(A,"streetNameStart","txtStreetNameStart"),this.mapUItoModel(A,"streetNameEnd","txtStreetNameEnd"),this.mapUItoModel(A,"crossStreetNameStart","txtCrossStreetNameStart"),this.mapUItoModel(A,"crossStreetNameEnd","txtCrossStreetNameEnd"),this.mapUItoModel(A,"UID","txtAddressUID"),null!==this.originalAPOTemplatesdata&&(A.templates=this.mapUItoTemplateAttributeModel(this.originalAPOTemplatesdata))}mapUItoModel(A,ie,_e){this.addressForm.controls[_e]&&(A[ie]=this.addressForm.controls[_e].value)}mapUItoTemplateAttributeModel(A){return null==A?null:(A.forEach((ie,_e)=>{if(this.addressForm.controls[ie.attributeName]&&ie.vchFlag===h.Y)if(this.addressForm.controls[ie.attributeName].controlData.type===Q.h.Date){const Ke=this.addressForm.controls[ie.attributeName].value;A[_e].attributeValue=null===Ke?null:this.datePipe.transform(Ke,"MM/dd/yy")}else A[_e].attributeValue=this.addressForm.controls[ie.attributeName].value}),A)}getEditTermText(){let ie,_e,Ke,A="";for(const gt in this.addressForm.value)if(null!=this.addressForm.value[gt]){if(ie=this.addressForm.controls[gt].controlData,_e=ie.label,Ke=this.addressForm.value[gt],ie.type===Q.h.Dropdown){const _n=ie.options.findIndex(An=>An.value===Ke);_n>-1&&(Ke=ie.options[_n].label)}ie.type===Q.h.Date&&(Ke=this.datePipe.transform(Ke,"MM/dd/yy")),""!==Ke&&(A+=` <strong>${_e.replace(":","")}</strong> contains: <strong>${Ke}</strong> |`)}return(0,Xe.L)(A)||A.substring(0,A.length-2),A}addResultsFromSearch(A){this.showSearchResults=!1,this.saveChanges.emit(this.searchResultsPanelComponent.selectedData)}close(){this.closeDialog.emit(!1)}cancelSearch(A){this.showSearchResults=!1}saveChangesToModel(){this.saveChanges.emit([this.model])}static \u0275fac=function(ie){return new(ie||ae)(s.Y36(V.qu),s.Y36(ct.ez),s.Y36(t.uU),s.Y36(vn.u),s.Y36(me.p),s.Y36(Be))};static \u0275cmp=s.Xpm({type:ae,selectors:[["edit-address-form"]],viewQuery:function(ie,_e){if(1&ie&&s.Gf(Di,5),2&ie){let Ke;s.iGM(Ke=s.CRH())&&(_e.searchResultsPanelComponent=Ke.first)}},inputs:{model:"model",module:"module",mode:"mode",addressType:"addressType",addressMax:"addressMax"},outputs:{saveChanges:"saveChanges",closeDialog:"closeDialog",uiBlock:"uiBlock"},decls:12,vars:9,consts:function(){let A,ie,_e,Ke,gt,_n;return A="Save Address",ie="Back",_e="Search",Ke="Close",gt="Edit Terms",_n="Address Lookup" + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + "s (Max " + "\ufffd0:1\ufffd" + ")" + "\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd" + "",[["class","p-d-flex p-flex-wrap",3,"controlGroup","readonlyMode","controlOnBlur",4,"ngIf"],["class","p-d-flex p-flex-wrap","multiCol","true",3,"module","viewId","permissionLevel","permissionValue",4,"ngIf"],["label",A,"accessButton","k",3,"disabled","click",4,"ngIf"],["label",ie,"accessButton","k",3,"disabled","click",4,"ngIf"],["label",_e,"accessButton","k",3,"disabled","click",4,"ngIf"],["modal","true","id","AddressSearchResults","closeAriaLabel",Ke,1,"searchResults",3,"visible","visibleChange","onShow","onHide"],["AddressSearchResults",""],["pTemplate","header","class","p-flex-column"],["key","searchResultsDialog"],[3,"searchResults","columnData","addStreetDescriptionColumn","submitAction","cancelAction"],["searchResultsPanel",""],[1,"p-d-flex","p-flex-wrap",3,"controlGroup","readonlyMode","controlOnBlur"],["multiCol","true",1,"p-d-flex","p-flex-wrap",3,"module","viewId","permissionLevel","permissionValue"],["label",A,"accessButton","k",3,"disabled","click"],["label",ie,"accessButton","k",3,"disabled","click"],["label",_e,"accessButton","k",3,"disabled","click"],[1,"title-content","p-flex-row"],_n,[4,"ngIf"],["tooltipEvent","hover|focus","tooltipPosition","top",1,"divEditTerms","truncate",3,"innerHTML","escape","accelaTooltip"],["pButton","","icon","accelicons accelicons-edit","styleClass","p-button-text","label",gt,"aria-label","EditTerms",1,"iconButton","editTermsBtn",3,"click"]]},template:function(ie,_e){1&ie&&(s.YNc(0,pn,1,2,"search-page-layout",0),s.YNc(1,$n,1,4,"aca-admin-page-layout",1),s.TgZ(2,"p-footer"),s.YNc(3,bi,1,1,"accela-button-primary",2),s.YNc(4,no,1,1,"accela-button-primary",3),s.YNc(5,ro,1,1,"accela-button-primary",4),s.qZA(),s.TgZ(6,"p-dialog",5,6),s.NdJ("visibleChange",function(gt){return _e.showSearchResults=gt})("onShow",function(gt){return _e.resize(gt)})("onHide",function(gt){return _e.collapseSize(gt)}),s.YNc(8,zi,6,4,"ng-template",7),s._UZ(9,"p-toast",8),s.TgZ(10,"apo-search-results-panel",9,10),s.NdJ("submitAction",function(gt){return _e.addResultsFromSearch(gt)})("cancelAction",function(gt){return _e.cancelSearch(gt)}),s.qZA()()),2&ie&&(s.Q6J("ngIf",_e.mode!==_e.pageLayoutModes.ADMIN),s.xp6(1),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.ADMIN),s.xp6(2),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.EDIT),s.xp6(1),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.VIEW),s.xp6(1),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.SEARCH),s.xp6(1),s.Q6J("visible",_e.showSearchResults),s.xp6(4),s.Q6J("searchResults",_e.searchResults)("columnData",_e.searchColumns)("addStreetDescriptionColumn",!0))},dependencies:[i.Hq,ct.$_,ct.jx,L.V,t.O5,Ve.s,at.N,ao,Fi._,v.FN,Un],styles:["#AddressSearchResults[_ngcontent-%COMP%]   .p-dialog[_ngcontent-%COMP%]   .p-dialog-footer[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]     .p-dialog{width:99%}"]})}return ae})();const lo=["searchResultsPanel"];function Mo(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"search-page-layout",11),s.NdJ("controlOnBlur",function(_e){s.CHM(A);const Ke=s.oxw();return s.KtG(Ke.invokeExpressionForExecute(_e))}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("controlGroup",A.modelForm)("readonlyMode",A.mode===A.pageLayoutModes.VIEW)}}function Jn(ae,Qe){if(1&ae&&s._UZ(0,"aca-admin-page-layout",12),2&ae){const A=s.oxw();s.Q6J("module",A.module)("viewId",A.viewId)("permissionLevel",A.permissionLevel)("permissionValue",A.permissionValue)}}function Ui(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-primary",13),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.saveChangesToModel())}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("disabled",A.processing)}}function Si(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-primary",14),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.close())}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("disabled",A.processing)}}function Yn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-primary",15),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.performSearch())}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("disabled",A.processing)}}function Yi(ae,Qe){if(1&ae&&(s.tHW(0,17,1),s._UZ(1,"span"),s.N_p()),2&ae){const A=s.oxw(2);s.xp6(1),s.pQV(A.addressMax),s.QtT(0)}}function li(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"div")(1,"h2",16),s.tHW(2,17),s.YNc(3,Yi,2,1,"span",18),s.N_p(),s.qZA(),s._UZ(4,"div",19),s.TgZ(5,"button",20),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.backToSearch())}),s.qZA()()}if(2&ae){const A=s.oxw();s.xp6(3),s.Q6J("ngIf",A.addressMax>1),s.xp6(1),s.Q6J("innerHTML",A.editTermsText,s.oJD)("escape",!1)("accelaTooltip",A.editTermsText)}}let Io=(()=>{class ae{formBuilder;messageService;datePipe;expressionService;pageLayoutService;apoSearchService;model;module;mode;dataSourceType="";ownerMax;saveChanges=new s.vpe;closeDialog=new s.vpe;uiBlock=new s.vpe;searchResultsPanelComponent;modelForm;controlModelMap;onLoadExpression;onSubmitExpression;onExecuteExpressions;executeFields=new Array;originalAPOTemplatesdata;pageLayoutModes=T;processing=!1;searchColumns=[];searchResults;editTermsText;showSearchResults;viewId=ue.fA.OwnerEdit;permissionLevel=ue.U.APO;permissionValue=N.Owner;destroyActions=new p.x;constructor(A,ie,_e,Ke,gt,_n){this.formBuilder=A,this.messageService=ie,this.datePipe=_e,this.expressionService=Ke,this.pageLayoutService=gt,this.apoSearchService=_n,this.modelForm=this.formBuilder.group({}),this.populateControlModelMap(),this.createFormInstance()}ngOnInit(){this.processing=!0,this.uiBlock.emit(!0),this.fetchExpressions()}ngAfterViewInit(){}populateControlModelMap(){this.controlModelMap=new Map,this.controlModelMap.set("txtTitle","ownerTitle"),this.controlModelMap.set("txtName","ownerFullName"),this.controlModelMap.set("txtAddress1","mailAddress1"),this.controlModelMap.set("txtAddress2","mailAddress2"),this.controlModelMap.set("txtAddress3","mailAddress3"),this.controlModelMap.set("txtCity","mailCity"),this.controlModelMap.set("txtZip","mailZip"),this.controlModelMap.set("ddlAppState","mailState"),this.controlModelMap.set("txtFax","fax"),this.controlModelMap.set("txtPhone","phone"),this.controlModelMap.set("txtEmail","email"),this.controlModelMap.set("ddlCountry","mailCountry")}createFormInstance(){this.processing=!0,this.uiBlock.emit(!0),this.modelForm=this.formBuilder.group({}),this.pageLayoutService.getDynamicFormData(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.processing=!0,A.forEach(ie=>{if(this.mode===T.ADMIN||ie.display){const _e=new V.NI(ie.value);this.pageLayoutService.processAccelaControl(ie,_e),this.model?ie.templateField||this.isTemplateField(ie.name)?_e.patchValue(this.getTemplateAtrributeVal(ie.name)):_e.patchValue(this.model[this.controlModelMap.get(ie.name)]):_e.patchValue(null),ie.display&&ie.type!==Q.h.Separator&&this.modelForm.addControl(ie.name,_e)}}),this.handleOnLoadExpression(),this.mode!==T.ADMIN&&(this.processing=!0,this.uiBlock.emit(!0),this.expressionService.getExpressionJsScriptForExecute(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(ie=>{ie&&ie.length>0&&(this.onExecuteExpressions=ie,ie.forEach(_e=>{Object.keys(_e.inputFields).forEach(Ke=>{_e.inputFields[Ke].forEach(gt=>{this.modelForm.get(gt)&&!(this.executeFields.findIndex(An=>An===gt)>=0)&&this.executeFields.push(gt)})})})),this.processing=!1,this.uiBlock.emit(!1)},ie=>{throw this.processing=!1,this.uiBlock.emit(!1),ie}))},A=>{this.messageService.clear(),this.messageService.add({severity:"error",summary:A,closable:!1}),this.processing=!1,this.uiBlock.emit(!1)}),this.getOriginalAPOTemplatesdata()}updateFormInstance(A){this.model=A,Object.keys(this.modelForm.controls).forEach(ie=>{this.isTemplateField(ie)?this.modelForm.controls[ie].patchValue(this.getTemplateAtrributeVal(ie)):this.modelForm.controls[ie].patchValue(this.model[this.controlModelMap.get(ie)])}),this.handleOnLoadExpression()}fetchExpressions(){this.expressionService.getExpressionJsScriptOnLoad(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.onLoadExpression=A,this.processing=!1,this.uiBlock.emit(!1)},A=>{throw this.processing=!1,this.uiBlock.emit(!1),A}),this.expressionService.getExpressionJsScriptOnSubmit(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.onSubmitExpression=A})}handleOnLoadExpression(){this.onLoadExpression?this.expressionService.invokeExpression(this.onLoadExpression,this.modelForm).pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.processing=!1,this.uiBlock.emit(!1)},A=>{throw this.processing=!1,this.uiBlock.emit(!1),A}):(this.processing=!1,this.uiBlock.emit(!1))}invokeExpressionForExecute(A){this.executeFields.findIndex(ie=>ie===A.controlData.name)>=0&&this.onExecuteExpressions.forEach(ie=>{this.executeFields.forEach(_e=>{const Ke=this.modelForm.get(_e);if(Ke){const gt=Ke.controlData;gt.value=Ke.value,ie.inputFieldProperties[gt.name]=Ke.controlData}}),this.expressionService.invokeExpression(ie,this.modelForm,null).subscribe()})}getOriginalAPOTemplatesdata(){this.pageLayoutService.getAPOTemplateData(Ue.CAP_ADDRESS).then(A=>{A&&(this.originalAPOTemplatesdata=JSON.parse(A.toString()))})}getTemplateAtrributeVal(A){let ie;return null!=this.model?.templates&&this.model.templates.forEach(_e=>{if(_e.attributeName===A)return ie="Date"===_e.attributeValueDataType?new Date(_e.attributeValue):_e.attributeValue,ie}),ie}isTemplateField(A){let ie=!1;return null!=this.model?.templates&&this.model.templates.forEach(_e=>{if(_e.attributeName===A)return ie=!0,ie}),ie}resize(A){window.parent.postMessage("CommunityView:ResizeDialog","*")}collapseSize(A){window.parent.postMessage("CommunityView:RemoveMin","*")}performSearch(){if(this.processing||this.isSearchFormEmpty())return;if(this.processing=!0,this.uiBlock.emit(!0),!this.validateForm())return this.messageService.clear(),this.messageService.add({severity:"error",summary:"Not all fields are filled out correctly. Please check again.",closable:!1}),void(this.processing=!1);const ie=new g;this.mapUiFieldsToModel(ie),this.editTermsText=this.getEditTermText(),this.apoSearchService.getLookupResultsFromOwnerModel(ie).subscribe(Ke=>{this.searchResults=Ke,this.searchResultsPanelComponent.selectedData=[],this.showSearchResults=!0,this.uiBlock.emit(!1),this.processing=!1})}backToSearch(){this.showSearchResults=!1}validateForm(){let A=!0;for(const ie in this.modelForm.controls)if(Object.prototype.hasOwnProperty.call(this.modelForm.controls,ie)){const _e=this.modelForm.controls[ie];_e.validator&&_e.markAsDirty(),_e.errors&&Object.keys(_e.errors).length>0&&(A=!1)}return A}isSearchFormEmpty(){return Object.values(this.modelForm.value).every(ie=>null===ie||""===ie)}mapUiFieldsToModel(A){this.mapUItoModel(A,"ownerTitle","txtTitle"),this.mapUItoModel(A,"ownerFullName","txtName"),this.mapUItoModel(A,"mailAddress1","txtAddress1"),this.mapUItoModel(A,"mailAddress2","txtAddress2"),this.mapUItoModel(A,"mailAddress3","txtAddress3"),this.mapUItoModel(A,"mailCity","txtCity"),this.mapUItoModel(A,"mailZip","txtZip"),this.mapUItoModel(A,"mailState","ddlAppState"),this.mapUItoModel(A,"fax","txtFax"),this.mapUItoModel(A,"phone","txtPhone"),this.mapUItoModel(A,"email","txtEmail"),this.mapUItoModel(A,"mailCountry","ddlCountry"),A.ownerStatus="A",A.auditStatus="A"}mapUItoModel(A,ie,_e){this.modelForm.controls[_e]&&(A[ie]=this.modelForm.controls[_e].value)}mapUItoTemplateAttributeModel(A){return null==A?null:(A.forEach((ie,_e)=>{if(this.modelForm.controls[ie.attributeName]&&ie.vchFlag===h.Y)if(this.modelForm.controls[ie.attributeName].controlData.type===Q.h.Date){const Ke=this.modelForm.controls[ie.attributeName].value;A[_e].attributeValue=null===Ke?null:this.datePipe.transform(Ke,"MM/dd/yy")}else A[_e].attributeValue=this.modelForm.controls[ie.attributeName].value}),A)}getEditTermText(){let ie,_e,Ke,A="";for(const gt in this.modelForm.value)if(null!=this.modelForm.value[gt]){if(ie=this.modelForm.controls[gt].controlData,_e=ie.label,Ke=this.modelForm.value[gt],ie.type===Q.h.Dropdown){const _n=ie.options.findIndex(An=>An.value===Ke);_n>-1&&(Ke=ie.options[_n].label)}ie.type===Q.h.Date&&(Ke=this.datePipe.transform(Ke,"MM/dd/yy")),""!==Ke&&(A+=`<strong>${_e.replace(":","")}</strong> contains: <strong>${Ke}</strong> | `)}return A}addResultsFromSearch(A){this.showSearchResults=!1,this.saveChanges.emit(this.searchResultsPanelComponent.selectedData)}close(){this.closeDialog.emit(!1)}cancelSearch(A){this.showSearchResults=!1}saveChangesToModel(){this.saveChanges.emit([this.model])}static \u0275fac=function(ie){return new(ie||ae)(s.Y36(V.qu),s.Y36(ct.ez),s.Y36(t.uU),s.Y36(vn.u),s.Y36(me.p),s.Y36(Be))};static \u0275cmp=s.Xpm({type:ae,selectors:[["edit-owner-form"]],viewQuery:function(ie,_e){if(1&ie&&s.Gf(lo,5),2&ie){let Ke;s.iGM(Ke=s.CRH())&&(_e.searchResultsPanelComponent=Ke.first)}},inputs:{model:"model",module:"module",mode:"mode",dataSourceType:"dataSourceType",ownerMax:"ownerMax"},outputs:{saveChanges:"saveChanges",closeDialog:"closeDialog",uiBlock:"uiBlock"},decls:12,vars:8,consts:function(){let A,ie,_e,Ke,gt,_n;return A="Save Owner",ie="Back",_e="Search",Ke="Close",gt="Edit Terms",_n="Address Lookup" + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + "s (Max " + "\ufffd0:1\ufffd" + ")" + "\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd" + "",[["class","p-d-flex p-flex-wrap",3,"controlGroup","readonlyMode","controlOnBlur",4,"ngIf"],["class","p-d-flex p-flex-wrap","multiCol","true",3,"module","viewId","permissionLevel","permissionValue",4,"ngIf"],["label",A,"accessButton","k",3,"disabled","click",4,"ngIf"],["label",ie,"accessButton","k",3,"disabled","click",4,"ngIf"],["label",_e,"accessButton","k",3,"disabled","click",4,"ngIf"],["modal","true","id","ParcelSearchResults","closeAriaLabel",Ke,1,"searchResults",3,"visible","visibleChange","onShow","onHide"],["ParcelSearchResults",""],["pTemplate","header","class","p-flex-column"],["key","searchResultsDialog"],["addOwnerAddressColumn","true","addOwnerNameColumn","true",3,"searchResults","columnData","submitAction","cancelAction"],["searchResultsPanel",""],[1,"p-d-flex","p-flex-wrap",3,"controlGroup","readonlyMode","controlOnBlur"],["multiCol","true",1,"p-d-flex","p-flex-wrap",3,"module","viewId","permissionLevel","permissionValue"],["label",A,"accessButton","k",3,"disabled","click"],["label",ie,"accessButton","k",3,"disabled","click"],["label",_e,"accessButton","k",3,"disabled","click"],[1,"title-content","p-flex-row"],_n,[4,"ngIf"],["tooltipEvent","hover|focus","tooltipPosition","top",1,"divEditTerms","truncate",3,"innerHTML","escape","accelaTooltip"],["pButton","","icon","accelicons accelicons-edit","styleClass","p-button-text","label",gt,"aria-label","EditTerms",1,"iconButton","editTermsBtn",3,"click"]]},template:function(ie,_e){1&ie&&(s.YNc(0,Mo,1,2,"search-page-layout",0),s.YNc(1,Jn,1,4,"aca-admin-page-layout",1),s.TgZ(2,"p-footer"),s.YNc(3,Ui,1,1,"accela-button-primary",2),s.YNc(4,Si,1,1,"accela-button-primary",3),s.YNc(5,Yn,1,1,"accela-button-primary",4),s.qZA(),s.TgZ(6,"p-dialog",5,6),s.NdJ("visibleChange",function(gt){return _e.showSearchResults=gt})("onShow",function(gt){return _e.resize(gt)})("onHide",function(gt){return _e.collapseSize(gt)}),s.YNc(8,li,6,4,"ng-template",7),s._UZ(9,"p-toast",8),s.TgZ(10,"apo-search-results-panel",9,10),s.NdJ("submitAction",function(gt){return _e.addResultsFromSearch(gt)})("cancelAction",function(gt){return _e.cancelSearch(gt)}),s.qZA()()),2&ie&&(s.Q6J("ngIf",_e.mode!==_e.pageLayoutModes.ADMIN),s.xp6(1),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.ADMIN),s.xp6(2),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.EDIT),s.xp6(1),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.VIEW),s.xp6(1),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.SEARCH),s.xp6(1),s.Q6J("visible",_e.showSearchResults),s.xp6(4),s.Q6J("searchResults",_e.searchResults)("columnData",_e.searchColumns))},dependencies:[i.Hq,ct.$_,ct.jx,L.V,t.O5,Ve.s,at.N,ao,Fi._,v.FN,Un],styles:["#OwnerSearchResults[_ngcontent-%COMP%]   .p-dialog[_ngcontent-%COMP%]   .p-dialog-footer[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]     .p-dialog{width:99%}"]})}return ae})();const je=["searchResultsPanel"];function Tt(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"search-page-layout",11),s.NdJ("controlOnBlur",function(_e){s.CHM(A);const Ke=s.oxw();return s.KtG(Ke.invokeExpressionForExecute(_e))}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("controlGroup",A.modelForm)("readonlyMode",A.mode===A.pageLayoutModes.VIEW)}}function _t(ae,Qe){if(1&ae&&s._UZ(0,"aca-admin-page-layout",12),2&ae){const A=s.oxw();s.Q6J("module",A.module)("viewId",A.viewId)("permissionLevel",A.permissionLevel)("permissionValue",A.permissionValue)}}function Nt(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-primary",13),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.saveChangesToModel())}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("disabled",A.processing)}}function Qt(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-primary",14),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.close())}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("disabled",A.processing)}}function cn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"accela-button-primary",15),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.performSearch())}),s.qZA()}if(2&ae){const A=s.oxw();s.Q6J("disabled",A.processing)}}function Qn(ae,Qe){if(1&ae&&(s.tHW(0,17,1),s._UZ(1,"span"),s.N_p()),2&ae){const A=s.oxw(2);s.xp6(1),s.pQV(A.parcelMax),s.QtT(0)}}function di(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"div")(1,"h2",16),s.tHW(2,17),s.YNc(3,Qn,2,1,"span",18),s.N_p(),s.qZA(),s._UZ(4,"div",19),s.TgZ(5,"button",20),s.NdJ("click",function(){s.CHM(A);const _e=s.oxw();return s.KtG(_e.backToSearch())}),s.qZA()()}if(2&ae){const A=s.oxw();s.xp6(3),s.Q6J("ngIf",A.addressMax>1),s.xp6(1),s.Q6J("innerHTML",A.editTermsText,s.oJD)("escape",!1)("accelaTooltip",A.editTermsText)}}let yi=(()=>{class ae{formBuilder;messageService;datePipe;expressionService;pageLayoutService;apoSearchService;model;module;mode;dataSourceType="";parcelMax;saveChanges=new s.vpe;closeDialog=new s.vpe;uiBlock=new s.vpe;searchResultsPanelComponent;modelForm;controlModelMap;onLoadExpression;onSubmitExpression;onExecuteExpressions;executeFields=new Array;originalAPOTemplatesdata;pageLayoutModes=T;processing=!1;searchColumns=[{field:"parcelNumber",header:"Parcel ID"},{field:"lot",header:"Lot"},{field:"block",header:"Block"}];searchResults;editTermsText;showSearchResults;viewId=ue.fA.ParcelEdit;permissionLevel=ue.U.APO;permissionValue=N.Parcel;destroyActions=new p.x;constructor(A,ie,_e,Ke,gt,_n){this.formBuilder=A,this.messageService=ie,this.datePipe=_e,this.expressionService=Ke,this.pageLayoutService=gt,this.apoSearchService=_n,this.populateControlModelMap(),this.modelForm=this.formBuilder.group({}),this.createFormInstance()}ngOnInit(){this.processing=!0,this.uiBlock.emit(!0),this.fetchExpressions()}ngAfterViewInit(){}populateControlModelMap(){this.controlModelMap=new Map,this.controlModelMap.set("txtParcelNo","parcelNumber"),this.controlModelMap.set("txtLot","lot"),this.controlModelMap.set("txtBlock","block"),this.controlModelMap.set("ddlSubdivision","subdivision"),this.controlModelMap.set("txtBook","book"),this.controlModelMap.set("txtPage","page"),this.controlModelMap.set("txtTract","tract"),this.controlModelMap.set("txtLegalDescription","legalDesc"),this.controlModelMap.set("txtParcelArea","parcelArea"),this.controlModelMap.set("txtLandValue","landValue"),this.controlModelMap.set("txtImprovedValue","improvedValue"),this.controlModelMap.set("txtExceptionValue","exemptValue"),this.controlModelMap.set("txtRefParcelNo","refParcelNo"),this.controlModelMap.set("txtParcelUID","UID")}createFormInstance(){this.processing=!0,this.uiBlock.emit(!0),this.modelForm=this.formBuilder.group({}),this.pageLayoutService.getDynamicFormData(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.processing=!0,A.forEach(ie=>{if(this.mode===T.ADMIN||ie.display){const _e=new V.NI(ie.value);this.pageLayoutService.processAccelaControl(ie,_e),this.model?ie.templateField||this.isTemplateField(ie.name)?_e.patchValue(this.getTemplateAtrributeVal(ie.name)):_e.patchValue(this.model[this.controlModelMap.get(ie.name)]):_e.patchValue(null),ie.display&&ie.type!==Q.h.Separator&&this.modelForm.addControl(ie.name,_e)}}),this.handleOnLoadExpression(),this.mode!==T.ADMIN&&(this.processing=!0,this.uiBlock.emit(!0),this.expressionService.getExpressionJsScriptForExecute(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(ie=>{ie&&ie.length>0&&(this.onExecuteExpressions=ie,ie.forEach(_e=>{Object.keys(_e.inputFields).forEach(Ke=>{_e.inputFields[Ke].forEach(gt=>{this.modelForm.get(gt)&&!(this.executeFields.findIndex(An=>An===gt)>=0)&&this.executeFields.push(gt)})})})),this.processing=!1,this.uiBlock.emit(!1)},ie=>{throw this.processing=!1,this.uiBlock.emit(!1),ie}))},A=>{this.messageService.clear(),this.messageService.add({severity:"error",summary:A,closable:!1}),this.processing=!1,this.uiBlock.emit(!1)}),this.getOriginalAPOTemplatesdata()}updateFormInstance(A){this.model=A,Object.keys(this.modelForm.controls).forEach(ie=>{this.isTemplateField(ie)?this.modelForm.controls[ie].patchValue(this.getTemplateAtrributeVal(ie)):this.modelForm.controls[ie].patchValue(this.model[this.controlModelMap.get(ie)])}),this.handleOnLoadExpression()}fetchExpressions(){this.expressionService.getExpressionJsScriptOnLoad(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.onLoadExpression=A,this.processing=!1,this.uiBlock.emit(!1)},A=>{throw this.processing=!1,this.uiBlock.emit(!1),A}),this.expressionService.getExpressionJsScriptOnSubmit(this.viewId,this.module,this.permissionLevel,this.permissionValue,"anonymous").pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.onSubmitExpression=A})}handleOnLoadExpression(){this.onLoadExpression?this.expressionService.invokeExpression(this.onLoadExpression,this.modelForm).pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.processing=!1,this.uiBlock.emit(!1)},A=>{throw this.processing=!1,this.uiBlock.emit(!1),A}):(this.processing=!1,this.uiBlock.emit(!1))}invokeExpressionForExecute(A){this.executeFields.findIndex(ie=>ie===A.controlData.name)>=0&&this.onExecuteExpressions.forEach(ie=>{this.executeFields.forEach(_e=>{const Ke=this.modelForm.get(_e);if(Ke){const gt=Ke.controlData;gt.value=Ke.value,ie.inputFieldProperties[gt.name]=Ke.controlData}}),this.expressionService.invokeExpression(ie,this.modelForm,null).subscribe()})}getOriginalAPOTemplatesdata(){this.pageLayoutService.getAPOTemplateData(Ue.CAP_ADDRESS).then(A=>{A&&(this.originalAPOTemplatesdata=JSON.parse(A.toString()))})}getTemplateAtrributeVal(A){let ie;return null!=this.model?.templates&&this.model.templates.forEach(_e=>{if(_e.attributeName===A)return ie="Date"===_e.attributeValueDataType?new Date(_e.attributeValue):_e.attributeValue,ie}),ie}isTemplateField(A){let ie=!1;return null!=this.model?.templates&&this.model.templates.forEach(_e=>{if(_e.attributeName===A)return ie=!0,ie}),ie}resize(A){window.parent.postMessage("CommunityView:ResizeDialog","*")}collapseSize(A){window.parent.postMessage("CommunityView:RemoveMin","*")}performSearch(){if(this.processing||this.isSearchFormEmpty())return;if(this.processing=!0,this.uiBlock.emit(!0),!this.validateForm())return this.messageService.clear(),this.messageService.add({severity:"error",summary:"Not all fields are filled out correctly. Please check again.",closable:!1}),void(this.processing=!1);const ie=new f;this.mapUiFieldsToModel(ie),this.editTermsText=this.getEditTermText(),this.apoSearchService.getLookupResultsFromParcelModel(ie).subscribe(Ke=>{this.searchResults=Ke,this.searchResultsPanelComponent.selectedData=[],this.showSearchResults=!0,this.uiBlock.emit(!1),this.processing=!1})}backToSearch(){this.showSearchResults=!1}validateForm(){let A=!0;for(const ie in this.modelForm.controls)if(Object.prototype.hasOwnProperty.call(this.modelForm.controls,ie)){const _e=this.modelForm.controls[ie];_e.validator&&_e.markAsDirty(),_e.errors&&Object.keys(_e.errors).length>0&&(A=!1)}return A}isSearchFormEmpty(){return Object.values(this.modelForm.value).every(ie=>null===ie||""===ie)}mapUiFieldsToModel(A){this.mapUItoModel(A,"parcelNumber","txtParcelNo"),this.mapUItoModel(A,"lot","txtLot"),this.mapUItoModel(A,"block","txtBlock"),this.mapUItoModel(A,"subdivision","ddlSubdivision"),this.mapUItoModel(A,"book","txtBook"),this.mapUItoModel(A,"page","txtPage"),this.mapUItoModel(A,"tract","txtTract"),this.mapUItoModel(A,"legalDesc","txtLegalDescription"),this.mapUItoModel(A,"parcelArea","txtParcelArea"),this.mapUItoModel(A,"landValue","txtLandValue"),this.mapUItoModel(A,"improvedValue","txtImprovedValue"),this.mapUItoModel(A,"exemptValue","txtExceptionValue"),this.mapUItoModel(A,"refParcelNo","txtRefParcelNo"),this.mapUItoModel(A,"UID","txtParcelUID"),A.parcelStatus="A",A.auditStatus="A"}mapUItoModel(A,ie,_e){this.modelForm.controls[_e]&&(A[ie]=this.modelForm.controls[_e].value)}mapUItoTemplateAttributeModel(A){return null==A?null:(A.forEach((ie,_e)=>{if(this.modelForm.controls[ie.attributeName]&&ie.vchFlag===h.Y)if(this.modelForm.controls[ie.attributeName].controlData.type===Q.h.Date){const Ke=this.modelForm.controls[ie.attributeName].value;A[_e].attributeValue=null===Ke?null:this.datePipe.transform(Ke,"MM/dd/yy")}else A[_e].attributeValue=this.modelForm.controls[ie.attributeName].value}),A)}getEditTermText(){let ie,_e,Ke,A="";for(const gt in this.modelForm.value)if(null!=this.modelForm.value[gt]){if(ie=this.modelForm.controls[gt].controlData,_e=ie.label,Ke=this.modelForm.value[gt],ie.type===Q.h.Dropdown){const _n=ie.options.findIndex(An=>An.value===Ke);_n>-1&&(Ke=ie.options[_n].label)}ie.type===Q.h.Date&&(Ke=this.datePipe.transform(Ke,"MM/dd/yy")),""!==Ke&&(A+=`<strong>${_e.replace(":","")}</strong> contains: <strong>${Ke}</strong> | `)}return A}addResultsFromSearch(A){this.showSearchResults=!1,this.saveChanges.emit(this.searchResultsPanelComponent.selectedData)}close(){this.closeDialog.emit(!1)}cancelSearch(A){this.showSearchResults=!1}saveChangesToModel(){this.saveChanges.emit([this.model])}static \u0275fac=function(ie){return new(ie||ae)(s.Y36(V.qu),s.Y36(ct.ez),s.Y36(t.uU),s.Y36(vn.u),s.Y36(me.p),s.Y36(Be))};static \u0275cmp=s.Xpm({type:ae,selectors:[["edit-parcel-form"]],viewQuery:function(ie,_e){if(1&ie&&s.Gf(je,5),2&ie){let Ke;s.iGM(Ke=s.CRH())&&(_e.searchResultsPanelComponent=Ke.first)}},inputs:{model:"model",module:"module",mode:"mode",dataSourceType:"dataSourceType",parcelMax:"parcelMax"},outputs:{saveChanges:"saveChanges",closeDialog:"closeDialog",uiBlock:"uiBlock"},decls:13,vars:8,consts:function(){let A,ie,_e,Ke,gt,_n;return A="Save Parcel",ie="Back",_e="Search",Ke="Close",gt="Edit Terms",_n="Parcel Lookup" + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + "s (Max " + "\ufffd0:1\ufffd" + ")" + "\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd" + "",[["class","p-d-flex p-flex-wrap",3,"controlGroup","readonlyMode","controlOnBlur",4,"ngIf"],["class","p-d-flex p-flex-wrap","multiCol","true",3,"module","viewId","permissionLevel","permissionValue",4,"ngIf"],["label",A,"accessButton","k",3,"disabled","click",4,"ngIf"],["label",ie,"accessButton","k",3,"disabled","click",4,"ngIf"],["label",_e,"accessButton","k",3,"disabled","click",4,"ngIf"],["modal","true","id","ParcelSearchResults","closeAriaLabel",Ke,1,"searchResults",3,"visible","visibleChange","onShow","onHide"],["ParcelSearchResults",""],["pTemplate","header","class","p-flex-column"],["key","searchResultsDialog"],[3,"searchResults","columnData","submitAction","cancelAction"],["searchResultsPanel",""],[1,"p-d-flex","p-flex-wrap",3,"controlGroup","readonlyMode","controlOnBlur"],["multiCol","true",1,"p-d-flex","p-flex-wrap",3,"module","viewId","permissionLevel","permissionValue"],["label",A,"accessButton","k",3,"disabled","click"],["label",ie,"accessButton","k",3,"disabled","click"],["label",_e,"accessButton","k",3,"disabled","click"],[1,"title-content","p-flex-row"],_n,[4,"ngIf"],["tooltipEvent","hover|focus","tooltipPosition","top",1,"divEditTerms","truncate",3,"innerHTML","escape","accelaTooltip"],["pButton","","icon","accelicons accelicons-edit","styleClass","p-button-text","label",gt,"aria-label","EditTerms",1,"iconButton","editTermsBtn",3,"click"]]},template:function(ie,_e){1&ie&&(s.YNc(0,Tt,1,2,"search-page-layout",0),s.YNc(1,_t,1,4,"aca-admin-page-layout",1),s.TgZ(2,"p-footer"),s.YNc(3,Nt,1,1,"accela-button-primary",2),s.YNc(4,Qt,1,1,"accela-button-primary",3),s.YNc(5,cn,1,1,"accela-button-primary",4),s.qZA(),s.TgZ(6,"p-dialog",5,6),s.NdJ("visibleChange",function(gt){return _e.showSearchResults=gt})("onShow",function(gt){return _e.resize(gt)})("onHide",function(gt){return _e.collapseSize(gt)}),s.YNc(8,di,6,4,"ng-template",7),s._UZ(9,"p-toast",8),s.TgZ(10,"apo-search-results-panel",9,10),s.NdJ("submitAction",function(gt){return _e.addResultsFromSearch(gt)})("cancelAction",function(gt){return _e.cancelSearch(gt)}),s.qZA(),s._UZ(12,"p-footer"),s.qZA()),2&ie&&(s.Q6J("ngIf",_e.mode!==_e.pageLayoutModes.ADMIN),s.xp6(1),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.ADMIN),s.xp6(2),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.EDIT),s.xp6(1),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.VIEW),s.xp6(1),s.Q6J("ngIf",_e.mode===_e.pageLayoutModes.SEARCH),s.xp6(1),s.Q6J("visible",_e.showSearchResults),s.xp6(4),s.Q6J("searchResults",_e.searchResults)("columnData",_e.searchColumns))},dependencies:[i.Hq,ct.$_,ct.jx,L.V,t.O5,Ve.s,at.N,ao,Fi._,v.FN,Un],styles:["#ParcelSearchResults[_ngcontent-%COMP%]   .p-dialog[_ngcontent-%COMP%]   .p-dialog-footer[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]     .p-dialog{width:99%}"]})}return ae})();var qi=l(9263),oi=l(4142),wi=l(3897);function Zo(ae,Qe){if(1&ae&&(s.TgZ(0,"span",7),s._UZ(1,"i",8),s.TgZ(2,"span",9),s._uU(3),s.qZA()()),2&ae){const A=s.oxw();s.Q6J("accelaTooltip",A.getSuggestionTooltip()),s.xp6(3),s.Oqu(A.getAddressCardText())}}function Hi(ae,Qe){if(1&ae&&(s.TgZ(0,"span")(1,"span"),s._uU(2),s.qZA()()),2&ae){const A=s.oxw();s.xp6(2),s.Oqu(A.getAddressCardText())}}function co(ae,Qe){1&ae&&(s.TgZ(0,"span",10),s.SDv(1,11),s.qZA())}function Bo(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(_e){s.CHM(A);const Ke=s.oxw();return s.KtG(Ke.setToPrimary(_e))}),s.qZA()}}let Vo=(()=>{class ae{apoSearchService;address;sourceFlag;xapoMode;module;adminMode;apoType;primaryRecordChanged=new s.vpe;recordEditClicked=new s.vpe;recordDeleted=new s.vpe;suggestionsFound=new s.vpe;suggestionLink;validSuggestionLink=!1;destroyActions=new p.x;constructor(A){this.apoSearchService=A}ngOnInit(){const A=wt(this.address);this.apoSearchService.getRelatedAPOfromAddresses([A],this.module).pipe((0,C.R)(this.destroyActions)).subscribe(ie=>{const _e={source:N.Address.toLowerCase(),sourceId:this.xapoMode?A.UID:A.refAddressId?.toString(),sourceLabel:F(this.address),addresses:ie.AddressList.map(Ke=>Pt(Ke)),parcels:ie.ParcelList,owners:ie.OwnerList};this.suggestionLink=_e,this.validSuggestionLink=this.suggestionLink?.parcels.length>0||this.suggestionLink?.owners.length>0,this.apoType===N.Address&&this.setToSuggestions(event)})}getAddressCardText(){return F(this.address)}isPrimary(){return this.address.primaryFlag===h.Y}setToPrimary(A){this.adminMode||(this.primaryRecordChanged.emit(this.address),A.stopPropagation())}showViewForm(A){this.adminMode||this.recordEditClicked.emit(this.address)}deleteRecord(A){this.recordDeleted.emit(this.address),A.stopPropagation()}getSuggestionTooltip(){if(this.suggestionLink&&(this.suggestionLink.addresses?.length>0||this.suggestionLink.owners?.length>0)){const A=new Array;return this.suggestionLink.parcels?.length>0&&(A.push("parcels"),this.suggestionLink.owners?.length>0&&A.push("and")),this.suggestionLink.owners?.length>0&&A.push("owners"),`This address has multiple associated ${A.join(" ")}. Click to view and manage`}}setToSuggestions(A){this.validSuggestionLink&&(this.suggestionLink.addresses=[],this.suggestionsFound.emit(this.suggestionLink),A.stopPropagation())}ngOnDestroy(){this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(ie){return new(ie||ae)(s.Y36(Be))};static \u0275cmp=s.Xpm({type:ae,selectors:[["apo-address-card"]],inputs:{address:"address",sourceFlag:"sourceFlag",xapoMode:"xapoMode",module:"module",adminMode:"adminMode",apoType:"apoType"},outputs:{primaryRecordChanged:"primaryRecordChanged",recordEditClicked:"recordEditClicked",recordDeleted:"recordDeleted",suggestionsFound:"suggestionsFound"},decls:10,vars:4,consts:function(){let A;return A="(Primary Address)",[["tooltipEvent","hover|focus","tooltipPosition","bottom","tabindex","0",3,"accelaTooltip",4,"ngIf"],[4,"ngIf"],[1,"mc-card-item-actions"],["class","mc-card-primary",4,"ngIf"],["pButton","","type","button","label","Make Primary","class","p-button-text",3,"click",4,"ngIf"],["pButton","","type","button","label","View",1,"p-button-text",3,"click"],["pButton","","type","button","label","Delete",1,"p-button-text",3,"click"],["tooltipEvent","hover|focus","tooltipPosition","bottom","tabindex","0",3,"accelaTooltip"],[1,"accelicons-link"],[1,"relatedRecordsFound"],[1,"mc-card-primary"],A,["pButton","","type","button","label","Make Primary",1,"p-button-text",3,"click"]]},template:function(ie,_e){1&ie&&(s.TgZ(0,"div"),s.YNc(1,Zo,4,2,"span",0),s.YNc(2,Hi,3,1,"span",1),s.TgZ(3,"div",2),s.YNc(4,co,2,0,"span",3),s.YNc(5,Bo,1,0,"button",4),s._uU(6," | "),s.TgZ(7,"button",5),s.NdJ("click",function(gt){return _e.showViewForm(gt)}),s.qZA(),s._uU(8," | "),s.TgZ(9,"button",6),s.NdJ("click",function(gt){return _e.deleteRecord(gt)}),s.qZA()()()),2&ie&&(s.xp6(1),s.Q6J("ngIf",_e.validSuggestionLink),s.xp6(1),s.Q6J("ngIf",!_e.validSuggestionLink),s.xp6(2),s.Q6J("ngIf",_e.isPrimary()),s.xp6(1),s.Q6J("ngIf",!_e.isPrimary()))},dependencies:[i.Hq,t.O5,Fi._],styles:[".relatedRecordsFound[_ngcontent-%COMP%]{text-decoration:underline}.mc-card[_ngcontent-%COMP%]   .mc-card-body[_ngcontent-%COMP%]   .mc-card-column[_ngcontent-%COMP%]   .p-button.p-button-text.p-component[_ngcontent-%COMP%], .mc-card[_ngcontent-%COMP%]   .mc-card-body[_ngcontent-%COMP%]   .mc-card-column[_ngcontent-%COMP%]   .p-button.p-button-text.p-component[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .mc-card[_ngcontent-%COMP%]   .mc-card-body[_ngcontent-%COMP%]   .mc-card-column[_ngcontent-%COMP%]   .p-button-text[_ngcontent-%COMP%]:enabled:hover   .p-button-label[_ngcontent-%COMP%], .mc-card-item-actions[_ngcontent-%COMP%], .relatedRecordsFound[_ngcontent-%COMP%], .p-button-label[_ngcontent-%COMP%], .accelicons-link[_ngcontent-%COMP%]{color:#2a6bb8!important;background:white}.mc-card-required[_ngcontent-%COMP%]{color:#bc2f46}"]})}return ae})();function Yo(ae,Qe){if(1&ae&&(s.TgZ(0,"span",7),s._UZ(1,"i",8),s.TgZ(2,"span",9),s._uU(3),s.qZA()()),2&ae){const A=s.oxw();s.Q6J("accelaTooltip",A.getSuggestionTooltip()),s.xp6(3),s.Oqu(A.getParcelCardText())}}function io(ae,Qe){if(1&ae&&(s.TgZ(0,"span")(1,"span"),s._uU(2),s.qZA()()),2&ae){const A=s.oxw();s.xp6(2),s.Oqu(A.getParcelCardText())}}function ho(ae,Qe){1&ae&&(s.TgZ(0,"span",10),s.SDv(1,11),s.qZA())}function mr(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(_e){s.CHM(A);const Ke=s.oxw();return s.KtG(Ke.setToPrimary(_e))}),s.qZA()}}let qo=(()=>{class ae{apoSearchService;parcel;sourceFlag;xapoMode;module;adminMode;apoType;primaryRecordChanged=new s.vpe;recordEditClicked=new s.vpe;recordDeleted=new s.vpe;suggestionsFound=new s.vpe;suggestionLink;validSuggestionLink=!1;destroyActions=new p.x;constructor(A){this.apoSearchService=A}ngOnInit(){this.apoSearchService.getRelatedAPOfromParcels([this.parcel],this.module).pipe((0,C.R)(this.destroyActions)).subscribe(A=>{const ie={source:N.Parcel.toLowerCase(),sourceId:this.xapoMode?this.parcel.UID:this.parcel.parcelNumber,sourceLabel:Fe(this.parcel),addresses:A.AddressList.map(_e=>Pt(_e)),parcels:A.ParcelList,owners:A.OwnerList};this.suggestionLink=ie,this.validSuggestionLink=this.suggestionLink?.owners.length>0||this.suggestionLink?.addresses.length>0,this.apoType===N.Parcel&&this.setToSuggestions(event)})}getParcelCardText(){return this.parcel.parcelNumber}isPrimary(){return this.parcel.primaryParcelFlag===h.Y}setToPrimary(A){this.adminMode||(this.primaryRecordChanged.emit(this.parcel),A.stopPropagation())}showViewForm(A){this.adminMode||this.recordEditClicked.emit(this.parcel)}deleteRecord(A){this.recordDeleted.emit(this.parcel),A.stopPropagation()}getSuggestionTooltip(){if(this.suggestionLink&&(this.suggestionLink.addresses?.length>0||this.suggestionLink.owners?.length>0)){const A=new Array;return this.suggestionLink.parcels?.length>0&&(A.push("parcels"),this.suggestionLink.owners?.length>0&&A.push("and")),this.suggestionLink.owners?.length>0&&A.push("owners"),`This address has multiple associated ${A.join(" ")}. Click to view and manage`}}setToSuggestions(A){this.validSuggestionLink&&(this.suggestionLink.parcels=[],this.suggestionsFound.emit(this.suggestionLink),A.stopPropagation())}ngOnDestroy(){this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(ie){return new(ie||ae)(s.Y36(Be))};static \u0275cmp=s.Xpm({type:ae,selectors:[["apo-parcel-card"]],inputs:{parcel:"parcel",sourceFlag:"sourceFlag",xapoMode:"xapoMode",module:"module",adminMode:"adminMode",apoType:"apoType"},outputs:{primaryRecordChanged:"primaryRecordChanged",recordEditClicked:"recordEditClicked",recordDeleted:"recordDeleted",suggestionsFound:"suggestionsFound"},decls:10,vars:4,consts:function(){let A;return A="(Primary Parcel)",[["tooltipEvent","hover|focus","tooltipPosition","bottom","tabindex","0",3,"accelaTooltip",4,"ngIf"],[4,"ngIf"],[1,"mc-card-item-actions"],["class","mc-card-primary",4,"ngIf"],["pButton","","type","button","label","Make Primary","class","p-button-text",3,"click",4,"ngIf"],["pButton","","type","button","label","View",1,"p-button-text",3,"click"],["pButton","","type","button","label","Delete",1,"p-button-text",3,"click"],["tooltipEvent","hover|focus","tooltipPosition","bottom","tabindex","0",3,"accelaTooltip"],[1,"accelicons-link"],[1,"relatedRecordsFound"],[1,"mc-card-primary"],A,["pButton","","type","button","label","Make Primary",1,"p-button-text",3,"click"]]},template:function(ie,_e){1&ie&&(s.TgZ(0,"div"),s.YNc(1,Yo,4,2,"span",0),s.YNc(2,io,3,1,"span",1),s.TgZ(3,"div",2),s.YNc(4,ho,2,0,"span",3),s.YNc(5,mr,1,0,"button",4),s._uU(6," | "),s.TgZ(7,"button",5),s.NdJ("click",function(gt){return _e.showViewForm(gt)}),s.qZA(),s._uU(8," | "),s.TgZ(9,"button",6),s.NdJ("click",function(gt){return _e.deleteRecord(gt)}),s.qZA()()()),2&ie&&(s.xp6(1),s.Q6J("ngIf",_e.validSuggestionLink),s.xp6(1),s.Q6J("ngIf",!_e.validSuggestionLink),s.xp6(2),s.Q6J("ngIf",_e.isPrimary()),s.xp6(1),s.Q6J("ngIf",!_e.isPrimary()))},dependencies:[i.Hq,t.O5,Fi._],styles:[".relatedRecordsFound[_ngcontent-%COMP%]{text-decoration:underline}.mc-card[_ngcontent-%COMP%]   .mc-card-body[_ngcontent-%COMP%]   .mc-card-column[_ngcontent-%COMP%]   .p-button.p-button-text[_ngcontent-%COMP%], .mc-card[_ngcontent-%COMP%]   .mc-card-body[_ngcontent-%COMP%]   .mc-card-column[_ngcontent-%COMP%]   .p-button.p-button-text[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .mc-card[_ngcontent-%COMP%]   .mc-card-body[_ngcontent-%COMP%]   .mc-card-column[_ngcontent-%COMP%]   .p-button-text[_ngcontent-%COMP%]:enabled:hover   .p-button-label[_ngcontent-%COMP%], .mc-card-item-actions[_ngcontent-%COMP%], .relatedRecordsFound[_ngcontent-%COMP%], .p-button-label[_ngcontent-%COMP%], .accelicons-link[_ngcontent-%COMP%]{color:#2a6bb8!important;background:white}.mc-card-required[_ngcontent-%COMP%]{color:#bc2f46}"]})}return ae})();function nr(ae,Qe){if(1&ae&&(s.TgZ(0,"span",7),s._UZ(1,"i",8),s.TgZ(2,"span",9),s._uU(3),s.qZA()()),2&ae){const A=s.oxw();s.Q6J("accelaTooltip",A.getSuggestionTooltip()),s.xp6(3),s.Oqu(A.getOwnerCardText())}}function Ye(ae,Qe){if(1&ae&&(s.TgZ(0,"span")(1,"span"),s._uU(2),s.qZA()()),2&ae){const A=s.oxw();s.xp6(2),s.Oqu(A.getOwnerCardText())}}function ce(ae,Qe){1&ae&&(s.TgZ(0,"span",10),s.SDv(1,11),s.qZA())}function Se(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(_e){s.CHM(A);const Ke=s.oxw();return s.KtG(Ke.setToPrimary(_e))}),s.qZA()}}let Me=(()=>{class ae{apoSearchService;owner;sourceFlag;xapoMode;module;adminMode;apoType;primaryRecordChanged=new s.vpe;recordEditClicked=new s.vpe;recordDeleted=new s.vpe;suggestionsFound=new s.vpe;suggestionLink;validSuggestionLink=!1;destroyActions=new p.x;constructor(A){this.apoSearchService=A}ngOnInit(){this.apoSearchService.getRelatedAPOfromOwners([this.owner],this.module).pipe((0,C.R)(this.destroyActions)).subscribe(A=>{const ie={source:N.Owner.toLowerCase(),sourceId:this.xapoMode?this.owner.UID:this.owner.ownerNumber?.toString(),sourceLabel:oe(this.owner),addresses:A.AddressList.map(_e=>Pt(_e)),parcels:A.ParcelList,owners:A.OwnerList};this.suggestionLink=ie,this.validSuggestionLink=this.suggestionLink?.parcels.length>0||this.suggestionLink?.addresses.length>0,this.apoType===N.Owner&&this.setToSuggestions(event)})}getOwnerCardText(){return oe(this.owner)}isPrimary(){return this.owner.isPrimary===h.Y}setToPrimary(A){this.adminMode||(this.primaryRecordChanged.emit(this.owner),A.stopPropagation())}showViewForm(A){this.adminMode||this.recordEditClicked.emit(this.owner)}deleteRecord(A){this.recordDeleted.emit(this.owner),A.stopPropagation()}getSuggestionTooltip(){if(this.suggestionLink&&(this.suggestionLink.addresses?.length>0||this.suggestionLink.owners?.length>0)){const A=new Array;return this.suggestionLink.parcels?.length>0&&(A.push("parcels"),this.suggestionLink.owners?.length>0&&A.push("and")),this.suggestionLink.owners?.length>0&&A.push("owners"),`This address has multiple associated ${A.join(" ")}. Click to view and manage`}}ngOnDestroy(){this.destroyActions.next(null),this.destroyActions.complete()}setToSuggestions(A){this.validSuggestionLink&&(this.suggestionLink.owners=[],this.suggestionsFound.emit(this.suggestionLink),A.stopPropagation())}static \u0275fac=function(ie){return new(ie||ae)(s.Y36(Be))};static \u0275cmp=s.Xpm({type:ae,selectors:[["apo-owner-card"]],inputs:{owner:"owner",sourceFlag:"sourceFlag",xapoMode:"xapoMode",module:"module",adminMode:"adminMode",apoType:"apoType"},outputs:{primaryRecordChanged:"primaryRecordChanged",recordEditClicked:"recordEditClicked",recordDeleted:"recordDeleted",suggestionsFound:"suggestionsFound"},decls:10,vars:4,consts:function(){let A;return A="(Primary Owner)",[["tooltipEvent","hover|focus","tooltipPosition","bottom","tabindex","0",3,"accelaTooltip",4,"ngIf"],[4,"ngIf"],[1,"mc-card-item-actions"],["class","mc-card-primary",4,"ngIf"],["pButton","","type","button","label","Make Primary","class","p-button-text",3,"click",4,"ngIf"],["pButton","","type","button","label","View",1,"p-button-text",3,"click"],["pButton","","type","button","label","Delete",1,"p-button-text",3,"click"],["tooltipEvent","hover|focus","tooltipPosition","bottom","tabindex","0",3,"accelaTooltip"],[1,"accelicons-link"],[1,"relatedRecordsFound"],[1,"mc-card-primary"],A,["pButton","","type","button","label","Make Primary",1,"p-button-text",3,"click"]]},template:function(ie,_e){1&ie&&(s.TgZ(0,"div"),s.YNc(1,nr,4,2,"span",0),s.YNc(2,Ye,3,1,"span",1),s.TgZ(3,"div",2),s.YNc(4,ce,2,0,"span",3),s.YNc(5,Se,1,0,"button",4),s._uU(6," | "),s.TgZ(7,"button",5),s.NdJ("click",function(gt){return _e.showViewForm(gt)}),s.qZA(),s._uU(8," | "),s.TgZ(9,"button",6),s.NdJ("click",function(gt){return _e.deleteRecord(gt)}),s.qZA()()()),2&ie&&(s.xp6(1),s.Q6J("ngIf",_e.validSuggestionLink),s.xp6(1),s.Q6J("ngIf",!_e.validSuggestionLink),s.xp6(2),s.Q6J("ngIf",_e.isPrimary()),s.xp6(1),s.Q6J("ngIf",!_e.isPrimary()))},dependencies:[i.Hq,t.O5,Fi._],styles:[".relatedRecordsFound[_ngcontent-%COMP%]{text-decoration:underline}.mc-card[_ngcontent-%COMP%]   .mc-card-body[_ngcontent-%COMP%]   .mc-card-column[_ngcontent-%COMP%]   .p-button.p-button-text[_ngcontent-%COMP%], .mc-card[_ngcontent-%COMP%]   .mc-card-body[_ngcontent-%COMP%]   .mc-card-column[_ngcontent-%COMP%]   .p-button.p-button-text[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .mc-card[_ngcontent-%COMP%]   .mc-card-body[_ngcontent-%COMP%]   .mc-card-column[_ngcontent-%COMP%]   .p-button-text[_ngcontent-%COMP%]:enabled:hover   .p-button-label[_ngcontent-%COMP%], .mc-card-item-actions[_ngcontent-%COMP%], .relatedRecordsFound[_ngcontent-%COMP%], .p-button-label[_ngcontent-%COMP%], .accelicons-link[_ngcontent-%COMP%]{color:#2a6bb8!important;background:white}.mc-card-required[_ngcontent-%COMP%]{color:#bc2f46}.p-button-label[_ngcontent-%COMP%]{background:white}"]})}return ae})();const Pe=["addressLayout"],$e=["parcelLayout"],ft=["ownerLayout"];function At(ae,Qe){1&ae&&(s.TgZ(0,"span",28),s.SDv(1,29),s.qZA())}function $t(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"li")(1,"apo-address-card",30),s.NdJ("recordEditClicked",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.viewAddressClick(_e))})("primaryRecordChanged",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.setPrimaryAddress(_e))})("recordDeleted",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.deleteRecordClick(_e))})("suggestionsFound",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.suggestionsFoundClick(_e))}),s.qZA()()}if(2&ae){const A=Qe.$implicit,ie=s.oxw(3);s.xp6(1),s.Q6J("address",A)("module",ie.module)("sourceFlag",ie.addressType)("xapoMode",ie.xapoMode)("adminMode",ie.adminMode)("apoType",ie.sourceType)}}function rn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"div",20)(1,"div",21),s._UZ(2,"i",22),s.TgZ(3,"span"),s.SDv(4,23),s.qZA(),s.YNc(5,At,2,0,"span",24),s.qZA(),s.TgZ(6,"ul"),s.YNc(7,$t,2,6,"li",25),s.qZA(),s.TgZ(8,"div",26)(9,"button",27),s.NdJ("click",function(_e){s.CHM(A);const Ke=s.oxw(2);return s.KtG(Ke.searchAddressClick(_e))}),s.qZA(),s.TgZ(10,"span"),s._uU(11),s.qZA()()()}if(2&ae){const A=s.oxw(2);s.xp6(5),s.Q6J("ngIf",A.addressRequired),s.xp6(2),s.Q6J("ngForOf",A.addressCards),s.xp6(4),s.AsE("\xa0(",null==A.addressCards?null:A.addressCards.length," of ",A.addressMax," max)")}}function jt(ae,Qe){1&ae&&(s.TgZ(0,"span",28),s.SDv(1,35),s.qZA())}function hn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"li")(1,"apo-parcel-card",36),s.NdJ("recordEditClicked",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.viewParcelClick(_e))})("primaryRecordChanged",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.setPrimaryParcel(_e))})("recordDeleted",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.deleteRecordClick(_e))})("suggestionsFound",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.suggestionsFoundClick(_e))}),s.qZA()()}if(2&ae){const A=Qe.$implicit,ie=s.oxw(3);s.xp6(1),s.Q6J("parcel",A)("module",ie.module)("sourceFlag",ie.parcelType)("xapoMode",ie.xapoMode)("adminMode",ie.adminMode)("apoType",ie.sourceType)}}function yn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"div",31)(1,"div",21),s._UZ(2,"i",32),s.TgZ(3,"span"),s.SDv(4,33),s.qZA(),s.YNc(5,jt,2,0,"span",24),s.qZA(),s.TgZ(6,"ul"),s.YNc(7,hn,2,6,"li",25),s.qZA(),s.TgZ(8,"div",26)(9,"button",34),s.NdJ("click",function(_e){s.CHM(A);const Ke=s.oxw(2);return s.KtG(Ke.searchParcelClick(_e))}),s.qZA(),s.TgZ(10,"span"),s._uU(11),s.qZA()()()}if(2&ae){const A=s.oxw(2);s.xp6(5),s.Q6J("ngIf",A.parcelRequired),s.xp6(2),s.Q6J("ngForOf",A.parcelCards),s.xp6(4),s.AsE("\xa0(",null==A.parcelCards?null:A.parcelCards.length," of ",A.parcelMax," max)")}}function Zn(ae,Qe){1&ae&&(s.TgZ(0,"span",28),s.SDv(1,41),s.qZA())}function jn(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"li")(1,"apo-owner-card",42),s.NdJ("recordEditClicked",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.viewOwnerClick(_e))})("primaryRecordChanged",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.setPrimaryOwner(_e))})("recordDeleted",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.deleteRecordClick(_e))})("suggestionsFound",function(_e){s.CHM(A);const Ke=s.oxw(3);return s.KtG(Ke.suggestionsFoundClick(_e))}),s.qZA()()}if(2&ae){const A=Qe.$implicit,ie=s.oxw(3);s.xp6(1),s.Q6J("owner",A)("module",ie.module)("sourceFlag",ie.ownerType)("xapoMode",ie.xapoMode)("adminMode",ie.adminMode)("apoType",ie.sourceType)}}function ti(ae,Qe){if(1&ae){const A=s.EpF();s.TgZ(0,"div",37)(1,"div",21),s._UZ(2,"i",38),s.TgZ(3,"span"),s.SDv(4,39),s.qZA(),s.YNc(5,Zn,2,0,"span",24),s.qZA(),s.TgZ(6,"ul"),s.YNc(7,jn,2,6,"li",25),s.qZA(),s.TgZ(8,"div",26)(9,"button",40),s.NdJ("click",function(_e){s.CHM(A);const Ke=s.oxw(2);return s.KtG(Ke.searchOwnerClick(_e))}),s.qZA(),s.TgZ(10,"span"),s._uU(11),s.qZA()()()}if(2&ae){const A=s.oxw(2);s.xp6(5),s.Q6J("ngIf",A.ownerRequired),s.xp6(2),s.Q6J("ngForOf",A.ownerCards),s.xp6(4),s.AsE("\xa0(",null==A.ownerCards?null:A.ownerCards.length," of ",A.ownerMax," max)")}}function On(ae,Qe){if(1&ae&&(s.TgZ(0,"div",16),s.YNc(1,rn,12,4,"div",17),s.YNc(2,yn,12,4,"div",18),s.YNc(3,ti,12,4,"div",19),s.qZA()),2&ae){const A=Qe.$implicit;s.xp6(1),s.Q6J("ngIf","A"===A),s.xp6(1),s.Q6J("ngIf","P"===A),s.xp6(1),s.Q6J("ngIf","O"===A)}}function qn(ae,Qe){if(1&ae&&(s.TgZ(0,"div")(1,"span",43),s.SDv(2,44),s.qZA(),s._UZ(3,"edit-address-form",45,10),s.TgZ(5,"span",43),s.SDv(6,46),s.qZA(),s._UZ(7,"edit-parcel-form",45,12),s.TgZ(9,"span",43),s.SDv(10,47),s.qZA(),s._UZ(11,"edit-owner-form",45,14),s.qZA()),2&ae){const A=s.oxw();s.xp6(3),s.Q6J("model",A.addressCards[0])("module",A.module)("mode",A.pageLayoutModes.ADMIN),s.xp6(4),s.Q6J("model",A.parcelCards[0])("module",A.module)("mode",A.pageLayoutModes.ADMIN),s.xp6(4),s.Q6J("model",A.ownerCards[0])("module",A.module)("mode",A.pageLayoutModes.ADMIN)}}const Ki=_.Bz.forChild([{path:"multi-search",component:(()=>{class ae{store;route;capModelService;messageService;settingsService;addressFormLayout;parcelFormLayout;ownerFormLayout;module;compOrder=["A","P","O"];xapoMode;adminMode;processing=!1;pageLayoutModes=T;sourceType;addressCards=new Array;selectedAddress;addressMode;addressRequired;showAddressForm;addressType;addressMax;parcelCards=new Array;selectedParcel;parcelMode;parcelRequired;showParcelForm;parcelType;parcelMax;ownerCards=new Array;selectedOwner;ownerMode;ownerRequired;showOwnerForm;ownerType;ownerMax;destroyActions=new p.x;constructor(A,ie,_e,Ke,gt){this.store=A,this.route=ie,this.capModelService=_e,this.messageService=Ke,this.settingsService=gt,this.route.queryParams.subscribe(_n=>{this.module=_n.Module,this.addressMax=_n.addressMax??1,this.parcelMax=_n.parcelMax??1,this.ownerMax=_n.ownerMax??1,this.addressType=_n.addressType,this.parcelType=_n.parcelType,this.ownerType=_n.ownerType,this.addressRequired="Y"===_n.addressRequired,this.parcelRequired="Y"===_n.parcelRequired,this.ownerRequired="Y"===_n.ownerRequired,this.compOrder=[..._n.compOrder]})}ngOnInit(){this.store.select(W.e).pipe((0,C.R)(this.destroyActions)).subscribe({next:A=>{this.adminMode=A.AdminMode,this.addressMode=T.ADMIN,this.ownerMode=T.ADMIN,this.parcelMode=T.ADMIN}}),this.settingsService.isXAPOAgency().pipe((0,C.R)(this.destroyActions)).subscribe(A=>{this.xapoMode=A,this.capModelService.getAddressesFromCapModel(this.module).pipe((0,C.R)(this.destroyActions)).subscribe(ie=>{ie&&ie.length>0&&(I(ie,"primaryFlag","DESC"),this.addressCards=ie,this.setPrimaryAddressIfNeeded())},ie=>{this.handleError(ie)}),this.capModelService.getParcelsFromCapModel(this.module).pipe((0,C.R)(this.destroyActions)).subscribe(ie=>{ie&&ie.length>0&&(I(ie,"primaryParcelFlag","DESC"),this.parcelCards=ie,this.setPrimaryParcelIfNeeded())},ie=>{this.handleError(ie)}),this.capModelService.getOwnersFromCapModel(this.module).pipe((0,C.R)(this.destroyActions)).subscribe(ie=>{ie&&ie.length>0&&(I(ie,"isPrimary","DESC"),this.ownerCards=ie,this.setPrimaryOwnerIfNeeded())},ie=>{this.handleError(ie)})})}ngAfterViewInit(){window.parent.postMessage("CommunityView:Resize","*")}ngOnDestroy(){this.destroyActions.next(null),this.destroyActions.complete()}handleError(A){"string"!=typeof A&&(A=A.error),this.messageService.clear(),this.messageService.add({severity:"error",summary:A,closable:!1})}setPrimaryAddressIfNeeded(){this.addressCards.length>0&&(this.addressCards.find(A=>A.primaryFlag===h.Y)||(this.addressCards[0].primaryFlag=h.Y))}setPrimaryParcelIfNeeded(){this.parcelCards.length>0&&(this.parcelCards.find(A=>A.primaryParcelFlag===h.Y)||(this.parcelCards[0].primaryParcelFlag=h.Y))}setPrimaryOwnerIfNeeded(){this.ownerCards.length>0&&(this.ownerCards.find(A=>A.isPrimary===h.Y)||(this.ownerCards[0].isPrimary=h.Y))}setPrimaryAddress(A){this.addressCards.forEach(ie=>{ie.primaryFlag=h.N}),A.primaryFlag=h.Y,this.saveChanges(N.Address)}suggestionsFoundClick(A){1===A?.addresses.length&&this.addAddresses(A.addresses),1===A?.parcels.length&&this.addParcels(A.parcels),1===A?.owners.length&&this.addOwners(A.owners)}setPrimaryParcel(A){this.parcelCards.forEach(ie=>{ie.primaryParcelFlag=h.N}),A.primaryParcelFlag=h.Y,this.saveChanges(N.Address)}setPrimaryOwner(A){this.ownerCards.forEach(ie=>{ie.isPrimary=h.N}),A.isPrimary=h.Y,this.saveChanges(N.Owner)}addAddressClick(A){if(!this.adminMode&&!this.processing){if(this.processing=!0,this.addressMax>this.addressCards.length){this.addressMode=T.EDIT;const ie=new d;this.addressCards.push(ie),this.selectedAddress=ie,this.addressFormLayout.updateAddressFormInstance(ie),this.showAddressForm=!0}else this.messageService.clear(),this.messageService.add({severity:"error",summary:"A maximum of " + this.addressMax + " address(es) can be added to this record.",closable:!1});this.processing=!1}}searchAddressClick(A){this.adminMode||this.processing||(this.processing=!0,this.addressMax>this.addressCards.length?(this.sourceType=N.Address,this.addressMode=T.SEARCH,this.addressFormLayout.updateAddressFormInstance(new d),this.showAddressForm=!0):(this.messageService.clear(),this.messageService.add({severity:"error",summary:"A maximum of " + this.addressMax + " address(es) can be added to this record.",closable:!1})),this.processing=!1)}viewAddressClick(A){this.adminMode||(this.processing=!0,this.selectedAddress=A,this.addressFormLayout.updateAddressFormInstance(A),this.addressMode=T.VIEW,this.showAddressForm=!0,this.processing=!1)}addParcelClick(A){if(this.adminMode||this.processing)return;const ie=new f;this.parcelCards.push(ie),this.selectedParcel=ie,this.parcelFormLayout.updateFormInstance(ie),this.showParcelForm=!0}searchParcelClick(A){this.adminMode||this.processing||(this.processing=!0,this.parcelMax>this.parcelCards.length?(this.sourceType=N.Parcel,this.parcelMode=T.SEARCH,this.parcelFormLayout.updateFormInstance(new f),this.showParcelForm=!0):(this.messageService.clear(),this.messageService.add({severity:"error",summary:"A maximum of " + this.parcelMax + " parcel(s) can be added to this record.",closable:!1})),this.processing=!1)}viewParcelClick(A){this.adminMode||(this.processing=!0,this.selectedParcel=A,this.parcelFormLayout.updateFormInstance(A),this.parcelMode=T.VIEW,this.showParcelForm=!0,this.processing=!1)}addOwnerClick(A){if(this.adminMode||this.processing)return;const ie=new g;this.ownerCards.push(ie),this.selectedOwner=ie,this.ownerFormLayout.updateFormInstance(ie),this.showOwnerForm=!0}searchOwnerClick(A){this.adminMode||this.processing||(this.processing=!0,this.ownerMax>this.ownerCards.length?(this.sourceType=N.Owner,this.ownerMode=T.SEARCH,this.ownerFormLayout.updateFormInstance(new g),this.showOwnerForm=!0):(this.messageService.clear(),this.messageService.add({severity:"error",summary:"A maximum of " + this.ownerMax + " owner(s) can be added to this record.",closable:!1})),this.processing=!1)}viewOwnerClick(A){this.adminMode||(this.processing=!0,this.selectedOwner=A,this.ownerFormLayout.updateFormInstance(A),this.ownerMode=T.VIEW,this.showOwnerForm=!0,this.processing=!1)}editRecordClick(A){this.adminMode||this.processing||(A.hasOwnProperty("addressId")?(this.selectedAddress=A,this.showAddressForm=!0):A.hasOwnProperty("parcelNumber")?(this.selectedParcel=A,this.showParcelForm=!0):A.hasOwnProperty("ownerNumber")&&(this.selectedOwner=A,this.showOwnerForm=!0))}addAddress(A){if(this.adminMode||this.processing)return;let ie=-1;ie=this.addressCards.findIndex(this.xapoMode?_e=>_e.UID===A.UID:_e=>_e.addressId===A.addressId),ie>=0?this.addressCards[ie]=A:this.addressCards.push(A),this.setPrimaryAddressIfNeeded()}addParcel(A){if(this.adminMode||this.processing)return;let ie=-1;ie=this.parcelCards.findIndex(this.xapoMode?_e=>_e.UID===A.UID:_e=>_e.parcelNumber===A.parcelNumber),ie>=0?this.parcelCards[ie]=A:this.parcelCards.push(A),this.setPrimaryParcelIfNeeded()}addOwner(A){if(this.adminMode||this.processing)return;let ie=-1;ie=this.ownerCards.findIndex(this.xapoMode?_e=>_e.UID===A.UID:_e=>_e.ownerNumber===A.ownerNumber),ie>=0?this.ownerCards[ie]=A:this.ownerCards.push(A),this.setPrimaryOwnerIfNeeded()}deleteRecordClick(A){if(this.adminMode||this.processing)return;let _e,ie=!1;if(A.hasOwnProperty("addressId")||A.hasOwnProperty("refAddressId")){_e=N.Address,this.selectedAddress=null,this.showAddressForm=!1;const Ke=A;let gt=-1;gt=this.addressCards.findIndex(this.xapoMode?An=>An.UID===Ke.UID:An=>An.addressId===Ke.addressId);const _n=Ke.primaryFlag===h.Y;gt>=0&&(this.addressCards.splice(gt,1),ie=!0),_n&&this.addressCards.length>0&&this.setPrimaryAddressIfNeeded()}else if(A.hasOwnProperty("parcelNumber")){_e=N.Parcel,this.selectedParcel=null,this.showParcelForm=!1;const Ke=A;let gt=-1;gt=this.parcelCards.findIndex(this.xapoMode?An=>An.UID===Ke.UID:An=>An.parcelNumber===Ke.parcelNumber);const _n=Ke.primaryParcelFlag===h.Y;gt>=0&&(this.parcelCards.splice(gt,1),ie=!0),_n&&this.parcelCards.length>0&&this.setPrimaryParcelIfNeeded()}else if(A.hasOwnProperty("ownerNumber")){_e=N.Owner,this.selectedOwner=null,this.showOwnerForm=!1;const Ke=A;let gt=-1;gt=this.ownerCards.findIndex(this.xapoMode?An=>An.UID===Ke.UID:An=>An.ownerNumber===Ke.ownerNumber);const _n=Ke.isPrimary===h.Y;gt>=0&&(this.ownerCards.splice(gt,1),ie=!0),_n&&this.ownerCards.length>0&&this.setPrimaryOwnerIfNeeded()}else console.log("Error: Unable to identify record for deletion"),console.log(A);ie&&this.saveChanges(_e)}filterAddress=(A,ie,_e)=>this.xapoMode?_e.findIndex(Ke=>Ke.UID===A.UID)<0:A.addressId?_e.findIndex(Ke=>Ke.addressId===A.addressId)<0:_e.findIndex(Ke=>Ke.refAddressId===A.refAddressId)<0;filterParcels=(A,ie,_e)=>this.xapoMode?_e.findIndex(Ke=>Ke.UID===A.UID)<0:_e.findIndex(Ke=>Ke.parcelNumber===A.parcelNumber)<0;filterOwners=(A,ie,_e)=>this.xapoMode?_e.findIndex(Ke=>Ke.UID===A.UID)<0:_e.findIndex(Ke=>Ke.ownerNumber===A.ownerNumber)<0;resize(A){window.parent.postMessage("CommunityView:ResizeDialog","*")}collapseSize(A){window.parent.postMessage("CommunityView:RemoveMin","*")}closeAddressDialog(A){this.showAddressForm=!1}closeParcelDialog(A){this.showParcelForm=!1}closeOwnerDialog(A){this.showOwnerForm=!1}addAddresses(A){A.forEach(ie=>{let _e=-1;this.xapoMode?_e=this.addressCards.findIndex(Ke=>Ke.UID===ie.UID):ie.refAddressId?_e=this.addressCards.findIndex(Ke=>Ke.refAddressId===ie.refAddressId):ie.addressId&&(_e=this.addressCards.findIndex(Ke=>Ke.addressId===ie.addressId)),_e>=0&&this.addressCards.splice(_e,1),this.addressCards.push(ie)}),this.showAddressForm=!1,this.setPrimaryAddressIfNeeded(),this.saveChanges(N.Address)}addParcels(A){A.forEach(ie=>{let _e=-1;_e=this.parcelCards.findIndex(this.xapoMode?Ke=>Ke.UID===ie.UID:Ke=>Ke.parcelNumber===ie.parcelNumber),_e>=0&&this.parcelCards.splice(_e,1),this.parcelCards.push(ie)}),this.showParcelForm=!1,this.setPrimaryParcelIfNeeded(),this.saveChanges(N.Parcel)}addOwners(A){A.forEach(ie=>{let _e=-1;_e=this.ownerCards.findIndex(this.xapoMode?Ke=>Ke.UID===ie.UID:Ke=>Ke.ownerNumber===ie.ownerNumber),_e>=0&&this.ownerCards.splice(_e,1),this.ownerCards.push(ie)}),this.showOwnerForm=!1,this.setPrimaryOwnerIfNeeded(),this.saveChanges(N.Owner)}saveChanges(A){if(this.adminMode||this.processing)return;let ie=!0;A===N.Address&&this.capModelService.saveAddressesToCapModel(this.addressCards,this.module).pipe((0,C.R)(this.destroyActions)).subscribe(_e=>{"success"!==_e&&(ie=!1)},_e=>{this.handleError(_e)}),A===N.Parcel&&this.capModelService.saveParcelsToCapModel(this.parcelCards,this.module).pipe((0,C.R)(this.destroyActions)).subscribe(_e=>{"success"!==_e&&(ie=!1)}),A===N.Owner&&this.capModelService.saveOwnersToCapModel(this.ownerCards,this.module).pipe((0,C.R)(this.destroyActions)).subscribe(_e=>{"success"!==_e&&(ie=!1)},_e=>{this.handleError(_e)}),this.messageService.clear(),this.messageService.add(ie?{severity:"success",summary:"Your changes were applied successfully.",closable:!1}:{severity:"error",summary:"An Error occured while applying your changes. Please try again.",closable:!1})}static \u0275fac=function(ie){return new(ie||ae)(s.Y36(qi.yh),s.Y36(_.gz),s.Y36(oi.F),s.Y36(ct.ez),s.Y36(wi.R))};static \u0275cmp=s.Xpm({type:ae,selectors:[["multi-apo-screen"]],viewQuery:function(ie,_e){if(1&ie&&(s.Gf(Pe,5),s.Gf($e,5),s.Gf(ft,5)),2&ie){let Ke;s.iGM(Ke=s.CRH())&&(_e.addressFormLayout=Ke.first),s.iGM(Ke=s.CRH())&&(_e.parcelFormLayout=Ke.first),s.iGM(Ke=s.CRH())&&(_e.ownerFormLayout=Ke.first)}},decls:22,vars:14,consts:function(){let A,ie,_e,Ke,gt,_n,An,mi,eo,So,ji,Ho,Xi,Ri,Ji,ko,vo;return A="When you add an address, parcel, or owner (APO), we will look for any associated items and suggest them. Multiple APOs can be added to a single application.",ie=" Project Location ",_e="Enter Address Information",Ke="Close",gt="Enter Parcel Information",_n="Close",An="Enter Owner Information",mi="Close",eo="Addresses",So="(Required)",ji="Parcels",Ho="(Required)",Xi="Owners",Ri="(Required)",Ji="Enter Address Information",ko="Enter Parcel Information",vo="Enter Owner Information",[[1,"apo-noteTxt"],A,[1,"accela-theme","mc-card"],[1,"mc-card-header"],ie,[1,"mc-card-instruct"],[1,"mc-card-body"],["class","mc-card-column",4,"ngFor","ngForOf"],["modal","true","header",_e,"closeAriaLabel",Ke,3,"visible","visibleChange","onShow","onHide"],[3,"model","module","mode","saveChanges","closeDialog"],["addressLayout",""],["modal","true","header",gt,"closeAriaLabel",_n,3,"visible","visibleChange","onShow","onHide"],["parcelLayout",""],["modal","true","header",An,"closeAriaLabel",mi,3,"visible","visibleChange","onShow","onHide"],["ownerLayout",""],[4,"ngIf"],[1,"mc-card-column"],["class","apo-address-col",4,"ngIf"],["class","apo-parcel-col",4,"ngIf"],["class","apo-owner-col",4,"ngIf"],[1,"apo-address-col"],[1,"mc-card-column-label"],[1,"accelicons-addresses"],eo,["class","mc-card-required",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"mc-card-column-footer"],["pButton","","type","button","label","Add Address","icon","accelicons-plus","iconPos","left",3,"click"],[1,"mc-card-required"],So,[3,"address","module","sourceFlag","xapoMode","adminMode","apoType","recordEditClicked","primaryRecordChanged","recordDeleted","suggestionsFound"],[1,"apo-parcel-col"],[1,"accelicons-apportionment"],ji,["pButton","","type","button","label","Add Parcel","icon","accelicons-plus","iconPos","left",3,"click"],Ho,[3,"parcel","module","sourceFlag","xapoMode","adminMode","apoType","recordEditClicked","primaryRecordChanged","recordDeleted","suggestionsFound"],[1,"apo-owner-col"],[1,"accelicons-people"],Xi,["pButton","","type","button","label","Add Owner","icon","accelicons-plus","iconPos","left",3,"click"],Ri,[3,"owner","module","sourceFlag","xapoMode","adminMode","apoType","recordEditClicked","primaryRecordChanged","recordDeleted","suggestionsFound"],["id","pr_id_3-label",1,"p-dialog-title","dialog-title"],Ji,[3,"model","module","mode"],ko,vo]},template:function(ie,_e){1&ie&&(s.TgZ(0,"div",0)(1,"strong"),s._uU(2,"Note: "),s.qZA(),s.TgZ(3,"span"),s.SDv(4,1),s.qZA()(),s.TgZ(5,"div",2)(6,"div",3),s.SDv(7,4),s.qZA(),s._UZ(8,"div",5),s.TgZ(9,"div",6),s.YNc(10,On,4,3,"div",7),s.qZA()(),s.TgZ(11,"p-dialog",8),s.NdJ("visibleChange",function(gt){return _e.showAddressForm=gt})("onShow",function(gt){return _e.resize(gt)})("onHide",function(gt){return _e.collapseSize(gt)}),s.TgZ(12,"edit-address-form",9,10),s.NdJ("saveChanges",function(gt){return _e.addAddresses(gt)})("closeDialog",function(gt){return _e.closeAddressDialog(gt)}),s.qZA()(),s.TgZ(14,"p-dialog",11),s.NdJ("visibleChange",function(gt){return _e.showParcelForm=gt})("onShow",function(gt){return _e.resize(gt)})("onHide",function(gt){return _e.collapseSize(gt)}),s.TgZ(15,"edit-parcel-form",9,12),s.NdJ("saveChanges",function(gt){return _e.addParcels(gt)})("closeDialog",function(gt){return _e.closeParcelDialog(gt)}),s.qZA()(),s.TgZ(17,"p-dialog",13),s.NdJ("visibleChange",function(gt){return _e.showOwnerForm=gt})("onShow",function(gt){return _e.resize(gt)})("onHide",function(gt){return _e.collapseSize(gt)}),s.TgZ(18,"edit-owner-form",9,14),s.NdJ("saveChanges",function(gt){return _e.addOwners(gt)})("closeDialog",function(gt){return _e.closeOwnerDialog(gt)}),s.qZA()(),s._UZ(20,"br"),s.YNc(21,qn,13,9,"div",15)),2&ie&&(s.xp6(10),s.Q6J("ngForOf",_e.compOrder),s.xp6(1),s.Q6J("visible",_e.showAddressForm),s.xp6(1),s.Q6J("model",_e.selectedAddress)("module",_e.module)("mode",_e.addressMode),s.xp6(2),s.Q6J("visible",_e.showParcelForm),s.xp6(1),s.Q6J("model",_e.selectedParcel)("module",_e.module)("mode",_e.parcelMode),s.xp6(2),s.Q6J("visible",_e.showOwnerForm),s.xp6(1),s.Q6J("model",_e.selectedOwner)("module",_e.module)("mode",_e.ownerMode),s.xp6(3),s.Q6J("ngIf",_e.adminMode))},dependencies:[i.Hq,L.V,t.sg,t.O5,Vo,qo,Me,Pn,yi,Io],styles:["[_nghost-%COMP%]     .mc-card{color:#414a56}[_nghost-%COMP%]     .mc-card .mc-card-body .mc-card-column .mc-card-column-label .mc-card-required{color:#bc2f46}[_nghost-%COMP%]     .mc-card .mc-card-body .mc-card-column ul li .mc-card-item-actions{color:#fff}.apo-address-col[_ngcontent-%COMP%], .apo-parcel-col[_ngcontent-%COMP%], .apo-owner-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.mc-card-column-footer[_ngcontent-%COMP%]   .p-button[_ngcontent-%COMP%], div.mc-card-column-footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{border-color:transparent}.dialog-title[_ngcontent-%COMP%]{font-size:1em;font-weight:700}.apo-noteTxt[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:16px;line-height:22px;letter-spacing:0px;text-align:left;color:#000;margin-bottom:32px}"]})}return ae})()},{path:"",redirectTo:"new",pathMatch:"full"},{path:"**",redirectTo:"/404"}]);let Vt=(()=>{class ae{static \u0275fac=function(ie){return new(ie||ae)};static \u0275mod=s.oAB({type:ae});static \u0275inj=s.cJS({providers:[t.uU],imports:[Ki,i.hJ,r.d,L.S,t.ez,u.m,M.U$,v.EV,y.z]})}return ae})()},3462:(qe,re,l)=>{"use strict";l.d(re,{s:()=>r});var t=l(2560),i=l(6328);let r=(()=>{class L{clickEmitter=new t.vpe(!0);iconName;iconPosition;labelContent;processing;accessButton=null;constructor(){}ngOnInit(){}click(v){this.clickEmitter.emit(v)}static \u0275fac=function(y){return new(y||L)};static \u0275cmp=t.Xpm({type:L,selectors:[["accela-button-primary"]],inputs:{iconName:["icon","iconName"],iconPosition:["iconPos","iconPosition"],labelContent:["label","labelContent"],processing:["disabled","processing"],accessButton:"accessButton"},outputs:{clickEmitter:"onClicked"},decls:2,vars:5,consts:[[1,"ACA_Button","button-primary"],["pButton","",1,"ACA_Button",3,"label","icon","iconPos","disabled","click"]],template:function(y,u){1&y&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(p){return u.click(p)}),t.qZA()()),2&y&&(t.xp6(1),t.Q6J("label",u.labelContent)("icon",u.iconName)("iconPos",u.iconPosition)("disabled",u.processing),t.uIk("accessKey",u.accessButton))},dependencies:[i.Hq],styles:[".p-button[_ngcontent-%COMP%]{height:40px}button[_ngcontent-%COMP%]{border:none}@media only screen and (max-device-width: 480px),(max-width: 480px){.p-button[_ngcontent-%COMP%]{width:90VW}}\n/*# sourceMappingURL=accela-button-primary.component.css.map*/"]})}return L})()},4050:(qe,re,l)=>{"use strict";l.d(re,{o:()=>r});var t=l(2560),i=l(6328);let r=(()=>{class L{clickEmitter=new t.vpe(!0);iconName;labelContent;processing;accessButton=null;constructor(){}ngOnInit(){}click(v){this.clickEmitter.emit(v)}static \u0275fac=function(y){return new(y||L)};static \u0275cmp=t.Xpm({type:L,selectors:[["accela-button-secondary"]],inputs:{iconName:["icon","iconName"],labelContent:["label","labelContent"],processing:["disabled","processing"],accessButton:"accessButton"},outputs:{clickEmitter:"click"},decls:1,vars:4,consts:[["pButton","","styleClass","button-outline","iconPos","left",1,"p-button-outlined","ACA_Button","button-secondary",3,"label","icon","disabled","click"]],template:function(y,u){1&y&&(t.TgZ(0,"button",0),t.NdJ("click",function(p){return u.click(p)}),t.qZA()),2&y&&(t.Q6J("label",u.labelContent)("icon",u.iconName)("disabled",u.processing),t.uIk("accessKey",u.accessButton))},dependencies:[i.Hq],styles:[".p-button[_ngcontent-%COMP%]{height:40px}.p-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{text-transform:uppercase}@media only screen and (max-device-width: 480px),(max-width: 480px){.p-button[_ngcontent-%COMP%]{width:90VW}}\n/*# sourceMappingURL=accela-button-secondary.component.css.map*/"]})}return L})()},4227:(qe,re,l)=>{"use strict";l.d(re,{D:()=>_});var t=l(2560),i=l(4666),r=l(6803),L=l(749),M=l(9416);const v=["accelaControlDiv"];function y(p,C){if(1&p&&(t.TgZ(0,"small",6),t._uU(1),t.qZA()),2&p){const g=t.oxw(2);t.xp6(1),t.hij(" ",g.getRequiredFieldValidationMsg()," ")}}function u(p,C){if(1&p&&(t.TgZ(0,"div",4),t.YNc(1,y,2,1,"small",5),t.qZA()),2&p){const g=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==g.controlRef||null==g.controlRef.errors?null:g.controlRef.errors.required)&&((null==g.controlRef?null:g.controlRef.touched)||(null==g.controlRef?null:g.controlRef.dirty)))}}let _=(()=>{class p{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;accelaControlDiv;oncbChange=new t.vpe;label;controlData;Value;ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",g=>{this.adminSelect(g)}))}getDivElementId(){return"div_"+this.controlData.name}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}adminSelect(g){const f=g;f.controlData=this.controlData,f.elementRef=g.target,this.selectionEvent.emit(f)}handleInputChange(g){this.oncbChange.emit(g.checked)}static \u0275fac=function(f){return new(f||p)};static \u0275cmp=t.Xpm({type:p,selectors:[["accela-checkbox-input"]],viewQuery:function(f,d){if(1&f&&t.Gf(v,5),2&f){let h;t.iGM(h=t.CRH())&&(d.accelaControlDiv=h.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",oncbChange:"oncbChange"},decls:4,vars:14,consts:[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],["binary","true","tooltipEvent","hover|focus","tooltipPosition","bottom",3,"formControlName","name","id","ariaLabel","required","readonly","accelaTooltip","appendTo","escape","label","onChange"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(f,d){if(1&f&&(t.TgZ(0,"div",0,1)(2,"p-checkbox",2),t.NdJ("onChange",function(T){return d.handleInputChange(T)}),t.qZA()(),t.YNc(3,u,2,1,"div",3)),2&f){const h=t.MAs(1);t.Q6J("id",d.getDivElementId())("formGroup",d.controlRef.parent),t.xp6(2),t.Q6J("formControlName",d.controlData.name)("name",d.controlData.name)("id",d.controlData.name)("ariaLabel",d.label)("required",d.controlData.required)("readonly",d.controlData.readOnly||d.readonlyMode)("accelaTooltip",d.controlData.tooltip)("appendTo",h)("escape",!1)("label",d.label),t.uIk("aria-required",d.controlData.required),t.xp6(1),t.Q6J("ngIf",!d.adminMode)}},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.sg,r.u,L.XZ,M._],styles:["[_nghost-%COMP%]     .p-checkbox-label{margin-left:1rem}\n/*# sourceMappingURL=accela-checkbox-input.component.css.map*/"]})}return p})()},2527:(qe,re,l)=>{"use strict";l.d(re,{f:()=>_});var t=l(2560),i=l(4666),r=l(6803),L=l(2547),M=l(9416);const v=["accelaControlDiv"];function y(p,C){if(1&p&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&p){const g=t.oxw(2);t.xp6(1),t.hij(" ",g.getRequiredFieldValidationMsg()," ")}}function u(p,C){if(1&p&&(t.TgZ(0,"div",5),t.YNc(1,y,2,1,"small",6),t.qZA()),2&p){const g=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==g.controlRef||null==g.controlRef.errors?null:g.controlRef.errors.required)&&((null==g.controlRef?null:g.controlRef.touched)||(null==g.controlRef?null:g.controlRef.dirty)))}}let _=(()=>{class p{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;label;controlData;value;ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",g=>{this.adminSelect(g)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}adminSelect(g){const f=g;f.controlData=this.controlData,f.elementRef=g.target,this.selectionEvent.emit(f)}emitBlurEvent(g){this.focusChange.emit(this.controlRef)}static \u0275fac=function(f){return new(f||p)};static \u0275cmp=t.Xpm({type:p,selectors:[["accela-date-input"]],viewQuery:function(f,d){if(1&f&&t.Gf(v,5),2&f){let h;t.iGM(h=t.CRH())&&(d.accelaControlDiv=h.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:21,consts:[[1,"datepicker","accelaControl","textinput",3,"id","formGroup"],["accelaControlDiv",""],[3,"for","id"],["selectionMode","single","appendTo","body","monthNavigator","true","yearNavigator","true","yearRange","2000:2030","tooltipEvent","hover|focus","tooltipPosition","bottom",3,"formControlName","name","id","ariaLabelledBy","selectOtherMonths","showButtonBar","disabled","required","readonlyInput","placeholder","accelaTooltip","dateFormat","escape","onBlur"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(f,d){1&f&&(t.TgZ(0,"div",0,1)(2,"label",2),t._uU(3),t.qZA(),t.TgZ(4,"p-calendar",3),t.NdJ("onBlur",function(T){return d.emitBlurEvent(T)}),t.qZA()(),t.YNc(5,u,2,1,"div",4)),2&f&&(t.Q6J("id",d.getDivElementId())("formGroup",d.controlRef.parent),t.xp6(2),t.Q6J("for",d.controlData.name)("id",d.getLabelElementId()),t.uIk("data-required",d.controlData.required),t.xp6(1),t.Oqu(d.label),t.xp6(1),t.Q6J("formControlName",d.controlData.name)("name",d.controlData.name)("id",d.controlData.name)("ariaLabelledBy",d.getLabelElementId())("selectOtherMonths",!0)("showButtonBar",!0)("disabled",d.adminMode)("required",d.controlData.required)("readonlyInput",d.controlData.readOnly||d.readonlyMode)("placeholder",d.controlData.placeholder)("accelaTooltip",d.controlData.tooltip)("dateFormat",d.controlData.optionKey)("escape",!1),t.uIk("aria-required",d.controlData.required),t.xp6(1),t.Q6J("ngIf",!d.adminMode))},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.sg,r.u,L.f,M._],styles:[".p-datepicker select{height:2.5em}[_nghost-%COMP%]     p-calendar span{width:100%}[_nghost-%COMP%]     .datepicker label{z-index:12!important}\n/*# sourceMappingURL=accela-date-input.component.css.map*/"]})}return p})()},970:(qe,re,l)=>{"use strict";l.d(re,{T:()=>p});var t=l(2560),i=l(4666),r=l(6803),L=l(6999),M=l(9416);const v=["accelaControlDiv"],y=["dropdownWrapper"];function u(C,g){if(1&C&&(t.TgZ(0,"small",9),t._uU(1),t.qZA()),2&C){const f=t.oxw(2);t.xp6(1),t.hij(" ",f.getRequiredFieldValidationMsg()," ")}}function _(C,g){if(1&C&&(t.TgZ(0,"div",7),t.YNc(1,u,2,1,"small",8),t.qZA()),2&C){const f=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==f.controlRef||null==f.controlRef.errors?null:f.controlRef.errors.required)&&((null==f.controlRef?null:f.controlRef.touched)||(null==f.controlRef?null:f.controlRef.dirty)))}}let p=(()=>{class C{renderer;controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;accelaDropdown;label;controlData;Value;constructor(f){this.renderer=f}ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",T=>{this.adminSelect(T)})),this.accelaDropdown.labelId=this.getLabelElementId();const f=this.accelaControlDiv.nativeElement.querySelector("div[role='button']");f&&this.renderer.setAttribute(f,"aria-label","Select "+this.controlData.label);const d=this.accelaControlDiv.nativeElement.querySelector("#"+this.controlData.name+"Input");d&&(this.renderer.removeAttribute(d,"aria-activedescendant"),this.renderer.setAttribute(d,"aria-label",this.controlData.label));const h=this.accelaControlDiv.nativeElement.querySelectorAll("#"+this.getLabelElementId());h&&h.forEach((T,b)=>{this.renderer.setAttribute(T,"id",this.controlData.name+"SelectedItem_"+b)})}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"InputLabel"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}adminSelect(f){const d=f;d.controlData=this.controlData,d.elementRef=f.target,this.selectionEvent.emit(d)}emitBlurEvent(f){null!=this.controlRef&&null!=this.controlRef.value&&this.controlRef.setValue(this.controlRef.value.trim()),this.focusChange.emit(this.controlRef)}static \u0275fac=function(d){return new(d||C)(t.Y36(t.Qsj))};static \u0275cmp=t.Xpm({type:C,selectors:[["accela-dropdown-input"]],viewQuery:function(d,h){if(1&d&&(t.Gf(v,5),t.Gf(y,5)),2&d){let T;t.iGM(T=t.CRH())&&(h.accelaControlDiv=T.first),t.iGM(T=t.CRH())&&(h.accelaDropdown=T.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:8,vars:21,consts:function(){let f,d;return f="Select",d="Select",[[1,"accelaControl","textinput",3,"id","formGroup"],["accelaControlDiv",""],[1,"dropdown"],[3,"for","id"],["aria-placeholder",f,"placeholder",d,"tooltipEvent","hover|focus","tooltipPosition","bottom",3,"formControlName","name","inputId","ariaLabelledBy","options","showClear","readonly","virtualScroll","editable","id","accelaTooltip","escape","required","onBlur"],["dropdownWrapper",""],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]]},template:function(d,h){1&d&&(t.TgZ(0,"div",0,1)(2,"div",2)(3,"label",3),t._uU(4),t.qZA(),t.TgZ(5,"p-dropdown",4,5),t.NdJ("onBlur",function(b){return h.emitBlurEvent(b)}),t.qZA()()(),t.YNc(7,_,2,1,"div",6)),2&d&&(t.Q6J("id",h.getDivElementId())("formGroup",h.controlRef.parent),t.xp6(3),t.Q6J("for",h.controlData.name)("id",h.getLabelElementId()),t.uIk("data-required",h.controlData.required),t.xp6(1),t.Oqu(h.label),t.xp6(1),t.Q6J("formControlName",h.controlData.name)("name",h.controlData.name)("inputId",h.controlData.name+"Input")("ariaLabelledBy",h.getLabelElementId())("options",h.controlData.options)("showClear",!0)("readonly",h.controlData.readOnly||h.readonlyMode)("virtualScroll",!1)("editable","EDIT"===h.controlData.optionKey)("id",h.controlData.name)("accelaTooltip",h.controlData.tooltip)("escape",!1)("required",h.controlData.required),t.uIk("aria-required",h.controlData.required),t.xp6(2),t.Q6J("ngIf",!h.adminMode))},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.sg,r.u,L.Lt,M._],styles:[".dropdownLabel[_ngcontent-%COMP%]{position:absolute;top:.5rem;left:1.25rem;z-index:1002;text-transform:uppercase;font-weight:700;display:block;padding-right:0;font-size:.75rem;letter-spacing:.25pt;color:#000}.dropdown[_ngcontent-%COMP%]   .floating-label[_ngcontent-%COMP%]{top:.56rem!important;left:1.25rem;margin-top:0;position:absolute;z-index:12;color:#414a56;text-transform:uppercase;font-weight:700;display:block!important;font-size:.75rem}[_nghost-%COMP%]     #p-highlighted-option>span{background-color:#0755a7}[_nghost-%COMP%]     .textinput .p-inputtext{border:none!important}[_nghost-%COMP%]     .p-dropdown{width:100%}[_nghost-%COMP%]     .dropdown p-dropdown.ng-invalid .p-dropdown{border:1px solid #bc2f46!important}[_nghost-%COMP%]     .dropdown p-dropdown.ng-pristine .p-dropdown{border:1px solid #b6b6b6!important}\n/*# sourceMappingURL=accela-dropdown-input.component.css.map*/"]})}return C})()},8244:(qe,re,l)=>{"use strict";l.d(re,{a:()=>C});var t=l(2560),i=l(4666),r=l(6803),L=l(9906),M=l(9416),v=l(3342);const y=["accelaControlDiv"];function u(g,f){if(1&g&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&g){const d=t.oxw(2);t.xp6(1),t.hij(" ",d.getEmailFieldValidationMsg()," ")}}function _(g,f){if(1&g&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&g){const d=t.oxw(2);t.xp6(1),t.hij(" ",d.getRequiredFieldValidationMsg()," ")}}function p(g,f){if(1&g&&(t.TgZ(0,"div",5),t.YNc(1,u,2,1,"small",6),t.YNc(2,_,2,1,"small",6),t.qZA()),2&g){const d=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==d.controlRef||null==d.controlRef.errors?null:d.controlRef.errors.email)&&((null==d.controlRef?null:d.controlRef.touched)||(null==d.controlRef?null:d.controlRef.dirty))),t.xp6(1),t.Q6J("ngIf",(null==d.controlRef||null==d.controlRef.errors?null:d.controlRef.errors.required)&&((null==d.controlRef?null:d.controlRef.touched)||(null==d.controlRef?null:d.controlRef.dirty)))}}let C=(()=>{class g{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;emailValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;label;controlData;Value;ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",d=>{this.adminSelect(d)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}getEmailFieldValidationMsg(){return this.emailValidationMsg+" "+this.label}adminSelect(d){const h=d;h.controlData=this.controlData,h.elementRef=d.target,this.selectionEvent.emit(h)}emitBlurEvent(d){this.focusChange.emit(this.controlRef)}static \u0275fac=function(h){return new(h||g)};static \u0275cmp=t.Xpm({type:g,selectors:[["accela-email-input"]],viewQuery:function(h,T){if(1&h&&t.Gf(y,5),2&h){let b;t.iGM(b=t.CRH())&&(T.accelaControlDiv=b.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg",emailValidationMsg:"emailValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:18,consts:[[1,"textinput","email","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],[3,"for","id"],["inputTrim","","type","email","maxlength","70","tooltipEvent","hover|focus","tooltipPosition","bottom","pInputText","",3,"formControlName","name","id","required","readOnly","placeholder","accelaTooltip","appendTo","escape","blur"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(h,T){if(1&h&&(t.TgZ(0,"div",0,1)(2,"label",2),t._uU(3),t.qZA(),t.TgZ(4,"input",3),t.NdJ("blur",function(P){return T.emitBlurEvent(P)}),t.qZA()(),t.YNc(5,p,3,2,"div",4)),2&h){const b=t.MAs(1);t.Q6J("id",T.getDivElementId())("formGroup",T.controlRef.parent),t.xp6(2),t.Q6J("for",T.getLabelElementId())("id",T.getLabelElementId()),t.uIk("data-required",T.controlData.required),t.xp6(1),t.Oqu(T.label),t.xp6(1),t.Q6J("formControlName",T.controlData.name)("name",T.controlData.name)("id",T.controlData.name)("required",T.controlData.required)("readOnly",T.controlData.readOnly||T.readonlyMode)("placeholder",T.controlData.placeholder)("accelaTooltip",T.controlData.tooltip)("appendTo",b)("escape",!1),t.uIk("aria-labelledby",T.getLabelElementId())("aria-required",T.controlData.required),t.xp6(1),t.Q6J("ngIf",!T.adminMode)}},dependencies:[i.O5,r.Fj,r.JJ,r.JL,r.Q7,r.nD,r.sg,r.u,L.o,M._,v.E]})}return g})()},9461:(qe,re,l)=>{"use strict";l.d(re,{R:()=>p});var t=l(2560),i=l(4666),r=l(6803),L=l(1227),M=l(9416),v=l(3342);const y=["accelaControlDiv"];function u(C,g){if(1&C&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&C){const f=t.oxw(2);t.xp6(1),t.hij(" ",f.getRequiredFieldValidationMsg()," ")}}function _(C,g){if(1&C&&(t.TgZ(0,"div",5),t.YNc(1,u,2,1,"small",6),t.qZA()),2&C){const f=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==f.controlRef||null==f.controlRef.errors?null:f.controlRef.errors.required)&&((null==f.controlRef?null:f.controlRef.touched)||(null==f.controlRef?null:f.controlRef.dirty)))}}let p=(()=>{class C{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;label;controlData;Value;ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",f=>{this.adminSelect(f)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}adminSelect(f){const d=f;d.controlData=this.controlData,d.elementRef=f.target,this.selectionEvent.emit(d)}emitBlurEvent(f){this.focusChange.emit(this.controlRef)}static \u0275fac=function(d){return new(d||C)};static \u0275cmp=t.Xpm({type:C,selectors:[["accela-fein-input"]],viewQuery:function(d,h){if(1&d&&t.Gf(y,5),2&d){let T;t.iGM(T=t.CRH())&&(h.accelaControlDiv=T.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:20,consts:[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],["inputTrim","","type","text","tooltipEvent","hover|focus","tooltipPosition","bottom",3,"formControlName","name","id","mask","inputId","placeholder","accelaTooltip","escape","ariaLabel","maxlength","required","readonly","onBlur"],[3,"for","id"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(d,h){1&d&&(t.TgZ(0,"div",0,1)(2,"p-inputMask",2),t.NdJ("onBlur",function(b){return h.emitBlurEvent(b)}),t.qZA(),t.TgZ(3,"label",3),t._uU(4),t.qZA()(),t.YNc(5,_,2,1,"div",4)),2&d&&(t.Q6J("id",h.getDivElementId())("formGroup",h.controlRef.parent),t.xp6(2),t.Q6J("formControlName",h.controlData.name)("name",h.controlData.name)("id",h.controlData.name)("mask",h.controlData.mask)("inputId",h.controlData.name+"_mask")("placeholder",h.controlData.placeholder)("accelaTooltip",h.controlData.tooltip)("escape",!1)("ariaLabel",h.label)("maxlength",h.controlData.maxLength)("required",h.controlData.required)("readonly",h.controlData.readOnly||h.readonlyMode),t.uIk("aria-required",h.controlData.required),t.xp6(1),t.Q6J("for",h.getLabelElementId())("id",h.getLabelElementId()),t.uIk("data-required",h.controlData.required),t.xp6(1),t.Oqu(h.label),t.xp6(1),t.Q6J("ngIf",!h.adminMode))},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.nD,r.sg,r.u,L.vy,M._,v.E],styles:["[_nghost-%COMP%]     div.ng-invalid{margin-left:0!important;margin-right:.5em}\n/*# sourceMappingURL=accela-fein-input.component.css.map*/"]})}return C})()},9350:(qe,re,l)=>{"use strict";l.d(re,{t:()=>p});var t=l(2560),i=l(4666),r=l(6803),L=l(7990),M=l(9416);const v=["accelaControlDiv"],y=["numInput"];function u(C,g){if(1&C&&(t.TgZ(0,"small",8),t._uU(1),t.qZA()),2&C){const f=t.oxw(2);t.xp6(1),t.hij(" ",f.getRequiredFieldValidationMsg()," ")}}function _(C,g){if(1&C&&(t.TgZ(0,"div",6),t.YNc(1,u,2,1,"small",7),t.qZA()),2&C){const f=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==f.controlRef||null==f.controlRef.errors?null:f.controlRef.errors.required)&&((null==f.controlRef?null:f.controlRef.touched)||(null==f.controlRef?null:f.controlRef.dirty)))}}let p=(()=>{class C{renderer;controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;inputNumber;maxLength;controlData;constructor(f){this.renderer=f}ngOnInit(){this.controlData=this.controlRef.controlData}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",d=>{this.adminSelect(d)}));const f=this.inputNumber.el.nativeElement.querySelector("input");f&&this.renderer.removeAttribute(f,"aria-valuenow")}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.controlData.label}adminSelect(f){const d=f;d.controlData=this.controlData,d.elementRef=f.target,this.selectionEvent.emit(d)}emitBlurEvent(f){this.focusChange.emit(this.controlRef)}static \u0275fac=function(d){return new(d||C)(t.Y36(t.Qsj))};static \u0275cmp=t.Xpm({type:C,selectors:[["accela-money-input"]],viewQuery:function(d,h){if(1&d&&(t.Gf(v,5),t.Gf(y,5)),2&d){let T;t.iGM(T=t.CRH())&&(h.accelaControlDiv=T.first),t.iGM(T=t.CRH())&&(h.inputNumber=T.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:7,vars:23,consts:[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],["tooltipEvent","hover|focus","tooltipPosition","bottom",3,"name","id","ariaLabel","ariaRequired","required","useGrouping","maxlength","readonly","placeholder","escape","formControlName","minFractionDigits","maxFractionDigits","accelaTooltip","appendTo","onBlur"],["numInput",""],[3,"for","id"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(d,h){if(1&d&&(t.TgZ(0,"div",0,1)(2,"p-inputNumber",2,3),t.NdJ("onBlur",function(b){return h.emitBlurEvent(b)}),t.qZA(),t.TgZ(4,"label",4),t._uU(5),t.qZA()(),t.YNc(6,_,2,1,"div",5)),2&d){const T=t.MAs(1);t.Q6J("id",h.getDivElementId())("formGroup",h.controlRef.parent),t.xp6(2),t.Q6J("name",h.controlData.name)("id",h.controlData.name)("ariaLabel",h.controlData.label)("ariaRequired",h.controlData.required)("required",h.controlData.required)("useGrouping",!1)("maxlength",h.controlData.maxLength)("ariaLabel",h.getLabelElementId())("readonly",h.adminMode||h.readonlyMode)("placeholder",h.controlData.placeholder)("escape",!1)("formControlName",h.controlData.name)("minFractionDigits",0)("maxFractionDigits",2)("accelaTooltip",h.controlData.tooltip)("appendTo",T),t.xp6(2),t.Q6J("for",h.getLabelElementId())("id",h.getLabelElementId()),t.uIk("data-required",h.controlData.required),t.xp6(1),t.Oqu(h.controlData.label),t.xp6(1),t.Q6J("ngIf",!h.adminMode)}},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.nD,r.sg,r.u,L.Rn,M._],styles:[".textinput[_ngcontent-%COMP%]   input.ng-valid.ng-pristine[_ngcontent-%COMP%]{color:#333}p-inputnumber[_ngcontent-%COMP%], .p-inputnumber[_ngcontent-%COMP%], [_nghost-%COMP%]     .p-inputnumber{width:100%}"]})}return C})()},3245:(qe,re,l)=>{"use strict";l.d(re,{_:()=>p});var t=l(2560),i=l(4666),r=l(6803),L=l(7990),M=l(9416);const v=["accelaControlDiv"],y=["numInput"];function u(C,g){if(1&C&&(t.TgZ(0,"small",8),t._uU(1),t.qZA()),2&C){const f=t.oxw(2);t.xp6(1),t.hij(" ",f.getRequiredFieldValidationMsg()," ")}}function _(C,g){if(1&C&&(t.TgZ(0,"div",6),t.YNc(1,u,2,1,"small",7),t.qZA()),2&C){const f=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==f.controlRef||null==f.controlRef.errors?null:f.controlRef.errors.required)&&((null==f.controlRef?null:f.controlRef.touched)||(null==f.controlRef?null:f.controlRef.dirty)))}}let p=(()=>{class C{renderer;controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;inputNumber;maxLength;controlData;constructor(f){this.renderer=f}ngOnInit(){this.controlData=this.controlRef.controlData}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",d=>{this.adminSelect(d)}));const f=this.inputNumber.el.nativeElement.querySelector("input");f&&this.renderer.removeAttribute(f,"aria-valuenow")}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.controlData.label}adminSelect(f){const d=f;d.controlData=this.controlData,d.elementRef=f.target,this.selectionEvent.emit(d)}emitBlurEvent(f){this.focusChange.emit(this.controlRef)}static \u0275fac=function(d){return new(d||C)(t.Y36(t.Qsj))};static \u0275cmp=t.Xpm({type:C,selectors:[["accela-number-input"]],viewQuery:function(d,h){if(1&d&&(t.Gf(v,5),t.Gf(y,5)),2&d){let T;t.iGM(T=t.CRH())&&(h.accelaControlDiv=T.first),t.iGM(T=t.CRH())&&(h.inputNumber=T.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:7,vars:23,consts:[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],["tooltipEvent","hover|focus","tooltipPosition","bottom",3,"name","id","ariaLabel","ariaRequired","required","useGrouping","maxlength","placeholder","escape","formControlName","minFractionDigits","maxFractionDigits","accelaTooltip","appendTo","readonly","onBlur"],["numInput",""],[3,"for","id"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(d,h){if(1&d&&(t.TgZ(0,"div",0,1)(2,"p-inputNumber",2,3),t.NdJ("onBlur",function(b){return h.emitBlurEvent(b)}),t.qZA(),t.TgZ(4,"label",4),t._uU(5),t.qZA()(),t.YNc(6,_,2,1,"div",5)),2&d){const T=t.MAs(1);t.Q6J("id",h.getDivElementId())("formGroup",h.controlRef.parent),t.xp6(2),t.Q6J("name",h.controlData.name)("id",h.controlData.name)("ariaLabel",h.controlData.label)("ariaRequired",h.controlData.required)("required",h.controlData.required)("useGrouping",!1)("maxlength",h.controlData.maxLength)("ariaLabel",h.getLabelElementId())("placeholder",h.controlData.placeholder)("escape",!1)("formControlName",h.controlData.name)("minFractionDigits",0)("maxFractionDigits",8)("accelaTooltip",h.controlData.tooltip)("appendTo",T)("readonly",h.adminMode||h.readonlyMode),t.xp6(2),t.Q6J("for",h.getLabelElementId())("id",h.getLabelElementId()),t.uIk("data-required",h.controlData.required),t.xp6(1),t.Oqu(h.controlData.label),t.xp6(1),t.Q6J("ngIf",!h.adminMode)}},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.nD,r.sg,r.u,L.Rn,M._],styles:[".textinput[_ngcontent-%COMP%]   input.ng-valid.ng-pristine[_ngcontent-%COMP%]{color:#333}p-inputnumber[_ngcontent-%COMP%], .p-inputnumber[_ngcontent-%COMP%], [_nghost-%COMP%]     .p-inputnumber{width:100%}\n/*# sourceMappingURL=accela-number-input.component.css.map*/"]})}return C})()},1867:(qe,re,l)=>{"use strict";l.d(re,{i:()=>C});var t=l(2560),i=l(4666),r=l(6803),L=l(8848),M=l(9416);const v=["accelaControlDiv"];function y(g,f){if(1&g&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&g){const d=t.oxw(2);t.xp6(1),t.hij(" ",d.getRequiredFieldValidationMsg()," ")}}function u(g,f){1&g&&(t.TgZ(0,"small",7),t.SDv(1,8),t.qZA())}function _(g,f){if(1&g&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&g){const d=t.oxw(2);t.xp6(1),t.hij(" ",null==d.controlRef||null==d.controlRef.errors?null:d.controlRef.errors.passwordReq," ")}}function p(g,f){if(1&g&&(t.TgZ(0,"div",5),t.YNc(1,y,2,1,"small",6),t.YNc(2,u,2,0,"small",6),t.YNc(3,_,2,1,"small",6),t.qZA()),2&g){const d=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==d.controlRef||null==d.controlRef.errors?null:d.controlRef.errors.required)&&((null==d.controlRef?null:d.controlRef.touched)||(null==d.controlRef?null:d.controlRef.dirty))),t.xp6(1),t.Q6J("ngIf",(null==d.controlRef||null==d.controlRef.errors?null:d.controlRef.errors.mustMatch)&&((null==d.controlRef?null:d.controlRef.touched)||(null==d.controlRef?null:d.controlRef.dirty))),t.xp6(1),t.Q6J("ngIf",(null==d.controlRef||null==d.controlRef.errors?null:d.controlRef.errors.passwordReq)&&((null==d.controlRef?null:d.controlRef.touched)||(null==d.controlRef?null:d.controlRef.dirty)))}}let C=(()=>{class g{controlRef;parentFormRef;adminMode=!1;requiredValidationMsg;maxLength=30;selectionEvent=new t.vpe;accelaControlDiv;label;controlData;Value;constructor(){}ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",d=>{this.adminSelect(d)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}adminSelect(d){const h=d;h.controlData=this.controlData,h.elementRef=d.target,this.selectionEvent.emit(h)}static \u0275fac=function(h){return new(h||g)};static \u0275cmp=t.Xpm({type:g,selectors:[["accela-password-input"]],viewQuery:function(h,T){if(1&h&&t.Gf(v,5),2&h){let b;t.iGM(b=t.CRH())&&(T.accelaControlDiv=b.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",requiredValidationMsg:"requiredValidationMsg",maxLength:"maxLength"},outputs:{selectionEvent:"selectionEvent"},decls:6,vars:19,consts:function(){let d;return d=" Password Confirmation does not match Password. ",[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],["type","password","tooltipEvent","hover|focus","tooltipPosition","bottom","pPassword","",3,"formControlName","name","id","required","readOnly","placeholder","accelaTooltip","escape","appendTo"],[3,"for","id"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"],d]},template:function(h,T){if(1&h&&(t.TgZ(0,"div",0,1),t._UZ(2,"input",2),t.TgZ(3,"label",3),t._uU(4),t.qZA()(),t.YNc(5,p,4,3,"div",4)),2&h){const b=t.MAs(1);t.Q6J("id",T.getDivElementId())("formGroup",T.controlRef.parent),t.xp6(2),t.Q6J("formControlName",T.controlData.name)("name",T.controlData.name)("id",T.controlData.name)("required",T.controlData.required)("readOnly",T.controlData.readOnly)("placeholder",T.controlData.placeholder)("accelaTooltip",T.controlData.tooltip)("escape",!1)("appendTo",b),t.uIk("aria-labelledby",T.getLabelElementId())("aria-required",T.controlData.required)("maxlength",T.maxLength),t.xp6(1),t.Q6J("for",T.getLabelElementId())("id",T.getLabelElementId()),t.uIk("data-required",T.controlData.required),t.xp6(1),t.Oqu(T.label),t.xp6(1),t.Q6J("ngIf",!T.adminMode)}},dependencies:[i.O5,r.Fj,r.JJ,r.JL,r.Q7,r.nD,r.sg,r.u,L.QK,M._],styles:[".textinput[_ngcontent-%COMP%]   input.ng-valid.ng-pristine[_ngcontent-%COMP%]{color:#333}\n/*# sourceMappingURL=accela-password-input.component.css.map*/"]})}return g})()},9591:(qe,re,l)=>{"use strict";l.d(re,{H:()=>_});var t=l(2560),i=l(4666),r=l(6803),L=l(1227),M=l(9416);const v=["accelaControlDiv"];function y(p,C){if(1&p&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&p){const g=t.oxw(2);t.xp6(1),t.hij(" ",g.getRequiredFieldValidationMsg()," ")}}function u(p,C){if(1&p&&(t.TgZ(0,"div",5),t.YNc(1,y,2,1,"small",6),t.qZA()),2&p){const g=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==g.controlRef||null==g.controlRef.errors?null:g.controlRef.errors.required)&&((null==g.controlRef?null:g.controlRef.touched)||(null==g.controlRef?null:g.controlRef.dirty)))}}let _=(()=>{class p{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;label;controlData;Value;ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",g=>{this.adminSelect(g)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}adminSelect(g){const f=g;f.controlData=this.controlData,f.elementRef=g.target,this.selectionEvent.emit(f)}emitBlurEvent(g){this.focusChange.emit(this.controlRef)}static \u0275fac=function(f){return new(f||p)};static \u0275cmp=t.Xpm({type:p,selectors:[["accela-phone-input"]],viewQuery:function(f,d){if(1&f&&t.Gf(v,5),2&f){let h;t.iGM(h=t.CRH())&&(d.accelaControlDiv=h.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:22,consts:[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],[3,"for","id"],["type","phone","tooltipEvent","hover|focus","tooltipPosition","bottom",3,"formControlName","name","id","mask","ariaLabel","inputId","placeholder","accelaTooltip","tooltipZIndex","appendTo","escape","required","readonly","blur"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(f,d){if(1&f&&(t.TgZ(0,"div",0,1)(2,"label",2),t._uU(3),t.qZA(),t.TgZ(4,"p-inputMask",3),t.NdJ("blur",function(T){return d.emitBlurEvent(T)}),t.qZA()(),t.YNc(5,u,2,1,"div",4)),2&f){const h=t.MAs(1);t.Q6J("id",d.getDivElementId())("formGroup",d.controlRef.parent),t.xp6(2),t.Q6J("for",d.getLabelElementId())("id",d.getLabelElementId()),t.uIk("data-required",d.controlData.required),t.xp6(1),t.Oqu(d.label),t.xp6(1),t.Q6J("formControlName",d.controlData.name)("name",d.controlData.name)("id","mask"+d.controlData.name)("mask",d.controlData.mask)("ariaLabel",d.getLabelElementId())("inputId",d.controlData.name)("placeholder",d.controlData.placeholder)("accelaTooltip",d.controlData.tooltip)("tooltipZIndex",2e3)("appendTo",h)("escape",!1)("ariaLabel",d.label)("required",d.controlData.required)("readonly",d.controlData.readOnly||d.readonlyMode),t.uIk("aria-required",d.controlData.required),t.xp6(1),t.Q6J("ngIf",!d.adminMode)}},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.sg,r.u,L.vy,M._]})}return p})()},2869:(qe,re,l)=>{"use strict";l.d(re,{K:()=>p});var t=l(2560),i=l(4666),r=l(6803),L=l(9902),M=l(9416);const v=["accelaControlDiv"];function y(C,g){if(1&C){const f=t.EpF();t.TgZ(0,"div")(1,"p-radioButton",5),t.NdJ("onBlur",function(h){t.CHM(f);const T=t.oxw();return t.KtG(T.emitBlurEvent(h))}),t.qZA(),t._UZ(2,"div",6),t.qZA()}if(2&C){const f=g.$implicit,d=g.index,h=t.oxw(),T=t.MAs(1);t.xp6(1),t.Q6J("name",h.controlData.name)("id",h.controlData.name+"_"+d)("label",h.getOptionLabel(f))("ariaLabel",f.label)("required",h.controlData.required)("disabled",h.readonlyMode)("appendTo",T)("formControlName",h.controlData.name)("value",f.value),t.uIk("aria-required",h.controlData.required)}}function u(C,g){if(1&C&&(t.TgZ(0,"small",9),t._uU(1),t.qZA()),2&C){const f=t.oxw(2);t.xp6(1),t.hij(" ",f.getRequiredFieldValidationMsg()," ")}}function _(C,g){if(1&C&&(t.TgZ(0,"div",7),t.YNc(1,u,2,1,"small",8),t.qZA()),2&C){const f=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==f.controlRef||null==f.controlRef.errors?null:f.controlRef.errors.required)&&((null==f.controlRef?null:f.controlRef.touched)||(null==f.controlRef?null:f.controlRef.dirty)))}}let p=(()=>{class C{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;controlData;label;Value;ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",f=>{this.adminSelect(f)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}getOptionLabel(f){return"Option1"===f.label?(f.value="Y","Yes"):"Option2"===f.label?(f.value="N","No"):f.label}adminSelect(f){const d=f;d.controlData=this.controlData,d.elementRef=f.target,this.selectionEvent.emit(d)}emitBlurEvent(f){this.focusChange.emit(this.controlRef)}static \u0275fac=function(d){return new(d||C)};static \u0275cmp=t.Xpm({type:C,selectors:[["accela-radio-group"]],viewQuery:function(d,h){if(1&d&&t.Gf(v,5),2&d){let T;t.iGM(T=t.CRH())&&(h.accelaControlDiv=T.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:7,vars:9,consts:[["tooltipEvent","hover|focus","tooltipPosition","bottom",1,"accelaControl","component-content","radioOptions",3,"id","formGroup","accelaTooltip","escape"],["accelaControlDiv",""],[3,"for"],[4,"ngFor","ngForOf"],["class","validationFeedback",4,"ngIf"],[1,"accela-theme",3,"name","id","label","ariaLabel","required","disabled","appendTo","formControlName","value","onBlur"],[1,"spacer"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(d,h){1&d&&(t.TgZ(0,"fieldset",0,1)(2,"legend")(3,"label",2),t._uU(4),t.qZA()(),t.YNc(5,y,3,10,"div",3),t.qZA(),t.YNc(6,_,2,1,"div",4)),2&d&&(t.Q6J("id",h.getDivElementId())("formGroup",h.controlRef.parent)("accelaTooltip",h.controlData.tooltip)("escape",!1),t.xp6(3),t.Q6J("for",h.getDivElementId()),t.uIk("data-required",h.controlData.required),t.xp6(1),t.Oqu(h.controlData.label),t.xp6(1),t.Q6J("ngForOf",h.controlData.options),t.xp6(1),t.Q6J("ngIf",!h.adminMode))},dependencies:[i.sg,i.O5,r.JJ,r.JL,r.Q7,r.sg,r.u,L.EU,M._],styles:['[_nghost-%COMP%]     label{font-weight:700}[_nghost-%COMP%]     .radioOptions{padding-top:.25em}[_nghost-%COMP%]     .spacer{display:block;width:100%;margin-bottom:.25em}legend[_ngcontent-%COMP%]   label[data-required=true][_ngcontent-%COMP%]:after{content:" \\ea21";color:#a52652;font-family:accelicons}[_nghost-%COMP%]     fieldset{border:none}\n/*# sourceMappingURL=accela-radio-group.component.css.map*/']})}return C})()},7653:(qe,re,l)=>{"use strict";l.d(re,{y:()=>i});var t=l(2560);let i=(()=>{class r{constructor(){}ngOnInit(){}static \u0275fac=function(v){return new(v||r)};static \u0275cmp=t.Xpm({type:r,selectors:[["accela-separator"]],decls:2,vars:0,consts:[[1,"accelaControl"],[1,"separator"]],template:function(v,y){1&v&&(t.TgZ(0,"div",0),t._UZ(1,"hr",1),t.qZA())},styles:[".accelaControl[_ngcontent-%COMP%]{margin-right:0!important;margin-left:0!important}[_nghost-%COMP%]     .separator{line-height:2px;margin-top:10px;margin-bottom:6px;color:gray;background-color:gray;height:2px;border-width:0;width:100%}\n/*# sourceMappingURL=accela-separator.component.css.map*/"]})}return r})()},7133:(qe,re,l)=>{"use strict";l.d(re,{X:()=>_});var t=l(2560),i=l(4666),r=l(6803),L=l(1227),M=l(9416);const v=["accelaControlDiv"];function y(p,C){if(1&p&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&p){const g=t.oxw(2);t.xp6(1),t.hij(" ",g.getRequiredFieldValidationMsg()," ")}}function u(p,C){if(1&p&&(t.TgZ(0,"div",5),t.YNc(1,y,2,1,"small",6),t.qZA()),2&p){const g=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==g.controlRef||null==g.controlRef.errors?null:g.controlRef.errors.required)&&((null==g.controlRef?null:g.controlRef.touched)||(null==g.controlRef?null:g.controlRef.dirty)))}}let _=(()=>{class p{adminMode=!1;readonlyMode=!1;controlRef;parentFormRef;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;label;controlData;Value;ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",g=>{this.adminSelect(g)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}adminSelect(g){const f=g;f.controlData=this.controlData,f.elementRef=g.target,this.selectionEvent.emit(f)}emitBlurEvent(g){this.focusChange.emit(this.controlRef)}static \u0275fac=function(f){return new(f||p)};static \u0275cmp=t.Xpm({type:p,selectors:[["accela-ssn-input"]],viewQuery:function(f,d){if(1&f&&t.Gf(v,5),2&f){let h;t.iGM(h=t.CRH())&&(d.accelaControlDiv=h.first)}},inputs:{adminMode:"adminMode",readonlyMode:"readonlyMode",controlRef:"controlRef",parentFormRef:"parentFormRef",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:21,consts:[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],[3,"for","id"],["tooltipEvent","hover|focus","tooltipPosition","bottom","type","text",3,"formControlName","name","id","mask","placeholder","accelaTooltip","escape","appendTo","inputId","ariaLabel","required","readonly","onBlur"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(f,d){if(1&f&&(t.TgZ(0,"div",0,1)(2,"label",2),t._uU(3),t.qZA(),t.TgZ(4,"p-inputMask",3),t.NdJ("onBlur",function(T){return d.emitBlurEvent(T)}),t.qZA()(),t.YNc(5,u,2,1,"div",4)),2&f){const h=t.MAs(1);t.Q6J("id",d.getDivElementId())("formGroup",d.controlRef.parent),t.xp6(2),t.Q6J("for",d.getLabelElementId())("id",d.getLabelElementId()),t.uIk("data-required",d.controlData.required),t.xp6(1),t.Oqu(d.label),t.xp6(1),t.Q6J("formControlName",d.controlData.name)("name",d.controlData.name)("id",d.controlData.name+"_mask")("mask",d.controlData.mask)("placeholder",d.controlData.placeholder)("accelaTooltip",d.controlData.tooltip)("escape",!1)("appendTo",h)("inputId",d.controlData.name)("formControlName",d.controlData.name)("ariaLabel",d.label)("required",d.controlData.required)("readonly",d.controlData.readOnly||d.readonlyMode),t.uIk("aria-required",d.controlData.required),t.xp6(1),t.Q6J("ngIf",!d.adminMode)}},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.sg,r.u,L.vy,M._]})}return p})()},563:(qe,re,l)=>{"use strict";l.d(re,{r:()=>C});var t=l(2560),i=l(4666),r=l(6803),L=l(9906),M=l(8840),v=l(9416),y=l(3342);const u=["accelaControlDiv"];function _(g,f){if(1&g&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&g){const d=t.oxw(2);t.xp6(1),t.hij(" ",d.getRequiredFieldValidationMsg()," ")}}function p(g,f){if(1&g&&(t.TgZ(0,"div",5),t.YNc(1,_,2,1,"small",6),t.qZA()),2&g){const d=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==d.controlRef||null==d.controlRef.errors?null:d.controlRef.errors.required)&&((null==d.controlRef?null:d.controlRef.touched)||(null==d.controlRef?null:d.controlRef.dirty)))}}let C=(()=>{class g{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;blockChars;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;maxLength;controlData;inputBlockChars=/[^]/;constructor(){}ngOnInit(){this.controlData=this.controlRef.controlData,"txbUserName"===this.controlData.name&&(this.inputBlockChars=this.blockChars)}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",d=>{this.adminSelect(d)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.controlData.label}adminSelect(d){const h=d;h.controlData=this.controlData,h.elementRef=d.target,this.selectionEvent.emit(h)}emitBlurEvent(d){this.focusChange.emit(this.controlRef)}static \u0275fac=function(h){return new(h||g)};static \u0275cmp=t.Xpm({type:g,selectors:[["accela-text-input"]],viewQuery:function(h,T){if(1&h&&t.Gf(u,5),2&h){let b;t.iGM(b=t.CRH())&&(T.accelaControlDiv=b.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg",blockChars:"blockChars"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:20,consts:[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],["inputTrim","","type","text","tooltipEvent","hover|focus","tooltipPosition","bottom","pInputText","",3,"name","id","required","readOnly","maxlength","placeholder","accelaTooltip","appendTo","escape","formControlName","pKeyFilter","blur"],[3,"for","id"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(h,T){if(1&h&&(t.TgZ(0,"div",0,1)(2,"input",2),t.NdJ("blur",function(P){return T.emitBlurEvent(P)}),t.qZA(),t.TgZ(3,"label",3),t._uU(4),t.qZA()(),t.YNc(5,p,2,1,"div",4)),2&h){const b=t.MAs(1);t.Q6J("id",T.getDivElementId())("formGroup",T.controlRef.parent),t.xp6(2),t.Q6J("name",T.controlData.name)("id",T.controlData.name)("required",T.controlData.required)("readOnly",T.controlData.readOnly||T.readonlyMode)("maxlength",T.controlData.maxLength)("placeholder",T.controlData.placeholder)("accelaTooltip",T.controlData.tooltip)("appendTo",b)("escape",!1)("formControlName",T.controlData.name)("pKeyFilter",T.inputBlockChars),t.uIk("aria-label",T.controlData.label)("aria-required",T.controlData.required),t.xp6(1),t.Q6J("for",T.getLabelElementId())("id",T.getLabelElementId()),t.uIk("data-required",T.controlData.required),t.xp6(1),t.Oqu(T.controlData.label),t.xp6(1),t.Q6J("ngIf",!T.adminMode)}},dependencies:[i.O5,r.Fj,r.JJ,r.JL,r.Q7,r.nD,r.sg,r.u,L.o,M.Fr,v._,y.E],styles:[".textinput[_ngcontent-%COMP%]   input.ng-valid.ng-pristine[_ngcontent-%COMP%]{color:#333}\n/*# sourceMappingURL=accela-text-input.component.css.map*/"]})}return g})()},8616:(qe,re,l)=>{"use strict";l.d(re,{u:()=>u});var t=l(2560),i=l(4666),r=l(6803),L=l(9416);const M=["accelaControlDiv"];function v(_,p){if(1&_&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&_){const C=t.oxw(2);t.xp6(1),t.hij(" ",C.getRequiredFieldValidationMsg()," ")}}function y(_,p){if(1&_&&(t.TgZ(0,"div",5),t.YNc(1,v,2,1,"small",6),t.qZA()),2&_){const C=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==C.controlRef||null==C.controlRef.errors?null:C.controlRef.errors.required)&&((null==C.controlRef?null:C.controlRef.touched)||(null==C.controlRef?null:C.controlRef.dirty)))}}let u=(()=>{class _{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;maxLength;controlData;ngOnInit(){this.controlData=this.controlRef.controlData}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",C=>{this.adminSelect(C)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.controlData.label}adminSelect(C){const g=C;g.controlData=this.controlData,g.elementRef=C.target,this.selectionEvent.emit(g)}emitBlurEvent(C){this.focusChange.emit(this.controlRef)}static \u0275fac=function(g){return new(g||_)};static \u0275cmp=t.Xpm({type:_,selectors:[["accela-textarea-input"]],viewQuery:function(g,f){if(1&g&&t.Gf(M,5),2&g){let d;t.iGM(d=t.CRH())&&(f.accelaControlDiv=d.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:21,consts:[[1,"textarea","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],[1,"textarea-label",3,"for","id"],["pInputTextarea","","tooltipEvent","hover|focus","tooltipPosition","bottom",3,"name","id","required","readOnly","maxlength","placeholder","rows","cols","accelaTooltip","appendTo","formControlName","escape","blur"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(g,f){if(1&g&&(t.TgZ(0,"div",0,1)(2,"label",2),t._uU(3),t.qZA(),t.TgZ(4,"textarea",3),t.NdJ("blur",function(h){return f.emitBlurEvent(h)}),t.qZA()(),t.YNc(5,y,2,1,"div",4)),2&g){const d=t.MAs(1);t.Q6J("id",f.getDivElementId())("formGroup",f.controlRef.parent),t.xp6(2),t.Q6J("for",f.getLabelElementId())("id",f.getLabelElementId()),t.uIk("data-required",f.controlData.required),t.xp6(1),t.Oqu(f.controlData.label),t.xp6(1),t.Q6J("name",f.controlData.name)("id",f.controlData.name)("required",f.controlData.required)("readOnly",f.controlData.readOnly||f.readonlyMode)("maxlength",f.controlData.maxLength)("placeholder",f.controlData.placeholder)("rows",5)("cols",30)("accelaTooltip",f.controlData.tooltip)("appendTo",d)("formControlName",f.controlData.name)("escape",!1),t.uIk("aria-label",f.controlData.label)("aria-required",f.controlData.required),t.xp6(1),t.Q6J("ngIf",!f.adminMode)}},dependencies:[i.O5,r.Fj,r.JJ,r.JL,r.Q7,r.nD,r.sg,r.u,L._],styles:["textarea[_ngcontent-%COMP%]{width:100%;resize:none;margin-bottom:0}.textarea[_ngcontent-%COMP%]{min-width:100%}"]})}return _})()},4696:(qe,re,l)=>{"use strict";l.d(re,{d:()=>_});var t=l(2560),i=l(4666),r=l(6803),L=l(2547),M=l(9416);const v=["accelaControlDiv"];function y(p,C){if(1&p&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&p){const g=t.oxw(2);t.xp6(1),t.hij(" ",g.getRequiredFieldValidationMsg()," ")}}function u(p,C){if(1&p&&(t.TgZ(0,"div",5),t.YNc(1,y,2,1,"small",6),t.qZA()),2&p){const g=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==g.controlRef||null==g.controlRef.errors?null:g.controlRef.errors.required)&&((null==g.controlRef?null:g.controlRef.touched)||(null==g.controlRef?null:g.controlRef.dirty)))}}let _=(()=>{class p{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;label;controlData;value;ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",g=>{this.adminSelect(g)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}adminSelect(g){const f=g;f.controlData=this.controlData,f.elementRef=g.target,this.selectionEvent.emit(f)}emitBlurEvent(g){this.focusChange.emit(this.controlRef)}static \u0275fac=function(f){return new(f||p)};static \u0275cmp=t.Xpm({type:p,selectors:[["accela-timepicker-input"]],viewQuery:function(f,d){if(1&f&&t.Gf(v,5),2&f){let h;t.iGM(h=t.CRH())&&(d.accelaControlDiv=h.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:19,consts:[[1,"datepicker","accelaControl","textinput",3,"id","formGroup"],["accelaControlDiv",""],[3,"for","id"],["appendTo","body","hourFormat","12","placeholder","00:00 PM","readonlyInput","true","tooltipEvent","hover|focus","tooltipPosition","bottom",3,"formControlName","name","id","ariaLabelledBy","disabled","required","readonlyInput","placeholder","timeOnly","accelaTooltip","escape","onBlur"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(f,d){1&f&&(t.TgZ(0,"div",0,1)(2,"label",2),t._uU(3),t.qZA(),t.TgZ(4,"p-calendar",3),t.NdJ("onBlur",function(T){return d.emitBlurEvent(T)}),t.qZA()(),t.YNc(5,u,2,1,"div",4)),2&f&&(t.Q6J("id",d.getDivElementId())("formGroup",d.controlRef.parent),t.xp6(2),t.Q6J("for",d.getLabelElementId())("id",d.getLabelElementId()),t.uIk("data-required",d.controlData.required),t.xp6(1),t.Oqu(d.label),t.xp6(1),t.Q6J("formControlName",d.controlData.name)("name",d.controlData.name)("id",d.controlData.name)("ariaLabelledBy",d.getLabelElementId())("disabled",d.adminMode)("required",d.controlData.required)("readonlyInput",d.controlData.readOnly||d.readonlyMode)("placeholder",d.controlData.placeholder)("timeOnly",!0)("accelaTooltip",d.controlData.tooltip)("escape",!1),t.uIk("aria-required",d.controlData.required),t.xp6(1),t.Q6J("ngIf",!d.adminMode))},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.sg,r.u,L.f,M._],styles:[".p-datepicker select{height:2.5em}[_nghost-%COMP%]     p-calendar span{width:100%}"]})}return p})()},3933:(qe,re,l)=>{"use strict";l.d(re,{v:()=>_});var t=l(2560),i=l(4666),r=l(6803),L=l(1227),M=l(9416);const v=["accelaControlDiv"];function y(p,C){if(1&p&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&p){const g=t.oxw(2);t.xp6(1),t.hij(" ",g.getRequiredFieldValidationMsg()," ")}}function u(p,C){if(1&p&&(t.TgZ(0,"div",5),t.YNc(1,y,2,1,"small",6),t.qZA()),2&p){const g=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==g.controlRef||null==g.controlRef.errors?null:g.controlRef.errors.required)&&((null==g.controlRef?null:g.controlRef.touched)||(null==g.controlRef?null:g.controlRef.dirty)))}}let _=(()=>{class p{controlRef;adminMode=!1;readonlyMode=!1;parentFormRef;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;label;maxLength;controlData;constructor(){}ngOnInit(){this.controlData=this.controlRef.controlData,this.label=this.controlData.label}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",g=>{this.adminSelect(g)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return this.requiredValidationMsg+" "+this.label}adminSelect(g){this.selectionEvent.emit({controlData:this.controlData,elementRef:g.target})}emitBlurEvent(g){this.focusChange.emit(this.controlRef)}static \u0275fac=function(f){return new(f||p)};static \u0275cmp=t.Xpm({type:p,selectors:[["accela-zip-input"]],viewQuery:function(f,d){if(1&f&&t.Gf(v,5),2&f){let h;t.iGM(h=t.CRH())&&(d.accelaControlDiv=h.first)}},inputs:{controlRef:"controlRef",adminMode:"adminMode",readonlyMode:"readonlyMode",parentFormRef:"parentFormRef",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:21,consts:[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],["type","text","tooltipEvent","hover|focus","tooltipPosition","bottom",3,"formControlName","name","ariaLabel","id","mask","inputId","placeholder","accelaTooltip","escape","maxlength","required","readonly","onBlur"],[3,"for","id"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(f,d){1&f&&(t.TgZ(0,"div",0,1)(2,"p-inputMask",2),t.NdJ("onBlur",function(T){return d.emitBlurEvent(T)}),t.qZA(),t.TgZ(3,"label",3),t._uU(4),t.qZA()(),t.YNc(5,u,2,1,"div",4)),2&f&&(t.Q6J("id",d.getDivElementId())("formGroup",d.controlRef.parent),t.xp6(2),t.Q6J("formControlName",d.controlData.name)("name",d.controlData.name)("ariaLabel",d.getLabelElementId())("id","mask"+d.controlData.name)("mask",d.controlData.mask)("inputId",d.controlData.name)("placeholder",d.controlData.placeholder)("accelaTooltip",d.controlData.tooltip)("escape",!1)("ariaLabel",d.label)("maxlength",d.controlData.maxLength)("required",d.controlData.required)("readonly",d.controlData.readOnly||d.readonlyMode),t.uIk("aria-required",d.controlData.required),t.xp6(1),t.Q6J("for",d.getLabelElementId())("id",d.getLabelElementId()),t.uIk("data-required",d.controlData.required),t.xp6(1),t.Oqu(d.label),t.xp6(1),t.Q6J("ngIf",!d.adminMode))},dependencies:[i.O5,r.JJ,r.JL,r.Q7,r.nD,r.sg,r.u,L.vy,M._]})}return p})()},7874:(qe,re,l)=>{"use strict";l.d(re,{N:()=>vn});var t=l(6803),i=l(1420),r=l(635),L=l(8951),M=l(253),v=l(5699),y=l(9921),u=l(2560),_=l(4497),p=l(8286),C=l(3897),g=l(4666),f=l(6328),d=l(4356),h=l(749),T=l(9999),b=l(8179),P=l(9906),W=l(6664),I=l(4179),k=l(2578),D=l(4329),N=l(4227),s=l(2527),V=l(970),Q=l(8244),me=l(9461),ue=l(3245),De=l(1867),Ue=l(9591),Xe=l(7653),st=l(7133),ze=l(563),F=l(3933),Re=l(3462),de=l(2869),Ce=l(4696),oe=l(8616),G=l(9350);const ye=["op"],we=["FieldLabelContent"],Fe=["FieldTooltip"],lt=["FieldWatermark"],Pt=["selectFieldsideBar"];function wt(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-text-input",21),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("controlRef",pt.value)("requiredValidationMsg","Must enter a")("parentFormRef",Dt.controlGroup)("adminMode",!0)}}function Bt(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-textarea-input",21),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("controlRef",pt.value)("requiredValidationMsg","Must enter a")("parentFormRef",Dt.controlGroup)("adminMode",!0)}}function nn(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-password-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function xt(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-phone-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function sn(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-dropdown-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function ct(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-checkbox-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function Ve(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-email-input",23),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("emailValidationMsg","Must enter a Valid Email address for ")("adminMode",!0)}}function rt(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-date-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function Et(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-timepicker-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function Ft(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-ssn-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function yt(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-zip-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function un(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-fein-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function bt(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-radio-group",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must Select a")("adminMode",!0)}}function Jt(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-number-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function en(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"accela-money-input",22),u.NdJ("selectionEvent",function(ot){u.CHM(pt);const Be=u.oxw(2);return u.KtG(Be.adminSelection(ot))}),u.qZA()}if(2&zt){const pt=u.oxw().$implicit,Dt=u.oxw();u.Q6J("parentFormRef",Dt.controlGroup)("controlRef",pt.value)("requiredValidationMsg","Must enter a")("adminMode",!0)}}function mn(zt,Ht){1&zt&&u._UZ(0,"accela-separator")}const En=function(zt,Ht,pt){return{adminSelected:zt,"col-6":Ht,singleCol:pt}};function Ln(zt,Ht){if(1&zt&&(u.TgZ(0,"div",16),u.YNc(1,wt,1,4,"accela-text-input",17),u.YNc(2,Bt,1,4,"accela-textarea-input",17),u.YNc(3,nn,1,4,"accela-password-input",18),u.YNc(4,xt,1,4,"accela-phone-input",18),u.YNc(5,sn,1,4,"accela-dropdown-input",18),u.YNc(6,ct,1,4,"accela-checkbox-input",18),u.YNc(7,Ve,1,5,"accela-email-input",19),u.YNc(8,rt,1,4,"accela-date-input",18),u.YNc(9,Et,1,4,"accela-timepicker-input",18),u.YNc(10,Ft,1,4,"accela-ssn-input",18),u.YNc(11,yt,1,4,"accela-zip-input",18),u.YNc(12,un,1,4,"accela-fein-input",18),u.YNc(13,bt,1,4,"accela-radio-group",18),u.YNc(14,Jt,1,4,"accela-number-input",18),u.YNc(15,en,1,4,"accela-money-input",18),u.YNc(16,mn,1,0,"accela-separator",20),u.qZA()),2&zt){const pt=Ht.$implicit,Dt=u.oxw();u.Q6J("ngClass",u.kEZ(17,En,(null==Dt.adminSelectedControl?null:Dt.adminSelectedControl.name)===(null==pt.value.controlData?null:pt.value.controlData.name),Dt.multiCol,!Dt.multiCol)),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Textbox),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.TextArea),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Password),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Phone),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Dropdown),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Checkbox),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Email),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Date),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Time),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.SSN),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Zip),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.FEIN),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.RadioGroup),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Number),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Money),u.xp6(1),u.Q6J("ngIf",(null==pt.value.controlData?null:pt.value.controlData.type)===Dt.controlTypes.Separator)}}function dt(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"div",42)(1,"input",43,44),u.NdJ("change",function(ot){const at=u.CHM(pt).index,Gt=u.oxw(4);return u.KtG(Gt.onValChangeEvent(ot,at))}),u.qZA(),u.TgZ(3,"button",45),u.NdJ("click",function(){const Be=u.CHM(pt).index,at=u.oxw(4);return u.KtG(at.deleteField(Be))}),u.qZA()()}if(2&zt){const pt=Ht.$implicit;u.xp6(1),u.Q6J("id",pt.label)("value",pt.label),u.xp6(2),u.Q6J("value",pt.value)}}function Ot(zt,Ht){if(1&zt&&(u.TgZ(0,"div",38)(1,"div",25)(2,"label",39),u.SDv(3,40),u.qZA()(),u.YNc(4,dt,4,3,"div",41),u.qZA()),2&zt){const pt=u.oxw(3);u.xp6(4),u.Q6J("ngForOf",pt.adminSelectedControl.options)}}function $(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"button",46),u.NdJ("click",function(){u.CHM(pt);const ot=u.oxw(3);return u.KtG(ot.addField())}),u.qZA()}}function pe(zt,Ht){if(1&zt&&(u.TgZ(0,"div"),u.YNc(1,Ot,5,1,"div",36),u.TgZ(2,"div"),u.YNc(3,$,1,0,"button",37),u.qZA()()),2&zt){const pt=u.oxw(2);u.xp6(1),u.Q6J("ngIf","Country:"!==pt.adminSelectedControl.defaultLabel),u.xp6(2),u.Q6J("ngIf","Country:"!==pt.adminSelectedControl.defaultLabel)}}function Ee(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"div",24)(1,"div",25)(2,"label"),u._uU(3,"Default Label"),u.qZA(),u._UZ(4,"input",26,27),u.qZA()(),u.TgZ(6,"div",24)(7,"div",25)(8,"label",28),u._uU(9,"Label Content"),u.qZA(),u._UZ(10,"input",29,30),u.qZA()(),u.TgZ(12,"div",24)(13,"div",25)(14,"label",28),u._uU(15,"Tooltip Content"),u.qZA(),u.TgZ(16,"p-editor",31,32),u.NdJ("ngModelChange",function(ot){u.CHM(pt);const Be=u.oxw();return u.KtG(Be.tooltipValue=ot)}),u.qZA()()(),u.TgZ(18,"div",24)(19,"div",25)(20,"label",28),u._uU(21,"Watermark Content"),u.qZA(),u._UZ(22,"input",33,34),u.qZA()(),u.YNc(24,pe,4,2,"div",20),u.TgZ(25,"div")(26,"accela-button-primary",35),u.NdJ("click",function(){u.CHM(pt);const ot=u.oxw();return u.KtG(ot.submitAdminContentUpdate(ot.adminSelectedControl))}),u.qZA()()}if(2&zt){const pt=u.oxw();u.xp6(4),u.Q6J("disabled",!0)("value",pt.adminSelectedControl.defaultLabel),u.xp6(6),u.Q6J("disabled",pt.adminSelectedControl.templateField)("value",pt.adminSelectedControl.label),u.xp6(6),u.Q6J("ngModel",pt.tooltipValue),u.xp6(6),u.Q6J("value",pt.adminSelectedControl.placeholder),u.xp6(2),u.Q6J("ngIf",pt.showDrpDownOptions)}}function Ge(zt,Ht){1&zt&&(u.TgZ(0,"tr",50)(1,"th",51),u.SDv(2,52),u.qZA(),u.TgZ(3,"th",53),u.SDv(4,54),u.qZA(),u.TgZ(5,"th",53),u.SDv(6,55),u.qZA()())}function Zt(zt,Ht){if(1&zt){const pt=u.EpF();u.TgZ(0,"tr")(1,"td",56),u._uU(2),u.qZA(),u.TgZ(3,"td",57)(4,"p-checkbox",58),u.NdJ("onChange",function(){const Be=u.CHM(pt).$implicit,at=u.oxw(2);return u.KtG(at.selectedColChange(Be))})("ngModelChange",function(ot){const at=u.CHM(pt).$implicit;return u.KtG(at.display=ot)}),u.qZA()(),u.TgZ(5,"td",57)(6,"p-checkbox",59),u.NdJ("ngModelChange",function(ot){const at=u.CHM(pt).$implicit;return u.KtG(at.required=ot)}),u.qZA()()()}if(2&zt){const pt=Ht.$implicit;u.xp6(1),u.Q6J("pTooltip",pt.label)("disabled",pt.isDBRequired),u.xp6(1),u.Oqu(pt.label),u.xp6(2),u.Q6J("binary",!0)("ngModel",pt.display)("disabled",pt.isDBRequired),u.xp6(2),u.Q6J("binary",!0)("ngModel",pt.required)("disabled",pt.isDBRequired||!pt.display)}}function tn(zt,Ht){if(1&zt&&(u.TgZ(0,"p-table",47),u.YNc(1,Ge,7,0,"ng-template",48),u.YNc(2,Zt,7,9,"ng-template",49),u.qZA()),2&zt){const pt=u.oxw();u.Q6J("value",pt.simpleViewElementList)}}const on=function(){return{width:"710px",height:"620px"}},Un=function(){return{height:"100%",width:"100%",overflow:"hidden",padding:"0.25rem"}};let vn=(()=>{class zt{pageLayoutService;sanitizer;apiRefService;formBuilder;settingService;viewId;module;permissionLevel;permissionValue;loadLayoutOnInit=!0;multiCol=!1;adminUpdatePanel;fieldLabelContent;fieldTooltip;fieldWatermark;selectFieldsideBar;tooltipValue="";controlGroup;simpleViewElementList;displayFormDesigner=!1;showDrpDownOptions=!1;displayFieldSelection=!1;adminSelectedControl;controlTypes=v.h;interactionObserver;formDesignerLink;hideFields=["txtAppStreetAdd1","txtAppStreetAdd2","txtAppStreetAdd3","txtAppCity","ddlAppCountry","txtAppFax","txtAppState","txtAppZipApplicant"];isContactAddressEnabled=!1;destoryActionSbj=new M.x;constructor(pt,Dt,ot,Be,at){this.pageLayoutService=pt,this.sanitizer=Dt,this.apiRefService=ot,this.formBuilder=Be,this.settingService=at,this.controlGroup=this.formBuilder.group({}),this.formDesignerLink=this.sanitizer.bypassSecurityTrustResourceUrl(this.apiRefService.getApiUrl("Admin/NGACAFormDesigner.aspx"))}ngAfterViewInit(){this.formDesignerLink=this.sanitizer.bypassSecurityTrustResourceUrl(this.apiRefService.getApiUrl(`Admin/NGACAFormDesigner.aspx?module=${this.module}&viewId=${this.viewId}&permissionLevel=${this.permissionLevel}&permissionValue=${this.permissionValue}&sectionName=`)),this.interactionObserver=new IntersectionObserver(this.onIntersection,{root:null,threshold:.65}),this.loadLayoutOnInit&&this.refreshPageLayout(),this.adminUpdatePanel&&this.adminUpdatePanel.el&&this.interactionObserver.observe(this.adminUpdatePanel.el.nativeElement)}onIntersection(pt,Dt){pt.forEach(ot=>ot.target.classList.toggle("admin-panel-flip",ot.isIntersecting))}unsorted(){return 0}adminSelection(pt){this.adminSelectedControl=pt.controlData,this.tooltipValue=this.adminSelectedControl.tooltip;const Dt=pt.elementRef.closest(".accelaControl");if(this.showDrpDownOptions=this.adminSelectedControl.type===v.h.Dropdown&&"ddlQuestion"!==this.adminSelectedControl.name&&!this.adminSelectedControl.templateField,Dt.insertAdjacentElement("afterend",this.adminUpdatePanel.el.nativeElement),this.adminUpdatePanel.container||(this.adminUpdatePanel.container=this.adminUpdatePanel.el.nativeElement.firstElementChild),this.adminUpdatePanel.show(pt,Dt),this.adminUpdatePanel.el.nativeElement.classList.contains("admin-panel-flip")&&(i.p.addClass(this.adminUpdatePanel.container,"p-overlaypanel-flipped"),this.adminUpdatePanel.container)){const ot=this.adminUpdatePanel.container.offsetParent?{width:this.adminUpdatePanel.container.offsetWidth,height:this.adminUpdatePanel.container.offsetHeight}:i.p.getHiddenElementDimensions(this.adminUpdatePanel.container);let Be=Dt.getBoundingClientRect().top+i.p.getWindowScrollTop()-ot.height;this.adminUpdatePanel.container.style.transformOrigin="bottom",Be<0&&(Be=i.p.getWindowScrollTop()),this.adminUpdatePanel.container.style.top=Be+"px"}}submitAdminContentUpdate(pt){if(pt.tooltip=this.fieldTooltip.getQuill().getText().length>1?this.fieldTooltip.getQuill().root.innerHTML?.trim():"",pt.placeholder=this.fieldWatermark.nativeElement.value,pt.label=this.fieldLabelContent.nativeElement.value,this.showDrpDownOptions){for(let Dt=0;Dt<this.adminSelectedControl.options.length;Dt++)""===this.adminSelectedControl.options[Dt].value&&this.adminSelectedControl.options.splice(Dt--,1);pt.options=this.adminSelectedControl.options}this.pageLayoutService.saveUpdatedControl(pt,this.module,this.viewId).pipe((0,r.U)(Dt=>{this.adminUpdatePanel.hide()}),(0,L.R)(this.destoryActionSbj)).subscribe(()=>this.refreshPageLayout())}onValChangeEvent(pt,Dt){this.adminSelectedControl.options[Dt].label=pt.target.value,this.adminSelectedControl.options[Dt].value=pt.target.value}addField(){this.adminSelectedControl.options.push({label:"",value:""})}deleteField(pt){this.adminSelectedControl.options.splice(pt,1)}submitSelectedFieldsUpdate(){this.pageLayoutService.saveUpdatedControlProperties(this.simpleViewElementList,this.module,this.viewId,this.permissionLevel,this.permissionValue).pipe((0,r.U)(pt=>{this.displayFieldSelection=!1}),(0,L.R)(this.destoryActionSbj)).subscribe(()=>this.refreshPageLayout())}launchRearrangeFieldWorkflow(){this.formDesignerLink=this.sanitizer.bypassSecurityTrustResourceUrl(this.apiRefService.getApiUrl(`Admin/NGACAFormDesigner.aspx?module=${this.module}&viewId=${this.viewId}&permissionLevel=${this.permissionLevel}&permissionValue=${this.permissionValue}&sectionName=`)),this.displayFormDesigner=!0}launchSelectFieldsWorkflow(){this.displayFieldSelection=!0}refreshPageLayout(){this.selectFieldsideBar.destroyModal(),this.controlGroup=this.formBuilder.group({}),this.simpleViewElementList=[],this.settingService.isContactAddressEnabled().subscribe(pt=>{pt&&(this.isContactAddressEnabled=!0),this.loadAdminPageLayout()})}loadAdminPageLayout(){this.pageLayoutService.getDynamicFormData(this.viewId,this.module,this.permissionLevel,this.permissionValue,"ACA ADMIN").pipe((0,r.U)(pt=>{this.simpleViewElementList=pt.filter(Dt=>Dt.type!==v.h.Separator&&Dt.type!==v.h.Blocked&&!Dt.templateField),this.isContactAddressEnabled&&(this.simpleViewElementList=this.simpleViewElementList.filter(Dt=>!this.hideFields.includes(Dt.name))),pt.forEach(Dt=>{if(this.isContactAddressEnabled&&this.hideFields.indexOf(Dt.name)>-1&&(Dt.display=!1,Dt.required=!1),this.multiCol){if(Dt.display&&Dt.type!==v.h.Separator){const ot=new t.p4(Dt.value);Dt.readOnly=!0,this.pageLayoutService.processAccelaControl(Dt,ot),this.controlGroup.addControl(Dt.name,ot)}}else if(Dt.display){const ot=new t.p4(Dt.value);Dt.readOnly=!0,this.pageLayoutService.processAccelaControl(Dt,ot),this.controlGroup.addControl(Dt.name,ot)}}),this.adminSelectedControl=pt[0]}),(0,L.R)(this.destoryActionSbj)).subscribe()}selectedColChange(pt){!1===pt.display&&(pt.required=!1)}ngOnDestroy(){this.destoryActionSbj.next(null),this.destoryActionSbj.complete(),this.interactionObserver&&this.interactionObserver.disconnect()}static \u0275fac=function(Dt){return new(Dt||zt)(u.Y36(y.p),u.Y36(_.H7),u.Y36(p.q),u.Y36(t.QS),u.Y36(C.R))};static \u0275cmp=u.Xpm({type:zt,selectors:[["aca-admin-page-layout"]],viewQuery:function(Dt,ot){if(1&Dt&&(u.Gf(ye,5),u.Gf(we,5),u.Gf(Fe,5),u.Gf(lt,5),u.Gf(Pt,5)),2&Dt){let Be;u.iGM(Be=u.CRH())&&(ot.adminUpdatePanel=Be.first),u.iGM(Be=u.CRH())&&(ot.fieldLabelContent=Be.first),u.iGM(Be=u.CRH())&&(ot.fieldTooltip=Be.first),u.iGM(Be=u.CRH())&&(ot.fieldWatermark=Be.first),u.iGM(Be=u.CRH())&&(ot.selectFieldsideBar=Be.first)}},inputs:{viewId:"viewId",module:"module",permissionLevel:"permissionLevel",permissionValue:"permissionValue",loadLayoutOnInit:"loadLayoutOnInit",multiCol:"multiCol"},decls:18,vars:16,consts:function(){let pt,Dt,ot,Be,at,Gt,Ut,gn,Mn;return pt="Close",Dt="Close",ot="Submit",Be="Submit",at="ADD OPTION",Gt="Dropdown Options",Ut="Name",gn="Visible",Mn="Required",[[1,"mr-2","mb-2","adminButtonBar"],["type","button","label","Rearrange Fields","pRipple","",3,"click"],["type","button","label","Select Fields","pRipple","",3,"click"],["panelAnchor",""],["class","controlsSection p-jc-centered",3,"ngClass",4,"ngFor","ngForOf"],["appendTo","panelAnchor","autoZIndex","true",3,"dismissable","showCloseIcon"],["op",""],["pTemplate",""],["modal","true","header","ACA Form Designer","position","top","closeAriaLabel",pt,"appendTo","body",3,"visible","resizable","contentStyle","visibleChange","onHide"],["title","Form Designer Pop Up",2,"width","100%","height","100%","border","none",3,"src"],["formDesigner",""],["position","right","closeAriaLabel",Dt,3,"visible","visibleChange","onHide"],["selectFieldsideBar",""],[1,"buttonBar"],["type","button","label",ot,"pRipple","",1,"mb-1","selectFieldSubmit",3,"click"],["class","selectFieldsTable",3,"value",4,"ngIf"],[1,"controlsSection","p-jc-centered",3,"ngClass"],[3,"controlRef","requiredValidationMsg","parentFormRef","adminMode","selectionEvent",4,"ngIf"],[3,"parentFormRef","controlRef","requiredValidationMsg","adminMode","selectionEvent",4,"ngIf"],[3,"parentFormRef","controlRef","requiredValidationMsg","emailValidationMsg","adminMode","selectionEvent",4,"ngIf"],[4,"ngIf"],[3,"controlRef","requiredValidationMsg","parentFormRef","adminMode","selectionEvent"],[3,"parentFormRef","controlRef","requiredValidationMsg","adminMode","selectionEvent"],[3,"parentFormRef","controlRef","requiredValidationMsg","emailValidationMsg","adminMode","selectionEvent"],[1,"propertyInput","p-formgroup-inline"],[1,"p-field","accelaControl"],["name","DefaultLabelContent","id","DefaultLabelContent","type","text","pInputText","",3,"disabled","value"],["DefaultLabelContent",""],["for","email"],["name","FieldLabelContent","id","FieldLabelContent","type","text","pInputText","",3,"disabled","value"],["FieldLabelContent",""],["name","FieldTooltip","id","FieldTooltip","placeholder","Tooltip Content",3,"ngModel","ngModelChange"],["FieldTooltip",""],["name","FieldWatermark","id","FieldTooltip","type","text","pInputText","",3,"value"],["FieldWatermark",""],["type","button","label",Be,"pRipple","",3,"click"],["class","propertyInput",4,"ngIf"],["pButton","","class","button-primary","type","button","label",at,"class","p-button-rounded p-button-sm look-up",3,"click",4,"ngIf"],[1,"propertyInput"],["for","option.label"],Gt,["class","p-formgroup-inline",4,"ngFor","ngForOf"],[1,"p-formgroup-inline"],["name","FieldDropdown","type","text","pInputText","",3,"id","value","change"],["FieldDropdown",""],["pButton","","icon","accelicons accelicons-x","aria-label","Delete",1,"p-button-icon-only",3,"value","click"],["pButton","","type","button","label",at,1,"p-button-rounded","p-button-sm","look-up",3,"click"],[1,"selectFieldsTable",3,"value"],["pTemplate","header"],["pTemplate","body"],[1,"sideBarHeaders"],[1,"sideBarLabels",2,"display","table-cell !important"],Ut,[2,"display","table-cell !important"],gn,Mn,[1,"sideBarLabels",3,"pTooltip","disabled"],[1,"checkBox"],[3,"binary","ngModel","disabled","onChange","ngModelChange"],[3,"binary","ngModel","disabled","ngModelChange"]]},template:function(Dt,ot){if(1&Dt){const Be=u.EpF();u.TgZ(0,"div",0)(1,"accela-button-primary",1),u.NdJ("click",function(){return ot.launchRearrangeFieldWorkflow()}),u.qZA(),u.TgZ(2,"accela-button-primary",2),u.NdJ("click",function(){return ot.launchSelectFieldsWorkflow()}),u.qZA()(),u._UZ(3,"div",null,3),u.YNc(5,Ln,17,21,"div",4),u.ALo(6,"keyvalue"),u.TgZ(7,"p-overlayPanel",5,6),u.YNc(9,Ee,27,7,"ng-template",7),u.qZA(),u.TgZ(10,"p-dialog",8),u.NdJ("visibleChange",function(Gt){return ot.displayFormDesigner=Gt})("onHide",function(){return ot.refreshPageLayout()}),u._UZ(11,"iframe",9,10),u.qZA(),u.TgZ(13,"p-sidebar",11,12),u.NdJ("visibleChange",function(Gt){return ot.displayFieldSelection=Gt})("onHide",function(){u.CHM(Be);const Gt=u.MAs(14);return u.KtG(Gt.destroyModal())}),u.TgZ(15,"div",13)(16,"accela-button-primary",14),u.NdJ("click",function(){return ot.submitSelectedFieldsUpdate()}),u.qZA()(),u.YNc(17,tn,3,1,"p-table",15),u.qZA()}2&Dt&&(u.xp6(5),u.Q6J("ngForOf",u.xi3(6,11,null==ot.controlGroup?null:ot.controlGroup.controls,ot.unsorted)),u.xp6(2),u.Q6J("dismissable",!1)("showCloseIcon",!0),u.xp6(3),u.Akn(u.DdM(14,on)),u.Q6J("visible",ot.displayFormDesigner)("resizable",!0)("contentStyle",u.DdM(15,Un)),u.xp6(1),u.Q6J("src",ot.formDesignerLink,u.uOi),u.xp6(2),u.Q6J("visible",ot.displayFieldSelection),u.xp6(4),u.Q6J("ngIf",ot.simpleViewElementList))},dependencies:[g.mk,g.sg,g.O5,t.JJ,t.On,f.Hq,d.jx,h.XZ,T.V,b.ML,P.o,W.T,I.Y,k.iA,D.u,N.D,s.f,V.T,Q.a,me.R,ue._,De.i,Ue.H,Xe.y,st.X,ze.r,F.v,Re.s,de.K,Ce.d,oe.u,G.t,g.Nd],styles:[".controlsSection.singleCol[_ngcontent-%COMP%]{width:100%}.multiCol[_ngcontent-%COMP%]   .controlsSection[_ngcontent-%COMP%]{min-width:250px}[_nghost-%COMP%]     div.p-tooltip{z-index:3000!important}[_nghost-%COMP%]     .adminSelected{background-color:#fcfbc9;border:gray 1px dashed}[_nghost-%COMP%]     .p-dialog .p-dialog-content{height:100%;width:100%;overflow:visible}[_nghost-%COMP%]     .p-editor-content{min-height:10em}.buttonBar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%]     .adminButtonBar{width:100%;display:flex;flex-direction:column}[_nghost-%COMP%]     .adminButtonBar button{margin-top:.25em}.p-button.p-button-rounded[_ngcontent-%COMP%]{background-color:#2eb383;border-color:#fff;margin-top:1em;margin-bottom:1em}.p-component[_ngcontent-%COMP%]{margin-top:.5em!important}.p-button.p-button-icon-only[_ngcontent-%COMP%]{background-color:#ff5b76;border-color:#fff;margin-left:.5em!important;width:2rem;height:2rem;border-radius:50%}[_nghost-%COMP%]   accela-button-primary.selectFieldSubmit[_ngcontent-%COMP%]{display:block;z-index:100;position:relative;max-width:7.5em;float:right}[_nghost-%COMP%]   .p-sidebar[_ngcontent-%COMP%]   .p-sidebar-header[_ngcontent-%COMP%] + .p-sidebar-content[_ngcontent-%COMP%]{padding-left:.25rem}[_nghost-%COMP%]     div.p-sidebar-right{width:55vw}[_nghost-%COMP%]   .p-sidebar[_ngcontent-%COMP%]   .p-sidebar-content[_ngcontent-%COMP%]{background-color:#fff;padding-left:.25em}[_nghost-%COMP%]   .sideBarLabels[_ngcontent-%COMP%]{max-width:10em}[_nghost-%COMP%]   .sideBarHeaders[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]   td.checkBox[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]   .sideBarLabels[_ngcontent-%COMP%], [_nghost-%COMP%]   .sideBarHeaders[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.p-overlaypanel[_ngcontent-%COMP%]{background-color:#fff}.p-overlaypanel[_ngcontent-%COMP%]   .p-overlaypanel-content[_ngcontent-%COMP%]{height:inherit}@media screen and (max-width: 960px){[_nghost-%COMP%]     div.p-sidebar-right{width:100%}[_nghost-%COMP%]     .selectFieldsTable .p-datatable-tbody>tr>td{display:table-cell!important;width:inherit!important;align-items:center;justify-content:space-between}[_nghost-%COMP%]     .p-datatable-tbody>tr>td{border:1px solid #c8c8c8!important}[_nghost-%COMP%]     .p-datatable-gridlines .p-datatable-tbody>tr>td{border:1px solid #c8c8c8!important}[_nghost-%COMP%]     .p-datatable-tbody>tr>td>.p-column-title{display:block}}@media only screen and (max-device-width: 660px),(max-width: 600px){.controlsSection[_ngcontent-%COMP%]{min-width:100%;width:100%}}"]})}return zt})()},2847:(qe,re,l)=>{"use strict";l.d(re,{z:()=>p});var t=l(2560),i=l(4356),r=l(4666),L=l(9129);const M=function(C,g,f,d){return{"accelicons-ellipsis-small":C,"accelicons-alert2":g,"accelicons-exclamation-circle-small":f,"accelicons-checkmark-small":d}};function v(C,g){if(1&C&&(t.ynx(0),t._UZ(1,"span",7),t.TgZ(2,"div",8)(3,"div",9),t._uU(4),t.qZA(),t.TgZ(5,"div",10),t._uU(6),t.qZA()(),t.BQk()),2&C){const f=t.oxw().$implicit;t.xp6(1),t.Q6J("ngClass",t.l5B(5,M,"info"===f.severity,"warn"===f.severity,"error"===f.severity,"success"===f.severity)),t.xp6(2),t.Q6J("aria-label",f.summary),t.xp6(1),t.Oqu(f.summary),t.xp6(1),t.Q6J("aria-label",f.detail),t.xp6(1),t.Oqu(f.detail)}}function y(C,g){1&C&&t.GkF(0)}const u=function(C){return{$implicit:C}};function _(C,g){if(1&C){const f=t.EpF();t.TgZ(0,"div",2),t.YNc(1,v,7,10,"ng-container",3),t.YNc(2,y,1,0,"ng-container",4),t.TgZ(3,"button",5),t.NdJ("click",function(h){t.CHM(f);const T=t.oxw();return t.KtG(T.onCloseIconClick(h))})("keydown.enter",function(h){t.CHM(f);const T=t.oxw();return t.KtG(T.onCloseIconClick(h))}),t._UZ(4,"span",6),t.qZA()()}if(2&C){const f=g.$implicit,d=t.oxw();t.Gre("toastContent tst-",f.severity,""),t.xp6(1),t.Q6J("ngIf",!d.template),t.xp6(1),t.Q6J("ngTemplateOutlet",d.template)("ngTemplateOutletContext",t.VKq(6,u,f))}}let p=(()=>{class C{msgService;key;constructor(f){this.msgService=f}ngOnInit(){}onCloseIconClick(f){this.msgService.clear()}displaySuccess(f){this.msgService.add({severity:"success",summary:f,closable:!1,key:this.key,life:1e3,sticky:!1})}displayInfo(f){this.msgService.add({severity:"info",summary:f,closable:!1,key:this.key,life:1e3,sticky:!1})}displayWarn(f){this.msgService.add({severity:"warn",summary:f,closable:!1,key:this.key,life:1e3,sticky:!1})}displayError(f,d){this.msgService.add({severity:"error",summary:f,detail:d,closable:!1,key:this.key,life:1e3,sticky:!1})}static \u0275fac=function(d){return new(d||C)(t.Y36(i.ez))};static \u0275cmp=t.Xpm({type:C,selectors:[["aca-alert-message"]],inputs:{key:"key"},decls:2,vars:3,consts:function(){let f;return f="Dismiss",[["position","top-center","modal","false",3,"baseZIndex","key","preventOpenDuplicates"],["pTemplate","message"],["pRipple",""],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","aria-label",f,"pRipple","",1,"p-message-close","p-link",3,"click","keydown.enter"],[1,"custom","p-toast-icon-close-icon","pi","pi-times"],[1,"p-toast-message-icon","accelicons",3,"ngClass"],[1,"p-toast-message-text","ml-3"],[1,"p-toast-summary",3,"aria-label"],[1,"p-toast-detail",3,"aria-label"]]},template:function(d,h){1&d&&(t.TgZ(0,"p-toast",0),t.YNc(1,_,5,8,"ng-template",1),t.qZA()),2&d&&t.Q6J("baseZIndex",5e3)("key",h.key)("preventOpenDuplicates",!0)},dependencies:[r.mk,r.O5,r.tP,i.jx,L.FN]})}return C})()},3810:(qe,re,l)=>{"use strict";l.d(re,{b:()=>nn});var t=l(2560),i=l(5699),r=l(9263),L=l(4666),M=l(4227),v=l(2527),y=l(970),u=l(8244),_=l(9461),p=l(3245),C=l(1867),g=l(9591),f=l(7653),d=l(7133),h=l(563),T=l(6803),b=l(9906),P=l(9416),W=l(3342);const I=["accelaControlDiv"];function k(xt,sn){if(1&xt&&(t.TgZ(0,"small",7),t._uU(1),t.qZA()),2&xt){const ct=t.oxw(2);t.xp6(1),t.hij(" ",ct.getRequiredFieldValidationMsg()," ")}}function D(xt,sn){if(1&xt&&(t.TgZ(0,"div",5),t.YNc(1,k,2,1,"small",6),t.qZA()),2&xt){const ct=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==ct.controlRef||null==ct.controlRef.errors?null:ct.controlRef.errors.required)&&((null==ct.controlRef?null:ct.controlRef.touched)||(null==ct.controlRef?null:ct.controlRef.dirty)))}}let N=(()=>{class xt{controlRef;parentFormRef;adminMode=!1;readonlyMode=!1;requiredValidationMsg;selectionEvent=new t.vpe;focusChange=new t.vpe;accelaControlDiv;maxLength;controlData;constructor(){}ngOnInit(){this.controlData=this.controlRef.controlData}ngAfterViewInit(){this.adminMode&&(this.controlData.readOnly=!0,this.accelaControlDiv.nativeElement.addEventListener("click",ct=>{this.adminSelect(ct)}))}getDivElementId(){return"div_"+this.controlData.name}getLabelElementId(){return this.controlData.name+"Label"}getRequiredFieldValidationMsg(){return "Please enter an answer to the security question"}adminSelect(ct){const Ve=ct;Ve.controlData=this.controlData,Ve.elementRef=ct.target,this.selectionEvent.emit(Ve)}emitBlurEvent(ct){this.focusChange.emit(this.controlRef)}static \u0275fac=function(Ve){return new(Ve||xt)};static \u0275cmp=t.Xpm({type:xt,selectors:[["accela-security-answer-input"]],viewQuery:function(Ve,rt){if(1&Ve&&t.Gf(I,5),2&Ve){let Et;t.iGM(Et=t.CRH())&&(rt.accelaControlDiv=Et.first)}},inputs:{controlRef:"controlRef",parentFormRef:"parentFormRef",adminMode:"adminMode",readonlyMode:"readonlyMode",requiredValidationMsg:"requiredValidationMsg"},outputs:{selectionEvent:"selectionEvent",focusChange:"focusChange"},decls:6,vars:19,consts:[[1,"textinput","accelaControl",3,"id","formGroup"],["accelaControlDiv",""],["inputTrim","","type","text","tooltipEvent","hover|focus","tooltipPosition","bottom","pInputText","",3,"name","id","required","readOnly","maxlength","placeholder","accelaTooltip","appendTo","escape","formControlName","blur"],[3,"for","id"],["class","validationFeedback",4,"ngIf"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"]],template:function(Ve,rt){if(1&Ve&&(t.TgZ(0,"div",0,1)(2,"input",2),t.NdJ("blur",function(Ft){return rt.emitBlurEvent(Ft)}),t.qZA(),t.TgZ(3,"label",3),t._uU(4),t.qZA()(),t.YNc(5,D,2,1,"div",4)),2&Ve){const Et=t.MAs(1);t.Q6J("id",rt.getDivElementId())("formGroup",rt.controlRef.parent),t.xp6(2),t.Q6J("name",rt.controlData.name)("id",rt.controlData.name)("required",rt.controlData.required)("readOnly",rt.controlData.readOnly||rt.readonlyMode)("maxlength",rt.controlData.maxLength)("placeholder",rt.controlData.placeholder)("accelaTooltip",rt.controlData.tooltip)("appendTo",Et)("escape",!1)("formControlName",rt.controlData.name),t.uIk("aria-label",rt.controlData.label)("aria-required",rt.controlData.required),t.xp6(1),t.Q6J("for",rt.getLabelElementId())("id",rt.getLabelElementId()),t.uIk("data-required",rt.controlData.required),t.xp6(1),t.Oqu(rt.controlData.label),t.xp6(1),t.Q6J("ngIf",!rt.adminMode)}},dependencies:[L.O5,T.Fj,T.JJ,T.JL,T.Q7,T.nD,T.sg,T.u,b.o,P._,W.E],styles:[".textinput[_ngcontent-%COMP%]   input.ng-valid.ng-pristine[_ngcontent-%COMP%]{color:#333}\n/*# sourceMappingURL=accela-security-answer-input.component.css.map*/"]})}return xt})();var s=l(3933),V=l(2869),Q=l(4696),me=l(8616),ue=l(9350);function De(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-text-input",8),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("controlRef",ct.value)("requiredValidationMsg","Must enter a")("parentFormRef",Ve.controlGroup)("blockChars",Ve.blockChars)}}function Ue(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-security-answer-input",9),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("controlRef",ct.value)("parentFormRef",Ve.controlGroup)}}function Xe(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-textarea-input",9),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("controlRef",ct.value)("requiredValidationMsg","Must enter a")("parentFormRef",Ve.controlGroup)}}function st(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-password-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function ze(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-phone-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function F(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-dropdown-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function Re(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-checkbox-input",11),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))})("oncbChange",function(rt){t.CHM(ct);const Et=t.oxw(2);return t.KtG(Et.chkstatus(rt))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function de(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-email-input",12),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")("emailValidationMsg","Must enter a Valid Email address for ")}}function Ce(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-date-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function oe(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-timepicker-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function G(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-ssn-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function ye(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-zip-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function we(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-fein-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function Fe(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-radio-group",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must Select a")}}function lt(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-number-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function Pt(xt,sn){if(1&xt){const ct=t.EpF();t.TgZ(0,"accela-money-input",10),t.NdJ("focusChange",function(){t.CHM(ct);const rt=t.oxw().$implicit,Et=t.oxw();return t.KtG(Et.onFocusChange(rt.value))}),t.qZA()}if(2&xt){const ct=t.oxw().$implicit,Ve=t.oxw();t.Q6J("parentFormRef",Ve.controlGroup)("controlRef",ct.value)("requiredValidationMsg","Must enter a")}}function wt(xt,sn){1&xt&&t._UZ(0,"accela-separator")}function Bt(xt,sn){if(1&xt&&(t.TgZ(0,"div",1),t.YNc(1,De,1,4,"accela-text-input",2),t.YNc(2,Ue,1,2,"accela-security-answer-input",3),t.YNc(3,Xe,1,3,"accela-textarea-input",3),t.YNc(4,st,1,3,"accela-password-input",4),t.YNc(5,ze,1,3,"accela-phone-input",4),t.YNc(6,F,1,3,"accela-dropdown-input",4),t.YNc(7,Re,1,3,"accela-checkbox-input",5),t.YNc(8,de,1,4,"accela-email-input",6),t.YNc(9,Ce,1,3,"accela-date-input",4),t.YNc(10,oe,1,3,"accela-timepicker-input",4),t.YNc(11,G,1,3,"accela-ssn-input",4),t.YNc(12,ye,1,3,"accela-zip-input",4),t.YNc(13,we,1,3,"accela-fein-input",4),t.YNc(14,Fe,1,3,"accela-radio-group",4),t.YNc(15,lt,1,3,"accela-number-input",4),t.YNc(16,Pt,1,3,"accela-money-input",4),t.YNc(17,wt,1,0,"accela-separator",7),t.qZA()),2&xt){const ct=sn.$implicit,Ve=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Textbox&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.SecurityAnswer&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.TextArea&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Password&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Phone&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Dropdown&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Checkbox&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Email&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Date&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Time&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.SSN&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Zip&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.FEIN&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.RadioGroup&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Number&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Money&&!(null!=ct.value.controlData&&ct.value.controlData.hidden)),t.xp6(1),t.Q6J("ngIf",(null==ct.value.controlData?null:ct.value.controlData.type)===Ve.controlTypes.Separator&&!(null!=ct.value.controlData&&ct.value.controlData.hidden))}}let nn=(()=>{class xt{store;controlGroup;blockChars;controlOnBlur=new t.vpe;onchkChange=new t.vpe;controlTypes=i.h;constructor(ct){this.store=ct}ngOnInit(){}unsorted(){return 0}onFocusChange(ct){this.controlOnBlur.emit(ct)}chkstatus(ct){this.onchkChange.emit(ct)}static \u0275fac=function(Ve){return new(Ve||xt)(t.Y36(r.yh))};static \u0275cmp=t.Xpm({type:xt,selectors:[["aca-page-layout-display"]],inputs:{controlGroup:"controlGroup",blockChars:"blockChars"},outputs:{controlOnBlur:"controlOnBlur",onchkChange:"onchkChange"},decls:2,vars:4,consts:[["class","controlsSection p-jc-centered",4,"ngFor","ngForOf"],[1,"controlsSection","p-jc-centered"],[3,"controlRef","requiredValidationMsg","parentFormRef","blockChars","focusChange",4,"ngIf"],[3,"controlRef","requiredValidationMsg","parentFormRef","focusChange",4,"ngIf"],[3,"parentFormRef","controlRef","requiredValidationMsg","focusChange",4,"ngIf"],[3,"parentFormRef","controlRef","requiredValidationMsg","focusChange","oncbChange",4,"ngIf"],[3,"parentFormRef","controlRef","requiredValidationMsg","emailValidationMsg","focusChange",4,"ngIf"],[4,"ngIf"],[3,"controlRef","requiredValidationMsg","parentFormRef","blockChars","focusChange"],[3,"controlRef","requiredValidationMsg","parentFormRef","focusChange"],[3,"parentFormRef","controlRef","requiredValidationMsg","focusChange"],[3,"parentFormRef","controlRef","requiredValidationMsg","focusChange","oncbChange"],[3,"parentFormRef","controlRef","requiredValidationMsg","emailValidationMsg","focusChange"]],template:function(Ve,rt){1&Ve&&(t.YNc(0,Bt,18,17,"div",0),t.ALo(1,"keyvalue")),2&Ve&&t.Q6J("ngForOf",t.xi3(1,1,null==rt.controlGroup?null:rt.controlGroup.controls,rt.unsorted))},dependencies:[L.sg,L.O5,M.D,v.f,y.T,u.a,_.R,p._,C.i,g.H,f.y,d.X,h.r,N,s.v,V.K,Q.d,me.u,ue.t,L.Nd],styles:[".controlsSection[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]     .textinput label, .textarea[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{min-width:90%}@media only screen and (max-device-width: 660px),(max-width: 600px){.controlsSection[_ngcontent-%COMP%]{min-width:100%;width:100%}}\n/*# sourceMappingURL=page-layout-display.component.css.map*/"]})}return xt})()},5782:(qe,re,l)=>{"use strict";l.d(re,{f:()=>D});var t=l(1420),i=l(276),M=(l(3786),l(9921)),v=l(2560),y=l(2266),u=l(4356),_=l(4666),p=l(6803),C=l(8179),g=l(6664),f=l(3462),d=l(6110);const h=["opInstructions"],T=["FieldLabelContentInstr"],b=["toolbar"],P=["sectionInstr"];function W(N,s){if(1&N&&(v._UZ(0,"span",38),v.ALo(1,"trustHtml")),2&N){const V=v.oxw();v.Q6J("innerHTML",v.lcZ(1,1,V.sectionContent),v.oJD)}}function I(N,s){1&N&&(v.TgZ(0,"span",39)(1,"em"),v._uU(2,"Click here to add instruction text"),v.qZA()())}const k=function(){return{width:"92%",marginTop:"15px"}};let D=(()=>{class N{pageLayoutService;localizationService;messageService;contentKey="";admin=!1;viewId="";module="";permissionLevel="";permissionValue="";adminUpdatePanel;fieldLabelContent;toolbar;sectionControl;editorContent="";sectionContent="";placeholderActive=!1;defaultContent="";placeholderContent="Click here to add instruction text";interactionObserver;quill;constructor(V,Q,me){this.pageLayoutService=V,this.localizationService=Q,this.messageService=me}ngAfterViewInit(){this.admin&&(this.interactionObserver=new IntersectionObserver(this.onIntersection,{root:null,threshold:.65}),""!==this.contentKey&&this.localizationService.getDefaultLabelByKey(this.contentKey).subscribe(V=>this.defaultContent=V,V=>{console.log(V),this.messageService.add({severity:"error",summary:V,closable:!1})}),this.interactionObserver.observe(this.adminUpdatePanel.el.nativeElement)),this.getContentFromDb()}getContentFromDb(){""!==this.contentKey&&this.localizationService.getHtmlText(this.contentKey,this.module).subscribe(V=>{(0,i.L)(V)&&this.admin?(this.sectionContent=null,this.editorContent=null,this.placeholderActive=!0):(this.sectionContent=V,this.editorContent=V,this.placeholderActive=!1)},V=>{console.log(V),this.messageService.add({severity:"error",summary:V,closable:!1})})}adminSelection(V){if(this.admin){this.quill=this.fieldLabelContent.getQuill(),this.quill&&this.quill.getModule("toolbar").addHandler("image",function(){const ue=prompt("Enter Image URL:");if(null!==ue&&""!==ue){const De=this.quill.getSelection();this.quill.insertEmbed(De.index,"image",ue),this.quill.formatText(De.index,De.index+1,"alt","Image")}});const Q=this.sectionControl.nativeElement;if(Q.insertAdjacentElement("afterend",this.adminUpdatePanel.el.nativeElement),this.adminUpdatePanel.container||(this.adminUpdatePanel.container=this.adminUpdatePanel.el.nativeElement.firstElementChild),this.adminUpdatePanel.show(V,Q),this.adminUpdatePanel.el.nativeElement&&this.adminUpdatePanel.el.nativeElement.classList.contains("admin-panel-flip")){if(this.adminUpdatePanel.container||(this.adminUpdatePanel.container=this.adminUpdatePanel.el.nativeElement.firstElementChild),this.adminUpdatePanel.container){t.p.addClass(this.adminUpdatePanel.container,"p-overlaypanel-flipped");const me=this.adminUpdatePanel.container.offsetParent?{width:this.adminUpdatePanel.container.offsetWidth,height:this.adminUpdatePanel.container.offsetHeight}:t.p.getHiddenElementDimensions(this.adminUpdatePanel.container);let ue=Q.getBoundingClientRect().top+t.p.getWindowScrollTop()-me.height;this.adminUpdatePanel.container.style.transformOrigin="bottom",ue<0&&(ue=t.p.getWindowScrollTop())}this.adminUpdatePanel.container&&(this.adminUpdatePanel.container.style.top=top+"px")}else this.adminUpdatePanel.align()}}onIntersection(V,Q){V.forEach(me=>me.target.classList.toggle("admin-panel-flip",me.isIntersecting))}submitAdminContentUpdate(){const V=this.quill.root.innerText.replace("\ufeff",""),Q=this.quill.root.innerHTML?.trim().includes("img"),me=""!==V.trim()||Q?this.quill.root.innerHTML?.trim():"";this.pageLayoutService.saveUpdatedSection(me,this.contentKey,this.viewId,this.module,this.permissionLevel,this.permissionValue).subscribe(ue=>{this.adminUpdatePanel.hide(),this.getContentFromDb()})}static \u0275fac=function(Q){return new(Q||N)(v.Y36(M.p),v.Y36(y.o),v.Y36(u.ez))};static \u0275cmp=v.Xpm({type:N,selectors:[["section-instructions"]],viewQuery:function(Q,me){if(1&Q&&(v.Gf(h,5),v.Gf(T,5),v.Gf(b,5),v.Gf(P,5)),2&Q){let ue;v.iGM(ue=v.CRH())&&(me.adminUpdatePanel=ue.first),v.iGM(ue=v.CRH())&&(me.fieldLabelContent=ue.first),v.iGM(ue=v.CRH())&&(me.toolbar=ue.first),v.iGM(ue=v.CRH())&&(me.sectionControl=ue.first)}},inputs:{contentKey:"contentKey",admin:"admin",viewId:"viewId",module:"module",permissionLevel:"permissionLevel",permissionValue:"permissionValue"},decls:55,vars:11,consts:function(){let V,Q;return V="Instruction Content",Q="Submit",[[3,"click"],["sectionInstr",""],["class","instruction-content",3,"innerHTML",4,"ngIf"],["class","admin-placeholder instruction-content",4,"ngIf"],[3,"dismissable","showCloseIcon","focusOnShow","appendTo","onHide"],["opInstructions",""],[1,"propertyInput","p-formgroup-inline","mb-4"],[1,"p-field"],["for","FieldLabelContentInstr"],V,["name","FieldLabelContentInstr","id","FieldLabelContentInstr","ngDefaultControl","",3,"placeholder","ngModel","placeholderChange","ngModelChange"],["FieldLabelContentInstr",""],[1,"toolbar","ql-toolbar","ql-snow"],["toolbar",""],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],["tabindex","-1",1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold",1,"ql-bold"],["aria-label","Italic",1,"ql-italic"],["aria-label","Underline",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered",1,"ql-list"],["value","bullet",1,"ql-list"],["title","Text Alignment",1,"ql-align"],["value","center","label","Center"],["value","right","label","Right"],["value","justify","label","Justify"],["aria-label","Link",1,"ql-link"],["aria-label","image",1,"ql-image"],["aria-label","Remove Styles",1,"ql-clean"],["id","editor"],["type","button","label",Q,"pRipple","",3,"click"],[1,"instruction-content",3,"innerHTML"],[1,"admin-placeholder","instruction-content"]]},template:function(Q,me){if(1&Q&&(v.TgZ(0,"div",0,1),v.NdJ("click",function(De){return me.adminSelection(De)}),v.YNc(2,W,2,3,"span",2),v.YNc(3,I,3,0,"span",3),v.qZA(),v.TgZ(4,"p-overlayPanel",4,5),v.NdJ("onHide",function(){return me.getContentFromDb()}),v.TgZ(6,"div",6)(7,"div",7)(8,"label",8),v.SDv(9,9),v.qZA(),v._UZ(10,"br"),v.TgZ(11,"p-editor",10,11),v.NdJ("placeholderChange",function(De){return me.placeholderContent=De})("ngModelChange",function(De){return me.editorContent=De}),v.TgZ(13,"p-header")(14,"div",12,13)(16,"span",14)(17,"select",15)(18,"option",16),v._uU(19,"Heading"),v.qZA(),v.TgZ(20,"option",17),v._uU(21,"Subheading"),v.qZA(),v.TgZ(22,"option",18),v._uU(23,"Normal"),v.qZA()()(),v.TgZ(24,"span",14)(25,"select",19)(26,"option",18),v._uU(27,"Sans Serif"),v.qZA(),v.TgZ(28,"option",20),v._uU(29,"Serif"),v.qZA(),v.TgZ(30,"option",21),v._uU(31,"Monospace"),v.qZA()()(),v.TgZ(32,"span",14),v._UZ(33,"button",22)(34,"button",23)(35,"button",24),v.qZA(),v.TgZ(36,"span",14),v._UZ(37,"select",25)(38,"select",26),v.qZA(),v.TgZ(39,"span",14),v._UZ(40,"button",27)(41,"button",28),v.TgZ(42,"select",29)(43,"option",18),v._uU(44,"Gauche"),v.qZA(),v._UZ(45,"option",30)(46,"option",31)(47,"option",32),v.qZA()(),v.TgZ(48,"span",14),v._UZ(49,"button",33)(50,"button",34),v.qZA(),v.TgZ(51,"span",14),v._UZ(52,"button",35),v.qZA()()(),v._UZ(53,"div",36),v.qZA()()(),v.TgZ(54,"accela-button-primary",37),v.NdJ("click",function(){return me.submitAdminContentUpdate()}),v.qZA()()),2&Q){const ue=v.MAs(1);v.xp6(2),v.Q6J("ngIf",!me.placeholderActive),v.xp6(1),v.Q6J("ngIf",me.placeholderActive&&me.admin),v.xp6(1),v.Akn(v.DdM(10,k)),v.Q6J("dismissable",!1)("showCloseIcon",!0)("focusOnShow",!0)("appendTo",ue),v.xp6(7),v.Q6J("placeholder",me.placeholderContent)("ngModel",me.editorContent)}},dependencies:[_.O5,p.YN,p.Kr,p.Fj,p.JJ,p.On,u.h4,C.ML,g.T,f.s,d.s],styles:["[_nghost-%COMP%]     .p-overlaypanel-content{min-width:36.75em}[_nghost-%COMP%]     .p-field{width:100%}[_nghost-%COMP%]     .p-editor-content{min-height:15em}input[_ngcontent-%COMP%]{vertical-align:middle;width:100%}.title-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]     .p-overlaypanel-flipped{width:90%}.p-overlaypanel[_ngcontent-%COMP%]{background-color:#fff}.p-overlaypanel[_ngcontent-%COMP%]   .p-overlaypanel-content[_ngcontent-%COMP%]{height:inherit}.admin-placeholder[_ngcontent-%COMP%]{border:1px black;border-style:groove}[_nghost-%COMP%]     .ql-font-serif{font-family:serif!important}[_nghost-%COMP%]     .ql-font-monospace{font-family:monospace!important}[_nghost-%COMP%]     .ql-align-center{text-align:center}[_nghost-%COMP%]     .ql-align-justify{text-align:justify}[_nghost-%COMP%]     .ql-align-right{text-align:right}[_nghost-%COMP%]     img{max-width:60%;max-height:60%;width:auto!important;height:auto!important}"]})}return N})()},5236:(qe,re,l)=>{"use strict";l.d(re,{D:()=>I});var t=l(1420),i=l(9921),r=l(2560),L=l(2266),M=l(4356),v=l(4666),y=l(6803),u=l(9906),_=l(6664),p=l(3462),C=l(6110);const g=["op"],f=["FieldLabelContent"],d=["title"];function h(k,D){if(1&k&&(r._UZ(0,"h1",6),r.ALo(1,"trustHtml")),2&k){const N=r.oxw();r.Q6J("innerHTML",r.lcZ(1,1,N.sectionContent),r.oJD)}}function T(k,D){if(1&k&&(r.TgZ(0,"div",8)(1,"div",15)(2,"label",16),r.SDv(3,17),r.qZA(),r._UZ(4,"input",18,19),r.qZA()()),2&k){const N=r.oxw(2);r.xp6(4),r.Q6J("escape",!1)("disabled",!0)("value",N.defaultLabel)}}const b=function(){return{width:"100%"}};function P(k,D){if(1&k){const N=r.EpF();r.YNc(0,T,6,3,"div",7),r.TgZ(1,"div",8)(2,"div",9)(3,"label",10),r.SDv(4,11),r.qZA(),r._UZ(5,"br"),r.TgZ(6,"input",12,13),r.NdJ("ngModelChange",function(V){r.CHM(N);const Q=r.oxw();return r.KtG(Q.sectionContent=V)}),r.qZA()()(),r.TgZ(8,"accela-button-primary",14),r.NdJ("click",function(){r.CHM(N);const V=r.oxw();return r.KtG(V.submitAdminContentUpdate())}),r.qZA()}if(2&k){const N=r.oxw();r.Q6J("ngIf",N.defaultLabel&&""!==N.defaultLabel),r.xp6(2),r.Akn(r.DdM(5,b)),r.xp6(4),r.Q6J("escape",!1)("ngModel",N.sectionContent)}}const W=function(){return{width:"92%",marginTop:"15px"}};let I=(()=>{class k{pageLayoutService;localizationService;messageService;contentKey="";admin=!1;viewId="";module="";permissionLevel="";permissionValue="";adminUpdatePanel;fieldLabelContent;titleControl;sectionContent="";defaultContent="";interactionObserver;constructor(N,s,V){this.pageLayoutService=N,this.localizationService=s,this.messageService=V}ngAfterViewInit(){this.admin&&(this.interactionObserver=new IntersectionObserver(this.onIntersection,{root:null,threshold:.65}),""!==this.contentKey&&this.localizationService.getDefaultLabelByKey(this.contentKey).subscribe(N=>this.defaultContent=N,N=>{console.log(N),this.messageService.add({severity:"error",summary:N,closable:!1})}),this.interactionObserver.observe(this.adminUpdatePanel.el.nativeElement)),this.getContentFromDb()}getContentFromDb(){""!==this.contentKey&&this.localizationService.getHtmlText(this.contentKey,this.module).subscribe(N=>{this.sectionContent=N},N=>{console.log(N),this.messageService.add({severity:"error",summary:N,closable:!1})})}adminSelection(N){if(this.admin){const s=this.titleControl.nativeElement;if(s.insertAdjacentElement("afterend",this.adminUpdatePanel.el.nativeElement),this.adminUpdatePanel.container||(this.adminUpdatePanel.container=this.adminUpdatePanel.el.nativeElement.firstElementChild),this.adminUpdatePanel.show(N,s),this.adminUpdatePanel.el.nativeElement&&this.adminUpdatePanel.el.nativeElement.classList.contains("admin-panel-flip")){this.adminUpdatePanel.container||(this.adminUpdatePanel.container=this.adminUpdatePanel.el.nativeElement.firstElementChild),t.p.addClass(this.adminUpdatePanel.container,"p-overlaypanel-flipped");const V=this.adminUpdatePanel.container.offsetParent?{width:this.adminUpdatePanel.container.offsetWidth,height:this.adminUpdatePanel.container.offsetHeight}:t.p.getHiddenElementDimensions(this.adminUpdatePanel.container);let Q=s.getBoundingClientRect().top+t.p.getWindowScrollTop()-V.height;this.adminUpdatePanel.container.style.transformOrigin="bottom",Q<0&&(Q=t.p.getWindowScrollTop()),this.adminUpdatePanel.container.style.top=Q+"px"}else this.adminUpdatePanel.align()}}onIntersection(N,s){N.forEach(V=>V.target.classList.toggle("admin-panel-flip",V.isIntersecting))}submitAdminContentUpdate(){this.pageLayoutService.saveUpdatedSection(this.sectionContent,this.contentKey,this.viewId,this.module,this.permissionLevel,this.permissionValue).subscribe(N=>{this.adminUpdatePanel.hide(),this.getContentFromDb()})}static \u0275fac=function(s){return new(s||k)(r.Y36(i.p),r.Y36(L.o),r.Y36(M.ez))};static \u0275cmp=r.Xpm({type:k,selectors:[["section-title"]],viewQuery:function(s,V){if(1&s&&(r.Gf(g,5),r.Gf(f,5),r.Gf(d,5)),2&s){let Q;r.iGM(Q=r.CRH())&&(V.adminUpdatePanel=Q.first),r.iGM(Q=r.CRH())&&(V.fieldLabelContent=Q.first),r.iGM(Q=r.CRH())&&(V.titleControl=Q.first)}},inputs:{contentKey:"contentKey",admin:"admin",viewId:"viewId",module:"module",permissionLevel:"permissionLevel",permissionValue:"permissionValue"},decls:6,vars:7,consts:function(){let N,s,V;return N="Title Content",s="Submit",V="Default Label",[[1,"mb-4",3,"click"],["title",""],["class","title-content",3,"innerHTML",4,"ngIf"],["appendTo","title",3,"dismissable","showCloseIcon","focusOnShow"],["op",""],["pTemplate",""],[1,"title-content",3,"innerHTML"],["class","propertyInput p-formgroup-inline",4,"ngIf"],[1,"propertyInput","p-formgroup-inline"],[1,"p-field","mb-3"],["for","FieldLabelContent"],N,["type","text","pInputText","","name","FieldLabelContent","id","FieldLabelContent",3,"escape","ngModel","ngModelChange"],["FieldLabelContent",""],["type","button","label",s,"pRipple","",3,"click"],[1,"p-field"],["for","DefaultLabelContent"],V,["name","DefaultLabelContent","id","DefaultLabelContent","type","text","pInputText","",3,"escape","disabled","value"],["DefaultLabelContent",""]]},template:function(s,V){1&s&&(r.TgZ(0,"div",0,1),r.NdJ("click",function(me){return V.adminSelection(me)}),r.YNc(2,h,2,3,"h1",2),r.qZA(),r.TgZ(3,"p-overlayPanel",3,4),r.YNc(5,P,9,6,"ng-template",5),r.qZA()),2&s&&(r.xp6(2),r.Q6J("ngIf",""!==V.sectionContent),r.xp6(1),r.Akn(r.DdM(6,W)),r.Q6J("dismissable",!0)("showCloseIcon",!0)("focusOnShow",!0))},dependencies:[v.O5,y.Fj,y.JJ,y.On,M.jx,u.o,_.T,p.s,C.s],styles:["[_nghost-%COMP%]     .p-overlaypanel-content{min-width:36.75em}[_nghost-%COMP%]     .p-field{width:100%}[_nghost-%COMP%]     .p-editor-content{min-height:15em}input[_ngcontent-%COMP%]{vertical-align:middle;width:100%}.title-content[_ngcontent-%COMP%]{width:100%;font-style:normal;font-weight:300;font-size:39px;line-height:53px;color:#000;flex:none;order:0;flex-grow:0}[_nghost-%COMP%]     .p-overlaypanel-flipped{width:90%}.accela-theme[_ngcontent-%COMP%]   .p-overlaypanel[_ngcontent-%COMP%]{background-color:#fff}#FieldLabelContent[_ngcontent-%COMP%]{width:100%}\n/*# sourceMappingURL=section-title.component.css.map*/"]})}return k})()},5699:(qe,re,l)=>{"use strict";l.d(re,{h:()=>i,x:()=>t});class t{name;type;display;required;readOnly;hidden=!1;defaultLabel;label;tooltip;placeholder;options;optionKey;mask;maxLength;value;templateField;isDBRequired}var i=(()=>{return(r=i||(i={}))[r.Blocked=0]="Blocked",r[r.Checkbox=1]="Checkbox",r[r.Dropdown=2]="Dropdown",r[r.Date=3]="Date",r[r.Email=4]="Email",r[r.FEIN=5]="FEIN",r[r.Password=6]="Password",r[r.Phone=7]="Phone",r[r.RadioGroup=8]="RadioGroup",r[r.SSN=9]="SSN",r[r.Textbox=10]="Textbox",r[r.SecurityAnswer=11]="SecurityAnswer",r[r.Zip=12]="Zip",r[r.Number=13]="Number",r[r.Separator=14]="Separator",r[r.Time=15]="Time",r[r.TextArea=16]="TextArea",r[r.Money=17]="Money",i;var r})()},5583:(qe,re,l)=>{"use strict";l.d(re,{u:()=>p});var t=l(8987),i=l(745),r=l(635),L=l(3158),M=l(276),v=l(2560),y=l(8286),u=l(4356),_=l(508);let p=(()=>{class C{http;apiRef;messageService;errorHandler;headers;apiServer;constructor(f,d,h,T){this.http=f,this.apiRef=d,this.messageService=h,this.errorHandler=T,this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/ExpressionJs/"}getExpressionJsScriptOnLoad(f,d,h,T,b){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetExpressionsForOnLoad`,[{Key:"module",Value:d},{Key:"viewId",Value:f},{Key:"permissionLevel",Value:h},{Key:"permissionValue",Value:T},{Key:"callerId",Value:b}]),{headers:this.headers}).pipe((0,r.U)(P=>P))}getExpressionJsScriptOnSubmit(f,d,h,T,b){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetExpressionsForOnSubmit`,[{Key:"module",Value:d},{Key:"viewId",Value:f},{Key:"permissionLevel",Value:h},{Key:"permissionValue",Value:T},{Key:"callerId",Value:b}]),{headers:this.headers}).pipe((0,L.K)(this.errorHandler.handleError)).pipe((0,r.U)(P=>P))}getExpressionJsScriptForExecute(f,d,h,T,b){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetExpressionsForExecute`,[{Key:"module",Value:d},{Key:"viewId",Value:f},{Key:"permissionLevel",Value:h},{Key:"permissionValue",Value:T},{Key:"callerId",Value:b}]),{headers:this.headers}).pipe((0,L.K)(this.errorHandler.handleError)).pipe((0,r.U)(P=>P))}invokeExpression(f,d,h=null){return h&&h.focus(),f&&f.inputFields?this.http.post(this.apiRef.getApiUrl(`${this.apiServer}RunExpression`),f,{headers:this.headers}).pipe((0,L.K)(this.errorHandler.handleError),(0,r.U)(T=>{if(T){let b=null;try{b=JSON.parse(T.toString())}catch{return void console.log(`Error executing expression, invalid response: ${T}`)}b&&this.handleResult(b,f.args&&f.args.executeFieldVariableKey?f.args.executeFieldVariableKey:null,d)}})):(0,i.of)()}handleResult(f,d,h){if(f&&f.fields&&0!==f.fields.length)for(const T of f.fields){const b=h.controls[T.name];b?(T.value&&""!==T.value&&b.patchValue(T.value),null!==T.hidden&&(b.controlData.hidden=T.hidden),null!==T.readOnly&&(b.controlData.readOnly=T.readOnly),null!==T.required&&(b.controlData.required=T.required),(0,M.L)(T.message)||this.messageService.add({severity:"info",summary:`${T.name}: ${T.message}`,detail:"Via ExpressionService",closable:!1})):console.log("ExpressionJs: unable to find control: "+T.name)}}isYes(f,d){if("string"!=typeof d||(0,M.L)(f)||(0,M.L)(d))return!1;const h=d.toUpperCase();return"CHECK"===h||"CHECKED"===h||"TRUE"===h||"SELECT"===h||"SELECTED"===h||"ON"===h||"YES"===h||"Y"===h?d="Yes":"FEMALE"!==h&&"F"!==h&&"MALE"!==h&&"M"!==h&&(d="No"),f.substring(0,1).toUpperCase()===d.substring(0,1).toUpperCase()}static \u0275fac=function(d){return new(d||C)(v.LFG(t.eN),v.LFG(y.q),v.LFG(u.ez),v.LFG(_.k))};static \u0275prov=v.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},9134:(qe,re,l)=>{"use strict";l.d(re,{B:()=>_});var t=l(8987),i=l(635),r=l(8977),L=l(3158),M=l(7024),v=l(2560),y=l(8286),u=l(508);let _=(()=>{class p{http;apiRef;encryptionService;httpErrorHandler;headers;apiServer;newApiRoute;constructor(g,f,d,h){this.http=g,this.apiRef=f,this.encryptionService=d,this.httpErrorHandler=h,this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/PublicUser/",this.newApiRoute="api/Account/"}getAccountStatus(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}AccountStatus`),{headers:this.headers}).pipe((0,i.U)(g=>!!g&&"true"===g.toString().toLowerCase()))}getSecurityQuestions(g){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetSecurityQuestions`,[{Key:"username",Value:g}]),{headers:this.headers}).pipe((0,i.U)(f=>f))}verifyCaptchaData(g){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}VerifyRecaptcha`,[{Key:"token",Value:g}]),{headers:this.headers}).pipe((0,i.U)(f=>f))}validateUserAccount(g){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}ValidateUser`),g).pipe((0,i.U)(f=>f))}validatePasswordRequisites(g){const f=new M.C(this.apiRef);return g.Pwd=f.encryptAes(g.Pwd),this.http.post(this.apiRef.getApiUrl(`${this.apiServer}VerifyPasswordReqs`),{headers:this.headers,body:g}).pipe((0,r.x)()).pipe((0,i.U)(d=>d.result)).pipe((0,L.K)(this.httpErrorHandler.handleError))}loginToACA(g){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}SignIn`),g).pipe((0,i.U)(f=>f)).pipe((0,L.K)(this.httpErrorHandler.handleError))}saveNewAccount(g){return g.Password=this.encryptionService.encryptAes(g.Password),this.http.post(this.apiRef.getApiUrl(`${this.apiServer}SaveNewUserAccount`),{headers:this.headers,body:g}).pipe((0,i.U)(f=>f.Uri.toString()))}linkNewAccount(g){const f={username:g.Username,contactmodels:g.Contacts,licenseLinks:g.licenseLinks};return this.http.post(this.apiRef.getApiUrl(`${this.newApiRoute}link`),f,{headers:this.headers}).pipe((0,i.U)(d=>d)).pipe((0,L.K)(this.httpErrorHandler.handleError))}static \u0275fac=function(f){return new(f||p)(v.LFG(t.eN),v.LFG(y.q),v.LFG(M.C),v.LFG(u.k))};static \u0275prov=v.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},3850:(qe,re,l)=>{"use strict";l.d(re,{P:()=>L});var t=l(8987),i=l(2560),r=l(8286);let L=(()=>{class M{http;apiRef;headers;apiServer;constructor(y,u){this.http=y,this.apiRef=u,this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/Address/"}getAddressTypes(y){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getAddressTypes`,[{Key:"contactType",Value:y}]))}getStreetDirectionValues(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getStreetDirectionValues`))}getStreetSuffixValues(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getStreetSuffixValues`))}getStreetTypeValues(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getStreetTypeValues`))}getUnitTypes(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getUnitTypes`))}getSubdivisionValues(y){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getSubdivisionValues`,[{Key:"showType",Value:y}]))}static \u0275fac=function(u){return new(u||M)(i.LFG(t.eN),i.LFG(r.q))};static \u0275prov=i.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})()},4212:(qe,re,l)=>{"use strict";l.d(re,{a:()=>M});var t=l(8987),i=l(635),r=l(2560),L=l(8286);let M=(()=>{class v{http;apiRef;headers;apiServer;constructor(u,_){this.http=u,this.apiRef=_,this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/ContactAddress/"}getContactTypes(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getContactTypes`)).pipe((0,i.U)(u=>u))}getContactTypesForMultiContact(u,_,p){try{return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getContactTypes`,[{Key:"sessionParameterString",Value:u},{Key:"moduleName",Value:_},{Key:"isMultipleContact",Value:p}]),{headers:this.headers}).pipe((0,i.U)(C=>C))}catch(C){return console.log(C),null}}getGenderList(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getGenderList`))}getEthnicityValues(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getEthnicityValues`))}getSalutationList(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getSalutations`))}getPreferredChannel(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}getPrefferedChannel`)).pipe((0,i.U)(u=>u))}getContactInfo(u){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetContactByContactSeqNbr`,[{Key:"contactSeqNbr",Value:u.toString()}]))}saveContactDataToSession(u,_){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}SaveContactDataToSession`,[{Key:"Module",Value:_}]),{headers:this.headers,body:u}).pipe((0,i.U)(p=>p.message.toString()))}removeContactDataFromSession(u,_){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}RemoveContactDataFromSession`,[{Key:"Module",Value:u},{Key:"index",Value:_.toString()}]),{headers:{"content-type":"application/json"}})}CreateContactParametersSession(u,_,p,C=0){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}CreateContactParametersSession`,[{Key:"moduleName",Value:_},{Key:"processType",Value:p},{Key:"contactIndex",Value:C.toString()}]),u,{headers:{"content-type":"application/json"}})}getContactModel(u,_){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetContactModelFromSession`,[{Key:"sessionParameterString",Value:u},{Key:"moduleName",Value:_}]),{headers:this.headers}).pipe((0,i.U)(C=>C))}getContactListFromSession(u,_){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetContactListFromSession`,[{Key:"sessionParameterString",Value:u},{Key:"moduleName",Value:_}]),{headers:this.headers}).pipe((0,i.U)(C=>C))}validateContactAddress(u,_){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}ValidateContactAddress`,[{Key:"moduleName",Value:_}]),{headers:this.headers,body:u}).pipe((0,i.U)(C=>C.message.toString()))}getContactsFromAccount(u){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetContactsFromAccount`,[{Key:"moduleName",Value:u}]),{headers:this.headers}).pipe((0,i.U)(p=>p))}saveContactListToSession(u,_){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}SaveContactListToSession`,[{Key:"moduleName",Value:_}]),{headers:this.headers,body:u}).pipe((0,i.U)(p=>p.message.toString()))}static \u0275fac=function(_){return new(_||v)(r.LFG(t.eN),r.LFG(L.q))};static \u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()},8819:(qe,re,l)=>{"use strict";l.d(re,{X:()=>M});var t=l(8987),i=l(635),r=l(2560),L=l(8286);let M=(()=>{class v{http;apiRef;headers;apiServer;trackedLinks=new Array;trackedScripts=new Array;constructor(u,_){this.http=u,this.apiRef=_,this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/customizedcode/"}loadAndRunCustomScriptBlock(u,_,p){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}links`,[{Key:"routeName",Value:p}])).pipe((0,i.U)(C=>{C.result&&C.result.forEach(f=>{if(f.endsWith("css")){const d=this.apiRef.getCustomizationUrl(f),h=_.createElement("link");h.rel="stylesheet",h.type="text/css",h.id=f+"style",h.href=d,this.trackedLinks.push(h),u.appendChild(_.body,h)}else{const d=this.apiRef.getCustomizationUrl(f),h=_.createElement("script");h.type="text/javascript",h.id=f+"js",h.src=d,this.trackedScripts.push(h),u.appendChild(_.body,h)}})})).subscribe()}removeTrackedElements(){this.trackedLinks.forEach(u=>u.remove()),this.trackedScripts.forEach(u=>u.remove())}static \u0275fac=function(_){return new(_||v)(r.LFG(t.eN),r.LFG(L.q))};static \u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()},8891:(qe,re,l)=>{"use strict";l.d(re,{t:()=>p});var t=l(745),i=l(635);const r=C=>C.Contact;var L=l(276),M=l(2560),v=l(9263),y=l(4212),u=l(3850),_=l(4591);class p{static genderIds=new Array;static preferedChannels=new Array;static addressService;static contactService;static regionalService;static store;static salutationValues=new Array;static streetDirectionValues=new Array;static streetSuffixValues=new Array;static unitTypes=new Array;static streetTypeValues=new Array;static countryValues=new Array;static stateValues=new Array;static stateRegion;static defaultRegion;static ethniticityValues=new Array;static addressTypes=new Array;static subdivisionValues=new Array;static securityTemplates=[{label:"To what city did you go the first time you flew on a plane?",value:"To what city did you go the first time you flew on a plane?"},{label:"What is the first name of the person you first kissed?",value:"What is the first name of the person you first kissed?"},{label:"What was the last name of your favorite childhood teacher?",value:"What was the last name of your favorite childhood teacher?"},{label:"In what city or town does your nearest sibling live?",value:"In what city or town does your nearest sibling live?"},{label:"In what town or city was your first full time job?",value:"In what town or city was your first full time job?"},{label:"What was your favorite food as a child?",value:"What was your favorite food as a child?"}];DropdownValueRepo={ddlAddressType:this.getAddressTypes,ddlAppSalutation:this.getSalutationValue,ddlAppCountry:this.getCountryValues,ddlAppState:this.getStateValues,ddlBirthplaceState:this.getStateValues,ddlBirthplaceCountry:this.getCountryValues,ddlCountry:this.getCountryValues,ddlDriverLicenseState:this.getStateValues,ddlPreferredChannel:this.getPreferedChannels,ddlQuestion:this.getSecurityQuestionTemplates,ddlRace:this.getEthnicityValues,ddlStreetDirection:this.getStreetDirectionValues,ddlStreetSuffix:this.getStreetSuffixValues,ddlStreetSuffixDirection:this.getStreetDirectionValues,ddlStreetType:this.getStreetTypeValues,ddlUnitType:this.getUnitTypes,ddlQuestionForDaily:this.getSecurityQuestionTemplates,radioListAppGender:this.getGenderIdentityValue,ddlSubdivision:this.getSubdivisionValues,txtState:this.getStateValues,txtAppState:this.getStateValues};constructor(g,f,d,h){p.addressService=d,p.contactService=f,p.regionalService=h,p.store=g,p.regionalService.getDefaultCountry().subscribe(T=>p.defaultRegion=T)}getDropdownValueFun(g,f){const d=this.DropdownValueRepo[g];return d?f&&""!==f?d(f):d():(0,t.of)(null)}getRepoValueFunc(g){return this.DropdownValueRepo[g]}getSalutationValue(){return p.salutationValues.length<=0?p.contactService.getSalutationList().pipe((0,i.U)(g=>(g.forEach(d=>{p.salutationValues.push({label:d,value:d})}),p.salutationValues))):(0,t.of)(p.salutationValues)}getStreetDirectionValues(){return p.streetDirectionValues.length<=0?p.addressService.getStreetDirectionValues().pipe((0,i.U)(g=>(p.streetDirectionValues.length=0,Object.keys(g).forEach(f=>{p.streetDirectionValues.push({label:g[f],value:f})}),p.streetDirectionValues))):(0,t.of)(p.streetDirectionValues)}getStreetSuffixValues(){return p.streetSuffixValues.length<=0?p.addressService.getStreetSuffixValues().pipe((0,i.U)(g=>(p.streetSuffixValues.length=0,Object.keys(g).forEach(f=>{p.streetSuffixValues.push({label:g[f],value:f})}),p.streetSuffixValues))):(0,t.of)(p.streetSuffixValues)}getUnitTypes(){return p.unitTypes.length<=0?p.addressService.getUnitTypes().pipe((0,i.U)(g=>(p.unitTypes.length=0,Object.keys(g).forEach(f=>{p.unitTypes.push({label:g[f],value:f})}),p.unitTypes))):(0,t.of)(p.unitTypes)}getStreetTypeValues(){return p.streetTypeValues.length<=0?p.addressService.getStreetTypeValues().pipe((0,i.U)(g=>(p.streetTypeValues.length=0,Object.keys(g).forEach(f=>{p.streetTypeValues.push({label:g[f],value:f})}),p.streetTypeValues))):(0,t.of)(p.streetTypeValues)}getPreferedChannels(){return p.preferedChannels.length<=0?p.contactService.getPreferredChannel().pipe((0,i.U)(g=>(g.forEach(f=>{p.preferedChannels.push({label:f.Key,value:f.Value})}),p.preferedChannels))):(0,t.of)(p.preferedChannels)}getCountryValues(){return p.countryValues.length<=0?p.regionalService.getCountryList().pipe((0,i.U)(g=>(g.map(f=>{p.countryValues.push(f)}),p.countryValues))):(0,t.of)(p.countryValues)}getStateValues(g){return(0,L.L)(g)&&(g=p.defaultRegion),p.stateValues.length<=0||g!==p.stateRegion?p.regionalService.getRegionalMasks(g).pipe((0,i.U)(f=>(p.stateValues=[],p.stateValues=f.States,p.stateRegion=g,p.stateValues))):(0,t.of)(p.stateValues)}getEthnicityValues(){return p.ethniticityValues.length<=0?p.contactService.getEthnicityValues().pipe((0,i.U)(g=>(g.forEach(d=>{p.ethniticityValues.push({label:d.Key,value:d.Value})}),p.ethniticityValues))):(0,t.of)(p.ethniticityValues)}getAddressTypes(g){return p.addressTypes.length<=0?(g||p.store.select(r).pipe((0,i.U)(f=>f)).subscribe(f=>{f&&(g=f.Type)}),p.addressService.getAddressTypes(g).pipe((0,i.U)(f=>(p.addressTypes.length=0,f.forEach(h=>{p.addressTypes.push({label:h,value:h})}),p.addressTypes)))):(0,t.of)(p.addressTypes)}getSecurityQuestionTemplates(){return(0,t.of)(p.securityTemplates)}getGenderIdentityValue(){return p.genderIds.length<=0?p.contactService.getGenderList().pipe((0,i.U)(g=>(g.forEach(d=>{p.genderIds.push({label:d,value:d})}),p.genderIds))):(0,t.of)(p.genderIds)}getSubdivisionValues(){return p.subdivisionValues.length<=0?p.addressService.getSubdivisionValues(0).pipe((0,i.U)(g=>(p.subdivisionValues=[],Object.keys(g).forEach(f=>{p.subdivisionValues.push({label:g[f].Key,value:g[f].Value})}),p.subdivisionValues))):(0,t.of)(p.subdivisionValues)}static \u0275fac=function(f){return new(f||p)(M.LFG(v.yh),M.LFG(y.a),M.LFG(u.P),M.LFG(_.H))};static \u0275prov=M.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}},7024:(qe,re,l)=>{"use strict";l.d(re,{C:()=>nr});class t{static create(...ce){return new this(...ce)}mixIn(ce){return Object.assign(this,ce)}clone(){const ce=new this.constructor;return Object.assign(ce,this),ce}}class i extends t{constructor(ce=[],Se=4*ce.length){super();let Me=ce;if(Me instanceof ArrayBuffer&&(Me=new Uint8Array(Me)),(Me instanceof Int8Array||Me instanceof Uint8ClampedArray||Me instanceof Int16Array||Me instanceof Uint16Array||Me instanceof Int32Array||Me instanceof Uint32Array||Me instanceof Float32Array||Me instanceof Float64Array)&&(Me=new Uint8Array(Me.buffer,Me.byteOffset,Me.byteLength)),Me instanceof Uint8Array){const Pe=Me.byteLength,$e=[];for(let ft=0;ft<Pe;ft+=1)$e[ft>>>2]|=Me[ft]<<24-ft%4*8;this.words=$e,this.sigBytes=Pe}else this.words=ce,this.sigBytes=Se}static random(ce){const Se=[],Me=Pe=>{let $e=Pe,ft=987654321;const At=4294967295;return()=>{ft=36969*(65535&ft)+(ft>>16)&At,$e=18e3*(65535&$e)+($e>>16)&At;let $t=(ft<<16)+$e&At;return $t/=4294967296,$t+=.5,$t*(Math.random()>.5?1:-1)}};for(let $e,Pe=0;Pe<ce;Pe+=4){const ft=Me(4294967296*($e||Math.random()));$e=987654071*ft(),Se.push(4294967296*ft()|0)}return new i(Se,ce)}toString(ce=r){return ce.stringify(this)}concat(ce){const Se=this.words,Me=ce.words,Pe=this.sigBytes,$e=ce.sigBytes;if(this.clamp(),Pe%4)for(let ft=0;ft<$e;ft+=1)Se[Pe+ft>>>2]|=(Me[ft>>>2]>>>24-ft%4*8&255)<<24-(Pe+ft)%4*8;else for(let ft=0;ft<$e;ft+=4)Se[Pe+ft>>>2]=Me[ft>>>2];return this.sigBytes+=$e,this}clamp(){const{words:ce,sigBytes:Se}=this;ce[Se>>>2]&=4294967295<<32-Se%4*8,ce.length=Math.ceil(Se/4)}clone(){const ce=super.clone.call(this);return ce.words=this.words.slice(0),ce}}const r={stringify(Ye){const{words:ce,sigBytes:Se}=Ye,Me=[];for(let Pe=0;Pe<Se;Pe+=1){const $e=ce[Pe>>>2]>>>24-Pe%4*8&255;Me.push(($e>>>4).toString(16)),Me.push((15&$e).toString(16))}return Me.join("")},parse(Ye){const ce=Ye.length,Se=[];for(let Me=0;Me<ce;Me+=2)Se[Me>>>3]|=parseInt(Ye.substr(Me,2),16)<<24-Me%8*4;return new i(Se,ce/2)}},L={stringify(Ye){const{words:ce,sigBytes:Se}=Ye,Me=[];for(let Pe=0;Pe<Se;Pe+=1)Me.push(String.fromCharCode(ce[Pe>>>2]>>>24-Pe%4*8&255));return Me.join("")},parse(Ye){const ce=Ye.length,Se=[];for(let Me=0;Me<ce;Me+=1)Se[Me>>>2]|=(255&Ye.charCodeAt(Me))<<24-Me%4*8;return new i(Se,ce)}},M={stringify(Ye){try{return decodeURIComponent(escape(L.stringify(Ye)))}catch{throw new Error("Malformed UTF-8 data")}},parse:Ye=>L.parse(unescape(encodeURIComponent(Ye)))};class v extends t{constructor(){super(),this._minBufferSize=0}reset(){this._data=new i,this._nDataBytes=0}_append(ce){let Se=ce;"string"==typeof Se&&(Se=M.parse(Se)),this._data.concat(Se),this._nDataBytes+=Se.sigBytes}_process(ce){let Se;const{_data:Me,blockSize:Pe}=this,$e=Me.words,ft=Me.sigBytes;let $t=ft/(4*Pe);$t=ce?Math.ceil($t):Math.max((0|$t)-this._minBufferSize,0);const rn=$t*Pe,jt=Math.min(4*rn,ft);if(rn){for(let hn=0;hn<rn;hn+=Pe)this._doProcessBlock($e,hn);Se=$e.splice(0,rn),Me.sigBytes-=jt}return new i(Se,jt)}clone(){const ce=super.clone.call(this);return ce._data=this._data.clone(),ce}}class y extends v{constructor(ce){super(),this.blockSize=16,this.cfg=Object.assign(new t,ce),this.reset()}static _createHelper(ce){return(Se,Me)=>new ce(Me).finalize(Se)}static _createHmacHelper(ce){return(Se,Me)=>new u(ce,Me).finalize(Se)}reset(){super.reset.call(this),this._doReset()}update(ce){return this._append(ce),this._process(),this}finalize(ce){return ce&&this._append(ce),this._doFinalize()}}class u extends t{constructor(ce,Se){super();const Me=new ce;this._hasher=Me;let Pe=Se;"string"==typeof Pe&&(Pe=M.parse(Pe));const $e=Me.blockSize,ft=4*$e;Pe.sigBytes>ft&&(Pe=Me.finalize(Se)),Pe.clamp();const At=Pe.clone();this._oKey=At;const $t=Pe.clone();this._iKey=$t;const rn=At.words,jt=$t.words;for(let hn=0;hn<$e;hn+=1)rn[hn]^=1549556828,jt[hn]^=909522486;At.sigBytes=ft,$t.sigBytes=ft,this.reset()}reset(){const ce=this._hasher;ce.reset(),ce.update(this._iKey)}update(ce){return this._hasher.update(ce),this}finalize(ce){const Se=this._hasher,Me=Se.finalize(ce);return Se.reset(),Se.finalize(this._oKey.clone().concat(Me))}}const _=i;class p extends t{constructor(ce,Se){super(),this.high=ce,this.low=Se}}class C extends t{constructor(ce=[],Se=8*ce.length){super(),this.words=ce,this.sigBytes=Se}toX32(){const ce=this.words,Se=ce.length,Me=[];for(let Pe=0;Pe<Se;Pe+=1){const $e=ce[Pe];Me.push($e.high),Me.push($e.low)}return _.create(Me,this.sigBytes)}clone(){const ce=super.clone.call(this);ce.words=this.words.slice(0);const{words:Se}=ce,Me=Se.length;for(let Pe=0;Pe<Me;Pe+=1)Se[Pe]=Se[Pe].clone();return ce}}const f={stringify(Ye){const{words:ce,sigBytes:Se}=Ye,Me=this._map;Ye.clamp();const Pe=[];for(let ft=0;ft<Se;ft+=3){const jt=(ce[ft>>>2]>>>24-ft%4*8&255)<<16|(ce[ft+1>>>2]>>>24-(ft+1)%4*8&255)<<8|ce[ft+2>>>2]>>>24-(ft+2)%4*8&255;for(let hn=0;hn<4&&ft+.75*hn<Se;hn+=1)Pe.push(Me.charAt(jt>>>6*(3-hn)&63))}const $e=Me.charAt(64);if($e)for(;Pe.length%4;)Pe.push($e);return Pe.join("")},parse(Ye){let ce=Ye.length;const Se=this._map;let Me=this._reverseMap;if(!Me){this._reverseMap=[],Me=this._reverseMap;for(let $e=0;$e<Se.length;$e+=1)Me[Se.charCodeAt($e)]=$e}const Pe=Se.charAt(64);if(Pe){const $e=Ye.indexOf(Pe);-1!==$e&&(ce=$e)}return((Ye,ce,Se)=>{const Me=[];let Pe=0;for(let $e=0;$e<ce;$e+=1)if($e%4){const ft=Se[Ye.charCodeAt($e-1)]<<$e%4*2,At=Se[Ye.charCodeAt($e)]>>>6-$e%4*2;Me[Pe>>>2]|=(ft|At)<<24-Pe%4*8,Pe+=1}return i.create(Me,Pe)})(Ye,ce,Me)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},d=[];for(let Ye=0;Ye<64;Ye+=1)d[Ye]=4294967296*Math.abs(Math.sin(Ye+1))|0;const h=(Ye,ce,Se,Me,Pe,$e,ft)=>{const At=Ye+(ce&Se|~ce&Me)+Pe+ft;return(At<<$e|At>>>32-$e)+ce},T=(Ye,ce,Se,Me,Pe,$e,ft)=>{const At=Ye+(ce&Me|Se&~Me)+Pe+ft;return(At<<$e|At>>>32-$e)+ce},b=(Ye,ce,Se,Me,Pe,$e,ft)=>{const At=Ye+(ce^Se^Me)+Pe+ft;return(At<<$e|At>>>32-$e)+ce},P=(Ye,ce,Se,Me,Pe,$e,ft)=>{const At=Ye+(Se^(ce|~Me))+Pe+ft;return(At<<$e|At>>>32-$e)+ce};class W extends y{_doReset(){this._hash=new i([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(ce,Se){const Me=ce;for(let ie=0;ie<16;ie+=1){const _e=Se+ie,Ke=ce[_e];Me[_e]=16711935&(Ke<<8|Ke>>>24)|4278255360&(Ke<<24|Ke>>>8)}const Pe=this._hash.words,$e=Me[Se+0],ft=Me[Se+1],At=Me[Se+2],$t=Me[Se+3],rn=Me[Se+4],jt=Me[Se+5],hn=Me[Se+6],yn=Me[Se+7],Zn=Me[Se+8],jn=Me[Se+9],ti=Me[Se+10],On=Me[Se+11],qn=Me[Se+12],Ai=Me[Se+13],fi=Me[Se+14],Ki=Me[Se+15];let Vt=Pe[0],ae=Pe[1],Qe=Pe[2],A=Pe[3];Vt=h(Vt,ae,Qe,A,$e,7,d[0]),A=h(A,Vt,ae,Qe,ft,12,d[1]),Qe=h(Qe,A,Vt,ae,At,17,d[2]),ae=h(ae,Qe,A,Vt,$t,22,d[3]),Vt=h(Vt,ae,Qe,A,rn,7,d[4]),A=h(A,Vt,ae,Qe,jt,12,d[5]),Qe=h(Qe,A,Vt,ae,hn,17,d[6]),ae=h(ae,Qe,A,Vt,yn,22,d[7]),Vt=h(Vt,ae,Qe,A,Zn,7,d[8]),A=h(A,Vt,ae,Qe,jn,12,d[9]),Qe=h(Qe,A,Vt,ae,ti,17,d[10]),ae=h(ae,Qe,A,Vt,On,22,d[11]),Vt=h(Vt,ae,Qe,A,qn,7,d[12]),A=h(A,Vt,ae,Qe,Ai,12,d[13]),Qe=h(Qe,A,Vt,ae,fi,17,d[14]),ae=h(ae,Qe,A,Vt,Ki,22,d[15]),Vt=T(Vt,ae,Qe,A,ft,5,d[16]),A=T(A,Vt,ae,Qe,hn,9,d[17]),Qe=T(Qe,A,Vt,ae,On,14,d[18]),ae=T(ae,Qe,A,Vt,$e,20,d[19]),Vt=T(Vt,ae,Qe,A,jt,5,d[20]),A=T(A,Vt,ae,Qe,ti,9,d[21]),Qe=T(Qe,A,Vt,ae,Ki,14,d[22]),ae=T(ae,Qe,A,Vt,rn,20,d[23]),Vt=T(Vt,ae,Qe,A,jn,5,d[24]),A=T(A,Vt,ae,Qe,fi,9,d[25]),Qe=T(Qe,A,Vt,ae,$t,14,d[26]),ae=T(ae,Qe,A,Vt,Zn,20,d[27]),Vt=T(Vt,ae,Qe,A,Ai,5,d[28]),A=T(A,Vt,ae,Qe,At,9,d[29]),Qe=T(Qe,A,Vt,ae,yn,14,d[30]),ae=T(ae,Qe,A,Vt,qn,20,d[31]),Vt=b(Vt,ae,Qe,A,jt,4,d[32]),A=b(A,Vt,ae,Qe,Zn,11,d[33]),Qe=b(Qe,A,Vt,ae,On,16,d[34]),ae=b(ae,Qe,A,Vt,fi,23,d[35]),Vt=b(Vt,ae,Qe,A,ft,4,d[36]),A=b(A,Vt,ae,Qe,rn,11,d[37]),Qe=b(Qe,A,Vt,ae,yn,16,d[38]),ae=b(ae,Qe,A,Vt,ti,23,d[39]),Vt=b(Vt,ae,Qe,A,Ai,4,d[40]),A=b(A,Vt,ae,Qe,$e,11,d[41]),Qe=b(Qe,A,Vt,ae,$t,16,d[42]),ae=b(ae,Qe,A,Vt,hn,23,d[43]),Vt=b(Vt,ae,Qe,A,jn,4,d[44]),A=b(A,Vt,ae,Qe,qn,11,d[45]),Qe=b(Qe,A,Vt,ae,Ki,16,d[46]),ae=b(ae,Qe,A,Vt,At,23,d[47]),Vt=P(Vt,ae,Qe,A,$e,6,d[48]),A=P(A,Vt,ae,Qe,yn,10,d[49]),Qe=P(Qe,A,Vt,ae,fi,15,d[50]),ae=P(ae,Qe,A,Vt,jt,21,d[51]),Vt=P(Vt,ae,Qe,A,qn,6,d[52]),A=P(A,Vt,ae,Qe,$t,10,d[53]),Qe=P(Qe,A,Vt,ae,ti,15,d[54]),ae=P(ae,Qe,A,Vt,ft,21,d[55]),Vt=P(Vt,ae,Qe,A,Zn,6,d[56]),A=P(A,Vt,ae,Qe,Ki,10,d[57]),Qe=P(Qe,A,Vt,ae,hn,15,d[58]),ae=P(ae,Qe,A,Vt,Ai,21,d[59]),Vt=P(Vt,ae,Qe,A,rn,6,d[60]),A=P(A,Vt,ae,Qe,On,10,d[61]),Qe=P(Qe,A,Vt,ae,At,15,d[62]),ae=P(ae,Qe,A,Vt,jn,21,d[63]),Pe[0]=Pe[0]+Vt|0,Pe[1]=Pe[1]+ae|0,Pe[2]=Pe[2]+Qe|0,Pe[3]=Pe[3]+A|0}_doFinalize(){const ce=this._data,Se=ce.words,Me=8*this._nDataBytes,Pe=8*ce.sigBytes;Se[Pe>>>5]|=128<<24-Pe%32;const $e=Math.floor(Me/4294967296),ft=Me;Se[15+(Pe+64>>>9<<4)]=16711935&($e<<8|$e>>>24)|4278255360&($e<<24|$e>>>8),Se[14+(Pe+64>>>9<<4)]=16711935&(ft<<8|ft>>>24)|4278255360&(ft<<24|ft>>>8),ce.sigBytes=4*(Se.length+1),this._process();const At=this._hash,$t=At.words;for(let rn=0;rn<4;rn+=1){const jt=$t[rn];$t[rn]=16711935&(jt<<8|jt>>>24)|4278255360&(jt<<24|jt>>>8)}return At}clone(){const ce=super.clone.call(this);return ce._hash=this._hash.clone(),ce}}const I=y._createHelper(W),k=y._createHmacHelper(W);class D extends t{constructor(ce){super(),this.cfg=Object.assign(new t,{keySize:4,hasher:W,iterations:1},ce)}compute(ce,Se){let Me;const{cfg:Pe}=this,$e=Pe.hasher.create(),ft=i.create(),At=ft.words,{keySize:$t,iterations:rn}=Pe;for(;At.length<$t;){Me&&$e.update(Me),Me=$e.update(ce).finalize(Se),$e.reset();for(let jt=1;jt<rn;jt+=1)Me=$e.finalize(Me),$e.reset();ft.concat(Me)}return ft.sigBytes=4*$t,ft}}let s=(()=>{class Ye extends v{constructor(Se,Me,Pe){super(),this.cfg=Object.assign(new t,Pe),this._xformMode=Se,this._key=Me,this.reset()}static createEncryptor(Se,Me){return this.create(this._ENC_XFORM_MODE,Se,Me)}static createDecryptor(Se,Me){return this.create(this._DEC_XFORM_MODE,Se,Me)}static _createHelper(Se){const Me=Pe=>"string"==typeof Pe?Re:ze;return{encrypt:(Pe,$e,ft)=>Me($e).encrypt(Se,Pe,$e,ft),decrypt:(Pe,$e,ft)=>Me($e).decrypt(Se,Pe,$e,ft)}}reset(){super.reset.call(this),this._doReset()}process(Se){return this._append(Se),this._process()}finalize(Se){return Se&&this._append(Se),this._doFinalize()}}return Ye._ENC_XFORM_MODE=1,Ye._DEC_XFORM_MODE=2,Ye.keySize=4,Ye.ivSize=4,Ye})();class V extends s{constructor(...ce){super(...ce),this.blockSize=1}_doFinalize(){return this._process(!0)}}class Q extends t{constructor(ce,Se){super(),this._cipher=ce,this._iv=Se}static createEncryptor(ce,Se){return this.Encryptor.create(ce,Se)}static createDecryptor(ce,Se){return this.Decryptor.create(ce,Se)}}function me(Ye,ce,Se){const Me=Ye;let Pe;const $e=this._iv;$e?(Pe=$e,this._iv=void 0):Pe=this._prevBlock;for(let ft=0;ft<Se;ft+=1)Me[ce+ft]^=Pe[ft]}let ue=(()=>{class Ye extends Q{}return Ye.Encryptor=class extends Ye{processBlock(ce,Se){const Me=this._cipher,{blockSize:Pe}=Me;me.call(this,ce,Se,Pe),Me.encryptBlock(ce,Se),this._prevBlock=ce.slice(Se,Se+Pe)}},Ye.Decryptor=class extends Ye{processBlock(ce,Se){const Me=this._cipher,{blockSize:Pe}=Me,$e=ce.slice(Se,Se+Pe);Me.decryptBlock(ce,Se),me.call(this,ce,Se,Pe),this._prevBlock=$e}},Ye})();const De={pad(Ye,ce){const Se=4*ce,Me=Se-Ye.sigBytes%Se,Pe=Me<<24|Me<<16|Me<<8|Me,$e=[];for(let At=0;At<Me;At+=4)$e.push(Pe);const ft=i.create($e,Me);Ye.concat(ft)},unpad(Ye){Ye.sigBytes-=255&Ye.words[Ye.sigBytes-1>>>2]}};class Ue extends s{constructor(ce,Se,Me){super(ce,Se,Object.assign({mode:ue,padding:De},Me)),this.blockSize=4}reset(){let ce;super.reset.call(this);const{cfg:Se}=this,{iv:Me,mode:Pe}=Se;this._xformMode===this.constructor._ENC_XFORM_MODE?ce=Pe.createEncryptor:(ce=Pe.createDecryptor,this._minBufferSize=1),this._mode=ce.call(Pe,this,Me&&Me.words),this._mode.__creator=ce}_doProcessBlock(ce,Se){this._mode.processBlock(ce,Se)}_doFinalize(){let ce;const{padding:Se}=this.cfg;return this._xformMode===this.constructor._ENC_XFORM_MODE?(Se.pad(this._data,this.blockSize),ce=this._process(!0)):(ce=this._process(!0),Se.unpad(ce)),ce}}class Xe extends t{constructor(ce){super(),this.mixIn(ce)}toString(ce){return(ce||this.formatter).stringify(this)}}const st={stringify(Ye){let ce;const{ciphertext:Se,salt:Me}=Ye;return ce=Me?i.create([1398893684,1701076831]).concat(Me).concat(Se):Se,ce.toString(f)},parse(Ye){let ce;const Se=f.parse(Ye),Me=Se.words;return 1398893684===Me[0]&&1701076831===Me[1]&&(ce=i.create(Me.slice(2,4)),Me.splice(0,4),Se.sigBytes-=16),Xe.create({ciphertext:Se,salt:ce})}};class ze extends t{static encrypt(ce,Se,Me,Pe){const $e=Object.assign(new t,this.cfg,Pe),ft=ce.createEncryptor(Me,$e),At=ft.finalize(Se),$t=ft.cfg;return Xe.create({ciphertext:At,key:Me,iv:$t.iv,algorithm:ce,mode:$t.mode,padding:$t.padding,blockSize:ft.blockSize,formatter:$e.format})}static decrypt(ce,Se,Me,Pe){let $e=Se;const ft=Object.assign(new t,this.cfg,Pe);return $e=this._parse($e,ft.format),ce.createDecryptor(Me,ft).finalize($e.ciphertext)}static _parse(ce,Se){return"string"==typeof ce?Se.parse(ce,this):ce}}ze.cfg=Object.assign(new t,{format:st});const F={execute(Ye,ce,Se,Me){let Pe=Me;Pe||(Pe=i.random(8));const $e=D.create({keySize:ce+Se}).compute(Ye,Pe),ft=i.create($e.words.slice(ce),4*Se);return $e.sigBytes=4*ce,Xe.create({key:$e,iv:ft,salt:Pe})}};class Re extends ze{static encrypt(ce,Se,Me,Pe){const $e=Object.assign(new t,this.cfg,Pe),ft=$e.kdf.execute(Me,ce.keySize,ce.ivSize);$e.iv=ft.iv;const At=ze.encrypt.call(this,ce,Se,ft.key,$e);return At.mixIn(ft),At}static decrypt(ce,Se,Me,Pe){let $e=Se;const ft=Object.assign(new t,this.cfg,Pe);$e=this._parse($e,ft.format);const At=ft.kdf.execute(Me,ce.keySize,ce.ivSize,$e.salt);return ft.iv=At.iv,ze.decrypt.call(this,ce,$e,At.key,ft)}}Re.cfg=Object.assign(ze.cfg,{kdf:F});const de=Ye=>Ye<<8&4278255360|Ye>>>8&16711935,Ce={stringify(Ye){const{words:ce,sigBytes:Se}=Ye,Me=[];for(let Pe=0;Pe<Se;Pe+=2)Me.push(String.fromCharCode(ce[Pe>>>2]>>>16-Pe%4*8&65535));return Me.join("")},parse(Ye){const ce=Ye.length,Se=[];for(let Me=0;Me<ce;Me+=1)Se[Me>>>1]|=Ye.charCodeAt(Me)<<16-Me%2*16;return i.create(Se,2*ce)}},oe=Ce,G={stringify(Ye){const{words:ce,sigBytes:Se}=Ye,Me=[];for(let Pe=0;Pe<Se;Pe+=2){const $e=de(ce[Pe>>>2]>>>16-Pe%4*8&65535);Me.push(String.fromCharCode($e))}return Me.join("")},parse(Ye){const ce=Ye.length,Se=[];for(let Me=0;Me<ce;Me+=1)Se[Me>>>1]|=de(Ye.charCodeAt(Me)<<16-Me%2*16);return i.create(Se,2*ce)}},ye=[];class we extends y{_doReset(){this._hash=new i([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(ce,Se){const Me=this._hash.words;let Pe=Me[0],$e=Me[1],ft=Me[2],At=Me[3],$t=Me[4];for(let rn=0;rn<80;rn+=1){if(rn<16)ye[rn]=0|ce[Se+rn];else{const hn=ye[rn-3]^ye[rn-8]^ye[rn-14]^ye[rn-16];ye[rn]=hn<<1|hn>>>31}let jt=(Pe<<5|Pe>>>27)+$t+ye[rn];jt+=rn<20?1518500249+($e&ft|~$e&At):rn<40?1859775393+($e^ft^At):rn<60?($e&ft|$e&At|ft&At)-1894007588:($e^ft^At)-899497514,$t=At,At=ft,ft=$e<<30|$e>>>2,$e=Pe,Pe=jt}Me[0]=Me[0]+Pe|0,Me[1]=Me[1]+$e|0,Me[2]=Me[2]+ft|0,Me[3]=Me[3]+At|0,Me[4]=Me[4]+$t|0}_doFinalize(){const ce=this._data,Se=ce.words,Me=8*this._nDataBytes,Pe=8*ce.sigBytes;return Se[Pe>>>5]|=128<<24-Pe%32,Se[14+(Pe+64>>>9<<4)]=Math.floor(Me/4294967296),Se[15+(Pe+64>>>9<<4)]=Me,ce.sigBytes=4*Se.length,this._process(),this._hash}clone(){const ce=super.clone.call(this);return ce._hash=this._hash.clone(),ce}}const Fe=y._createHelper(we),lt=y._createHmacHelper(we),Pt=[],wt=[],Bt=Ye=>{const ce=Math.sqrt(Ye);for(let Se=2;Se<=ce;Se+=1)if(!(Ye%Se))return!1;return!0},nn=Ye=>4294967296*(Ye-(0|Ye))|0;let xt=2,sn=0;for(;sn<64;)Bt(xt)&&(sn<8&&(Pt[sn]=nn(xt**.5)),wt[sn]=nn(xt**(1/3)),sn+=1),xt+=1;const ct=[];class Ve extends y{_doReset(){this._hash=new i(Pt.slice(0))}_doProcessBlock(ce,Se){const Me=this._hash.words;let Pe=Me[0],$e=Me[1],ft=Me[2],At=Me[3],$t=Me[4],rn=Me[5],jt=Me[6],hn=Me[7];for(let yn=0;yn<64;yn+=1){if(yn<16)ct[yn]=0|ce[Se+yn];else{const fi=ct[yn-15],Vt=ct[yn-2];ct[yn]=((fi<<25|fi>>>7)^(fi<<14|fi>>>18)^fi>>>3)+ct[yn-7]+((Vt<<15|Vt>>>17)^(Vt<<13|Vt>>>19)^Vt>>>10)+ct[yn-16]}const jn=Pe&$e^Pe&ft^$e&ft,qn=hn+(($t<<26|$t>>>6)^($t<<21|$t>>>11)^($t<<7|$t>>>25))+($t&rn^~$t&jt)+wt[yn]+ct[yn];hn=jt,jt=rn,rn=$t,$t=At+qn|0,At=ft,ft=$e,$e=Pe,Pe=qn+(((Pe<<30|Pe>>>2)^(Pe<<19|Pe>>>13)^(Pe<<10|Pe>>>22))+jn)|0}Me[0]=Me[0]+Pe|0,Me[1]=Me[1]+$e|0,Me[2]=Me[2]+ft|0,Me[3]=Me[3]+At|0,Me[4]=Me[4]+$t|0,Me[5]=Me[5]+rn|0,Me[6]=Me[6]+jt|0,Me[7]=Me[7]+hn|0}_doFinalize(){const ce=this._data,Se=ce.words,Me=8*this._nDataBytes,Pe=8*ce.sigBytes;return Se[Pe>>>5]|=128<<24-Pe%32,Se[14+(Pe+64>>>9<<4)]=Math.floor(Me/4294967296),Se[15+(Pe+64>>>9<<4)]=Me,ce.sigBytes=4*Se.length,this._process(),this._hash}clone(){const ce=super.clone.call(this);return ce._hash=this._hash.clone(),ce}}const rt=y._createHelper(Ve),Et=y._createHmacHelper(Ve);class Ft extends Ve{_doReset(){this._hash=new i([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}_doFinalize(){const ce=super._doFinalize.call(this);return ce.sigBytes-=4,ce}}const yt=Ve._createHelper(Ft),un=Ve._createHmacHelper(Ft),bt=[new p(1116352408,3609767458),new p(1899447441,602891725),new p(3049323471,3964484399),new p(3921009573,2173295548),new p(961987163,4081628472),new p(1508970993,3053834265),new p(2453635748,2937671579),new p(2870763221,3664609560),new p(3624381080,2734883394),new p(310598401,1164996542),new p(607225278,1323610764),new p(1426881987,3590304994),new p(1925078388,4068182383),new p(2162078206,991336113),new p(2614888103,633803317),new p(3248222580,3479774868),new p(3835390401,2666613458),new p(4022224774,944711139),new p(264347078,2341262773),new p(604807628,2007800933),new p(770255983,1495990901),new p(1249150122,1856431235),new p(1555081692,3175218132),new p(1996064986,2198950837),new p(2554220882,3999719339),new p(2821834349,766784016),new p(2952996808,2566594879),new p(3210313671,3203337956),new p(3336571891,1034457026),new p(3584528711,2466948901),new p(113926993,3758326383),new p(338241895,168717936),new p(666307205,1188179964),new p(773529912,1546045734),new p(1294757372,1522805485),new p(1396182291,2643833823),new p(1695183700,2343527390),new p(1986661051,1014477480),new p(2177026350,1206759142),new p(2456956037,344077627),new p(2730485921,1290863460),new p(2820302411,3158454273),new p(3259730800,3505952657),new p(3345764771,106217008),new p(3516065817,3606008344),new p(3600352804,1432725776),new p(4094571909,1467031594),new p(275423344,851169720),new p(430227734,3100823752),new p(506948616,1363258195),new p(659060556,3750685593),new p(883997877,3785050280),new p(958139571,3318307427),new p(1322822218,3812723403),new p(1537002063,2003034995),new p(1747873779,3602036899),new p(1955562222,1575990012),new p(2024104815,1125592928),new p(2227730452,2716904306),new p(2361852424,442776044),new p(2428436474,593698344),new p(2756734187,3733110249),new p(3204031479,2999351573),new p(3329325298,3815920427),new p(3391569614,3928383900),new p(3515267271,566280711),new p(3940187606,3454069534),new p(4118630271,4000239992),new p(116418474,1914138554),new p(174292421,2731055270),new p(289380356,3203993006),new p(460393269,320620315),new p(685471733,587496836),new p(852142971,1086792851),new p(1017036298,365543100),new p(1126000580,2618297676),new p(1288033470,3409855158),new p(1501505948,4234509866),new p(1607167915,987167468),new p(1816402316,1246189591)],Jt=[];for(let Ye=0;Ye<80;Ye+=1)Jt[Ye]=new p;class en extends y{constructor(){super(),this.blockSize=32}_doReset(){this._hash=new C([new p(1779033703,4089235720),new p(3144134277,2227873595),new p(1013904242,4271175723),new p(2773480762,1595750129),new p(1359893119,2917565137),new p(2600822924,725511199),new p(528734635,4215389547),new p(1541459225,327033209)])}_doProcessBlock(ce,Se){const Me=this._hash.words,Pe=Me[0],$e=Me[1],ft=Me[2],At=Me[3],$t=Me[4],rn=Me[5],jt=Me[6],hn=Me[7],yn=Pe.high;let Zn=Pe.low;const jn=$e.high;let ti=$e.low;const On=ft.high;let qn=ft.low;const Ai=At.high;let fi=At.low;const Ki=$t.high;let Vt=$t.low;const ae=rn.high;let Qe=rn.low;const A=jt.high;let ie=jt.low;const _e=hn.high;let Ke=hn.low,gt=yn,_n=Zn,An=jn,mi=ti,eo=On,So=qn,ji=Ai,Ho=fi,Xi=Ki,Ri=Vt,Ji=ae,ko=Qe,vo=A,Mi=ie,To=_e,fe=Ke;for(let We=0;We<80;We+=1){let E,ne;const be=Jt[We];if(We<16)be.high=0|ce[Se+2*We],ne=be.high,be.low=0|ce[Se+2*We+1],E=be.low;else{const or=Jt[We-15],Go=or.high,$o=or.low,Pi=($o>>>1|Go<<31)^($o>>>8|Go<<24)^($o>>>7|Go<<25),fo=Jt[We-2],Ni=fo.high,Jo=fo.low,$r=(Jo>>>19|Ni<<13)^(Jo<<3|Ni>>>29)^(Jo>>>6|Ni<<26),gr=Jt[We-7],Ro=Jt[We-16],br=Ro.low;E=Pi+gr.low,ne=((Go>>>1|$o<<31)^(Go>>>8|$o<<24)^Go>>>7)+gr.high+(E>>>0<Pi>>>0?1:0),E+=$r,ne=ne+((Ni>>>19|Jo<<13)^(Ni<<3|Jo>>>29)^Ni>>>6)+(E>>>0<$r>>>0?1:0),E+=br,ne=ne+Ro.high+(E>>>0<br>>>0?1:0),be.high=ne,be.low=E}const kt=Ri&ko^~Ri&Mi,ln=gt&An^gt&eo^An&eo,vi=(gt>>>28|_n<<4)^(gt<<30|_n>>>2)^(gt<<25|_n>>>7),pi=(_n>>>28|gt<<4)^(_n<<30|gt>>>2)^(_n<<25|gt>>>7),q=bt[We],Mt=q.low;let Cn=fe+((Ri>>>14|Xi<<18)^(Ri>>>18|Xi<<14)^(Ri<<23|Xi>>>9)),hi=To+((Xi>>>14|Ri<<18)^(Xi>>>18|Ri<<14)^(Xi<<23|Ri>>>9))+(Cn>>>0<fe>>>0?1:0);Cn+=kt,hi=hi+(Xi&Ji^~Xi&vo)+(Cn>>>0<kt>>>0?1:0),Cn+=Mt,hi=hi+q.high+(Cn>>>0<Mt>>>0?1:0),Cn+=E,hi=hi+ne+(Cn>>>0<E>>>0?1:0);const Bi=pi+(_n&mi^_n&So^mi&So);To=vo,fe=Mi,vo=Ji,Mi=ko,Ji=Xi,ko=Ri,Ri=Ho+Cn|0,Xi=ji+hi+(Ri>>>0<Ho>>>0?1:0)|0,ji=eo,Ho=So,eo=An,So=mi,An=gt,mi=_n,_n=Cn+Bi|0,gt=hi+(vi+ln+(Bi>>>0<pi>>>0?1:0))+(_n>>>0<Cn>>>0?1:0)|0}Pe.low=Zn+_n,Zn=Pe.low,Pe.high=yn+gt+(Zn>>>0<_n>>>0?1:0),$e.low=ti+mi,ti=$e.low,$e.high=jn+An+(ti>>>0<mi>>>0?1:0),ft.low=qn+So,qn=ft.low,ft.high=On+eo+(qn>>>0<So>>>0?1:0),At.low=fi+Ho,fi=At.low,At.high=Ai+ji+(fi>>>0<Ho>>>0?1:0),$t.low=Vt+Ri,Vt=$t.low,$t.high=Ki+Xi+(Vt>>>0<Ri>>>0?1:0),rn.low=Qe+ko,Qe=rn.low,rn.high=ae+Ji+(Qe>>>0<ko>>>0?1:0),jt.low=ie+Mi,ie=jt.low,jt.high=A+vo+(ie>>>0<Mi>>>0?1:0),hn.low=Ke+fe,Ke=hn.low,hn.high=_e+To+(Ke>>>0<fe>>>0?1:0)}_doFinalize(){const ce=this._data,Se=ce.words,Me=8*this._nDataBytes,Pe=8*ce.sigBytes;return Se[Pe>>>5]|=128<<24-Pe%32,Se[30+(Pe+128>>>10<<5)]=Math.floor(Me/4294967296),Se[31+(Pe+128>>>10<<5)]=Me,ce.sigBytes=4*Se.length,this._process(),this._hash.toX32()}clone(){const ce=super.clone.call(this);return ce._hash=this._hash.clone(),ce}}const mn=y._createHelper(en),En=y._createHmacHelper(en);class Ln extends en{_doReset(){this._hash=new C([new p(3418070365,3238371032),new p(1654270250,914150663),new p(2438529370,812702999),new p(355462360,4144912697),new p(1731405415,4290775857),new p(2394180231,1750603025),new p(3675008525,1694076839),new p(1203062813,3204075428)])}_doFinalize(){const ce=super._doFinalize.call(this);return ce.sigBytes-=16,ce}}const dt=en._createHelper(Ln),Ot=en._createHmacHelper(Ln),$=[],pe=[],Ee=[];let Ge=1,Zt=0;for(let Ye=0;Ye<24;Ye+=1){$[Ge+5*Zt]=(Ye+1)*(Ye+2)/2%64;const Se=(2*Ge+3*Zt)%5;Ge=Zt%5,Zt=Se}for(let Ye=0;Ye<5;Ye+=1)for(let ce=0;ce<5;ce+=1)pe[Ye+5*ce]=ce+(2*Ye+3*ce)%5*5;let tn=1;for(let Ye=0;Ye<24;Ye+=1){let ce=0,Se=0;for(let Me=0;Me<7;Me+=1){if(1&tn){const Pe=(1<<Me)-1;Pe<32?Se^=1<<Pe:ce^=1<<Pe-32}128&tn?tn=tn<<1^113:tn<<=1}Ee[Ye]=p.create(ce,Se)}const on=[];for(let Ye=0;Ye<25;Ye+=1)on[Ye]=p.create();class Un extends y{constructor(ce){super(Object.assign({outputLength:512},ce))}_doReset(){this._state=[];const ce=this._state;for(let Se=0;Se<25;Se+=1)ce[Se]=new p;this.blockSize=(1600-2*this.cfg.outputLength)/32}_doProcessBlock(ce,Se){const Me=this._state,Pe=this.blockSize/2;for(let $e=0;$e<Pe;$e+=1){let ft=ce[Se+2*$e],At=ce[Se+2*$e+1];ft=16711935&(ft<<8|ft>>>24)|4278255360&(ft<<24|ft>>>8),At=16711935&(At<<8|At>>>24)|4278255360&(At<<24|At>>>8);const $t=Me[$e];$t.high^=At,$t.low^=ft}for(let $e=0;$e<24;$e+=1){for(let jt=0;jt<5;jt+=1){let hn=0,yn=0;for(let jn=0;jn<5;jn+=1){const ti=Me[jt+5*jn];hn^=ti.high,yn^=ti.low}const Zn=on[jt];Zn.high=hn,Zn.low=yn}for(let jt=0;jt<5;jt+=1){const hn=on[(jt+4)%5],yn=on[(jt+1)%5],Zn=yn.high,jn=yn.low,ti=hn.high^(Zn<<1|jn>>>31),On=hn.low^(jn<<1|Zn>>>31);for(let qn=0;qn<5;qn+=1){const Ai=Me[jt+5*qn];Ai.high^=ti,Ai.low^=On}}for(let jt=1;jt<25;jt+=1){let hn,yn;const Zn=Me[jt],jn=Zn.high,ti=Zn.low,On=$[jt];On<32?(hn=jn<<On|ti>>>32-On,yn=ti<<On|jn>>>32-On):(hn=ti<<On-32|jn>>>64-On,yn=jn<<On-32|ti>>>64-On);const qn=on[pe[jt]];qn.high=hn,qn.low=yn}const ft=on[0],At=Me[0];ft.high=At.high,ft.low=At.low;for(let jt=0;jt<5;jt+=1)for(let hn=0;hn<5;hn+=1){const yn=jt+5*hn,Zn=Me[yn],jn=on[yn],ti=on[(jt+1)%5+5*hn],On=on[(jt+2)%5+5*hn];Zn.high=jn.high^~ti.high&On.high,Zn.low=jn.low^~ti.low&On.low}const $t=Me[0],rn=Ee[$e];$t.high^=rn.high,$t.low^=rn.low}}_doFinalize(){const ce=this._data,Se=ce.words,Me=8*ce.sigBytes,Pe=32*this.blockSize;Se[Me>>>5]|=1<<24-Me%32,Se[(Math.ceil((Me+1)/Pe)*Pe>>>5)-1]|=128,ce.sigBytes=4*Se.length,this._process();const $e=this._state,ft=this.cfg.outputLength/8,At=ft/8,$t=[];for(let rn=0;rn<At;rn+=1){const jt=$e[rn];let hn=jt.high,yn=jt.low;hn=16711935&(hn<<8|hn>>>24)|4278255360&(hn<<24|hn>>>8),yn=16711935&(yn<<8|yn>>>24)|4278255360&(yn<<24|yn>>>8),$t.push(yn),$t.push(hn)}return new i($t,ft)}clone(){const ce=super.clone.call(this);ce._state=this._state.slice(0);const Se=ce._state;for(let Me=0;Me<25;Me+=1)Se[Me]=Se[Me].clone();return ce}}const vn=y._createHelper(Un),zt=y._createHmacHelper(Un),Ht=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),pt=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Dt=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),ot=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),Be=i.create([0,1518500249,1859775393,2400959708,2840853838]),at=i.create([1352829926,1548603684,1836072691,2053994217,0]),Gt=(Ye,ce,Se)=>Ye^ce^Se,Ut=(Ye,ce,Se)=>Ye&ce|~Ye&Se,gn=(Ye,ce,Se)=>(Ye|~ce)^Se,Mn=(Ye,ce,Se)=>Ye&Se|ce&~Se,kn=(Ye,ce,Se)=>Ye^(ce|~Se),Rn=(Ye,ce)=>Ye<<ce|Ye>>>32-ce;class Fn extends y{_doReset(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(ce,Se){const Me=ce;for(let ae=0;ae<16;ae+=1){const Qe=Se+ae,A=Me[Qe];Me[Qe]=16711935&(A<<8|A>>>24)|4278255360&(A<<24|A>>>8)}const Pe=this._hash.words,$e=Be.words,ft=at.words,At=Ht.words,$t=pt.words,rn=Dt.words,jt=ot.words;let Vt,hn=Pe[0],yn=Pe[1],Zn=Pe[2],jn=Pe[3],ti=Pe[4],On=Pe[0],qn=Pe[1],Ai=Pe[2],fi=Pe[3],Ki=Pe[4];for(let ae=0;ae<80;ae+=1)Vt=hn+Me[Se+At[ae]]|0,Vt+=ae<16?Gt(yn,Zn,jn)+$e[0]:ae<32?Ut(yn,Zn,jn)+$e[1]:ae<48?gn(yn,Zn,jn)+$e[2]:ae<64?Mn(yn,Zn,jn)+$e[3]:kn(yn,Zn,jn)+$e[4],Vt|=0,Vt=Rn(Vt,rn[ae]),Vt=Vt+ti|0,hn=ti,ti=jn,jn=Rn(Zn,10),Zn=yn,yn=Vt,Vt=On+Me[Se+$t[ae]]|0,Vt+=ae<16?kn(qn,Ai,fi)+ft[0]:ae<32?Mn(qn,Ai,fi)+ft[1]:ae<48?gn(qn,Ai,fi)+ft[2]:ae<64?Ut(qn,Ai,fi)+ft[3]:Gt(qn,Ai,fi)+ft[4],Vt|=0,Vt=Rn(Vt,jt[ae]),Vt=Vt+Ki|0,On=Ki,Ki=fi,fi=Rn(Ai,10),Ai=qn,qn=Vt;Vt=Pe[1]+Zn+fi|0,Pe[1]=Pe[2]+jn+Ki|0,Pe[2]=Pe[3]+ti+On|0,Pe[3]=Pe[4]+hn+qn|0,Pe[4]=Pe[0]+yn+Ai|0,Pe[0]=Vt}_doFinalize(){const ce=this._data,Se=ce.words,Me=8*this._nDataBytes,Pe=8*ce.sigBytes;Se[Pe>>>5]|=128<<24-Pe%32,Se[14+(Pe+64>>>9<<4)]=16711935&(Me<<8|Me>>>24)|4278255360&(Me<<24|Me>>>8),ce.sigBytes=4*(Se.length+1),this._process();const $e=this._hash,ft=$e.words;for(let At=0;At<5;At+=1){const $t=ft[At];ft[At]=16711935&($t<<8|$t>>>24)|4278255360&($t<<24|$t>>>8)}return $e}clone(){const ce=super.clone.call(this);return ce._hash=this._hash.clone(),ce}}const ut=y._createHelper(Fn),Je=y._createHmacHelper(Fn);class Y extends t{constructor(ce){super(),this.cfg=Object.assign(new t,{keySize:4,hasher:we,iterations:1},ce)}compute(ce,Se){const{cfg:Me}=this,Pe=u.create(Me.hasher,ce),$e=i.create(),ft=i.create([1]),At=$e.words,$t=ft.words,{keySize:rn,iterations:jt}=Me;for(;At.length<rn;){const hn=Pe.update(Se).finalize(ft);Pe.reset();const yn=hn.words,Zn=yn.length;let jn=hn;for(let ti=1;ti<jt;ti+=1){jn=Pe.finalize(jn),Pe.reset();const On=jn.words;for(let qn=0;qn<Zn;qn+=1)yn[qn]^=On[qn]}$e.concat(hn),$t[0]+=1}return $e.sigBytes=4*rn,$e}}const Oe=[],nt=[],Xt=[],Dn=[],St=[],Vn=[],He=[],ht=[],Ze=[],Kt=[],Hn=[];for(let Ye=0;Ye<256;Ye+=1)Hn[Ye]=Ye<128?Ye<<1:Ye<<1^283;let ei=0,ai=0;for(let Ye=0;Ye<256;Ye+=1){let ce=ai^ai<<1^ai<<2^ai<<3^ai<<4;ce=ce>>>8^255&ce^99,Oe[ei]=ce,nt[ce]=ei;const Se=Hn[ei],Me=Hn[Se],Pe=Hn[Me];let $e=257*Hn[ce]^16843008*ce;Xt[ei]=$e<<24|$e>>>8,Dn[ei]=$e<<16|$e>>>16,St[ei]=$e<<8|$e>>>24,Vn[ei]=$e,$e=16843009*Pe^65537*Me^257*Se^16843008*ei,He[ce]=$e<<24|$e>>>8,ht[ce]=$e<<16|$e>>>16,Ze[ce]=$e<<8|$e>>>24,Kt[ce]=$e,ei?(ei=Se^Hn[Hn[Hn[Pe^Se]]],ai^=Hn[Hn[ai]]):(ai=1,ei=ai)}const xn=[0,1,2,4,8,16,32,64,128,27,54];let ni=(()=>{class Ye extends Ue{_doReset(){let Se;if(this._nRounds&&this._keyPriorReset===this._key)return;this._keyPriorReset=this._key;const Me=this._keyPriorReset,Pe=Me.words,$e=Me.sigBytes/4;this._nRounds=$e+6;const At=4*(this._nRounds+1);this._keySchedule=[];const $t=this._keySchedule;for(let jt=0;jt<At;jt+=1)jt<$e?$t[jt]=Pe[jt]:(Se=$t[jt-1],jt%$e?$e>6&&jt%$e==4&&(Se=Oe[Se>>>24]<<24|Oe[Se>>>16&255]<<16|Oe[Se>>>8&255]<<8|Oe[255&Se]):(Se=Se<<8|Se>>>24,Se=Oe[Se>>>24]<<24|Oe[Se>>>16&255]<<16|Oe[Se>>>8&255]<<8|Oe[255&Se],Se^=xn[jt/$e|0]<<24),$t[jt]=$t[jt-$e]^Se);this._invKeySchedule=[];const rn=this._invKeySchedule;for(let jt=0;jt<At;jt+=1){const hn=At-jt;Se=jt%4?$t[hn]:$t[hn-4],rn[jt]=jt<4||hn<=4?Se:He[Oe[Se>>>24]]^ht[Oe[Se>>>16&255]]^Ze[Oe[Se>>>8&255]]^Kt[Oe[255&Se]]}}encryptBlock(Se,Me){this._doCryptBlock(Se,Me,this._keySchedule,Xt,Dn,St,Vn,Oe)}decryptBlock(Se,Me){const Pe=Se;let $e=Pe[Me+1];Pe[Me+1]=Pe[Me+3],Pe[Me+3]=$e,this._doCryptBlock(Pe,Me,this._invKeySchedule,He,ht,Ze,Kt,nt),$e=Pe[Me+1],Pe[Me+1]=Pe[Me+3],Pe[Me+3]=$e}_doCryptBlock(Se,Me,Pe,$e,ft,At,$t,rn){const jt=Se,hn=this._nRounds;let yn=jt[Me]^Pe[0],Zn=jt[Me+1]^Pe[1],jn=jt[Me+2]^Pe[2],ti=jt[Me+3]^Pe[3],On=4;for(let Vt=1;Vt<hn;Vt+=1){const ae=$e[yn>>>24]^ft[Zn>>>16&255]^At[jn>>>8&255]^$t[255&ti]^Pe[On];On+=1;const Qe=$e[Zn>>>24]^ft[jn>>>16&255]^At[ti>>>8&255]^$t[255&yn]^Pe[On];On+=1;const A=$e[jn>>>24]^ft[ti>>>16&255]^At[yn>>>8&255]^$t[255&Zn]^Pe[On];On+=1;const ie=$e[ti>>>24]^ft[yn>>>16&255]^At[Zn>>>8&255]^$t[255&jn]^Pe[On];On+=1,yn=ae,Zn=Qe,jn=A,ti=ie}const qn=(rn[yn>>>24]<<24|rn[Zn>>>16&255]<<16|rn[jn>>>8&255]<<8|rn[255&ti])^Pe[On];On+=1;const Ai=(rn[Zn>>>24]<<24|rn[jn>>>16&255]<<16|rn[ti>>>8&255]<<8|rn[255&yn])^Pe[On];On+=1;const fi=(rn[jn>>>24]<<24|rn[ti>>>16&255]<<16|rn[yn>>>8&255]<<8|rn[255&Zn])^Pe[On];On+=1;const Ki=(rn[ti>>>24]<<24|rn[yn>>>16&255]<<16|rn[Zn>>>8&255]<<8|rn[255&jn])^Pe[On];On+=1,jt[Me]=qn,jt[Me+1]=Ai,jt[Me+2]=fi,jt[Me+3]=Ki}}return Ye.keySize=8,Ye})();const Oi=Ue._createHelper(ni),so=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],Ii=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],yo=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],ao=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Fi=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function Di(Ye,ce){const Se=(this._lBlock>>>Ye^this._rBlock)&ce;this._rBlock^=Se,this._lBlock^=Se<<Ye}function pn(Ye,ce){const Se=(this._rBlock>>>Ye^this._lBlock)&ce;this._lBlock^=Se,this._rBlock^=Se<<Ye}let $n=(()=>{class Ye extends Ue{_doReset(){const Me=this._key.words,Pe=[];for(let At=0;At<56;At+=1){const $t=so[At]-1;Pe[At]=Me[$t>>>5]>>>31-$t%32&1}this._subKeys=[];const $e=this._subKeys;for(let At=0;At<16;At+=1){$e[At]=[];const $t=$e[At],rn=yo[At];for(let jt=0;jt<24;jt+=1)$t[jt/6|0]|=Pe[(Ii[jt]-1+rn)%28]<<31-jt%6,$t[4+(jt/6|0)]|=Pe[28+(Ii[jt+24]-1+rn)%28]<<31-jt%6;$t[0]=$t[0]<<1|$t[0]>>>31;for(let jt=1;jt<7;jt+=1)$t[jt]>>>=4*(jt-1)+3;$t[7]=$t[7]<<5|$t[7]>>>27}this._invSubKeys=[];const ft=this._invSubKeys;for(let At=0;At<16;At+=1)ft[At]=$e[15-At]}encryptBlock(Se,Me){this._doCryptBlock(Se,Me,this._subKeys)}decryptBlock(Se,Me){this._doCryptBlock(Se,Me,this._invSubKeys)}_doCryptBlock(Se,Me,Pe){const $e=Se;this._lBlock=Se[Me],this._rBlock=Se[Me+1],Di.call(this,4,252645135),Di.call(this,16,65535),pn.call(this,2,858993459),pn.call(this,8,16711935),Di.call(this,1,1431655765);for(let At=0;At<16;At+=1){const $t=Pe[At],rn=this._lBlock,jt=this._rBlock;let hn=0;for(let yn=0;yn<8;yn+=1)hn|=ao[yn][((jt^$t[yn])&Fi[yn])>>>0];this._lBlock=jt,this._rBlock=rn^hn}const ft=this._lBlock;this._lBlock=this._rBlock,this._rBlock=ft,Di.call(this,1,1431655765),pn.call(this,8,16711935),pn.call(this,2,858993459),Di.call(this,16,65535),Di.call(this,4,252645135),$e[Me]=this._lBlock,$e[Me+1]=this._rBlock}}return Ye.keySize=2,Ye.ivSize=2,Ye.blockSize=2,Ye})();const bi=Ue._createHelper($n);let no=(()=>{class Ye extends Ue{_doReset(){const Me=this._key.words;if(2!==Me.length&&4!==Me.length&&Me.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");const Pe=Me.slice(0,2),$e=Me.length<4?Me.slice(0,2):Me.slice(2,4),ft=Me.length<6?Me.slice(0,2):Me.slice(4,6);this._des1=$n.createEncryptor(i.create(Pe)),this._des2=$n.createEncryptor(i.create($e)),this._des3=$n.createEncryptor(i.create(ft))}encryptBlock(Se,Me){this._des1.encryptBlock(Se,Me),this._des2.decryptBlock(Se,Me),this._des3.encryptBlock(Se,Me)}decryptBlock(Se,Me){this._des3.decryptBlock(Se,Me),this._des2.encryptBlock(Se,Me),this._des1.decryptBlock(Se,Me)}}return Ye.keySize=6,Ye.ivSize=2,Ye.blockSize=2,Ye})();const ro=Ue._createHelper(no),_i=[],zi=[],Pn=[];function lo(){const Ye=this._X,ce=this._C;for(let Se=0;Se<8;Se+=1)zi[Se]=ce[Se];ce[0]=ce[0]+1295307597+this._b|0,ce[1]=ce[1]+3545052371+(ce[0]>>>0<zi[0]>>>0?1:0)|0,ce[2]=ce[2]+886263092+(ce[1]>>>0<zi[1]>>>0?1:0)|0,ce[3]=ce[3]+1295307597+(ce[2]>>>0<zi[2]>>>0?1:0)|0,ce[4]=ce[4]+3545052371+(ce[3]>>>0<zi[3]>>>0?1:0)|0,ce[5]=ce[5]+886263092+(ce[4]>>>0<zi[4]>>>0?1:0)|0,ce[6]=ce[6]+1295307597+(ce[5]>>>0<zi[5]>>>0?1:0)|0,ce[7]=ce[7]+3545052371+(ce[6]>>>0<zi[6]>>>0?1:0)|0,this._b=ce[7]>>>0<zi[7]>>>0?1:0;for(let Se=0;Se<8;Se+=1){const Me=Ye[Se]+ce[Se],Pe=65535&Me,$e=Me>>>16;Pn[Se]=((Pe*Pe>>>17)+Pe*$e>>>15)+$e*$e^((4294901760&Me)*Me|0)+((65535&Me)*Me|0)}Ye[0]=Pn[0]+(Pn[7]<<16|Pn[7]>>>16)+(Pn[6]<<16|Pn[6]>>>16)|0,Ye[1]=Pn[1]+(Pn[0]<<8|Pn[0]>>>24)+Pn[7]|0,Ye[2]=Pn[2]+(Pn[1]<<16|Pn[1]>>>16)+(Pn[0]<<16|Pn[0]>>>16)|0,Ye[3]=Pn[3]+(Pn[2]<<8|Pn[2]>>>24)+Pn[1]|0,Ye[4]=Pn[4]+(Pn[3]<<16|Pn[3]>>>16)+(Pn[2]<<16|Pn[2]>>>16)|0,Ye[5]=Pn[5]+(Pn[4]<<8|Pn[4]>>>24)+Pn[3]|0,Ye[6]=Pn[6]+(Pn[5]<<16|Pn[5]>>>16)+(Pn[4]<<16|Pn[4]>>>16)|0,Ye[7]=Pn[7]+(Pn[6]<<8|Pn[6]>>>24)+Pn[5]|0}class Mo extends V{constructor(...ce){super(...ce),this.blockSize=4,this.ivSize=2}_doReset(){const ce=this._key.words,{iv:Se}=this.cfg;for(let $e=0;$e<4;$e+=1)ce[$e]=16711935&(ce[$e]<<8|ce[$e]>>>24)|4278255360&(ce[$e]<<24|ce[$e]>>>8);this._X=[ce[0],ce[3]<<16|ce[2]>>>16,ce[1],ce[0]<<16|ce[3]>>>16,ce[2],ce[1]<<16|ce[0]>>>16,ce[3],ce[2]<<16|ce[1]>>>16];const Me=this._X;this._C=[ce[2]<<16|ce[2]>>>16,4294901760&ce[0]|65535&ce[1],ce[3]<<16|ce[3]>>>16,4294901760&ce[1]|65535&ce[2],ce[0]<<16|ce[0]>>>16,4294901760&ce[2]|65535&ce[3],ce[1]<<16|ce[1]>>>16,4294901760&ce[3]|65535&ce[0]];const Pe=this._C;this._b=0;for(let $e=0;$e<4;$e+=1)lo.call(this);for(let $e=0;$e<8;$e+=1)Pe[$e]^=Me[$e+4&7];if(Se){const $e=Se.words,ft=$e[0],At=$e[1],$t=16711935&(ft<<8|ft>>>24)|4278255360&(ft<<24|ft>>>8),rn=16711935&(At<<8|At>>>24)|4278255360&(At<<24|At>>>8),jt=$t>>>16|4294901760&rn,hn=rn<<16|65535&$t;Pe[0]^=$t,Pe[1]^=jt,Pe[2]^=rn,Pe[3]^=hn,Pe[4]^=$t,Pe[5]^=jt,Pe[6]^=rn,Pe[7]^=hn;for(let yn=0;yn<4;yn+=1)lo.call(this)}}_doProcessBlock(ce,Se){const Me=ce,Pe=this._X;lo.call(this),_i[0]=Pe[0]^Pe[5]>>>16^Pe[3]<<16,_i[1]=Pe[2]^Pe[7]>>>16^Pe[5]<<16,_i[2]=Pe[4]^Pe[1]>>>16^Pe[7]<<16,_i[3]=Pe[6]^Pe[3]>>>16^Pe[1]<<16;for(let $e=0;$e<4;$e+=1)_i[$e]=16711935&(_i[$e]<<8|_i[$e]>>>24)|4278255360&(_i[$e]<<24|_i[$e]>>>8),Me[Se+$e]^=_i[$e]}}const Jn=V._createHelper(Mo),Ui=[],Si=[],Yn=[];function Yi(){const Ye=this._X,ce=this._C;for(let Se=0;Se<8;Se+=1)Si[Se]=ce[Se];ce[0]=ce[0]+1295307597+this._b|0,ce[1]=ce[1]+3545052371+(ce[0]>>>0<Si[0]>>>0?1:0)|0,ce[2]=ce[2]+886263092+(ce[1]>>>0<Si[1]>>>0?1:0)|0,ce[3]=ce[3]+1295307597+(ce[2]>>>0<Si[2]>>>0?1:0)|0,ce[4]=ce[4]+3545052371+(ce[3]>>>0<Si[3]>>>0?1:0)|0,ce[5]=ce[5]+886263092+(ce[4]>>>0<Si[4]>>>0?1:0)|0,ce[6]=ce[6]+1295307597+(ce[5]>>>0<Si[5]>>>0?1:0)|0,ce[7]=ce[7]+3545052371+(ce[6]>>>0<Si[6]>>>0?1:0)|0,this._b=ce[7]>>>0<Si[7]>>>0?1:0;for(let Se=0;Se<8;Se+=1){const Me=Ye[Se]+ce[Se],Pe=65535&Me,$e=Me>>>16;Yn[Se]=((Pe*Pe>>>17)+Pe*$e>>>15)+$e*$e^((4294901760&Me)*Me|0)+((65535&Me)*Me|0)}Ye[0]=Yn[0]+(Yn[7]<<16|Yn[7]>>>16)+(Yn[6]<<16|Yn[6]>>>16)|0,Ye[1]=Yn[1]+(Yn[0]<<8|Yn[0]>>>24)+Yn[7]|0,Ye[2]=Yn[2]+(Yn[1]<<16|Yn[1]>>>16)+(Yn[0]<<16|Yn[0]>>>16)|0,Ye[3]=Yn[3]+(Yn[2]<<8|Yn[2]>>>24)+Yn[1]|0,Ye[4]=Yn[4]+(Yn[3]<<16|Yn[3]>>>16)+(Yn[2]<<16|Yn[2]>>>16)|0,Ye[5]=Yn[5]+(Yn[4]<<8|Yn[4]>>>24)+Yn[3]|0,Ye[6]=Yn[6]+(Yn[5]<<16|Yn[5]>>>16)+(Yn[4]<<16|Yn[4]>>>16)|0,Ye[7]=Yn[7]+(Yn[6]<<8|Yn[6]>>>24)+Yn[5]|0}class li extends V{constructor(...ce){super(...ce),this.blockSize=4,this.ivSize=2}_doReset(){const ce=this._key.words,{iv:Se}=this.cfg;this._X=[ce[0],ce[3]<<16|ce[2]>>>16,ce[1],ce[0]<<16|ce[3]>>>16,ce[2],ce[1]<<16|ce[0]>>>16,ce[3],ce[2]<<16|ce[1]>>>16];const Me=this._X;this._C=[ce[2]<<16|ce[2]>>>16,4294901760&ce[0]|65535&ce[1],ce[3]<<16|ce[3]>>>16,4294901760&ce[1]|65535&ce[2],ce[0]<<16|ce[0]>>>16,4294901760&ce[2]|65535&ce[3],ce[1]<<16|ce[1]>>>16,4294901760&ce[3]|65535&ce[0]];const Pe=this._C;this._b=0;for(let $e=0;$e<4;$e+=1)Yi.call(this);for(let $e=0;$e<8;$e+=1)Pe[$e]^=Me[$e+4&7];if(Se){const $e=Se.words,ft=$e[0],At=$e[1],$t=16711935&(ft<<8|ft>>>24)|4278255360&(ft<<24|ft>>>8),rn=16711935&(At<<8|At>>>24)|4278255360&(At<<24|At>>>8),jt=$t>>>16|4294901760&rn,hn=rn<<16|65535&$t;Pe[0]^=$t,Pe[1]^=jt,Pe[2]^=rn,Pe[3]^=hn,Pe[4]^=$t,Pe[5]^=jt,Pe[6]^=rn,Pe[7]^=hn;for(let yn=0;yn<4;yn+=1)Yi.call(this)}}_doProcessBlock(ce,Se){const Me=ce,Pe=this._X;Yi.call(this),Ui[0]=Pe[0]^Pe[5]>>>16^Pe[3]<<16,Ui[1]=Pe[2]^Pe[7]>>>16^Pe[5]<<16,Ui[2]=Pe[4]^Pe[1]>>>16^Pe[7]<<16,Ui[3]=Pe[6]^Pe[3]>>>16^Pe[1]<<16;for(let $e=0;$e<4;$e+=1)Ui[$e]=16711935&(Ui[$e]<<8|Ui[$e]>>>24)|4278255360&(Ui[$e]<<24|Ui[$e]>>>8),Me[Se+$e]^=Ui[$e]}}const Io=V._createHelper(li);function je(){const Ye=this._S;let ce=this._i,Se=this._j,Me=0;for(let Pe=0;Pe<4;Pe+=1){ce=(ce+1)%256,Se=(Se+Ye[ce])%256;const $e=Ye[ce];Ye[ce]=Ye[Se],Ye[Se]=$e,Me|=Ye[(Ye[ce]+Ye[Se])%256]<<24-8*Pe}return this._i=ce,this._j=Se,Me}let Tt=(()=>{class Ye extends V{_doReset(){const Se=this._key,Me=Se.words,Pe=Se.sigBytes;this._S=[];const $e=this._S;for(let ft=0;ft<256;ft+=1)$e[ft]=ft;for(let ft=0,At=0;ft<256;ft+=1){const $t=ft%Pe;At=(At+$e[ft]+(Me[$t>>>2]>>>24-$t%4*8&255))%256;const jt=$e[ft];$e[ft]=$e[At],$e[At]=jt}this._j=0,this._i=this._j}_doProcessBlock(Se,Me){Se[Me]^=je.call(this)}}return Ye.keySize=8,Ye.ivSize=0,Ye})();const _t=V._createHelper(Tt);class Nt extends Tt{constructor(...ce){super(...ce),Object.assign(this.cfg,{drop:192})}_doReset(){super._doReset.call(this);for(let ce=this.cfg.drop;ce>0;ce-=1)je.call(this)}}const Qt=V._createHelper(Nt);function cn(Ye,ce,Se,Me){const Pe=Ye;let $e;const ft=this._iv;ft?($e=ft.slice(0),this._iv=void 0):$e=this._prevBlock,Me.encryptBlock($e,0);for(let At=0;At<Se;At+=1)Pe[ce+At]^=$e[At]}let Qn=(()=>{class Ye extends Q{}return Ye.Encryptor=class extends Ye{processBlock(ce,Se){const Me=this._cipher,{blockSize:Pe}=Me;cn.call(this,ce,Se,Pe,Me),this._prevBlock=ce.slice(Se,Se+Pe)}},Ye.Decryptor=class extends Ye{processBlock(ce,Se){const Me=this._cipher,{blockSize:Pe}=Me,$e=ce.slice(Se,Se+Pe);cn.call(this,ce,Se,Pe,Me),this._prevBlock=$e}},Ye})();class di extends Q{}di.Encryptor=class extends di{processBlock(Ye,ce){const Se=Ye,Me=this._cipher,{blockSize:Pe}=Me,$e=this._iv;let ft=this._counter;$e&&(this._counter=$e.slice(0),ft=this._counter,this._iv=void 0);const At=ft.slice(0);Me.encryptBlock(At,0),ft[Pe-1]=ft[Pe-1]+1|0;for(let $t=0;$t<Pe;$t+=1)Se[ce+$t]^=At[$t]}},di.Decryptor=di.Encryptor;const yi=Ye=>{let ce=Ye;if(255==(Ye>>24&255)){let Se=Ye>>16&255,Me=Ye>>8&255,Pe=255&Ye;255===Se?(Se=0,255===Me?(Me=0,255===Pe?Pe=0:Pe+=1):Me+=1):Se+=1,ce=0,ce+=Se<<16,ce+=Me<<8,ce+=Pe}else ce+=1<<24;return ce};class oi extends Q{}oi.Encryptor=class extends oi{processBlock(Ye,ce){const Se=Ye,Me=this._cipher,{blockSize:Pe}=Me,$e=this._iv;let ft=this._counter;$e&&(this._counter=$e.slice(0),ft=this._counter,this._iv=void 0),(Ye=>{const ce=Ye;ce[0]=yi(ce[0]),0===ce[0]&&(ce[1]=yi(ce[1]))})(ft);const At=ft.slice(0);Me.encryptBlock(At,0);for(let $t=0;$t<Pe;$t+=1)Se[ce+$t]^=At[$t]}},oi.Decryptor=oi.Encryptor;let wi=(()=>{class Ye extends Q{}return Ye.Encryptor=class extends Ye{processBlock(ce,Se){this._cipher.encryptBlock(ce,Se)}},Ye.Decryptor=class extends Ye{processBlock(ce,Se){this._cipher.decryptBlock(ce,Se)}},Ye})();class Zo extends Q{}Zo.Encryptor=class extends Zo{processBlock(Ye,ce){const Se=Ye,Me=this._cipher,{blockSize:Pe}=Me,$e=this._iv;let ft=this._keystream;$e&&(this._keystream=$e.slice(0),ft=this._keystream,this._iv=void 0),Me.encryptBlock(ft,0);for(let At=0;At<Pe;At+=1)Se[ce+At]^=ft[At]}},Zo.Decryptor=Zo.Encryptor;const co={pad(Ye,ce){const Se=4*ce,Me=Se-Ye.sigBytes%Se;Ye.concat(i.random(Me-1)).concat(i.create([Me<<24],1))},unpad(Ye){Ye.sigBytes-=255&Ye.words[Ye.sigBytes-1>>>2]}},Bo={pad(Ye,ce){const Se=Ye,Me=4*ce;Se.clamp(),Se.sigBytes+=Me-(Ye.sigBytes%Me||Me)},unpad(Ye){const ce=Ye,Se=ce.words;for(let Me=ce.sigBytes-1;Me>=0;Me-=1)if(Se[Me>>>2]>>>24-Me%4*8&255){ce.sigBytes=Me+1;break}}},ho={lib:{Base:t,WordArray:i,BufferedBlockAlgorithm:v,Hasher:y,Cipher:s,StreamCipher:V,BlockCipherMode:Q,BlockCipher:Ue,CipherParams:Xe,SerializableCipher:ze,PasswordBasedCipher:Re},x64:{Word:p,WordArray:C},enc:{Hex:r,Latin1:L,Utf8:M,Utf16:oe,Utf16BE:Ce,Utf16LE:G,Base64:f},algo:{HMAC:u,MD5:W,SHA1:we,SHA224:Ft,SHA256:Ve,SHA384:Ln,SHA512:en,SHA3:Un,RIPEMD160:Fn,PBKDF2:Y,EvpKDF:D,AES:ni,DES:$n,TripleDES:no,Rabbit:Mo,RabbitLegacy:li,RC4:Tt,RC4Drop:Nt},mode:{CBC:ue,CFB:Qn,CTR:di,CTRGladman:oi,ECB:wi,OFB:Zo},pad:{Pkcs7:De,AnsiX923:{pad(Ye,ce){const Se=Ye,Me=Se.sigBytes,Pe=4*ce,$e=Pe-Me%Pe,ft=Me+$e-1;Se.clamp(),Se.words[ft>>>2]|=$e<<24-ft%4*8,Se.sigBytes+=$e},unpad(Ye){Ye.sigBytes-=255&Ye.words[Ye.sigBytes-1>>>2]}},Iso10126:co,Iso97971:{pad(Ye,ce){Ye.concat(i.create([2147483648],1)),Bo.pad(Ye,ce)},unpad(Ye){const ce=Ye;Bo.unpad(ce),ce.sigBytes-=1}},NoPadding:{pad(){},unpad(){}},ZeroPadding:Bo},format:{OpenSSL:st,Hex:{stringify:Ye=>Ye.ciphertext.toString(r),parse(Ye){const ce=r.parse(Ye);return Xe.create({ciphertext:ce})}}},kdf:{OpenSSL:F},MD5:I,HmacMD5:k,SHA1:Fe,HmacSHA1:lt,SHA224:yt,HmacSHA224:un,SHA256:rt,HmacSHA256:Et,SHA384:dt,HmacSHA384:Ot,SHA512:mn,HmacSHA512:En,SHA3:vn,HmacSHA3:zt,RIPEMD160:ut,HmacRIPEMD160:Je,PBKDF2:(Ye,ce,Se)=>Y.create(Se).compute(Ye,ce),EvpKDF:(Ye,ce,Se)=>D.create(Se).compute(Ye,ce),AES:Oi,DES:bi,TripleDES:ro,Rabbit:Jn,RabbitLegacy:Io,RC4:_t,RC4Drop:Qt};var mr=l(2560),qo=l(8286);let nr=(()=>{class Ye{apiRef;keySize=256;salt=ho.lib.WordArray.random(16);iv=ho.lib.WordArray.random(16);privateKey="%DaQGi3E1$3Z";key=ho.PBKDF2(this.privateKey,this.salt,{keySize:this.keySize/32,iterations:100});constructor(Se){this.apiRef=Se,this.privateKey+=this.apiRef.vDir.split("/").join("")}encryptObjRabbit(Se){const Me=JSON.stringify(Se);return ho.Rabbit.encrypt(Me,this.privateKey).toString()}decryptObjRabbit(Se){if(""===Se)return"";const Me=ho.Rabbit.decrypt(Se,this.privateKey);return JSON.parse(Me.toString(ho.enc.Utf8))}encryptObjAes(Se){const Me=JSON.stringify(Se);return this.encryptAes(Me)}encryptAes(Se){const Me=ho.AES.encrypt(Se,this.key,{iv:this.iv,padding:ho.pad.Pkcs7,mode:ho.mode.CBC});return ho.enc.Base64.stringify(this.salt.concat(this.iv).concat(Me.ciphertext))}static \u0275fac=function(Me){return new(Me||Ye)(mr.LFG(qo.q))};static \u0275prov=mr.Yz7({token:Ye,factory:Ye.\u0275fac})}return Ye})()},508:(qe,re,l)=>{"use strict";l.d(re,{k:()=>r});var t=l(5474),i=l(2560);let r=(()=>{class L{constructor(){}handleError(v){let y;return console.log(v),y=v.error instanceof ErrorEvent?v.message:"We are experiencing technical difficulties. Please try again later or contact the Agency for assistance.",(0,t._)(y)}static \u0275fac=function(y){return new(y||L)};static \u0275prov=i.Yz7({token:L,factory:L.\u0275fac})}return L})()},2266:(qe,re,l)=>{"use strict";l.d(re,{o:()=>M});var t=l(8987),i=l(635),r=l(2560),L=l(8286);let M=(()=>{class v{http;apiRef;headers;apiServer;constructor(u,_){this.http=u,this.apiRef=_,this.headers=new t.WM,this.headers.append("Content-Type","text"),this.headers.append("Accept","text"),this.apiServer="api/LabelKey/"}getDefaultLabelByKey(u){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}defaultLabel`,[{Key:"labelKey",Value:u}]),{responseType:"text"}).pipe((0,i.U)(_=>_))}getLabelByKey(u){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}label`,[{Key:"key",Value:u}]),{responseType:"text"}).pipe((0,i.U)(_=>_))}getHtmlText(u,_){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetHtmlText`,[{Key:"key",Value:u},{Key:"module",Value:_}]),{responseType:"text"}).pipe((0,i.U)(p=>p))}static \u0275fac=function(_){return new(_||v)(r.LFG(t.eN),r.LFG(L.q))};static \u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()},4169:(qe,re,l)=>{"use strict";l.d(re,{f:()=>u});var t=l(7155),i=l(6382);class r{Key;Value}var L=l(2560),M=l(7641),v=l(8286),y=l(9263);let u=(()=>{class _{activatedRoute;router;apiRef;store;appSettings;constructor(C,g,f,d){this.activatedRoute=C,this.router=g,this.apiRef=f,this.store=d,this.store.select(i.e).subscribe({next:h=>{h&&(this.appSettings=h)}})}isEmbedModeActive(){const C="true"===this.activatedRoute.snapshot.queryParamMap.get("Embed")||!1;return C&&this.appSettings?(this.appSettings.embedMode=!0,this.store.dispatch((0,t.Pl)(this.appSettings)),this.appSettings?.embedMode):C}navigateNewTab(C,g="_blank"){C=this.checkUrlParams(C),this.getWindowReference().open(C,g)}navigate(C){const g=this.isEmbedModeActive(),f=this.getWindowReference();if(g){const d=C.indexOf("?");C=C+(d<0?"?":"&")+"Embed=true"}f.location.href=C}getHomePageUrl(){return this.isEmbedModeActive()?"Welcome.aspx":"Default.aspx"}navigateTopPage(C){window.top.location.href=C}navigateLegacyPage(C){C=this.checkUrlParams(C),this.getWindowReference().location.href=C}navigateRoute(C,g){const f="true"===this.activatedRoute.snapshot.queryParamMap.get("inLegacyUI")||!1,d=this.isEmbedModeActive();if(f){const h=window.parent;if(g||(g=new Array),d&&!g.find(b=>"Embed"===b.Key)){const b=new r;b.Key="Embed",b.Value="true",g.unshift(b)}let T="";g.forEach(b=>{T+="&"+b.Key+"="+b.Value}),C+=T.replace("&","?"),h.location.href=this.apiRef.vDir+"CommunityView/"+C}else C="/"+C,this.router.navigate(g?[C,g.map(h=>h.Key+"="+h.Value)]:[C])}checkUrlParams(C){if(C=this.apiRef.vDir+C,this.isEmbedModeActive()){const f=C.indexOf("?");C=C+(f<0?"?":"&")+"Embed=true"}return this.activatedRoute.snapshot.queryParamMap.get("OpenCities")&&(C+="&OpenCities=true"),C}getWindowReference(){const C="true"===this.activatedRoute.snapshot.queryParamMap.get("inLegacyUI")||!1;let g=this.apiRef.nativeWindow;return C&&(g=window.parent),g}static \u0275fac=function(g){return new(g||_)(L.LFG(M.gz),L.LFG(M.F0),L.LFG(v.q),L.LFG(y.yh))};static \u0275prov=L.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})()},9921:(qe,re,l)=>{"use strict";l.d(re,{p:()=>d});var t=l(8987),i=l(6803),r=l(3158),L=l(635),M=l(5699),v=l(8891),y=l(276),u=l(1741),_=l(2560),p=l(8286),C=l(4591);let g=(()=>{class h{EMAIL_REGEXP=/^(?=.{1,254}$)(?=.{1,64}@)[\w+_-]+(?:\.[\w+_-]+)*@[\w+_-](?:[\w+_-\s]{0,61}\w)?(?:\.[\w](?:[\w]{0,61}\w)?)+$/;emailValidate(){return b=>{const P=b.value;return!P||0===P.length||this.EMAIL_REGEXP.test(P)?null:{email:!0}}}static \u0275fac=function(P){return new(P||h)};static \u0275prov=_.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();var f=l(508);let d=(()=>{class h{http;apiRef;dropdownValueRepo;regionalService;passwordValidator;emailValidator;errorHandler;headers;apiServer;renderer;constructor(b,P,W,I,k,D,N,s){this.http=b,this.apiRef=P,this.dropdownValueRepo=I,this.regionalService=k,this.passwordValidator=D,this.emailValidator=N,this.errorHandler=s,this.renderer=W.createRenderer(null,null),this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/PageLayout/"}getSimpleViewElements(b,P){const W=(new t.LE).set("ViewId",b).set("Module",P);return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetSimpleViewElements`),{headers:this.headers,params:W}).pipe((0,r.K)(this.errorHandler.handleError))}getSimpleViewElementsWithPermissions(b,P,W,I,k){const D=(new t.LE).set("ViewId",b).set("Module",P).set("PermissionLevel",W).set("PermissionValue",I).set("CallerId",k);return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetSimpleViewElements`),{headers:this.headers,params:D}).pipe((0,r.K)(this.errorHandler.handleError))}getDynamicFormData(b,P,W,I,k){const D=(new t.LE).set("ViewId",b).set("Module",P).set("PermissionLevel",W).set("PermissionValue",I).set("CallerId",k);return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetDynamicFormData`),{headers:this.headers,params:D}).pipe((0,r.K)(this.errorHandler.handleError))}saveUpdatedControl(b,P,W){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}UpdateControlContentProperties`,[{Key:"module",Value:P},{Key:"viewId",Value:W}]),{headers:this.headers,body:b}).pipe((0,L.U)(I=>I))}saveUpdatedControlProperties(b,P,W,I="",k=""){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}UpdateControlFieldProperties`,[{Key:"module",Value:P},{Key:"viewId",Value:W},{Key:"permissionLevel",Value:I},{Key:"permissionValue",Value:k}]),{headers:this.headers,body:b}).pipe((0,L.U)(D=>D))}saveUpdatedSection(b,P,W,I,k="",D=""){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}UpdateSectionContent`,[{Key:"contentKey",Value:P},{Key:"viewId",Value:W},{Key:"module",Value:I},{Key:"permissionLevel",Value:k},{Key:"permissionValue",Value:D}]),{content:b},{headers:this.headers}).pipe((0,L.U)(N=>N))}saveLabelArray(b,P,W,I="",k=""){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}SaveLabelArray`,[{Key:"viewId",Value:P},{Key:"module",Value:W},{Key:"permissionLevel",Value:I},{Key:"permissionValue",Value:k}]),{content:b},{headers:this.headers}).pipe((0,L.U)(D=>D))}processAccelaControl(b,P,W){if("Subdivision"===b.optionKey)b.type===M.h.Dropdown&&(P.controlData=b,(!b.options||0===b.options.length)&&this.dropdownValueRepo.getDropdownValueFun(b.name,b.optionKey).subscribe(I=>{(0,y.L)(W)||I.findIndex(k=>k.value===W)<0&&I.push({label:W,value:W}),b.options=I}));else{if(P.controlData=b,b.type===M.h.Blocked)return void P.clearValidators();b.type===M.h.Dropdown||b.type===M.h.RadioGroup?(!b.options||0===b.options.length)&&(b.name.includes("ddlQuestion")&&!b.name.includes("ddlQuestionForDaily")?this.dropdownValueRepo.getDropdownValueFun("ddlQuestion",b.optionKey).subscribe(I=>{b.options=I}):this.dropdownValueRepo.getDropdownValueFun(b.name,b.optionKey).subscribe(I=>{b.options=I})):b.type===M.h.Email?(P.setValidators(P.validator?[P.validator,this.emailValidator.emailValidate()]:[this.emailValidator.emailValidate()]),P.updateValueAndValidity()):b.type===M.h.Password&&"txbpassword1"===b.name.toLowerCase()&&P.setAsyncValidators([this.passwordValidator.validate()]),"RegionController"===b.optionKey&&(P.valueChanges.subscribe(I=>{this.updateRegionalMasks(P,I)}),this.regionalService.getDefaultCountry().subscribe(I=>{(0,y.L)(I)||P.setValue(I)}))}b.required&&(P.setValidators(P.validator?[P.validator,i.kI.required]:[i.kI.required]),P.updateValueAndValidity())}updateRegionalMasks(b,P){null!=b.parent&&((0,y.L)(P)||this.regionalService.getRegionalMasks(P).pipe((0,L.U)(W=>{Object.keys(b.parent.controls).forEach(I=>{const D=b.parent.get(I);if(D.controlData)switch(D.controlData.type){case M.h.Zip:const N=D.value;D.controlData.mask=W.ZipMask??D.controlData.mask,N&&(D.controlData.value=N,setTimeout(()=>{D.setValue(N)},0));break;case M.h.Phone:const s=D.value;D.controlData.mask=W.PhoneMask??D.controlData.mask,s&&(D.controlData.value=s,setTimeout(()=>{D.setValue(s)},0));break;case M.h.Dropdown:case M.h.Textbox:if("txtState"===D.controlData.name||"ddlAppState"===D.controlData.name||"txtAppState"===D.controlData.name){const V=D.value,Q=W.States;Array.isArray(Q)?(D.controlData.type=M.h.Dropdown,D.controlData.options=Q,V&&D.patchValue(V)):(D.controlData.type=M.h.Textbox,V&&D.setValue(V))}}})})).subscribe())}getAPOTemplateData(b){const P=(new t.LE).set("Type",b.toString());return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetOriginalTemplateData`),{headers:this.headers,params:P}).pipe((0,L.U)(W=>W)).toPromise()}static \u0275fac=function(P){return new(P||h)(_.LFG(t.eN),_.LFG(p.q),_.LFG(_.FYo),_.LFG(v.t),_.LFG(C.H),_.LFG(u.j),_.LFG(g),_.LFG(f.k))};static \u0275prov=_.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},4591:(qe,re,l)=>{"use strict";l.d(re,{H:()=>y});var t=l(8987),i=l(635),r=l(3158),L=l(2560),M=l(8286),v=l(508);let y=(()=>{class u{http;apiRef;errorHandler;headers;apiServer;countryApiServer;constructor(p,C,g){this.http=p,this.apiRef=C,this.errorHandler=g,this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/regions/",this.countryApiServer="api/countries"}getCountryList(){return this.http.get(this.apiRef.getApiUrl(`${this.countryApiServer}`)).pipe((0,i.U)(p=>p.result)).pipe((0,i.U)(p=>p.map(C=>({label:C.Name,value:C.Code})))).pipe((0,i.U)(p=>p)).pipe((0,r.K)(this.errorHandler.handleError))}getDefaultCountry(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}default`)).pipe((0,i.U)(p=>p.result.Code)).pipe((0,r.K)(this.errorHandler.handleError))}getRegionalMasks(p){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}${p.toUpperCase()}`)).pipe((0,i.U)(C=>C.result)).pipe((0,i.U)(C=>C&&C.Region?{Region:C.Region.country,Phone:C.Region.phoneNumMask,PhoneMask:this.getMask(C.Region.phoneNumMask),Zip:C.Region.zipCodeMask,ZipMask:this.getMask(C.Region.zipCodeMask),States:this.getStates(C.States)}:{Region:p,Phone:null,PhoneMask:null,Zip:null,ZipMask:null,States:this.getStates(C?.States)})).pipe((0,r.K)(this.errorHandler.handleError))}getMask(p){return p?p.split("#").join("9").split("A").join("a").split("*").join("*").split("[").join("").split("]").join(""):null}getStates(p){if(!p)return null;const C=p;let g=new Array;return Object.keys(C).forEach(f=>{g.push({label:f,value:f})}),g}static \u0275fac=function(C){return new(C||u)(L.LFG(t.eN),L.LFG(M.q),L.LFG(v.k))};static \u0275prov=L.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},4142:(qe,re,l)=>{"use strict";l.d(re,{F:()=>y});var t=l(8987),i=l(635),r=l(3158),L=l(2560),M=l(8286),v=l(508);let y=(()=>{class u{http;apiRef;errorHandler;headers;apiServer;constructor(p,C,g){this.http=p,this.apiRef=C,this.errorHandler=g,this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/CapModel/"}saveAddressesToCapModel(p,C){const f=JSON.stringify(p);return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}SaveAddressesToCapModel`,[{Key:"module",Value:C}]),f,{headers:{"content-type":"application/json"}}).pipe((0,i.U)(d=>d.toString())).pipe((0,r.K)(this.errorHandler.handleError))}getAddressesFromCapModel(p){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetAddressesFromCapModel`,[{Key:"module",Value:p}])).pipe((0,i.U)(C=>(C=JSON.parse(C.toString()))&&"null"!==C?C:new Array)).pipe((0,r.K)(this.errorHandler.handleError))}saveParcelsToCapModel(p,C){const f=JSON.stringify(p);return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}SaveParcelsToCapModel`,[{Key:"module",Value:C}]),f,{headers:{"content-type":"application/json"}}).pipe((0,i.U)(d=>d.toString())).pipe((0,r.K)(this.errorHandler.handleError))}getParcelsFromCapModel(p){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetParcelsFromCapModel`,[{Key:"module",Value:p}])).pipe((0,i.U)(C=>(C=JSON.parse(C.toString()))&&"null"!==C?C:new Array)).pipe((0,r.K)(this.errorHandler.handleError))}saveOwnersToCapModel(p,C){const f=JSON.stringify(p);return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}SaveOwnersToCapModel`,[{Key:"module",Value:C}]),f,{headers:{"content-type":"application/json"}}).pipe((0,i.U)(d=>d.toString())).pipe((0,r.K)(this.errorHandler.handleError))}getOwnersFromCapModel(p){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetOwnersFromCapModel`,[{Key:"module",Value:p}])).pipe((0,i.U)(C=>(C=JSON.parse(C.toString()))&&"null"!==C?C:new Array)).pipe((0,r.K)(this.errorHandler.handleError))}static \u0275fac=function(C){return new(C||u)(L.LFG(t.eN),L.LFG(M.q),L.LFG(v.k))};static \u0275prov=L.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},3897:(qe,re,l)=>{"use strict";l.d(re,{R:()=>_});var t=l(8987),i=l(745),r=l(635),L=l(3158),M=l(2560),v=l(8286),y=l(508),u=l(9263);let _=(()=>{class p{http;apiRef;errorHandler;store;headers;apiServer;loginSettings;recaptcha;isLicenseRequiredForAccount=null;enableCustomizationPerPage=null;isACASSOEnabledForLogin=null;dateFormat="";constructor(g,f,d,h){this.http=g,this.apiRef=f,this.errorHandler=d,this.store=h,this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/Settings/"}getLoginSettings(){return this.loginSettings?(0,i.of)(this.loginSettings):this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetLoginSettings`)).pipe((0,r.U)(g=>(this.loginSettings=g,this.loginSettings))).pipe((0,L.K)(this.errorHandler.handleError))}isContactAddressEnabled(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetIsContactAddressSetting`)).pipe((0,r.U)(g=>g))}isRegistrationEnabled(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetRegistrationEnabledSetting`)).pipe((0,r.U)(g=>g))}getRecaptchaSettings(){return this.recaptcha?(0,i.of)(this.recaptcha):this.http.get(this.apiRef.getApiUrl(`${this.apiServer}GetRecaptchaInfo`)).pipe((0,r.U)(g=>(this.recaptcha=g,this.recaptcha))).pipe((0,L.K)(this.errorHandler.handleError))}isXAPOAgency(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}IsXAPOAgency`)).pipe((0,r.U)(g=>g)).pipe((0,L.K)(this.errorHandler.handleError))}getLicenseTypes(){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}licenseTypes`)).pipe((0,r.U)(g=>g.result))}isLicenseRequiredForRegistration(){return null==this.isLicenseRequiredForAccount?this.http.get(this.apiRef.getApiUrl(`${this.apiServer}configValue`,[{Key:"key",Value:"registrationIsLicenseReq"}])).pipe((0,r.U)(g=>(this.setConfigCacheValues(g),this.isLicenseRequiredForAccount))):(0,i.of)(this.isLicenseRequiredForAccount)}isEnableCustomizationPerPage(){return null==this.enableCustomizationPerPage?this.http.get(this.apiRef.getApiUrl(`${this.apiServer}configValue`,[{Key:"key",Value:"customPageSettings"}])).pipe((0,r.U)(g=>(this.setConfigCacheValues(g),this.enableCustomizationPerPage))).pipe((0,L.K)(this.errorHandler.handleError)):(0,i.of)(this.enableCustomizationPerPage)}isACASSOEnabled(){return null==this.isACASSOEnabledForLogin?this.http.get(this.apiRef.getApiUrl(`${this.apiServer}configValue`)).pipe((0,r.U)(g=>(this.setConfigCacheValues(g),this.isACASSOEnabledForLogin))).pipe((0,L.K)(this.errorHandler.handleError)):(0,i.of)(this.isACASSOEnabledForLogin)}isDateFormatConfigured(){return""==this.dateFormat?this.http.get(this.apiRef.getApiUrl(`${this.apiServer}configValue`)).pipe((0,r.U)(g=>(this.setConfigCacheValues(g),""!=this.dateFormat))).pipe((0,L.K)(this.errorHandler.handleError)):(0,i.of)(""!=this.dateFormat)}setConfigCacheValues(g){this.isLicenseRequiredForAccount=g.result?.isLicenseRequiredForRegistration,this.enableCustomizationPerPage=g.result?.isEnableCustomizationPerPage,this.isACASSOEnabledForLogin=g.result?.isACASSOEnabled,this.dateFormat=g.result?.dateFormat}static \u0275fac=function(f){return new(f||p)(M.LFG(t.eN),M.LFG(v.q),M.LFG(y.k),M.LFG(u.yh))};static \u0275prov=M.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},7344:(qe,re,l)=>{"use strict";l.d(re,{d:()=>M});var t=l(8987),i=l(635),r=l(2560),L=l(8286);let M=(()=>{class v{http;apiRef;headers;apiServer;constructor(u,_){this.http=u,this.apiRef=_,this.headers=new t.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/sso/"}cacheRedirectUrl(u){return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}storeRedirect`),{Uri:u},{headers:this.headers}).pipe((0,i.U)(_=>_.result))}static \u0275fac=function(_){return new(_||v)(r.LFG(t.eN),r.LFG(L.q))};static \u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()},2533:(qe,re,l)=>{"use strict";l.d(re,{m:()=>un});var t=l(4666),i=l(6803),r=l(6328),L=l(2560);let C=(()=>{class bt{}return bt.\u0275fac=function(en){return new(en||bt)},bt.\u0275mod=L.oAB({type:bt}),bt.\u0275inj=L.cJS({imports:[t.ez]}),bt})();var g=l(2547),f=l(1518),d=l(749),h=l(9999),T=l(6999),b=l(8179),P=l(1227),W=l(7990);const I=function(bt,Jt,en){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":bt,"p-disabled":Jt,"p-focus":en}},k={provide:i.JU,useExisting:(0,L.Gpc)(()=>D),multi:!0};let D=(()=>{class bt{constructor(en){this.cd=en,this.trueValue=!0,this.falseValue=!1,this.onChange=new L.vpe,this.modelValue=!1,this.focused=!1,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(en,mn){!this.disabled&&!this.readonly&&(en.preventDefault(),this.toggle(en),mn.focus())}onInputChange(en){this.readonly||this.updateModel(en,en.target.checked)}toggle(en){this.updateModel(en,!this.checked())}updateModel(en,mn){this.modelValue=mn?this.trueValue:this.falseValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:en,checked:this.modelValue})}onFocus(en){this.focused=!0}onBlur(en){this.focused=!1,this.onModelTouched()}writeValue(en){this.modelValue=en,this.cd.markForCheck()}registerOnChange(en){this.onModelChange=en}registerOnTouched(en){this.onModelTouched=en}setDisabledState(en){this.disabled=en,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}}return bt.\u0275fac=function(en){return new(en||bt)(L.Y36(L.sBO))},bt.\u0275cmp=L.Xpm({type:bt,selectors:[["p-inputSwitch"]],hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[L._Bn([k])],decls:5,vars:16,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","change","focus","blur"],["cb",""],[1,"p-inputswitch-slider"]],template:function(en,mn){if(1&en){const En=L.EpF();L.TgZ(0,"div",0),L.NdJ("click",function(dt){L.CHM(En);const Ot=L.MAs(3);return L.KtG(mn.onClick(dt,Ot))}),L.TgZ(1,"div",1)(2,"input",2,3),L.NdJ("change",function(dt){return mn.onInputChange(dt)})("focus",function(dt){return mn.onFocus(dt)})("blur",function(dt){return mn.onBlur(dt)}),L.qZA()(),L._UZ(4,"span",4),L.qZA()}2&en&&(L.Tol(mn.styleClass),L.Q6J("ngClass",L.kEZ(12,I,mn.checked(),mn.disabled,mn.focused))("ngStyle",mn.style),L.xp6(2),L.Q6J("checked",mn.checked())("disabled",mn.disabled),L.uIk("aria-label",mn.ariaLabel)("id",mn.inputId)("name",mn.name)("tabindex",mn.tabindex)("aria-checked",mn.checked())("aria-labelledby",mn.ariaLabelledBy))},dependencies:[t.mk,t.PC],styles:['.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}\n'],encapsulation:2,changeDetection:0}),bt})(),N=(()=>{class bt{}return bt.\u0275fac=function(en){return new(en||bt)},bt.\u0275mod=L.oAB({type:bt}),bt.\u0275inj=L.cJS({imports:[t.ez]}),bt})();var s=l(9906);let st=(()=>{class bt{}return bt.\u0275fac=function(en){return new(en||bt)},bt.\u0275mod=L.oAB({type:bt}),bt.\u0275inj=L.cJS({imports:[t.ez]}),bt})();var ze=l(8547),F=l(6664),Re=l(8848);let Ce=(()=>{class bt{}return bt.\u0275fac=function(en){return new(en||bt)},bt.\u0275mod=L.oAB({type:bt}),bt.\u0275inj=L.cJS({imports:[t.ez]}),bt})();var oe=l(9902),G=l(4250),ye=l(4179),we=l(2578),Fe=l(9129),lt=l(4329),Pt=l(8840),wt=l(5502),Bt=l(4142),nn=l(8987),xt=l(635),sn=l(8286);let ct=(()=>{class bt{http;apiRef;headers;apiServer;constructor(en,mn){this.http=en,this.apiRef=mn,this.headers=new nn.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/GlobalSearch/"}getContactSuggestionsFromDatabase(en){const mn=en;return this.http.post(this.apiRef.getApiUrl(`${this.apiServer}GetContactSuggestionsFromDatabase`),mn).pipe((0,xt.U)(En=>(En=JSON.parse(En.toString()))&&"null"!==En?En:new Array))}static \u0275fac=function(mn){return new(mn||bt)(L.LFG(nn.eN),L.LFG(sn.q))};static \u0275prov=L.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"})}return bt})();var Ve=l(508),rt=l(5583),Et=l(1650),Ft=l(8819),yt=l(7344);let un=(()=>{class bt{static \u0275fac=function(mn){return new(mn||bt)};static \u0275mod=L.oAB({type:bt});static \u0275inj=L.cJS({providers:[rt.u,wt.N,Ft.X,yt.d,ct,Bt.F,Et.g,Ve.k],imports:[t.ez,i.u5,i.UX,r.hJ,C,g._8,f.N,d.nD,h.S,T.kW,b.Z_,P.zz,W.L$,N,s.j,st,ze.$,F.y,Re.gz,Ce,oe.cc,G._,ye.l,we.U$,Fe.EV,lt.z,Pt.kK]})}return bt})()},1617:(qe,re,l)=>{"use strict";l.d(re,{w:()=>y});var t=l(2560),i=l(8951),r=l(253),L=l(9134),M=l(4356),v=l(1518);let y=(()=>{class u{accountService;messageService;RecaptchaPublicKey;verifyUser=new t.vpe(!0);SizeMode="compact";destroyActions=new r.x;constructor(p,C){this.accountService=p,this.messageService=C}ngOnInit(){}showResponse(p){this.accountService.verifyCaptchaData(p.response).pipe((0,i.R)(this.destroyActions)).subscribe(C=>(this.verifyUser.emit(C.success),C),C=>{this.messageService.add({severity:"error",summary:C,closable:!1})})}ngOnDestroy(){this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(C){return new(C||u)(t.Y36(L.B),t.Y36(M.ez))};static \u0275cmp=t.Xpm({type:u,selectors:[["aca-recaptcha"]],inputs:{RecaptchaPublicKey:"RecaptchaPublicKey"},outputs:{verifyUser:"verifyUser"},decls:2,vars:1,consts:[[1,"card"],["id","captcha",3,"siteKey","onResponse"]],template:function(C,g){1&C&&(t.TgZ(0,"div",0)(1,"p-captcha",1),t.NdJ("onResponse",function(d){return g.showResponse(d)}),t.qZA()()),2&C&&(t.xp6(1),t.Q6J("siteKey",g.RecaptchaPublicKey))},dependencies:[v.U],styles:["@media only screen and (max-device-width: 660px),(max-width: 600px){#rc-imageselect[_ngcontent-%COMP%], .g-recaptcha[_ngcontent-%COMP%]{transform:scale(.77);-webkit-transform:scale(.77);transform-origin:0 0;-webkit-transform-origin:0 0}}.card[_ngcontent-%COMP%]{width:300px;height:78px}\n/*# sourceMappingURL=recaptcha.component.css.map*/"]})}return u})()},9547:(qe,re,l)=>{"use strict";l.d(re,{p:()=>t});let t=(()=>class i{static RETURN_URL="ReturnUrl";static SSOUSER_EMAIL="ssoUserEmail";static REMEBERME_COOKIE="ACA_REMEMBERED_USER_NAME";static CHANGE_PASSWORD_ROUTE="Account/ChangePassword.aspx?IsPasswordExpires=Y"})()},3684:(qe,re,l)=>{"use strict";l.r(re),l.d(re,{UserManagementModule:()=>Dn});var t=l(4666),i=l(6803),r=l(6328),L=l(1518),M=l(4357),v=l(749),y=l(9999),u=l(8179),_=l(9906),p=l(6664),C=l(8848),g=l(9902),f=l(4250),d=l(2533),h=l(7641),T=l(8951),b=l(635),P=l(7874),W=l(5699);class I{addressLine1;addressLine2;addressLine3;addressType;city;countryCode;effectiveDate;entityID;entityType;expirationDate;fax;faxCountryCode;fullAddress;houseNumberEnd;houseNumberStart;orderBy;phone;phoneCountryCode;primary;recipient;state;streetDirection;streetName;streetPrefix;streetSuffix;streetSuffixDirection;unitEnd;unitStart;unitType;zip;levelPrefix;levelNumberStart;levelNumberEnd;houseNumberAlphaStart;houseNumberAlphaEnd;replaceAddressID;validateFlag}class k{addressId;addressLine1;addressLine2;addressLine3;city;country;countryCode;countryZip;resState;state;streetName;zip}class D{id;Type;contactTypeFlag;preferredChannel;email;salutation;businessName;businessName2;fein;deceasedDate;firstName;middleName;lastName;fullName;nameSuffix;title;genderIdentity;ethnicity;socialSecurityNumber;stateIdNumber;passportNumber;tradeName;countryCode;phone1;phone2;phone3;fax;addressLine1;addressLine2;addressLine3;birthCity;birthDate;birthState;birthRegion;driverLicenseNbr;driverLicenseState;postOfficeBox;comment;contactSeqNumber;primaryAddressFlag;auditStatus;zip;rowIndex;Addresses=new Array;CompactAddress=new k}var N=l(2651),s=l(6382);const V=St=>St.PublicUserAccount;var Q=l(253),me=l(9134),ue=l(4169),De=l(9921);class Ue{Username;Password;ConfirmPassword;SecurityQuestion;SecurityAnswer;Email;PhoneNumber;PermissionToSendSMSMsgs;Contacts=new Array;licenseLinks=new Array;Questions=new Array}var Xe=l(9547),st=l(276),ze=l(9884),F=l(2560),Re=l(9263),de=l(3897),Ce=l(4356),oe=l(5583),G=l(8286),ye=l(8819),we=l(4212),Fe=l(1650),lt=l(3462),Pt=l(4050),wt=l(6999);function Bt(St,Vn){1&St&&F._UZ(0,"div")}function nn(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"div",6)(1,"p-radioButton",7),F.NdJ("ngModelChange",function(Ze){F.CHM(He);const Kt=F.oxw(2);return F.KtG(Kt.contactType=Ze)})("onClick",function(Ze){F.CHM(He);const Kt=F.oxw(2);return F.KtG(Kt.onValueChange(Ze))}),F.qZA()()}if(2&St){const He=Vn.$implicit,ht=Vn.index,Ze=F.oxw(2);F.xp6(1),F.Q6J("name",He)("value",He)("ngModel",Ze.contactType)("inputId",ht)("ariaLabel",He)("label",He)}}function xt(St,Vn){if(1&St&&F.YNc(0,nn,2,6,"div",5),2&St){const He=F.oxw();F.Q6J("ngForOf",He.availableTypes)}}function sn(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"div",8)(1,"p-dropdown",9),F.NdJ("ngModelChange",function(Ze){F.CHM(He);const Kt=F.oxw();return F.KtG(Kt.contactType=Ze)})("onClear",function(Ze){F.CHM(He);const Kt=F.oxw();return F.KtG(Kt.onValueChange(Ze))})("onChange",function(Ze){F.CHM(He);const Kt=F.oxw();return F.KtG(Kt.onValueChange(Ze))}),F.qZA(),F.TgZ(2,"label",10),F.SDv(3,11),F.qZA()()}if(2&St){const He=F.oxw();F.xp6(1),F.Q6J("options",He.availableTypes)("ngModel",He.contactType)}}let ct=(()=>{class St{contactInfoService;contactType;changeEvent=new F.vpe(!0);availableTypes;sharedData;constructor(He,ht){this.contactInfoService=He,this.sharedData=ht.getData()}ngOnInit(){}onValueChange(He){this.changeEvent.emit(this.contactType)}static \u0275fac=function(ht){return new(ht||St)(F.Y36(we.a),F.Y36(Fe.g))};static \u0275cmp=F.Xpm({type:St,selectors:[["contact-type-select"]],inputs:{contactType:"contactType",availableTypes:"availableTypes"},outputs:{changeEvent:"changeEvent"},decls:8,vars:3,consts:function(){let He,ht;return He="Select a Contact Type",ht="Contact Details For:",[[1,"accela-theme"],He,[4,"ngIf","ngIfThen","ngIfElse"],["radiocontent",""],["dropdown_content",""],["class","p-field-radiobutton",4,"ngFor","ngForOf"],[1,"p-field-radiobutton"],[1,"mb-1",3,"name","value","ngModel","inputId","ariaLabel","label","ngModelChange","onClick"],[1,"dropdown"],["inputId","contactDropdown","ariaLabelledBy","contactDropdownLabel","tabindex","0","placeholder","Select","showClear","true","autoDisplayFirst","false","dropdownIcon","accelicons accelicons-chevron-down",3,"options","ngModel","ngModelChange","onClear","onChange"],["for","contactDropdown","id","contactDropdownLabel",1,"contact-dropdown-label"],ht]},template:function(ht,Ze){if(1&ht&&(F.TgZ(0,"fieldset",0)(1,"legend"),F.SDv(2,1),F.qZA(),F.YNc(3,Bt,1,0,"div",2),F.YNc(4,xt,1,1,"ng-template",null,3,F.W1O),F.YNc(6,sn,4,2,"ng-template",null,4,F.W1O),F.qZA()),2&ht){const Kt=F.MAs(5),Hn=F.MAs(7);F.xp6(3),F.Q6J("ngIf",(null==Ze.availableTypes?null:Ze.availableTypes.length)<5)("ngIfThen",Kt)("ngIfElse",Hn)}},dependencies:[t.sg,t.O5,i.JJ,i.On,wt.Lt,g.EU],styles:['fieldset[_ngcontent-%COMP%]{margin-bottom:1.5rem;margin-top:0;border:0;padding:0;border:none}legend[_ngcontent-%COMP%]{display:none}label[_ngcontent-%COMP%]{min-width:90%}[_nghost-%COMP%]     .p-dropdown, [_nghost-%COMP%]     .dropdown{width:100%}[_nghost-%COMP%]     .accela-theme .pi-times:before{font-size:1rem}[_nghost-%COMP%]     .accela-theme .dropdown .p-dropdown .p-dropdown-trigger:before{font-family:primeicons;content:"\\e902"}\n/*# sourceMappingURL=contact-type-select.component.css.map*/']})}return St})();var Ve=l(3810),rt=l(5782),Et=l(5236);const Ft=["adminDetailLayout"],yt=["adminAddressLayout"];function un(St,Vn){if(1&St&&(F.TgZ(0,"h5",18)(1,"strong"),F._uU(2),F.qZA()()),2&St){const He=F.oxw();F.xp6(2),F.Oqu(He.getStepText())}}function bt(St,Vn){if(1&St&&F._UZ(0,"section-instructions",2),2&St){const He=F.oxw();F.Q6J("contentKey","aca_contacttypeselect_label_title|sub")("admin",He.adminMode)("viewId",He.detailViewId)("module",He.module)("permissionValue",He.Contact.Type)}}function Jt(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"contact-type-select",19),F.NdJ("changeEvent",function(Ze){F.CHM(He);const Kt=F.oxw();return F.KtG(Kt.onContactTypeChange(Ze))}),F.qZA()}if(2&St){const He=F.oxw();F.Q6J("contactType",null==He.Contact?null:He.Contact.Type)("availableTypes",He.availableTypes)}}function en(St,Vn){1&St&&F._UZ(0,"hr",20)}function mn(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"aca-page-layout-display",21),F.NdJ("controlOnBlur",function(Ze){F.CHM(He);const Kt=F.oxw();return F.KtG(Kt.invokeExpressionForExecute(Ze))}),F.qZA()}if(2&St){const He=F.oxw();F.Q6J("controlGroup",He.ContactForm)}}function En(St,Vn){if(1&St&&F._UZ(0,"aca-admin-page-layout",22,23),2&St){const He=F.oxw();F.Q6J("module",He.module)("viewId",He.detailViewId)("permissionValue",He.Contact.Type)("loadLayoutOnInit",!1)}}function Ln(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"button",29),F.NdJ("click",function(){F.CHM(He);const Ze=F.oxw().index,Kt=F.oxw();return F.KtG(Kt.removeAddressForm(Ze))}),F.TgZ(1,"span"),F.SDv(2,30),F.qZA()()}if(2&St){const He=F.oxw(2);F.Q6J("disabled",He.processing||He.adminMode)}}function dt(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"aca-page-layout-display",31),F.NdJ("controlOnBlur",function(Ze){F.CHM(He);const Kt=F.oxw(2);return F.KtG(Kt.invokeExpressionForExecute(Ze))}),F.qZA()}if(2&St){const He=F.oxw().$implicit;F.Q6J("controlGroup",He)}}function Ot(St,Vn){if(1&St&&F._UZ(0,"aca-admin-page-layout",32),2&St){const He=F.oxw(2);F.Q6J("module",He.module)("viewId",He.addressViewId)}}function $(St,Vn){1&St&&F._UZ(0,"hr",16)}function pe(St,Vn){if(1&St&&(F.TgZ(0,"div",24),F._UZ(1,"div",25),F.YNc(2,Ln,3,1,"button",13),F.YNc(3,dt,1,1,"aca-page-layout-display",26),F.YNc(4,Ot,1,2,"aca-admin-page-layout",27),F.YNc(5,$,1,0,"hr",28),F.qZA()),2&St){const He=Vn.index,ht=F.oxw();F.xp6(1),F.Q6J("innerHTML",ht.getAddressText(He),F.oJD)("escape",!1),F.xp6(1),F.Q6J("ngIf",ht.getAddressControls().length>1),F.xp6(1),F.Q6J("ngIf",!ht.adminMode),F.xp6(1),F.Q6J("ngIf",ht.adminMode),F.xp6(1),F.Q6J("ngIf",!ht.adminMode)}}function Ee(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"button",29),F.NdJ("click",function(){F.CHM(He);const Ze=F.oxw();return F.KtG(Ze.addAddressFormClick())}),F._UZ(1,"i",33),F.TgZ(2,"span"),F.SDv(3,34),F.qZA()()}if(2&St){const He=F.oxw();F.Q6J("disabled",He.processing||He.adminMode)}}let Ge=(()=>{class St{store;pageLayoutService;navigationService;accountService;formBuilder;settingService;messageService;expressionService;renderer;apiRef;customScriptService;activatedRoute;contactInfoService;adminDetailLayout;adminAddressLayout;adminMode=!1;ContactForm;ContactAddresses=new Array;isSSOUserRegistration=!1;controlTypes=W.h;simpleViewElements;Contact=new D;module="";detailViewId=N.fA.RegistrationContactForm;addressViewId=N.fA.RegistrationContactAddressForm;permissionLevel="People";addressText;existingUser;onLoadExpression;onSubmitExpression;executeFieldData;executeFields=new Array;hideFields=["txtAppStreetAdd1","txtAppStreetAdd2","txtAppStreetAdd3","txtAppCity","ddlAppCountry","txtAppFax","txtAppState","txtAppZipApplicant"];isContactAddressEnabled=!1;currentStep=2;maxStep=2;stepLogicLoaded=!1;availableTypes;sharedData;processing=!1;destroyActions=new Q.x;constructor(He,ht,Ze,Kt,Hn,ei,ai,xn,ni,Oi,so,Ii,yo,ao){this.store=He,this.pageLayoutService=ht,this.navigationService=Ze,this.accountService=Kt,this.formBuilder=Hn,this.settingService=ei,this.messageService=ai,this.expressionService=xn,this.renderer=ni,this.apiRef=Oi,this.customScriptService=so,this.activatedRoute=Ii,this.contactInfoService=yo,this.sharedData=ao.getData(),this.activatedRoute.queryParams.subscribe(Fi=>{const Di=Fi.existingUser;if(Di){let pn=decodeURI(Di);pn&&(this.existingUser=pn.split(" ").join("+"))}}),this.processing=!0}ngOnInit(){const ht=new URLSearchParams(this.apiRef.nativeWindow.location.search).get(Xe.p.SSOUSER_EMAIL)?.trim();if(!(0,st.L)(ht)){const Ze=new Ue;Ze.Email=ht,Ze.Password=null,Ze.Username=ht,this.store.dispatch((0,ze.yl)({PublicUserAccount:Ze})),this.isSSOUserRegistration=!0}this.store.select(s.e).pipe((0,T.R)(this.destroyActions)).subscribe({next:Ze=>{Ze&&(this.adminMode=Ze.AdminMode,Ze.licenseRequiredForRegistration&&(this.currentStep+=1,this.maxStep+=1),this.stepLogicLoaded=!0),this.ContactForm=this.formBuilder.group({ContactAddress:this.formBuilder.array([])}),this.Contact=new D,this.Contact.Addresses||(this.Contact.Addresses=new Array),this.adminMode||this.fetchExpressions(),this.ContactForm.markAsUntouched(),this.ContactForm.markAsPristine()},error:Ze=>console.log(Ze)}),this.settingService.isEnableCustomizationPerPage().pipe((0,T.R)(this.destroyActions)).subscribe(Ze=>{Ze&&this.customScriptService.loadAndRunCustomScriptBlock(this.renderer,document,"account_register-contact-detail")}),this.sharedData.isMultipleContact?this.contactInfoService.getContactTypesForMultiContact(this.sharedData.SessionParamterString,this.sharedData.Module,this.sharedData.isMultipleContact).pipe((0,b.U)(Ze=>{this.availableTypes=Ze,this.loadContactForm()})).subscribe():this.contactInfoService.getContactTypes().pipe((0,b.U)(Ze=>{this.availableTypes=Ze,this.loadContactForm()})).subscribe()}fetchExpressions(){this.expressionService.getExpressionJsScriptOnLoad(this.detailViewId,this.module,this.permissionLevel,this.Contact?.Type,"anonymous").pipe((0,T.R)(this.destroyActions)).subscribe(He=>{this.onLoadExpression=He}),this.expressionService.getExpressionJsScriptOnSubmit(this.detailViewId,this.module,this.permissionLevel,this.Contact?.Type,"anonymous").pipe((0,T.R)(this.destroyActions)).subscribe(He=>{this.onSubmitExpression=He})}addForm(He){this.pageLayoutService.getDynamicFormData(He,"",this.permissionLevel,this.Contact?.Type,"anonymous").pipe((0,T.R)(this.destroyActions)).subscribe(ht=>{this.simpleViewElements=ht,this.simpleViewElements.forEach(Ze=>{if(this.isContactAddressEnabled&&this.hideFields.indexOf(Ze.name)>-1&&(Ze.display=!1,Ze.required=!1),Ze.type==this.controlTypes.Date&&this.settingService.isDateFormatConfigured()&&(Ze.optionKey=this.settingService.dateFormat),Ze.display){""===Ze.optionKey||this.adminMode||"ContactType"!==Ze.optionKey||(Ze.optionKey=this.Contact.Type);const Kt=new i.p4(Ze.value);this.pageLayoutService.processAccelaControl(Ze,Kt),this.ContactForm.addControl(Ze.name,Kt)}}),He===this.detailViewId&&this.onLoadExpression&&this.expressionService.invokeExpression(this.onLoadExpression,this.ContactForm).pipe((0,T.R)(this.destroyActions)).subscribe(),this.adminMode||this.expressionService.getExpressionJsScriptForExecute(this.detailViewId,this.module,this.permissionLevel,this.Contact.Type,"anonymous").pipe((0,T.R)(this.destroyActions)).subscribe(Ze=>{Ze&&Ze.length>0&&(this.executeFieldData=Ze,Ze.forEach(Kt=>{Kt.executeBind&&Kt.inputFields&&Object.keys(Kt.inputFields).forEach(Hn=>{Kt.inputFields[Hn].forEach(ei=>{this.ContactForm.get(ei)&&!(this.executeFields.findIndex(xn=>xn===ei)>=0)&&this.executeFields.push(ei)})})}))}),this.processing=!1},ht=>{this.processing=!1,this.messageService.add({severity:"error",summary:ht,closable:!1})})}invokeExpressionForExecute(He){this.executeFields.findIndex(ht=>ht===He.controlData.name)>=0&&this.executeFieldData.forEach(ht=>{this.executeFields.forEach(Ze=>{let Kt=this.ContactForm.get(Ze);if(!Kt&&this.ContactAddresses&&this.ContactAddresses.length>0&&(Kt=this.ContactAddresses[0].get(Ze)),Kt){const Hn=Kt.controlData;Hn.value=Kt.value,ht.inputFieldProperties[Hn.name]=Kt.controlData}}),this.expressionService.invokeExpression(ht,this.ContactForm,null).subscribe()})}getAddressText(He){let ht="";return ht+=He>0?`<strong>ADDRESS ${He}</strong>`:"<strong>ADDRESS</strong>",this.getAddressControls().length>1&&(ht+=" | "),ht}addAddressFormClick(He){this.processing||this.addAddressForm()}addAddressForm(){this.processing=!0,this.pageLayoutService.getDynamicFormData(this.addressViewId,"","ContactAddress","","anonymous").pipe((0,T.R)(this.destroyActions)).subscribe(He=>{const ht=new i.nJ({});He.filter(Ze=>Ze.display).forEach(Ze=>{Ze.display&&Ze.optionKey&&""!==Ze.optionKey&&"ContactType"===Ze.optionKey&&(Ze.optionKey=this.Contact.Type);const Kt=new i.p4(Ze.value);return this.pageLayoutService.processAccelaControl(Ze,Kt),ht.addControl(Ze.name,Kt),Kt}),this.ContactAddresses.push(ht),this.getAddressArray().push(ht),this.processing=!1},He=>{this.processing=!1,this.messageService.add({severity:"error",summary:He,closable:!1})})}removeAddressForm(He){He>-1&&!this.adminMode&&(this.ContactAddresses.splice(He,1),this.getAddressArray().controls.splice(He,1))}getAddressArray(){return this.ContactForm?this.ContactForm.controls.ContactAddress:null}getAddressControls(){return this.ContactForm?this.ContactForm.controls.ContactAddress.controls:null}onContactTypeChange(He){He&&(this.processing=!0,this.Contact.Type=He,this.reloadContactForm())}reloadContactForm(){this.ContactForm=null,this.ContactForm=this.formBuilder.group({ContactAddress:this.formBuilder.array([])}),this.adminMode||this.fetchExpressions(),this.settingService.isContactAddressEnabled().pipe((0,T.R)(this.destroyActions)).subscribe(He=>{He?(this.isContactAddressEnabled=!0,this.ContactAddresses&&(this.ContactAddresses=new Array),this.adminMode&&this.adminAddressLayout?this.adminAddressLayout.refreshPageLayout():this.addAddressForm(),this.loadDetailForm()):this.loadDetailForm()})}loadDetailForm(){this.adminMode?(this.adminDetailLayout.permissionValue=this.Contact.Type,this.adminDetailLayout.refreshPageLayout()):this.addForm(this.detailViewId)}getStepText(){return this.stepLogicLoaded?`Step ${this.currentStep} of ${this.maxStep}: Contact Details`:""}back(He){this.adminMode||this.processing||this.existingUser||this.isSSOUserRegistration||this.navigationService.navigateRoute("account/new")}validateContactForm(){return this.ContactForm.updateValueAndValidity(),this.Contact||(this.Contact=new D),!!this.validateForm()||(this.messageService.clear(),this.processing=!1,this.messageService.add({severity:"error",summary:"Not all fields are filled out correctly. Please check again.",closable:!1}),!1)}performSave(){this.existingUser?this.store.select(V).pipe((0,T.R)(this.destroyActions)).subscribe(He=>{let ht=new Ue;He&&He.licenseLinks&&(ht.licenseLinks=He.licenseLinks),ht.Username=this.existingUser,ht.Contacts=[this.Contact],this.accountService.linkNewAccount(ht).pipe((0,T.R)(this.destroyActions)).subscribe(Ze=>{let Kt=Ze.result?.Uri;"200"==Ze.status?this.navigationService.navigateLegacyPage("Account/"+Kt.toString()):(Kt=Kt.toString().replace("~/",""),this.navigationService.navigateLegacyPage(Kt.toString()))},Ze=>{if(this.processing=!1,Ze.error&&Ze.error.Uri){const Kt=Ze.error.Uri.toString().replace("~/","");this.navigationService.navigateLegacyPage(Kt)}else this.messageService.add({severity:"error",summary:Ze.message,closable:!1}),this.reloadContactForm()})}):this.store.select(V).pipe((0,T.R)(this.destroyActions)).subscribe(He=>{let ht;ht=He&&He.PublicUserAccount?JSON.parse(JSON.stringify(He.PublicUserAccount)):new Ue,ht.Contacts||(ht.Contacts=new Array),ht.Contacts.push(this.Contact),this.accountService.saveNewAccount(ht).pipe((0,T.R)(this.destroyActions)).subscribe(Ze=>{this.navigationService.navigateLegacyPage("Account/"+Ze.toString())},Ze=>{if(this.processing=!1,Ze.error&&Ze.error.Uri){const Kt=Ze.error.Uri.toString().replace("~/","");this.navigationService.navigateLegacyPage(Kt)}else this.messageService.add({severity:"error",summary:Ze.message,closable:!1}),this.reloadContactForm()})})}submit(He){this.adminMode||this.processing||(this.processing=!0,this.mapContactUItoContactModel(),this.onSubmitExpression?this.expressionService.invokeExpression(this.onSubmitExpression,this.ContactForm).pipe((0,T.R)(this.destroyActions)).subscribe(()=>{this.validateContactForm()&&this.performSave()}):this.validateContactForm()&&this.performSave())}validateForm(){let He=!0;for(const ht in this.ContactForm.controls)if({}.hasOwnProperty.call(this.ContactForm.controls,ht)){const Ze=this.ContactForm.controls[ht];Ze.validator&&Ze.markAsDirty(),Ze.errors&&Object.keys(Ze.errors).length>0&&(console.log(Ze.errors),He=!1)}return this.ContactAddresses&&this.ContactAddresses.length>0&&this.ContactAddresses.forEach(ht=>{for(const Ze in ht.controls)if({}.hasOwnProperty.call(ht.controls,Ze)){const Kt=ht.controls[Ze];Kt.validator&&Kt.markAsDirty(),Kt.errors&&Object.keys(Kt.errors).length>0&&(console.log(Kt.errors),He=!1)}}),He}mapUItoModel(He,ht){this.ContactForm.controls[ht]&&(this.Contact[He]=this.ContactForm.controls[ht].value)}mapContactUItoContactModel(){this.mapUItoModel("salutation","ddlAppSalutation"),this.mapUItoModel("email","txtAppEmail"),this.mapUItoModel("businessName","txtAppOrganizationName"),this.mapUItoModel("businessName2","txtBusinessName2"),this.mapUItoModel("tradeName","txtAppTradeName"),this.mapUItoModel("fein","txtAppFein"),this.mapUItoModel("firstName","txtAppFirstName"),this.mapUItoModel("lastName","txtAppLastName"),this.mapUItoModel("fullName","txtAppFullName"),this.mapUItoModel("middleName","txtAppMiddleName"),this.mapUItoModel("title","txtTitle"),this.mapUItoModel("salutation","ddlAppSalutation"),this.mapUItoModel("socialSecurityNumber","txtSSN"),this.mapUItoModel("streetName","txtStreetName"),this.mapUItoModel("birthDate","txtAppBirthDate"),this.mapUItoModel("genderIdentity","radioListAppGender"),this.mapUItoModel("phone1","txtAppPhone1"),this.mapUItoModel("phone2","txtAppPhone2"),this.mapUItoModel("phone3","txtAppPhone3"),this.mapUItoModel("fax","txtAppFax"),this.mapUItoModel("namesuffix","txtAppSuffix"),this.mapUItoModel("city","txtAppCity"),this.mapUItoModel("addressLine1","txtAppStreetAdd1"),this.mapUItoModel("addressLine2","txtAppStreetAdd2"),this.mapUItoModel("addressLine3","txtAppStreetAdd3"),this.mapUItoModel("state","txtAppState"),this.mapUItoModel("zip","txtAppZipApplicant"),this.mapUItoModel("countryCode","ddlAppCountry"),this.mapUItoModel("birthCity","txtBirthplaceCity"),this.mapUItoModel("deceasedDate","txtDeceasedDate"),this.mapUItoModel("passportNumber","txtPassportNumber"),this.mapUItoModel("driverLicenseNbr","txtDriverLicenseNumber"),this.mapUItoModel("driverLicenseState ","ddlDriverLicenseState"),this.mapUItoModel("stateIdNumber","txtStateNumber"),this.mapUItoModel("ethnicity","ddlRace"),this.mapUItoModel("birthCity ","txtBirthplaceCity"),this.mapUItoModel("birthDate","txtAppBirthDate"),this.mapUItoModel("birthState","ddlBirthplaceState"),this.mapUItoModel("birthRegion","ddlBirthplaceCountry"),this.mapUItoModel("driverLicenseState","ddlDriverLicenseState"),this.mapUItoModel("preferredChannel","ddlPreferredChannel"),this.mapUItoModel("comment","txtNotes"),this.mapUItoModel("countryCode","ddlAppCountry"),this.mapUItoModel("postOfficeBox","txtAppPOBox"),this.mapUItoModel("auditStatus","A"),this.mapUItoModel("primaryAddressFlag","ckbPrimary"),this.mapUItoModel("contactSeqNumber","hdnContactSeqNumber"),this.Contact.Addresses=new Array,this.ContactAddresses.forEach(He=>{const ht=new I;this.mapUItoAddressModel("addressType",He.controls.ddlAddressType,ht),this.mapUItoAddressModel("effectiveDate",He.controls.txtStartDate,ht),this.mapUItoAddressModel("expirationDate",He.controls.txtEndDate,ht),this.mapUItoAddressModel("recipient",He.controls.txtRecipient,ht),this.mapUItoAddressModel("fullAddress",He.controls.txtFullAddress,ht),this.mapUItoAddressModel("addressLine1",He.controls.txtAddressLine1,ht),this.mapUItoAddressModel("addressLine2",He.controls.txtAddressLine2,ht),this.mapUItoAddressModel("addressLine3",He.controls.txtAddressLine3,ht),this.mapUItoAddressModel("houseNumberStart",He.controls.txtStreetStart,ht),this.mapUItoAddressModel("houseNumberEnd",He.controls.txtStreetEnd,ht),this.mapUItoAddressModel("streetDirection",He.controls.ddlStreetDirection,ht),this.mapUItoAddressModel("streetPrefix",He.controls.txtPrefix,ht),this.mapUItoAddressModel("streetName",He.controls.txtStreetName,ht),this.mapUItoAddressModel("streetSuffix",He.controls.ddlStreetType,ht),this.mapUItoAddressModel("unitType",He.controls.ddlUnitType,ht),this.mapUItoAddressModel("unitStart",He.controls.txtUnitStart,ht),this.mapUItoAddressModel("unitEnd",He.controls.txtUnitEnd,ht),this.mapUItoAddressModel("streetSuffixDirection",He.controls.ddlStreetSuffixDirection,ht),this.mapUItoAddressModel("countryCode",He.controls.ddlCountry,ht),this.mapUItoAddressModel("city",He.controls.txtCity,ht),this.mapUItoAddressModel("state",He.controls.txtState,ht),this.mapUItoAddressModel("zip",He.controls.txtZip,ht),this.mapUItoAddressModel("phone",He.controls.txtPhone,ht),this.mapUItoAddressModel("fax",He.controls.txtFax,ht),this.mapUItoAddressModel("primary",He.controls.ckbPrimary,ht),this.mapUItoAddressModel("levelPrefix",He.controls.txtLevelPrefix,ht),this.mapUItoAddressModel("levelNumberStart",He.controls.txtLevelNbrStart,ht),this.mapUItoAddressModel("levelNumberEnd",He.controls.txtLevelNbrEnd,ht),this.mapUItoAddressModel("houseNumberAlphaStart",He.controls.txtHouseAlphaStart,ht),this.mapUItoAddressModel("houseNumberAlphaEnd",He.controls.txtHouseAlphaEnd,ht),this.Contact.Addresses.push(ht)})}mapUItoAddressModel(He,ht,Ze){ht&&(Ze[He]=ht.value)}loadContactForm(){1===this.availableTypes.length&&(this.Contact.Type=this.availableTypes[0],this.reloadContactForm())}ngOnDestroy(){this.customScriptService.removeTrackedElements(),this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(ht){return new(ht||St)(F.Y36(Re.yh),F.Y36(De.p),F.Y36(ue.f),F.Y36(me.B),F.Y36(i.qu),F.Y36(de.R),F.Y36(Ce.ez),F.Y36(oe.u),F.Y36(F.Qsj),F.Y36(G.q),F.Y36(ye.X),F.Y36(h.gz),F.Y36(we.a),F.Y36(Fe.g))};static \u0275cmp=F.Xpm({type:St,selectors:[["contact-details-screen"]],viewQuery:function(ht,Ze){if(1&ht&&(F.Gf(Ft,5),F.Gf(yt,5)),2&ht){let Kt;F.iGM(Kt=F.CRH())&&(Ze.adminDetailLayout=Kt.first),F.iGM(Kt=F.CRH())&&(Ze.adminAddressLayout=Kt.first)}},decls:23,vars:18,consts:function(){let He,ht,Ze,Kt;return He="Submit",ht="Back",Ze="Delete",Kt="Add Address",[["styleClass","app-frame","role","region","aria-labelledby","accountInfoForm"],["id","accountInfoForm",1,"ACA_TabRow"],["permissionLevel","People",3,"contentKey","admin","viewId","module","permissionValue"],["class","signup-stepcounter",4,"ngIf"],["permissionLevel","People",3,"contentKey","admin","viewId","module","permissionValue",4,"ngIf"],[1,"cardContent",3,"formGroup","ngSubmit"],[3,"contactType","availableTypes","changeEvent",4,"ngIf"],["class","separator",4,"ngIf"],[1,"required"],["role","img","aria-label","*",1,"accelicons","accelicons-asterisk"],["class","p-d-flex p-flex-wrap",3,"controlGroup","controlOnBlur",4,"ngIf"],["class","p-d-flex p-flex-wrap accela-theme","permissionLevel","People",3,"module","viewId","permissionValue","loadLayoutOnInit",4,"ngIf"],["legend","Contact Address Section",4,"ngFor","ngForOf"],["class","text-button",3,"disabled","click",4,"ngIf"],[1,"p-d-flex","contactAddressFooter"],["accessButton","3","label",He,"pRipple","",1,"submit",3,"disabled","click"],[1,"separator","mt-4","mb-4"],["label",ht,"accessButton","b","pRipple","",3,"disabled","click"],[1,"signup-stepcounter"],[3,"contactType","availableTypes","changeEvent"],[1,"separator"],[1,"p-d-flex","p-flex-wrap",3,"controlGroup","controlOnBlur"],["permissionLevel","People",1,"p-d-flex","p-flex-wrap","accela-theme",3,"module","viewId","permissionValue","loadLayoutOnInit"],["adminDetailLayout",""],["legend","Contact Address Section"],[1,"divAddressTerms","truncate",3,"innerHTML","escape"],["class","p-d-flex p-flex-wrap contactAddressSection",3,"controlGroup","controlOnBlur",4,"ngIf"],["class","p-d-flex p-flex-wrap accela-theme","permissionLevel","ContactAddress","permissionValue","",3,"module","viewId",4,"ngIf"],["class","separator mt-4 mb-4",4,"ngIf"],[1,"text-button",3,"disabled","click"],Ze,[1,"p-d-flex","p-flex-wrap","contactAddressSection",3,"controlGroup","controlOnBlur"],["permissionLevel","ContactAddress","permissionValue","",1,"p-d-flex","p-flex-wrap","accela-theme",3,"module","viewId"],[1,"accelicons-plus"],Kt]},template:function(ht,Ze){1&ht&&(F.TgZ(0,"p-card",0)(1,"p-header")(2,"div",1),F._UZ(3,"section-title",2),F.YNc(4,un,3,1,"h5",3),F.YNc(5,bt,1,5,"section-instructions",4),F.qZA()(),F.TgZ(6,"form",5),F.NdJ("ngSubmit",function(){return Ze.submit(Ze.ContactForm.value)}),F.YNc(7,Jt,1,2,"contact-type-select",6),F.TgZ(8,"div"),F.YNc(9,en,1,0,"hr",7),F.TgZ(10,"span",8)(11,"div",9),F._uU(12,"Required Fields"),F.qZA()(),F.YNc(13,mn,1,1,"aca-page-layout-display",10),F.YNc(14,En,2,4,"aca-admin-page-layout",11),F._UZ(15,"br"),F.YNc(16,pe,6,6,"div",12),F.YNc(17,Ee,4,1,"button",13),F.TgZ(18,"div",14)(19,"accela-button-primary",15),F.NdJ("click",function(){return Ze.submit(Ze.ContactForm.value)}),F.qZA()()(),F._UZ(20,"hr",16),F.TgZ(21,"div",14)(22,"accela-button-secondary",17),F.NdJ("click",function(Hn){return Ze.back(Hn)}),F.qZA()()()()),2&ht&&(F.xp6(3),F.Q6J("contentKey","aca_contacttypeselect_label_title")("admin",Ze.adminMode)("viewId",Ze.detailViewId)("module",Ze.module)("permissionValue",Ze.Contact.Type),F.xp6(1),F.Q6J("ngIf",!Ze.isSSOUserRegistration),F.xp6(1),F.Q6J("ngIf",(null==Ze.availableTypes?null:Ze.availableTypes.length)>1),F.xp6(1),F.Q6J("formGroup",Ze.ContactForm),F.xp6(1),F.Q6J("ngIf",(null==Ze.availableTypes?null:Ze.availableTypes.length)>1),F.xp6(1),F.Udp("display",null!=Ze.Contact&&Ze.Contact.Type?"block":"none"),F.xp6(1),F.Q6J("ngIf",!Ze.adminMode),F.xp6(4),F.Q6J("ngIf",!Ze.adminMode),F.xp6(1),F.Q6J("ngIf",Ze.adminMode),F.xp6(2),F.Q6J("ngForOf",Ze.getAddressControls()),F.xp6(1),F.Q6J("ngIf",Ze.isContactAddressEnabled),F.xp6(2),F.Q6J("disabled",Ze.adminMode||Ze.processing),F.xp6(3),F.Q6J("disabled",Ze.adminMode||Ze.processing||Ze.existingUser||Ze.isSSOUserRegistration))},dependencies:[t.sg,t.O5,i._Y,i.JL,i.sg,M.Z,Ce.h4,lt.s,Pt.o,P.N,ct,Ve.b,rt.f,Et.D],styles:["[_nghost-%COMP%]     .textinput, [_nghost-%COMP%]     input, [_nghost-%COMP%]     .p-dropdown, [_nghost-%COMP%]     .p-calendar, [_nghost-%COMP%]     label, [_nghost-%COMP%]     .textarea{min-width:100%}[_nghost-%COMP%]     .p-card{max-width:500px;box-shadow:0 2px 18px #52525241;border-radius:.5em}[_nghost-%COMP%]     .app-frame{padding:1em 2.5em}#accountInfoForm[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{height:19px;font-family:Chivo;font-style:normal;font-weight:400;font-size:16px;line-height:19px;letter-spacing:.1em;text-transform:uppercase;color:#000;flex:none;order:1;align-self:stretch;flex-grow:0;margin-top:1.5em;margin-bottom:1.5em}h1[_ngcontent-%COMP%]{padding:1em}.contactAddressSection[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:1em}.contactAddressFooter[_ngcontent-%COMP%]{width:100%;display:flex;flex:1 1 auto}[_nghost-%COMP%]     .button-create{margin-top:.5rem}i.accelicons[_ngcontent-%COMP%]{margin-right:.5em}[_nghost-%COMP%]     .required{font-size:1rem;vertical-align:top;color:#bc2f46}[_nghost-%COMP%]     .divAddressTerms{display:inline-block;padding-left:.5em}[_nghost-%COMP%]     .editDeleteBtn{padding:.3em 0 .1em .1em;color:#2a6bb8;background-color:#fff;border-color:#fff;height:19px;font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;text-decoration-line:underline}[_nghost-%COMP%]     .addBtn{padding-top:15px;color:#1b50a1;background-color:#fff;border-color:#fff;font-weight:700}.p-button[_ngcontent-%COMP%]:enabled:hover{background:transparent;color:#1b50a1;border-color:#fff}hr[_ngcontent-%COMP%]{border:1px solid #C6D2DB}.p-d-flex[_ngcontent-%COMP%]   accela-button-primary[_ngcontent-%COMP%], .p-d-flex[_ngcontent-%COMP%]   accela-button-secondary[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]     .ACA_Button.p-button{width:100%}[_nghost-%COMP%]     .submit.button-primary button{margin-top:2em;width:100%}[_nghost-%COMP%]     accela-separator .accelaControl{margin-top:24px;margin-bottom:24px}@media only screen and (max-device-width: 600px),(max-width: 600px){[_nghost-%COMP%]     .textinput, [_nghost-%COMP%]     input, [_nghost-%COMP%]     .p-dropdown, [_nghost-%COMP%]     .p-calendar, [_nghost-%COMP%]     label, [_nghost-%COMP%]     .textarea .controlsSection{min-width:90%}}@media screen and (max-width: 375px){[_nghost-%COMP%]     .p-card{padding:1em 1.25em}}\n/*# sourceMappingURL=contact-details-screen.component.css.map*/"]})}return St})();var Zt=l(2266),tn=l(2847);let on=(()=>{class St{localizationService;adminMode;constructor(He){this.localizationService=He}ngOnInit(){}static \u0275fac=function(ht){return new(ht||St)(F.Y36(Zt.o))};static \u0275cmp=F.Xpm({type:St,selectors:[["aca-disclaimer"]],inputs:{adminMode:"adminMode"},decls:8,vars:10,consts:[["styleClass","app-frame"],[3,"contentKey","admin"],["tabindex","0",1,"disclaimerSection"]],template:function(ht,Ze){1&ht&&(F.TgZ(0,"p-card",0)(1,"h1"),F._UZ(2,"section-title",1),F.qZA(),F.TgZ(3,"div",2),F._UZ(4,"section-instructions",1)(5,"section-instructions",1)(6,"section-instructions",1)(7,"section-instructions",1),F.qZA()()),2&ht&&(F.xp6(2),F.Q6J("contentKey","acc_regHome_label_register")("admin",Ze.adminMode),F.xp6(2),F.Q6J("contentKey","acc_disclaimer_label_disclaimer")("admin",Ze.adminMode),F.xp6(1),F.Q6J("contentKey","acc_disclaimer_label_disclaimer1")("admin",Ze.adminMode),F.xp6(1),F.Q6J("contentKey","acc_disclaimer_label_disclaimer2")("admin",Ze.adminMode),F.xp6(1),F.Q6J("contentKey","acc_disclaimer_label_disclaimer3")("admin",Ze.adminMode))},dependencies:[M.Z,rt.f,Et.D],styles:[".disclaimerSection[_ngcontent-%COMP%]{width:100%;height:38em;overflow-x:hidden;overflow-y:auto;border-top:2px gray solid;border-left:2px gray solid;border-bottom:1px #ECE9D8 solid;border-right:1px #ECE9D8 solid;padding-left:10px;padding-top:10px;padding-right:15px}\n/*# sourceMappingURL=disclaimer.component.css.map*/"]})}return St})(),Un=(()=>{class St{localizationService;store;adminMode;destroyActions=new Q.x;constructor(He,ht){this.localizationService=He,this.store=ht}ngOnInit(){this.store.select(s.e).pipe((0,T.R)(this.destroyActions)).subscribe({next:He=>{this.adminMode=He.AdminMode}})}ngOnDestroy(){this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(ht){return new(ht||St)(F.Y36(Zt.o),F.Y36(Re.yh))};static \u0275cmp=F.Xpm({type:St,selectors:[["aca-register-disclaimer-screen"]],decls:4,vars:1,consts:[["alertComponent",""],[1,"disclaimBackground"],[3,"adminMode"]],template:function(ht,Ze){1&ht&&(F._UZ(0,"aca-alert-message",null,0),F.TgZ(2,"div",1),F._UZ(3,"aca-disclaimer",2),F.qZA()),2&ht&&(F.xp6(3),F.Q6J("adminMode",Ze.adminMode))},dependencies:[tn.z,on],styles:[".disclaimBackground[_ngcontent-%COMP%]{height:100%}\n/*# sourceMappingURL=register-disclaimer-screen.component.css.map*/"]})}return St})();var vn=l(8987),zt=l(508);let Ht=(()=>{class St{http;apiRef;errorHandler;headers;apiServer;constructor(He,ht,Ze){this.http=He,this.apiRef=ht,this.errorHandler=Ze,this.headers=new vn.WM,this.headers.append("Content-Type","application/json"),this.headers.append("Accept","application/json"),this.apiServer="api/Licenses/"}validateLicenseLink(He){return this.http.get(this.apiRef.getApiUrl(`${this.apiServer}lookup`,[{Key:"licenseNum",Value:He.licenseNum},{Key:"licenseType",Value:He.licenseType}])).pipe((0,b.U)(ht=>ht&&"null"!==ht?ht.result:null))}static \u0275fac=function(ht){return new(ht||St)(F.LFG(vn.eN),F.LFG(G.q),F.LFG(zt.k))};static \u0275prov=F.Yz7({token:St,factory:St.\u0275fac,providedIn:"root"})}return St})();function pt(St,Vn){if(1&St&&(F.TgZ(0,"div"),F._UZ(1,"p-radioButton",18)(2,"div",19),F.qZA()),2&St){const He=Vn.$implicit,ht=F.oxw();F.xp6(1),F.Q6J("value",He.Value)("ariaLabel",He.Key)("label",He.Key)("disabled",ht.adminMode||ht.processing)}}function Dt(St,Vn){1&St&&(F.TgZ(0,"small",22),F._UZ(1,"icon",23),F.TgZ(2,"span"),F.SDv(3,24),F.qZA()())}function ot(St,Vn){if(1&St&&(F.TgZ(0,"div",20),F.YNc(1,Dt,4,0,"small",21),F.qZA()),2&St){const He=F.oxw();F.xp6(1),F.Q6J("ngIf",(null==He.licTypeControLRef||null==He.licTypeControLRef.errors?null:He.licTypeControLRef.errors.required)&&((null==He.licTypeControLRef?null:He.licTypeControLRef.touched)||(null==He.licTypeControLRef?null:He.licTypeControLRef.dirty)))}}function Be(St,Vn){1&St&&(F.TgZ(0,"small",22),F._UZ(1,"icon",23),F.TgZ(2,"span"),F.SDv(3,28),F.qZA()())}function at(St,Vn){if(1&St&&(F.TgZ(0,"div",20),F.YNc(1,Be,4,0,"small",21),F.qZA()),2&St){const He=F.oxw(2);F.xp6(1),F.Q6J("ngIf",(null==He.licNumberControLRef.errors?null:He.licNumberControLRef.errors.required)&&((null==He.licNumberControLRef?null:He.licNumberControLRef.touched)||(null==He.licNumberControLRef?null:He.licNumberControLRef.dirty)))}}function Gt(St,Vn){if(1&St&&(F.TgZ(0,"div")(1,"div",25,7),F._UZ(3,"input",26),F.TgZ(4,"label",27),F._uU(5),F.qZA()(),F.YNc(6,at,2,1,"div",12),F.qZA()),2&St){const He=F.oxw();F.xp6(1),F.Q6J("formGroup",He.licenseForm),F.xp6(2),F.uIk("aria-label",He.getInputLabel()),F.xp6(2),F.Oqu(He.getInputLabel()),F.xp6(1),F.Q6J("ngIf",!He.adminMode)}}function Ut(St,Vn){1&St&&(F.TgZ(0,"div",29)(1,"small",22),F._UZ(2,"icon",23),F.TgZ(3,"span"),F.SDv(4,30),F.qZA()()())}let gn=(()=>{class St{store;formBuilder;navigationService;settingsService;licenseService;activatedRoute;adminMode=!1;module="";detailViewId=N.fA.RegisterLicense;licenseTypes;licenseForm;existingUser;licenseNotFound=!1;processing=!1;destroyActions=new Q.x;constructor(He,ht,Ze,Kt,Hn,ei){this.store=He,this.formBuilder=ht,this.navigationService=Ze,this.settingsService=Kt,this.licenseService=Hn,this.activatedRoute=ei,this.licenseForm=this.formBuilder.group({licenseType:"",licenseNumber:""}),this.licTypeControLRef.setValidators([i.kI.required]),this.activatedRoute.queryParams.subscribe(ai=>{const xn=ai.existingUser;if(xn){let ni=decodeURI(xn);ni&&(this.existingUser=ni.split(" ").join("+"))}})}get licNumberControLRef(){return this.licenseForm.controls.licenseNumber}get licTypeControLRef(){return this.licenseForm.controls.licenseType}ngOnInit(){this.store.select(s.e).pipe((0,T.R)(this.destroyActions)).subscribe({next:He=>{this.adminMode=He.AdminMode}}),this.settingsService.getLicenseTypes().subscribe(He=>{this.licenseTypes=He})}getInputLabel(){return`${this.licTypeControLRef.value} License`}validateForm(){let He=!0;this.licenseForm.updateValueAndValidity();for(const ht in this.licenseForm.controls)if({}.hasOwnProperty.call(this.licenseForm.controls,ht)){const Ze=this.licenseForm.controls[ht];Ze.validator&&Ze.markAsDirty(),Ze.errors&&Object.keys(Ze.errors).length>0&&(He=!1)}return He}submit(He){if(!this.validateForm())return;const ht={licenseNum:this.licenseForm.controls.licenseNumber.value,licenseType:this.licenseForm.controls.licenseType.value};this.licenseForm.markAsPristine(),this.licenseService.validateLicenseLink(ht).subscribe(Ze=>{Ze?(this.store.dispatch((0,ze.yl)({PublicUserAccount:{licenseLinks:[Ze]}})),this.existingUser?this.navigationService.navigateRoute("account/register-contact-detail",[{Key:"existingUser",Value:this.existingUser}]):this.navigationService.navigateRoute("account/new")):this.licenseNotFound=!0},Ze=>{this.licenseNotFound=!0})}back(){this.adminMode||this.navigationService.navigateLegacyPage(this.navigationService.getHomePageUrl())}ngOnDestroy(){this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(ht){return new(ht||St)(F.Y36(Re.yh),F.Y36(i.QS),F.Y36(ue.f),F.Y36(de.R),F.Y36(Ht),F.Y36(h.gz))};static \u0275cmp=F.Xpm({type:St,selectors:[["register-license-screen"]],decls:24,vars:12,consts:function(){let He,ht,Ze,Kt,Hn,ei,ai;return He="Please select the type of professional license you hold. If you have more than one license, select the one you consider primary.",ht="Which License Do You Hold?",Ze="Continue",Kt="Back",Hn="Please Select a License Type",ei="Please Enter A License Number",ai="License number not found.",[["styleClass","app-frame accela-theme","role","region","aria-labelledby","declareLicenseForm"],["id","declareLicenseForm",1,"col-12","ACA_TabRow"],[3,"contentKey","admin","viewId","module"],[1,"signup-stepcounter"],He,[1,"cardContent",3,"formGroup","ngSubmit"],["id","licenseTypeDiv",1,"accelaControl","component-content","hideFieldset"],["accelaControlDiv",""],["for","licenseTypeDiv"],ht,[1,"mt-4"],[4,"ngFor","ngForOf"],["class","validationFeedback",4,"ngIf"],[4,"ngIf"],["class","validationFeedback mb-4",4,"ngIf"],["label",Ze,3,"disabled","click"],[1,"separator","mt-4","mb-4"],["label",Kt,"accessButton","b","pRipple","",3,"disabled","click"],["formControlName","licenseType",3,"value","ariaLabel","label","disabled"],[1,"mb-2"],[1,"validationFeedback"],["class","ng-invalid p-invalid",4,"ngIf"],[1,"ng-invalid","p-invalid"],[1,"accelicons","accelicons-alert2","mr-1"],Hn,["id","licenseNumberDiv",1,"textinput","accelaControl",3,"formGroup"],["name","licenseNumber","id","licenseNumber","type","text","attr.aria-required","true","required","true","pInputText","","formControlName","licenseNumber"],["for","licenseNumber","id","licenseNumberLabel","attr.data-required","true"],ei,[1,"validationFeedback","mb-4"],ai]},template:function(ht,Ze){1&ht&&(F.TgZ(0,"p-card",0)(1,"p-header")(2,"div",1),F._UZ(3,"section-title",2),F.TgZ(4,"h5",3)(5,"strong"),F._uU(6,"Step 1 of 3: Your Current License"),F.qZA()(),F.TgZ(7,"summary"),F.SDv(8,4),F.qZA()()(),F.TgZ(9,"form",5),F.NdJ("ngSubmit",function(){return Ze.submit(Ze.licenseForm.value)}),F.TgZ(10,"fieldset",6,7)(12,"legend")(13,"label",8)(14,"strong"),F.SDv(15,9),F.qZA()()(),F._UZ(16,"div",10),F.YNc(17,pt,3,4,"div",11),F.qZA(),F.YNc(18,ot,2,1,"div",12),F.YNc(19,Gt,7,4,"div",13),F.YNc(20,Ut,5,0,"div",14),F.qZA(),F.TgZ(21,"accela-button-primary",15),F.NdJ("click",function(Hn){return Ze.submit(Hn)}),F.qZA(),F._UZ(22,"hr",16),F.TgZ(23,"accela-button-secondary",17),F.NdJ("click",function(){return Ze.back()}),F.qZA()()),2&ht&&(F.xp6(3),F.Q6J("contentKey","acc_reg_label_enterLicense")("admin",Ze.adminMode)("viewId",Ze.detailViewId)("module",Ze.module),F.xp6(6),F.Q6J("formGroup",Ze.licenseForm),F.xp6(4),F.uIk("data-required",!0),F.xp6(4),F.Q6J("ngForOf",Ze.licenseTypes),F.xp6(1),F.Q6J("ngIf",!Ze.adminMode),F.xp6(1),F.Q6J("ngIf",""!==(null==Ze.licTypeControLRef?null:Ze.licTypeControLRef.value)),F.xp6(1),F.Q6J("ngIf",!Ze.adminMode&&Ze.licenseNotFound&&!Ze.licenseForm.dirty),F.xp6(1),F.Q6J("disabled",Ze.adminMode||Ze.processing),F.xp6(2),F.Q6J("disabled",Ze.adminMode||Ze.processing))},dependencies:[t.sg,t.O5,i._Y,i.Fj,i.JJ,i.JL,i.Q7,i.sg,i.u,M.Z,Ce.h4,_.o,g.EU,lt.s,Pt.o,Et.D],styles:[".hideFieldset[_ngcontent-%COMP%]{border:none;padding:0}[_nghost-%COMP%]     .p-radiobutton-label{padding-left:.3em}[_nghost-%COMP%]     .app-frame{padding:1em 2.5em;max-width:500px;margin-left:auto!important;margin-right:auto}[_nghost-%COMP%]     div.accelaControl{padding:0}[_nghost-%COMP%]     #licenseTypeDiv, [_nghost-%COMP%]     #declareLicenseForm{padding:0}[_nghost-%COMP%]     #licenseTypeDiv>h5, [_nghost-%COMP%]     #declareLicenseForm>h5, [_nghost-%COMP%]     #licenseTypeDiv fieldset, [_nghost-%COMP%]     #declareLicenseForm fieldset{height:19px;font-family:Chivo;font-style:normal;font-weight:400;font-size:16px;line-height:19px;letter-spacing:.1em;text-transform:uppercase;color:#000;flex:none;order:1;align-self:stretch;flex-grow:0;margin-top:1.5em;margin-bottom:1.5em}[_nghost-%COMP%]     .button-primary button{width:100%;margin-top:2em}[_nghost-%COMP%]     .ACA_Button.p-button{margin-top:0;width:100%}"]})}return St})();function Mn(St,Vn){return He=>{const ht=He.get(St),Ze=He.get(Vn);let Kt=!1;if(!Ze.errors||Ze.errors.mustMatch)return ht.value!==Ze.value?Ze.setErrors({mustMatch:!0}):(Kt=!0,Ze.setErrors(null)),Kt?null:{mustMatch:!0}}}class kn{answerValueField;questionValueField;recFulNameField}var Rn=l(1617);function Fn(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"aca-page-layout-display",22),F.NdJ("onchkChange",function(Ze){F.CHM(He);const Kt=F.oxw(2);return F.KtG(Kt.validateReqSMSCheckbox(Ze))}),F.qZA()}if(2&St){const He=F.oxw(2);F.Q6J("controlGroup",He.AccountForm)("blockChars",He.blockChars)}}function ut(St,Vn){if(1&St&&F._UZ(0,"aca-admin-page-layout",23),2&St){const He=F.oxw(2);F.Q6J("module",He.module)("viewId",He.viewId)}}function Je(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"div",24)(1,"aca-recaptcha",25),F.NdJ("verifyUser",function(Ze){F.CHM(He);const Kt=F.oxw(2);return F.KtG(Kt.updateRecaptchaStatus(Ze))}),F.qZA()()}if(2&St){const He=F.oxw(2);F.xp6(1),F.Q6J("RecaptchaPublicKey",null==He.RecaptchaInfo?null:He.RecaptchaInfo.RecaptchaPublicKey)}}const Y=function(){return{standalone:!0}};function le(St,Vn){if(1&St){const He=F.EpF();F.TgZ(0,"form",10),F.NdJ("ngSubmit",function(){F.CHM(He);const Ze=F.oxw();return F.KtG(Ze.submitRegistration(Ze.AccountForm.value))}),F.TgZ(1,"span",11),F._UZ(2,"icon",12),F._uU(3," Required Fields"),F.qZA(),F.YNc(4,Fn,1,2,"aca-page-layout-display",13),F.YNc(5,ut,1,2,"aca-admin-page-layout",14),F._UZ(6,"br"),F.TgZ(7,"div",15)(8,"p-checkbox",16),F.NdJ("ngModelChange",function(Ze){F.CHM(He);const Kt=F.oxw();return F.KtG(Kt.disclaimerAccepted=Ze)}),F.qZA(),F.TgZ(9,"label",17),F._uU(10),F.TgZ(11,"a",18),F.NdJ("click",function(){F.CHM(He);const Ze=F.oxw();return F.KtG(Ze.navigateToDisclaimer())}),F.SDv(12,19),F.qZA(),F._UZ(13,"icon",20),F.qZA()(),F.YNc(14,Je,2,1,"div",21),F.qZA()}if(2&St){const He=F.oxw();F.Q6J("formGroup",He.AccountForm),F.xp6(4),F.Q6J("ngIf",!He.adminMode),F.xp6(1),F.Q6J("ngIf",He.adminMode),F.xp6(3),F.Q6J("ngModel",He.disclaimerAccepted)("ngModelOptions",F.DdM(8,Y))("disabled",He.adminMode),F.xp6(2),F.hij("",He.checkBxLabelText," "),F.xp6(4),F.Q6J("ngIf",He.recaptchaLoaded&&(null==He.RecaptchaInfo?null:He.RecaptchaInfo.IsCaptchaEnabledForRegistration))}}const Xt=h.Bz.forChild([{path:"new",component:(()=>{class St{store;pageLayoutService;router;formBuilder;settingService;localizationService;messageService;navigationService;renderer;customScriptService;receieveSMS;AccountForm;controlModelMap;simpleViewElements;module="";viewId=N.fA.UserRegistration;RecaptchaInfo;SectionKey="Sign Up";recaptchaLoaded=!1;recaptchaVerified=!1;disclaimerAccepted=!1;Account;adminMode;checkBxLabelText="I agree to the";currentStep=1;maxStep=2;defaultphonerequired=!1;stepLogicLoaded=!1;licRequired=!1;securityQuestionsQuantity;securityQuestionsRequired=!1;blockChars=/^[^<>()'"{};:/\\~#]+$/;destroyActions=new Q.x;constructor(He,ht,Ze,Kt,Hn,ei,ai,xn,ni,Oi){this.store=He,this.pageLayoutService=ht,this.router=Ze,this.formBuilder=Kt,this.settingService=Hn,this.localizationService=ei,this.messageService=ai,this.navigationService=xn,this.renderer=ni,this.customScriptService=Oi,this.AccountForm=this.formBuilder.group({})}ngOnInit(){this.createRegistrationControlMap(),this.store.select(s.e).pipe((0,T.R)(this.destroyActions)).subscribe({next:He=>{this.adminMode=He.AdminMode,He.licenseRequiredForRegistration&&(this.currentStep+=1,this.maxStep+=1),this.settingService.isEnableCustomizationPerPage().pipe((0,T.R)(this.destroyActions)).subscribe(ht=>{ht&&this.customScriptService.loadAndRunCustomScriptBlock(this.renderer,document,"account_new")}),this.licRequired=He.licenseRequiredForRegistration,this.stepLogicLoaded=!0,this.AccountForm=this.formBuilder.group({}),this.adminMode||this.store.select(V).pipe((0,T.R)(this.destroyActions)).subscribe(ht=>{if(Object.hasOwnProperty.call(ht,"PublicUserAccount")){const Ze=JSON.parse(JSON.stringify(ht.PublicUserAccount));this.Account=Ze}else this.Account=new Ue;this.settingService.getLoginSettings().pipe((0,T.R)(this.destroyActions)).subscribe(Ze=>{this.securityQuestionsQuantity=Ze.CompulsoryQuantity,this.securityQuestionsRequired=Ze.Enable,this.addForm()})})}}),this.settingService.getRecaptchaSettings().pipe((0,T.R)(this.destroyActions)).subscribe(He=>{this.RecaptchaInfo=He},He=>{this.messageService.add({severity:"error",summary:He,closable:!1})}),this.localizationService.getLabelByKey("acc_registerStart_label_enterAccountInfo").pipe((0,T.R)(this.destroyActions)).subscribe(He=>{this.SectionKey=He}),this.localizationService.getLabelByKey("acc_regHome_label_acceptTerms").pipe((0,T.R)(this.destroyActions)).subscribe(He=>{this.checkBxLabelText=He}),this.renderReCaptcha(this)}addForm(){this.pageLayoutService.getDynamicFormData(this.viewId,this.module,N.U.UserRegistration,"","anonymous").pipe((0,T.R)(this.destroyActions)).subscribe(He=>{if(this.simpleViewElements=He,this.securityQuestionsRequired&&this.securityQuestionsQuantity>1){const Ze=this.simpleViewElements.find(xn=>"ddlQuestion"===xn.name),Kt=this.simpleViewElements.find(xn=>"txbAnswer"===xn.name),Hn=this.simpleViewElements.findIndex(xn=>"txbAnswer"===xn.name);for(var ht=this.securityQuestionsQuantity;ht>=1;ht--){const xn=Object.assign({},Ze),ni=Object.assign({},Kt);ni.name=ni.name+ht.toString(),ni.label=ni.label+" "+ht.toString(),this.simpleViewElements.splice(Hn,0,ni),xn.name=xn.name+ht.toString(),xn.label=xn.label+" "+ht.toString(),this.simpleViewElements.splice(Hn,0,xn)}const ei=this.simpleViewElements.findIndex(xn=>"ddlQuestion"===xn.name);this.simpleViewElements.splice(ei,1);const ai=this.simpleViewElements.findIndex(xn=>"txbAnswer"===xn.name);this.simpleViewElements.splice(ai,1)}this.simpleViewElements.forEach(Ze=>{if(Ze.display){const Kt=new i.p4(Ze.value);this.pageLayoutService.processAccelaControl(Ze,Kt),this.Account&&Kt.patchValue(this.Account[this.controlModelMap.get(Ze.name)]),this.AccountForm.addControl(Ze.name,Kt),"txbMobilePhone"===Ze.name&&Ze.required&&(this.defaultphonerequired=!0),"cbReceiveSMS"===Ze.name&&!0===Kt.value&&this.validateReqSMSCheckbox(!0)}}),this.AccountForm.setValidators(this.AccountForm.validator?[this.AccountForm.validator,Mn("txbPassword1","txbPassword2")]:[Mn("txbPassword1","txbPassword2")])},He=>{this.messageService.add({severity:"error",summary:He,closable:!1})})}createRegistrationControlMap(){this.controlModelMap=new Map,this.controlModelMap.set("txbUserName","Username"),this.controlModelMap.set("txbEmail","Email"),this.controlModelMap.set("txbPassword1","Password"),this.controlModelMap.set("txbPassword2","Password"),this.controlModelMap.set("ddlQuestion","SecurityQuestion"),this.controlModelMap.set("txbAnswer","SecurityAnswer"),this.controlModelMap.set("txbMobilePhone","PhoneNumber"),this.controlModelMap.set("cbReceiveSMS","PermissionToSendSMSMsgs")}renderReCaptcha(He){!this.RecaptchaInfo||this.RecaptchaInfo.IsCaptchaEnabledForLogin?this.RecaptchaInfo&&window.grecaptcha&&window.grecaptcha.render?this.recaptchaLoaded=!0:setTimeout(()=>{He.renderReCaptcha(He)},500):this.recaptchaLoaded=!0}getStepText(){return this.stepLogicLoaded?`Step ${this.currentStep} of ${this.maxStep}: Account Details`:""}updateRecaptchaStatus(He){this.recaptchaVerified=He,He&&document.getElementById("captcha").style.setProperty("border","none")}back(){this.adminMode||(this.licRequired?this.navigationService.navigateRoute("account/register-declare-license"):this.navigationService.navigateLegacyPage(this.navigationService.getHomePageUrl()))}submitRegistration(He){if(this.adminMode)return;if(this.AccountForm.markAllAsTouched(),this.AccountForm.markAsDirty(),this.AccountForm.updateValueAndValidity(),this.messageService.clear(),this.RecaptchaInfo.IsCaptchaEnabledForRegistration&&!this.recaptchaVerified)return this.messageService.clear(),document.getElementById("captcha").style.setProperty("border","1px solid red"),void this.messageService.add({severity:"error",summary:"Please fill out the Recaptcha properly before submitting again.",closable:!1});let ht=!0;for(const ei in this.AccountForm.controls){const ai=this.AccountForm.controls[ei];ai.validator&&ai.markAsDirty(),ai.errors&&Object.keys(ai.errors).length>0&&(ht=!1)}if(this.disclaimerAccepted||(ht=!1),!ht)return this.messageService.clear(),void this.messageService.add({severity:"error",summary:"Not all fields are filled out correctly. Please check again.",closable:!1});const Ze=new Ue;Ze.Username=He.txbUserName,Ze.Email=He.txbEmail,Ze.Password=He.txbPassword1,Ze.PhoneNumber=He.txbMobilePhone,Ze.PermissionToSendSMSMsgs=He.cbReceiveSMS,Ze.licenseLinks=this.Account.licenseLinks,Ze.Questions=new Array;for(var Kt=1;Kt<=this.securityQuestionsQuantity;Kt++){var Hn=new kn;1===this.securityQuestionsQuantity?(Hn.questionValueField=He.ddlQuestion,Hn.answerValueField=He.txbAnswer):(Hn.questionValueField=He["ddlQuestion"+Kt.toString()],Hn.answerValueField=He["txbAnswer"+Kt.toString()]),Hn.recFulNameField="ADMIN",Ze.Questions.push(Hn)}this.store.dispatch((0,ze.yl)({PublicUserAccount:Ze})),this.router.navigate(["account","register-contact-detail"])}validateReqSMSCheckbox(He){this.defaultphonerequired||(this.AccountForm.controls.txbMobilePhone.controlData.required=He)}navigateToDisclaimer(){this.adminMode||this.navigationService.navigateNewTab("AngularUI/CommunityView/account/register-termsofuse","newAdmin")}ngOnDestroy(){this.customScriptService.removeTrackedElements(),this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(ht){return new(ht||St)(F.Y36(Re.yh),F.Y36(De.p),F.Y36(h.F0),F.Y36(i.qu),F.Y36(de.R),F.Y36(Zt.o),F.Y36(Ce.ez),F.Y36(ue.f),F.Y36(F.Qsj),F.Y36(ye.X))};static \u0275cmp=F.Xpm({type:St,selectors:[["aca-register-screen"]],decls:14,vars:12,consts:function(){let He,ht,Ze;return He="Continue",ht="Back",Ze="Terms of Service ",[["styleClass","app-frame accela-theme","role","region","aria-labelledby","titleregion"],["id","titleregion",1,"col-12","ACA_TabRow"],[3,"contentKey","admin","viewId","module"],[1,"signup-stepcounter"],["fieldMatchValidator","","controlName","txbPassword1","matchingControlName","txbPassword2","class","cardContent",3,"formGroup","ngSubmit",4,"ngIf"],[1,"mt-4"],["label",He,"accessButton","3","pRipple","",3,"disabled","onClicked"],[1,"separator","mt-4","mb-4"],["label",ht,"accessButton","b","pRipple","",3,"disabled","click"],["type","submit","value","submit","accesskey","3",2,"visibility","hidden"],["fieldMatchValidator","","controlName","txbPassword1","matchingControlName","txbPassword2",1,"cardContent",3,"formGroup","ngSubmit"],[1,"required","ml-1"],["role","img","aria-label","*",1,"accelicons","accelicons-asterisk"],[3,"controlGroup","blockChars","onchkChange",4,"ngIf"],["class","p-d-flex p-flex-wrap","permissionLevel","USERREGISTRATION","permissionValue","",3,"module","viewId",4,"ngIf"],["id","div_cbDisclaimer",1,"checkboxInput"],["ariaLabel","cbDisclaimer","id","cbDisclaimer","binary","true","ariaLabelledBy","cbDisclaimerLabel","name","cbDisclaimer",3,"ngModel","ngModelOptions","disabled","ngModelChange"],["for","cbDisclaimer","id","cbDisclaimerLabel",1,"p-checkbox-label"],["target","newAdmin","rel","noopener noreferrer",1,"linktext","pointCursor",3,"click"],Ze,[1,"linktext","accelicons","accelicons-open-in"],["id","captcha","class","captcha mb-4 mt-4",4,"ngIf"],[3,"controlGroup","blockChars","onchkChange"],["permissionLevel","USERREGISTRATION","permissionValue","",1,"p-d-flex","p-flex-wrap",3,"module","viewId"],["id","captcha",1,"captcha","mb-4","mt-4"],[3,"RecaptchaPublicKey","verifyUser"]]},template:function(ht,Ze){1&ht&&(F.TgZ(0,"p-card",0)(1,"p-header")(2,"div",1),F._UZ(3,"section-title",2),F.TgZ(4,"h5",3)(5,"strong"),F._uU(6),F.qZA()(),F._UZ(7,"section-instructions",2),F.qZA()(),F.YNc(8,le,15,9,"form",4),F.TgZ(9,"div",5)(10,"accela-button-primary",6),F.NdJ("onClicked",function(){return Ze.submitRegistration(Ze.AccountForm.value)}),F.qZA(),F._UZ(11,"hr",7),F.TgZ(12,"accela-button-secondary",8),F.NdJ("click",function(){return Ze.back()}),F.qZA(),F._UZ(13,"input",9),F.qZA()()),2&ht&&(F.xp6(3),F.Q6J("contentKey","acc_accountInfoForm_label_loginInfo")("admin",Ze.adminMode)("viewId",Ze.viewId)("module",Ze.module),F.xp6(3),F.Oqu(Ze.getStepText()),F.xp6(1),F.Q6J("contentKey","acc_accountInfoForm_label_loginInfo|sub")("admin",Ze.adminMode)("viewId",Ze.viewId)("module",Ze.module),F.xp6(1),F.Q6J("ngIf",Ze.AccountForm),F.xp6(2),F.Q6J("disabled",!Ze.RecaptchaInfo||Ze.adminMode),F.xp6(2),F.Q6J("disabled",Ze.adminMode))},dependencies:[t.O5,i._Y,i.JJ,i.JL,i.On,i.sg,M.Z,Ce.h4,v.XZ,lt.s,Pt.o,P.N,Ve.b,rt.f,Et.D,Rn.w],styles:["[_nghost-%COMP%]     .textinput, [_nghost-%COMP%]     input, [_nghost-%COMP%]     .p-dropdown, [_nghost-%COMP%]     .p-calendar, [_nghost-%COMP%]     label, [_nghost-%COMP%]     .textarea{min-width:100%}[_nghost-%COMP%]     .p-card{max-width:500px;margin-left:auto!important;margin-right:auto;padding:1em 2.5em;gap:24px;box-shadow:0 2px 18px #52525241;border-radius:.5em}#titleregion[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{height:19px;font-family:Chivo;font-style:normal;font-weight:400;font-size:16px;line-height:19px;letter-spacing:.1em;text-transform:uppercase;color:#000;flex:none;order:1;align-self:stretch;flex-grow:0;margin-top:1.5em;margin-bottom:1.5em}h1[_ngcontent-%COMP%]{padding:1em}hr[_ngcontent-%COMP%]{border:1px solid #C6D2DB}.smsLabel[_ngcontent-%COMP%]{vertical-align:middle;font-weight:700}.textinput[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:.5em}[_nghost-%COMP%]     .accela-theme .p-dropdown .p-dropdown-trigger{right:3em}[_nghost-%COMP%]     .required{font-size:1rem;vertical-align:top;color:#bc2f46}[_nghost-%COMP%]     .linktext{color:#0074d9}[_nghost-%COMP%]     .textinput input.ng-pristine{color:#333}[_nghost-%COMP%]     .captcha{padding:0;max-width:19em}[_nghost-%COMP%]     .ACA_Button.p-button{width:100%}#cbDisclaimer[_ngcontent-%COMP%]{float:left;margin-bottom:.5em;margin-right:.5em}.pointCursor[_ngcontent-%COMP%]{cursor:pointer}label#cbDisclaimerLabel[_ngcontent-%COMP%]{margin-left:0}@media screen and (max-width: 375px){[_nghost-%COMP%]     .captcha{width:19em!important}[_nghost-%COMP%]     .p-card{padding:1em 1.25em}}\n/*# sourceMappingURL=register-screen.component.css.map*/"]})}return St})()},{path:"register-contact-detail",component:Ge},{path:"register-declare-license",component:gn},{path:"register-termsofuse",component:Un},{path:"",redirectTo:"new",pathMatch:"full"},{path:"**",redirectTo:"/404"}]);let Dn=(()=>{class St{static \u0275fac=function(ht){return new(ht||St)};static \u0275mod=F.oAB({type:St});static \u0275inj=F.cJS({imports:[t.ez,i.u5,i.UX,r.hJ,M.d,L.N,v.nD,y.S,u.Z_,_.j,p.y,C.gz,g.cc,f._,d.m,Xt]})}return St})()},6110:(qe,re,l)=>{"use strict";l.d(re,{s:()=>r});var t=l(2560),i=l(4497);let r=(()=>{class L{sanitized;constructor(v){this.sanitized=v}transform(v){return this.sanitized.bypassSecurityTrustHtml(v)}static \u0275fac=function(y){return new(y||L)(t.Y36(i.H7,16))};static \u0275pipe=t.Yjl({name:"trustHtml",type:L,pure:!0})}return L})()},2651:(qe,re,l)=>{"use strict";l.d(re,{U:()=>i,fA:()=>t});let t=(()=>class L{static RegisterLicense="1048";static AddressEdit="60001";static ParcelEdit="60002";static OwnerEdit="60003";static ContactEdit="60005";static AccountReferenceContactList="60145";static ContactList="60067";static ContactAddressList="60134";static ContactLookUp="60180";static ContactSelectFromAccountList="60178";static ContactSelectFromProfessionals="60195";static ContactAddressSearchList="60179";static RegistrationContactAddressForm="60143";static RegistrationContactForm="60140";static AddReferenceContactForm="60141";static ModifyReferenceContactForm="60142";static RegistrationContactAddressList="60144";static UserRegistration="60129";static ContactAddress="60135";static SearchByContact="60065"})(),i=(()=>class L{static UserRegistration="USERREGISTRATION";static PEOPLE="People";static APO="APO"})()},6745:(qe,re,l)=>{"use strict";l.d(re,{N:()=>i});var t=l(2560);let i=(()=>{class r{constructor(){}get nativeWindow(){return window}get apiUrl(){const M=window;return M.location.protocol+"//"+M.location.host+M.DATA.vdir}get vDir(){const M=window;return M?M.DATA.vdir:""}getApiUrl(M,v){let y=`${window.location.protocol}//${window.location.host}${window.DATA.vdir}${M}`;if(v){let u="";v.forEach(_=>{u+="&"+_.Key+"="+_.Value}),y+=u.replace("&","?")}return y}getCustomizationUrl(M){const v=window.DATA.vdir;return`${window.location.protocol}//${window.location.host}${v}Customization${v}${M}`}static \u0275fac=function(v){return new(v||r)};static \u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})()},8286:(qe,re,l)=>{"use strict";l.d(re,{q:()=>r});var t=l(6745),i=l(2560);let r=(()=>{class L extends t.N{static \u0275fac=function(){let v;return function(u){return(v||(v=i.n5z(L)))(u||L)}}();static \u0275prov=i.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},1650:(qe,re,l)=>{"use strict";l.d(re,{g:()=>i});class t{UserID;Module;ContactType;SessionParamterString;iframeID;isMultipleContact;isContactSaved}class i{sharedData;saveData(L){this.sharedData=L}getData(){return this.sharedData??new t}}},7155:(qe,re,l)=>{"use strict";l.d(re,{Pl:()=>M,kg:()=>i,n4:()=>r,s7:()=>v});var t=l(9263);const i=(0,t.PH)("[AppSettings] Load AppSettings",(0,t.Ky)()),r=(0,t.PH)("[AppSettings] Load AppSettings Success",(0,t.Ky)()),M=((0,t.PH)("[AppSettings] Load AppSettings Failure",(0,t.Ky)()),(0,t.PH)("[AppSettings] Add AppSettings",(0,t.Ky)())),v=(0,t.PH)("[AppSettings] Add AppSettings Success",(0,t.Ky)());(0,t.PH)("[AppSettings] Add AppSettings Failure",(0,t.Ky)())},9884:(qe,re,l)=>{"use strict";l.d(re,{u$:()=>i,yl:()=>M});var t=l(9263);const i=(0,t.PH)("[PublicUserAccount] Load PublicUserAccounts",(0,t.Ky)()),M=((0,t.PH)("[PublicUserAccount] Load PublicUserAccounts Success",(0,t.Ky)()),(0,t.PH)("[PublicUserAccount] Load PublicUserAccounts Failure",(0,t.Ky)()),(0,t.PH)("[PublicUserAccount] Add PublicUserAccounts",(0,t.Ky)()));(0,t.PH)("[PublicUserAccount] Add PublicUserAccounts Success",(0,t.Ky)()),(0,t.PH)("[PublicUserAccount] Add PublicUserAccounts Failure",(0,t.Ky)())},6382:(qe,re,l)=>{"use strict";l.d(re,{e:()=>t});const t=i=>i.AppSettings},276:(qe,re,l)=>{"use strict";l.d(re,{L:()=>t});const t=r=>null==r||"string"!=typeof r||null!==r.match(/^ *$/)},1741:(qe,re,l)=>{"use strict";l.d(re,{j:()=>C});var t=l(833),i=l(6936),r=l(9867),L=l(7885),v=l(2673),y=l(635),u=l(9134),_=l(276),p=l(2560);let C=(()=>{class g{accountService;constructor(d){this.accountService=d}validate(){return d=>{const h=d.value;if((0,_.L)(h))return null;let T;const b=d.parent;if(b){const W=b.controls.txbUserName;T=W?W.value:""}T=T??"PUBLICUSER0";const P={Name:T,Pwd:h};return function M(g=0,f,d=i.P){let h=-1;return null!=f&&((0,r.K)(f)?d=f:h=f),new t.y(T=>{let b=(0,L.q)(g)?+g-d.now():g;b<0&&(b=0);let P=0;return d.schedule(function(){T.closed||(T.next(P++),0<=h?this.schedule(void 0,h):T.complete())},b)})}(100).pipe((0,v.w)(W=>this.accountService.validatePasswordRequisites(P).pipe((0,y.U)(I=>I.errorCode>=100&&I.errorMessage?(d.setErrors({...d.errors,passwordReq:I.errorMessage}),{passwordReq:I.errorMessage}):(d.errors?.passwordReq&&d.setErrors(null),null)))))}}static \u0275fac=function(h){return new(h||g)(p.LFG(u.B))};static \u0275prov=p.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},263:(qe,re,l)=>{"use strict";var t=l(4497),i=l(2560),r=l(4851);function M(j){return new i.vHH(3e3,!1)}function Fe(){return typeof window<"u"&&typeof window.document<"u"}function lt(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Pt(j){switch(j.length){case 0:return new r.ZN;case 1:return j[0];default:return new r.ZE(j)}}function wt(j,w,S,B,J=new Map,ve=new Map){const ke=[],tt=[];let Ct=-1,It=null;if(B.forEach(dn=>{const bn=dn.get("offset"),ri=bn==Ct,ii=ri&&It||new Map;dn.forEach((Sn,Bn)=>{let Ti=Bn,$i=Sn;if("offset"!==Bn)switch(Ti=w.normalizePropertyName(Ti,ke),$i){case r.k1:$i=J.get(Bn);break;case r.l3:$i=ve.get(Bn);break;default:$i=w.normalizeStyleValue(Bn,Ti,$i,ke)}ii.set(Ti,$i)}),ri||tt.push(ii),It=ii,Ct=bn}),ke.length)throw function De(j){return new i.vHH(3502,!1)}();return tt}function Bt(j,w,S,B){switch(w){case"start":j.onStart(()=>B(S&&nn(S,"start",j)));break;case"done":j.onDone(()=>B(S&&nn(S,"done",j)));break;case"destroy":j.onDestroy(()=>B(S&&nn(S,"destroy",j)))}}function nn(j,w,S){const ve=xt(j.element,j.triggerName,j.fromState,j.toState,w||j.phaseName,S.totalTime??j.totalTime,!!S.disabled),ke=j._data;return null!=ke&&(ve._data=ke),ve}function xt(j,w,S,B,J="",ve=0,ke){return{element:j,triggerName:w,fromState:S,toState:B,phaseName:J,totalTime:ve,disabled:!!ke}}function sn(j,w,S){let B=j.get(w);return B||j.set(w,B=S),B}function ct(j){const w=j.indexOf(":");return[j.substring(1,w),j.slice(w+1)]}let Ve=(j,w)=>!1,rt=(j,w,S)=>[],Et=null;function Ft(j){const w=j.parentNode||j.host;return w===Et?null:w}(lt()||typeof Element<"u")&&(Fe()?(Et=(()=>document.documentElement)(),Ve=(j,w)=>{for(;w;){if(w===j)return!0;w=Ft(w)}return!1}):Ve=(j,w)=>j.contains(w),rt=(j,w,S)=>{if(S)return Array.from(j.querySelectorAll(w));const B=j.querySelector(w);return B?[B]:[]});let bt=null,Jt=!1;const Ln=Ve,dt=rt;let $=(()=>{class j{validateStyleProperty(S){return function en(j){bt||(bt=function En(){return typeof document<"u"?document.body:null}()||{},Jt=!!bt.style&&"WebkitAppearance"in bt.style);let w=!0;return bt.style&&!function un(j){return"ebkit"==j.substring(1,6)}(j)&&(w=j in bt.style,!w&&Jt&&(w="Webkit"+j.charAt(0).toUpperCase()+j.slice(1)in bt.style)),w}(S)}matchesElement(S,B){return!1}containsElement(S,B){return Ln(S,B)}getParentElement(S){return Ft(S)}query(S,B,J){return dt(S,B,J)}computeStyle(S,B,J){return J||""}animate(S,B,J,ve,ke,tt=[],Ct){return new r.ZN(J,ve)}}return j.\u0275fac=function(S){return new(S||j)},j.\u0275prov=i.Yz7({token:j,factory:j.\u0275fac}),j})(),pe=(()=>{class j{}return j.NOOP=new $,j})();const Ee=1e3,tn="ng-enter",on="ng-leave",Un="ng-trigger",vn=".ng-trigger",zt="ng-animating",Ht=".ng-animating";function pt(j){if("number"==typeof j)return j;const w=j.match(/^(-?[\.\d]+)(m?s)/);return!w||w.length<2?0:Dt(parseFloat(w[1]),w[2])}function Dt(j,w){return"s"===w?j*Ee:j}function ot(j,w,S){return j.hasOwnProperty("duration")?j:function Be(j,w,S){let J,ve=0,ke="";if("string"==typeof j){const tt=j.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===tt)return w.push(M()),{duration:0,delay:0,easing:""};J=Dt(parseFloat(tt[1]),tt[2]);const Ct=tt[3];null!=Ct&&(ve=Dt(parseFloat(Ct),tt[4]));const It=tt[5];It&&(ke=It)}else J=j;if(!S){let tt=!1,Ct=w.length;J<0&&(w.push(function v(){return new i.vHH(3100,!1)}()),tt=!0),ve<0&&(w.push(function y(){return new i.vHH(3101,!1)}()),tt=!0),tt&&w.splice(Ct,0,M())}return{duration:J,delay:ve,easing:ke}}(j,w,S)}function at(j,w={}){return Object.keys(j).forEach(S=>{w[S]=j[S]}),w}function Gt(j){const w=new Map;return Object.keys(j).forEach(S=>{w.set(S,j[S])}),w}function Mn(j,w=new Map,S){if(S)for(let[B,J]of S)w.set(B,J);for(let[B,J]of j)w.set(B,J);return w}function kn(j,w,S){return S?w+":"+S+";":""}function Rn(j){let w="";for(let S=0;S<j.style.length;S++){const B=j.style.item(S);w+=kn(0,B,j.style.getPropertyValue(B))}for(const S in j.style)j.style.hasOwnProperty(S)&&!S.startsWith("_")&&(w+=kn(0,Vn(S),j.style[S]));j.setAttribute("style",w)}function Fn(j,w,S){j.style&&(w.forEach((B,J)=>{const ve=St(J);S&&!S.has(J)&&S.set(J,j.style[ve]),j.style[ve]=B}),lt()&&Rn(j))}function ut(j,w){j.style&&(w.forEach((S,B)=>{const J=St(B);j.style[J]=""}),lt()&&Rn(j))}function Je(j){return Array.isArray(j)?1==j.length?j[0]:(0,r.vP)(j):j}const le=new RegExp("{{\\s*(.+?)\\s*}}","g");function Oe(j){let w=[];if("string"==typeof j){let S;for(;S=le.exec(j);)w.push(S[1]);le.lastIndex=0}return w}function nt(j,w,S){const B=j.toString(),J=B.replace(le,(ve,ke)=>{let tt=w[ke];return null==tt&&(S.push(function _(j){return new i.vHH(3003,!1)}()),tt=""),tt.toString()});return J==B?j:J}function Xt(j){const w=[];let S=j.next();for(;!S.done;)w.push(S.value),S=j.next();return w}const Dn=/-+([a-z0-9])/g;function St(j){return j.replace(Dn,(...w)=>w[1].toUpperCase())}function Vn(j){return j.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ze(j,w,S){switch(w.type){case 7:return j.visitTrigger(w,S);case 0:return j.visitState(w,S);case 1:return j.visitTransition(w,S);case 2:return j.visitSequence(w,S);case 3:return j.visitGroup(w,S);case 4:return j.visitAnimate(w,S);case 5:return j.visitKeyframes(w,S);case 6:return j.visitStyle(w,S);case 8:return j.visitReference(w,S);case 9:return j.visitAnimateChild(w,S);case 10:return j.visitAnimateRef(w,S);case 11:return j.visitQuery(w,S);case 12:return j.visitStagger(w,S);default:throw function p(j){return new i.vHH(3004,!1)}()}}function Kt(j,w){return window.getComputedStyle(j)[w]}const Ii="*";function yo(j,w){const S=[];return"string"==typeof j?j.split(/\s*,\s*/).forEach(B=>function ao(j,w,S){if(":"==j[0]){const Ct=function Fi(j,w){switch(j){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(S,B)=>parseFloat(B)>parseFloat(S);case":decrement":return(S,B)=>parseFloat(B)<parseFloat(S);default:return w.push(function V(j){return new i.vHH(3016,!1)}()),"* => *"}}(j,S);if("function"==typeof Ct)return void w.push(Ct);j=Ct}const B=j.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==B||B.length<4)return S.push(function s(j){return new i.vHH(3015,!1)}()),w;const J=B[1],ve=B[2],ke=B[3];w.push($n(J,ke));"<"==ve[0]&&!(J==Ii&&ke==Ii)&&w.push($n(ke,J))}(B,S,w)):S.push(j),S}const Di=new Set(["true","1"]),pn=new Set(["false","0"]);function $n(j,w){const S=Di.has(j)||pn.has(j),B=Di.has(w)||pn.has(w);return(J,ve)=>{let ke=j==Ii||j==J,tt=w==Ii||w==ve;return!ke&&S&&"boolean"==typeof J&&(ke=J?Di.has(j):pn.has(j)),!tt&&B&&"boolean"==typeof ve&&(tt=ve?Di.has(w):pn.has(w)),ke&&tt}}const no=new RegExp("s*:selfs*,?","g");function ro(j,w,S,B){return new zi(j).build(w,S,B)}class zi{constructor(w){this._driver=w}build(w,S,B){const J=new Mo(S);return this._resetContextStyleTimingState(J),Ze(this,Je(w),J)}_resetContextStyleTimingState(w){w.currentQuerySelector="",w.collectedStyles=new Map,w.collectedStyles.set("",new Map),w.currentTime=0}visitTrigger(w,S){let B=S.queryCount=0,J=S.depCount=0;const ve=[],ke=[];return"@"==w.name.charAt(0)&&S.errors.push(function g(){return new i.vHH(3006,!1)}()),w.definitions.forEach(tt=>{if(this._resetContextStyleTimingState(S),0==tt.type){const Ct=tt,It=Ct.name;It.toString().split(/\s*,\s*/).forEach(dn=>{Ct.name=dn,ve.push(this.visitState(Ct,S))}),Ct.name=It}else if(1==tt.type){const Ct=this.visitTransition(tt,S);B+=Ct.queryCount,J+=Ct.depCount,ke.push(Ct)}else S.errors.push(function f(){return new i.vHH(3007,!1)}())}),{type:7,name:w.name,states:ve,transitions:ke,queryCount:B,depCount:J,options:null}}visitState(w,S){const B=this.visitStyle(w.styles,S),J=w.options&&w.options.params||null;if(B.containsDynamicStyles){const ve=new Set,ke=J||{};B.styles.forEach(tt=>{tt instanceof Map&&tt.forEach(Ct=>{Oe(Ct).forEach(It=>{ke.hasOwnProperty(It)||ve.add(It)})})}),ve.size&&(Xt(ve.values()),S.errors.push(function d(j,w){return new i.vHH(3008,!1)}()))}return{type:0,name:w.name,style:B,options:J?{params:J}:null}}visitTransition(w,S){S.queryCount=0,S.depCount=0;const B=Ze(this,Je(w.animation),S);return{type:1,matchers:yo(w.expr,S.errors),animation:B,queryCount:S.queryCount,depCount:S.depCount,options:Si(w.options)}}visitSequence(w,S){return{type:2,steps:w.steps.map(B=>Ze(this,B,S)),options:Si(w.options)}}visitGroup(w,S){const B=S.currentTime;let J=0;const ve=w.steps.map(ke=>{S.currentTime=B;const tt=Ze(this,ke,S);return J=Math.max(J,S.currentTime),tt});return S.currentTime=J,{type:3,steps:ve,options:Si(w.options)}}visitAnimate(w,S){const B=function Ui(j,w){if(j.hasOwnProperty("duration"))return j;if("number"==typeof j)return Yn(ot(j,w).duration,0,"");const S=j;if(S.split(/\s+/).some(ve=>"{"==ve.charAt(0)&&"{"==ve.charAt(1))){const ve=Yn(0,0,"");return ve.dynamic=!0,ve.strValue=S,ve}const J=ot(S,w);return Yn(J.duration,J.delay,J.easing)}(w.timings,S.errors);S.currentAnimateTimings=B;let J,ve=w.styles?w.styles:(0,r.oB)({});if(5==ve.type)J=this.visitKeyframes(ve,S);else{let ke=w.styles,tt=!1;if(!ke){tt=!0;const It={};B.easing&&(It.easing=B.easing),ke=(0,r.oB)(It)}S.currentTime+=B.duration+B.delay;const Ct=this.visitStyle(ke,S);Ct.isEmptyStep=tt,J=Ct}return S.currentAnimateTimings=null,{type:4,timings:B,style:J,options:null}}visitStyle(w,S){const B=this._makeStyleAst(w,S);return this._validateStyleAst(B,S),B}_makeStyleAst(w,S){const B=[],J=Array.isArray(w.styles)?w.styles:[w.styles];for(let tt of J)"string"==typeof tt?tt===r.l3?B.push(tt):S.errors.push(new i.vHH(3002,!1)):B.push(Gt(tt));let ve=!1,ke=null;return B.forEach(tt=>{if(tt instanceof Map&&(tt.has("easing")&&(ke=tt.get("easing"),tt.delete("easing")),!ve))for(let Ct of tt.values())if(Ct.toString().indexOf("{{")>=0){ve=!0;break}}),{type:6,styles:B,easing:ke,offset:w.offset,containsDynamicStyles:ve,options:null}}_validateStyleAst(w,S){const B=S.currentAnimateTimings;let J=S.currentTime,ve=S.currentTime;B&&ve>0&&(ve-=B.duration+B.delay),w.styles.forEach(ke=>{"string"!=typeof ke&&ke.forEach((tt,Ct)=>{const It=S.collectedStyles.get(S.currentQuerySelector),dn=It.get(Ct);let bn=!0;dn&&(ve!=J&&ve>=dn.startTime&&J<=dn.endTime&&(S.errors.push(function b(j,w,S,B,J){return new i.vHH(3010,!1)}()),bn=!1),ve=dn.startTime),bn&&It.set(Ct,{startTime:ve,endTime:J}),S.options&&function Y(j,w,S){const B=w.params||{},J=Oe(j);J.length&&J.forEach(ve=>{B.hasOwnProperty(ve)||S.push(function u(j){return new i.vHH(3001,!1)}())})}(tt,S.options,S.errors)})})}visitKeyframes(w,S){const B={type:5,styles:[],options:null};if(!S.currentAnimateTimings)return S.errors.push(function P(){return new i.vHH(3011,!1)}()),B;let ve=0;const ke=[];let tt=!1,Ct=!1,It=0;const dn=w.steps.map($i=>{const Qi=this._makeStyleAst($i,S);let lr=null!=Qi.offset?Qi.offset:function Jn(j){if("string"==typeof j)return null;let w=null;if(Array.isArray(j))j.forEach(S=>{if(S instanceof Map&&S.has("offset")){const B=S;w=parseFloat(B.get("offset")),B.delete("offset")}});else if(j instanceof Map&&j.has("offset")){const S=j;w=parseFloat(S.get("offset")),S.delete("offset")}return w}(Qi.styles),jo=0;return null!=lr&&(ve++,jo=Qi.offset=lr),Ct=Ct||jo<0||jo>1,tt=tt||jo<It,It=jo,ke.push(jo),Qi});Ct&&S.errors.push(function W(){return new i.vHH(3012,!1)}()),tt&&S.errors.push(function I(){return new i.vHH(3200,!1)}());const bn=w.steps.length;let ri=0;ve>0&&ve<bn?S.errors.push(function k(){return new i.vHH(3202,!1)}()):0==ve&&(ri=1/(bn-1));const ii=bn-1,Sn=S.currentTime,Bn=S.currentAnimateTimings,Ti=Bn.duration;return dn.forEach(($i,Qi)=>{const lr=ri>0?Qi==ii?1:ri*Qi:ke[Qi],jo=lr*Ti;S.currentTime=Sn+Bn.delay+jo,Bn.duration=jo,this._validateStyleAst($i,S),$i.offset=lr,B.styles.push($i)}),B}visitReference(w,S){return{type:8,animation:Ze(this,Je(w.animation),S),options:Si(w.options)}}visitAnimateChild(w,S){return S.depCount++,{type:9,options:Si(w.options)}}visitAnimateRef(w,S){return{type:10,animation:this.visitReference(w.animation,S),options:Si(w.options)}}visitQuery(w,S){const B=S.currentQuerySelector,J=w.options||{};S.queryCount++,S.currentQuery=w;const[ve,ke]=function Pn(j){const w=!!j.split(/\s*,\s*/).find(S=>":self"==S);return w&&(j=j.replace(no,"")),j=j.replace(/@\*/g,vn).replace(/@\w+/g,S=>vn+"-"+S.slice(1)).replace(/:animating/g,Ht),[j,w]}(w.selector);S.currentQuerySelector=B.length?B+" "+ve:ve,sn(S.collectedStyles,S.currentQuerySelector,new Map);const tt=Ze(this,Je(w.animation),S);return S.currentQuery=null,S.currentQuerySelector=B,{type:11,selector:ve,limit:J.limit||0,optional:!!J.optional,includeSelf:ke,animation:tt,originalSelector:w.selector,options:Si(w.options)}}visitStagger(w,S){S.currentQuery||S.errors.push(function D(){return new i.vHH(3013,!1)}());const B="full"===w.timings?{duration:0,delay:0,easing:"full"}:ot(w.timings,S.errors,!0);return{type:12,animation:Ze(this,Je(w.animation),S),timings:B,options:null}}}class Mo{constructor(w){this.errors=w,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Si(j){return j?(j=at(j)).params&&(j.params=function lo(j){return j?at(j):null}(j.params)):j={},j}function Yn(j,w,S){return{duration:j,delay:w,easing:S}}function Yi(j,w,S,B,J,ve,ke=null,tt=!1){return{type:1,element:j,keyframes:w,preStyleProps:S,postStyleProps:B,duration:J,delay:ve,totalTime:J+ve,easing:ke,subTimeline:tt}}class li{constructor(){this._map=new Map}get(w){return this._map.get(w)||[]}append(w,S){let B=this._map.get(w);B||this._map.set(w,B=[]),B.push(...S)}has(w){return this._map.has(w)}clear(){this._map.clear()}}const Tt=new RegExp(":enter","g"),Nt=new RegExp(":leave","g");function Qt(j,w,S,B,J,ve=new Map,ke=new Map,tt,Ct,It=[]){return(new cn).buildKeyframes(j,w,S,B,J,ve,ke,tt,Ct,It)}class cn{buildKeyframes(w,S,B,J,ve,ke,tt,Ct,It,dn=[]){It=It||new li;const bn=new di(w,S,It,J,ve,dn,[]);bn.options=Ct;const ri=Ct.delay?pt(Ct.delay):0;bn.currentTimeline.delayNextStep(ri),bn.currentTimeline.setStyles([ke],null,bn.errors,Ct),Ze(this,B,bn);const ii=bn.timelines.filter(Sn=>Sn.containsAnimation());if(ii.length&&tt.size){let Sn;for(let Bn=ii.length-1;Bn>=0;Bn--){const Ti=ii[Bn];if(Ti.element===S){Sn=Ti;break}}Sn&&!Sn.allowOnlyTimelineStyles()&&Sn.setStyles([tt],null,bn.errors,Ct)}return ii.length?ii.map(Sn=>Sn.buildKeyframes()):[Yi(S,[],[],[],0,ri,"",!1)]}visitTrigger(w,S){}visitState(w,S){}visitTransition(w,S){}visitAnimateChild(w,S){const B=S.subInstructions.get(S.element);if(B){const J=S.createSubContext(w.options),ve=S.currentTimeline.currentTime,ke=this._visitSubInstructions(B,J,J.options);ve!=ke&&S.transformIntoNewTimeline(ke)}S.previousNode=w}visitAnimateRef(w,S){const B=S.createSubContext(w.options);B.transformIntoNewTimeline(),this._applyAnimationRefDelays([w.options,w.animation.options],S,B),this.visitReference(w.animation,B),S.transformIntoNewTimeline(B.currentTimeline.currentTime),S.previousNode=w}_applyAnimationRefDelays(w,S,B){for(const J of w){const ve=J?.delay;if(ve){const ke="number"==typeof ve?ve:pt(nt(ve,J?.params??{},S.errors));B.delayNextStep(ke)}}}_visitSubInstructions(w,S,B){let ve=S.currentTimeline.currentTime;const ke=null!=B.duration?pt(B.duration):null,tt=null!=B.delay?pt(B.delay):null;return 0!==ke&&w.forEach(Ct=>{const It=S.appendInstructionToTimeline(Ct,ke,tt);ve=Math.max(ve,It.duration+It.delay)}),ve}visitReference(w,S){S.updateOptions(w.options,!0),Ze(this,w.animation,S),S.previousNode=w}visitSequence(w,S){const B=S.subContextCount;let J=S;const ve=w.options;if(ve&&(ve.params||ve.delay)&&(J=S.createSubContext(ve),J.transformIntoNewTimeline(),null!=ve.delay)){6==J.previousNode.type&&(J.currentTimeline.snapshotCurrentStyles(),J.previousNode=Qn);const ke=pt(ve.delay);J.delayNextStep(ke)}w.steps.length&&(w.steps.forEach(ke=>Ze(this,ke,J)),J.currentTimeline.applyStylesToKeyframe(),J.subContextCount>B&&J.transformIntoNewTimeline()),S.previousNode=w}visitGroup(w,S){const B=[];let J=S.currentTimeline.currentTime;const ve=w.options&&w.options.delay?pt(w.options.delay):0;w.steps.forEach(ke=>{const tt=S.createSubContext(w.options);ve&&tt.delayNextStep(ve),Ze(this,ke,tt),J=Math.max(J,tt.currentTimeline.currentTime),B.push(tt.currentTimeline)}),B.forEach(ke=>S.currentTimeline.mergeTimelineCollectedStyles(ke)),S.transformIntoNewTimeline(J),S.previousNode=w}_visitTiming(w,S){if(w.dynamic){const B=w.strValue;return ot(S.params?nt(B,S.params,S.errors):B,S.errors)}return{duration:w.duration,delay:w.delay,easing:w.easing}}visitAnimate(w,S){const B=S.currentAnimateTimings=this._visitTiming(w.timings,S),J=S.currentTimeline;B.delay&&(S.incrementTime(B.delay),J.snapshotCurrentStyles());const ve=w.style;5==ve.type?this.visitKeyframes(ve,S):(S.incrementTime(B.duration),this.visitStyle(ve,S),J.applyStylesToKeyframe()),S.currentAnimateTimings=null,S.previousNode=w}visitStyle(w,S){const B=S.currentTimeline,J=S.currentAnimateTimings;!J&&B.hasCurrentStyleProperties()&&B.forwardFrame();const ve=J&&J.easing||w.easing;w.isEmptyStep?B.applyEmptyStep(ve):B.setStyles(w.styles,ve,S.errors,S.options),S.previousNode=w}visitKeyframes(w,S){const B=S.currentAnimateTimings,J=S.currentTimeline.duration,ve=B.duration,tt=S.createSubContext().currentTimeline;tt.easing=B.easing,w.styles.forEach(Ct=>{tt.forwardTime((Ct.offset||0)*ve),tt.setStyles(Ct.styles,Ct.easing,S.errors,S.options),tt.applyStylesToKeyframe()}),S.currentTimeline.mergeTimelineCollectedStyles(tt),S.transformIntoNewTimeline(J+ve),S.previousNode=w}visitQuery(w,S){const B=S.currentTimeline.currentTime,J=w.options||{},ve=J.delay?pt(J.delay):0;ve&&(6===S.previousNode.type||0==B&&S.currentTimeline.hasCurrentStyleProperties())&&(S.currentTimeline.snapshotCurrentStyles(),S.previousNode=Qn);let ke=B;const tt=S.invokeQuery(w.selector,w.originalSelector,w.limit,w.includeSelf,!!J.optional,S.errors);S.currentQueryTotal=tt.length;let Ct=null;tt.forEach((It,dn)=>{S.currentQueryIndex=dn;const bn=S.createSubContext(w.options,It);ve&&bn.delayNextStep(ve),It===S.element&&(Ct=bn.currentTimeline),Ze(this,w.animation,bn),bn.currentTimeline.applyStylesToKeyframe(),ke=Math.max(ke,bn.currentTimeline.currentTime)}),S.currentQueryIndex=0,S.currentQueryTotal=0,S.transformIntoNewTimeline(ke),Ct&&(S.currentTimeline.mergeTimelineCollectedStyles(Ct),S.currentTimeline.snapshotCurrentStyles()),S.previousNode=w}visitStagger(w,S){const B=S.parentContext,J=S.currentTimeline,ve=w.timings,ke=Math.abs(ve.duration),tt=ke*(S.currentQueryTotal-1);let Ct=ke*S.currentQueryIndex;switch(ve.duration<0?"reverse":ve.easing){case"reverse":Ct=tt-Ct;break;case"full":Ct=B.currentStaggerTime}const dn=S.currentTimeline;Ct&&dn.delayNextStep(Ct);const bn=dn.currentTime;Ze(this,w.animation,S),S.previousNode=w,B.currentStaggerTime=J.currentTime-bn+(J.startTime-B.currentTimeline.startTime)}}const Qn={};class di{constructor(w,S,B,J,ve,ke,tt,Ct){this._driver=w,this.element=S,this.subInstructions=B,this._enterClassName=J,this._leaveClassName=ve,this.errors=ke,this.timelines=tt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ct||new yi(this._driver,S,0),tt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(w,S){if(!w)return;const B=w;let J=this.options;null!=B.duration&&(J.duration=pt(B.duration)),null!=B.delay&&(J.delay=pt(B.delay));const ve=B.params;if(ve){let ke=J.params;ke||(ke=this.options.params={}),Object.keys(ve).forEach(tt=>{(!S||!ke.hasOwnProperty(tt))&&(ke[tt]=nt(ve[tt],ke,this.errors))})}}_copyOptions(){const w={};if(this.options){const S=this.options.params;if(S){const B=w.params={};Object.keys(S).forEach(J=>{B[J]=S[J]})}}return w}createSubContext(w=null,S,B){const J=S||this.element,ve=new di(this._driver,J,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(J,B||0));return ve.previousNode=this.previousNode,ve.currentAnimateTimings=this.currentAnimateTimings,ve.options=this._copyOptions(),ve.updateOptions(w),ve.currentQueryIndex=this.currentQueryIndex,ve.currentQueryTotal=this.currentQueryTotal,ve.parentContext=this,this.subContextCount++,ve}transformIntoNewTimeline(w){return this.previousNode=Qn,this.currentTimeline=this.currentTimeline.fork(this.element,w),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(w,S,B){const J={duration:S??w.duration,delay:this.currentTimeline.currentTime+(B??0)+w.delay,easing:""},ve=new qi(this._driver,w.element,w.keyframes,w.preStyleProps,w.postStyleProps,J,w.stretchStartingKeyframe);return this.timelines.push(ve),J}incrementTime(w){this.currentTimeline.forwardTime(this.currentTimeline.duration+w)}delayNextStep(w){w>0&&this.currentTimeline.delayNextStep(w)}invokeQuery(w,S,B,J,ve,ke){let tt=[];if(J&&tt.push(this.element),w.length>0){w=(w=w.replace(Tt,"."+this._enterClassName)).replace(Nt,"."+this._leaveClassName);let It=this._driver.query(this.element,w,1!=B);0!==B&&(It=B<0?It.slice(It.length+B,It.length):It.slice(0,B)),tt.push(...It)}return!ve&&0==tt.length&&ke.push(function N(j){return new i.vHH(3014,!1)}()),tt}}class yi{constructor(w,S,B,J){this._driver=w,this.element=S,this.startTime=B,this._elementTimelineStylesLookup=J,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(S),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(S,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(w){const S=1===this._keyframes.size&&this._pendingStyles.size;this.duration||S?(this.forwardTime(this.currentTime+w),S&&this.snapshotCurrentStyles()):this.startTime+=w}fork(w,S){return this.applyStylesToKeyframe(),new yi(this._driver,w,S||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(w){this.applyStylesToKeyframe(),this.duration=w,this._loadKeyframe()}_updateStyle(w,S){this._localTimelineStyles.set(w,S),this._globalTimelineStyles.set(w,S),this._styleSummary.set(w,{time:this.currentTime,value:S})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(w){w&&this._previousKeyframe.set("easing",w);for(let[S,B]of this._globalTimelineStyles)this._backFill.set(S,B||r.l3),this._currentKeyframe.set(S,r.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(w,S,B,J){S&&this._previousKeyframe.set("easing",S);const ve=J&&J.params||{},ke=function wi(j,w){const S=new Map;let B;return j.forEach(J=>{if("*"===J){B=B||w.keys();for(let ve of B)S.set(ve,r.l3)}else Mn(J,S)}),S}(w,this._globalTimelineStyles);for(let[tt,Ct]of ke){const It=nt(Ct,ve,B);this._pendingStyles.set(tt,It),this._localTimelineStyles.has(tt)||this._backFill.set(tt,this._globalTimelineStyles.get(tt)??r.l3),this._updateStyle(tt,It)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((w,S)=>{this._currentKeyframe.set(S,w)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((w,S)=>{this._currentKeyframe.has(S)||this._currentKeyframe.set(S,w)}))}snapshotCurrentStyles(){for(let[w,S]of this._localTimelineStyles)this._pendingStyles.set(w,S),this._updateStyle(w,S)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const w=[];for(let S in this._currentKeyframe)w.push(S);return w}mergeTimelineCollectedStyles(w){w._styleSummary.forEach((S,B)=>{const J=this._styleSummary.get(B);(!J||S.time>J.time)&&this._updateStyle(B,S.value)})}buildKeyframes(){this.applyStylesToKeyframe();const w=new Set,S=new Set,B=1===this._keyframes.size&&0===this.duration;let J=[];this._keyframes.forEach((tt,Ct)=>{const It=Mn(tt,new Map,this._backFill);It.forEach((dn,bn)=>{dn===r.k1?w.add(bn):dn===r.l3&&S.add(bn)}),B||It.set("offset",Ct/this.duration),J.push(It)});const ve=w.size?Xt(w.values()):[],ke=S.size?Xt(S.values()):[];if(B){const tt=J[0],Ct=new Map(tt);tt.set("offset",0),Ct.set("offset",1),J=[tt,Ct]}return Yi(this.element,J,ve,ke,this.duration,this.startTime,this.easing,!1)}}class qi extends yi{constructor(w,S,B,J,ve,ke,tt=!1){super(w,S,ke.delay),this.keyframes=B,this.preStyleProps=J,this.postStyleProps=ve,this._stretchStartingKeyframe=tt,this.timings={duration:ke.duration,delay:ke.delay,easing:ke.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let w=this.keyframes,{delay:S,duration:B,easing:J}=this.timings;if(this._stretchStartingKeyframe&&S){const ve=[],ke=B+S,tt=S/ke,Ct=Mn(w[0]);Ct.set("offset",0),ve.push(Ct);const It=Mn(w[0]);It.set("offset",oi(tt)),ve.push(It);const dn=w.length-1;for(let bn=1;bn<=dn;bn++){let ri=Mn(w[bn]);const ii=ri.get("offset");ri.set("offset",oi((S+ii*B)/ke)),ve.push(ri)}B=ke,S=0,J="",w=ve}return Yi(this.element,w,this.preStyleProps,this.postStyleProps,B,S,J,!0)}}function oi(j,w=3){const S=Math.pow(10,w-1);return Math.round(j*S)/S}class Hi{}const Bo=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Vo extends Hi{normalizePropertyName(w,S){return St(w)}normalizeStyleValue(w,S,B,J){let ve="";const ke=B.toString().trim();if(Bo.has(S)&&0!==B&&"0"!==B)if("number"==typeof B)ve="px";else{const tt=B.match(/^[+-]?[\d\.]+([a-z]*)$/);tt&&0==tt[1].length&&J.push(function C(j,w){return new i.vHH(3005,!1)}())}return ke+ve}}function Yo(j,w,S,B,J,ve,ke,tt,Ct,It,dn,bn,ri){return{type:0,element:j,triggerName:w,isRemovalTransition:J,fromState:S,fromStyles:ve,toState:B,toStyles:ke,timelines:tt,queriedElements:Ct,preStyleProps:It,postStyleProps:dn,totalTime:bn,errors:ri}}const io={};class ho{constructor(w,S,B){this._triggerName=w,this.ast=S,this._stateStyles=B}match(w,S,B,J){return function qo(j,w,S,B,J){return j.some(ve=>ve(w,S,B,J))}(this.ast.matchers,w,S,B,J)}buildStyles(w,S,B){let J=this._stateStyles.get("*");return void 0!==w&&(J=this._stateStyles.get(w?.toString())||J),J?J.buildStyles(S,B):new Map}build(w,S,B,J,ve,ke,tt,Ct,It,dn){const bn=[],ri=this.ast.options&&this.ast.options.params||io,Sn=this.buildStyles(B,tt&&tt.params||io,bn),Bn=Ct&&Ct.params||io,Ti=this.buildStyles(J,Bn,bn),$i=new Set,Qi=new Map,lr=new Map,jo="void"===J,rs={params:nr(Bn,ri),delay:this.ast.options?.delay},Tr=dn?[]:Qt(w,S,this.ast.animation,ve,ke,Sn,Ti,rs,It,bn);let tr=0;if(Tr.forEach(Ir=>{tr=Math.max(Ir.duration+Ir.delay,tr)}),bn.length)return Yo(S,this._triggerName,B,J,jo,Sn,Ti,[],[],Qi,lr,tr,bn);Tr.forEach(Ir=>{const Vr=Ir.element,$l=sn(Qi,Vr,new Set);Ir.preStyleProps.forEach(xs=>$l.add(xs));const ws=sn(lr,Vr,new Set);Ir.postStyleProps.forEach(xs=>ws.add(xs)),Vr!==S&&$i.add(Vr)});const hr=Xt($i.values());return Yo(S,this._triggerName,B,J,jo,Sn,Ti,Tr,hr,Qi,lr,tr)}}function nr(j,w){const S=at(w);for(const B in j)j.hasOwnProperty(B)&&null!=j[B]&&(S[B]=j[B]);return S}class Ye{constructor(w,S,B){this.styles=w,this.defaultParams=S,this.normalizer=B}buildStyles(w,S){const B=new Map,J=at(this.defaultParams);return Object.keys(w).forEach(ve=>{const ke=w[ve];null!==ke&&(J[ve]=ke)}),this.styles.styles.forEach(ve=>{"string"!=typeof ve&&ve.forEach((ke,tt)=>{ke&&(ke=nt(ke,J,S));const Ct=this.normalizer.normalizePropertyName(tt,S);ke=this.normalizer.normalizeStyleValue(tt,Ct,ke,S),B.set(tt,ke)})}),B}}class Se{constructor(w,S,B){this.name=w,this.ast=S,this._normalizer=B,this.transitionFactories=[],this.states=new Map,S.states.forEach(J=>{this.states.set(J.name,new Ye(J.style,J.options&&J.options.params||{},B))}),Pe(this.states,"true","1"),Pe(this.states,"false","0"),S.transitions.forEach(J=>{this.transitionFactories.push(new ho(w,J,this.states))}),this.fallbackTransition=function Me(j,w,S){return new ho(j,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ke,tt)=>!0],options:null,queryCount:0,depCount:0},w)}(w,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(w,S,B,J){return this.transitionFactories.find(ke=>ke.match(w,S,B,J))||null}matchStyles(w,S,B){return this.fallbackTransition.buildStyles(w,S,B)}}function Pe(j,w,S){j.has(w)?j.has(S)||j.set(S,j.get(w)):j.has(S)&&j.set(w,j.get(S))}const $e=new li;class ft{constructor(w,S,B){this.bodyNode=w,this._driver=S,this._normalizer=B,this._animations=new Map,this._playersById=new Map,this.players=[]}register(w,S){const B=[],J=[],ve=ro(this._driver,S,B,J);if(B.length)throw function Ue(j){return new i.vHH(3503,!1)}();this._animations.set(w,ve)}_buildPlayer(w,S,B){const J=w.element,ve=wt(0,this._normalizer,0,w.keyframes,S,B);return this._driver.animate(J,ve,w.duration,w.delay,w.easing,[],!0)}create(w,S,B={}){const J=[],ve=this._animations.get(w);let ke;const tt=new Map;if(ve?(ke=Qt(this._driver,S,ve,tn,on,new Map,new Map,B,$e,J),ke.forEach(dn=>{const bn=sn(tt,dn.element,new Map);dn.postStyleProps.forEach(ri=>bn.set(ri,null))})):(J.push(function Xe(){return new i.vHH(3300,!1)}()),ke=[]),J.length)throw function st(j){return new i.vHH(3504,!1)}();tt.forEach((dn,bn)=>{dn.forEach((ri,ii)=>{dn.set(ii,this._driver.computeStyle(bn,ii,r.l3))})});const It=Pt(ke.map(dn=>{const bn=tt.get(dn.element);return this._buildPlayer(dn,new Map,bn)}));return this._playersById.set(w,It),It.onDestroy(()=>this.destroy(w)),this.players.push(It),It}destroy(w){const S=this._getPlayer(w);S.destroy(),this._playersById.delete(w);const B=this.players.indexOf(S);B>=0&&this.players.splice(B,1)}_getPlayer(w){const S=this._playersById.get(w);if(!S)throw function ze(j){return new i.vHH(3301,!1)}();return S}listen(w,S,B,J){const ve=xt(S,"","","");return Bt(this._getPlayer(w),B,ve,J),()=>{}}command(w,S,B,J){if("register"==B)return void this.register(w,J[0]);if("create"==B)return void this.create(w,S,J[0]||{});const ve=this._getPlayer(w);switch(B){case"play":ve.play();break;case"pause":ve.pause();break;case"reset":ve.reset();break;case"restart":ve.restart();break;case"finish":ve.finish();break;case"init":ve.init();break;case"setPosition":ve.setPosition(parseFloat(J[0]));break;case"destroy":this.destroy(w)}}}const At="ng-animate-queued",rn="ng-animate-disabled",Zn=[],jn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ti={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},On="__ng_removed";class qn{get params(){return this.options.params}constructor(w,S=""){this.namespaceId=S;const B=w&&w.hasOwnProperty("value");if(this.value=function A(j){return j??null}(B?w.value:w),B){const ve=at(w);delete ve.value,this.options=ve}else this.options={};this.options.params||(this.options.params={})}absorbOptions(w){const S=w.params;if(S){const B=this.options.params;Object.keys(S).forEach(J=>{null==B[J]&&(B[J]=S[J])})}}}const Ai="void",fi=new qn(Ai);class Ki{constructor(w,S,B){this.id=w,this.hostElement=S,this._engine=B,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+w,An(S,this._hostClassName)}listen(w,S,B,J){if(!this._triggers.has(S))throw function F(j,w){return new i.vHH(3302,!1)}();if(null==B||0==B.length)throw function Re(j){return new i.vHH(3303,!1)}();if(!function _e(j){return"start"==j||"done"==j}(B))throw function de(j,w){return new i.vHH(3400,!1)}();const ve=sn(this._elementListeners,w,[]),ke={name:S,phase:B,callback:J};ve.push(ke);const tt=sn(this._engine.statesByElement,w,new Map);return tt.has(S)||(An(w,Un),An(w,Un+"-"+S),tt.set(S,fi)),()=>{this._engine.afterFlush(()=>{const Ct=ve.indexOf(ke);Ct>=0&&ve.splice(Ct,1),this._triggers.has(S)||tt.delete(S)})}}register(w,S){return!this._triggers.has(w)&&(this._triggers.set(w,S),!0)}_getTrigger(w){const S=this._triggers.get(w);if(!S)throw function Ce(j){return new i.vHH(3401,!1)}();return S}trigger(w,S,B,J=!0){const ve=this._getTrigger(S),ke=new ae(this.id,S,w);let tt=this._engine.statesByElement.get(w);tt||(An(w,Un),An(w,Un+"-"+S),this._engine.statesByElement.set(w,tt=new Map));let Ct=tt.get(S);const It=new qn(B,this.id);if(!(B&&B.hasOwnProperty("value"))&&Ct&&It.absorbOptions(Ct.options),tt.set(S,It),Ct||(Ct=fi),It.value!==Ai&&Ct.value===It.value){if(!function Ho(j,w){const S=Object.keys(j),B=Object.keys(w);if(S.length!=B.length)return!1;for(let J=0;J<S.length;J++){const ve=S[J];if(!w.hasOwnProperty(ve)||j[ve]!==w[ve])return!1}return!0}(Ct.params,It.params)){const Bn=[],Ti=ve.matchStyles(Ct.value,Ct.params,Bn),$i=ve.matchStyles(It.value,It.params,Bn);Bn.length?this._engine.reportError(Bn):this._engine.afterFlush(()=>{ut(w,Ti),Fn(w,$i)})}return}const ri=sn(this._engine.playersByElement,w,[]);ri.forEach(Bn=>{Bn.namespaceId==this.id&&Bn.triggerName==S&&Bn.queued&&Bn.destroy()});let ii=ve.matchTransition(Ct.value,It.value,w,It.params),Sn=!1;if(!ii){if(!J)return;ii=ve.fallbackTransition,Sn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:w,triggerName:S,transition:ii,fromState:Ct,toState:It,player:ke,isFallbackTransition:Sn}),Sn||(An(w,At),ke.onStart(()=>{mi(w,At)})),ke.onDone(()=>{let Bn=this.players.indexOf(ke);Bn>=0&&this.players.splice(Bn,1);const Ti=this._engine.playersByElement.get(w);if(Ti){let $i=Ti.indexOf(ke);$i>=0&&Ti.splice($i,1)}}),this.players.push(ke),ri.push(ke),ke}deregister(w){this._triggers.delete(w),this._engine.statesByElement.forEach(S=>S.delete(w)),this._elementListeners.forEach((S,B)=>{this._elementListeners.set(B,S.filter(J=>J.name!=w))})}clearElementCache(w){this._engine.statesByElement.delete(w),this._elementListeners.delete(w);const S=this._engine.playersByElement.get(w);S&&(S.forEach(B=>B.destroy()),this._engine.playersByElement.delete(w))}_signalRemovalForInnerTriggers(w,S){const B=this._engine.driver.query(w,vn,!0);B.forEach(J=>{if(J[On])return;const ve=this._engine.fetchNamespacesByElement(J);ve.size?ve.forEach(ke=>ke.triggerLeaveAnimation(J,S,!1,!0)):this.clearElementCache(J)}),this._engine.afterFlushAnimationsDone(()=>B.forEach(J=>this.clearElementCache(J)))}triggerLeaveAnimation(w,S,B,J){const ve=this._engine.statesByElement.get(w),ke=new Map;if(ve){const tt=[];if(ve.forEach((Ct,It)=>{if(ke.set(It,Ct.value),this._triggers.has(It)){const dn=this.trigger(w,It,Ai,J);dn&&tt.push(dn)}}),tt.length)return this._engine.markElementAsRemoved(this.id,w,!0,S,ke),B&&Pt(tt).onDone(()=>this._engine.processLeaveNode(w)),!0}return!1}prepareLeaveAnimationListeners(w){const S=this._elementListeners.get(w),B=this._engine.statesByElement.get(w);if(S&&B){const J=new Set;S.forEach(ve=>{const ke=ve.name;if(J.has(ke))return;J.add(ke);const Ct=this._triggers.get(ke).fallbackTransition,It=B.get(ke)||fi,dn=new qn(Ai),bn=new ae(this.id,ke,w);this._engine.totalQueuedPlayers++,this._queue.push({element:w,triggerName:ke,transition:Ct,fromState:It,toState:dn,player:bn,isFallbackTransition:!0})})}}removeNode(w,S){const B=this._engine;if(w.childElementCount&&this._signalRemovalForInnerTriggers(w,S),this.triggerLeaveAnimation(w,S,!0))return;let J=!1;if(B.totalAnimations){const ve=B.players.length?B.playersByQueriedElement.get(w):[];if(ve&&ve.length)J=!0;else{let ke=w;for(;ke=ke.parentNode;)if(B.statesByElement.get(ke)){J=!0;break}}}if(this.prepareLeaveAnimationListeners(w),J)B.markElementAsRemoved(this.id,w,!1,S);else{const ve=w[On];(!ve||ve===jn)&&(B.afterFlush(()=>this.clearElementCache(w)),B.destroyInnerAnimations(w),B._onRemovalComplete(w,S))}}insertNode(w,S){An(w,this._hostClassName)}drainQueuedTransitions(w){const S=[];return this._queue.forEach(B=>{const J=B.player;if(J.destroyed)return;const ve=B.element,ke=this._elementListeners.get(ve);ke&&ke.forEach(tt=>{if(tt.name==B.triggerName){const Ct=xt(ve,B.triggerName,B.fromState.value,B.toState.value);Ct._data=w,Bt(B.player,tt.phase,Ct,tt.callback)}}),J.markedForDestroy?this._engine.afterFlush(()=>{J.destroy()}):S.push(B)}),this._queue=[],S.sort((B,J)=>{const ve=B.transition.ast.depCount,ke=J.transition.ast.depCount;return 0==ve||0==ke?ve-ke:this._engine.driver.containsElement(B.element,J.element)?1:-1})}destroy(w){this.players.forEach(S=>S.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,w)}elementContainsData(w){let S=!1;return this._elementListeners.has(w)&&(S=!0),S=!!this._queue.find(B=>B.element===w)||S,S}}class Vt{_onRemovalComplete(w,S){this.onRemovalComplete(w,S)}constructor(w,S,B){this.bodyNode=w,this.driver=S,this._normalizer=B,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(J,ve)=>{}}get queuedPlayers(){const w=[];return this._namespaceList.forEach(S=>{S.players.forEach(B=>{B.queued&&w.push(B)})}),w}createNamespace(w,S){const B=new Ki(w,S,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,S)?this._balanceNamespaceList(B,S):(this.newHostElements.set(S,B),this.collectEnterElement(S)),this._namespaceLookup[w]=B}_balanceNamespaceList(w,S){const B=this._namespaceList,J=this.namespacesByHostElement;if(B.length-1>=0){let ke=!1,tt=this.driver.getParentElement(S);for(;tt;){const Ct=J.get(tt);if(Ct){const It=B.indexOf(Ct);B.splice(It+1,0,w),ke=!0;break}tt=this.driver.getParentElement(tt)}ke||B.unshift(w)}else B.push(w);return J.set(S,w),w}register(w,S){let B=this._namespaceLookup[w];return B||(B=this.createNamespace(w,S)),B}registerTrigger(w,S,B){let J=this._namespaceLookup[w];J&&J.register(S,B)&&this.totalAnimations++}destroy(w,S){if(!w)return;const B=this._fetchNamespace(w);this.afterFlush(()=>{this.namespacesByHostElement.delete(B.hostElement),delete this._namespaceLookup[w];const J=this._namespaceList.indexOf(B);J>=0&&this._namespaceList.splice(J,1)}),this.afterFlushAnimationsDone(()=>B.destroy(S))}_fetchNamespace(w){return this._namespaceLookup[w]}fetchNamespacesByElement(w){const S=new Set,B=this.statesByElement.get(w);if(B)for(let J of B.values())if(J.namespaceId){const ve=this._fetchNamespace(J.namespaceId);ve&&S.add(ve)}return S}trigger(w,S,B,J){if(ie(S)){const ve=this._fetchNamespace(w);if(ve)return ve.trigger(S,B,J),!0}return!1}insertNode(w,S,B,J){if(!ie(S))return;const ve=S[On];if(ve&&ve.setForRemoval){ve.setForRemoval=!1,ve.setForMove=!0;const ke=this.collectedLeaveElements.indexOf(S);ke>=0&&this.collectedLeaveElements.splice(ke,1)}if(w){const ke=this._fetchNamespace(w);ke&&ke.insertNode(S,B)}J&&this.collectEnterElement(S)}collectEnterElement(w){this.collectedEnterElements.push(w)}markElementAsDisabled(w,S){S?this.disabledNodes.has(w)||(this.disabledNodes.add(w),An(w,rn)):this.disabledNodes.has(w)&&(this.disabledNodes.delete(w),mi(w,rn))}removeNode(w,S,B,J){if(ie(S)){const ve=w?this._fetchNamespace(w):null;if(ve?ve.removeNode(S,J):this.markElementAsRemoved(w,S,!1,J),B){const ke=this.namespacesByHostElement.get(S);ke&&ke.id!==w&&ke.removeNode(S,J)}}else this._onRemovalComplete(S,J)}markElementAsRemoved(w,S,B,J,ve){this.collectedLeaveElements.push(S),S[On]={namespaceId:w,setForRemoval:J,hasAnimation:B,removedBeforeQueried:!1,previousTriggersValues:ve}}listen(w,S,B,J,ve){return ie(S)?this._fetchNamespace(w).listen(S,B,J,ve):()=>{}}_buildInstruction(w,S,B,J,ve){return w.transition.build(this.driver,w.element,w.fromState.value,w.toState.value,B,J,w.fromState.options,w.toState.options,S,ve)}destroyInnerAnimations(w){let S=this.driver.query(w,vn,!0);S.forEach(B=>this.destroyActiveAnimationsForElement(B)),0!=this.playersByQueriedElement.size&&(S=this.driver.query(w,Ht,!0),S.forEach(B=>this.finishActiveQueriedAnimationOnElement(B)))}destroyActiveAnimationsForElement(w){const S=this.playersByElement.get(w);S&&S.forEach(B=>{B.queued?B.markedForDestroy=!0:B.destroy()})}finishActiveQueriedAnimationOnElement(w){const S=this.playersByQueriedElement.get(w);S&&S.forEach(B=>B.finish())}whenRenderingDone(){return new Promise(w=>{if(this.players.length)return Pt(this.players).onDone(()=>w());w()})}processLeaveNode(w){const S=w[On];if(S&&S.setForRemoval){if(w[On]=jn,S.namespaceId){this.destroyInnerAnimations(w);const B=this._fetchNamespace(S.namespaceId);B&&B.clearElementCache(w)}this._onRemovalComplete(w,S.setForRemoval)}w.classList?.contains(rn)&&this.markElementAsDisabled(w,!1),this.driver.query(w,".ng-animate-disabled",!0).forEach(B=>{this.markElementAsDisabled(B,!1)})}flush(w=-1){let S=[];if(this.newHostElements.size&&(this.newHostElements.forEach((B,J)=>this._balanceNamespaceList(B,J)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let B=0;B<this.collectedEnterElements.length;B++)An(this.collectedEnterElements[B],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const B=[];try{S=this._flushAnimations(B,w)}finally{for(let J=0;J<B.length;J++)B[J]()}}else for(let B=0;B<this.collectedLeaveElements.length;B++)this.processLeaveNode(this.collectedLeaveElements[B]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(B=>B()),this._flushFns=[],this._whenQuietFns.length){const B=this._whenQuietFns;this._whenQuietFns=[],S.length?Pt(S).onDone(()=>{B.forEach(J=>J())}):B.forEach(J=>J())}}reportError(w){throw function oe(j){return new i.vHH(3402,!1)}()}_flushAnimations(w,S){const B=new li,J=[],ve=new Map,ke=[],tt=new Map,Ct=new Map,It=new Map,dn=new Set;this.disabledNodes.forEach(Wn=>{dn.add(Wn);const Xn=this.driver.query(Wn,".ng-animate-queued",!0);for(let ci=0;ci<Xn.length;ci++)dn.add(Xn[ci])});const bn=this.bodyNode,ri=Array.from(this.statesByElement.keys()),ii=_n(ri,this.collectedEnterElements),Sn=new Map;let Bn=0;ii.forEach((Wn,Xn)=>{const ci=tn+Bn++;Sn.set(Xn,ci),Wn.forEach(ki=>An(ki,ci))});const Ti=[],$i=new Set,Qi=new Set;for(let Wn=0;Wn<this.collectedLeaveElements.length;Wn++){const Xn=this.collectedLeaveElements[Wn],ci=Xn[On];ci&&ci.setForRemoval&&(Ti.push(Xn),$i.add(Xn),ci.hasAnimation?this.driver.query(Xn,".ng-star-inserted",!0).forEach(ki=>$i.add(ki)):Qi.add(Xn))}const lr=new Map,jo=_n(ri,Array.from($i));jo.forEach((Wn,Xn)=>{const ci=on+Bn++;lr.set(Xn,ci),Wn.forEach(ki=>An(ki,ci))}),w.push(()=>{ii.forEach((Wn,Xn)=>{const ci=Sn.get(Xn);Wn.forEach(ki=>mi(ki,ci))}),jo.forEach((Wn,Xn)=>{const ci=lr.get(Xn);Wn.forEach(ki=>mi(ki,ci))}),Ti.forEach(Wn=>{this.processLeaveNode(Wn)})});const rs=[],Tr=[];for(let Wn=this._namespaceList.length-1;Wn>=0;Wn--)this._namespaceList[Wn].drainQueuedTransitions(S).forEach(ci=>{const ki=ci.player,Ao=ci.element;if(rs.push(ki),this.collectedEnterElements.length){const Eo=Ao[On];if(Eo&&Eo.setForMove){if(Eo.previousTriggersValues&&Eo.previousTriggersValues.has(ci.triggerName)){const as=Eo.previousTriggersValues.get(ci.triggerName),Cr=this.statesByElement.get(ci.element);if(Cr&&Cr.has(ci.triggerName)){const Ea=Cr.get(ci.triggerName);Ea.value=as,Cr.set(ci.triggerName,Ea)}}return void ki.destroy()}}const Rr=!bn||!this.driver.containsElement(bn,Ao),cr=lr.get(Ao),ss=Sn.get(Ao),_o=this._buildInstruction(ci,B,ss,cr,Rr);if(_o.errors&&_o.errors.length)return void Tr.push(_o);if(Rr)return ki.onStart(()=>ut(Ao,_o.fromStyles)),ki.onDestroy(()=>Fn(Ao,_o.toStyles)),void J.push(ki);if(ci.isFallbackTransition)return ki.onStart(()=>ut(Ao,_o.fromStyles)),ki.onDestroy(()=>Fn(Ao,_o.toStyles)),void J.push(ki);const ll=[];_o.timelines.forEach(Eo=>{Eo.stretchStartingKeyframe=!0,this.disabledNodes.has(Eo.element)||ll.push(Eo)}),_o.timelines=ll,B.append(Ao,_o.timelines),ke.push({instruction:_o,player:ki,element:Ao}),_o.queriedElements.forEach(Eo=>sn(tt,Eo,[]).push(ki)),_o.preStyleProps.forEach((Eo,as)=>{if(Eo.size){let Cr=Ct.get(as);Cr||Ct.set(as,Cr=new Set),Eo.forEach((Ea,Wl)=>Cr.add(Wl))}}),_o.postStyleProps.forEach((Eo,as)=>{let Cr=It.get(as);Cr||It.set(as,Cr=new Set),Eo.forEach((Ea,Wl)=>Cr.add(Wl))})});if(Tr.length){const Wn=[];Tr.forEach(Xn=>{Wn.push(function ye(j,w){return new i.vHH(3505,!1)}())}),rs.forEach(Xn=>Xn.destroy()),this.reportError(Wn)}const tr=new Map,hr=new Map;ke.forEach(Wn=>{const Xn=Wn.element;B.has(Xn)&&(hr.set(Xn,Xn),this._beforeAnimationBuild(Wn.player.namespaceId,Wn.instruction,tr))}),J.forEach(Wn=>{const Xn=Wn.element;this._getPreviousPlayers(Xn,!1,Wn.namespaceId,Wn.triggerName,null).forEach(ki=>{sn(tr,Xn,[]).push(ki),ki.destroy()})});const Ir=Ti.filter(Wn=>Xi(Wn,Ct,It)),Vr=new Map;gt(Vr,this.driver,Qi,It,r.l3).forEach(Wn=>{Xi(Wn,Ct,It)&&Ir.push(Wn)});const ws=new Map;ii.forEach((Wn,Xn)=>{gt(ws,this.driver,new Set(Wn),Ct,r.k1)}),Ir.forEach(Wn=>{const Xn=Vr.get(Wn),ci=ws.get(Wn);Vr.set(Wn,new Map([...Array.from(Xn?.entries()??[]),...Array.from(ci?.entries()??[])]))});const xs=[],zl=[],Kl={};ke.forEach(Wn=>{const{element:Xn,player:ci,instruction:ki}=Wn;if(B.has(Xn)){if(dn.has(Xn))return ci.onDestroy(()=>Fn(Xn,ki.toStyles)),ci.disabled=!0,ci.overrideTotalTime(ki.totalTime),void J.push(ci);let Ao=Kl;if(hr.size>1){let cr=Xn;const ss=[];for(;cr=cr.parentNode;){const _o=hr.get(cr);if(_o){Ao=_o;break}ss.push(cr)}ss.forEach(_o=>hr.set(_o,Ao))}const Rr=this._buildAnimation(ci.namespaceId,ki,tr,ve,ws,Vr);if(ci.setRealPlayer(Rr),Ao===Kl)xs.push(ci);else{const cr=this.playersByElement.get(Ao);cr&&cr.length&&(ci.parentPlayer=Pt(cr)),J.push(ci)}}else ut(Xn,ki.fromStyles),ci.onDestroy(()=>Fn(Xn,ki.toStyles)),zl.push(ci),dn.has(Xn)&&J.push(ci)}),zl.forEach(Wn=>{const Xn=ve.get(Wn.element);if(Xn&&Xn.length){const ci=Pt(Xn);Wn.setRealPlayer(ci)}}),J.forEach(Wn=>{Wn.parentPlayer?Wn.syncPlayerEvents(Wn.parentPlayer):Wn.destroy()});for(let Wn=0;Wn<Ti.length;Wn++){const Xn=Ti[Wn],ci=Xn[On];if(mi(Xn,on),ci&&ci.hasAnimation)continue;let ki=[];if(tt.size){let Rr=tt.get(Xn);Rr&&Rr.length&&ki.push(...Rr);let cr=this.driver.query(Xn,Ht,!0);for(let ss=0;ss<cr.length;ss++){let _o=tt.get(cr[ss]);_o&&_o.length&&ki.push(..._o)}}const Ao=ki.filter(Rr=>!Rr.destroyed);Ao.length?eo(this,Xn,Ao):this.processLeaveNode(Xn)}return Ti.length=0,xs.forEach(Wn=>{this.players.push(Wn),Wn.onDone(()=>{Wn.destroy();const Xn=this.players.indexOf(Wn);this.players.splice(Xn,1)}),Wn.play()}),xs}elementContainsData(w,S){let B=!1;const J=S[On];return J&&J.setForRemoval&&(B=!0),this.playersByElement.has(S)&&(B=!0),this.playersByQueriedElement.has(S)&&(B=!0),this.statesByElement.has(S)&&(B=!0),this._fetchNamespace(w).elementContainsData(S)||B}afterFlush(w){this._flushFns.push(w)}afterFlushAnimationsDone(w){this._whenQuietFns.push(w)}_getPreviousPlayers(w,S,B,J,ve){let ke=[];if(S){const tt=this.playersByQueriedElement.get(w);tt&&(ke=tt)}else{const tt=this.playersByElement.get(w);if(tt){const Ct=!ve||ve==Ai;tt.forEach(It=>{It.queued||!Ct&&It.triggerName!=J||ke.push(It)})}}return(B||J)&&(ke=ke.filter(tt=>!(B&&B!=tt.namespaceId||J&&J!=tt.triggerName))),ke}_beforeAnimationBuild(w,S,B){const ve=S.element,ke=S.isRemovalTransition?void 0:w,tt=S.isRemovalTransition?void 0:S.triggerName;for(const Ct of S.timelines){const It=Ct.element,dn=It!==ve,bn=sn(B,It,[]);this._getPreviousPlayers(It,dn,ke,tt,S.toState).forEach(ii=>{const Sn=ii.getRealPlayer();Sn.beforeDestroy&&Sn.beforeDestroy(),ii.destroy(),bn.push(ii)})}ut(ve,S.fromStyles)}_buildAnimation(w,S,B,J,ve,ke){const tt=S.triggerName,Ct=S.element,It=[],dn=new Set,bn=new Set,ri=S.timelines.map(Sn=>{const Bn=Sn.element;dn.add(Bn);const Ti=Bn[On];if(Ti&&Ti.removedBeforeQueried)return new r.ZN(Sn.duration,Sn.delay);const $i=Bn!==Ct,Qi=function So(j){const w=[];return ji(j,w),w}((B.get(Bn)||Zn).map(tr=>tr.getRealPlayer())).filter(tr=>!!tr.element&&tr.element===Bn),lr=ve.get(Bn),jo=ke.get(Bn),rs=wt(0,this._normalizer,0,Sn.keyframes,lr,jo),Tr=this._buildPlayer(Sn,rs,Qi);if(Sn.subTimeline&&J&&bn.add(Bn),$i){const tr=new ae(w,tt,Bn);tr.setRealPlayer(Tr),It.push(tr)}return Tr});It.forEach(Sn=>{sn(this.playersByQueriedElement,Sn.element,[]).push(Sn),Sn.onDone(()=>function Qe(j,w,S){let B=j.get(w);if(B){if(B.length){const J=B.indexOf(S);B.splice(J,1)}0==B.length&&j.delete(w)}return B}(this.playersByQueriedElement,Sn.element,Sn))}),dn.forEach(Sn=>An(Sn,zt));const ii=Pt(ri);return ii.onDestroy(()=>{dn.forEach(Sn=>mi(Sn,zt)),Fn(Ct,S.toStyles)}),bn.forEach(Sn=>{sn(J,Sn,[]).push(ii)}),ii}_buildPlayer(w,S,B){return S.length>0?this.driver.animate(w.element,S,w.duration,w.delay,w.easing,B):new r.ZN(w.duration,w.delay)}}class ae{constructor(w,S,B){this.namespaceId=w,this.triggerName=S,this.element=B,this._player=new r.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(w){this._containsRealPlayer||(this._player=w,this._queuedCallbacks.forEach((S,B)=>{S.forEach(J=>Bt(w,B,void 0,J))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(w.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(w){this.totalTime=w}syncPlayerEvents(w){const S=this._player;S.triggerCallback&&w.onStart(()=>S.triggerCallback("start")),w.onDone(()=>this.finish()),w.onDestroy(()=>this.destroy())}_queueEvent(w,S){sn(this._queuedCallbacks,w,[]).push(S)}onDone(w){this.queued&&this._queueEvent("done",w),this._player.onDone(w)}onStart(w){this.queued&&this._queueEvent("start",w),this._player.onStart(w)}onDestroy(w){this.queued&&this._queueEvent("destroy",w),this._player.onDestroy(w)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(w){this.queued||this._player.setPosition(w)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(w){const S=this._player;S.triggerCallback&&S.triggerCallback(w)}}function ie(j){return j&&1===j.nodeType}function Ke(j,w){const S=j.style.display;return j.style.display=w??"none",S}function gt(j,w,S,B,J){const ve=[];S.forEach(Ct=>ve.push(Ke(Ct)));const ke=[];B.forEach((Ct,It)=>{const dn=new Map;Ct.forEach(bn=>{const ri=w.computeStyle(It,bn,J);dn.set(bn,ri),(!ri||0==ri.length)&&(It[On]=ti,ke.push(It))}),j.set(It,dn)});let tt=0;return S.forEach(Ct=>Ke(Ct,ve[tt++])),ke}function _n(j,w){const S=new Map;if(j.forEach(tt=>S.set(tt,[])),0==w.length)return S;const B=1,J=new Set(w),ve=new Map;function ke(tt){if(!tt)return B;let Ct=ve.get(tt);if(Ct)return Ct;const It=tt.parentNode;return Ct=S.has(It)?It:J.has(It)?B:ke(It),ve.set(tt,Ct),Ct}return w.forEach(tt=>{const Ct=ke(tt);Ct!==B&&S.get(Ct).push(tt)}),S}function An(j,w){j.classList?.add(w)}function mi(j,w){j.classList?.remove(w)}function eo(j,w,S){Pt(S).onDone(()=>j.processLeaveNode(w))}function ji(j,w){for(let S=0;S<j.length;S++){const B=j[S];B instanceof r.ZE?ji(B.players,w):w.push(B)}}function Xi(j,w,S){const B=S.get(j);if(!B)return!1;let J=w.get(j);return J?B.forEach(ve=>J.add(ve)):w.set(j,B),S.delete(j),!0}class Ri{constructor(w,S,B){this.bodyNode=w,this._driver=S,this._normalizer=B,this._triggerCache={},this.onRemovalComplete=(J,ve)=>{},this._transitionEngine=new Vt(w,S,B),this._timelineEngine=new ft(w,S,B),this._transitionEngine.onRemovalComplete=(J,ve)=>this.onRemovalComplete(J,ve)}registerTrigger(w,S,B,J,ve){const ke=w+"-"+J;let tt=this._triggerCache[ke];if(!tt){const Ct=[],It=[],dn=ro(this._driver,ve,Ct,It);if(Ct.length)throw function ue(j,w){return new i.vHH(3404,!1)}();tt=function ce(j,w,S){return new Se(j,w,S)}(J,dn,this._normalizer),this._triggerCache[ke]=tt}this._transitionEngine.registerTrigger(S,J,tt)}register(w,S){this._transitionEngine.register(w,S)}destroy(w,S){this._transitionEngine.destroy(w,S)}onInsert(w,S,B,J){this._transitionEngine.insertNode(w,S,B,J)}onRemove(w,S,B,J){this._transitionEngine.removeNode(w,S,J||!1,B)}disableAnimations(w,S){this._transitionEngine.markElementAsDisabled(w,S)}process(w,S,B,J){if("@"==B.charAt(0)){const[ve,ke]=ct(B);this._timelineEngine.command(ve,S,ke,J)}else this._transitionEngine.trigger(w,S,B,J)}listen(w,S,B,J,ve){if("@"==B.charAt(0)){const[ke,tt]=ct(B);return this._timelineEngine.listen(ke,S,tt,ve)}return this._transitionEngine.listen(w,S,B,J,ve)}flush(w=-1){this._transitionEngine.flush(w)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ko=(()=>{class j{constructor(S,B,J){this._element=S,this._startStyles=B,this._endStyles=J,this._state=0;let ve=j.initialStylesByElement.get(S);ve||j.initialStylesByElement.set(S,ve=new Map),this._initialStyles=ve}start(){this._state<1&&(this._startStyles&&Fn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fn(this._element,this._initialStyles),this._endStyles&&(Fn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(j.initialStylesByElement.delete(this._element),this._startStyles&&(ut(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ut(this._element,this._endStyles),this._endStyles=null),Fn(this._element,this._initialStyles),this._state=3)}}return j.initialStylesByElement=new WeakMap,j})();function vo(j){let w=null;return j.forEach((S,B)=>{(function Mi(j){return"display"===j||"position"===j})(B)&&(w=w||new Map,w.set(B,S))}),w}class To{constructor(w,S,B,J){this.element=w,this.keyframes=S,this.options=B,this._specialStyles=J,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=B.duration,this._delay=B.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(w=>w()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const w=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,w,this.options),this._finalKeyframe=w.length?w[w.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(w){const S=[];return w.forEach(B=>{S.push(Object.fromEntries(B))}),S}_triggerWebAnimation(w,S,B){return w.animate(this._convertKeyframesToObject(S),B)}onStart(w){this._originalOnStartFns.push(w),this._onStartFns.push(w)}onDone(w){this._originalOnDoneFns.push(w),this._onDoneFns.push(w)}onDestroy(w){this._onDestroyFns.push(w)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(w=>w()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(w=>w()),this._onDestroyFns=[])}setPosition(w){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=w*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const w=new Map;this.hasStarted()&&this._finalKeyframe.forEach((B,J)=>{"offset"!==J&&w.set(J,this._finished?B:Kt(this.element,J))}),this.currentSnapshot=w}triggerCallback(w){const S="start"===w?this._onStartFns:this._onDoneFns;S.forEach(B=>B()),S.length=0}}class fe{validateStyleProperty(w){return!0}validateAnimatableStyleProperty(w){return!0}matchesElement(w,S){return!1}containsElement(w,S){return Ln(w,S)}getParentElement(w){return Ft(w)}query(w,S,B){return dt(w,S,B)}computeStyle(w,S,B){return window.getComputedStyle(w)[S]}animate(w,S,B,J,ve,ke=[]){const Ct={duration:B,delay:J,fill:0==J?"both":"forwards"};ve&&(Ct.easing=ve);const It=new Map,dn=ke.filter(ii=>ii instanceof To);(function He(j,w){return 0===j||0===w})(B,J)&&dn.forEach(ii=>{ii.currentSnapshot.forEach((Sn,Bn)=>It.set(Bn,Sn))});let bn=function Ut(j){return j.length?j[0]instanceof Map?j:j.map(w=>Gt(w)):[]}(S).map(ii=>Mn(ii));bn=function ht(j,w,S){if(S.size&&w.length){let B=w[0],J=[];if(S.forEach((ve,ke)=>{B.has(ke)||J.push(ke),B.set(ke,ve)}),J.length)for(let ve=1;ve<w.length;ve++){let ke=w[ve];J.forEach(tt=>ke.set(tt,Kt(j,tt)))}}return w}(w,bn,It);const ri=function Ji(j,w){let S=null,B=null;return Array.isArray(w)&&w.length?(S=vo(w[0]),w.length>1&&(B=vo(w[w.length-1]))):w instanceof Map&&(S=vo(w)),S||B?new ko(j,S,B):null}(w,bn);return new To(w,bn,Ct,ri)}}var We=l(4666);let E=(()=>{class j extends r._j{constructor(S,B){super(),this._nextAnimationId=0,this._renderer=S.createRenderer(B.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(S){const B=this._nextAnimationId.toString();this._nextAnimationId++;const J=Array.isArray(S)?(0,r.vP)(S):S;return Ne(this._renderer,null,B,"register",[J]),new ne(B,this._renderer)}}return j.\u0275fac=function(S){return new(S||j)(i.LFG(i.FYo),i.LFG(We.K0))},j.\u0275prov=i.Yz7({token:j,factory:j.\u0275fac}),j})();class ne extends r.LC{constructor(w,S){super(),this._id=w,this._renderer=S}create(w,S){return new be(this._id,w,S||{},this._renderer)}}class be{constructor(w,S,B,J){this.id=w,this.element=S,this._renderer=J,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",B)}_listen(w,S){return this._renderer.listen(this.element,`@@${this.id}:${w}`,S)}_command(w,...S){return Ne(this._renderer,this.element,this.id,w,S)}onDone(w){this._listen("done",w)}onStart(w){this._listen("start",w)}onDestroy(w){this._listen("destroy",w)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(w){this._command("setPosition",w)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Ne(j,w,S,B,J){return j.setProperty(w,`@@${S}:${B}`,J)}const ln="@.disabled";let Tn=(()=>{class j{constructor(S,B,J){this.delegate=S,this.engine=B,this._zone=J,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),B.onRemovalComplete=(ve,ke)=>{const tt=ke?.parentNode(ve);tt&&ke.removeChild(tt,ve)}}createRenderer(S,B){const ve=this.delegate.createRenderer(S,B);if(!(S&&B&&B.data&&B.data.animation)){let dn=this._rendererCache.get(ve);return dn||(dn=new vi("",ve,this.engine,()=>this._rendererCache.delete(ve)),this._rendererCache.set(ve,dn)),dn}const ke=B.id,tt=B.id+"-"+this._currentId;this._currentId++,this.engine.register(tt,S);const Ct=dn=>{Array.isArray(dn)?dn.forEach(Ct):this.engine.registerTrigger(ke,tt,S,dn.name,dn)};return B.data.animation.forEach(Ct),new pi(this,tt,ve,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(S,B,J){S>=0&&S<this._microtaskId?this._zone.run(()=>B(J)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ve=>{const[ke,tt]=ve;ke(tt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([B,J]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return j.\u0275fac=function(S){return new(S||j)(i.LFG(i.FYo),i.LFG(Ri),i.LFG(i.R0b))},j.\u0275prov=i.Yz7({token:j,factory:j.\u0275fac}),j})();class vi{constructor(w,S,B,J){this.namespaceId=w,this.delegate=S,this.engine=B,this._onDestroy=J,this.destroyNode=this.delegate.destroyNode?ve=>S.destroyNode(ve):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(w,S){return this.delegate.createElement(w,S)}createComment(w){return this.delegate.createComment(w)}createText(w){return this.delegate.createText(w)}appendChild(w,S){this.delegate.appendChild(w,S),this.engine.onInsert(this.namespaceId,S,w,!1)}insertBefore(w,S,B,J=!0){this.delegate.insertBefore(w,S,B),this.engine.onInsert(this.namespaceId,S,w,J)}removeChild(w,S,B){this.engine.onRemove(this.namespaceId,S,this.delegate,B)}selectRootElement(w,S){return this.delegate.selectRootElement(w,S)}parentNode(w){return this.delegate.parentNode(w)}nextSibling(w){return this.delegate.nextSibling(w)}setAttribute(w,S,B,J){this.delegate.setAttribute(w,S,B,J)}removeAttribute(w,S,B){this.delegate.removeAttribute(w,S,B)}addClass(w,S){this.delegate.addClass(w,S)}removeClass(w,S){this.delegate.removeClass(w,S)}setStyle(w,S,B,J){this.delegate.setStyle(w,S,B,J)}removeStyle(w,S,B){this.delegate.removeStyle(w,S,B)}setProperty(w,S,B){"@"==S.charAt(0)&&S==ln?this.disableAnimations(w,!!B):this.delegate.setProperty(w,S,B)}setValue(w,S){this.delegate.setValue(w,S)}listen(w,S,B){return this.delegate.listen(w,S,B)}disableAnimations(w,S){this.engine.disableAnimations(w,S)}}class pi extends vi{constructor(w,S,B,J,ve){super(S,B,J,ve),this.factory=w,this.namespaceId=S}setProperty(w,S,B){"@"==S.charAt(0)?"."==S.charAt(1)&&S==ln?this.disableAnimations(w,B=void 0===B||!!B):this.engine.process(this.namespaceId,w,S.slice(1),B):this.delegate.setProperty(w,S,B)}listen(w,S,B){if("@"==S.charAt(0)){const J=function z(j){switch(j){case"body":return document.body;case"document":return document;case"window":return window;default:return j}}(w);let ve=S.slice(1),ke="";return"@"!=ve.charAt(0)&&([ve,ke]=function ee(j){const w=j.indexOf(".");return[j.substring(0,w),j.slice(w+1)]}(ve)),this.engine.listen(this.namespaceId,J,ve,ke,tt=>{this.factory.scheduleListenerCallback(tt._data||-1,B,tt)})}return this.delegate.listen(w,S,B)}}const Cn=[{provide:r._j,useClass:E},{provide:Hi,useFactory:function Ae(){return new Vo}},{provide:Ri,useClass:(()=>{class j extends Ri{constructor(S,B,J,ve){super(S.body,B,J)}ngOnDestroy(){this.flush()}}return j.\u0275fac=function(S){return new(S||j)(i.LFG(We.K0),i.LFG(pe),i.LFG(Hi),i.LFG(i.z2F))},j.\u0275prov=i.Yz7({token:j,factory:j.\u0275fac}),j})()},{provide:i.FYo,useFactory:function Mt(j,w,S){return new Tn(j,w,S)},deps:[t.se,Ri,i.R0b]}],hi=[{provide:pe,useFactory:()=>new fe},{provide:i.QbO,useValue:"BrowserAnimations"},...Cn],Bi=[{provide:pe,useClass:$},{provide:i.QbO,useValue:"NoopAnimations"},...Cn];let ir=(()=>{class j{static withConfig(S){return{ngModule:j,providers:S.disableAnimations?Bi:hi}}}return j.\u0275fac=function(S){return new(S||j)},j.\u0275mod=i.oAB({type:j}),j.\u0275inj=i.cJS({providers:hi,imports:[t.b2]}),j})();var wo=l(8987),Pi=l(6803),fo=l(7641),Ni=l(8951),Jo=l(5699);const ur=j=>j.LoggedInUser;var gr=l(6382),wr=l(253),Fo=l(9547),Ro=l(276),xr=l(9134),br=l(7024),zr=l(4169),zn=l(9263),Qo=l(4356),Dr=l(8286),ps=l(2266),Kr=l(3897),Qr=l(4357),Nr=l(3462),hs=l(3810),Ps=l(5782),fs=l(5236);function Co(j,w){1&j&&(i.TgZ(0,"div"),i.tHW(1,6),i._UZ(2,"strong"),i.N_p(),i.qZA())}function Sr(j,w){if(1&j){const S=i.EpF();i.TgZ(0,"p")(1,"span"),i.SDv(2,7),i.qZA(),i.TgZ(3,"span",8),i.NdJ("click",function(){i.CHM(S);const J=i.oxw();return i.KtG(J.navigateToSignUp())}),i.SDv(4,9),i.qZA()()}}let Wi=(()=>{class j{store;formBuilder;messageService;activatedRoute;apiRef;accountService;navigationService;localizationService;settingService;encryptionService;QuestionForm;SectionKey="Answer Security Questions";UserCredentials;securityQuestionsSettings;securityQuestions=new Array;showRegistrationLinks=!1;adminMode;returnURL="";module="";viewId="";licRequired=!1;destroyActions=new wr.x;constructor(S,B,J,ve,ke,tt,Ct,It,dn,bn){this.store=S,this.formBuilder=B,this.messageService=J,this.activatedRoute=ve,this.apiRef=ke,this.accountService=tt,this.navigationService=Ct,this.localizationService=It,this.settingService=dn,this.encryptionService=bn,this.QuestionForm=this.formBuilder.group({})}ngOnInit(){this.store.select(gr.e).pipe((0,Ni.R)(this.destroyActions)).subscribe({next:ve=>{this.adminMode=ve.AdminMode}}),this.settingService.isRegistrationEnabled().subscribe(ve=>this.showRegistrationLinks=ve),this.adminMode||this.store.select(ur).pipe((0,Ni.R)(this.destroyActions)).subscribe(ve=>{if(ve&&ve.LoggedInUser)this.UserCredentials=ve.LoggedInUser;else{let ke=decodeURI(this.activatedRoute.snapshot.queryParamMap.get("userData"));if("null"!==ke)ke=ke.split(" ").join("+"),this.UserCredentials=this.encryptionService.decryptObjRabbit(ke);else{const tt="Error: Unable to load data about user attempting login.";this.messageService.add({severity:"error",summary:tt,closable:!1})}}return this.accountService.getSecurityQuestions(this.UserCredentials?.Name).pipe((0,Ni.R)(this.destroyActions)).subscribe(ke=>{let tt=0;ke.forEach(Ct=>{tt++;const It=new Jo.x;It.name=Ct.Key+tt.toString(),It.label=Ct.Key,It.tooltip="",It.type=Jo.h.SecurityAnswer,It.optionKey=Ct.Value,It.value="",It.required=!0,It.placeholder="",this.securityQuestions.push(It);const dn=new Pi.p4(It);dn.setValue(""),dn.controlData=It,dn.setValidators([Pi.kI.required,j=>{const w=j.controlData.optionKey,S=j.value?.toString();return S&&w.trim().toLowerCase()===S.trim().toLowerCase()?(j.setErrors(null),null):(j.setErrors({challenge:!0}),{challenge:!0})}]),this.QuestionForm.addControl(Ct.Key+tt.toString(),dn)})}),ve},ve=>{this.messageService.add({severity:"error",summary:ve,closable:!1})}),this.localizationService.getLabelByKey("aca_securityquestion_verification_label_title").pipe((0,Ni.R)(this.destroyActions)).subscribe(ve=>{this.SectionKey=ve});const S=new URLSearchParams(window.location.search),B=S.get(Fo.p.RETURN_URL)?.trim();if(!(0,Ro.L)(B)){const ve=this.apiRef.nativeWindow.location.search;this.returnURL=decodeURIComponent(ve.substring(ve.indexOf(Fo.p.RETURN_URL)+10))}const J=S.get("module")?.trim();(0,Ro.L)(J)||(this.module=J),this.settingService.isLicenseRequiredForRegistration().pipe((0,Ni.R)(this.destroyActions)).subscribe(ve=>{ve&&(this.licRequired=ve)})}getLabelId(S){return"label"+S.toString()}validateForm(){let S=!0;if(0===Object.keys(this.QuestionForm.controls).length)return!1;for(const B in this.QuestionForm.controls)if(Object.prototype.hasOwnProperty.call(this.QuestionForm.controls,B)){const J=this.QuestionForm.controls[B];J.validator&&J.markAsDirty(),J.errors&&Object.keys(J.errors).length>0&&(S=!1)}return S}submitQuestions(S){if(S.preventDefault(),!this.adminMode)return this.QuestionForm.updateValueAndValidity(),this.validateForm()?void this.accountService.loginToACA(this.UserCredentials).subscribe(J=>{if(J.forcePasswordChange&&(J.url=Fo.p.CHANGE_PASSWORD_ROUTE+`&userID=${this.UserCredentials.Name}`),"success"===J.type)if((0,Ro.L)(this.returnURL))if(this.activatedRoute.snapshot.queryParamMap.get("Embed")){const ve=J.url.indexOf("?");let ke=this.apiRef.vDir+J.url+(ve<0?"?":"&")+"Embed=true";this.activatedRoute.snapshot.queryParamMap.get("OpenCities")&&(ke+="&OpenCities=true"),this.apiRef.nativeWindow.location.href=ke}else this.apiRef.nativeWindow.location.href=this.apiRef.vDir+J.url;else{const ve=this.returnURL.indexOf("?");let ke=`${this.returnURL}${ve<0?"?":"&"}module=${this.module??""}`;this.activatedRoute.snapshot.queryParamMap.get("Embed")&&(ke+="&Embed=true"),this.activatedRoute.snapshot.queryParamMap.get("OpenCities")&&(ke+="&OpenCities=true"),this.apiRef.nativeWindow.location.href=ke}else"redirect"===J.type?this.apiRef.nativeWindow.location.href=this.apiRef.vDir+J.url:"error"===J.type&&(this.messageService.add({severity:"error",summary:J.message,closable:!1}),this.navigationService.navigateRoute("login"))},J=>{this.messageService.add({severity:"error",summary:J,closable:!1})}):(this.messageService.clear(),void this.messageService.add({severity:"error",summary:"Not all fields are filled out correctly. Please check again.",closable:!1}))}navigateToSignUp(){this.adminMode||this.navigationService.navigateRoute(this.licRequired?"account/register-declare-license":"account/new")}ngOnDestroy(){this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(B){return new(B||j)(i.Y36(zn.yh),i.Y36(Pi.QS),i.Y36(Qo.ez),i.Y36(fo.gz),i.Y36(Dr.q),i.Y36(xr.B),i.Y36(zr.f),i.Y36(ps.o),i.Y36(Kr.R),i.Y36(br.C))};static \u0275cmp=i.Xpm({type:j,selectors:[["aca-security-question-auth-screen"]],decls:11,vars:15,consts:function(){let S,B,J,ve;return S="Sign In",B="" + "\ufffd#2\ufffd" + "Error: Unable to locate Security Questions for you account. Please contact your system administrator" + "\ufffd/#2\ufffd" + "",J="New around here?",ve="Click to Sign up for an account",[["styleClass","app-frame"],[3,"contentKey","admin","viewId","module"],[3,"formGroup"],[3,"controlGroup"],[4,"ngIf"],["label",S,3,"disabled","onClicked"],B,J,[3,"click"],ve]},template:function(B,J){1&B&&(i.TgZ(0,"p-card",0)(1,"p-header"),i._UZ(2,"section-title",1),i.qZA(),i._UZ(3,"section-instructions",1),i.TgZ(4,"form",2),i._UZ(5,"aca-page-layout-display",3),i.YNc(6,Co,3,0,"div",4),i.ALo(7,"keyvalue"),i.TgZ(8,"accela-button-primary",5),i.NdJ("onClicked",function(ke){return J.submitQuestions(ke)}),i.qZA()(),i.TgZ(9,"p-footer"),i.YNc(10,Sr,5,0,"p",4),i.qZA()()),2&B&&(i.xp6(2),i.Q6J("contentKey","aca_securityquestion_verification_label_title")("admin",J.adminMode)("viewId",J.viewId)("module",J.module),i.xp6(1),i.Q6J("contentKey","aca_securityquestion_verification_label_disclaimer")("admin",J.adminMode)("viewId",J.viewId)("module",J.module),i.xp6(1),i.Q6J("formGroup",J.QuestionForm),i.xp6(1),i.Q6J("controlGroup",J.QuestionForm),i.xp6(1),i.Q6J("ngIf",!J.QuestionForm&&0===i.lcZ(7,13,J.QuestionForm.controls).length),i.xp6(2),i.Q6J("disabled",J.adminMode),i.xp6(2),i.Q6J("ngIf",J.showRegistrationLinks))},dependencies:[We.O5,Pi._Y,Pi.JL,Pi.sg,Qr.Z,Qo.h4,Qo.$_,Nr.s,hs.b,Ps.f,fs.D,We.Nd],styles:["[_nghost-%COMP%]     input, [_nghost-%COMP%]     label{min-width:95%}h1[_ngcontent-%COMP%]{padding:1em}[_nghost-%COMP%]     .p-card{max-width:640px;margin-left:auto!important;margin-right:auto;padding:40px;gap:24px;box-shadow:0 2px 18px #52525241;border-radius:.5em}.accelaControl[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:.5em}.textinput[_ngcontent-%COMP%]   input.ng-valid.ng-pristine[_ngcontent-%COMP%]{color:#333}@media only screen and (max-device-width: 600px),(max-width: 600px){[_nghost-%COMP%]     input, [_nghost-%COMP%]     label{min-width:90%}}@media only screen and (max-device-width: 375px),(max-width: 375px){[_nghost-%COMP%]     .p-card{padding:1em 1.25em}}\n/*# sourceMappingURL=security-question-auth-screen.component.css.map*/"]})}return j})();var Ns=l(8819),$s=l(2847);const aa=(0,zn.PH)("[UserModel] Load UserModels",(0,zn.Ky)()),zs=((0,zn.PH)("[UserModel] Load UserModels Success",(0,zn.Ky)()),(0,zn.PH)("[UserModel] Load UserModels Failure",(0,zn.Ky)()),(0,zn.PH)("[UserModel] Add UserModels",(0,zn.Ky)()));(0,zn.PH)("[UserModel] Add UserModels Success",(0,zn.Ky)()),(0,zn.PH)("[UserModel] Add UserModels Failure",(0,zn.Ky)());var Xr=l(9921),Z=l(5502),ge=l(749),te=l(9999),xe=l(8179),it=l(9906),Lt=l(8848),Yt=l(7653),Gn=l(9416),Gi=l(3342),Zi=l(1617);const Li=["adminOverlay"];function Ci(j,w){if(1&j){const S=i.EpF();i.TgZ(0,"div",11)(1,"label",35),i.SDv(2,36),i.qZA(),i.TgZ(3,"p-editor",37,38),i.NdJ("ngModelChange",function(J){i.CHM(S);const ve=i.oxw();return i.KtG(ve.selectedDto.tooltip=J)}),i.qZA()()}if(2&j){const S=i.oxw();i.xp6(3),i.Q6J("ngModel",S.selectedDto.tooltip)}}function uo(j,w){if(1&j){const S=i.EpF();i.TgZ(0,"div",11)(1,"label",39),i.SDv(2,40),i.qZA(),i.TgZ(3,"input",41,42),i.NdJ("ngModelChange",function(J){i.CHM(S);const ve=i.oxw();return i.KtG(ve.selectedDto.placeholder=J)}),i.qZA()()}if(2&j){const S=i.oxw();i.xp6(3),i.Q6J("ngModel",S.selectedDto.placeholder)}}function Vi(j,w){if(1&j){const S=i.EpF();i.TgZ(0,"div",43)(1,"aca-recaptcha",44),i.NdJ("verifyUser",function(J){i.CHM(S);const ve=i.oxw();return i.KtG(ve.updateRecaptchaStatus(J))}),i.qZA()()}if(2&j){const S=i.oxw();i.xp6(1),i.Q6J("RecaptchaPublicKey",null==S.RecaptchaInfo?null:S.RecaptchaInfo.RecaptchaPublicKey)}}function mo(j,w){1&j&&i._UZ(0,"div")}function _r(j,w){1&j&&(i.TgZ(0,"div",45),i.SDv(1,46),i.qZA())}function zo(j,w){1&j&&(i.TgZ(0,"div",45),i.SDv(1,47),i.qZA())}function Ar(j,w){if(1&j){const S=i.EpF();i.TgZ(0,"p",45)(1,"a",48)(2,"span",49),i.NdJ("keydown.enter",function(J){i.CHM(S);const ve=i.oxw();return i.KtG(ve.newUserRegistration(J))})("click",function(J){i.CHM(S);const ve=i.oxw();return i.KtG(ve.newUserRegistration(J))}),i.SDv(3,50),i.qZA()()()}}let Ko=(()=>{class j{apiRef;accountService;settingService;pageLayoutService;localizationService;activatedRoute;renderer;navigationService;messageService;encryptionService;store;cookieService;customScriptService;broadcastMessage=new i.vpe(!0);selectionEvent=new i.vpe;adminUpdatePanel;adminMode;RecaptchaInfo;username;password;returnURL="";moduleParam="";rememberMe;recaptchaLoaded=!1;recaptchaVerified=!1;securityQuestionsRequired=!1;showRegistrationLinks=!1;displayAdminOverlay=!1;processing=!0;licenseRequiredForRegistration=!1;userNameControlDto={name:"userNameControl"};passwordControlDto={name:"passwordControl"};rememeberMeDto={name:"rememberMeControl"};selectedDto=this.userNameControlDto;adminSelectedControl="username";viewId="1008";userNamePlaceHolder="";passwordPlaceHolder="";destroyActions=new wr.x;constructor(S,B,J,ve,ke,tt,Ct,It,dn,bn,ri,ii,Sn){this.apiRef=S,this.accountService=B,this.settingService=J,this.pageLayoutService=ve,this.localizationService=ke,this.activatedRoute=tt,this.renderer=Ct,this.navigationService=It,this.messageService=dn,this.encryptionService=bn,this.store=ri,this.cookieService=ii,this.customScriptService=Sn,!this.adminMode&&this.cookieService.check(Fo.p.REMEBERME_COOKIE)&&(this.rememberMe=!0,this.username=this.cookieService.get(Fo.p.REMEBERME_COOKIE)),this.settingService.isRegistrationEnabled().pipe((0,Ni.R)(this.destroyActions)).subscribe(Bn=>this.showRegistrationLinks=Bn),this.settingService.getRecaptchaSettings().pipe((0,Ni.R)(this.destroyActions)).subscribe(Bn=>{this.RecaptchaInfo=Bn},Bn=>{this.messageService.add({severity:"error",summary:Bn,closable:!1})}),this.renderReCaptcha(this),this.settingService.getLoginSettings().pipe((0,Ni.R)(this.destroyActions)).subscribe(Bn=>{this.securityQuestionsRequired=Bn.Enable},Bn=>{this.messageService.add({severity:"error",summary:Bn,closable:!1})}),this.settingService.isLicenseRequiredForRegistration().pipe((0,Ni.R)(this.destroyActions)).subscribe(Bn=>{this.licenseRequiredForRegistration=Bn}),this.loadDbLocalization()}ngOnInit(){this.settingService.isEnableCustomizationPerPage().pipe((0,Ni.R)(this.destroyActions)).subscribe(J=>{J&&this.customScriptService.loadAndRunCustomScriptBlock(this.renderer,document,"login-panel")}),this.store.select(gr.e).pipe((0,Ni.R)(this.destroyActions)).subscribe({next:J=>{this.adminMode=J.AdminMode,this.adminMode&&(this.username="")}});const S=new URLSearchParams(this.apiRef.nativeWindow.location.search),B=S.get(Fo.p.RETURN_URL)?.trim();if(!(0,Ro.L)(B)){const J=this.apiRef.nativeWindow.location.search;this.returnURL=decodeURIComponent(J.substring(J.indexOf(Fo.p.RETURN_URL)+10))}this.moduleParam=S.get("module")?.trim()}loadDbLocalization(){this.localizationService.getDefaultLabelByKey("acc_sign_label_username").subscribe(S=>this.userNameControlDto.defaultLabel=S),this.localizationService.getLabelByKey("acc_sign_label_username").subscribe(S=>this.userNameControlDto.label=S),this.localizationService.getHtmlText("acc_sign_label_username|sub","").subscribe(S=>this.userNameControlDto.tooltip=S),this.localizationService.getLabelByKey("acc_sign_label_username|watermark").subscribe(S=>{this.userNameControlDto.placeholder=S,this.userNamePlaceHolder=S}),this.localizationService.getDefaultLabelByKey("acc_sign_label_password").subscribe(S=>this.passwordControlDto.defaultLabel=S),this.localizationService.getLabelByKey("acc_sign_label_password").subscribe(S=>this.passwordControlDto.label=S),this.localizationService.getHtmlText("acc_sign_label_password|sub","").subscribe(S=>this.passwordControlDto.tooltip=S),this.localizationService.getLabelByKey("acc_sign_label_password|watermark").subscribe(S=>{this.passwordControlDto.placeholder=S,this.passwordPlaceHolder=S}),this.localizationService.getDefaultLabelByKey("acc_sign_label_rememberMe").subscribe(S=>this.rememeberMeDto.defaultLabel=S),this.localizationService.getLabelByKey("acc_sign_label_rememberMe").subscribe(S=>this.rememeberMeDto.label=S)}renderReCaptcha(S){!this.RecaptchaInfo||this.RecaptchaInfo.IsCaptchaEnabledForLogin?this.RecaptchaInfo&&window.grecaptcha&&window.grecaptcha.render?this.recaptchaLoaded=!0:setTimeout(()=>{S.renderReCaptcha(S)},400):this.recaptchaLoaded=!0}updateRecaptchaStatus(S){this.recaptchaVerified=S,!0===S&&document.getElementById("captcha").style.setProperty("border","none"),this.processing=!1}getForgotPasswordLink(){return"Account/ForgotPassword.aspx"}forgotPassword(S){this.adminMode||this.navigationService.navigateLegacyPage(this.getForgotPasswordLink())}login(S){if(this.RecaptchaInfo.IsCaptchaEnabledForLogin&&!this.recaptchaVerified)return this.messageService.clear(),document.getElementById("captcha").style.setProperty("border","1px solid red"),void this.messageService.add({severity:"error",summary:"Please fill out the Recaptcha properly before submitting again.",closable:!1});if(this.adminMode||this.RecaptchaInfo.IsCaptchaEnabledForLogin&&this.processing)return;if(!this.RecaptchaInfo)return void console.log("Unable to login. Still loading Recaptcha data");if((0,Ro.L)(this.username)||(0,Ro.L)(this.password))return this.messageService.clear(),void this.messageService.add({severity:"error",summary:"Not all fields are filled out correctly. Please check again.",closable:!1});this.processing=!0;const B={Name:this.username,Pwd:this.password,IsRemember:this.rememberMe?1:0};this.rememberMe?this.cookieService.set(Fo.p.REMEBERME_COOKIE,this.username,(new Date).getDate()+10):this.cookieService.delete(Fo.p.REMEBERME_COOKIE),this.securityQuestionsRequired?this.accountService.validateUserAccount(B).pipe((0,Ni.R)(this.destroyActions)).subscribe(J=>{"success"===J.type?this.navigateToSecurityQuestions(B):"redirect"===J.type?this.navigationService.navigate(this.apiRef.vDir+J.url):(this.messageService.clear(),this.messageService.add({severity:"error",summary:J.message,closable:!1}))},J=>{0!==J.status&&this.messageService.add({severity:"error",summary:J,closable:!1})}):this.accountService.loginToACA(B).pipe((0,Ni.R)(this.destroyActions)).subscribe(J=>{if(J.forcePasswordChange&&(J.url=Fo.p.CHANGE_PASSWORD_ROUTE+`&userID=${this.username}`),(0,Ro.L)(this.returnURL))J.url=this.apiRef.vDir+J.url;else if(this.returnURL.includes("module"))J.url=this.returnURL;else{const ve=this.returnURL.indexOf("?");J.url=this.returnURL+(ve<0?"?":"&")+`module=${this.moduleParam??""}`}"success"===J.type||"redirect"===J.type?this.navigationService.navigate(J.url):"error"===J.type&&(this.messageService.clear(),this.messageService.add({severity:"error",summary:J.message,closable:!1}))},J=>{0!==J.status&&this.messageService.add({severity:"error",summary:J,closable:!1})}),this.processing=!1}newUserRegistration(S){this.adminMode||this.navigationService.navigateRoute(this.licenseRequiredForRegistration?"account/register-declare-license":"account/new")}navigateToSecurityQuestions(S){this.store.dispatch(zs({LoggedInUser:S}));const J=[{Key:"userData",Value:encodeURI(this.encryptionService.encryptObjRabbit(S))},{Key:Fo.p.RETURN_URL,Value:encodeURIComponent(this.returnURL)??""}];this.activatedRoute.snapshot.queryParamMap.get("OpenCities")&&J.unshift({Key:"OpenCities",Value:"true"}),(0,Ro.L)(this.moduleParam)||J.push({Key:"module",Value:this.moduleParam??""}),this.navigationService.navigateRoute("login-questions",J)}adminSelection(S,B){if(this.adminMode){switch(this.adminSelectedControl=B,this.adminSelectedControl){case"username":this.selectedDto=this.userNameControlDto;break;case"passwordRequired":this.selectedDto=this.passwordControlDto;break;case"rememberMeControl":this.selectedDto=this.rememeberMeDto}this.adminUpdatePanel.container||(this.adminUpdatePanel.container=this.adminUpdatePanel.el.nativeElement.firstElementChild),this.displayAdminOverlay=!0}}submitAdminContentUpdate(S){let B="";switch(this.adminSelectedControl){case"username":B="acc_sign_label_username";break;case"passwordRequired":B="acc_sign_label_password"}this.pageLayoutService.saveLabelArray([{Key:B,Value:S.label},{Key:`${B}|sub`,Value:S.tooltip},{Key:`${B}|watermark`,Value:S.placeholder}],this.viewId,"","","").subscribe(ve=>console.log(ve)),this.loadDbLocalization(),this.displayAdminOverlay=!1}ngOnDestroy(){this.customScriptService.removeTrackedElements(),this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(B){return new(B||j)(i.Y36(Dr.q),i.Y36(xr.B),i.Y36(Kr.R),i.Y36(Xr.p),i.Y36(ps.o),i.Y36(fo.gz),i.Y36(i.Qsj),i.Y36(zr.f),i.Y36(Qo.ez),i.Y36(br.C),i.Y36(zn.yh),i.Y36(Z.N),i.Y36(Ns.X))};static \u0275cmp=i.Xpm({type:j,selectors:[["aca-login-panel"]],viewQuery:function(B,J){if(1&B&&i.Gf(Li,5),2&B){let ve;i.iGM(ve=i.CRH())&&(J.adminUpdatePanel=ve.first)}},outputs:{broadcastMessage:"message",selectionEvent:"selectionEvent"},decls:50,vars:29,consts:function(){let S,B,J,ve,ke,tt,Ct,It,dn,bn,ri,ii;return S="Sign In",B="Default Label",J="Label Content",ve="Submit",ke="Forgot Password?",tt="Sign In",Ct="Remember me on this device",It="Tooltip Content",dn="Watermark Content",bn="Are you a licensed professional?",ri="Not Registered?",ii=" Create an Account",[[3,"ngSubmit"],[1,"col-12","signin-xlarge"],S,[1,"textinput","accelaControl","col-12",3,"click"],["name","username","id","username","type","text","pInputText","","inputTrim","","aria-required","true","tooltipPosition","bottom","tooltipEvent","hover|focus",3,"ngModel","disabled","placeholder","accelaTooltip","escape","ngModelChange"],["for","username","data-required","true"],["name","password","id","passwordRequired","type","password","pPassword","","aria-required","true","tooltipPosition","bottom","tooltipEvent","hover|focus",3,"ngModel","disabled","feedback","placeholder","accelaTooltip","escape","ngModelChange"],["for","passwordRequired","data-required","true"],["modal","true","closable","true","showHeader","false",3,"visible","visibleChange"],["adminOverlay",""],[1,"propertyInput","p-formgroup-inline"],[1,"p-field"],B,["name","DefaultLabelContent","id","DefaultLabelContent","type","text","pInputText","",3,"disabled","value"],["DefaultLabelContent",""],["for","FieldLabelContent","for","FieldLabelContent"],J,["name","FieldLabelContent","id","FieldLabelContent","type","text","pInputText","","autofocus","",3,"ngModel","ngModelChange"],["FieldLabelContent",""],["class","p-field",4,"ngIf"],["type","button","label",ve,"pRipple","",3,"onClicked"],[1,"col-12"],["tabindex","0",1,"col-12","forgotPassLink","pl-1","pointCursor",3,"click","keydown.enter"],ke,["id","captcha","class","col-12 captcha",4,"ngIf"],["pRipple","","label",tt,3,"disabled"],["type","submit","value","submit",2,"visibility","hidden"],["name","cbRememerMe","id","cbRememerMe","label","","pRipple","",3,"disabled","ariaLabel","binary","ngModel","ngModelChange"],["for","cbRememerMe",1,"pl-2"],Ct,[2,"background-color","#e4dddd"],[4,"ngIf","ngIfThen","ngIfElse"],["licenseReqContent",""],["nonLlicenseContent",""],["class","text-center ",4,"ngIf"],["for","FieldTooltip"],It,["name","FieldTooltip","id","FieldTooltip","placeholder","Tooltip Content",3,"ngModel","ngModelChange"],["FieldTooltip",""],["for","FieldWatermark"],dn,["name","FieldWatermark","id","FieldWatermark","type","text","pInputText","",3,"ngModel","ngModelChange"],["FieldWatermark",""],["id","captcha",1,"col-12","captcha"],[3,"RecaptchaPublicKey","verifyUser"],[1,"text-center"],bn,ri,[1,"pointCursor"],["tabindex","0",1,"text-upper","footerText",3,"keydown.enter","click"],ii]},template:function(B,J){if(1&B&&(i.TgZ(0,"form",0),i.NdJ("ngSubmit",function(ke){return J.login(ke)}),i.TgZ(1,"div",1),i.SDv(2,2),i.qZA(),i.TgZ(3,"div",3),i.NdJ("click",function(ke){return J.adminSelection(ke,"username")}),i.TgZ(4,"input",4),i.NdJ("ngModelChange",function(ke){return J.username=ke}),i.qZA(),i.TgZ(5,"label",5),i._uU(6),i.qZA()(),i.TgZ(7,"div",3),i.NdJ("click",function(ke){return J.adminSelection(ke,"passwordRequired")}),i.TgZ(8,"input",6),i.NdJ("ngModelChange",function(ke){return J.password=ke}),i.qZA(),i.TgZ(9,"label",7),i._uU(10),i.qZA()(),i.TgZ(11,"p-dialog",8,9),i.NdJ("visibleChange",function(ke){return J.displayAdminOverlay=ke}),i.TgZ(13,"div",10)(14,"div",11)(15,"label"),i.SDv(16,12),i.qZA(),i._UZ(17,"input",13,14),i.qZA()(),i.TgZ(19,"div",10)(20,"div",11)(21,"label",15),i.SDv(22,16),i.qZA(),i.TgZ(23,"input",17,18),i.NdJ("ngModelChange",function(ke){return J.selectedDto.label=ke}),i.qZA()()(),i.TgZ(25,"div",10),i.YNc(26,Ci,5,1,"div",19),i.qZA(),i.TgZ(27,"div",10),i.YNc(28,uo,5,1,"div",19),i.qZA(),i.TgZ(29,"div")(30,"accela-button-primary",20),i.NdJ("onClicked",function(){return J.submitAdminContentUpdate(J.selectedDto)}),i.qZA()()(),i.TgZ(31,"div",21)(32,"a",22),i.NdJ("click",function(ke){return J.forgotPassword(ke)})("keydown.enter",function(ke){return J.forgotPassword(ke)}),i.SDv(33,23),i.qZA()(),i.YNc(34,Vi,2,1,"div",24),i.TgZ(35,"div",21),i._UZ(36,"accela-button-primary",25)(37,"input",26),i.qZA(),i.TgZ(38,"div",21)(39,"p-checkbox",27),i.NdJ("ngModelChange",function(ke){return J.rememberMe=ke}),i.qZA(),i.TgZ(40,"label",28),i.SDv(41,29),i.qZA()(),i._UZ(42,"accela-separator",30),i.qZA(),i.TgZ(43,"p-footer"),i.YNc(44,mo,1,0,"div",31),i.YNc(45,_r,2,0,"ng-template",null,32,i.W1O),i.YNc(47,zo,2,0,"ng-template",null,33,i.W1O),i.YNc(49,Ar,4,0,"p",34),i.qZA()),2&B){const ve=i.MAs(46),ke=i.MAs(48);i.xp6(4),i.Q6J("ngModel",J.username)("disabled",!1)("placeholder",J.userNamePlaceHolder)("accelaTooltip",J.userNameControlDto.tooltip)("escape",!1),i.xp6(2),i.Oqu(J.userNameControlDto.label),i.xp6(2),i.Q6J("ngModel",J.password)("disabled",!1)("feedback",!1)("placeholder",J.passwordPlaceHolder)("accelaTooltip",J.passwordControlDto.tooltip)("escape",!1),i.xp6(2),i.Oqu(J.passwordControlDto.label),i.xp6(1),i.Q6J("visible",J.displayAdminOverlay),i.xp6(6),i.Q6J("disabled",!0)("value",J.selectedDto.defaultLabel),i.xp6(6),i.Q6J("ngModel",J.selectedDto.label),i.xp6(3),i.Q6J("ngIf","rememberMeControl"!==J.selectedDto.name),i.xp6(2),i.Q6J("ngIf","rememberMeControl"!==J.selectedDto.name),i.xp6(6),i.Q6J("ngIf",J.recaptchaLoaded&&(null==J.RecaptchaInfo?null:J.RecaptchaInfo.IsCaptchaEnabledForLogin)),i.xp6(2),i.Q6J("disabled",!J.recaptchaLoaded||J.adminMode),i.xp6(3),i.Q6J("disabled",J.adminMode)("ariaLabel",J.rememeberMeDto.label)("binary",!0)("ngModel",J.rememberMe),i.xp6(5),i.Q6J("ngIf",J.licenseRequiredForRegistration)("ngIfThen",ve)("ngIfElse",ke),i.xp6(5),i.Q6J("ngIf",J.showRegistrationLinks)}},dependencies:[We.O5,Pi._Y,Pi.Fj,Pi.JJ,Pi.JL,Pi.On,Pi.F,Qo.$_,ge.XZ,te.V,xe.ML,it.o,Lt.QK,Nr.s,Yt.y,Gn._,Gi.E,Zi.w],styles:["[_nghost-%COMP%]     p-header>h1{padding-top:1em;padding-right:1em;padding-left:1em}.loginPanel[_ngcontent-%COMP%]{display:block;height:80vw}.forgotPassLink[_ngcontent-%COMP%]{text-align:left}.p-inputtext[_ngcontent-%COMP%]{width:100%}.textinput[_ngcontent-%COMP%]{margin-bottom:1rem}.textinput[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{top:.8rem}.p-card-footer[_ngcontent-%COMP%]{border-top:1px black}.pointCursor[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]     .p-button, p-button[_ngcontent-%COMP%]{width:100%;text-align:center}[_nghost-%COMP%]     .buttonText{width:100%}[_nghost-%COMP%]     .forgotPassLink, [_nghost-%COMP%]     .footerText{color:#0074d9!important}[_nghost-%COMP%]     .p-dialog{height:99%;max-height:99%}[_nghost-%COMP%]     .captcha{padding:0;max-width:19em}.text-upper[_ngcontent-%COMP%]{text-transform:uppercase}.text-center[_ngcontent-%COMP%]{text-align:center;margin:1em 0}.signin-xlarge[_ngcontent-%COMP%]{font-size:x-large;margin-bottom:.6em}[_nghost-%COMP%]     .p-dialog .p-dialog-content{height:100%;width:100%;overflow:visible}\n/*# sourceMappingURL=login-panel.component.css.map*/"]})}return j})();var po=l(635);const yr="api/config/serverConfig";let Po=(()=>{class j{http;apiRef;apiServerUrl;constructor(S,B){this.http=S,this.apiRef=B,this.apiServerUrl=this.apiRef.getApiUrl(yr)}get(){return this.http.get(this.apiServerUrl).pipe((0,po.U)(S=>S.result))}static \u0275fac=function(B){return new(B||j)(i.LFG(wo.eN),i.LFG(Dr.q))};static \u0275prov=i.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})();var gs=l(7344);let Wa=(()=>{class j{http;apiUrl;constructor(S){this.http=S}getSSORedirectUrl(S){this.apiUrl=S.cloudAPIUrl+"/api/sso/login/saml?serviceProviderCode="+S.servProvCode;var B={agency:S.servProvCode,application:"ACA",environment:S.environmentName};let J=(new wo.WM).append("tenantName",S.tenantName);return this.http.post(this.apiUrl,B,{headers:J}).pipe((0,po.U)(ve=>ve.result))}static \u0275fac=function(B){return new(B||j)(i.LFG(wo.eN))};static \u0275prov=i.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})(),_s=(()=>{class j{serverConfigService;apiRef;ssoService;navigationService;ssoConfigService;store;adminMode;idpInfoLoaded=!1;idpInfoUrl;returnURL;destroyActions=new wr.x;constructor(S,B,J,ve,ke,tt){this.serverConfigService=S,this.apiRef=B,this.ssoService=J,this.navigationService=ve,this.ssoConfigService=ke,this.store=tt}ngOnInit(){this.store.select(gr.e).pipe((0,Ni.R)(this.destroyActions)).subscribe({next:J=>{this.adminMode=J.AdminMode,this.adminMode||this.serverConfigService.get().pipe((0,Ni.R)(this.destroyActions)).subscribe(ve=>{this.getSSORedirectUrlInfo(ve)})}});const B=new URLSearchParams(this.apiRef.nativeWindow.location.search).get(Fo.p.RETURN_URL)?.trim();if(!(0,Ro.L)(B)){const J=this.apiRef.nativeWindow.location.search;this.returnURL=decodeURIComponent(J.substring(J.indexOf(Fo.p.RETURN_URL)+10)),this.ssoService.cacheRedirectUrl(this.returnURL).pipe((0,Ni.R)(this.destroyActions)).subscribe()}}getSSORedirectUrlInfo(S){this.ssoConfigService.getSSORedirectUrl(S).pipe((0,Ni.R)(this.destroyActions)).subscribe(B=>{B&&(this.idpInfoUrl=B.redirectUrl,this.idpInfoLoaded=!0)})}signInBtnClick(){this.idpInfoUrl&&this.navigationService.navigateTopPage(this.idpInfoUrl)}newUserRegistration(S){this.idpInfoUrl&&this.navigationService.navigateTopPage(this.idpInfoUrl)}ngOnDestroy(){this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(B){return new(B||j)(i.Y36(Po),i.Y36(Dr.q),i.Y36(gs.d),i.Y36(zr.f),i.Y36(Wa),i.Y36(zn.yh))};static \u0275cmp=i.Xpm({type:j,selectors:[["aca-sso-login-panel"]],decls:16,vars:2,consts:function(){let S,B,J,ve,ke;return S="Sign In",B="Sign In",J="You'll be redirected to another site where you can register or sign in using our new Single Sign-on experience.",ve="Not Registered?",ke=" Create an Account",[[1,"col-12","signin-xlarge"],S,[1,"col-12"],["pRipple","","icon","accelicons accelicons-open-in","btnClass","text-upper","iconPos","right","label",B,3,"disabled","onClicked"],[1,"col-12","pr-4"],[1,""],J,[2,"background-color","#e4dddd"],[1,"text-center","text-bold","pt-2"],ve,[1,"text-center"],[3,"ngClass"],["tabindex","0",1,"text-upper","footerText",3,"keydown.enter","click"],ke]},template:function(B,J){1&B&&(i.TgZ(0,"div")(1,"div",0),i.SDv(2,1),i.qZA(),i.TgZ(3,"div",2)(4,"accela-button-primary",3),i.NdJ("onClicked",function(){return J.signInBtnClick()}),i.qZA()(),i.TgZ(5,"div",4)(6,"label",5),i.SDv(7,6),i.qZA()(),i._UZ(8,"accela-separator",7),i.TgZ(9,"p-footer")(10,"div",8),i.SDv(11,9),i.qZA(),i.TgZ(12,"p",10)(13,"a",11)(14,"span",12),i.NdJ("keydown.enter",function(ke){return J.newUserRegistration(ke)})("click",function(ke){return J.newUserRegistration(ke)}),i.SDv(15,13),i.qZA()()()()()),2&B&&(i.xp6(4),i.Q6J("disabled",!(J.idpInfoLoaded&&!J.adminMode)),i.xp6(9),i.Q6J("ngClass",J.idpInfoLoaded?"pointCursor":"disabled"))},dependencies:[We.mk,Qo.$_,Nr.s,Yt.y],styles:[".text-center[_ngcontent-%COMP%]{text-align:center;margin:1em 0}.text-bold[_ngcontent-%COMP%]{font-weight:700}.text-upper[_ngcontent-%COMP%]{text-transform:uppercase}.footerText[_ngcontent-%COMP%]{color:#0074d9!important}.signin-xlarge[_ngcontent-%COMP%]{font-size:x-large;margin-bottom:.6em}.pointCursor[_ngcontent-%COMP%]{cursor:pointer}.disabled[_ngcontent-%COMP%]{pointer-events:none!important;cursor:not-allowed;text-decoration:none}"]})}return j})();function ys(j,w){1&j&&i._UZ(0,"div")}function la(j,w){if(1&j){const S=i.EpF();i.TgZ(0,"aca-login-panel",7),i.NdJ("message",function(J){i.CHM(S);const ve=i.oxw(2);return i.KtG(ve.showError(J))}),i.qZA()}}function vr(j,w){if(1&j){const S=i.EpF();i.TgZ(0,"aca-sso-login-panel",7),i.NdJ("message",function(J){i.CHM(S);const ve=i.oxw(2);return i.KtG(ve.showError(J))}),i.qZA()}}function Za(j,w){if(1&j&&(i.TgZ(0,"p-card",3),i.YNc(1,ys,1,0,"div",4),i.YNc(2,la,1,0,"ng-template",null,5,i.W1O),i.YNc(4,vr,1,0,"ng-template",null,6,i.W1O),i.qZA()),2&j){const S=i.MAs(3),B=i.MAs(5),J=i.oxw();i.xp6(1),i.Q6J("ngIf",J.ssoLoginEnabled)("ngIfThen",B)("ngIfElse",S)}}let vs=(()=>{class j{messageService;store;customScriptService;renderer;settingService;adminMode;loadLoginControls=!1;rememberLogin;ssoLoginEnabled;destroyActions=new wr.x;constructor(S,B,J,ve,ke){this.messageService=S,this.store=B,this.customScriptService=J,this.renderer=ve,this.settingService=ke}ngOnInit(){this.settingService.isEnableCustomizationPerPage().pipe((0,Ni.R)(this.destroyActions)).subscribe(S=>{S&&this.customScriptService.loadAndRunCustomScriptBlock(this.renderer,document,"login")}),this.settingService.isACASSOEnabled().pipe((0,Ni.R)(this.destroyActions)).subscribe(S=>{this.ssoLoginEnabled=S,this.loadLoginControls=!0})}showError(S){this.messageService.add({severity:"error",summary:"Login Error",detail:S,closable:!1})}ngOnDestroy(){this.customScriptService.removeTrackedElements(),this.destroyActions.next(null),this.destroyActions.complete()}static \u0275fac=function(B){return new(B||j)(i.Y36(Qo.ez),i.Y36(zn.yh),i.Y36(Ns.X),i.Y36(i.Qsj),i.Y36(Kr.R))};static \u0275cmp=i.Xpm({type:j,selectors:[["app-login-screen"]],inputs:{adminMode:"adminMode"},decls:4,vars:1,consts:[["alertComponent",""],[1,"loginBackground"],["class","loginPanel p-grid","styleClass","app-frame accela-theme",4,"ngIf"],["styleClass","app-frame accela-theme",1,"loginPanel","p-grid"],[4,"ngIf","ngIfThen","ngIfElse"],["loginpanel",""],["ssoLoginpanel",""],[3,"message"]],template:function(B,J){1&B&&(i._UZ(0,"aca-alert-message",null,0),i.TgZ(2,"div",1),i.YNc(3,Za,6,3,"p-card",2),i.qZA()),2&B&&(i.xp6(3),i.Q6J("ngIf",J.loadLoginControls))},dependencies:[We.O5,Qr.Z,$s.z,Ko,_s],styles:[".accela-theme[_ngcontent-%COMP%]   .textinput[_ngcontent-%COMP%]   .p-inputtext[_ngcontent-%COMP%]{width:95%}[_nghost-%COMP%]     .p-card .p-card-body{padding:0!important;text-align:left}"]})}return j})();function Ks(j,w){1&j&&(i.TgZ(0,"h1"),i._uU(1,"404: Page not found"),i.qZA())}function ca(j,w){}const es=[{path:"login",component:vs},{path:"login-panel",component:vs},{path:"login-questions",component:Wi},{path:"account",loadChildren:()=>Promise.resolve().then(l.bind(l,3684)).then(j=>j.UserManagementModule)},{path:"apo",loadChildren:()=>Promise.resolve().then(l.bind(l,9440)).then(j=>j.APOModule)},{path:".aspx",redirectTo:"/login",pathMatch:"full"},{path:"",redirectTo:"/login",pathMatch:"full"},{path:"**",pathMatch:"full",component:(()=>{class j{apiRef;constructor(S){this.apiRef=S}ngOnInit(){}goToHome(){window.location.href=this.apiRef.vDir}static \u0275fac=function(B){return new(B||j)(i.Y36(Dr.q))};static \u0275cmp=i.Xpm({type:j,selectors:[["unkown-route-screen"]],decls:6,vars:0,consts:[["styleClass","app-frame"],["pTemplate","header"],[3,"click"],["pTemplate","footer"]],template:function(B,J){1&B&&(i.TgZ(0,"p-card",0),i.YNc(1,Ks,2,0,"ng-template",1),i.TgZ(2,"div")(3,"span",2),i.NdJ("click",function(){return J.goToHome()}),i._uU(4,"It looks like we could find this page. Would you like to go to the home page?"),i.qZA()(),i.YNc(5,ca,0,0,"ng-template",3),i.qZA())},dependencies:[Qr.Z,Qo.jx],styles:["[_nghost-%COMP%]     .p-card{min-height:80em}h1[_ngcontent-%COMP%]{margin:2em}span[_ngcontent-%COMP%]{font-weight:200;color:#00f}\n/*# sourceMappingURL=unkown-route-screen.component.css.map*/"]})}return j})()}];let Ya=(()=>{class j{static \u0275fac=function(B){return new(B||j)};static \u0275mod=i.oAB({type:j});static \u0275inj=i.cJS({imports:[fo.Bz.forRoot(es,{}),fo.Bz]})}return j})();var Lr=l(7155);let Fs=(()=>{class j{activatedRoute;store;title="Accela CommunityView";embedded;settings;constructor(S,B){this.activatedRoute=S,this.store=B}resetSessionTimer(S){window.parent.postMessage("CommunityView:ResetSessionClock","*")}ngOnInit(){const S=new URLSearchParams(window.location.search);this.embedded="true"===S.get("inLegacyUI")?.trim().toLowerCase();const B=S.get("isAdmin")?.toUpperCase();this.settings={AdminMode:B&&("Y"===B||"YES"===B),embedMode:"true"===S.get("Embed")?.toLowerCase()||!1,licenseRequiredForRegistration:null,licenseRequiredForRegistrationSet:!1},this.store.dispatch((0,Lr.Pl)(this.settings))}static \u0275fac=function(B){return new(B||j)(i.Y36(fo.gz),i.Y36(zn.yh))};static \u0275cmp=i.Xpm({type:j,selectors:[["app-root"]],hostBindings:function(B,J){1&B&&i.NdJ("mousemove",function(ke){return J.resetSessionTimer(ke)},!1,i.evT)("keyup",function(ke){return J.resetSessionTimer(ke)},!1,i.evT)},decls:3,vars:1,consts:[[1,"accela-theme",3,"ngClass"]],template:function(B,J){1&B&&(i._UZ(0,"aca-alert-message"),i.TgZ(1,"div",0),i._UZ(2,"router-outlet"),i.qZA()),2&B&&(i.xp6(1),i.Q6J("ngClass",J.embedded?"embeddedBackground":"background"))},dependencies:[We.mk,fo.lC,$s.z],styles:['[_nghost-%COMP%]     div.ng-invalid{margin-left:.5em;margin-right:.5em}[_nghost-%COMP%]     .validationFeedback small, [_nghost-%COMP%]     .validationFeedback label{color:#bc2f46}[_nghost-%COMP%]     .textinput .ng-invalid.ng-dirty.p-inputtext{border:1px solid #BC2F46!important}[_nghost-%COMP%]     .background{background-color:#f5f5f5;padding:10% 30%;height:100%;width:100%}[_nghost-%COMP%]     .embeddedBackground{padding-top:1em;padding-bottom:1em;height:100%;width:100%}[_nghost-%COMP%]     .p-card.app-frame{width:auto!important;height:auto!important;margin-left:auto!important;margin-right:auto}[_nghost-%COMP%]     .p-card{background-color:#fff}[_nghost-%COMP%]     .p-card .p-card-body{padding:1.25em!important;text-align:left}[_nghost-%COMP%]     .p-card .p-card-body i{font-size:1rem}[_nghost-%COMP%]     .p-tooltip-text p{color:#fff!important}.p-card.app-frame[_ngcontent-%COMP%]   .p-button[_ngcontent-%COMP%]{padding:.429rem 1rem!important}[_nghost-%COMP%]     .accela-theme .dropdown .p-dropdown{width:100%;max-width:100%}[_nghost-%COMP%]     .ACA_Title_Bar{border-bottom:none;padding-bottom:0;margin-bottom:0}[_nghost-%COMP%]     .textinput input.ng-invalid.ng-pristine+label{color:#000}[_nghost-%COMP%]     .textinput label[data-required=true]:after, [_nghost-%COMP%]     .textarea label[data-required=true]:after{content:" \\ea21";color:#a52652;font-family:accelicons}[_nghost-%COMP%]     div.accelaControl{margin-top:1em;margin-bottom:.5em;margin-right:0rem!important;margin-left:0rem!important;padding:0!important}[_nghost-%COMP%]     fieldset.accelaControl{margin-top:1em;margin-bottom:.5em;margin-right:0rem!important;margin-left:0rem!important}[_nghost-%COMP%]     .p-card .p-card-header{padding:1em 2.5em;text-align:left}[_nghost-%COMP%]     .p-dropdown{border-radius:4px}[_nghost-%COMP%]     .p-dropdown .p-dropdown-clear-icon{font-size:1rem;font-weight:700;color:#848484;right:3rem;margin-top:-.6rem}[_nghost-%COMP%]     .p-overlaypanel{transform-origin:center bottom;top:auto}[_nghost-%COMP%]     .p-dropdown-panel .p-dropdown-item:before{left:0!important}[_nghost-%COMP%]     .p-overlaypanel, [_nghost-%COMP%]     .p-overlaypanel-content, [_nghost-%COMP%]     .p-sidebar .p-sidebar-content{overflow-x:visible;background-color:#fff;height:inherit!important;z-index:20}[_nghost-%COMP%]     .p-overlaypanel{padding:.5em}[_nghost-%COMP%]     .p-overlaypanel .p-overlaypanel-close{background:#007ad9;color:#fff;width:2rem;height:2rem;transition:background-color .2s,color .2s,box-shadow .2s;border-radius:50%;position:absolute;top:-1rem;right:-1rem}[_nghost-%COMP%]     .p-button.p-button-outlined{background-color:transparent!important;border:1px solid!important}[_nghost-%COMP%]     p-inputmask.ng-dirty.ng-invalid>.p-inputtext, [_nghost-%COMP%]     p-calendar.ng-dirty.ng-invalid>.p-calendar>.p-inputtext, [_nghost-%COMP%]     p-inputnumber.ng-dirty.ng-invalid>.p-inputnumber>.p-inputtext, [_nghost-%COMP%]     textarea.ng-dirty.ng-invalid{border:1px solid #bc2f46!important}@media only screen and (max-device-width: 768px),(max-width: 768px){[_nghost-%COMP%]     .background{background-color:#f5f5f5;padding:5% 6%;height:100%;width:100%}}[_nghost-%COMP%]     .textinput input.ng-invalid+label{color:#000!important}@media only screen and (min-device-width: 769px),(min-width: 769px){[_nghost-%COMP%]     .background{background-color:#f5f5f5;padding:5% 6%;height:100%;width:100%}}@media only screen and (max-device-width: 660px),(max-width: 600px){[_nghost-%COMP%]     .p-card{min-width:100%}[_nghost-%COMP%]     .p-card.app-frame{min-width:auto}[_nghost-%COMP%]     .background{padding:0;height:100%;width:100%}}']})}return j})();l(5242);var pa=l(6646),Es=l(833),oo=l(1944),jr=l(3945),Us=l(9635),ts=l(591),js=l(745),qa=l(5474),fa=l(2971);class dr{constructor(w,S,B){this.kind=w,this.value=S,this.error=B,this.hasValue="N"===w}observe(w){return bs(this,w)}do(w,S,B){const{kind:J,value:ve,error:ke}=this;return"N"===J?w?.(ve):"E"===J?S?.(ke):B?.()}accept(w,S,B){var J;return(0,fa.m)(null===(J=w)||void 0===J?void 0:J.next)?this.observe(w):this.do(w,S,B)}toObservable(){const{kind:w,value:S,error:B}=this,J="N"===w?(0,js.of)(S):"E"===w?(0,qa._)(()=>B):"C"===w?ts.E:0;if(!J)throw new TypeError(`Unexpected notification kind ${w}`);return J}static createNext(w){return new dr("N",w)}static createError(w){return new dr("E",void 0,w)}static createComplete(){return dr.completeNotification}}function bs(j,w){var S,B,J;const{kind:ve,value:ke,error:tt}=j;if("string"!=typeof ve)throw new TypeError('Invalid notification, missing "kind"');"N"===ve?null===(S=w.next)||void 0===S||S.call(w,ke):"E"===ve?null===(B=w.error)||void 0===B||B.call(w,tt):null===(J=w.complete)||void 0===J||J.call(w)}dr.completeNotification=new dr("C");var kr=l(3158),rr=l(116),Ws=l(4987);function Ss(j,w,S,B){return(0,oo.e)((J,ve)=>{let ke;w&&"function"!=typeof w?({duration:S,element:ke,connector:B}=w):ke=w;const tt=new Map,Ct=Sn=>{tt.forEach(Sn),Sn(ve)},It=Sn=>Ct(Bn=>Bn.error(Sn));let dn=0,bn=!1;const ri=new jr.Q(ve,Sn=>{try{const Bn=j(Sn);let Ti=tt.get(Bn);if(!Ti){tt.set(Bn,Ti=B?B():new wr.x);const $i=function ii(Sn,Bn){const Ti=new Es.y($i=>{dn++;const Qi=Bn.subscribe($i);return()=>{Qi.unsubscribe(),0==--dn&&bn&&ri.unsubscribe()}});return Ti.key=Sn,Ti}(Bn,Ti);if(ve.next($i),S){const Qi=(0,jr.x)(Ti,()=>{Ti.complete(),Qi?.unsubscribe()},void 0,void 0,()=>tt.delete(Bn));ri.add((0,Ws.Xf)(S($i)).subscribe(Qi))}}Ti.next(ke?ke(Sn):Sn)}catch(Bn){It(Bn)}},()=>Ct(Sn=>Sn.complete()),It,()=>tt.clear(),()=>(bn=!0,0===dn));J.subscribe(ri)})}var Xo=l(9525);function Zs(j,w){return w?S=>S.pipe(Zs((B,J)=>(0,Ws.Xf)(j(B,J)).pipe((0,po.U)((ve,ke)=>w(B,ve,J,ke))))):(0,oo.e)((S,B)=>{let J=0,ve=null,ke=!1;S.subscribe((0,jr.x)(B,tt=>{ve||(ve=(0,jr.x)(B,void 0,()=>{ve=null,ke&&B.complete()}),(0,Ws.Xf)(j(tt,J++)).subscribe(ve))},()=>{ke=!0,!ve&&B.complete()}))})}var to=l(9295);const Nc={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Bs="__@ngrx/effects_create__";function el(j){return Object.getPrototypeOf(j)}function ga(j){return"function"==typeof j}function tl(j){return j.filter(ga)}function Do(j,w,S){const B=el(j).constructor.name,J=function Xa(j){return function ma(j){return Object.getOwnPropertyNames(j).filter(B=>!(!j[B]||!j[B].hasOwnProperty(Bs))&&j[B][Bs].hasOwnProperty("dispatch")).map(B=>({propertyName:B,...j[B][Bs]}))}(j)}(j).map(({propertyName:ve,dispatch:ke,useEffectsErrorHandler:tt})=>{const Ct="function"==typeof j[ve]?j[ve]():j[ve],It=tt?S(Ct,w):Ct;return!1===ke?It.pipe(function ha(){return(0,oo.e)((j,w)=>{j.subscribe((0,jr.x)(w,Us.Z))})}()):It.pipe(function xo(){return(0,oo.e)((j,w)=>{j.subscribe((0,jr.x)(w,S=>{w.next(dr.createNext(S))},()=>{w.next(dr.createComplete()),w.complete()},S=>{w.next(dr.createError(S)),w.complete()}))})}()).pipe((0,po.U)(bn=>({effect:j[ve],notification:bn,propertyName:ve,sourceName:B,sourceInstance:j})))});return(0,pa.T)(...J)}const _a=10;function Mr(j,w,S=_a){return j.pipe((0,kr.K)(B=>(w&&w.handleError(B),S<=1?j:Mr(j,w,S-1))))}let Ol=(()=>{class j extends Es.y{constructor(S){super(),S&&(this.source=S)}lift(S){const B=new j;return B.source=this,B.operator=S,B}}return j.\u0275fac=function(S){return new(S||j)(i.LFG(zn.Y$))},j.\u0275prov=i.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})();const Fr=new i.OlP("@ngrx/effects Internal Root Guard"),Ms=new i.OlP("@ngrx/effects User Provided Effects"),is=new i.OlP("@ngrx/effects Internal Root Effects"),os=new i.OlP("@ngrx/effects Internal Root Effects Instances"),ya=new i.OlP("@ngrx/effects Internal Feature Effects"),nl=new i.OlP("@ngrx/effects Internal Feature Effects Instance Groups"),il=new i.OlP("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>Mr}),ol="@ngrx/effects/init";(0,zn.PH)(ol);const x="ngrxOnIdentifyEffects",Le="ngrxOnInitEffects";function vt(j){return Wt(j,Le)}function Wt(j,w){return j&&w in j&&"function"==typeof j[w]}let wn=(()=>{class j extends wr.x{constructor(S,B){super(),this.errorHandler=S,this.effectsErrorHandler=B}addEffects(S){this.next(S)}toActions(){return this.pipe(Ss(S=>function ns(j){return"Object"!==j.constructor.name&&"Function"!==j.constructor.name}(S)?el(S):S),(0,Xo.z)(S=>S.pipe(Ss(In))),(0,Xo.z)(S=>{const B=S.pipe(Zs(ve=>function xi(j,w){return S=>{const B=Do(S,j,w);return function Te(j){return Wt(j,"ngrxOnRunEffects")}(S)?S.ngrxOnRunEffects(B):B}}(this.errorHandler,this.effectsErrorHandler)(ve)),(0,po.U)(ve=>(function Ys(j,w){if("N"===j.notification.kind){const S=j.notification.value;!function Ts(j){return"function"!=typeof j&&j&&j.type&&"string"==typeof j.type}(S)&&w.handleError(new Error(`Effect ${function R({propertyName:j,sourceInstance:w,sourceName:S}){const B="function"==typeof w[j];return`"${S}.${String(j)}${B?"()":""}"`}(j)} dispatched an invalid action: ${function U(j){try{return JSON.stringify(j)}catch{return j}}(S)}`))}}(ve,this.errorHandler),ve.notification)),(0,rr.h)(ve=>"N"===ve.kind&&null!=ve.value),function Ja(){return(0,oo.e)((j,w)=>{j.subscribe((0,jr.x)(w,S=>bs(S,w)))})}()),J=S.pipe((0,to.q)(1),(0,rr.h)(vt),(0,po.U)(ve=>ve.ngrxOnInitEffects()));return(0,pa.T)(B,J)}))}}return j.\u0275fac=function(S){return new(S||j)(i.LFG(i.qLn),i.LFG(il))},j.\u0275prov=i.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})();function In(j){return function K(j){return Wt(j,x)}(j)?j.ngrxOnIdentifyEffects():""}let go=(()=>{class j{constructor(S,B){this.effectSources=S,this.store=B,this.effectsSubscription=null}get isStarted(){return!!this.effectsSubscription}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return j.\u0275fac=function(S){return new(S||j)(i.LFG(wn),i.LFG(zn.yh))},j.\u0275prov=i.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),ar=(()=>{class j{constructor(S,B,J,ve,ke,tt,Ct){this.sources=S,B.start();for(const It of ve)S.addEffects(It);J.dispatch({type:ol})}addEffects(S){this.sources.addEffects(S)}}return j.\u0275fac=function(S){return new(S||j)(i.LFG(wn),i.LFG(go),i.LFG(zn.yh),i.LFG(os),i.LFG(zn.cr,8),i.LFG(zn.CK,8),i.LFG(Fr,8))},j.\u0275mod=i.oAB({type:j}),j.\u0275inj=i.cJS({}),j})(),Or=(()=>{class j{constructor(S,B,J,ve){const ke=B.flat();for(const tt of ke)S.addEffects(tt)}}return j.\u0275fac=function(S){return new(S||j)(i.LFG(ar),i.LFG(nl),i.LFG(zn.cr,8),i.LFG(zn.CK,8))},j.\u0275mod=i.oAB({type:j}),j.\u0275inj=i.cJS({}),j})(),Ur=(()=>{class j{static forFeature(...S){const B=S.flat(),J=tl(B);return{ngModule:Or,providers:[J,{provide:ya,multi:!0,useValue:B},{provide:Ms,multi:!0,useValue:[]},{provide:nl,multi:!0,useFactory:Uo,deps:[ya,Ms]}]}}static forRoot(...S){const B=S.flat(),J=tl(B);return{ngModule:ar,providers:[J,{provide:is,useValue:[B]},{provide:Fr,useFactory:qs},{provide:Ms,multi:!0,useValue:[]},{provide:os,useFactory:Uo,deps:[is,Ms]}]}}}return j.\u0275fac=function(S){return new(S||j)},j.\u0275mod=i.oAB({type:j}),j.\u0275inj=i.cJS({}),j})();function Uo(j,w){const S=[];for(const B of j)S.push(...B);for(const B of w)S.push(...B);return S.map(B=>ga(B)?(0,i.f3M)(B):B)}function qs(){const j=(0,i.f3M)(go,{optional:!0,skipSelf:!0}),w=(0,i.f3M)(is,{self:!0});if((1!==w.length||0!==w[0].length)&&j)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var Vs=l(538),Qs=l(2673),Rl=l(508);let Vd=(()=>{class j{actions$;store;settingsService;errorHandler;getLicenseRequiredForRegistration$;constructor(S,B,J,ve){this.actions$=S,this.store=B,this.settingsService=J,this.errorHandler=ve,this.getLicenseRequiredForRegistration$=function Qa(j,w={}){const S=w.functional?j:j(),B={...Nc,...w};return Object.defineProperty(S,Bs,{value:B}),S}(()=>this.actions$.pipe(function sr(...j){return(0,rr.h)(w=>j.some(S=>"string"==typeof S?S===w.type:S.type===w.type))}(Lr.Pl),(0,Vs.M)(this.store.select(gr.e),(ke,tt)=>({act:ke,state:tt})),(0,po.U)(({state:tt})=>tt),(0,Qs.w)(ke=>ke.licenseRequiredForRegistrationSet?(0,js.of)(ke):this.settingsService.isLicenseRequiredForRegistration().pipe((0,po.U)(tt=>({...ke,licenseRequiredForRegistrationSet:!0,licenseRequiredForRegistration:tt})))),(0,po.U)(ke=>(0,Lr.s7)(ke)),(0,kr.K)(this.errorHandler.handleError)))}static \u0275fac=function(B){return new(B||j)(i.LFG(Ol),i.LFG(zn.yh),i.LFG(Kr.R),i.LFG(Rl.k))};static \u0275prov=i.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})();var Pl=l(2533),kc=l(8547),Hd=l(9440),Fc=l(3684);function Nl(j,w,S,B,J,ve,ke){try{var tt=j[ve](ke),Ct=tt.value}catch(It){return void S(It)}tt.done?w(Ct):Promise.resolve(Ct).then(B,J)}function Ll(j){return function(){var w=this,S=arguments;return new Promise(function(B,J){var ve=j.apply(w,S);function ke(Ct){Nl(ve,B,J,ke,tt,"next",Ct)}function tt(Ct){Nl(ve,B,J,ke,tt,"throw",Ct)}ke(void 0)})}}var va=l(7400),kl=l(4423);function rl(j,w){const S="object"==typeof w;return new Promise((B,J)=>{let ke,ve=!1;j.subscribe({next:tt=>{ke=tt,ve=!0},error:J,complete:()=>{ve?B(ke):S?B(w.defaultValue):J(new kl.K)}})})}var Fl=l(9337);const Uc="[CloudApiBaseUrlToken]";let Ul=(()=>{class j{serverConfigService;errorHandler;cloudApiUrl="";constructor(S,B){this.serverConfigService=S,this.errorHandler=B}intercept(S,B){return(0,va.D)(this.processRequest(S,B))}processRequest(S,B){var J=this;return Ll(function*(){const ve=S.url.toLowerCase(),ke=ve.endsWith(yr.toLowerCase());if(!ke&&!ve.startsWith(Uc.toLowerCase()))return rl(B.handle(S));yield J.setCloudApiUrl(ke);let tt=S.headers;tt=tt.set("Content-Type","application/json"),tt=tt.set("Accept","application/json");const Ct=S.clone({url:S.url.replace(Uc,J.cloudApiUrl),headers:tt});return rl(B.handle(Ct).pipe((0,kr.K)(It=>J.handleError(It,Ct)),(0,Fl.b)(It=>{J.processResponse(It)})))})()}setCloudApiUrl(S){var B=this;return Ll(function*(){if(!S&&""===B.cloudApiUrl){const J=yield rl(B.serverConfigService.get());B.cloudApiUrl=J.cloudAPIUrl}})()}processResponse(S){}handleError(S,B){return this.errorHandler.handleError(S)}static \u0275fac=function(B){return new(B||j)(i.LFG(Po),i.LFG(Rl.k))};static \u0275prov=i.Yz7({token:j,factory:j.\u0275fac})}return j})(),Gd=(()=>{class j{static \u0275fac=function(B){return new(B||j)};static \u0275mod=i.oAB({type:j});static \u0275inj=i.cJS({providers:[{provide:wo.TP,useClass:Ul,multi:!0}],imports:[We.ez]})}return j})();var Bc=l(6745);var Ca=l(9884);const sl=(0,zn.Lq)({},(0,zn.on)(Ca.u$,(j,{PublicUserAccount:w})=>({PublicUserAccount:w})),(0,zn.on)(Ca.yl,(j,{PublicUserAccount:w})=>({...j,PublicUserAccount:w}))),zd=(0,zn.PH)("[ContactModel] Load ContactModels",(0,zn.Ky)()),Kd=((0,zn.PH)("[ContactModel] Load ContactModels Success",(0,zn.Ky)()),(0,zn.PH)("[ContactModel] Load ContactModels Failure",(0,zn.Ky)()),(0,zn.PH)("[ContactModel] Add ContactModels",(0,zn.Ky)())),Bl=((0,zn.PH)("[ContactModel] Add ContactModels Success",(0,zn.Ky)()),(0,zn.PH)("[ContactModel] Add ContactModels Failure",(0,zn.Ky)()),(0,zn.PH)("[ContactModel] Remove ContactModels",(0,zn.Ky)())),Br=((0,zn.PH)("[ContactModel] Remove ContactModels Success",(0,zn.Ky)()),(0,zn.PH)("[ContactModel] Remove ContactModels Failure",(0,zn.Ky)()),(0,zn.Lq)({Contact:null},(0,zn.on)(zd,(j,{Contact:w})=>({Contact:w})),(0,zn.on)(Kd,(j,{Contact:w})=>({...j,Contact:w})),(0,zn.on)(Bl,(j,{Contact:w})=>({Contact:w})))),zc=(0,zn.Lq)({},(0,zn.on)(aa,(j,{LoggedInUser:w})=>({LoggedInUser:w})),(0,zn.on)(zs,(j,{LoggedInUser:w})=>({LoggedInUser:w}))),jc=(0,zn.Lq)({AdminMode:!1,embedMode:!1,licenseRequiredForRegistration:null,licenseRequiredForRegistrationSet:!1},(0,zn.on)(Lr.kg,(j,w)=>w),(0,zn.on)(Lr.n4,(j,w)=>w),(0,zn.on)(Lr.Pl,(j,w)=>({...w})),(0,zn.on)(Lr.s7,(j,w)=>w));var Wc=l(3850),Zc=l(4212),Gl=l(8891),Yc=l(1650),qc=l(1741);let pr=(()=>{class j{static \u0275fac=function(B){return new(B||j)};static \u0275mod=i.oAB({type:j,bootstrap:[Fs]});static \u0275inj=i.cJS({providers:[{provide:Dr.q,useClass:Bc.N},{provide:i.soG,useValue:"en-US"},{provide:i.Vkw,useValue:"xlf2"},Qo.ez,Wc.P,Zc.a,Gl.t,br.C,Xr.p,ps.o,qc.j,Kr.R,Yc.g],imports:[t.b2,Pi.u5,Pi.UX,Ya,ir,Qr.d,kc.$,wo.JF,zn.Aw.forRoot({AppSettings:jc,LoggedInUser:zc,PublicUserAccount:sl,Contact:Br}),Ur.forRoot([Vd]),[],Pl.m,Hd.APOModule,Fc.UserManagementModule,te.S,xe.Z_,Gd]})}return j})();(0,i.G48)(),t.q6().bootstrapModule(pr).catch(j=>console.error(j))},3786:function(qe){typeof self<"u"&&self,qe.exports=function(re){var l={};function t(i){if(l[i])return l[i].exports;var r=l[i]={i,l:!1,exports:{}};return re[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=re,t.c=l,t.d=function(i,r,L){t.o(i,r)||Object.defineProperty(i,r,{configurable:!1,enumerable:!0,get:L})},t.n=function(i){var r=i&&i.__esModule?function(){return i.default}:function(){return i};return t.d(r,"a",r),r},t.o=function(i,r){return Object.prototype.hasOwnProperty.call(i,r)},t.p="",t(t.s=109)}([function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=t(17),r=t(18),L=t(19),M=t(45),v=t(46),y=t(47),u=t(48),_=t(49),p=t(12),C=t(32),g=t(33),f=t(31),d=t(1);l.default={Scope:d.Scope,create:d.create,find:d.find,query:d.query,register:d.register,Container:i.default,Format:r.default,Leaf:L.default,Embed:u.default,Scroll:M.default,Block:y.default,Inline:v.default,Text:_.default,Attributor:{Attribute:p.default,Class:C.default,Style:g.default,Store:f.default}}},function(re,l,t){"use strict";var f,i=this&&this.__extends||(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var T in h)h.hasOwnProperty(T)&&(d[T]=h[T])},function(d,h){function T(){this.constructor=d}f(d,h),d.prototype=null===h?Object.create(h):(T.prototype=h.prototype,new T)});Object.defineProperty(l,"__esModule",{value:!0});var r=function(f){function d(h){var T=this;return(T=f.call(this,h="[Parchment] "+h)||this).message=h,T.name=T.constructor.name,T}return i(d,f),d}(Error);l.ParchmentError=r;var u,L={},M={},v={},y={};function C(f,d){var h;if(void 0===d&&(d=u.ANY),"string"==typeof f)h=y[f]||L[f];else if(f instanceof Text||f.nodeType===Node.TEXT_NODE)h=y.text;else if("number"==typeof f)f&u.LEVEL&u.BLOCK?h=y.block:f&u.LEVEL&u.INLINE&&(h=y.inline);else if(f instanceof HTMLElement){var T=(f.getAttribute("class")||"").split(/\s+/);for(var b in T)if(h=M[T[b]])break;h=h||v[f.tagName]}return null==h?null:d&u.LEVEL&h.scope&&d&u.TYPE&h.scope?h:null}l.DATA_KEY="__blot",function(f){f[f.TYPE=3]="TYPE",f[f.LEVEL=12]="LEVEL",f[f.ATTRIBUTE=13]="ATTRIBUTE",f[f.BLOT=14]="BLOT",f[f.INLINE=7]="INLINE",f[f.BLOCK=11]="BLOCK",f[f.BLOCK_BLOT=10]="BLOCK_BLOT",f[f.INLINE_BLOT=6]="INLINE_BLOT",f[f.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",f[f.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",f[f.ANY=15]="ANY"}(u=l.Scope||(l.Scope={})),l.create=function _(f,d){var h=C(f);if(null==h)throw new r("Unable to create "+f+" blot");var T=h,b=f instanceof Node||f.nodeType===Node.TEXT_NODE?f:T.create(d);return new T(b,d)},l.find=function p(f,d){return void 0===d&&(d=!1),null==f?null:null!=f[l.DATA_KEY]?f[l.DATA_KEY].blot:d?p(f.parentNode,d):null},l.query=C,l.register=function g(){for(var f=[],d=0;d<arguments.length;d++)f[d]=arguments[d];if(f.length>1)return f.map(function(b){return g(b)});var h=f[0];if("string"!=typeof h.blotName&&"string"!=typeof h.attrName)throw new r("Invalid definition");if("abstract"===h.blotName)throw new r("Cannot register abstract class");return y[h.blotName||h.attrName]=h,"string"==typeof h.keyName?L[h.keyName]=h:(null!=h.className&&(M[h.className]=h),null!=h.tagName&&(h.tagName=Array.isArray(h.tagName)?h.tagName.map(function(b){return b.toUpperCase()}):h.tagName.toUpperCase(),(Array.isArray(h.tagName)?h.tagName:[h.tagName]).forEach(function(b){(null==v[b]||null==h.className)&&(v[b]=h)}))),h}},function(re,l,t){var i=t(51),r=t(11),L=t(3),M=t(20),v=String.fromCharCode(0),y=function(u){this.ops=Array.isArray(u)?u:null!=u&&Array.isArray(u.ops)?u.ops:[]};y.prototype.insert=function(u,_){var p={};return 0===u.length?this:(p.insert=u,null!=_&&"object"==typeof _&&Object.keys(_).length>0&&(p.attributes=_),this.push(p))},y.prototype.delete=function(u){return u<=0?this:this.push({delete:u})},y.prototype.retain=function(u,_){if(u<=0)return this;var p={retain:u};return null!=_&&"object"==typeof _&&Object.keys(_).length>0&&(p.attributes=_),this.push(p)},y.prototype.push=function(u){var _=this.ops.length,p=this.ops[_-1];if(u=L(!0,{},u),"object"==typeof p){if("number"==typeof u.delete&&"number"==typeof p.delete)return this.ops[_-1]={delete:p.delete+u.delete},this;if("number"==typeof p.delete&&null!=u.insert&&"object"!=typeof(p=this.ops[(_-=1)-1]))return this.ops.unshift(u),this;if(r(u.attributes,p.attributes)){if("string"==typeof u.insert&&"string"==typeof p.insert)return this.ops[_-1]={insert:p.insert+u.insert},"object"==typeof u.attributes&&(this.ops[_-1].attributes=u.attributes),this;if("number"==typeof u.retain&&"number"==typeof p.retain)return this.ops[_-1]={retain:p.retain+u.retain},"object"==typeof u.attributes&&(this.ops[_-1].attributes=u.attributes),this}}return _===this.ops.length?this.ops.push(u):this.ops.splice(_,0,u),this},y.prototype.chop=function(){var u=this.ops[this.ops.length-1];return u&&u.retain&&!u.attributes&&this.ops.pop(),this},y.prototype.filter=function(u){return this.ops.filter(u)},y.prototype.forEach=function(u){this.ops.forEach(u)},y.prototype.map=function(u){return this.ops.map(u)},y.prototype.partition=function(u){var _=[],p=[];return this.forEach(function(C){(u(C)?_:p).push(C)}),[_,p]},y.prototype.reduce=function(u,_){return this.ops.reduce(u,_)},y.prototype.changeLength=function(){return this.reduce(function(u,_){return _.insert?u+M.length(_):_.delete?u-_.delete:u},0)},y.prototype.length=function(){return this.reduce(function(u,_){return u+M.length(_)},0)},y.prototype.slice=function(u,_){u=u||0,"number"!=typeof _&&(_=1/0);for(var p=[],C=M.iterator(this.ops),g=0;g<_&&C.hasNext();){var f;g<u?f=C.next(u-g):(f=C.next(_-g),p.push(f)),g+=M.length(f)}return new y(p)},y.prototype.compose=function(u){var _=M.iterator(this.ops),p=M.iterator(u.ops),C=[],g=p.peek();if(null!=g&&"number"==typeof g.retain&&null==g.attributes){for(var f=g.retain;"insert"===_.peekType()&&_.peekLength()<=f;)f-=_.peekLength(),C.push(_.next());g.retain-f>0&&p.next(g.retain-f)}for(var d=new y(C);_.hasNext()||p.hasNext();)if("insert"===p.peekType())d.push(p.next());else if("delete"===_.peekType())d.push(_.next());else{var h=Math.min(_.peekLength(),p.peekLength()),T=_.next(h),b=p.next(h);if("number"==typeof b.retain){var P={};"number"==typeof T.retain?P.retain=h:P.insert=T.insert;var W=M.attributes.compose(T.attributes,b.attributes,"number"==typeof T.retain);if(W&&(P.attributes=W),d.push(P),!p.hasNext()&&r(d.ops[d.ops.length-1],P)){var I=new y(_.rest());return d.concat(I).chop()}}else"number"==typeof b.delete&&"number"==typeof T.retain&&d.push(b)}return d.chop()},y.prototype.concat=function(u){var _=new y(this.ops.slice());return u.ops.length>0&&(_.push(u.ops[0]),_.ops=_.ops.concat(u.ops.slice(1))),_},y.prototype.diff=function(u,_){if(this.ops===u.ops)return new y;var p=[this,u].map(function(h){return h.map(function(T){if(null!=T.insert)return"string"==typeof T.insert?T.insert:v;throw new Error("diff() called "+(h===u?"on":"with")+" non-document")}).join("")}),C=new y,g=i(p[0],p[1],_),f=M.iterator(this.ops),d=M.iterator(u.ops);return g.forEach(function(h){for(var T=h[1].length;T>0;){var b=0;switch(h[0]){case i.INSERT:b=Math.min(d.peekLength(),T),C.push(d.next(b));break;case i.DELETE:b=Math.min(T,f.peekLength()),f.next(b),C.delete(b);break;case i.EQUAL:b=Math.min(f.peekLength(),d.peekLength(),T);var P=f.next(b),W=d.next(b);r(P.insert,W.insert)?C.retain(b,M.attributes.diff(P.attributes,W.attributes)):C.push(W).delete(b)}T-=b}}),C.chop()},y.prototype.eachLine=function(u,_){_=_||"\n";for(var p=M.iterator(this.ops),C=new y,g=0;p.hasNext();){if("insert"!==p.peekType())return;var f=p.peek(),d=M.length(f)-p.peekLength(),h="string"==typeof f.insert?f.insert.indexOf(_,d)-d:-1;if(h<0)C.push(p.next());else if(h>0)C.push(p.next(h));else{if(!1===u(C,p.next(1).attributes||{},g))return;g+=1,C=new y}}C.length()>0&&u(C,{},g)},y.prototype.transform=function(u,_){if(_=!!_,"number"==typeof u)return this.transformPosition(u,_);for(var p=M.iterator(this.ops),C=M.iterator(u.ops),g=new y;p.hasNext()||C.hasNext();)if("insert"!==p.peekType()||!_&&"insert"===C.peekType())if("insert"===C.peekType())g.push(C.next());else{var f=Math.min(p.peekLength(),C.peekLength()),d=p.next(f),h=C.next(f);if(d.delete)continue;h.delete?g.push(h):g.retain(f,M.attributes.transform(d.attributes,h.attributes,_))}else g.retain(M.length(p.next()));return g.chop()},y.prototype.transformPosition=function(u,_){_=!!_;for(var p=M.iterator(this.ops),C=0;p.hasNext()&&C<=u;){var g=p.peekLength(),f=p.peekType();p.next(),"delete"!==f?("insert"===f&&(C<u||!_)&&(u+=g),C+=g):u-=Math.min(g,u-C)}return u},re.exports=y},function(re,l){"use strict";var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,L=Object.getOwnPropertyDescriptor,M=function(p){return"function"==typeof Array.isArray?Array.isArray(p):"[object Array]"===i.call(p)},v=function(p){if(!p||"[object Object]"!==i.call(p))return!1;var f,C=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!C&&!g)return!1;for(f in p);return typeof f>"u"||t.call(p,f)},y=function(p,C){r&&"__proto__"===C.name?r(p,C.name,{enumerable:!0,configurable:!0,value:C.newValue,writable:!0}):p[C.name]=C.newValue},u=function(p,C){if("__proto__"===C){if(!t.call(p,C))return;if(L)return L(p,C).value}return p[C]};re.exports=function _(){var p,C,g,f,d,h,T=arguments[0],b=1,P=arguments.length,W=!1;for("boolean"==typeof T&&(W=T,T=arguments[1]||{},b=2),(null==T||"object"!=typeof T&&"function"!=typeof T)&&(T={});b<P;++b)if(null!=(p=arguments[b]))for(C in p)g=u(T,C),T!==(f=u(p,C))&&(W&&f&&(v(f)||(d=M(f)))?(d?(d=!1,h=g&&M(g)?g:[]):h=g&&v(g)?g:{},y(T,{name:C,newValue:_(W,h,f)})):typeof f<"u"&&y(T,{name:C,newValue:f}));return T}},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.BlockEmbed=l.bubbleFormats=void 0;var i=function(){function s(V,Q){for(var me=0;me<Q.length;me++){var ue=Q[me];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(V,ue.key,ue)}}return function(V,Q,me){return Q&&s(V.prototype,Q),me&&s(V,me),V}}(),r=function s(V,Q,me){null===V&&(V=Function.prototype);var ue=Object.getOwnPropertyDescriptor(V,Q);if(void 0===ue){var De=Object.getPrototypeOf(V);return null===De?void 0:s(De,Q,me)}if("value"in ue)return ue.value;var Ue=ue.get;return void 0===Ue?void 0:Ue.call(me)},M=T(t(3)),y=T(t(2)),_=T(t(0)),C=T(t(16)),f=T(t(6)),h=T(t(7));function T(s){return s&&s.__esModule?s:{default:s}}function b(s,V){if(!(s instanceof V))throw new TypeError("Cannot call a class as a function")}function P(s,V){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!V||"object"!=typeof V&&"function"!=typeof V?s:V}function W(s,V){if("function"!=typeof V&&null!==V)throw new TypeError("Super expression must either be null or a function, not "+typeof V);s.prototype=Object.create(V&&V.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(s,V):s.__proto__=V)}var I=1,k=function(s){function V(){return b(this,V),P(this,(V.__proto__||Object.getPrototypeOf(V)).apply(this,arguments))}return W(V,s),i(V,[{key:"attach",value:function(){r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"attach",this).call(this),this.attributes=new _.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new y.default).insert(this.value(),(0,M.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(me,ue){var De=_.default.query(me,_.default.Scope.BLOCK_ATTRIBUTE);null!=De&&this.attributes.attribute(De,ue)}},{key:"formatAt",value:function(me,ue,De,Ue){this.format(De,Ue)}},{key:"insertAt",value:function(me,ue,De){if("string"==typeof ue&&ue.endsWith("\n")){var Ue=_.default.create(D.blotName);this.parent.insertBefore(Ue,0===me?this:this.next),Ue.insertAt(0,ue.slice(0,-1))}else r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"insertAt",this).call(this,me,ue,De)}}]),V}(_.default.Embed);k.scope=_.default.Scope.BLOCK_BLOT;var D=function(s){function V(Q){b(this,V);var me=P(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,Q));return me.cache={},me}return W(V,s),i(V,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(_.default.Leaf).reduce(function(me,ue){return 0===ue.length()?me:me.insert(ue.value(),N(ue))},new y.default).insert("\n",N(this))),this.cache.delta}},{key:"deleteAt",value:function(me,ue){r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"deleteAt",this).call(this,me,ue),this.cache={}}},{key:"formatAt",value:function(me,ue,De,Ue){ue<=0||(_.default.query(De,_.default.Scope.BLOCK)?me+ue===this.length()&&this.format(De,Ue):r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"formatAt",this).call(this,me,Math.min(ue,this.length()-me-1),De,Ue),this.cache={})}},{key:"insertAt",value:function(me,ue,De){if(null!=De)return r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"insertAt",this).call(this,me,ue,De);if(0!==ue.length){var Ue=ue.split("\n"),Xe=Ue.shift();Xe.length>0&&(me<this.length()-1||null==this.children.tail?r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"insertAt",this).call(this,Math.min(me,this.length()-1),Xe):this.children.tail.insertAt(this.children.tail.length(),Xe),this.cache={});var st=this;Ue.reduce(function(ze,F){return(st=st.split(ze,!0)).insertAt(0,F),F.length},me+Xe.length)}}},{key:"insertBefore",value:function(me,ue){var De=this.children.head;r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"insertBefore",this).call(this,me,ue),De instanceof C.default&&De.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"length",this).call(this)+I),this.cache.length}},{key:"moveChildren",value:function(me,ue){r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"moveChildren",this).call(this,me,ue),this.cache={}}},{key:"optimize",value:function(me){r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"optimize",this).call(this,me),this.cache={}}},{key:"path",value:function(me){return r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"path",this).call(this,me,!0)}},{key:"removeChild",value:function(me){r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"removeChild",this).call(this,me),this.cache={}}},{key:"split",value:function(me){var ue=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ue&&(0===me||me>=this.length()-I)){var De=this.clone();return 0===me?(this.parent.insertBefore(De,this),this):(this.parent.insertBefore(De,this.next),De)}var Ue=r(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"split",this).call(this,me,ue);return this.cache={},Ue}}]),V}(_.default.Block);function N(s){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==s||("function"==typeof s.formats&&(V=(0,M.default)(V,s.formats())),null==s.parent||"scroll"==s.parent.blotName||s.parent.statics.scope!==s.statics.scope)?V:N(s.parent,V)}D.blotName="block",D.tagName="P",D.defaultChild="break",D.allowedChildren=[f.default,_.default.Embed,h.default],l.bubbleFormats=N,l.BlockEmbed=k,l.default=D},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.overload=l.expandConfig=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(st){return typeof st}:function(st){return st&&"function"==typeof Symbol&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st},r=function(ze,F){if(Array.isArray(ze))return ze;if(Symbol.iterator in Object(ze))return function st(ze,F){var Re=[],de=!0,Ce=!1,oe=void 0;try{for(var ye,G=ze[Symbol.iterator]();!(de=(ye=G.next()).done)&&(Re.push(ye.value),!F||Re.length!==F);de=!0);}catch(we){Ce=!0,oe=we}finally{try{!de&&G.return&&G.return()}finally{if(Ce)throw oe}}return Re}(ze,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")},L=function(){function st(ze,F){for(var Re=0;Re<F.length;Re++){var de=F[Re];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ze,de.key,de)}}return function(ze,F,Re){return F&&st(ze.prototype,F),Re&&st(ze,Re),ze}}();t(50);var v=N(t(2)),u=N(t(14)),p=N(t(8)),g=N(t(9)),d=N(t(0)),h=t(15),T=N(h),P=N(t(3)),I=N(t(10)),D=N(t(34));function N(st){return st&&st.__esModule?st:{default:st}}function s(st,ze,F){return ze in st?Object.defineProperty(st,ze,{value:F,enumerable:!0,configurable:!0,writable:!0}):st[ze]=F,st}var Q=(0,I.default)("quill"),me=function(){function st(ze){var F=this,Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function V(st,ze){if(!(st instanceof ze))throw new TypeError("Cannot call a class as a function")}(this,st),this.options=ue(ze,Re),this.container=this.options.container,null==this.container)return Q.error("Invalid Quill container",ze);this.options.debug&&st.debug(this.options.debug);var de=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new p.default,this.scroll=d.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new T.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(p.default.events.EDITOR_CHANGE,function(oe){oe===p.default.events.TEXT_CHANGE&&F.root.classList.toggle("ql-blank",F.editor.isBlank())}),this.emitter.on(p.default.events.SCROLL_UPDATE,function(oe,G){var ye=F.selection.lastRange,we=ye&&0===ye.length?ye.index:void 0;De.call(F,function(){return F.editor.update(null,G,we)},oe)});var Ce=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+de+"<p><br></p></div>");this.setContents(Ce),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return L(st,null,[{key:"debug",value:function(F){!0===F&&(F="log"),I.default.level(F)}},{key:"find",value:function(F){return F.__quill||d.default.find(F)}},{key:"import",value:function(F){return null==this.imports[F]&&Q.error("Cannot import "+F+". Are you sure it was registered?"),this.imports[F]}},{key:"register",value:function(F,Re){var de=this,Ce=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof F){var oe=F.attrName||F.blotName;"string"==typeof oe?this.register("formats/"+oe,F,Re):Object.keys(F).forEach(function(G){de.register(G,F[G],Re)})}else null!=this.imports[F]&&!Ce&&Q.warn("Overwriting "+F+" with",Re),this.imports[F]=Re,(F.startsWith("blots/")||F.startsWith("formats/"))&&"abstract"!==Re.blotName?d.default.register(Re):F.startsWith("modules")&&"function"==typeof Re.register&&Re.register()}}]),L(st,[{key:"addContainer",value:function(F){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof F){var de=F;(F=document.createElement("div")).classList.add(de)}return this.container.insertBefore(F,Re),F}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(F,Re,de){var Ce=this,oe=Ue(F,Re,de),G=r(oe,4);return De.call(this,function(){return Ce.editor.deleteText(F,Re)},de=G[3],F=G[0],-1*(Re=G[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var F=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(F),this.container.classList.toggle("ql-disabled",!F)}},{key:"focus",value:function(){var F=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=F,this.scrollIntoView()}},{key:"format",value:function(F,Re){var de=this;return De.call(this,function(){var oe=de.getSelection(!0),G=new v.default;if(null==oe)return G;if(d.default.query(F,d.default.Scope.BLOCK))G=de.editor.formatLine(oe.index,oe.length,s({},F,Re));else{if(0===oe.length)return de.selection.format(F,Re),G;G=de.editor.formatText(oe.index,oe.length,s({},F,Re))}return de.setSelection(oe,p.default.sources.SILENT),G},arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API)}},{key:"formatLine",value:function(F,Re,de,Ce,oe){var ye,G=this,we=Ue(F,Re,de,Ce,oe),Fe=r(we,4);return Re=Fe[1],ye=Fe[2],De.call(this,function(){return G.editor.formatLine(F,Re,ye)},oe=Fe[3],F=Fe[0],0)}},{key:"formatText",value:function(F,Re,de,Ce,oe){var ye,G=this,we=Ue(F,Re,de,Ce,oe),Fe=r(we,4);return Re=Fe[1],ye=Fe[2],De.call(this,function(){return G.editor.formatText(F,Re,ye)},oe=Fe[3],F=Fe[0],0)}},{key:"getBounds",value:function(F){var de;de="number"==typeof F?this.selection.getBounds(F,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(F.index,F.length);var Ce=this.container.getBoundingClientRect();return{bottom:de.bottom-Ce.top,height:de.height,left:de.left-Ce.left,right:de.right-Ce.left,top:de.top-Ce.top,width:de.width}}},{key:"getContents",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-F,de=Ue(F,Re),Ce=r(de,2);return this.editor.getContents(F=Ce[0],Re=Ce[1])}},{key:"getFormat",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof F?this.editor.getFormat(F,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(F.index,F.length)}},{key:"getIndex",value:function(F){return F.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(F){return this.scroll.leaf(F)}},{key:"getLine",value:function(F){return this.scroll.line(F)}},{key:"getLines",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof F?this.scroll.lines(F.index,F.length):this.scroll.lines(F,Re)}},{key:"getModule",value:function(F){return this.theme.modules[F]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-F,de=Ue(F,Re),Ce=r(de,2);return this.editor.getText(F=Ce[0],Re=Ce[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(F,Re,de){var Ce=this;return De.call(this,function(){return Ce.editor.insertEmbed(F,Re,de)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:st.sources.API,F)}},{key:"insertText",value:function(F,Re,de,Ce,oe){var ye,G=this,we=Ue(F,0,de,Ce,oe),Fe=r(we,4);return ye=Fe[2],De.call(this,function(){return G.editor.insertText(F,Re,ye)},oe=Fe[3],F=Fe[0],Re.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(F,Re,de){this.clipboard.dangerouslyPasteHTML(F,Re,de)}},{key:"removeFormat",value:function(F,Re,de){var Ce=this,oe=Ue(F,Re,de),G=r(oe,4);return Re=G[1],De.call(this,function(){return Ce.editor.removeFormat(F,Re)},de=G[3],F=G[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(F){var Re=this;return De.call(this,function(){F=new v.default(F);var Ce=Re.getLength(),oe=Re.editor.deleteText(0,Ce),G=Re.editor.applyDelta(F),ye=G.ops[G.ops.length-1];return null!=ye&&"string"==typeof ye.insert&&"\n"===ye.insert[ye.insert.length-1]&&(Re.editor.deleteText(Re.getLength()-1,1),G.delete(1)),oe.compose(G)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.sources.API)}},{key:"setSelection",value:function(F,Re,de){if(null==F)this.selection.setRange(null,Re||st.sources.API);else{var Ce=Ue(F,Re,de),oe=r(Ce,4);de=oe[3],this.selection.setRange(new h.Range(F=oe[0],Re=oe[1]),de),de!==p.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(F){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.sources.API,de=(new v.default).insert(F);return this.setContents(de,Re)}},{key:"update",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.default.sources.USER,Re=this.scroll.update(F);return this.selection.update(F),Re}},{key:"updateContents",value:function(F){var Re=this,de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.sources.API;return De.call(this,function(){return F=new v.default(F),Re.editor.applyDelta(F,de)},de,!0)}}]),st}();function ue(st,ze){if((ze=(0,P.default)(!0,{container:st,modules:{clipboard:!0,keyboard:!0,history:!0}},ze)).theme&&ze.theme!==me.DEFAULTS.theme){if(ze.theme=me.import("themes/"+ze.theme),null==ze.theme)throw new Error("Invalid theme "+ze.theme+". Did you register it?")}else ze.theme=D.default;var F=(0,P.default)(!0,{},ze.theme.DEFAULTS);[F,ze].forEach(function(Ce){Ce.modules=Ce.modules||{},Object.keys(Ce.modules).forEach(function(oe){!0===Ce.modules[oe]&&(Ce.modules[oe]={})})});var de=Object.keys(F.modules).concat(Object.keys(ze.modules)).reduce(function(Ce,oe){var G=me.import("modules/"+oe);return null==G?Q.error("Cannot load "+oe+" module. Are you sure you registered it?"):Ce[oe]=G.DEFAULTS||{},Ce},{});return null!=ze.modules&&ze.modules.toolbar&&ze.modules.toolbar.constructor!==Object&&(ze.modules.toolbar={container:ze.modules.toolbar}),ze=(0,P.default)(!0,{},me.DEFAULTS,{modules:de},F,ze),["bounds","container","scrollingContainer"].forEach(function(Ce){"string"==typeof ze[Ce]&&(ze[Ce]=document.querySelector(ze[Ce]))}),ze.modules=Object.keys(ze.modules).reduce(function(Ce,oe){return ze.modules[oe]&&(Ce[oe]=ze.modules[oe]),Ce},{}),ze}function De(st,ze,F,Re){if(this.options.strict&&!this.isEnabled()&&ze===p.default.sources.USER)return new v.default;var de=null==F?null:this.getSelection(),Ce=this.editor.delta,oe=st();if(null!=de&&(!0===F&&(F=de.index),null==Re?de=Xe(de,oe,ze):0!==Re&&(de=Xe(de,F,Re,ze)),this.setSelection(de,p.default.sources.SILENT)),oe.length()>0){var G,we,ye=[p.default.events.TEXT_CHANGE,oe,Ce,ze];(G=this.emitter).emit.apply(G,[p.default.events.EDITOR_CHANGE].concat(ye)),ze!==p.default.sources.SILENT&&(we=this.emitter).emit.apply(we,ye)}return oe}function Ue(st,ze,F,Re,de){var Ce={};return"number"==typeof st.index&&"number"==typeof st.length?"number"!=typeof ze?(de=Re,Re=F,F=ze,ze=st.length,st=st.index):(ze=st.length,st=st.index):"number"!=typeof ze&&(de=Re,Re=F,F=ze,ze=0),"object"===(typeof F>"u"?"undefined":i(F))?(Ce=F,de=Re):"string"==typeof F&&(null!=Re?Ce[F]=Re:de=F),[st,ze,Ce,de=de||p.default.sources.API]}function Xe(st,ze,F,Re){if(null==st)return null;var de=void 0,Ce=void 0;if(ze instanceof v.default){var oe=[st.index,st.index+st.length].map(function(Fe){return ze.transformPosition(Fe,Re!==p.default.sources.USER)}),G=r(oe,2);de=G[0],Ce=G[1]}else{var ye=[st.index,st.index+st.length].map(function(Fe){return Fe<ze||Fe===ze&&Re===p.default.sources.USER?Fe:F>=0?Fe+F:Math.max(ze,Fe+F)}),we=r(ye,2);de=we[0],Ce=we[1]}return new h.Range(de,Ce-de)}me.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},me.events=p.default.events,me.sources=p.default.sources,me.version="1.3.7",me.imports={delta:v.default,parchment:d.default,"core/module":g.default,"core/theme":D.default},l.expandConfig=ue,l.overload=Ue,l.default=me},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function f(d,h){for(var T=0;T<h.length;T++){var b=h[T];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}return function(d,h,T){return h&&f(d.prototype,h),T&&f(d,T),d}}(),r=function f(d,h,T){null===d&&(d=Function.prototype);var b=Object.getOwnPropertyDescriptor(d,h);if(void 0===b){var P=Object.getPrototypeOf(d);return null===P?void 0:f(P,h,T)}if("value"in b)return b.value;var W=b.get;return void 0===W?void 0:W.call(T)},M=u(t(7)),y=u(t(0));function u(f){return f&&f.__esModule?f:{default:f}}var g=function(f){function d(){return function _(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d),function p(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?f:d}(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return function C(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}(d,f),i(d,[{key:"formatAt",value:function(T,b,P,W){if(d.compare(this.statics.blotName,P)<0&&y.default.query(P,y.default.Scope.BLOT)){var I=this.isolate(T,b);W&&I.wrap(P,W)}else r(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,T,b,P,W)}},{key:"optimize",value:function(T){if(r(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,T),this.parent instanceof d&&d.compare(this.statics.blotName,this.parent.statics.blotName)>0){var b=this.parent.isolate(this.offset(),this.length());this.moveChildren(b),b.wrap(this)}}}],[{key:"compare",value:function(T,b){var P=d.order.indexOf(T),W=d.order.indexOf(b);return P>=0||W>=0?P-W:T===b?0:T<b?-1:1}}]),d}(y.default.Inline);g.allowedChildren=[g,y.default.Embed,M.default],g.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],l.default=g},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var u=function(_){function p(){return function M(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p),function v(_,p){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?_:p}(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return function y(_,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);_.prototype=Object.create(p&&p.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(_,p):_.__proto__=p)}(p,_),p}(function L(_){return _&&_.__esModule?_:{default:_}}(t(0)).default.Text);l.default=u},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function h(T,b){for(var P=0;P<b.length;P++){var W=b[P];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(T,W.key,W)}}return function(T,b,P){return b&&h(T.prototype,b),P&&h(T,P),T}}(),r=function h(T,b,P){null===T&&(T=Function.prototype);var W=Object.getOwnPropertyDescriptor(T,b);if(void 0===W){var I=Object.getPrototypeOf(T);return null===I?void 0:h(I,b,P)}if("value"in W)return W.value;var k=W.get;return void 0===k?void 0:k.call(P)},M=u(t(54));function u(h){return h&&h.__esModule?h:{default:h}}var g=(0,u(t(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(h){document.addEventListener(h,function(){for(var T=arguments.length,b=Array(T),P=0;P<T;P++)b[P]=arguments[P];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(W){var I;W.__quill&&W.__quill.emitter&&(I=W.__quill.emitter).handleDOM.apply(I,b)})})});var d=function(h){function T(){!function _(h,T){if(!(h instanceof T))throw new TypeError("Cannot call a class as a function")}(this,T);var b=function p(h,T){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?h:T}(this,(T.__proto__||Object.getPrototypeOf(T)).call(this));return b.listeners={},b.on("error",g.error),b}return function C(h,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);h.prototype=Object.create(T&&T.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(h,T):h.__proto__=T)}(T,h),i(T,[{key:"emit",value:function(){g.log.apply(g,arguments),r(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(P){for(var W=arguments.length,I=Array(W>1?W-1:0),k=1;k<W;k++)I[k-1]=arguments[k];(this.listeners[P.type]||[]).forEach(function(D){var N=D.node,s=D.handler;(P.target===N||N.contains(P.target))&&s.apply(void 0,[P].concat(I))})}},{key:"listenDOM",value:function(P,W,I){this.listeners[P]||(this.listeners[P]=[]),this.listeners[P].push({node:W,handler:I})}}]),T}(M.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},l.default=d},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=function L(M){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function i(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")})(this,L),this.quill=M,this.options=v};r.DEFAULTS={},l.default=r},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=["error","warn","log","info"],r="warn";function L(v){if(i.indexOf(v)<=i.indexOf(r)){for(var y,u=arguments.length,_=Array(u>1?u-1:0),p=1;p<u;p++)_[p-1]=arguments[p];(y=console)[v].apply(y,_)}}function M(v){return i.reduce(function(y,u){return y[u]=L.bind(console,u,v),y},{})}L.level=M.level=function(v){r=v},l.default=M},function(re,l,t){var i=Array.prototype.slice,r=t(52),L=t(53),M=re.exports=function(_,p,C){return C||(C={}),_===p||(_ instanceof Date&&p instanceof Date?_.getTime()===p.getTime():!_||!p||"object"!=typeof _&&"object"!=typeof p?C.strict?_===p:_==p:function u(_,p,C){var g,f;if(v(_)||v(p)||_.prototype!==p.prototype)return!1;if(L(_))return!!L(p)&&(_=i.call(_),p=i.call(p),M(_,p,C));if(y(_)){if(!y(p)||_.length!==p.length)return!1;for(g=0;g<_.length;g++)if(_[g]!==p[g])return!1;return!0}try{var d=r(_),h=r(p)}catch{return!1}if(d.length!=h.length)return!1;for(d.sort(),h.sort(),g=d.length-1;g>=0;g--)if(d[g]!=h[g])return!1;for(g=d.length-1;g>=0;g--)if(!M(_[f=d[g]],p[f],C))return!1;return typeof _==typeof p}(_,p,C))};function v(_){return null==_}function y(_){return!(!_||"object"!=typeof _||"number"!=typeof _.length||"function"!=typeof _.copy||"function"!=typeof _.slice||_.length>0&&"number"!=typeof _[0])}},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=t(1),r=function(){function L(M,v,y){void 0===y&&(y={}),this.attrName=M,this.keyName=v,this.scope=null!=y.scope?y.scope&i.Scope.LEVEL|i.Scope.TYPE&i.Scope.ATTRIBUTE:i.Scope.ATTRIBUTE,null!=y.whitelist&&(this.whitelist=y.whitelist)}return L.keys=function(M){return[].map.call(M.attributes,function(v){return v.name})},L.prototype.add=function(M,v){return!!this.canAdd(M,v)&&(M.setAttribute(this.keyName,v),!0)},L.prototype.canAdd=function(M,v){return null!=i.query(M,i.Scope.BLOT&(this.scope|i.Scope.TYPE))&&(null==this.whitelist||("string"==typeof v?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1))},L.prototype.remove=function(M){M.removeAttribute(this.keyName)},L.prototype.value=function(M){var v=M.getAttribute(this.keyName);return this.canAdd(M,v)&&v?v:""},L}();l.default=r},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.Code=void 0;var i=function(D,N){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return function k(D,N){var s=[],V=!0,Q=!1,me=void 0;try{for(var De,ue=D[Symbol.iterator]();!(V=(De=ue.next()).done)&&(s.push(De.value),!N||s.length!==N);V=!0);}catch(Ue){Q=!0,me=Ue}finally{try{!V&&ue.return&&ue.return()}finally{if(Q)throw me}}return s}(D,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function k(D,N){for(var s=0;s<N.length;s++){var V=N[s];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(D,V.key,V)}}return function(D,N,s){return N&&k(D.prototype,N),s&&k(D,s),D}}(),L=function k(D,N,s){null===D&&(D=Function.prototype);var V=Object.getOwnPropertyDescriptor(D,N);if(void 0===V){var Q=Object.getPrototypeOf(D);return null===Q?void 0:k(Q,N,s)}if("value"in V)return V.value;var me=V.get;return void 0===me?void 0:me.call(s)},v=h(t(2)),u=h(t(0)),p=h(t(4)),g=h(t(6)),d=h(t(7));function h(k){return k&&k.__esModule?k:{default:k}}function T(k,D){if(!(k instanceof D))throw new TypeError("Cannot call a class as a function")}function b(k,D){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!D||"object"!=typeof D&&"function"!=typeof D?k:D}function P(k,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function, not "+typeof D);k.prototype=Object.create(D&&D.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(k,D):k.__proto__=D)}var W=function(k){function D(){return T(this,D),b(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return P(D,k),D}(g.default);W.blotName="code",W.tagName="CODE";var I=function(k){function D(){return T(this,D),b(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return P(D,k),r(D,[{key:"delta",value:function(){var s=this,V=this.domNode.textContent;return V.endsWith("\n")&&(V=V.slice(0,-1)),V.split("\n").reduce(function(Q,me){return Q.insert(me).insert("\n",s.formats())},new v.default)}},{key:"format",value:function(s,V){if(s!==this.statics.blotName||!V){var Q=this.descendant(d.default,this.length()-1),ue=i(Q,1)[0];ue?.deleteAt(ue.length()-1,1),L(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"format",this).call(this,s,V)}}},{key:"formatAt",value:function(s,V,Q,me){if(0!==V&&null!=u.default.query(Q,u.default.Scope.BLOCK)&&(Q!==this.statics.blotName||me!==this.statics.formats(this.domNode))){var ue=this.newlineIndex(s);if(!(ue<0||ue>=s+V)){var De=this.newlineIndex(s,!0)+1,Ue=ue-De+1,Xe=this.isolate(De,Ue),st=Xe.next;Xe.format(Q,me),st instanceof D&&st.formatAt(0,s-De+V-Ue,Q,me)}}}},{key:"insertAt",value:function(s,V,Q){if(null==Q){var me=this.descendant(d.default,s),ue=i(me,2);ue[0].insertAt(ue[1],V)}}},{key:"length",value:function(){var s=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?s:s+1}},{key:"newlineIndex",value:function(s){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,s).lastIndexOf("\n");var Q=this.domNode.textContent.slice(s).indexOf("\n");return Q>-1?s+Q:-1}},{key:"optimize",value:function(s){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),L(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"optimize",this).call(this,s);var V=this.next;null!=V&&V.prev===this&&V.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===V.statics.formats(V.domNode)&&(V.optimize(s),V.moveChildren(this),V.remove())}},{key:"replace",value:function(s){L(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"replace",this).call(this,s),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(V){var Q=u.default.find(V);null==Q?V.parentNode.removeChild(V):Q instanceof u.default.Embed?Q.remove():Q.unwrap()})}}],[{key:"create",value:function(s){var V=L(D.__proto__||Object.getPrototypeOf(D),"create",this).call(this,s);return V.setAttribute("spellcheck",!1),V}},{key:"formats",value:function(){return!0}}]),D}(p.default);I.blotName="code-block",I.tagName="PRE",I.TAB="  ",l.Code=W,l.default=I},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(st){return typeof st}:function(st){return st&&"function"==typeof Symbol&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st},r=function(ze,F){if(Array.isArray(ze))return ze;if(Symbol.iterator in Object(ze))return function st(ze,F){var Re=[],de=!0,Ce=!1,oe=void 0;try{for(var ye,G=ze[Symbol.iterator]();!(de=(ye=G.next()).done)&&(Re.push(ye.value),!F||Re.length!==F);de=!0);}catch(we){Ce=!0,oe=we}finally{try{!de&&G.return&&G.return()}finally{if(Ce)throw oe}}return Re}(ze,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")},L=function(){function st(ze,F){for(var Re=0;Re<F.length;Re++){var de=F[Re];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ze,de.key,de)}}return function(ze,F,Re){return F&&st(ze.prototype,F),Re&&st(ze,Re),ze}}(),v=V(t(2)),u=V(t(20)),p=V(t(0)),g=V(t(13)),d=V(t(24)),h=t(4),T=V(h),P=V(t(16)),I=V(t(21)),D=V(t(11)),s=V(t(3));function V(st){return st&&st.__esModule?st:{default:st}}var ue=/^[ -~]*$/,De=function(){function st(ze){(function me(st,ze){if(!(st instanceof ze))throw new TypeError("Cannot call a class as a function")})(this,st),this.scroll=ze,this.delta=this.getDelta()}return L(st,[{key:"applyDelta",value:function(F){var Re=this,de=!1;this.scroll.update();var Ce=this.scroll.length();return this.scroll.batchStart(),(F=function Xe(st){return st.reduce(function(ze,F){if(1===F.insert){var Re=(0,I.default)(F.attributes);return delete Re.image,ze.insert({image:F.attributes.image},Re)}if(null!=F.attributes&&(!0===F.attributes.list||!0===F.attributes.bullet)&&((F=(0,I.default)(F)).attributes.list?F.attributes.list="ordered":(F.attributes.list="bullet",delete F.attributes.bullet)),"string"==typeof F.insert){var de=F.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return ze.insert(de,F.attributes)}return ze.push(F)},new v.default)}(F)).reduce(function(oe,G){var ye=G.retain||G.delete||G.insert.length||1,we=G.attributes||{};if(null!=G.insert){if("string"==typeof G.insert){var Fe=G.insert;Fe.endsWith("\n")&&de&&(de=!1,Fe=Fe.slice(0,-1)),oe>=Ce&&!Fe.endsWith("\n")&&(de=!0),Re.scroll.insertAt(oe,Fe);var lt=Re.scroll.line(oe),Pt=r(lt,2),wt=Pt[0],Bt=Pt[1],nn=(0,s.default)({},(0,h.bubbleFormats)(wt));if(wt instanceof T.default){var xt=wt.descendant(p.default.Leaf,Bt),sn=r(xt,1);nn=(0,s.default)(nn,(0,h.bubbleFormats)(sn[0]))}we=u.default.attributes.diff(nn,we)||{}}else if("object"===i(G.insert)){var Ve=Object.keys(G.insert)[0];if(null==Ve)return oe;Re.scroll.insertAt(oe,Ve,G.insert[Ve])}Ce+=ye}return Object.keys(we).forEach(function(rt){Re.scroll.formatAt(oe,ye,rt,we[rt])}),oe+ye},0),F.reduce(function(oe,G){return"number"==typeof G.delete?(Re.scroll.deleteAt(oe,G.delete),oe):oe+(G.retain||G.insert.length||1)},0),this.scroll.batchEnd(),this.update(F)}},{key:"deleteText",value:function(F,Re){return this.scroll.deleteAt(F,Re),this.update((new v.default).retain(F).delete(Re))}},{key:"formatLine",value:function(F,Re){var de=this,Ce=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(Ce).forEach(function(oe){if(null==de.scroll.whitelist||de.scroll.whitelist[oe]){var G=de.scroll.lines(F,Math.max(Re,1)),ye=Re;G.forEach(function(we){var Fe=we.length();if(we instanceof g.default){var lt=F-we.offset(de.scroll),Pt=we.newlineIndex(lt+ye)-lt+1;we.formatAt(lt,Pt,oe,Ce[oe])}else we.format(oe,Ce[oe]);ye-=Fe})}}),this.scroll.optimize(),this.update((new v.default).retain(F).retain(Re,(0,I.default)(Ce)))}},{key:"formatText",value:function(F,Re){var de=this,Ce=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(Ce).forEach(function(oe){de.scroll.formatAt(F,Re,oe,Ce[oe])}),this.update((new v.default).retain(F).retain(Re,(0,I.default)(Ce)))}},{key:"getContents",value:function(F,Re){return this.delta.slice(F,F+Re)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(F,Re){return F.concat(Re.delta())},new v.default)}},{key:"getFormat",value:function(F){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,de=[],Ce=[];0===Re?this.scroll.path(F).forEach(function(G){var we=r(G,1)[0];we instanceof T.default?de.push(we):we instanceof p.default.Leaf&&Ce.push(we)}):(de=this.scroll.lines(F,Re),Ce=this.scroll.descendants(p.default.Leaf,F,Re));var oe=[de,Ce].map(function(G){if(0===G.length)return{};for(var ye=(0,h.bubbleFormats)(G.shift());Object.keys(ye).length>0;){var we=G.shift();if(null==we)return ye;ye=Ue((0,h.bubbleFormats)(we),ye)}return ye});return s.default.apply(s.default,oe)}},{key:"getText",value:function(F,Re){return this.getContents(F,Re).filter(function(de){return"string"==typeof de.insert}).map(function(de){return de.insert}).join("")}},{key:"insertEmbed",value:function(F,Re,de){return this.scroll.insertAt(F,Re,de),this.update((new v.default).retain(F).insert(function Q(st,ze,F){return ze in st?Object.defineProperty(st,ze,{value:F,enumerable:!0,configurable:!0,writable:!0}):st[ze]=F,st}({},Re,de)))}},{key:"insertText",value:function(F,Re){var de=this,Ce=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Re=Re.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(F,Re),Object.keys(Ce).forEach(function(oe){de.scroll.formatAt(F,Re.length,oe,Ce[oe])}),this.update((new v.default).retain(F).insert(Re,(0,I.default)(Ce)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var F=this.scroll.children.head;return!(F.statics.blotName!==T.default.blotName||F.children.length>1)&&F.children.head instanceof P.default}},{key:"removeFormat",value:function(F,Re){var de=this.getText(F,Re),Ce=this.scroll.line(F+Re),oe=r(Ce,2),G=oe[0],ye=oe[1],we=0,Fe=new v.default;null!=G&&(we=G instanceof g.default?G.newlineIndex(ye)-ye+1:G.length()-ye,Fe=G.delta().slice(ye,ye+we-1).insert("\n"));var Pt=this.getContents(F,Re+we).diff((new v.default).insert(de).concat(Fe)),wt=(new v.default).retain(F).concat(Pt);return this.applyDelta(wt)}},{key:"update",value:function(F){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],de=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Ce=this.delta;if(1===Re.length&&"characterData"===Re[0].type&&Re[0].target.data.match(ue)&&p.default.find(Re[0].target)){var oe=p.default.find(Re[0].target),G=(0,h.bubbleFormats)(oe),ye=oe.offset(this.scroll),we=Re[0].oldValue.replace(d.default.CONTENTS,""),Fe=(new v.default).insert(we),lt=(new v.default).insert(oe.value());F=(new v.default).retain(ye).concat(Fe.diff(lt,de)).reduce(function(wt,Bt){return Bt.insert?wt.insert(Bt.insert,G):wt.push(Bt)},new v.default),this.delta=Ce.compose(F)}else this.delta=this.getDelta(),(!F||!(0,D.default)(Ce.compose(F),this.delta))&&(F=Ce.diff(this.delta,de));return F}}]),st}();function Ue(st,ze){return Object.keys(ze).reduce(function(F,Re){return null==st[Re]||(ze[Re]===st[Re]?F[Re]=ze[Re]:Array.isArray(ze[Re])?ze[Re].indexOf(st[Re])<0&&(F[Re]=ze[Re].concat([st[Re]])):F[Re]=[ze[Re],st[Re]]),F},{})}l.default=De},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.Range=void 0;var i=function(D,N){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return function k(D,N){var s=[],V=!0,Q=!1,me=void 0;try{for(var De,ue=D[Symbol.iterator]();!(V=(De=ue.next()).done)&&(s.push(De.value),!N||s.length!==N);V=!0);}catch(Ue){Q=!0,me=Ue}finally{try{!V&&ue.return&&ue.return()}finally{if(Q)throw me}}return s}(D,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function k(D,N){for(var s=0;s<N.length;s++){var V=N[s];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(D,V.key,V)}}return function(D,N,s){return N&&k(D.prototype,N),s&&k(D,s),D}}(),M=d(t(0)),y=d(t(21)),_=d(t(11)),C=d(t(8));function d(k){return k&&k.__esModule?k:{default:k}}function h(k){if(Array.isArray(k)){for(var D=0,N=Array(k.length);D<k.length;D++)N[D]=k[D];return N}return Array.from(k)}function T(k,D){if(!(k instanceof D))throw new TypeError("Cannot call a class as a function")}var b=(0,d(t(10)).default)("quill:selection"),P=function k(D){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;T(this,k),this.index=D,this.length=N},W=function(){function k(D,N){var s=this;T(this,k),this.emitter=N,this.scroll=D,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=M.default.create("cursor",this),this.lastRange=this.savedRange=new P(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){s.mouseDown||setTimeout(s.update.bind(s,C.default.sources.USER),1)}),this.emitter.on(C.default.events.EDITOR_CHANGE,function(V,Q){V===C.default.events.TEXT_CHANGE&&Q.length()>0&&s.update(C.default.sources.SILENT)}),this.emitter.on(C.default.events.SCROLL_BEFORE_UPDATE,function(){if(s.hasFocus()){var V=s.getNativeRange();null!=V&&V.start.node!==s.cursor.textNode&&s.emitter.once(C.default.events.SCROLL_UPDATE,function(){try{s.setNativeRange(V.start.node,V.start.offset,V.end.node,V.end.offset)}catch{}})}}),this.emitter.on(C.default.events.SCROLL_OPTIMIZE,function(V,Q){if(Q.range){var me=Q.range;s.setNativeRange(me.startNode,me.startOffset,me.endNode,me.endOffset)}}),this.update(C.default.sources.SILENT)}return r(k,[{key:"handleComposition",value:function(){var N=this;this.root.addEventListener("compositionstart",function(){N.composing=!0}),this.root.addEventListener("compositionend",function(){if(N.composing=!1,N.cursor.parent){var s=N.cursor.restore();if(!s)return;setTimeout(function(){N.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)},1)}})}},{key:"handleDragging",value:function(){var N=this;this.emitter.listenDOM("mousedown",document.body,function(){N.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){N.mouseDown=!1,N.update(C.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(N,s){if(null==this.scroll.whitelist||this.scroll.whitelist[N]){this.scroll.update();var V=this.getNativeRange();if(null!=V&&V.native.collapsed&&!M.default.query(N,M.default.Scope.BLOCK)){if(V.start.node!==this.cursor.textNode){var Q=M.default.find(V.start.node,!1);if(null==Q)return;if(Q instanceof M.default.Leaf){var me=Q.split(V.start.offset);Q.parent.insertBefore(this.cursor,me)}else Q.insertBefore(this.cursor,V.start.node);this.cursor.attach()}this.cursor.format(N,s),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(N){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,V=this.scroll.length();N=Math.min(N,V-1),s=Math.min(N+s,V-1)-N;var Q=void 0,me=this.scroll.leaf(N),ue=i(me,2),De=ue[0],Ue=ue[1];if(null==De)return null;var Xe=De.position(Ue,!0),st=i(Xe,2);Q=st[0],Ue=st[1];var ze=document.createRange();if(s>0){ze.setStart(Q,Ue);var F=this.scroll.leaf(N+s),Re=i(F,2);if(null==(De=Re[0]))return null;var de=De.position(Ue=Re[1],!0),Ce=i(de,2);return ze.setEnd(Q=Ce[0],Ue=Ce[1]),ze.getBoundingClientRect()}var oe="left",G=void 0;return Q instanceof Text?(Ue<Q.data.length?(ze.setStart(Q,Ue),ze.setEnd(Q,Ue+1)):(ze.setStart(Q,Ue-1),ze.setEnd(Q,Ue),oe="right"),G=ze.getBoundingClientRect()):(G=De.domNode.getBoundingClientRect(),Ue>0&&(oe="right")),{bottom:G.top+G.height,height:G.height,left:G[oe],right:G[oe],top:G.top,width:0}}},{key:"getNativeRange",value:function(){var N=document.getSelection();if(null==N||N.rangeCount<=0)return null;var s=N.getRangeAt(0);if(null==s)return null;var V=this.normalizeNative(s);return b.info("getNativeRange",V),V}},{key:"getRange",value:function(){var N=this.getNativeRange();return null==N?[null,null]:[this.normalizedToRange(N),N]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(N){var s=this,V=[[N.start.node,N.start.offset]];N.native.collapsed||V.push([N.end.node,N.end.offset]);var Q=V.map(function(De){var Ue=i(De,2),Xe=Ue[0],st=Ue[1],ze=M.default.find(Xe,!0),F=ze.offset(s.scroll);return 0===st?F:ze instanceof M.default.Container?F+ze.length():F+ze.index(Xe,st)}),me=Math.min(Math.max.apply(Math,h(Q)),this.scroll.length()-1),ue=Math.min.apply(Math,[me].concat(h(Q)));return new P(ue,me-ue)}},{key:"normalizeNative",value:function(N){if(!I(this.root,N.startContainer)||!N.collapsed&&!I(this.root,N.endContainer))return null;var s={start:{node:N.startContainer,offset:N.startOffset},end:{node:N.endContainer,offset:N.endOffset},native:N};return[s.start,s.end].forEach(function(V){for(var Q=V.node,me=V.offset;!(Q instanceof Text)&&Q.childNodes.length>0;)if(Q.childNodes.length>me)Q=Q.childNodes[me],me=0;else{if(Q.childNodes.length!==me)break;me=(Q=Q.lastChild)instanceof Text?Q.data.length:Q.childNodes.length+1}V.node=Q,V.offset=me}),s}},{key:"rangeToNative",value:function(N){var s=this,V=N.collapsed?[N.index]:[N.index,N.index+N.length],Q=[],me=this.scroll.length();return V.forEach(function(ue,De){ue=Math.min(me-1,ue);var Xe=s.scroll.leaf(ue),st=i(Xe,2),F=st[1],Re=st[0].position(F,0!==De),de=i(Re,2);Q.push(de[0],F=de[1])}),Q.length<2&&(Q=Q.concat(Q)),Q}},{key:"scrollIntoView",value:function(N){var s=this.lastRange;if(null!=s){var V=this.getBounds(s.index,s.length);if(null!=V){var Q=this.scroll.length()-1,me=this.scroll.line(Math.min(s.index,Q)),De=i(me,1)[0],Ue=De;if(s.length>0){var Xe=this.scroll.line(Math.min(s.index+s.length,Q));Ue=i(Xe,1)[0]}if(null!=De&&null!=Ue){var ze=N.getBoundingClientRect();V.top<ze.top?N.scrollTop-=ze.top-V.top:V.bottom>ze.bottom&&(N.scrollTop+=V.bottom-ze.bottom)}}}}},{key:"setNativeRange",value:function(N,s){var V=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N,Q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s,me=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b.info("setNativeRange",N,s,V,Q),null==N||null!=this.root.parentNode&&null!=N.parentNode&&null!=V.parentNode){var ue=document.getSelection();if(null!=ue)if(null!=N){this.hasFocus()||this.root.focus();var De=(this.getNativeRange()||{}).native;if(null==De||me||N!==De.startContainer||s!==De.startOffset||V!==De.endContainer||Q!==De.endOffset){"BR"==N.tagName&&(s=[].indexOf.call(N.parentNode.childNodes,N),N=N.parentNode),"BR"==V.tagName&&(Q=[].indexOf.call(V.parentNode.childNodes,V),V=V.parentNode);var Ue=document.createRange();Ue.setStart(N,s),Ue.setEnd(V,Q),ue.removeAllRanges(),ue.addRange(Ue)}}else ue.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(N){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],V=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.default.sources.API;if("string"==typeof s&&(V=s,s=!1),b.info("setRange",N),null!=N){var Q=this.rangeToNative(N);this.setNativeRange.apply(this,h(Q).concat([s]))}else this.setNativeRange(null);this.update(V)}},{key:"update",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.default.sources.USER,s=this.lastRange,V=this.getRange(),Q=i(V,2),ue=Q[1];if(this.lastRange=Q[0],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,_.default)(s,this.lastRange)){var De;!this.composing&&null!=ue&&ue.native.collapsed&&ue.start.node!==this.cursor.textNode&&this.cursor.restore();var Xe,Ue=[C.default.events.SELECTION_CHANGE,(0,y.default)(this.lastRange),(0,y.default)(s),N];(De=this.emitter).emit.apply(De,[C.default.events.EDITOR_CHANGE].concat(Ue)),N!==C.default.sources.SILENT&&(Xe=this.emitter).emit.apply(Xe,Ue)}}}]),k}();function I(k,D){return D instanceof Text&&(D=D.parentNode),k.contains(D)}l.Range=P,l.default=W},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function C(g,f){for(var d=0;d<f.length;d++){var h=f[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(g,h.key,h)}}return function(g,f,d){return f&&C(g.prototype,f),d&&C(g,d),g}}(),r=function C(g,f,d){null===g&&(g=Function.prototype);var h=Object.getOwnPropertyDescriptor(g,f);if(void 0===h){var T=Object.getPrototypeOf(g);return null===T?void 0:C(T,f,d)}if("value"in h)return h.value;var b=h.get;return void 0===b?void 0:b.call(d)};var p=function(C){function g(){return function y(C,g){if(!(C instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),function u(C,g){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?C:g}(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return function _(C,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);C.prototype=Object.create(g&&g.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(C,g):C.__proto__=g)}(g,C),i(g,[{key:"insertInto",value:function(d,h){0===d.children.length?r(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertInto",this).call(this,d,h):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),g}(function v(C){return C&&C.__esModule?C:{default:C}}(t(0)).default.Embed);p.blotName="break",p.tagName="BR",l.default=p},function(re,l,t){"use strict";var u,i=this&&this.__extends||(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var C in p)p.hasOwnProperty(C)&&(_[C]=p[C])},function(_,p){function C(){this.constructor=_}u(_,p),_.prototype=null===p?Object.create(p):(C.prototype=p.prototype,new C)});Object.defineProperty(l,"__esModule",{value:!0});var r=t(44),L=t(30),M=t(1),v=function(u){function _(p){var C=u.call(this,p)||this;return C.build(),C}return i(_,u),_.prototype.appendChild=function(p){this.insertBefore(p)},_.prototype.attach=function(){u.prototype.attach.call(this),this.children.forEach(function(p){p.attach()})},_.prototype.build=function(){var p=this;this.children=new r.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(C){try{var g=y(C);p.insertBefore(g,p.children.head||void 0)}catch(f){if(f instanceof M.ParchmentError)return;throw f}})},_.prototype.deleteAt=function(p,C){if(0===p&&C===this.length())return this.remove();this.children.forEachAt(p,C,function(g,f,d){g.deleteAt(f,d)})},_.prototype.descendant=function(p,C){var g=this.children.find(C),f=g[0],d=g[1];return null==p.blotName&&p(f)||null!=p.blotName&&f instanceof p?[f,d]:f instanceof _?f.descendant(p,d):[null,-1]},_.prototype.descendants=function(p,C,g){void 0===C&&(C=0),void 0===g&&(g=Number.MAX_VALUE);var f=[],d=g;return this.children.forEachAt(C,g,function(h,T,b){(null==p.blotName&&p(h)||null!=p.blotName&&h instanceof p)&&f.push(h),h instanceof _&&(f=f.concat(h.descendants(p,T,d))),d-=b}),f},_.prototype.detach=function(){this.children.forEach(function(p){p.detach()}),u.prototype.detach.call(this)},_.prototype.formatAt=function(p,C,g,f){this.children.forEachAt(p,C,function(d,h,T){d.formatAt(h,T,g,f)})},_.prototype.insertAt=function(p,C,g){var f=this.children.find(p),d=f[0];if(d)d.insertAt(f[1],C,g);else{var T=null==g?M.create("text",C):M.create(C,g);this.appendChild(T)}},_.prototype.insertBefore=function(p,C){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(g){return p instanceof g}))throw new M.ParchmentError("Cannot insert "+p.statics.blotName+" into "+this.statics.blotName);p.insertInto(this,C)},_.prototype.length=function(){return this.children.reduce(function(p,C){return p+C.length()},0)},_.prototype.moveChildren=function(p,C){this.children.forEach(function(g){p.insertBefore(g,C)})},_.prototype.optimize=function(p){if(u.prototype.optimize.call(this,p),0===this.children.length)if(null!=this.statics.defaultChild){var C=M.create(this.statics.defaultChild);this.appendChild(C),C.optimize(p)}else this.remove()},_.prototype.path=function(p,C){void 0===C&&(C=!1);var g=this.children.find(p,C),f=g[0],d=g[1],h=[[this,p]];return f instanceof _?h.concat(f.path(d,C)):(null!=f&&h.push([f,d]),h)},_.prototype.removeChild=function(p){this.children.remove(p)},_.prototype.replace=function(p){p instanceof _&&p.moveChildren(this),u.prototype.replace.call(this,p)},_.prototype.split=function(p,C){if(void 0===C&&(C=!1),!C){if(0===p)return this;if(p===this.length())return this.next}var g=this.clone();return this.parent.insertBefore(g,this.next),this.children.forEachAt(p,this.length(),function(f,d,h){f=f.split(d,C),g.appendChild(f)}),g},_.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},_.prototype.update=function(p,C){var g=this,f=[],d=[];p.forEach(function(h){h.target===g.domNode&&"childList"===h.type&&(f.push.apply(f,h.addedNodes),d.push.apply(d,h.removedNodes))}),d.forEach(function(h){if(!(null!=h.parentNode&&"IFRAME"!==h.tagName&&document.body.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var T=M.find(h);null!=T&&(null==T.domNode.parentNode||T.domNode.parentNode===g.domNode)&&T.detach()}}),f.filter(function(h){return h.parentNode==g.domNode}).sort(function(h,T){return h===T?0:h.compareDocumentPosition(T)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(h){var T=null;null!=h.nextSibling&&(T=M.find(h.nextSibling));var b=y(h);(b.next!=T||null==b.next)&&(null!=b.parent&&b.parent.removeChild(g),g.insertBefore(b,T||void 0))})},_}(L.default);function y(u){var _=M.find(u);if(null==_)try{_=M.create(u)}catch{_=M.create(M.Scope.INLINE),[].slice.call(u.childNodes).forEach(function(C){_.domNode.appendChild(C)}),u.parentNode&&u.parentNode.replaceChild(_.domNode,u),_.attach()}return _}l.default=v},function(re,l,t){"use strict";var u,i=this&&this.__extends||(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var C in p)p.hasOwnProperty(C)&&(_[C]=p[C])},function(_,p){function C(){this.constructor=_}u(_,p),_.prototype=null===p?Object.create(p):(C.prototype=p.prototype,new C)});Object.defineProperty(l,"__esModule",{value:!0});var r=t(12),L=t(31),M=t(17),v=t(1),y=function(u){function _(p){var C=u.call(this,p)||this;return C.attributes=new L.default(C.domNode),C}return i(_,u),_.formats=function(p){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?p.tagName.toLowerCase():void 0)},_.prototype.format=function(p,C){var g=v.query(p);g instanceof r.default?this.attributes.attribute(g,C):C&&null!=g&&(p!==this.statics.blotName||this.formats()[p]!==C)&&this.replaceWith(p,C)},_.prototype.formats=function(){var p=this.attributes.values(),C=this.statics.formats(this.domNode);return null!=C&&(p[this.statics.blotName]=C),p},_.prototype.replaceWith=function(p,C){var g=u.prototype.replaceWith.call(this,p,C);return this.attributes.copy(g),g},_.prototype.update=function(p,C){var g=this;u.prototype.update.call(this,p,C),p.some(function(f){return f.target===g.domNode&&"attributes"===f.type})&&this.attributes.build()},_.prototype.wrap=function(p,C){var g=u.prototype.wrap.call(this,p,C);return g instanceof _&&g.statics.scope===this.statics.scope&&this.attributes.move(g),g},_}(M.default);l.default=y},function(re,l,t){"use strict";var v,i=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,u){y.__proto__=u}||function(y,u){for(var _ in u)u.hasOwnProperty(_)&&(y[_]=u[_])},function(y,u){function _(){this.constructor=y}v(y,u),y.prototype=null===u?Object.create(u):(_.prototype=u.prototype,new _)});Object.defineProperty(l,"__esModule",{value:!0});var r=t(30),L=t(1),M=function(v){function y(){return null!==v&&v.apply(this,arguments)||this}return i(y,v),y.value=function(u){return!0},y.prototype.index=function(u,_){return this.domNode===u||this.domNode.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(_,1):-1},y.prototype.position=function(u,_){var p=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return u>0&&(p+=1),[this.parent.domNode,p]},y.prototype.value=function(){var u;return(u={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,u},y.scope=L.Scope.INLINE_BLOT,y}(r.default);l.default=M},function(re,l,t){var i=t(11),r=t(3),L={attributes:{compose:function(v,y,u){"object"!=typeof v&&(v={}),"object"!=typeof y&&(y={});var _=r(!0,{},y);for(var p in u||(_=Object.keys(_).reduce(function(C,g){return null!=_[g]&&(C[g]=_[g]),C},{})),v)void 0!==v[p]&&void 0===y[p]&&(_[p]=v[p]);return Object.keys(_).length>0?_:void 0},diff:function(v,y){"object"!=typeof v&&(v={}),"object"!=typeof y&&(y={});var u=Object.keys(v).concat(Object.keys(y)).reduce(function(_,p){return i(v[p],y[p])||(_[p]=void 0===y[p]?null:y[p]),_},{});return Object.keys(u).length>0?u:void 0},transform:function(v,y,u){if("object"!=typeof v)return y;if("object"==typeof y){if(!u)return y;var _=Object.keys(y).reduce(function(p,C){return void 0===v[C]&&(p[C]=y[C]),p},{});return Object.keys(_).length>0?_:void 0}}},iterator:function(v){return new M(v)},length:function(v){return"number"==typeof v.delete?v.delete:"number"==typeof v.retain?v.retain:"string"==typeof v.insert?v.insert.length:1}};function M(v){this.ops=v,this.index=0,this.offset=0}M.prototype.hasNext=function(){return this.peekLength()<1/0},M.prototype.next=function(v){v||(v=1/0);var y=this.ops[this.index];if(y){var u=this.offset,_=L.length(y);if(v>=_-u?(v=_-u,this.index+=1,this.offset=0):this.offset+=v,"number"==typeof y.delete)return{delete:v};var p={};return y.attributes&&(p.attributes=y.attributes),"number"==typeof y.retain?p.retain=v:p.insert="string"==typeof y.insert?y.insert.substr(u,v):y.insert,p}return{retain:1/0}},M.prototype.peek=function(){return this.ops[this.index]},M.prototype.peekLength=function(){return this.ops[this.index]?L.length(this.ops[this.index])-this.offset:1/0},M.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},M.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var v=this.offset,y=this.index,u=this.next(),_=this.ops.slice(this.index);return this.offset=v,this.index=y,[u].concat(_)}return[]},re.exports=L},function(re,l){var t=function(){"use strict";function i(g,f){return null!=f&&g instanceof f}var r,L,M;try{r=Map}catch{r=function(){}}try{L=Set}catch{L=function(){}}try{M=Promise}catch{M=function(){}}function v(g,f,d,h,T){"object"==typeof f&&(d=f.depth,h=f.prototype,T=f.includeNonEnumerable,f=f.circular);var b=[],P=[],W=typeof Buffer<"u";return typeof f>"u"&&(f=!0),typeof d>"u"&&(d=1/0),function I(k,D){if(null===k)return null;if(0===D)return k;var N,s;if("object"!=typeof k)return k;if(i(k,r))N=new r;else if(i(k,L))N=new L;else if(i(k,M))N=new M(function(ze,F){k.then(function(Re){ze(I(Re,D-1))},function(Re){F(I(Re,D-1))})});else if(v.__isArray(k))N=[];else if(v.__isRegExp(k))N=new RegExp(k.source,C(k)),k.lastIndex&&(N.lastIndex=k.lastIndex);else if(v.__isDate(k))N=new Date(k.getTime());else{if(W&&Buffer.isBuffer(k))return N=Buffer.allocUnsafe?Buffer.allocUnsafe(k.length):new Buffer(k.length),k.copy(N),N;i(k,Error)?N=Object.create(k):typeof h>"u"?(s=Object.getPrototypeOf(k),N=Object.create(s)):(N=Object.create(h),s=h)}if(f){var V=b.indexOf(k);if(-1!=V)return P[V];b.push(k),P.push(N)}for(var Q in i(k,r)&&k.forEach(function(ze,F){var Re=I(F,D-1),de=I(ze,D-1);N.set(Re,de)}),i(k,L)&&k.forEach(function(ze){var F=I(ze,D-1);N.add(F)}),k){var me;s&&(me=Object.getOwnPropertyDescriptor(s,Q)),(!me||null!=me.set)&&(N[Q]=I(k[Q],D-1))}if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(k);for(Q=0;Q<ue.length;Q++){var De=ue[Q];(Ue=Object.getOwnPropertyDescriptor(k,De))&&!Ue.enumerable&&!T||(N[De]=I(k[De],D-1),Ue.enumerable||Object.defineProperty(N,De,{enumerable:!1}))}}if(T){var Xe=Object.getOwnPropertyNames(k);for(Q=0;Q<Xe.length;Q++){var Ue,st=Xe[Q];(Ue=Object.getOwnPropertyDescriptor(k,st))&&Ue.enumerable||(N[st]=I(k[st],D-1),Object.defineProperty(N,st,{enumerable:!1}))}}return N}(g,d)}function y(g){return Object.prototype.toString.call(g)}function C(g){var f="";return g.global&&(f+="g"),g.ignoreCase&&(f+="i"),g.multiline&&(f+="m"),f}return v.clonePrototype=function(f){if(null===f)return null;var d=function(){};return d.prototype=f,new d},v.__objToStr=y,v.__isDate=function u(g){return"object"==typeof g&&"[object Date]"===y(g)},v.__isArray=function _(g){return"object"==typeof g&&"[object Array]"===y(g)},v.__isRegExp=function p(g){return"object"==typeof g&&"[object RegExp]"===y(g)},v.__getRegExpFlags=C,v}();"object"==typeof re&&re.exports&&(re.exports=t)},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(s,V){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return function N(s,V){var Q=[],me=!0,ue=!1,De=void 0;try{for(var Xe,Ue=s[Symbol.iterator]();!(me=(Xe=Ue.next()).done)&&(Q.push(Xe.value),!V||Q.length!==V);me=!0);}catch(st){ue=!0,De=st}finally{try{!me&&Ue.return&&Ue.return()}finally{if(ue)throw De}}return Q}(s,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function N(s,V){for(var Q=0;Q<V.length;Q++){var me=V[Q];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(s,me.key,me)}}return function(s,V,Q){return V&&N(s.prototype,V),Q&&N(s,Q),s}}(),L=function N(s,V,Q){null===s&&(s=Function.prototype);var me=Object.getOwnPropertyDescriptor(s,V);if(void 0===me){var ue=Object.getPrototypeOf(s);return null===ue?void 0:N(ue,V,Q)}if("value"in me)return me.value;var De=me.get;return void 0===De?void 0:De.call(Q)},v=b(t(0)),u=b(t(8)),_=t(4),p=b(_),g=b(t(16)),d=b(t(13)),T=b(t(25));function b(N){return N&&N.__esModule?N:{default:N}}function k(N){return N instanceof p.default||N instanceof _.BlockEmbed}var D=function(N){function s(V,Q){!function P(N,s){if(!(N instanceof s))throw new TypeError("Cannot call a class as a function")}(this,s);var me=function W(N,s){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?N:s}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,V));return me.emitter=Q.emitter,Array.isArray(Q.whitelist)&&(me.whitelist=Q.whitelist.reduce(function(ue,De){return ue[De]=!0,ue},{})),me.domNode.addEventListener("DOMNodeInserted",function(){}),me.optimize(),me.enable(),me}return function I(N,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);N.prototype=Object.create(s&&s.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(N,s):N.__proto__=s)}(s,N),r(s,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(Q,me){var ue=this.line(Q),De=i(ue,2),Ue=De[0],Xe=De[1],st=this.line(Q+me),F=i(st,1)[0];if(L(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"deleteAt",this).call(this,Q,me),null!=F&&Ue!==F&&Xe>0){if(Ue instanceof _.BlockEmbed||F instanceof _.BlockEmbed)return void this.optimize();if(Ue instanceof d.default){var Re=Ue.newlineIndex(Ue.length(),!0);if(Re>-1&&(Ue=Ue.split(Re+1))===F)return void this.optimize()}else if(F instanceof d.default){var de=F.newlineIndex(0);de>-1&&F.split(de+1)}Ue.moveChildren(F,F.children.head instanceof g.default?null:F.children.head),Ue.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(Q,me,ue,De){null!=this.whitelist&&!this.whitelist[ue]||(L(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"formatAt",this).call(this,Q,me,ue,De),this.optimize())}},{key:"insertAt",value:function(Q,me,ue){if(null==ue||null==this.whitelist||this.whitelist[me]){if(Q>=this.length())if(null==ue||null==v.default.query(me,v.default.Scope.BLOCK)){var De=v.default.create(this.statics.defaultChild);this.appendChild(De),null==ue&&me.endsWith("\n")&&(me=me.slice(0,-1)),De.insertAt(0,me,ue)}else{var Ue=v.default.create(me,ue);this.appendChild(Ue)}else L(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertAt",this).call(this,Q,me,ue);this.optimize()}}},{key:"insertBefore",value:function(Q,me){if(Q.statics.scope===v.default.Scope.INLINE_BLOT){var ue=v.default.create(this.statics.defaultChild);ue.appendChild(Q),Q=ue}L(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertBefore",this).call(this,Q,me)}},{key:"leaf",value:function(Q){return this.path(Q).pop()||[null,-1]}},{key:"line",value:function(Q){return Q===this.length()?this.line(Q-1):this.descendant(k,Q)}},{key:"lines",value:function(){return function De(Ue,Xe,st){var ze=[],F=st;return Ue.children.forEachAt(Xe,st,function(Re,de,Ce){k(Re)?ze.push(Re):Re instanceof v.default.Container&&(ze=ze.concat(De(Re,de,F))),F-=Ce}),ze}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(L(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,Q,me),Q.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,Q,me))}},{key:"path",value:function(Q){return L(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"path",this).call(this,Q).slice(1)}},{key:"update",value:function(Q){if(!0!==this.batch){var me=u.default.sources.USER;"string"==typeof Q&&(me=Q),Array.isArray(Q)||(Q=this.observer.takeRecords()),Q.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,me,Q),L(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"update",this).call(this,Q.concat([])),Q.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,me,Q)}}}]),s}(v.default.Scroll);D.blotName="scroll",D.className="ql-editor",D.tagName="DIV",D.defaultChild="block",D.allowedChildren=[p.default,_.BlockEmbed,T.default],l.default=D},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.SHORTKEY=l.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},r=function(ye,we){if(Array.isArray(ye))return ye;if(Symbol.iterator in Object(ye))return function G(ye,we){var Fe=[],lt=!0,Pt=!1,wt=void 0;try{for(var nn,Bt=ye[Symbol.iterator]();!(lt=(nn=Bt.next()).done)&&(Fe.push(nn.value),!we||Fe.length!==we);lt=!0);}catch(xt){Pt=!0,wt=xt}finally{try{!lt&&Bt.return&&Bt.return()}finally{if(Pt)throw wt}}return Fe}(ye,we);throw new TypeError("Invalid attempt to destructure non-iterable instance")},L=function(){function G(ye,we){for(var Fe=0;Fe<we.length;Fe++){var lt=we[Fe];lt.enumerable=lt.enumerable||!1,lt.configurable=!0,"value"in lt&&(lt.writable=!0),Object.defineProperty(ye,lt.key,lt)}}return function(ye,we,Fe){return we&&G(ye.prototype,we),Fe&&G(ye,Fe),ye}}(),v=N(t(21)),u=N(t(11)),p=N(t(3)),g=N(t(2)),d=N(t(20)),T=N(t(0)),P=N(t(5)),I=N(t(10)),D=N(t(9));function N(G){return G&&G.__esModule?G:{default:G}}function s(G,ye,we){return ye in G?Object.defineProperty(G,ye,{value:we,enumerable:!0,configurable:!0,writable:!0}):G[ye]=we,G}var ue=(0,I.default)("quill:keyboard"),De=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Ue=function(G){function ye(we,Fe){!function V(G,ye){if(!(G instanceof ye))throw new TypeError("Cannot call a class as a function")}(this,ye);var lt=function Q(G,ye){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ye||"object"!=typeof ye&&"function"!=typeof ye?G:ye}(this,(ye.__proto__||Object.getPrototypeOf(ye)).call(this,we,Fe));return lt.bindings={},Object.keys(lt.options.bindings).forEach(function(Pt){"list autofill"===Pt&&null!=we.scroll.whitelist&&!we.scroll.whitelist.list||lt.options.bindings[Pt]&&lt.addBinding(lt.options.bindings[Pt])}),lt.addBinding({key:ye.keys.ENTER,shiftKey:null},Re),lt.addBinding({key:ye.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(lt.addBinding({key:ye.keys.BACKSPACE},{collapsed:!0},st),lt.addBinding({key:ye.keys.DELETE},{collapsed:!0},ze)):(lt.addBinding({key:ye.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},st),lt.addBinding({key:ye.keys.DELETE},{collapsed:!0,suffix:/^.?$/},ze)),lt.addBinding({key:ye.keys.BACKSPACE},{collapsed:!1},F),lt.addBinding({key:ye.keys.DELETE},{collapsed:!1},F),lt.addBinding({key:ye.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},st),lt.listen(),lt}return function me(G,ye){if("function"!=typeof ye&&null!==ye)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);G.prototype=Object.create(ye&&ye.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(G,ye):G.__proto__=ye)}(ye,G),L(ye,null,[{key:"match",value:function(Fe,lt){return lt=oe(lt),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(Pt){return!!lt[Pt]!==Fe[Pt]&&null!==lt[Pt]})&&lt.key===(Fe.which||Fe.keyCode)}}]),L(ye,[{key:"addBinding",value:function(Fe){var lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},wt=oe(Fe);if(null==wt||null==wt.key)return ue.warn("Attempted to add invalid keyboard binding",wt);"function"==typeof lt&&(lt={handler:lt}),"function"==typeof Pt&&(Pt={handler:Pt}),wt=(0,p.default)(wt,lt,Pt),this.bindings[wt.key]=this.bindings[wt.key]||[],this.bindings[wt.key].push(wt)}},{key:"listen",value:function(){var Fe=this;this.quill.root.addEventListener("keydown",function(lt){if(!lt.defaultPrevented){var wt=(Fe.bindings[lt.which||lt.keyCode]||[]).filter(function(dt){return ye.match(lt,dt)});if(0!==wt.length){var Bt=Fe.quill.getSelection();if(null!=Bt&&Fe.quill.hasFocus()){var nn=Fe.quill.getLine(Bt.index),xt=r(nn,2),sn=xt[0],ct=xt[1],Ve=Fe.quill.getLeaf(Bt.index),rt=r(Ve,2),Et=rt[0],Ft=rt[1],yt=0===Bt.length?[Et,Ft]:Fe.quill.getLeaf(Bt.index+Bt.length),un=r(yt,2),bt=un[0],Jt=un[1],en=Et instanceof T.default.Text?Et.value().slice(0,Ft):"",mn=bt instanceof T.default.Text?bt.value().slice(Jt):"",En={collapsed:0===Bt.length,empty:0===Bt.length&&sn.length()<=1,format:Fe.quill.getFormat(Bt),offset:ct,prefix:en,suffix:mn};wt.some(function(dt){if(null!=dt.collapsed&&dt.collapsed!==En.collapsed||null!=dt.empty&&dt.empty!==En.empty||null!=dt.offset&&dt.offset!==En.offset)return!1;if(Array.isArray(dt.format)){if(dt.format.every(function(Ot){return null==En.format[Ot]}))return!1}else if("object"===i(dt.format)&&!Object.keys(dt.format).every(function(Ot){return!0===dt.format[Ot]?null!=En.format[Ot]:!1===dt.format[Ot]?null==En.format[Ot]:(0,u.default)(dt.format[Ot],En.format[Ot])}))return!1;return!(null!=dt.prefix&&!dt.prefix.test(En.prefix)||null!=dt.suffix&&!dt.suffix.test(En.suffix))&&!0!==dt.handler.call(Fe,Bt,En)})&&lt.preventDefault()}}}})}}]),ye}(D.default);function Xe(G,ye){var we;return s(we={key:G,shiftKey:ye,altKey:null},G===Ue.keys.LEFT?"prefix":"suffix",/^$/),s(we,"handler",function(Pt){var wt=Pt.index;G===Ue.keys.RIGHT&&(wt+=Pt.length+1);var Bt=this.quill.getLeaf(wt);return!(r(Bt,1)[0]instanceof T.default.Embed&&(G===Ue.keys.LEFT?ye?this.quill.setSelection(Pt.index-1,Pt.length+1,P.default.sources.USER):this.quill.setSelection(Pt.index-1,P.default.sources.USER):ye?this.quill.setSelection(Pt.index,Pt.length+1,P.default.sources.USER):this.quill.setSelection(Pt.index+Pt.length+1,P.default.sources.USER),1))}),we}function st(G,ye){if(!(0===G.index||this.quill.getLength()<=1)){var we=this.quill.getLine(G.index),lt=r(we,1)[0],Pt={};if(0===ye.offset){var wt=this.quill.getLine(G.index-1),nn=r(wt,1)[0];if(null!=nn&&nn.length()>1){var xt=lt.formats(),sn=this.quill.getFormat(G.index-1,1);Pt=d.default.attributes.diff(xt,sn)||{}}}var ct=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(ye.prefix)?2:1;this.quill.deleteText(G.index-ct,ct,P.default.sources.USER),Object.keys(Pt).length>0&&this.quill.formatLine(G.index-ct,ct,Pt,P.default.sources.USER),this.quill.focus()}}function ze(G,ye){var we=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(ye.suffix)?2:1;if(!(G.index>=this.quill.getLength()-we)){var Fe={},lt=0,Pt=this.quill.getLine(G.index),Bt=r(Pt,1)[0];if(ye.offset>=Bt.length()-1){var nn=this.quill.getLine(G.index+1),sn=r(nn,1)[0];if(sn){var ct=Bt.formats(),Ve=this.quill.getFormat(G.index,1);Fe=d.default.attributes.diff(ct,Ve)||{},lt=sn.length()}}this.quill.deleteText(G.index,we,P.default.sources.USER),Object.keys(Fe).length>0&&this.quill.formatLine(G.index+lt-1,we,Fe,P.default.sources.USER)}}function F(G){var ye=this.quill.getLines(G),we={};if(ye.length>1){var Fe=ye[0].formats(),lt=ye[ye.length-1].formats();we=d.default.attributes.diff(lt,Fe)||{}}this.quill.deleteText(G,P.default.sources.USER),Object.keys(we).length>0&&this.quill.formatLine(G.index,1,we,P.default.sources.USER),this.quill.setSelection(G.index,P.default.sources.SILENT),this.quill.focus()}function Re(G,ye){var we=this;G.length>0&&this.quill.scroll.deleteAt(G.index,G.length);var Fe=Object.keys(ye.format).reduce(function(lt,Pt){return T.default.query(Pt,T.default.Scope.BLOCK)&&!Array.isArray(ye.format[Pt])&&(lt[Pt]=ye.format[Pt]),lt},{});this.quill.insertText(G.index,"\n",Fe,P.default.sources.USER),this.quill.setSelection(G.index+1,P.default.sources.SILENT),this.quill.focus(),Object.keys(ye.format).forEach(function(lt){null==Fe[lt]&&(Array.isArray(ye.format[lt])||"link"!==lt&&we.quill.format(lt,ye.format[lt],P.default.sources.USER))})}function de(G){return{key:Ue.keys.TAB,shiftKey:!G,format:{"code-block":!0},handler:function(we){var Fe=T.default.query("code-block"),lt=we.index,Pt=we.length,wt=this.quill.scroll.descendant(Fe,lt),Bt=r(wt,2),nn=Bt[0],xt=Bt[1];if(null!=nn){var sn=this.quill.getIndex(nn),ct=nn.newlineIndex(xt,!0)+1,Ve=nn.newlineIndex(sn+xt+Pt),rt=nn.domNode.textContent.slice(ct,Ve).split("\n");xt=0,rt.forEach(function(Et,Ft){G?(nn.insertAt(ct+xt,Fe.TAB),xt+=Fe.TAB.length,0===Ft?lt+=Fe.TAB.length:Pt+=Fe.TAB.length):Et.startsWith(Fe.TAB)&&(nn.deleteAt(ct+xt,Fe.TAB.length),xt-=Fe.TAB.length,0===Ft?lt-=Fe.TAB.length:Pt-=Fe.TAB.length),xt+=Et.length+1}),this.quill.update(P.default.sources.USER),this.quill.setSelection(lt,Pt,P.default.sources.SILENT)}}}}function Ce(G){return{key:G[0].toUpperCase(),shortKey:!0,handler:function(we,Fe){this.quill.format(G,!Fe.format[G],P.default.sources.USER)}}}function oe(G){if("string"==typeof G||"number"==typeof G)return oe({key:G});if("object"===(typeof G>"u"?"undefined":i(G))&&(G=(0,v.default)(G,!1)),"string"==typeof G.key)if(null!=Ue.keys[G.key.toUpperCase()])G.key=Ue.keys[G.key.toUpperCase()];else{if(1!==G.key.length)return null;G.key=G.key.toUpperCase().charCodeAt(0)}return G.shortKey&&(G[De]=G.shortKey,delete G.shortKey),G}Ue.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Ue.DEFAULTS={bindings:{bold:Ce("bold"),italic:Ce("italic"),underline:Ce("underline"),indent:{key:Ue.keys.TAB,format:["blockquote","indent","list"],handler:function(ye,we){if(we.collapsed&&0!==we.offset)return!0;this.quill.format("indent","+1",P.default.sources.USER)}},outdent:{key:Ue.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(ye,we){if(we.collapsed&&0!==we.offset)return!0;this.quill.format("indent","-1",P.default.sources.USER)}},"outdent backspace":{key:Ue.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(ye,we){null!=we.format.indent?this.quill.format("indent","-1",P.default.sources.USER):null!=we.format.list&&this.quill.format("list",!1,P.default.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:Ue.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(ye){this.quill.deleteText(ye.index-1,1,P.default.sources.USER)}},tab:{key:Ue.keys.TAB,handler:function(ye){this.quill.history.cutoff();var we=(new g.default).retain(ye.index).delete(ye.length).insert("\t");this.quill.updateContents(we,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ye.index+1,P.default.sources.SILENT)}},"list empty enter":{key:Ue.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(ye,we){this.quill.format("list",!1,P.default.sources.USER),we.format.indent&&this.quill.format("indent",!1,P.default.sources.USER)}},"checklist enter":{key:Ue.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(ye){var we=this.quill.getLine(ye.index),Fe=r(we,2),lt=Fe[0],Pt=Fe[1],wt=(0,p.default)({},lt.formats(),{list:"checked"}),Bt=(new g.default).retain(ye.index).insert("\n",wt).retain(lt.length()-Pt-1).retain(1,{list:"unchecked"});this.quill.updateContents(Bt,P.default.sources.USER),this.quill.setSelection(ye.index+1,P.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Ue.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(ye,we){var Fe=this.quill.getLine(ye.index),lt=r(Fe,2),Pt=lt[0],wt=lt[1],Bt=(new g.default).retain(ye.index).insert("\n",we.format).retain(Pt.length()-wt-1).retain(1,{header:null});this.quill.updateContents(Bt,P.default.sources.USER),this.quill.setSelection(ye.index+1,P.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(ye,we){var Fe=we.prefix.length,lt=this.quill.getLine(ye.index),Pt=r(lt,2),wt=Pt[0],Bt=Pt[1];if(Bt>Fe)return!0;var nn=void 0;switch(we.prefix.trim()){case"[]":case"[ ]":nn="unchecked";break;case"[x]":nn="checked";break;case"-":case"*":nn="bullet";break;default:nn="ordered"}this.quill.insertText(ye.index," ",P.default.sources.USER),this.quill.history.cutoff();var xt=(new g.default).retain(ye.index-Bt).delete(Fe+1).retain(wt.length()-2-Bt).retain(1,{list:nn});this.quill.updateContents(xt,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ye.index-Fe,P.default.sources.SILENT)}},"code exit":{key:Ue.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(ye){var we=this.quill.getLine(ye.index),Fe=r(we,2),lt=Fe[0],Pt=Fe[1],wt=(new g.default).retain(ye.index+lt.length()-Pt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(wt,P.default.sources.USER)}},"embed left":Xe(Ue.keys.LEFT,!1),"embed left shift":Xe(Ue.keys.LEFT,!0),"embed right":Xe(Ue.keys.RIGHT,!1),"embed right shift":Xe(Ue.keys.RIGHT,!0)}},l.default=Ue,l.SHORTKEY=De},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(h,T){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return function d(h,T){var b=[],P=!0,W=!1,I=void 0;try{for(var D,k=h[Symbol.iterator]();!(P=(D=k.next()).done)&&(b.push(D.value),!T||b.length!==T);P=!0);}catch(N){W=!0,I=N}finally{try{!P&&k.return&&k.return()}finally{if(W)throw I}}return b}(h,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function d(h,T,b){null===h&&(h=Function.prototype);var P=Object.getOwnPropertyDescriptor(h,T);if(void 0===P){var W=Object.getPrototypeOf(h);return null===W?void 0:d(W,T,b)}if("value"in P)return P.value;var I=P.get;return void 0===I?void 0:I.call(b)},L=function(){function d(h,T){for(var b=0;b<T.length;b++){var P=T[b];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(h,P.key,P)}}return function(h,T,b){return T&&d(h.prototype,T),b&&d(h,b),h}}(),v=_(t(0)),u=_(t(7));function _(d){return d&&d.__esModule?d:{default:d}}var f=function(d){function h(T,b){!function p(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,h);var P=function C(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?d:h}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,T));return P.selection=b,P.textNode=document.createTextNode(h.CONTENTS),P.domNode.appendChild(P.textNode),P._length=0,P}return function g(d,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}(h,d),L(h,null,[{key:"value",value:function(){}}]),L(h,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(b,P){if(0!==this._length)return r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,b,P);for(var W=this,I=0;null!=W&&W.statics.scope!==v.default.Scope.BLOCK_BLOT;)I+=W.offset(W.parent),W=W.parent;null!=W&&(this._length=h.CONTENTS.length,W.optimize(),W.formatAt(I,h.CONTENTS.length,b,P),this._length=0)}},{key:"index",value:function(b,P){return b===this.textNode?0:r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"index",this).call(this,b,P)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var b=this.textNode,P=this.selection.getNativeRange(),W=void 0,I=void 0,k=void 0;if(null!=P&&P.start.node===b&&P.end.node===b){var D=[b,P.start.offset,P.end.offset];W=D[0],I=D[1],k=D[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==h.CONTENTS){var N=this.textNode.data.split(h.CONTENTS).join("");this.next instanceof u.default?(W=this.next.domNode,this.next.insertAt(0,N),this.textNode.data=h.CONTENTS):(this.textNode.data=N,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(h.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=I){var s=[I,k].map(function(Q){return Math.max(0,Math.min(W.data.length,Q-1))}),V=i(s,2);return{startNode:W,startOffset:I=V[0],endNode:W,endOffset:k=V[1]}}}}},{key:"update",value:function(b,P){var W=this;if(b.some(function(k){return"characterData"===k.type&&k.target===W.textNode})){var I=this.restore();I&&(P.range=I)}}},{key:"value",value:function(){return""}}]),h}(v.default.Embed);f.blotName="cursor",f.className="ql-cursor",f.tagName="span",f.CONTENTS="\ufeff",l.default=f},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=v(t(0)),L=t(4),M=v(L);function v(C){return C&&C.__esModule?C:{default:C}}var p=function(C){function g(){return function y(C,g){if(!(C instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),function u(C,g){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?C:g}(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return function _(C,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);C.prototype=Object.create(g&&g.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(C,g):C.__proto__=g)}(g,C),g}(r.default.Container);p.allowedChildren=[M.default,L.BlockEmbed,p],l.default=p},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ColorStyle=l.ColorClass=l.ColorAttributor=void 0;var i=function(){function f(d,h){for(var T=0;T<h.length;T++){var b=h[T];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}return function(d,h,T){return h&&f(d.prototype,h),T&&f(d,T),d}}(),r=function f(d,h,T){null===d&&(d=Function.prototype);var b=Object.getOwnPropertyDescriptor(d,h);if(void 0===b){var P=Object.getPrototypeOf(d);return null===P?void 0:f(P,h,T)}if("value"in b)return b.value;var W=b.get;return void 0===W?void 0:W.call(T)},M=function v(f){return f&&f.__esModule?f:{default:f}}(t(0));var p=function(f){function d(){return function y(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d),function u(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?f:d}(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return function _(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}(d,f),i(d,[{key:"value",value:function(T){var b=r(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"value",this).call(this,T);return b.startsWith("rgb(")?"#"+(b=b.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(P){return("00"+parseInt(P).toString(16)).slice(-2)}).join(""):b}}]),d}(M.default.Attributor.Style),C=new M.default.Attributor.Class("color","ql-color",{scope:M.default.Scope.INLINE}),g=new p("color","color",{scope:M.default.Scope.INLINE});l.ColorAttributor=p,l.ColorClass=C,l.ColorStyle=g},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.sanitize=l.default=void 0;var i=function(){function g(f,d){for(var h=0;h<d.length;h++){var T=d[h];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(f,T.key,T)}}return function(f,d,h){return d&&g(f.prototype,d),h&&g(f,h),f}}(),r=function g(f,d,h){null===f&&(f=Function.prototype);var T=Object.getOwnPropertyDescriptor(f,d);if(void 0===T){var b=Object.getPrototypeOf(f);return null===b?void 0:g(b,d,h)}if("value"in T)return T.value;var P=T.get;return void 0===P?void 0:P.call(h)};var p=function(g){function f(){return function y(g,f){if(!(g instanceof f))throw new TypeError("Cannot call a class as a function")}(this,f),function u(g,f){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?g:f}(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function _(g,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);g.prototype=Object.create(f&&f.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(g,f):g.__proto__=f)}(f,g),i(f,[{key:"format",value:function(h,T){if(h!==this.statics.blotName||!T)return r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,h,T);T=this.constructor.sanitize(T),this.domNode.setAttribute("href",T)}}],[{key:"create",value:function(h){var T=r(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,h);return h=this.sanitize(h),T.setAttribute("href",h),T.setAttribute("rel","noopener noreferrer"),T.setAttribute("target","_blank"),T}},{key:"formats",value:function(h){return h.getAttribute("href")}},{key:"sanitize",value:function(h){return C(h,this.PROTOCOL_WHITELIST)?h:this.SANITIZED_URL}}]),f}(function v(g){return g&&g.__esModule?g:{default:g}}(t(6)).default);function C(g,f){var d=document.createElement("a");d.href=g;var h=d.href.slice(0,d.href.indexOf(":"));return f.indexOf(h)>-1}p.blotName="link",p.tagName="A",p.SANITIZED_URL="about:blank",p.PROTOCOL_WHITELIST=["http","https","mailto","tel"],l.default=p,l.sanitize=C},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r=function(){function f(d,h){for(var T=0;T<h.length;T++){var b=h[T];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}return function(d,h,T){return h&&f(d.prototype,h),T&&f(d,T),d}}(),M=u(t(23)),y=u(t(107));function u(f){return f&&f.__esModule?f:{default:f}}var p=0;function C(f,d){f.setAttribute(d,"true"!==f.getAttribute(d))}var g=function(){function f(d){var h=this;(function _(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")})(this,f),this.select=d,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){h.togglePicker()}),this.label.addEventListener("keydown",function(T){switch(T.keyCode){case M.default.keys.ENTER:h.togglePicker();break;case M.default.keys.ESCAPE:h.escape(),T.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return r(f,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),C(this.label,"aria-expanded"),C(this.options,"aria-hidden")}},{key:"buildItem",value:function(h){var T=this,b=document.createElement("span");return b.tabIndex="0",b.setAttribute("role","button"),b.classList.add("ql-picker-item"),h.hasAttribute("value")&&b.setAttribute("data-value",h.getAttribute("value")),h.textContent&&b.setAttribute("data-label",h.textContent),b.addEventListener("click",function(){T.selectItem(b,!0)}),b.addEventListener("keydown",function(P){switch(P.keyCode){case M.default.keys.ENTER:T.selectItem(b,!0),P.preventDefault();break;case M.default.keys.ESCAPE:T.escape(),P.preventDefault()}}),b}},{key:"buildLabel",value:function(){var h=document.createElement("span");return h.classList.add("ql-picker-label"),h.innerHTML=y.default,h.tabIndex="0",h.setAttribute("role","button"),h.setAttribute("aria-expanded","false"),this.container.appendChild(h),h}},{key:"buildOptions",value:function(){var h=this,T=document.createElement("span");T.classList.add("ql-picker-options"),T.setAttribute("aria-hidden","true"),T.tabIndex="-1",T.id="ql-picker-options-"+p,p+=1,this.label.setAttribute("aria-controls",T.id),this.options=T,[].slice.call(this.select.options).forEach(function(b){var P=h.buildItem(b);T.appendChild(P),!0===b.selected&&h.selectItem(P)}),this.container.appendChild(T)}},{key:"buildPicker",value:function(){var h=this;[].slice.call(this.select.attributes).forEach(function(T){h.container.setAttribute(T.name,T.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var h=this;this.close(),setTimeout(function(){return h.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(h){var T=arguments.length>1&&void 0!==arguments[1]&&arguments[1],b=this.container.querySelector(".ql-selected");if(h!==b&&(b?.classList.remove("ql-selected"),null!=h&&(h.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(h.parentNode.children,h),h.hasAttribute("data-value")?this.label.setAttribute("data-value",h.getAttribute("data-value")):this.label.removeAttribute("data-value"),h.hasAttribute("data-label")?this.label.setAttribute("data-label",h.getAttribute("data-label")):this.label.removeAttribute("data-label"),T))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":i(Event))){var P=document.createEvent("Event");P.initEvent("change",!0,!0),this.select.dispatchEvent(P)}this.close()}}},{key:"update",value:function(){var h=void 0;if(this.select.selectedIndex>-1){var T=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];h=this.select.options[this.select.selectedIndex],this.selectItem(T)}else this.selectItem(null);var b=null!=h&&h!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",b)}}]),f}();l.default=g},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=ue(t(0)),M=ue(t(5)),v=t(4),y=ue(v),_=ue(t(16)),C=ue(t(25)),f=ue(t(24)),h=ue(t(35)),b=ue(t(6)),W=ue(t(22)),k=ue(t(7)),N=ue(t(55)),V=ue(t(42)),me=ue(t(23));function ue(De){return De&&De.__esModule?De:{default:De}}M.default.register({"blots/block":y.default,"blots/block/embed":v.BlockEmbed,"blots/break":_.default,"blots/container":C.default,"blots/cursor":f.default,"blots/embed":h.default,"blots/inline":b.default,"blots/scroll":W.default,"blots/text":k.default,"modules/clipboard":N.default,"modules/history":V.default,"modules/keyboard":me.default}),r.default.register(y.default,_.default,f.default,b.default,W.default,k.default),l.default=M.default},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=t(1),r=function(){function L(M){this.domNode=M,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(L.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),L.create=function(M){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?("string"==typeof M&&(M=M.toUpperCase(),parseInt(M).toString()===M&&(M=parseInt(M))),v="number"==typeof M?document.createElement(this.tagName[M-1]):this.tagName.indexOf(M)>-1?document.createElement(M):document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},L.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},L.prototype.clone=function(){var M=this.domNode.cloneNode(!1);return i.create(M)},L.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},L.prototype.deleteAt=function(M,v){this.isolate(M,v).remove()},L.prototype.formatAt=function(M,v,y,u){var _=this.isolate(M,v);if(null!=i.query(y,i.Scope.BLOT)&&u)_.wrap(y,u);else if(null!=i.query(y,i.Scope.ATTRIBUTE)){var p=i.create(this.statics.scope);_.wrap(p),p.format(y,u)}},L.prototype.insertAt=function(M,v,y){var u=null==y?i.create("text",v):i.create(v,y),_=this.split(M);this.parent.insertBefore(u,_)},L.prototype.insertInto=function(M,v){void 0===v&&(v=null),null!=this.parent&&this.parent.children.remove(this);var y=null;M.children.insertBefore(this,v),null!=v&&(y=v.domNode),(this.domNode.parentNode!=M.domNode||this.domNode.nextSibling!=y)&&M.domNode.insertBefore(this.domNode,y),this.parent=M,this.attach()},L.prototype.isolate=function(M,v){var y=this.split(M);return y.split(v),y},L.prototype.length=function(){return 1},L.prototype.offset=function(M){return void 0===M&&(M=this.parent),null==this.parent||this==M?0:this.parent.children.offset(this)+this.parent.offset(M)},L.prototype.optimize=function(M){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},L.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},L.prototype.replace=function(M){null!=M.parent&&(M.parent.insertBefore(this,M.next),M.remove())},L.prototype.replaceWith=function(M,v){var y="string"==typeof M?i.create(M,v):M;return y.replace(this),y},L.prototype.split=function(M,v){return 0===M?this:this.next},L.prototype.update=function(M,v){},L.prototype.wrap=function(M,v){var y="string"==typeof M?i.create(M,v):M;return null!=this.parent&&this.parent.insertBefore(y,this.next),y.appendChild(this),y},L.blotName="abstract",L}();l.default=r},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=t(12),r=t(32),L=t(33),M=t(1),v=function(){function y(u){this.attributes={},this.domNode=u,this.build()}return y.prototype.attribute=function(u,_){_?u.add(this.domNode,_)&&(null!=u.value(this.domNode)?this.attributes[u.attrName]=u:delete this.attributes[u.attrName]):(u.remove(this.domNode),delete this.attributes[u.attrName])},y.prototype.build=function(){var u=this;this.attributes={};var _=i.default.keys(this.domNode),p=r.default.keys(this.domNode),C=L.default.keys(this.domNode);_.concat(p).concat(C).forEach(function(g){var f=M.query(g,M.Scope.ATTRIBUTE);f instanceof i.default&&(u.attributes[f.attrName]=f)})},y.prototype.copy=function(u){var _=this;Object.keys(this.attributes).forEach(function(p){var C=_.attributes[p].value(_.domNode);u.format(p,C)})},y.prototype.move=function(u){var _=this;this.copy(u),Object.keys(this.attributes).forEach(function(p){_.attributes[p].remove(_.domNode)}),this.attributes={}},y.prototype.values=function(){var u=this;return Object.keys(this.attributes).reduce(function(_,p){return _[p]=u.attributes[p].value(u.domNode),_},{})},y}();l.default=v},function(re,l,t){"use strict";var v,i=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,u){y.__proto__=u}||function(y,u){for(var _ in u)u.hasOwnProperty(_)&&(y[_]=u[_])},function(y,u){function _(){this.constructor=y}v(y,u),y.prototype=null===u?Object.create(u):(_.prototype=u.prototype,new _)});function L(v,y){return(v.getAttribute("class")||"").split(/\s+/).filter(function(_){return 0===_.indexOf(y+"-")})}Object.defineProperty(l,"__esModule",{value:!0});var M=function(v){function y(){return null!==v&&v.apply(this,arguments)||this}return i(y,v),y.keys=function(u){return(u.getAttribute("class")||"").split(/\s+/).map(function(_){return _.split("-").slice(0,-1).join("-")})},y.prototype.add=function(u,_){return!!this.canAdd(u,_)&&(this.remove(u),u.classList.add(this.keyName+"-"+_),!0)},y.prototype.remove=function(u){L(u,this.keyName).forEach(function(p){u.classList.remove(p)}),0===u.classList.length&&u.removeAttribute("class")},y.prototype.value=function(u){var p=(L(u,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(u,p)?p:""},y}(t(12).default);l.default=M},function(re,l,t){"use strict";var v,i=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,u){y.__proto__=u}||function(y,u){for(var _ in u)u.hasOwnProperty(_)&&(y[_]=u[_])},function(y,u){function _(){this.constructor=y}v(y,u),y.prototype=null===u?Object.create(u):(_.prototype=u.prototype,new _)});function L(v){var y=v.split("-"),u=y.slice(1).map(function(_){return _[0].toUpperCase()+_.slice(1)}).join("");return y[0]+u}Object.defineProperty(l,"__esModule",{value:!0});var M=function(v){function y(){return null!==v&&v.apply(this,arguments)||this}return i(y,v),y.keys=function(u){return(u.getAttribute("style")||"").split(";").map(function(_){return _.split(":")[0].trim()})},y.prototype.add=function(u,_){return!!this.canAdd(u,_)&&(u.style[L(this.keyName)]=_,!0)},y.prototype.remove=function(u){u.style[L(this.keyName)]="",u.getAttribute("style")||u.removeAttribute("style")},y.prototype.value=function(u){var _=u.style[L(this.keyName)];return this.canAdd(u,_)?_:""},y}(t(12).default);l.default=M},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function M(v,y){for(var u=0;u<y.length;u++){var _=y[u];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}return function(v,y,u){return y&&M(v.prototype,y),u&&M(v,u),v}}();var L=function(){function M(v,y){(function r(M,v){if(!(M instanceof v))throw new TypeError("Cannot call a class as a function")})(this,M),this.quill=v,this.options=y,this.modules={}}return i(M,[{key:"init",value:function(){var y=this;Object.keys(this.options.modules).forEach(function(u){null==y.modules[u]&&y.addModule(u)})}},{key:"addModule",value:function(y){var u=this.quill.constructor.import("modules/"+y);return this.modules[y]=new u(this.quill,this.options.modules[y]||{}),this.modules[y]}}]),M}();L.DEFAULTS={modules:{}},L.themes={default:L},l.default=L},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function d(h,T){for(var b=0;b<T.length;b++){var P=T[b];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(h,P.key,P)}}return function(h,T,b){return T&&d(h.prototype,T),b&&d(h,b),h}}(),r=function d(h,T,b){null===h&&(h=Function.prototype);var P=Object.getOwnPropertyDescriptor(h,T);if(void 0===P){var W=Object.getPrototypeOf(h);return null===W?void 0:d(W,T,b)}if("value"in P)return P.value;var I=P.get;return void 0===I?void 0:I.call(b)},M=u(t(0)),y=u(t(7));function u(d){return d&&d.__esModule?d:{default:d}}var g="\ufeff",f=function(d){function h(T){!function _(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,h);var b=function p(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?d:h}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,T));return b.contentNode=document.createElement("span"),b.contentNode.setAttribute("contenteditable",!1),[].slice.call(b.domNode.childNodes).forEach(function(P){b.contentNode.appendChild(P)}),b.leftGuard=document.createTextNode(g),b.rightGuard=document.createTextNode(g),b.domNode.appendChild(b.leftGuard),b.domNode.appendChild(b.contentNode),b.domNode.appendChild(b.rightGuard),b}return function C(d,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}(h,d),i(h,[{key:"index",value:function(b,P){return b===this.leftGuard?0:b===this.rightGuard?1:r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"index",this).call(this,b,P)}},{key:"restore",value:function(b){var P=void 0,W=void 0,I=b.data.split(g).join("");if(b===this.leftGuard)if(this.prev instanceof y.default){var k=this.prev.length();this.prev.insertAt(k,I),P={startNode:this.prev.domNode,startOffset:k+I.length}}else W=document.createTextNode(I),this.parent.insertBefore(M.default.create(W),this),P={startNode:W,startOffset:I.length};else b===this.rightGuard&&(this.next instanceof y.default?(this.next.insertAt(0,I),P={startNode:this.next.domNode,startOffset:I.length}):(W=document.createTextNode(I),this.parent.insertBefore(M.default.create(W),this.next),P={startNode:W,startOffset:I.length}));return b.data=g,P}},{key:"update",value:function(b,P){var W=this;b.forEach(function(I){if("characterData"===I.type&&(I.target===W.leftGuard||I.target===W.rightGuard)){var k=W.restore(I.target);k&&(P.range=k)}})}}]),h}(M.default.Embed);l.default=f},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.AlignStyle=l.AlignClass=l.AlignAttribute=void 0;var r=function L(_){return _&&_.__esModule?_:{default:_}}(t(0));var M={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new r.default.Attributor.Attribute("align","align",M),y=new r.default.Attributor.Class("align","ql-align",M),u=new r.default.Attributor.Style("align","text-align",M);l.AlignAttribute=v,l.AlignClass=y,l.AlignStyle=u},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.BackgroundStyle=l.BackgroundClass=void 0;var r=function M(u){return u&&u.__esModule?u:{default:u}}(t(0)),L=t(26);var v=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),y=new L.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});l.BackgroundClass=v,l.BackgroundStyle=y},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DirectionStyle=l.DirectionClass=l.DirectionAttribute=void 0;var r=function L(_){return _&&_.__esModule?_:{default:_}}(t(0));var M={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},v=new r.default.Attributor.Attribute("direction","dir",M),y=new r.default.Attributor.Class("direction","ql-direction",M),u=new r.default.Attributor.Style("direction","direction",M);l.DirectionAttribute=v,l.DirectionClass=y,l.DirectionStyle=u},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.FontClass=l.FontStyle=void 0;var i=function(){function d(h,T){for(var b=0;b<T.length;b++){var P=T[b];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(h,P.key,P)}}return function(h,T,b){return T&&d(h.prototype,T),b&&d(h,b),h}}(),r=function d(h,T,b){null===h&&(h=Function.prototype);var P=Object.getOwnPropertyDescriptor(h,T);if(void 0===P){var W=Object.getPrototypeOf(h);return null===W?void 0:d(W,T,b)}if("value"in P)return P.value;var I=P.get;return void 0===I?void 0:I.call(b)},M=function v(d){return d&&d.__esModule?d:{default:d}}(t(0));var p={scope:M.default.Scope.INLINE,whitelist:["serif","monospace"]},C=new M.default.Attributor.Class("font","ql-font",p),g=function(d){function h(){return function y(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,h),function u(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?d:h}(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return function _(d,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}(h,d),i(h,[{key:"value",value:function(b){return r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,b).replace(/["']/g,"")}}]),h}(M.default.Attributor.Style),f=new g("font","font-family",p);l.FontStyle=f,l.FontClass=C},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.SizeStyle=l.SizeClass=void 0;var r=function L(y){return y&&y.__esModule?y:{default:y}}(t(0));var M=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});l.SizeClass=M,l.SizeStyle=v},function(re,l,t){"use strict";re.exports={align:{"":t(76),center:t(77),right:t(78),justify:t(79)},background:t(80),blockquote:t(81),bold:t(82),clean:t(83),code:t(58),"code-block":t(58),color:t(84),direction:{"":t(85),rtl:t(86)},float:{center:t(87),full:t(88),left:t(89),right:t(90)},formula:t(91),header:{1:t(92),2:t(93)},italic:t(94),image:t(95),indent:{"+1":t(96),"-1":t(97)},link:t(98),list:{ordered:t(99),bullet:t(100),check:t(101)},script:{sub:t(102),super:t(103)},strike:t(104),underline:t(105),video:t(106)}},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getLastChangeIndex=l.default=void 0;var i=function(){function T(b,P){for(var W=0;W<P.length;W++){var I=P[W];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(b,I.key,I)}}return function(b,P,W){return P&&T(b.prototype,P),W&&T(b,W),b}}(),L=_(t(0)),v=_(t(5));function _(T){return T&&T.__esModule?T:{default:T}}var f=function(T){function b(P,W){!function p(T,b){if(!(T instanceof b))throw new TypeError("Cannot call a class as a function")}(this,b);var I=function C(T,b){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?T:b}(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,P,W));return I.lastRecorded=0,I.ignoreChange=!1,I.clear(),I.quill.on(v.default.events.EDITOR_CHANGE,function(k,D,N,s){k!==v.default.events.TEXT_CHANGE||I.ignoreChange||(I.options.userOnly&&s!==v.default.sources.USER?I.transform(D):I.record(D,N))}),I.quill.keyboard.addBinding({key:"Z",shortKey:!0},I.undo.bind(I)),I.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},I.redo.bind(I)),/Win/i.test(navigator.platform)&&I.quill.keyboard.addBinding({key:"Y",shortKey:!0},I.redo.bind(I)),I}return function g(T,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);T.prototype=Object.create(b&&b.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(T,b):T.__proto__=b)}(b,T),i(b,[{key:"change",value:function(W,I){if(0!==this.stack[W].length){var k=this.stack[W].pop();this.stack[I].push(k),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(k[W],v.default.sources.USER),this.ignoreChange=!1;var D=h(k[W]);this.quill.setSelection(D)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(W,I){if(0!==W.ops.length){this.stack.redo=[];var k=this.quill.getContents().diff(I),D=Date.now();if(this.lastRecorded+this.options.delay>D&&this.stack.undo.length>0){var N=this.stack.undo.pop();k=k.compose(N.undo),W=N.redo.compose(W)}else this.lastRecorded=D;this.stack.undo.push({redo:W,undo:k}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(W){this.stack.undo.forEach(function(I){I.undo=W.transform(I.undo,!0),I.redo=W.transform(I.redo,!0)}),this.stack.redo.forEach(function(I){I.undo=W.transform(I.undo,!0),I.redo=W.transform(I.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),b}(_(t(9)).default);function h(T){var b=T.reduce(function(W,I){return W+(I.delete||0)},0),P=T.length()-b;return function d(T){var b=T.ops[T.ops.length-1];return null!=b&&(null!=b.insert?"string"==typeof b.insert&&b.insert.endsWith("\n"):null!=b.attributes&&Object.keys(b.attributes).some(function(P){return null!=L.default.query(P,L.default.Scope.BLOCK)}))}(T)&&(P-=1),P}f.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},l.default=f,l.getLastChangeIndex=h},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.BaseTooltip=void 0;var i=function(){function Re(de,Ce){for(var oe=0;oe<Ce.length;oe++){var G=Ce[oe];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(de,G.key,G)}}return function(de,Ce,oe){return Ce&&Re(de.prototype,Ce),oe&&Re(de,oe),de}}(),r=function Re(de,Ce,oe){null===de&&(de=Function.prototype);var G=Object.getOwnPropertyDescriptor(de,Ce);if(void 0===G){var ye=Object.getPrototypeOf(de);return null===ye?void 0:Re(ye,Ce,oe)}if("value"in G)return G.value;var we=G.get;return void 0===we?void 0:we.call(oe)},M=D(t(3)),y=D(t(2)),_=D(t(8)),C=D(t(23)),f=D(t(34)),h=D(t(59)),b=D(t(60)),W=D(t(28)),k=D(t(61));function D(Re){return Re&&Re.__esModule?Re:{default:Re}}function N(Re,de){if(!(Re instanceof de))throw new TypeError("Cannot call a class as a function")}function s(Re,de){if(!Re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!de||"object"!=typeof de&&"function"!=typeof de?Re:de}function V(Re,de){if("function"!=typeof de&&null!==de)throw new TypeError("Super expression must either be null or a function, not "+typeof de);Re.prototype=Object.create(de&&de.prototype,{constructor:{value:Re,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(Re,de):Re.__proto__=de)}var Q=[!1,"center","right","justify"],me=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],ue=[!1,"serif","monospace"],De=["1","2","3",!1],Ue=["small",!1,"large","huge"],Xe=function(Re){function de(Ce,oe){N(this,de);var G=s(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,Ce,oe));return Ce.emitter.listenDOM("click",document.body,function we(Fe){if(!document.body.contains(Ce.root))return document.body.removeEventListener("click",we);null!=G.tooltip&&!G.tooltip.root.contains(Fe.target)&&document.activeElement!==G.tooltip.textbox&&!G.quill.hasFocus()&&G.tooltip.hide(),null!=G.pickers&&G.pickers.forEach(function(lt){lt.container.contains(Fe.target)||lt.close()})}),G}return V(de,Re),i(de,[{key:"addModule",value:function(oe){var G=r(de.prototype.__proto__||Object.getPrototypeOf(de.prototype),"addModule",this).call(this,oe);return"toolbar"===oe&&this.extendToolbar(G),G}},{key:"buildButtons",value:function(oe,G){oe.forEach(function(ye){(ye.getAttribute("class")||"").split(/\s+/).forEach(function(Fe){if(Fe.startsWith("ql-")&&(Fe=Fe.slice(3),null!=G[Fe]))if("direction"===Fe)ye.innerHTML=G[Fe][""]+G[Fe].rtl;else if("string"==typeof G[Fe])ye.innerHTML=G[Fe];else{var lt=ye.value||"";null!=lt&&G[Fe][lt]&&(ye.innerHTML=G[Fe][lt])}})})}},{key:"buildPickers",value:function(oe,G){var ye=this;this.pickers=oe.map(function(Fe){if(Fe.classList.contains("ql-align"))return null==Fe.querySelector("option")&&F(Fe,Q),new b.default(Fe,G.align);if(Fe.classList.contains("ql-background")||Fe.classList.contains("ql-color")){var lt=Fe.classList.contains("ql-background")?"background":"color";return null==Fe.querySelector("option")&&F(Fe,me,"background"===lt?"#ffffff":"#000000"),new h.default(Fe,G[lt])}return null==Fe.querySelector("option")&&(Fe.classList.contains("ql-font")?F(Fe,ue):Fe.classList.contains("ql-header")?F(Fe,De):Fe.classList.contains("ql-size")&&F(Fe,Ue)),new W.default(Fe)}),this.quill.on(_.default.events.EDITOR_CHANGE,function(){ye.pickers.forEach(function(lt){lt.update()})})}}]),de}(f.default);Xe.DEFAULTS=(0,M.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var de=this,Ce=this.container.querySelector("input.ql-image[type=file]");null==Ce&&((Ce=document.createElement("input")).setAttribute("type","file"),Ce.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Ce.classList.add("ql-image"),Ce.addEventListener("change",function(){if(null!=Ce.files&&null!=Ce.files[0]){var oe=new FileReader;oe.onload=function(G){var ye=de.quill.getSelection(!0);de.quill.updateContents((new y.default).retain(ye.index).delete(ye.length).insert({image:G.target.result}),_.default.sources.USER),de.quill.setSelection(ye.index+1,_.default.sources.SILENT),Ce.value=""},oe.readAsDataURL(Ce.files[0])}}),this.container.appendChild(Ce)),Ce.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var st=function(Re){function de(Ce,oe){N(this,de);var G=s(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,Ce,oe));return G.textbox=G.root.querySelector('input[type="text"]'),G.listen(),G}return V(de,Re),i(de,[{key:"listen",value:function(){var oe=this;this.textbox.addEventListener("keydown",function(G){C.default.match(G,"enter")?(oe.save(),G.preventDefault()):C.default.match(G,"escape")&&(oe.cancel(),G.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=G?this.textbox.value=G:oe!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+oe)||""),this.root.setAttribute("data-mode",oe)}},{key:"restoreFocus",value:function(){var oe=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=oe}},{key:"save",value:function(){var oe=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var G=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",oe,_.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",oe,_.default.sources.USER)),this.quill.root.scrollTop=G;break;case"video":oe=function ze(Re){var de=Re.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Re.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return de?(de[1]||"https")+"://www.youtube.com/embed/"+de[2]+"?showinfo=0":(de=Re.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(de[1]||"https")+"://player.vimeo.com/video/"+de[2]+"/":Re}(oe);case"formula":if(!oe)break;var ye=this.quill.getSelection(!0);if(null!=ye){var we=ye.index+ye.length;this.quill.insertEmbed(we,this.root.getAttribute("data-mode"),oe,_.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(we+1," ",_.default.sources.USER),this.quill.setSelection(we+2,_.default.sources.USER)}}this.textbox.value="",this.hide()}}]),de}(k.default);function F(Re,de){var Ce=arguments.length>2&&void 0!==arguments[2]&&arguments[2];de.forEach(function(oe){var G=document.createElement("option");oe===Ce?G.setAttribute("selected","selected"):G.setAttribute("value",oe),Re.appendChild(G)})}l.BaseTooltip=st,l.default=Xe},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function r(){this.head=this.tail=null,this.length=0}return r.prototype.append=function(){for(var L=[],M=0;M<arguments.length;M++)L[M]=arguments[M];this.insertBefore(L[0],null),L.length>1&&this.append.apply(this,L.slice(1))},r.prototype.contains=function(L){for(var M,v=this.iterator();M=v();)if(M===L)return!0;return!1},r.prototype.insertBefore=function(L,M){L&&(L.next=M,null!=M?(L.prev=M.prev,null!=M.prev&&(M.prev.next=L),M.prev=L,M===this.head&&(this.head=L)):null!=this.tail?(this.tail.next=L,L.prev=this.tail,this.tail=L):(L.prev=null,this.head=this.tail=L),this.length+=1)},r.prototype.offset=function(L){for(var M=0,v=this.head;null!=v;){if(v===L)return M;M+=v.length(),v=v.next}return-1},r.prototype.remove=function(L){this.contains(L)&&(null!=L.prev&&(L.prev.next=L.next),null!=L.next&&(L.next.prev=L.prev),L===this.head&&(this.head=L.next),L===this.tail&&(this.tail=L.prev),this.length-=1)},r.prototype.iterator=function(L){return void 0===L&&(L=this.head),function(){var M=L;return null!=L&&(L=L.next),M}},r.prototype.find=function(L,M){void 0===M&&(M=!1);for(var v,y=this.iterator();v=y();){var u=v.length();if(L<u||M&&L===u&&(null==v.next||0!==v.next.length()))return[v,L];L-=u}return[null,0]},r.prototype.forEach=function(L){for(var M,v=this.iterator();M=v();)L(M)},r.prototype.forEachAt=function(L,M,v){if(!(M<=0))for(var p,y=this.find(L),C=L-y[1],g=this.iterator(y[0]);(p=g())&&C<L+M;){var f=p.length();L>C?v(p,L-C,Math.min(M,C+f-L)):v(p,0,Math.min(f,L+M-C)),C+=f}},r.prototype.map=function(L){return this.reduce(function(M,v){return M.push(L(v)),M},[])},r.prototype.reduce=function(L,M){for(var v,y=this.iterator();v=y();)M=L(M,v);return M},r}();l.default=i},function(re,l,t){"use strict";var u,i=this&&this.__extends||(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var C in p)p.hasOwnProperty(C)&&(_[C]=p[C])},function(_,p){function C(){this.constructor=_}u(_,p),_.prototype=null===p?Object.create(p):(C.prototype=p.prototype,new C)});Object.defineProperty(l,"__esModule",{value:!0});var r=t(17),L=t(1),M={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=function(u){function _(p){var C=u.call(this,p)||this;return C.scroll=C,C.observer=new MutationObserver(function(g){C.update(g)}),C.observer.observe(C.domNode,M),C.attach(),C}return i(_,u),_.prototype.detach=function(){u.prototype.detach.call(this),this.observer.disconnect()},_.prototype.deleteAt=function(p,C){this.update(),0===p&&C===this.length()?this.children.forEach(function(g){g.remove()}):u.prototype.deleteAt.call(this,p,C)},_.prototype.formatAt=function(p,C,g,f){this.update(),u.prototype.formatAt.call(this,p,C,g,f)},_.prototype.insertAt=function(p,C,g){this.update(),u.prototype.insertAt.call(this,p,C,g)},_.prototype.optimize=function(p,C){var g=this;void 0===p&&(p=[]),void 0===C&&(C={}),u.prototype.optimize.call(this,C);for(var f=[].slice.call(this.observer.takeRecords());f.length>0;)p.push(f.pop());for(var d=function(P,W){void 0===W&&(W=!0),null!=P&&P!==g&&null!=P.domNode.parentNode&&(null==P.domNode[L.DATA_KEY].mutations&&(P.domNode[L.DATA_KEY].mutations=[]),W&&d(P.parent))},h=function(P){null==P.domNode[L.DATA_KEY]||null==P.domNode[L.DATA_KEY].mutations||(P instanceof r.default&&P.children.forEach(h),P.optimize(C))},T=p,b=0;T.length>0;b+=1){if(b>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(T.forEach(function(P){var W=L.find(P.target,!0);null!=W&&(W.domNode===P.target&&("childList"===P.type?(d(L.find(P.previousSibling,!1)),[].forEach.call(P.addedNodes,function(I){var k=L.find(I,!1);d(k,!1),k instanceof r.default&&k.children.forEach(function(D){d(D,!1)})})):"attributes"===P.type&&d(W.prev)),d(W))}),this.children.forEach(h),f=(T=[].slice.call(this.observer.takeRecords())).slice();f.length>0;)p.push(f.pop())}},_.prototype.update=function(p,C){var g=this;void 0===C&&(C={}),(p=p||this.observer.takeRecords()).map(function(f){var d=L.find(f.target,!0);return null==d?null:null==d.domNode[L.DATA_KEY].mutations?(d.domNode[L.DATA_KEY].mutations=[f],d):(d.domNode[L.DATA_KEY].mutations.push(f),null)}).forEach(function(f){null==f||f===g||null==f.domNode[L.DATA_KEY]||f.update(f.domNode[L.DATA_KEY].mutations||[],C)}),null!=this.domNode[L.DATA_KEY].mutations&&u.prototype.update.call(this,this.domNode[L.DATA_KEY].mutations,C),this.optimize(p,C)},_.blotName="scroll",_.defaultChild="block",_.scope=L.Scope.BLOCK_BLOT,_.tagName="DIV",_}(r.default);l.default=y},function(re,l,t){"use strict";var y,i=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,_){u.__proto__=_}||function(u,_){for(var p in _)_.hasOwnProperty(p)&&(u[p]=_[p])},function(u,_){function p(){this.constructor=u}y(u,_),u.prototype=null===_?Object.create(_):(p.prototype=_.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0});var r=t(18),L=t(1);var v=function(y){function u(){return null!==y&&y.apply(this,arguments)||this}return i(u,y),u.formats=function(_){if(_.tagName!==u.tagName)return y.formats.call(this,_)},u.prototype.format=function(_,p){var C=this;_!==this.statics.blotName||p?y.prototype.format.call(this,_,p):(this.children.forEach(function(g){g instanceof r.default||(g=g.wrap(u.blotName,!0)),C.attributes.copy(g)}),this.unwrap())},u.prototype.formatAt=function(_,p,C,g){null!=this.formats()[C]||L.query(C,L.Scope.ATTRIBUTE)?this.isolate(_,p).format(C,g):y.prototype.formatAt.call(this,_,p,C,g)},u.prototype.optimize=function(_){y.prototype.optimize.call(this,_);var p=this.formats();if(0===Object.keys(p).length)return this.unwrap();var C=this.next;C instanceof u&&C.prev===this&&function M(y,u){if(Object.keys(y).length!==Object.keys(u).length)return!1;for(var _ in y)if(y[_]!==u[_])return!1;return!0}(p,C.formats())&&(C.moveChildren(this),C.remove())},u.blotName="inline",u.scope=L.Scope.INLINE_BLOT,u.tagName="SPAN",u}(r.default);l.default=v},function(re,l,t){"use strict";var v,i=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,u){y.__proto__=u}||function(y,u){for(var _ in u)u.hasOwnProperty(_)&&(y[_]=u[_])},function(y,u){function _(){this.constructor=y}v(y,u),y.prototype=null===u?Object.create(u):(_.prototype=u.prototype,new _)});Object.defineProperty(l,"__esModule",{value:!0});var r=t(18),L=t(1),M=function(v){function y(){return null!==v&&v.apply(this,arguments)||this}return i(y,v),y.formats=function(u){var _=L.query(y.blotName).tagName;if(u.tagName!==_)return v.formats.call(this,u)},y.prototype.format=function(u,_){null!=L.query(u,L.Scope.BLOCK)&&(u!==this.statics.blotName||_?v.prototype.format.call(this,u,_):this.replaceWith(y.blotName))},y.prototype.formatAt=function(u,_,p,C){null!=L.query(p,L.Scope.BLOCK)?this.format(p,C):v.prototype.formatAt.call(this,u,_,p,C)},y.prototype.insertAt=function(u,_,p){if(null==p||null!=L.query(_,L.Scope.INLINE))v.prototype.insertAt.call(this,u,_,p);else{var C=this.split(u),g=L.create(_,p);C.parent.insertBefore(g,C)}},y.prototype.update=function(u,_){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,u,_)},y.blotName="block",y.scope=L.Scope.BLOCK_BLOT,y.tagName="P",y}(r.default);l.default=M},function(re,l,t){"use strict";var M,i=this&&this.__extends||(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var u in y)y.hasOwnProperty(u)&&(v[u]=y[u])},function(v,y){function u(){this.constructor=v}M(v,y),v.prototype=null===y?Object.create(y):(u.prototype=y.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0});var L=function(M){function v(){return null!==M&&M.apply(this,arguments)||this}return i(v,M),v.formats=function(y){},v.prototype.format=function(y,u){M.prototype.formatAt.call(this,0,this.length(),y,u)},v.prototype.formatAt=function(y,u,_,p){0===y&&u===this.length()?this.format(_,p):M.prototype.formatAt.call(this,y,u,_,p)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v}(t(19).default);l.default=L},function(re,l,t){"use strict";var v,i=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,u){y.__proto__=u}||function(y,u){for(var _ in u)u.hasOwnProperty(_)&&(y[_]=u[_])},function(y,u){function _(){this.constructor=y}v(y,u),y.prototype=null===u?Object.create(u):(_.prototype=u.prototype,new _)});Object.defineProperty(l,"__esModule",{value:!0});var r=t(19),L=t(1),M=function(v){function y(u){var _=v.call(this,u)||this;return _.text=_.statics.value(_.domNode),_}return i(y,v),y.create=function(u){return document.createTextNode(u)},y.value=function(u){var _=u.data;return _.normalize&&(_=_.normalize()),_},y.prototype.deleteAt=function(u,_){this.domNode.data=this.text=this.text.slice(0,u)+this.text.slice(u+_)},y.prototype.index=function(u,_){return this.domNode===u?_:-1},y.prototype.insertAt=function(u,_,p){null==p?(this.text=this.text.slice(0,u)+_+this.text.slice(u),this.domNode.data=this.text):v.prototype.insertAt.call(this,u,_,p)},y.prototype.length=function(){return this.text.length},y.prototype.optimize=function(u){v.prototype.optimize.call(this,u),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof y&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},y.prototype.position=function(u,_){return void 0===_&&(_=!1),[this.domNode,u]},y.prototype.split=function(u,_){if(void 0===_&&(_=!1),!_){if(0===u)return this;if(u===this.length())return this.next}var p=L.create(this.domNode.splitText(u));return this.parent.insertBefore(p,this.next),this.text=this.statics.value(this.domNode),p},y.prototype.update=function(u,_){var p=this;u.some(function(C){return"characterData"===C.type&&C.target===p.domNode})&&(this.text=this.statics.value(this.domNode))},y.prototype.value=function(){return this.text},y.blotName="text",y.scope=L.Scope.INLINE_BLOT,y}(r.default);l.default=M},function(re,l,t){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(L,M){return arguments.length>1&&!this.contains(L)==!M?M:r.call(this,L)}}String.prototype.startsWith||(String.prototype.startsWith=function(L,M){return this.substr(M=M||0,L.length)===L}),String.prototype.endsWith||(String.prototype.endsWith=function(L,M){var v=this.toString();("number"!=typeof M||!isFinite(M)||Math.floor(M)!==M||M>v.length)&&(M=v.length);var y=v.indexOf(L,M-=L.length);return-1!==y&&y===M}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(M){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof M)throw new TypeError("predicate must be a function");for(var _,v=Object(this),y=v.length>>>0,u=arguments[1],p=0;p<y;p++)if(M.call(u,_=v[p],p,v))return _}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(re,l){var t=-1,i=1,r=0;function L(b,P,W){if(b==P)return b?[[r,b]]:[];(W<0||b.length<W)&&(W=null);var I=u(b,P),k=b.substring(0,I);I=_(b=b.substring(I),P=P.substring(I));var D=b.substring(b.length-I),N=function M(b,P){var W;if(!b)return[[i,P]];if(!P)return[[t,b]];var I=b.length>P.length?b:P,k=b.length>P.length?P:b,D=I.indexOf(k);if(-1!=D)return W=[[i,I.substring(0,D)],[r,k],[i,I.substring(D+k.length)]],b.length>P.length&&(W[0][0]=W[2][0]=t),W;if(1==k.length)return[[t,b],[i,P]];var N=function p(b,P){var W=b.length>P.length?b:P,I=b.length>P.length?P:b;if(W.length<4||2*I.length<W.length)return null;function k(Ue,Xe,st){for(var de,Ce,oe,G,ze=Ue.substring(st,st+Math.floor(Ue.length/4)),F=-1,Re="";-1!=(F=Xe.indexOf(ze,F+1));){var ye=u(Ue.substring(st),Xe.substring(F)),we=_(Ue.substring(0,st),Xe.substring(0,F));Re.length<we+ye&&(Re=Xe.substring(F-we,F)+Xe.substring(F,F+ye),de=Ue.substring(0,st-we),Ce=Ue.substring(st+ye),oe=Xe.substring(0,F-we),G=Xe.substring(F+ye))}return 2*Re.length>=Ue.length?[de,Ce,oe,G,Re]:null}var s,V,Q,me,ue,D=k(W,I,Math.ceil(W.length/4)),N=k(W,I,Math.ceil(W.length/2));return D||N?(s=N?D&&D[4].length>N[4].length?D:N:D,b.length>P.length?(V=s[0],Q=s[1],me=s[2],ue=s[3]):(me=s[0],ue=s[1],V=s[2],Q=s[3]),[V,Q,me,ue,s[4]]):null}(b,P);if(N){var V=N[1],me=N[3],ue=N[4],De=L(N[0],N[2]),Ue=L(V,me);return De.concat([[r,ue]],Ue)}return function v(b,P){for(var W=b.length,I=P.length,k=Math.ceil((W+I)/2),D=k,N=2*k,s=new Array(N),V=new Array(N),Q=0;Q<N;Q++)s[Q]=-1,V[Q]=-1;s[D+1]=0,V[D+1]=0;for(var me=W-I,ue=me%2!=0,De=0,Ue=0,Xe=0,st=0,ze=0;ze<k;ze++){for(var F=-ze+De;F<=ze-Ue;F+=2){for(var Re=D+F,Ce=(de=F==-ze||F!=ze&&s[Re-1]<s[Re+1]?s[Re+1]:s[Re-1]+1)-F;de<W&&Ce<I&&b.charAt(de)==P.charAt(Ce);)de++,Ce++;if(s[Re]=de,de>W)Ue+=2;else if(Ce>I)De+=2;else if(ue&&(oe=D+me-F)>=0&&oe<N&&-1!=V[oe]&&de>=(G=W-V[oe]))return y(b,P,de,Ce)}for(var ye=-ze+Xe;ye<=ze-st;ye+=2){for(var G,oe=D+ye,we=(G=ye==-ze||ye!=ze&&V[oe-1]<V[oe+1]?V[oe+1]:V[oe-1]+1)-ye;G<W&&we<I&&b.charAt(W-G-1)==P.charAt(I-we-1);)G++,we++;if(V[oe]=G,G>W)st+=2;else if(we>I)Xe+=2;else if(!ue){var de;if((Re=D+me-ye)>=0&&Re<N&&-1!=s[Re]&&(Ce=D+(de=s[Re])-Re,de>=(G=W-G)))return y(b,P,de,Ce)}}}return[[t,b],[i,P]]}(b,P)}(b=b.substring(0,b.length-I),P=P.substring(0,P.length-I));return k&&N.unshift([r,k]),D&&N.push([r,D]),C(N),null!=W&&(N=function d(b,P){var W=function f(b,P){if(0===P)return[r,b];for(var W=0,I=0;I<b.length;I++){var k=b[I];if(k[0]===t||k[0]===r){var D=W+k[1].length;if(P===D)return[I+1,b];if(P<D){b=b.slice();var N=P-W,s=[k[0],k[1].slice(0,N)],V=[k[0],k[1].slice(N)];return b.splice(I,1,s,V),[I+1,b]}W=D}}throw new Error("cursor_pos is out of bounds!")}(b,P),I=W[1],k=W[0],D=I[k],N=I[k+1];if(null==D)return b;if(D[0]!==r)return b;if(null!=N&&D[1]+N[1]===N[1]+D[1])return I.splice(k,2,N,D),T(I,k,2);if(null!=N&&0===N[1].indexOf(D[1])){I.splice(k,2,[N[0],D[1]],[0,D[1]]);var s=N[1].slice(D[1].length);return s.length>0&&I.splice(k+2,0,[N[0],s]),T(I,k,3)}return b}(N,W)),function h(b){for(var P=!1,W=function(N){return N.charCodeAt(0)>=56320&&N.charCodeAt(0)<=57343},I=function(N){return N.charCodeAt(N.length-1)>=55296&&N.charCodeAt(N.length-1)<=56319},k=2;k<b.length;k+=1)b[k-2][0]===r&&I(b[k-2][1])&&b[k-1][0]===t&&W(b[k-1][1])&&b[k][0]===i&&W(b[k][1])&&(P=!0,b[k-1][1]=b[k-2][1].slice(-1)+b[k-1][1],b[k][1]=b[k-2][1].slice(-1)+b[k][1],b[k-2][1]=b[k-2][1].slice(0,-1));if(!P)return b;var D=[];for(k=0;k<b.length;k+=1)b[k][1].length>0&&D.push(b[k]);return D}(N)}function y(b,P,W,I){var k=b.substring(0,W),D=P.substring(0,I),N=b.substring(W),s=P.substring(I),V=L(k,D),Q=L(N,s);return V.concat(Q)}function u(b,P){if(!b||!P||b.charAt(0)!=P.charAt(0))return 0;for(var W=0,I=Math.min(b.length,P.length),k=I,D=0;W<k;)b.substring(D,k)==P.substring(D,k)?D=W=k:I=k,k=Math.floor((I-W)/2+W);return k}function _(b,P){if(!b||!P||b.charAt(b.length-1)!=P.charAt(P.length-1))return 0;for(var W=0,I=Math.min(b.length,P.length),k=I,D=0;W<k;)b.substring(b.length-k,b.length-D)==P.substring(P.length-k,P.length-D)?D=W=k:I=k,k=Math.floor((I-W)/2+W);return k}function C(b){b.push([r,""]);for(var N,P=0,W=0,I=0,k="",D="";P<b.length;)switch(b[P][0]){case i:I++,D+=b[P][1],P++;break;case t:W++,k+=b[P][1],P++;break;case r:W+I>1?(0!==W&&0!==I&&(0!==(N=u(D,k))&&(P-W-I>0&&b[P-W-I-1][0]==r?b[P-W-I-1][1]+=D.substring(0,N):(b.splice(0,0,[r,D.substring(0,N)]),P++),D=D.substring(N),k=k.substring(N)),0!==(N=_(D,k))&&(b[P][1]=D.substring(D.length-N)+b[P][1],D=D.substring(0,D.length-N),k=k.substring(0,k.length-N))),0===W?b.splice(P-I,W+I,[i,D]):0===I?b.splice(P-W,W+I,[t,k]):b.splice(P-W-I,W+I,[t,k],[i,D]),P=P-W-I+(W?1:0)+(I?1:0)+1):0!==P&&b[P-1][0]==r?(b[P-1][1]+=b[P][1],b.splice(P,1)):P++,I=0,W=0,k="",D=""}""===b[b.length-1][1]&&b.pop();var s=!1;for(P=1;P<b.length-1;)b[P-1][0]==r&&b[P+1][0]==r&&(b[P][1].substring(b[P][1].length-b[P-1][1].length)==b[P-1][1]?(b[P][1]=b[P-1][1]+b[P][1].substring(0,b[P][1].length-b[P-1][1].length),b[P+1][1]=b[P-1][1]+b[P+1][1],b.splice(P-1,1),s=!0):b[P][1].substring(0,b[P+1][1].length)==b[P+1][1]&&(b[P-1][1]+=b[P+1][1],b[P][1]=b[P][1].substring(b[P+1][1].length)+b[P+1][1],b.splice(P+1,1),s=!0)),P++;s&&C(b)}var g=L;function T(b,P,W){for(var I=P+W-1;I>=0&&I>=P-1;I--)if(I+1<b.length){var k=b[I],D=b[I+1];k[0]===D[1]&&b.splice(I,2,[k[0],k[1]+D[1]])}return b}g.INSERT=i,g.DELETE=t,g.EQUAL=r,re.exports=g},function(re,l){function t(i){var r=[];for(var L in i)r.push(L);return r}(re.exports="function"==typeof Object.keys?Object.keys:t).shim=t},function(re,l){var t="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(L){return"[object Arguments]"==Object.prototype.toString.call(L)}function r(L){return L&&"object"==typeof L&&"number"==typeof L.length&&Object.prototype.hasOwnProperty.call(L,"callee")&&!Object.prototype.propertyIsEnumerable.call(L,"callee")||!1}(l=re.exports=t?i:r).supported=i,l.unsupported=r},function(re,l){"use strict";var t=Object.prototype.hasOwnProperty,i="~";function r(){}function L(v,y,u){this.fn=v,this.context=y,this.once=u||!1}function M(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),M.prototype.eventNames=function(){var u,_,y=[];if(0===this._eventsCount)return y;for(_ in u=this._events)t.call(u,_)&&y.push(i?_.slice(1):_);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(u)):y},M.prototype.listeners=function(y,u){var p=this._events[i?i+y:y];if(u)return!!p;if(!p)return[];if(p.fn)return[p.fn];for(var C=0,g=p.length,f=new Array(g);C<g;C++)f[C]=p[C].fn;return f},M.prototype.emit=function(y,u,_,p,C,g){var f=i?i+y:y;if(!this._events[f])return!1;var T,b,d=this._events[f],h=arguments.length;if(d.fn){switch(d.once&&this.removeListener(y,d.fn,void 0,!0),h){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,u),!0;case 3:return d.fn.call(d.context,u,_),!0;case 4:return d.fn.call(d.context,u,_,p),!0;case 5:return d.fn.call(d.context,u,_,p,C),!0;case 6:return d.fn.call(d.context,u,_,p,C,g),!0}for(b=1,T=new Array(h-1);b<h;b++)T[b-1]=arguments[b];d.fn.apply(d.context,T)}else{var W,P=d.length;for(b=0;b<P;b++)switch(d[b].once&&this.removeListener(y,d[b].fn,void 0,!0),h){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,u);break;case 3:d[b].fn.call(d[b].context,u,_);break;case 4:d[b].fn.call(d[b].context,u,_,p);break;default:if(!T)for(W=1,T=new Array(h-1);W<h;W++)T[W-1]=arguments[W];d[b].fn.apply(d[b].context,T)}}return!0},M.prototype.on=function(y,u,_){var p=new L(u,_||this),C=i?i+y:y;return this._events[C]?this._events[C].fn?this._events[C]=[this._events[C],p]:this._events[C].push(p):(this._events[C]=p,this._eventsCount++),this},M.prototype.once=function(y,u,_){var p=new L(u,_||this,!0),C=i?i+y:y;return this._events[C]?this._events[C].fn?this._events[C]=[this._events[C],p]:this._events[C].push(p):(this._events[C]=p,this._eventsCount++),this},M.prototype.removeListener=function(y,u,_,p){var C=i?i+y:y;if(!this._events[C])return this;if(!u)return 0==--this._eventsCount?this._events=new r:delete this._events[C],this;var g=this._events[C];if(g.fn)g.fn===u&&(!p||g.once)&&(!_||g.context===_)&&(0==--this._eventsCount?this._events=new r:delete this._events[C]);else{for(var f=0,d=[],h=g.length;f<h;f++)(g[f].fn!==u||p&&!g[f].once||_&&g[f].context!==_)&&d.push(g[f]);d.length?this._events[C]=1===d.length?d[0]:d:0==--this._eventsCount?this._events=new r:delete this._events[C]}return this},M.prototype.removeAllListeners=function(y){var u;return y?this._events[u=i?i+y:y]&&(0==--this._eventsCount?this._events=new r:delete this._events[u]):(this._events=new r,this._eventsCount=0),this},M.prototype.off=M.prototype.removeListener,M.prototype.addListener=M.prototype.on,M.prototype.setMaxListeners=function(){return this},M.prefixed=i,M.EventEmitter=M,typeof re<"u"&&(re.exports=M)},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.matchText=l.matchSpacing=l.matchNewline=l.matchBlot=l.matchAttributor=l.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ve){return typeof Ve}:function(Ve){return Ve&&"function"==typeof Symbol&&Ve.constructor===Symbol&&Ve!==Symbol.prototype?"symbol":typeof Ve},r=function(rt,Et){if(Array.isArray(rt))return rt;if(Symbol.iterator in Object(rt))return function Ve(rt,Et){var Ft=[],yt=!0,un=!1,bt=void 0;try{for(var en,Jt=rt[Symbol.iterator]();!(yt=(en=Jt.next()).done)&&(Ft.push(en.value),!Et||Ft.length!==Et);yt=!0);}catch(mn){un=!0,bt=mn}finally{try{!yt&&Jt.return&&Jt.return()}finally{if(un)throw bt}}return Ft}(rt,Et);throw new TypeError("Invalid attempt to destructure non-iterable instance")},L=function(){function Ve(rt,Et){for(var Ft=0;Ft<Et.length;Ft++){var yt=Et[Ft];yt.enumerable=yt.enumerable||!1,yt.configurable=!0,"value"in yt&&(yt.writable=!0),Object.defineProperty(rt,yt.key,yt)}}return function(rt,Et,Ft){return Et&&Ve(rt.prototype,Et),Ft&&Ve(rt,Ft),rt}}(),v=V(t(3)),u=V(t(2)),p=V(t(0)),g=V(t(5)),d=V(t(10)),T=V(t(9)),b=t(36),P=t(37),I=V(t(13)),k=t(26),D=t(38),N=t(39),s=t(40);function V(Ve){return Ve&&Ve.__esModule?Ve:{default:Ve}}function Q(Ve,rt,Et){return rt in Ve?Object.defineProperty(Ve,rt,{value:Et,enumerable:!0,configurable:!0,writable:!0}):Ve[rt]=Et,Ve}var Ue=(0,d.default)("quill:clipboard"),Xe="__ql-matcher",st=[[Node.TEXT_NODE,ct],[Node.TEXT_NODE,nn],["br",function Pt(Ve,rt){return oe(rt,"\n")||rt.insert("\n"),rt}],[Node.ELEMENT_NODE,nn],[Node.ELEMENT_NODE,lt],[Node.ELEMENT_NODE,xt],[Node.ELEMENT_NODE,Fe],[Node.ELEMENT_NODE,function sn(Ve,rt){var Et={},Ft=Ve.style||{};return Ft.fontStyle&&"italic"===Ce(Ve).fontStyle&&(Et.italic=!0),Ft.fontWeight&&(Ce(Ve).fontWeight.startsWith("bold")||parseInt(Ce(Ve).fontWeight)>=700)&&(Et.bold=!0),Object.keys(Et).length>0&&(rt=de(rt,Et)),parseFloat(Ft.textIndent||0)>0&&(rt=(new u.default).insert("\t").concat(rt)),rt}],["li",function Bt(Ve,rt){var Et=p.default.query(Ve);if(null==Et||"list-item"!==Et.blotName||!oe(rt,"\n"))return rt;for(var Ft=-1,yt=Ve.parentNode;!yt.classList.contains("ql-clipboard");)"list"===(p.default.query(yt)||{}).blotName&&(Ft+=1),yt=yt.parentNode;return Ft<=0?rt:rt.compose((new u.default).retain(rt.length()-1).retain(1,{indent:Ft}))}],["b",we.bind(we,"bold")],["i",we.bind(we,"italic")],["style",function wt(){return new u.default}]],ze=[b.AlignAttribute,D.DirectionAttribute].reduce(function(Ve,rt){return Ve[rt.keyName]=rt,Ve},{}),F=[b.AlignStyle,P.BackgroundStyle,k.ColorStyle,D.DirectionStyle,N.FontStyle,s.SizeStyle].reduce(function(Ve,rt){return Ve[rt.keyName]=rt,Ve},{}),Re=function(Ve){function rt(Et,Ft){!function me(Ve,rt){if(!(Ve instanceof rt))throw new TypeError("Cannot call a class as a function")}(this,rt);var yt=function ue(Ve,rt){if(!Ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!rt||"object"!=typeof rt&&"function"!=typeof rt?Ve:rt}(this,(rt.__proto__||Object.getPrototypeOf(rt)).call(this,Et,Ft));return yt.quill.root.addEventListener("paste",yt.onPaste.bind(yt)),yt.container=yt.quill.addContainer("ql-clipboard"),yt.container.setAttribute("contenteditable",!0),yt.container.setAttribute("tabindex",-1),yt.matchers=[],st.concat(yt.options.matchers).forEach(function(un){var bt=r(un,2),en=bt[1];!Ft.matchVisual&&en===xt||yt.addMatcher(bt[0],en)}),yt}return function De(Ve,rt){if("function"!=typeof rt&&null!==rt)throw new TypeError("Super expression must either be null or a function, not "+typeof rt);Ve.prototype=Object.create(rt&&rt.prototype,{constructor:{value:Ve,enumerable:!1,writable:!0,configurable:!0}}),rt&&(Object.setPrototypeOf?Object.setPrototypeOf(Ve,rt):Ve.__proto__=rt)}(rt,Ve),L(rt,[{key:"addMatcher",value:function(Ft,yt){this.matchers.push([Ft,yt])}},{key:"convert",value:function(Ft){if("string"==typeof Ft)return this.container.innerHTML=Ft.replace(/\>\r?\n +\</g,"><"),this.convert();var yt=this.quill.getFormat(this.quill.selection.savedRange.index);if(yt[I.default.blotName]){var un=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(un,Q({},I.default.blotName,yt[I.default.blotName]))}var bt=this.prepareMatching(),Jt=r(bt,2),En=ye(this.container,Jt[0],Jt[1]);return oe(En,"\n")&&null==En.ops[En.ops.length-1].attributes&&(En=En.compose((new u.default).retain(En.length()-1).delete(1))),Ue.log("convert",this.container.innerHTML,En),this.container.innerHTML="",En}},{key:"dangerouslyPasteHTML",value:function(Ft,yt){var un=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;if("string"==typeof Ft)this.quill.setContents(this.convert(Ft),yt),this.quill.setSelection(0,g.default.sources.SILENT);else{var bt=this.convert(yt);this.quill.updateContents((new u.default).retain(Ft).concat(bt),un),this.quill.setSelection(Ft+bt.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(Ft){var yt=this;if(!Ft.defaultPrevented&&this.quill.isEnabled()){var un=this.quill.getSelection(),bt=(new u.default).retain(un.index),Jt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){bt=bt.concat(yt.convert()).delete(un.length),yt.quill.updateContents(bt,g.default.sources.USER),yt.quill.setSelection(bt.length()-un.length,g.default.sources.SILENT),yt.quill.scrollingContainer.scrollTop=Jt,yt.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Ft=this,yt=[],un=[];return this.matchers.forEach(function(bt){var Jt=r(bt,2),en=Jt[0],mn=Jt[1];switch(en){case Node.TEXT_NODE:un.push(mn);break;case Node.ELEMENT_NODE:yt.push(mn);break;default:[].forEach.call(Ft.container.querySelectorAll(en),function(En){En[Xe]=En[Xe]||[],En[Xe].push(mn)})}}),[yt,un]}}]),rt}(T.default);function de(Ve,rt,Et){return"object"===(typeof rt>"u"?"undefined":i(rt))?Object.keys(rt).reduce(function(Ft,yt){return de(Ft,yt,rt[yt])},Ve):Ve.reduce(function(Ft,yt){return yt.attributes&&yt.attributes[rt]?Ft.push(yt):Ft.insert(yt.insert,(0,v.default)({},Q({},rt,Et),yt.attributes))},new u.default)}function Ce(Ve){if(Ve.nodeType!==Node.ELEMENT_NODE)return{};var rt="__ql-computed-style";return Ve[rt]||(Ve[rt]=window.getComputedStyle(Ve))}function oe(Ve,rt){for(var Et="",Ft=Ve.ops.length-1;Ft>=0&&Et.length<rt.length;--Ft){var yt=Ve.ops[Ft];if("string"!=typeof yt.insert)break;Et=yt.insert+Et}return Et.slice(-1*rt.length)===rt}function G(Ve){if(0===Ve.childNodes.length)return!1;var rt=Ce(Ve);return["block","list-item"].indexOf(rt.display)>-1}function ye(Ve,rt,Et){return Ve.nodeType===Ve.TEXT_NODE?Et.reduce(function(Ft,yt){return yt(Ve,Ft)},new u.default):Ve.nodeType===Ve.ELEMENT_NODE?[].reduce.call(Ve.childNodes||[],function(Ft,yt){var un=ye(yt,rt,Et);return yt.nodeType===Ve.ELEMENT_NODE&&(un=rt.reduce(function(bt,Jt){return Jt(yt,bt)},un),un=(yt[Xe]||[]).reduce(function(bt,Jt){return Jt(yt,bt)},un)),Ft.concat(un)},new u.default):new u.default}function we(Ve,rt,Et){return de(Et,Ve,!0)}function Fe(Ve,rt){var Et=p.default.Attributor.Attribute.keys(Ve),Ft=p.default.Attributor.Class.keys(Ve),yt=p.default.Attributor.Style.keys(Ve),un={};return Et.concat(Ft).concat(yt).forEach(function(bt){var Jt=p.default.query(bt,p.default.Scope.ATTRIBUTE);null!=Jt&&(un[Jt.attrName]=Jt.value(Ve),un[Jt.attrName])||(null!=(Jt=ze[bt])&&(Jt.attrName===bt||Jt.keyName===bt)&&(un[Jt.attrName]=Jt.value(Ve)||void 0),null!=(Jt=F[bt])&&(Jt.attrName===bt||Jt.keyName===bt)&&(un[(Jt=F[bt]).attrName]=Jt.value(Ve)||void 0))}),Object.keys(un).length>0&&(rt=de(rt,un)),rt}function lt(Ve,rt){var Et=p.default.query(Ve);if(null==Et)return rt;if(Et.prototype instanceof p.default.Embed){var Ft={},yt=Et.value(Ve);null!=yt&&(Ft[Et.blotName]=yt,rt=(new u.default).insert(Ft,Et.formats(Ve)))}else"function"==typeof Et.formats&&(rt=de(rt,Et.blotName,Et.formats(Ve)));return rt}function nn(Ve,rt){return oe(rt,"\n")||(G(Ve)||rt.length()>0&&Ve.nextSibling&&G(Ve.nextSibling))&&rt.insert("\n"),rt}function xt(Ve,rt){if(G(Ve)&&null!=Ve.nextElementSibling&&!oe(rt,"\n\n")){var Et=Ve.offsetHeight+parseFloat(Ce(Ve).marginTop)+parseFloat(Ce(Ve).marginBottom);Ve.nextElementSibling.offsetTop>Ve.offsetTop+1.5*Et&&rt.insert("\n")}return rt}function ct(Ve,rt){var Et=Ve.data;if("O:P"===Ve.parentNode.tagName)return rt.insert(Et.trim());if(0===Et.trim().length&&Ve.parentNode.classList.contains("ql-clipboard"))return rt;if(!Ce(Ve.parentNode).whiteSpace.startsWith("pre")){var Ft=function(un,bt){return(bt=bt.replace(/[^\u00a0]/g,"")).length<1&&un?" ":bt};Et=(Et=Et.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,Ft.bind(Ft,!0)),(null==Ve.previousSibling&&G(Ve.parentNode)||null!=Ve.previousSibling&&G(Ve.previousSibling))&&(Et=Et.replace(/^\s+/,Ft.bind(Ft,!1))),(null==Ve.nextSibling&&G(Ve.parentNode)||null!=Ve.nextSibling&&G(Ve.nextSibling))&&(Et=Et.replace(/\s+$/,Ft.bind(Ft,!1)))}return rt.insert(Et)}Re.DEFAULTS={matchers:[],matchVisual:!0},l.default=Re,l.matchAttributor=Fe,l.matchBlot=lt,l.matchNewline=nn,l.matchSpacing=xt,l.matchText=ct},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function C(g,f){for(var d=0;d<f.length;d++){var h=f[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(g,h.key,h)}}return function(g,f,d){return f&&C(g.prototype,f),d&&C(g,d),g}}(),r=function C(g,f,d){null===g&&(g=Function.prototype);var h=Object.getOwnPropertyDescriptor(g,f);if(void 0===h){var T=Object.getPrototypeOf(g);return null===T?void 0:C(T,f,d)}if("value"in h)return h.value;var b=h.get;return void 0===b?void 0:b.call(d)};var p=function(C){function g(){return function y(C,g){if(!(C instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),function u(C,g){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?C:g}(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return function _(C,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);C.prototype=Object.create(g&&g.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(C,g):C.__proto__=g)}(g,C),i(g,[{key:"optimize",value:function(d){r(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,d),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g}(function v(C){return C&&C.__esModule?C:{default:C}}(t(6)).default);p.blotName="bold",p.tagName=["STRONG","B"],l.default=p},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.addControls=l.default=void 0;var i=function(V,Q){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return function s(V,Q){var me=[],ue=!0,De=!1,Ue=void 0;try{for(var st,Xe=V[Symbol.iterator]();!(ue=(st=Xe.next()).done)&&(me.push(st.value),!Q||me.length!==Q);ue=!0);}catch(ze){De=!0,Ue=ze}finally{try{!ue&&Xe.return&&Xe.return()}finally{if(De)throw Ue}}return me}(V,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function s(V,Q){for(var me=0;me<Q.length;me++){var ue=Q[me];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(V,ue.key,ue)}}return function(V,Q,me){return Q&&s(V.prototype,Q),me&&s(V,me),V}}(),M=d(t(2)),y=d(t(0)),_=d(t(5)),C=d(t(10)),f=d(t(9));function d(s){return s&&s.__esModule?s:{default:s}}function b(s,V){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!V||"object"!=typeof V&&"function"!=typeof V?s:V}var W=(0,C.default)("quill:toolbar"),I=function(s){function V(Q,me){!function T(s,V){if(!(s instanceof V))throw new TypeError("Cannot call a class as a function")}(this,V);var Ue,ue=b(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,Q,me));if(Array.isArray(ue.options.container)){var De=document.createElement("div");D(De,ue.options.container),Q.container.parentNode.insertBefore(De,Q.container),ue.container=De}else ue.container="string"==typeof ue.options.container?document.querySelector(ue.options.container):ue.options.container;return ue.container instanceof HTMLElement?(ue.container.classList.add("ql-toolbar"),ue.controls=[],ue.handlers={},Object.keys(ue.options.handlers).forEach(function(Xe){ue.addHandler(Xe,ue.options.handlers[Xe])}),[].forEach.call(ue.container.querySelectorAll("button, select"),function(Xe){ue.attach(Xe)}),ue.quill.on(_.default.events.EDITOR_CHANGE,function(Xe,st){Xe===_.default.events.SELECTION_CHANGE&&ue.update(st)}),ue.quill.on(_.default.events.SCROLL_OPTIMIZE,function(){var Xe=ue.quill.selection.getRange(),st=i(Xe,1);ue.update(st[0])}),ue):(Ue=W.error("Container required for toolbar",ue.options),b(ue,Ue))}return function P(s,V){if("function"!=typeof V&&null!==V)throw new TypeError("Super expression must either be null or a function, not "+typeof V);s.prototype=Object.create(V&&V.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(s,V):s.__proto__=V)}(V,s),r(V,[{key:"addHandler",value:function(me,ue){this.handlers[me]=ue}},{key:"attach",value:function(me){var ue=this,De=[].find.call(me.classList,function(Xe){return 0===Xe.indexOf("ql-")});if(De){if(De=De.slice(3),"BUTTON"===me.tagName&&me.setAttribute("type","button"),null==this.handlers[De]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[De])return void W.warn("ignoring attaching to disabled format",De,me);if(null==y.default.query(De))return void W.warn("ignoring attaching to nonexistent format",De,me)}me.addEventListener("SELECT"===me.tagName?"change":"click",function(Xe){var st=void 0;if("SELECT"===me.tagName){if(me.selectedIndex<0)return;var ze=me.options[me.selectedIndex];st=!ze.hasAttribute("selected")&&(ze.value||!1)}else st=!me.classList.contains("ql-active")&&(me.value||!me.hasAttribute("value")),Xe.preventDefault();ue.quill.focus();var F=ue.quill.selection.getRange(),de=i(F,1)[0];if(null!=ue.handlers[De])ue.handlers[De].call(ue,st);else if(y.default.query(De).prototype instanceof y.default.Embed){if(!(st=prompt("Enter "+De)))return;ue.quill.updateContents((new M.default).retain(de.index).delete(de.length).insert(function h(s,V,Q){return V in s?Object.defineProperty(s,V,{value:Q,enumerable:!0,configurable:!0,writable:!0}):s[V]=Q,s}({},De,st)),_.default.sources.USER)}else ue.quill.format(De,st,_.default.sources.USER);ue.update(de)}),this.controls.push([De,me])}}},{key:"update",value:function(me){var ue=null==me?{}:this.quill.getFormat(me);this.controls.forEach(function(De){var Ue=i(De,2),Xe=Ue[0],st=Ue[1];if("SELECT"===st.tagName){var ze=void 0;if(null==me)ze=null;else if(null==ue[Xe])ze=st.querySelector("option[selected]");else if(!Array.isArray(ue[Xe])){var F=ue[Xe];"string"==typeof F&&(F=F.replace(/\"/g,'\\"')),ze=st.querySelector('option[value="'+F+'"]')}null==ze?(st.value="",st.selectedIndex=-1):ze.selected=!0}else if(null==me)st.classList.remove("ql-active");else if(st.hasAttribute("value")){var Re=ue[Xe]===st.getAttribute("value")||null!=ue[Xe]&&ue[Xe].toString()===st.getAttribute("value")||null==ue[Xe]&&!st.getAttribute("value");st.classList.toggle("ql-active",Re)}else st.classList.toggle("ql-active",null!=ue[Xe])})}}]),V}(f.default);function k(s,V,Q){var me=document.createElement("button");me.setAttribute("type","button"),me.classList.add("ql-"+V),null!=Q&&(me.value=Q),s.appendChild(me)}function D(s,V){Array.isArray(V[0])||(V=[V]),V.forEach(function(Q){var me=document.createElement("span");me.classList.add("ql-formats"),Q.forEach(function(ue){if("string"==typeof ue)k(me,ue);else{var De=Object.keys(ue)[0],Ue=ue[De];Array.isArray(Ue)?function N(s,V,Q){var me=document.createElement("select");me.classList.add("ql-"+V),Q.forEach(function(ue){var De=document.createElement("option");!1!==ue?De.setAttribute("value",ue):De.setAttribute("selected","selected"),me.appendChild(De)}),s.appendChild(me)}(me,De,Ue):k(me,De,Ue)}}),s.appendChild(me)})}I.DEFAULTS={},I.DEFAULTS={container:null,handlers:{clean:function(){var V=this,Q=this.quill.getSelection();if(null!=Q)if(0==Q.length){var me=this.quill.getFormat();Object.keys(me).forEach(function(ue){null!=y.default.query(ue,y.default.Scope.INLINE)&&V.quill.format(ue,!1)})}else this.quill.removeFormat(Q,_.default.sources.USER)},direction:function(V){var Q=this.quill.getFormat().align;"rtl"===V&&null==Q?this.quill.format("align","right",_.default.sources.USER):!V&&"right"===Q&&this.quill.format("align",!1,_.default.sources.USER),this.quill.format("direction",V,_.default.sources.USER)},indent:function(V){var Q=this.quill.getSelection(),me=this.quill.getFormat(Q),ue=parseInt(me.indent||0);if("+1"===V||"-1"===V){var De="+1"===V?1:-1;"rtl"===me.direction&&(De*=-1),this.quill.format("indent",ue+De,_.default.sources.USER)}},link:function(V){!0===V&&(V=prompt("Enter link URL:")),this.quill.format("link",V,_.default.sources.USER)},list:function(V){var Q=this.quill.getSelection(),me=this.quill.getFormat(Q);this.quill.format("list","check"===V?"checked"!==me.list&&"unchecked"!==me.list&&"unchecked":V,_.default.sources.USER)}}},l.default=I,l.addControls=D},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function C(g,f){for(var d=0;d<f.length;d++){var h=f[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(g,h.key,h)}}return function(g,f,d){return f&&C(g.prototype,f),d&&C(g,d),g}}(),r=function C(g,f,d){null===g&&(g=Function.prototype);var h=Object.getOwnPropertyDescriptor(g,f);if(void 0===h){var T=Object.getPrototypeOf(g);return null===T?void 0:C(T,f,d)}if("value"in h)return h.value;var b=h.get;return void 0===b?void 0:b.call(d)};var p=function(C){function g(f,d){!function y(C,g){if(!(C instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g);var h=function u(C,g){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?C:g}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,f));return h.label.innerHTML=d,h.container.classList.add("ql-color-picker"),[].slice.call(h.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(T){T.classList.add("ql-primary")}),h}return function _(C,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);C.prototype=Object.create(g&&g.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(C,g):C.__proto__=g)}(g,C),i(g,[{key:"buildItem",value:function(d){var h=r(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,d);return h.style.backgroundColor=d.getAttribute("value")||"",h}},{key:"selectItem",value:function(d,h){r(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,d,h);var T=this.label.querySelector(".ql-color-label"),b=d&&d.getAttribute("data-value")||"";T&&("line"===T.tagName?T.style.stroke=b:T.style.fill=b)}}]),g}(function v(C){return C&&C.__esModule?C:{default:C}}(t(28)).default);l.default=p},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function C(g,f){for(var d=0;d<f.length;d++){var h=f[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(g,h.key,h)}}return function(g,f,d){return f&&C(g.prototype,f),d&&C(g,d),g}}(),r=function C(g,f,d){null===g&&(g=Function.prototype);var h=Object.getOwnPropertyDescriptor(g,f);if(void 0===h){var T=Object.getPrototypeOf(g);return null===T?void 0:C(T,f,d)}if("value"in h)return h.value;var b=h.get;return void 0===b?void 0:b.call(d)};var p=function(C){function g(f,d){!function y(C,g){if(!(C instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g);var h=function u(C,g){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?C:g}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,f));return h.container.classList.add("ql-icon-picker"),[].forEach.call(h.container.querySelectorAll(".ql-picker-item"),function(T){T.innerHTML=d[T.getAttribute("data-value")||""]}),h.defaultItem=h.container.querySelector(".ql-selected"),h.selectItem(h.defaultItem),h}return function _(C,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);C.prototype=Object.create(g&&g.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(C,g):C.__proto__=g)}(g,C),i(g,[{key:"selectItem",value:function(d,h){r(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,d,h),this.label.innerHTML=(d=d||this.defaultItem).innerHTML}}]),g}(function v(C){return C&&C.__esModule?C:{default:C}}(t(28)).default);l.default=p},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function M(v,y){for(var u=0;u<y.length;u++){var _=y[u];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}return function(v,y,u){return y&&M(v.prototype,y),u&&M(v,u),v}}();var L=function(){function M(v,y){var u=this;(function r(M,v){if(!(M instanceof v))throw new TypeError("Cannot call a class as a function")})(this,M),this.quill=v,this.boundsContainer=y||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){u.root.style.marginTop=-1*u.quill.root.scrollTop+"px"}),this.hide()}return i(M,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(y){var u=y.left+y.width/2-this.root.offsetWidth/2,_=y.bottom+this.quill.root.scrollTop;this.root.style.left=u+"px",this.root.style.top=_+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),C=this.root.getBoundingClientRect(),g=0;return C.right>p.right&&(this.root.style.left=u+(g=p.right-C.right)+"px"),C.left<p.left&&(this.root.style.left=u+(g=p.left-C.left)+"px"),C.bottom>p.bottom&&(this.root.style.top=_-(y.bottom-y.top+(C.bottom-C.top))+"px",this.root.classList.add("ql-flip")),g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),M}();l.default=L},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(s,V){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return function N(s,V){var Q=[],me=!0,ue=!1,De=void 0;try{for(var Xe,Ue=s[Symbol.iterator]();!(me=(Xe=Ue.next()).done)&&(Q.push(Xe.value),!V||Q.length!==V);me=!0);}catch(st){ue=!0,De=st}finally{try{!me&&Ue.return&&Ue.return()}finally{if(ue)throw De}}return Q}(s,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function N(s,V,Q){null===s&&(s=Function.prototype);var me=Object.getOwnPropertyDescriptor(s,V);if(void 0===me){var ue=Object.getPrototypeOf(s);return null===ue?void 0:N(ue,V,Q)}if("value"in me)return me.value;var De=me.get;return void 0===De?void 0:De.call(Q)},L=function(){function N(s,V){for(var Q=0;Q<V.length;Q++){var me=V[Q];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(s,me.key,me)}}return function(s,V,Q){return V&&N(s.prototype,V),Q&&N(s,Q),s}}(),v=T(t(3)),u=T(t(8)),_=t(43),p=T(_),g=T(t(27)),f=t(15),h=T(t(41));function T(N){return N&&N.__esModule?N:{default:N}}function b(N,s){if(!(N instanceof s))throw new TypeError("Cannot call a class as a function")}function P(N,s){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?N:s}function W(N,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);N.prototype=Object.create(s&&s.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(N,s):N.__proto__=s)}var I=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],k=function(N){function s(V,Q){b(this,s),null!=Q.modules.toolbar&&null==Q.modules.toolbar.container&&(Q.modules.toolbar.container=I);var me=P(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,V,Q));return me.quill.container.classList.add("ql-snow"),me}return W(s,N),L(s,[{key:"extendToolbar",value:function(Q){Q.container.classList.add("ql-snow"),this.buildButtons([].slice.call(Q.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(Q.container.querySelectorAll("select")),h.default),this.tooltip=new D(this.quill,this.options.bounds),Q.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(me,ue){Q.handlers.link.call(Q,!ue.format.link)})}}]),s}(p.default);k.DEFAULTS=(0,v.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(s){if(s){var V=this.quill.getSelection();if(null==V||0==V.length)return;var Q=this.quill.getText(V);/^\S+@\S+\.\S+$/.test(Q)&&0!==Q.indexOf("mailto:")&&(Q="mailto:"+Q),this.quill.theme.tooltip.edit("link",Q)}else this.quill.format("link",!1)}}}}});var D=function(N){function s(V,Q){b(this,s);var me=P(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,V,Q));return me.preview=me.root.querySelector("a.ql-preview"),me}return W(s,N),L(s,[{key:"listen",value:function(){var Q=this;r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(me){Q.root.classList.contains("ql-editing")?Q.save():Q.edit("link",Q.preview.textContent),me.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(me){if(null!=Q.linkRange){var ue=Q.linkRange;Q.restoreFocus(),Q.quill.formatText(ue,"link",!1,u.default.sources.USER),delete Q.linkRange}me.preventDefault(),Q.hide()}),this.quill.on(u.default.events.SELECTION_CHANGE,function(me,ue,De){if(null!=me){if(0===me.length&&De===u.default.sources.USER){var Ue=Q.quill.scroll.descendant(g.default,me.index),Xe=i(Ue,2),st=Xe[0];if(null!=st){Q.linkRange=new f.Range(me.index-Xe[1],st.length());var F=g.default.formats(st.domNode);return Q.preview.textContent=F,Q.preview.setAttribute("href",F),Q.show(),void Q.position(Q.quill.getBounds(Q.linkRange))}}else delete Q.linkRange;Q.hide()}})}},{key:"show",value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),s}(_.BaseTooltip);D.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),l.default=k},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=yt(t(29)),L=t(36),M=t(38),v=t(64),u=yt(t(65)),p=yt(t(66)),C=t(67),g=yt(C),f=t(37),d=t(26),h=t(39),T=t(40),P=yt(t(56)),I=yt(t(68)),D=yt(t(27)),s=yt(t(69)),Q=yt(t(70)),ue=yt(t(71)),Ue=yt(t(72)),st=yt(t(73)),ze=t(13),F=yt(ze),de=yt(t(74)),oe=yt(t(75)),ye=yt(t(57)),Fe=yt(t(41)),Pt=yt(t(28)),Bt=yt(t(59)),xt=yt(t(60)),ct=yt(t(61)),rt=yt(t(108)),Ft=yt(t(62));function yt(un){return un&&un.__esModule?un:{default:un}}r.default.register({"attributors/attribute/direction":M.DirectionAttribute,"attributors/class/align":L.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":M.DirectionClass,"attributors/class/font":h.FontClass,"attributors/class/size":T.SizeClass,"attributors/style/align":L.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":M.DirectionStyle,"attributors/style/font":h.FontStyle,"attributors/style/size":T.SizeStyle},!0),r.default.register({"formats/align":L.AlignClass,"formats/direction":M.DirectionClass,"formats/indent":v.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":h.FontClass,"formats/size":T.SizeClass,"formats/blockquote":u.default,"formats/code-block":F.default,"formats/header":p.default,"formats/list":g.default,"formats/bold":P.default,"formats/code":ze.Code,"formats/italic":I.default,"formats/link":D.default,"formats/script":s.default,"formats/strike":Q.default,"formats/underline":ue.default,"formats/image":Ue.default,"formats/video":st.default,"formats/list/item":C.ListItem,"modules/formula":de.default,"modules/syntax":oe.default,"modules/toolbar":ye.default,"themes/bubble":rt.default,"themes/snow":Ft.default,"ui/icons":Fe.default,"ui/picker":Pt.default,"ui/icon-picker":xt.default,"ui/color-picker":Bt.default,"ui/tooltip":ct.default},!0),l.default=r.default},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.IndentClass=void 0;var i=function(){function g(f,d){for(var h=0;h<d.length;h++){var T=d[h];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(f,T.key,T)}}return function(f,d,h){return d&&g(f.prototype,d),h&&g(f,h),f}}(),r=function g(f,d,h){null===f&&(f=Function.prototype);var T=Object.getOwnPropertyDescriptor(f,d);if(void 0===T){var b=Object.getPrototypeOf(f);return null===b?void 0:g(b,d,h)}if("value"in T)return T.value;var P=T.get;return void 0===P?void 0:P.call(h)},M=function v(g){return g&&g.__esModule?g:{default:g}}(t(0));var p=function(g){function f(){return function y(g,f){if(!(g instanceof f))throw new TypeError("Cannot call a class as a function")}(this,f),function u(g,f){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?g:f}(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function _(g,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);g.prototype=Object.create(f&&f.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(g,f):g.__proto__=f)}(f,g),i(f,[{key:"add",value:function(h,T){if("+1"===T||"-1"===T){var b=this.value(h)||0;T="+1"===T?b+1:b-1}return 0===T?(this.remove(h),!0):r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"add",this).call(this,h,T)}},{key:"canAdd",value:function(h,T){return r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"canAdd",this).call(this,h,T)||r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"canAdd",this).call(this,h,parseInt(T))}},{key:"value",value:function(h){return parseInt(r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,h))||void 0}}]),f}(M.default.Attributor.Class),C=new p("indent","ql-indent",{scope:M.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});l.IndentClass=C},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var u=function(_){function p(){return function M(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p),function v(_,p){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?_:p}(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return function y(_,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);_.prototype=Object.create(p&&p.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(_,p):_.__proto__=p)}(p,_),p}(function L(_){return _&&_.__esModule?_:{default:_}}(t(4)).default);u.blotName="blockquote",u.tagName="blockquote",l.default=u},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function p(C,g){for(var f=0;f<g.length;f++){var d=g[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(C,d.key,d)}}return function(C,g,f){return g&&p(C.prototype,g),f&&p(C,f),C}}();var _=function(p){function C(){return function v(p,C){if(!(p instanceof C))throw new TypeError("Cannot call a class as a function")}(this,C),function y(p,C){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!C||"object"!=typeof C&&"function"!=typeof C?p:C}(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return function u(p,C){if("function"!=typeof C&&null!==C)throw new TypeError("Super expression must either be null or a function, not "+typeof C);p.prototype=Object.create(C&&C.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(p,C):p.__proto__=C)}(C,p),i(C,null,[{key:"formats",value:function(f){return this.tagName.indexOf(f.tagName)+1}}]),C}(function M(p){return p&&p.__esModule?p:{default:p}}(t(4)).default);_.blotName="header",_.tagName=["H1","H2","H3","H4","H5","H6"],l.default=_},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.ListItem=void 0;var i=function(){function b(P,W){for(var I=0;I<W.length;I++){var k=W[I];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(P,k.key,k)}}return function(P,W,I){return W&&b(P.prototype,W),I&&b(P,I),P}}(),r=function b(P,W,I){null===P&&(P=Function.prototype);var k=Object.getOwnPropertyDescriptor(P,W);if(void 0===k){var D=Object.getPrototypeOf(P);return null===D?void 0:b(D,W,I)}if("value"in k)return k.value;var N=k.get;return void 0===N?void 0:N.call(I)},M=p(t(0)),y=p(t(4)),_=p(t(25));function p(b){return b&&b.__esModule?b:{default:b}}function g(b,P){if(!(b instanceof P))throw new TypeError("Cannot call a class as a function")}function f(b,P){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!P||"object"!=typeof P&&"function"!=typeof P?b:P}function d(b,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function, not "+typeof P);b.prototype=Object.create(P&&P.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(b,P):b.__proto__=P)}var h=function(b){function P(){return g(this,P),f(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return d(P,b),i(P,[{key:"format",value:function(I,k){I!==T.blotName||k?r(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,I,k):this.replaceWith(M.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(I,k){return this.parent.isolate(this.offset(this.parent),this.length()),I===this.parent.statics.blotName?(this.parent.replaceWith(I,k),this):(this.parent.unwrap(),r(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replaceWith",this).call(this,I,k))}}],[{key:"formats",value:function(I){return I.tagName===this.tagName?void 0:r(P.__proto__||Object.getPrototypeOf(P),"formats",this).call(this,I)}}]),P}(y.default);h.blotName="list-item",h.tagName="LI";var T=function(b){function P(W){g(this,P);var I=f(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,W)),k=function(N){if(N.target.parentNode===W){var s=I.statics.formats(W),V=M.default.find(N.target);"checked"===s?V.format("list","unchecked"):"unchecked"===s&&V.format("list","checked")}};return W.addEventListener("touchstart",k),W.addEventListener("mousedown",k),I}return d(P,b),i(P,null,[{key:"create",value:function(I){var k="ordered"===I?"OL":"UL",D=r(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,k);return("checked"===I||"unchecked"===I)&&D.setAttribute("data-checked","checked"===I),D}},{key:"formats",value:function(I){return"OL"===I.tagName?"ordered":"UL"===I.tagName?I.hasAttribute("data-checked")?"true"===I.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),i(P,[{key:"format",value:function(I,k){this.children.length>0&&this.children.tail.format(I,k)}},{key:"formats",value:function(){return function C(b,P,W){return P in b?Object.defineProperty(b,P,{value:W,enumerable:!0,configurable:!0,writable:!0}):b[P]=W,b}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(I,k){if(I instanceof h)r(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertBefore",this).call(this,I,k);else{var D=null==k?this.length():k.offset(this),N=this.split(D);N.parent.insertBefore(I,N)}}},{key:"optimize",value:function(I){r(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,I);var k=this.next;null!=k&&k.prev===this&&k.statics.blotName===this.statics.blotName&&k.domNode.tagName===this.domNode.tagName&&k.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(k.moveChildren(this),k.remove())}},{key:"replace",value:function(I){if(I.statics.blotName!==this.statics.blotName){var k=M.default.create(this.statics.defaultChild);I.moveChildren(k),this.appendChild(k)}r(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,I)}}]),P}(_.default);T.blotName="list",T.scope=M.default.Scope.BLOCK_BLOT,T.tagName=["OL","UL"],T.defaultChild="list-item",T.allowedChildren=[h],l.ListItem=h,l.default=T},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var u=function(_){function p(){return function M(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p),function v(_,p){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?_:p}(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return function y(_,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);_.prototype=Object.create(p&&p.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(_,p):_.__proto__=p)}(p,_),p}(function L(_){return _&&_.__esModule?_:{default:_}}(t(56)).default);u.blotName="italic",u.tagName=["EM","I"],l.default=u},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function C(g,f){for(var d=0;d<f.length;d++){var h=f[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(g,h.key,h)}}return function(g,f,d){return f&&C(g.prototype,f),d&&C(g,d),g}}(),r=function C(g,f,d){null===g&&(g=Function.prototype);var h=Object.getOwnPropertyDescriptor(g,f);if(void 0===h){var T=Object.getPrototypeOf(g);return null===T?void 0:C(T,f,d)}if("value"in h)return h.value;var b=h.get;return void 0===b?void 0:b.call(d)};var p=function(C){function g(){return function y(C,g){if(!(C instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),function u(C,g){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?C:g}(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return function _(C,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);C.prototype=Object.create(g&&g.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(C,g):C.__proto__=g)}(g,C),i(g,null,[{key:"create",value:function(d){return"super"===d?document.createElement("sup"):"sub"===d?document.createElement("sub"):r(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,d)}},{key:"formats",value:function(d){return"SUB"===d.tagName?"sub":"SUP"===d.tagName?"super":void 0}}]),g}(function v(C){return C&&C.__esModule?C:{default:C}}(t(6)).default);p.blotName="script",p.tagName=["SUB","SUP"],l.default=p},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var u=function(_){function p(){return function M(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p),function v(_,p){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?_:p}(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return function y(_,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);_.prototype=Object.create(p&&p.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(_,p):_.__proto__=p)}(p,_),p}(function L(_){return _&&_.__esModule?_:{default:_}}(t(6)).default);u.blotName="strike",u.tagName="S",l.default=u},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var u=function(_){function p(){return function M(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p),function v(_,p){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?_:p}(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return function y(_,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);_.prototype=Object.create(p&&p.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(_,p):_.__proto__=p)}(p,_),p}(function L(_){return _&&_.__esModule?_:{default:_}}(t(6)).default);u.blotName="underline",u.tagName="U",l.default=u},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function f(d,h){for(var T=0;T<h.length;T++){var b=h[T];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}return function(d,h,T){return h&&f(d.prototype,h),T&&f(d,T),d}}(),r=function f(d,h,T){null===d&&(d=Function.prototype);var b=Object.getOwnPropertyDescriptor(d,h);if(void 0===b){var P=Object.getPrototypeOf(d);return null===P?void 0:f(P,h,T)}if("value"in b)return b.value;var W=b.get;return void 0===W?void 0:W.call(T)},M=function y(f){return f&&f.__esModule?f:{default:f}}(t(0)),v=t(27);var C=["alt","height","width"],g=function(f){function d(){return function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d),function _(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?f:d}(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return function p(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}(d,f),i(d,[{key:"format",value:function(T,b){C.indexOf(T)>-1?b?this.domNode.setAttribute(T,b):this.domNode.removeAttribute(T):r(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,T,b)}}],[{key:"create",value:function(T){var b=r(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,T);return"string"==typeof T&&b.setAttribute("src",this.sanitize(T)),b}},{key:"formats",value:function(T){return C.reduce(function(b,P){return T.hasAttribute(P)&&(b[P]=T.getAttribute(P)),b},{})}},{key:"match",value:function(T){return/\.(jpe?g|gif|png)$/.test(T)||/^data:image\/.+;base64/.test(T)}},{key:"sanitize",value:function(T){return(0,v.sanitize)(T,["http","https","data"])?T:"//:0"}},{key:"value",value:function(T){return T.getAttribute("src")}}]),d}(M.default.Embed);g.blotName="image",g.tagName="IMG",l.default=g},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function f(d,h){for(var T=0;T<h.length;T++){var b=h[T];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,b.key,b)}}return function(d,h,T){return h&&f(d.prototype,h),T&&f(d,T),d}}(),r=function f(d,h,T){null===d&&(d=Function.prototype);var b=Object.getOwnPropertyDescriptor(d,h);if(void 0===b){var P=Object.getPrototypeOf(d);return null===P?void 0:f(P,h,T)}if("value"in b)return b.value;var W=b.get;return void 0===W?void 0:W.call(T)},L=t(4),v=function y(f){return f&&f.__esModule?f:{default:f}}(t(27));var C=["height","width"],g=function(f){function d(){return function u(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d),function _(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?f:d}(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return function p(f,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}(d,f),i(d,[{key:"format",value:function(T,b){C.indexOf(T)>-1?b?this.domNode.setAttribute(T,b):this.domNode.removeAttribute(T):r(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,T,b)}}],[{key:"create",value:function(T){var b=r(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,T);return b.setAttribute("frameborder","0"),b.setAttribute("allowfullscreen",!0),b.setAttribute("src",this.sanitize(T)),b}},{key:"formats",value:function(T){return C.reduce(function(b,P){return T.hasAttribute(P)&&(b[P]=T.getAttribute(P)),b},{})}},{key:"sanitize",value:function(T){return v.default.sanitize(T)}},{key:"value",value:function(T){return T.getAttribute("src")}}]),d}(L.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",l.default=g},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.FormulaBlot=void 0;var i=function(){function T(b,P){for(var W=0;W<P.length;W++){var I=P[W];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(b,I.key,I)}}return function(b,P,W){return P&&T(b.prototype,P),W&&T(b,W),b}}(),r=function T(b,P,W){null===b&&(b=Function.prototype);var I=Object.getOwnPropertyDescriptor(b,P);if(void 0===I){var k=Object.getPrototypeOf(b);return null===k?void 0:T(k,P,W)}if("value"in I)return I.value;var D=I.get;return void 0===D?void 0:D.call(W)},M=p(t(35)),y=p(t(5)),_=p(t(9));function p(T){return T&&T.__esModule?T:{default:T}}function C(T,b){if(!(T instanceof b))throw new TypeError("Cannot call a class as a function")}function g(T,b){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?T:b}function f(T,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);T.prototype=Object.create(b&&b.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(T,b):T.__proto__=b)}var d=function(T){function b(){return C(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return f(b,T),i(b,null,[{key:"create",value:function(W){var I=r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,W);return"string"==typeof W&&(window.katex.render(W,I,{throwOnError:!1,errorColor:"#f00"}),I.setAttribute("data-value",W)),I}},{key:"value",value:function(W){return W.getAttribute("data-value")}}]),b}(M.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var h=function(T){function b(){C(this,b);var P=g(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return P}return f(b,T),i(b,null,[{key:"register",value:function(){y.default.register(d,!0)}}]),b}(_.default);l.FormulaBlot=d,l.default=h},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.CodeToken=l.CodeBlock=void 0;var i=function(){function W(I,k){for(var D=0;D<k.length;D++){var N=k[D];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,N.key,N)}}return function(I,k,D){return k&&W(I.prototype,k),D&&W(I,D),I}}(),r=function W(I,k,D){null===I&&(I=Function.prototype);var N=Object.getOwnPropertyDescriptor(I,k);if(void 0===N){var s=Object.getPrototypeOf(I);return null===s?void 0:W(s,k,D)}if("value"in N)return N.value;var V=N.get;return void 0===V?void 0:V.call(D)},M=g(t(0)),y=g(t(5)),_=g(t(9));function g(W){return W&&W.__esModule?W:{default:W}}function f(W,I){if(!(W instanceof I))throw new TypeError("Cannot call a class as a function")}function d(W,I){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!I||"object"!=typeof I&&"function"!=typeof I?W:I}function h(W,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function, not "+typeof I);W.prototype=Object.create(I&&I.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(W,I):W.__proto__=I)}var T=function(W){function I(){return f(this,I),d(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return h(I,W),i(I,[{key:"replaceWith",value:function(D){this.domNode.textContent=this.domNode.textContent,this.attach(),r(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replaceWith",this).call(this,D)}},{key:"highlight",value:function(D){var N=this.domNode.textContent;this.cachedText!==N&&((N.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=D(N),this.domNode.normalize(),this.attach()),this.cachedText=N)}}]),I}(g(t(13)).default);T.className="ql-syntax";var b=new M.default.Attributor.Class("token","hljs",{scope:M.default.Scope.INLINE}),P=function(W){function I(k,D){f(this,I);var N=d(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,k,D));if("function"!=typeof N.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var s=null;return N.quill.on(y.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(s),s=setTimeout(function(){N.highlight(),s=null},N.options.interval)}),N.highlight(),N}return h(I,W),i(I,null,[{key:"register",value:function(){y.default.register(b,!0),y.default.register(T,!0)}}]),i(I,[{key:"highlight",value:function(){var D=this;if(!this.quill.selection.composing){this.quill.update(y.default.sources.USER);var N=this.quill.getSelection();this.quill.scroll.descendants(T).forEach(function(s){s.highlight(D.options.highlight)}),this.quill.update(y.default.sources.SILENT),null!=N&&this.quill.setSelection(N,y.default.sources.SILENT)}}}]),I}(_.default);P.DEFAULTS={highlight:null==window.hljs?null:function(W){return window.hljs.highlightAuto(W).value},interval:1e3},l.CodeBlock=T,l.CodeToken=b,l.default=P},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(re,l){re.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(re,l){re.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(re,l){re.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(re,l){re.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(re,l){re.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(re,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.BubbleTooltip=void 0;var i=function I(k,D,N){null===k&&(k=Function.prototype);var s=Object.getOwnPropertyDescriptor(k,D);if(void 0===s){var V=Object.getPrototypeOf(k);return null===V?void 0:I(V,D,N)}if("value"in s)return s.value;var Q=s.get;return void 0===Q?void 0:Q.call(N)},r=function(){function I(k,D){for(var N=0;N<D.length;N++){var s=D[N];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(k,s.key,s)}}return function(k,D,N){return D&&I(k.prototype,D),N&&I(k,N),k}}(),M=f(t(3)),y=f(t(8)),u=t(43),_=f(u),p=t(15),g=f(t(41));function f(I){return I&&I.__esModule?I:{default:I}}function d(I,k){if(!(I instanceof k))throw new TypeError("Cannot call a class as a function")}function h(I,k){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!k||"object"!=typeof k&&"function"!=typeof k?I:k}function T(I,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function, not "+typeof k);I.prototype=Object.create(k&&k.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(I,k):I.__proto__=k)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],P=function(I){function k(D,N){d(this,k),null!=N.modules.toolbar&&null==N.modules.toolbar.container&&(N.modules.toolbar.container=b);var s=h(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,D,N));return s.quill.container.classList.add("ql-bubble"),s}return T(k,I),r(k,[{key:"extendToolbar",value:function(N){this.tooltip=new W(this.quill,this.options.bounds),this.tooltip.root.appendChild(N.container),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),g.default)}}]),k}(_.default);P.DEFAULTS=(0,M.default)(!0,{},_.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){k?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var W=function(I){function k(D,N){d(this,k);var s=h(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,D,N));return s.quill.on(y.default.events.EDITOR_CHANGE,function(V,Q,me,ue){if(V===y.default.events.SELECTION_CHANGE)if(null!=Q&&Q.length>0&&ue===y.default.sources.USER){s.show(),s.root.style.left="0px",s.root.style.width="",s.root.style.width=s.root.offsetWidth+"px";var De=s.quill.getLines(Q.index,Q.length);if(1===De.length)s.position(s.quill.getBounds(Q));else{var Ue=De[De.length-1],Xe=s.quill.getIndex(Ue),st=Math.min(Ue.length()-1,Q.index+Q.length-Xe),ze=s.quill.getBounds(new p.Range(Xe,st));s.position(ze)}}else document.activeElement!==s.textbox&&s.quill.hasFocus()&&s.hide()}),s}return T(k,I),r(k,[{key:"listen",value:function(){var N=this;i(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){N.root.classList.remove("ql-editing")}),this.quill.on(y.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!N.root.classList.contains("ql-hidden")){var s=N.quill.getSelection();null!=s&&N.position(N.quill.getBounds(s))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(N){var s=i(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"position",this).call(this,N),V=this.root.querySelector(".ql-tooltip-arrow");if(V.style.marginLeft="",0===s)return s;V.style.marginLeft=-1*s-V.offsetWidth/2+"px"}}]),k}(u.BaseTooltip);W.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),l.BubbleTooltip=W,l.default=P},function(re,l,t){re.exports=t(63)}]).default},6317:(qe,re,l)=>{"use strict";l.d(re,{X:()=>i});var t=l(253);class i extends t.x{constructor(L){super(),this._value=L}get value(){return this.getValue()}_subscribe(L){const M=super._subscribe(L);return!M.closed&&L.next(this._value),M}getValue(){const{hasError:L,thrownError:M,_value:v}=this;if(L)throw M;return this._throwIfClosed(),v}next(L){super.next(this._value=L)}}},833:(qe,re,l)=>{"use strict";l.d(re,{y:()=>u});var t=l(5463),i=l(7714),r=l(4585),L=l(629),M=l(9057),v=l(2971),y=l(2309);let u=(()=>{class g{constructor(d){d&&(this._subscribe=d)}lift(d){const h=new g;return h.source=this,h.operator=d,h}subscribe(d,h,T){const b=function C(g){return g&&g instanceof t.Lv||function p(g){return g&&(0,v.m)(g.next)&&(0,v.m)(g.error)&&(0,v.m)(g.complete)}(g)&&(0,i.Nn)(g)}(d)?d:new t.Hp(d,h,T);return(0,y.x)(()=>{const{operator:P,source:W}=this;b.add(P?P.call(b,W):W?this._subscribe(b):this._trySubscribe(b))}),b}_trySubscribe(d){try{return this._subscribe(d)}catch(h){d.error(h)}}forEach(d,h){return new(h=_(h))((T,b)=>{const P=new t.Hp({next:W=>{try{d(W)}catch(I){b(I),P.unsubscribe()}},error:b,complete:T});this.subscribe(P)})}_subscribe(d){var h;return null===(h=this.source)||void 0===h?void 0:h.subscribe(d)}[r.L](){return this}pipe(...d){return(0,L.U)(d)(this)}toPromise(d){return new(d=_(d))((h,T)=>{let b;this.subscribe(P=>b=P,P=>T(P),()=>h(b))})}}return g.create=f=>new g(f),g})();function _(g){var f;return null!==(f=g??M.v.Promise)&&void 0!==f?f:Promise}},6067:(qe,re,l)=>{"use strict";l.d(re,{t:()=>r});var t=l(253),i=l(7654);class r extends t.x{constructor(M=1/0,v=1/0,y=i.l){super(),this._bufferSize=M,this._windowTime=v,this._timestampProvider=y,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=v===1/0,this._bufferSize=Math.max(1,M),this._windowTime=Math.max(1,v)}next(M){const{isStopped:v,_buffer:y,_infiniteTimeWindow:u,_timestampProvider:_,_windowTime:p}=this;v||(y.push(M),!u&&y.push(_.now()+p)),this._trimBuffer(),super.next(M)}_subscribe(M){this._throwIfClosed(),this._trimBuffer();const v=this._innerSubscribe(M),{_infiniteTimeWindow:y,_buffer:u}=this,_=u.slice();for(let p=0;p<_.length&&!M.closed;p+=y?1:2)M.next(_[p]);return this._checkFinalizedStatuses(M),v}_trimBuffer(){const{_bufferSize:M,_timestampProvider:v,_buffer:y,_infiniteTimeWindow:u}=this,_=(u?1:2)*M;if(M<1/0&&_<y.length&&y.splice(0,y.length-_),!u){const p=v.now();let C=0;for(let g=1;g<y.length&&y[g]<=p;g+=2)C=g;C&&y.splice(0,C+1)}}}},253:(qe,re,l)=>{"use strict";l.d(re,{x:()=>y});var t=l(833),i=l(7714);const L=(0,l(7543).d)(_=>function(){_(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var M=l(9663),v=l(2309);let y=(()=>{class _ extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(C){const g=new u(this,this);return g.operator=C,g}_throwIfClosed(){if(this.closed)throw new L}next(C){(0,v.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const g of this.currentObservers)g.next(C)}})}error(C){(0,v.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=C;const{observers:g}=this;for(;g.length;)g.shift().error(C)}})}complete(){(0,v.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:C}=this;for(;C.length;)C.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var C;return(null===(C=this.observers)||void 0===C?void 0:C.length)>0}_trySubscribe(C){return this._throwIfClosed(),super._trySubscribe(C)}_subscribe(C){return this._throwIfClosed(),this._checkFinalizedStatuses(C),this._innerSubscribe(C)}_innerSubscribe(C){const{hasError:g,isStopped:f,observers:d}=this;return g||f?i.Lc:(this.currentObservers=null,d.push(C),new i.w0(()=>{this.currentObservers=null,(0,M.P)(d,C)}))}_checkFinalizedStatuses(C){const{hasError:g,thrownError:f,isStopped:d}=this;g?C.error(f):d&&C.complete()}asObservable(){const C=new t.y;return C.source=this,C}}return _.create=(p,C)=>new u(p,C),_})();class u extends y{constructor(p,C){super(),this.destination=p,this.source=C}next(p){var C,g;null===(g=null===(C=this.destination)||void 0===C?void 0:C.next)||void 0===g||g.call(C,p)}error(p){var C,g;null===(g=null===(C=this.destination)||void 0===C?void 0:C.error)||void 0===g||g.call(C,p)}complete(){var p,C;null===(C=null===(p=this.destination)||void 0===p?void 0:p.complete)||void 0===C||C.call(p)}_subscribe(p){var C,g;return null!==(g=null===(C=this.source)||void 0===C?void 0:C.subscribe(p))&&void 0!==g?g:i.Lc}}},5463:(qe,re,l)=>{"use strict";l.d(re,{Hp:()=>T,Lv:()=>g});var t=l(2971),i=l(7714),r=l(9057),L=l(4709),M=l(9635);const v=_("C",void 0,void 0);function _(k,D,N){return{kind:k,value:D,error:N}}var p=l(3542),C=l(2309);class g extends i.w0{constructor(D){super(),this.isStopped=!1,D?(this.destination=D,(0,i.Nn)(D)&&D.add(this)):this.destination=I}static create(D,N,s){return new T(D,N,s)}next(D){this.isStopped?W(function u(k){return _("N",k,void 0)}(D),this):this._next(D)}error(D){this.isStopped?W(function y(k){return _("E",void 0,k)}(D),this):(this.isStopped=!0,this._error(D))}complete(){this.isStopped?W(v,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(D){this.destination.next(D)}_error(D){try{this.destination.error(D)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const f=Function.prototype.bind;function d(k,D){return f.call(k,D)}class h{constructor(D){this.partialObserver=D}next(D){const{partialObserver:N}=this;if(N.next)try{N.next(D)}catch(s){b(s)}}error(D){const{partialObserver:N}=this;if(N.error)try{N.error(D)}catch(s){b(s)}else b(D)}complete(){const{partialObserver:D}=this;if(D.complete)try{D.complete()}catch(N){b(N)}}}class T extends g{constructor(D,N,s){let V;if(super(),(0,t.m)(D)||!D)V={next:D??void 0,error:N??void 0,complete:s??void 0};else{let Q;this&&r.v.useDeprecatedNextContext?(Q=Object.create(D),Q.unsubscribe=()=>this.unsubscribe(),V={next:D.next&&d(D.next,Q),error:D.error&&d(D.error,Q),complete:D.complete&&d(D.complete,Q)}):V=D}this.destination=new h(V)}}function b(k){r.v.useDeprecatedSynchronousErrorHandling?(0,C.O)(k):(0,L.h)(k)}function W(k,D){const{onStoppedNotification:N}=r.v;N&&p.z.setTimeout(()=>N(k,D))}const I={closed:!0,next:M.Z,error:function P(k){throw k},complete:M.Z}},7714:(qe,re,l)=>{"use strict";l.d(re,{Lc:()=>v,w0:()=>M,Nn:()=>y});var t=l(2971);const r=(0,l(7543).d)(_=>function(C){_(this),this.message=C?`${C.length} errors occurred during unsubscription:\n${C.map((g,f)=>`${f+1}) ${g.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=C});var L=l(9663);class M{constructor(p){this.initialTeardown=p,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let p;if(!this.closed){this.closed=!0;const{_parentage:C}=this;if(C)if(this._parentage=null,Array.isArray(C))for(const d of C)d.remove(this);else C.remove(this);const{initialTeardown:g}=this;if((0,t.m)(g))try{g()}catch(d){p=d instanceof r?d.errors:[d]}const{_finalizers:f}=this;if(f){this._finalizers=null;for(const d of f)try{u(d)}catch(h){p=p??[],h instanceof r?p=[...p,...h.errors]:p.push(h)}}if(p)throw new r(p)}}add(p){var C;if(p&&p!==this)if(this.closed)u(p);else{if(p instanceof M){if(p.closed||p._hasParent(this))return;p._addParent(this)}(this._finalizers=null!==(C=this._finalizers)&&void 0!==C?C:[]).push(p)}}_hasParent(p){const{_parentage:C}=this;return C===p||Array.isArray(C)&&C.includes(p)}_addParent(p){const{_parentage:C}=this;this._parentage=Array.isArray(C)?(C.push(p),C):C?[C,p]:p}_removeParent(p){const{_parentage:C}=this;C===p?this._parentage=null:Array.isArray(C)&&(0,L.P)(C,p)}remove(p){const{_finalizers:C}=this;C&&(0,L.P)(C,p),p instanceof M&&p._removeParent(this)}}M.EMPTY=(()=>{const _=new M;return _.closed=!0,_})();const v=M.EMPTY;function y(_){return _ instanceof M||_&&"closed"in _&&(0,t.m)(_.remove)&&(0,t.m)(_.add)&&(0,t.m)(_.unsubscribe)}function u(_){(0,t.m)(_)?_():_.unsubscribe()}},9057:(qe,re,l)=>{"use strict";l.d(re,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},591:(qe,re,l)=>{"use strict";l.d(re,{E:()=>i});const i=new(l(833).y)(M=>M.complete())},7400:(qe,re,l)=>{"use strict";l.d(re,{D:()=>N});var t=l(4987),i=l(8728),r=l(1944);function L(s,V=0){return(0,r.e)((Q,me)=>{me.add(s.schedule(()=>Q.subscribe(me),V))})}var y=l(833),_=l(7321),p=l(2971),C=l(1817);function f(s,V){if(!s)throw new Error("Iterable cannot be null");return new y.y(Q=>{(0,C.f)(Q,V,()=>{const me=s[Symbol.asyncIterator]();(0,C.f)(Q,V,()=>{me.next().then(ue=>{ue.done?Q.complete():Q.next(ue.value)})},0,!0)})})}var d=l(1331),h=l(9548),T=l(9806),b=l(3433),P=l(470),W=l(7785),I=l(181);function N(s,V){return V?function D(s,V){if(null!=s){if((0,d.c)(s))return function M(s,V){return(0,t.Xf)(s).pipe(L(V),(0,i.Q)(V))}(s,V);if((0,T.z)(s))return function u(s,V){return new y.y(Q=>{let me=0;return V.schedule(function(){me===s.length?Q.complete():(Q.next(s[me++]),Q.closed||this.schedule())})})}(s,V);if((0,h.t)(s))return function v(s,V){return(0,t.Xf)(s).pipe(L(V),(0,i.Q)(V))}(s,V);if((0,P.D)(s))return f(s,V);if((0,b.T)(s))return function g(s,V){return new y.y(Q=>{let me;return(0,C.f)(Q,V,()=>{me=s[_.h](),(0,C.f)(Q,V,()=>{let ue,De;try{({value:ue,done:De}=me.next())}catch(Ue){return void Q.error(Ue)}De?Q.complete():Q.next(ue)},0,!0)}),()=>(0,p.m)(me?.return)&&me.return()})}(s,V);if((0,I.L)(s))return function k(s,V){return f((0,I.Q)(s),V)}(s,V)}throw(0,W.z)(s)}(s,V):(0,t.Xf)(s)}},4987:(qe,re,l)=>{"use strict";l.d(re,{Xf:()=>f});var t=l(2321),i=l(9806),r=l(9548),L=l(833),M=l(1331),v=l(470),y=l(7785),u=l(3433),_=l(181),p=l(2971),C=l(4709),g=l(4585);function f(k){if(k instanceof L.y)return k;if(null!=k){if((0,M.c)(k))return function d(k){return new L.y(D=>{const N=k[g.L]();if((0,p.m)(N.subscribe))return N.subscribe(D);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(k);if((0,i.z)(k))return function h(k){return new L.y(D=>{for(let N=0;N<k.length&&!D.closed;N++)D.next(k[N]);D.complete()})}(k);if((0,r.t)(k))return function T(k){return new L.y(D=>{k.then(N=>{D.closed||(D.next(N),D.complete())},N=>D.error(N)).then(null,C.h)})}(k);if((0,v.D)(k))return P(k);if((0,u.T)(k))return function b(k){return new L.y(D=>{for(const N of k)if(D.next(N),D.closed)return;D.complete()})}(k);if((0,_.L)(k))return function W(k){return P((0,_.Q)(k))}(k)}throw(0,y.z)(k)}function P(k){return new L.y(D=>{(function I(k,D){var N,s,V,Q;return(0,t.mG)(this,void 0,void 0,function*(){try{for(N=(0,t.KL)(k);!(s=yield N.next()).done;)if(D.next(s.value),D.closed)return}catch(me){V={error:me}}finally{try{s&&!s.done&&(Q=N.return)&&(yield Q.call(N))}finally{if(V)throw V.error}}D.complete()})})(k,D).catch(N=>D.error(N))})}},6646:(qe,re,l)=>{"use strict";l.d(re,{T:()=>v});var t=l(1308),i=l(4987),r=l(591),L=l(420),M=l(7400);function v(...y){const u=(0,L.yG)(y),_=(0,L._6)(y,1/0),p=y;return p.length?1===p.length?(0,i.Xf)(p[0]):(0,t.J)(_)((0,M.D)(p,u)):r.E}},745:(qe,re,l)=>{"use strict";l.d(re,{of:()=>r});var t=l(420),i=l(7400);function r(...L){const M=(0,t.yG)(L);return(0,i.D)(L,M)}},5474:(qe,re,l)=>{"use strict";l.d(re,{_:()=>r});var t=l(833),i=l(2971);function r(L,M){const v=(0,i.m)(L)?L:()=>L,y=u=>u.error(v());return new t.y(M?u=>M.schedule(y,0,u):y)}},3945:(qe,re,l)=>{"use strict";l.d(re,{Q:()=>r,x:()=>i});var t=l(5463);function i(L,M,v,y,u){return new r(L,M,v,y,u)}class r extends t.Lv{constructor(M,v,y,u,_,p){super(M),this.onFinalize=_,this.shouldUnsubscribe=p,this._next=v?function(C){try{v(C)}catch(g){M.error(g)}}:super._next,this._error=u?function(C){try{u(C)}catch(g){M.error(g)}finally{this.unsubscribe()}}:super._error,this._complete=y?function(){try{y()}catch(C){M.error(C)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var M;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:v}=this;super.unsubscribe(),!v&&(null===(M=this.onFinalize)||void 0===M||M.call(this))}}}},3158:(qe,re,l)=>{"use strict";l.d(re,{K:()=>L});var t=l(4987),i=l(3945),r=l(1944);function L(M){return(0,r.e)((v,y)=>{let p,u=null,_=!1;u=v.subscribe((0,i.x)(y,void 0,void 0,C=>{p=(0,t.Xf)(M(C,L(M)(v))),u?(u.unsubscribe(),u=null,p.subscribe(y)):_=!0})),_&&(u.unsubscribe(),u=null,p.subscribe(y))})}},3853:(qe,re,l)=>{"use strict";l.d(re,{b:()=>r});var t=l(9525),i=l(2971);function r(L,M){return(0,i.m)(M)?(0,t.z)(L,M,1):(0,t.z)(L,1)}},1989:(qe,re,l)=>{"use strict";l.d(re,{b:()=>L});var t=l(6936),i=l(1944),r=l(3945);function L(M,v=t.z){return(0,i.e)((y,u)=>{let _=null,p=null,C=null;const g=()=>{if(_){_.unsubscribe(),_=null;const d=p;p=null,u.next(d)}};function f(){const d=C+M,h=v.now();if(h<d)return _=this.schedule(void 0,d-h),void u.add(_);g()}y.subscribe((0,r.x)(u,d=>{p=d,C=v.now(),_||(_=v.schedule(f,M),u.add(_))},()=>{g(),u.complete()},void 0,()=>{p=_=null}))})}},8977:(qe,re,l)=>{"use strict";l.d(re,{x:()=>L});var t=l(9173),i=l(1944),r=l(3945);function L(v,y=t.y){return v=v??M,(0,i.e)((u,_)=>{let p,C=!0;u.subscribe((0,r.x)(_,g=>{const f=y(g);(C||!v(p,f))&&(C=!1,p=f,_.next(g))}))})}function M(v,y){return v===y}},116:(qe,re,l)=>{"use strict";l.d(re,{h:()=>r});var t=l(1944),i=l(3945);function r(L,M){return(0,t.e)((v,y)=>{let u=0;v.subscribe((0,i.x)(y,_=>L.call(M,_,u++)&&y.next(_)))})}},635:(qe,re,l)=>{"use strict";l.d(re,{U:()=>r});var t=l(1944),i=l(3945);function r(L,M){return(0,t.e)((v,y)=>{let u=0;v.subscribe((0,i.x)(y,_=>{y.next(L.call(M,_,u++))}))})}},1308:(qe,re,l)=>{"use strict";l.d(re,{J:()=>r});var t=l(9525),i=l(9173);function r(L=1/0){return(0,t.z)(i.y,L)}},9525:(qe,re,l)=>{"use strict";l.d(re,{z:()=>u});var t=l(635),i=l(4987),r=l(1944),L=l(1817),M=l(3945),y=l(2971);function u(_,p,C=1/0){return(0,y.m)(p)?u((g,f)=>(0,t.U)((d,h)=>p(g,d,f,h))((0,i.Xf)(_(g,f))),C):("number"==typeof p&&(C=p),(0,r.e)((g,f)=>function v(_,p,C,g,f,d,h,T){const b=[];let P=0,W=0,I=!1;const k=()=>{I&&!b.length&&!P&&p.complete()},D=s=>P<g?N(s):b.push(s),N=s=>{d&&p.next(s),P++;let V=!1;(0,i.Xf)(C(s,W++)).subscribe((0,M.x)(p,Q=>{f?.(Q),d?D(Q):p.next(Q)},()=>{V=!0},void 0,()=>{if(V)try{for(P--;b.length&&P<g;){const Q=b.shift();h?(0,L.f)(p,h,()=>N(Q)):N(Q)}k()}catch(Q){p.error(Q)}}))};return _.subscribe((0,M.x)(p,D,()=>{I=!0,k()})),()=>{T?.()}}(g,f,_,C)))}},8728:(qe,re,l)=>{"use strict";l.d(re,{Q:()=>L});var t=l(1817),i=l(1944),r=l(3945);function L(M,v=0){return(0,i.e)((y,u)=>{y.subscribe((0,r.x)(u,_=>(0,t.f)(u,M,()=>u.next(_),v),()=>(0,t.f)(u,M,()=>u.complete(),v),_=>(0,t.f)(u,M,()=>u.error(_),v)))})}},4351:(qe,re,l)=>{"use strict";l.d(re,{R:()=>L});var t=l(1944),i=l(3945);function L(M,v){return(0,t.e)(function r(M,v,y,u,_){return(p,C)=>{let g=y,f=v,d=0;p.subscribe((0,i.x)(C,h=>{const T=d++;f=g?M(f,h,T):(g=!0,h),u&&C.next(f)},_&&(()=>{g&&C.next(f),C.complete()})))}}(M,v,arguments.length>=2,!0))}},1203:(qe,re,l)=>{"use strict";l.d(re,{B:()=>M});var t=l(4987),i=l(253),r=l(5463),L=l(1944);function M(y={}){const{connector:u=(()=>new i.x),resetOnError:_=!0,resetOnComplete:p=!0,resetOnRefCountZero:C=!0}=y;return g=>{let f,d,h,T=0,b=!1,P=!1;const W=()=>{d?.unsubscribe(),d=void 0},I=()=>{W(),f=h=void 0,b=P=!1},k=()=>{const D=f;I(),D?.unsubscribe()};return(0,L.e)((D,N)=>{T++,!P&&!b&&W();const s=h=h??u();N.add(()=>{T--,0===T&&!P&&!b&&(d=v(k,C))}),s.subscribe(N),!f&&T>0&&(f=new r.Hp({next:V=>s.next(V),error:V=>{P=!0,W(),d=v(I,_,V),s.error(V)},complete:()=>{b=!0,W(),d=v(I,p),s.complete()}}),(0,t.Xf)(D).subscribe(f))})(g)}}function v(y,u,..._){if(!0===u)return void y();if(!1===u)return;const p=new r.Hp({next:()=>{p.unsubscribe(),y()}});return(0,t.Xf)(u(..._)).subscribe(p)}},7260:(qe,re,l)=>{"use strict";l.d(re,{T:()=>i});var t=l(116);function i(r){return(0,t.h)((L,M)=>r<=M)}},2673:(qe,re,l)=>{"use strict";l.d(re,{w:()=>L});var t=l(4987),i=l(1944),r=l(3945);function L(M,v){return(0,i.e)((y,u)=>{let _=null,p=0,C=!1;const g=()=>C&&!_&&u.complete();y.subscribe((0,r.x)(u,f=>{_?.unsubscribe();let d=0;const h=p++;(0,t.Xf)(M(f,h)).subscribe(_=(0,r.x)(u,T=>u.next(v?v(f,T,h,d++):T),()=>{_=null,g()}))},()=>{C=!0,g()}))})}},9295:(qe,re,l)=>{"use strict";l.d(re,{q:()=>L});var t=l(591),i=l(1944),r=l(3945);function L(M){return M<=0?()=>t.E:(0,i.e)((v,y)=>{let u=0;v.subscribe((0,r.x)(y,_=>{++u<=M&&(y.next(_),M<=u&&y.complete())}))})}},8951:(qe,re,l)=>{"use strict";l.d(re,{R:()=>M});var t=l(1944),i=l(3945),r=l(4987),L=l(9635);function M(v){return(0,t.e)((y,u)=>{(0,r.Xf)(v).subscribe((0,i.x)(u,()=>u.complete(),L.Z)),!u.closed&&y.subscribe(u)})}},9337:(qe,re,l)=>{"use strict";l.d(re,{b:()=>M});var t=l(2971),i=l(1944),r=l(3945),L=l(9173);function M(v,y,u){const _=(0,t.m)(v)||y||u?{next:v,error:y,complete:u}:v;return _?(0,i.e)((p,C)=>{var g;null===(g=_.subscribe)||void 0===g||g.call(_);let f=!0;p.subscribe((0,r.x)(C,d=>{var h;null===(h=_.next)||void 0===h||h.call(_,d),C.next(d)},()=>{var d;f=!1,null===(d=_.complete)||void 0===d||d.call(_),C.complete()},d=>{var h;f=!1,null===(h=_.error)||void 0===h||h.call(_,d),C.error(d)},()=>{var d,h;f&&(null===(d=_.unsubscribe)||void 0===d||d.call(_)),null===(h=_.finalize)||void 0===h||h.call(_)}))}):L.y}},7580:(qe,re,l)=>{"use strict";l.d(re,{V:()=>_});var t=l(6936),i=l(7885),r=l(1944),L=l(4987),M=l(7543),v=l(3945),y=l(1817);const u=(0,M.d)(C=>function(f=null){C(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=f});function _(C,g){const{first:f,each:d,with:h=p,scheduler:T=g??t.z,meta:b=null}=(0,i.q)(C)?{first:C}:"number"==typeof C?{each:C}:C;if(null==f&&null==d)throw new TypeError("No timeout provided.");return(0,r.e)((P,W)=>{let I,k,D=null,N=0;const s=V=>{k=(0,y.f)(W,T,()=>{try{I.unsubscribe(),(0,L.Xf)(h({meta:b,lastValue:D,seen:N})).subscribe(W)}catch(Q){W.error(Q)}},V)};I=P.subscribe((0,v.x)(W,V=>{k?.unsubscribe(),N++,W.next(D=V),d>0&&s(d)},void 0,void 0,()=>{k?.closed||k?.unsubscribe(),D=null})),!N&&s(null!=f?"number"==typeof f?f:+f-T.now():d)})}function p(C){throw new u(C)}},538:(qe,re,l)=>{"use strict";l.d(re,{M:()=>y});var t=l(1944),i=l(3945),r=l(4987),L=l(9173),M=l(9635),v=l(420);function y(...u){const _=(0,v.jO)(u);return(0,t.e)((p,C)=>{const g=u.length,f=new Array(g);let d=u.map(()=>!1),h=!1;for(let T=0;T<g;T++)(0,r.Xf)(u[T]).subscribe((0,i.x)(C,b=>{f[T]=b,!h&&!d[T]&&(d[T]=!0,(h=d.every(L.y))&&(d=null))},M.Z));p.subscribe((0,i.x)(C,T=>{if(h){const b=[T,...f];C.next(_?_(...b):b)}}))})}},5417:(qe,re,l)=>{"use strict";l.d(re,{o:()=>M});var t=l(7714);class i extends t.w0{constructor(y,u){super()}schedule(y,u=0){return this}}const r={setInterval(v,y,...u){const{delegate:_}=r;return _?.setInterval?_.setInterval(v,y,...u):setInterval(v,y,...u)},clearInterval(v){const{delegate:y}=r;return(y?.clearInterval||clearInterval)(v)},delegate:void 0};var L=l(9663);class M extends i{constructor(y,u){super(y,u),this.scheduler=y,this.work=u,this.pending=!1}schedule(y,u=0){var _;if(this.closed)return this;this.state=y;const p=this.id,C=this.scheduler;return null!=p&&(this.id=this.recycleAsyncId(C,p,u)),this.pending=!0,this.delay=u,this.id=null!==(_=this.id)&&void 0!==_?_:this.requestAsyncId(C,this.id,u),this}requestAsyncId(y,u,_=0){return r.setInterval(y.flush.bind(y,this),_)}recycleAsyncId(y,u,_=0){if(null!=_&&this.delay===_&&!1===this.pending)return u;null!=u&&r.clearInterval(u)}execute(y,u){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const _=this._execute(y,u);if(_)return _;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(y,u){let p,_=!1;try{this.work(y)}catch(C){_=!0,p=C||new Error("Scheduled action threw falsy error")}if(_)return this.unsubscribe(),p}unsubscribe(){if(!this.closed){const{id:y,scheduler:u}=this,{actions:_}=u;this.work=this.state=this.scheduler=null,this.pending=!1,(0,L.P)(_,this),null!=y&&(this.id=this.recycleAsyncId(u,y,null)),this.delay=null,super.unsubscribe()}}}},1010:(qe,re,l)=>{"use strict";l.d(re,{v:()=>r});var t=l(7654);class i{constructor(M,v=i.now){this.schedulerActionCtor=M,this.now=v}schedule(M,v=0,y){return new this.schedulerActionCtor(this,M).schedule(y,v)}}i.now=t.l.now;class r extends i{constructor(M,v=i.now){super(M,v),this.actions=[],this._active=!1}flush(M){const{actions:v}=this;if(this._active)return void v.push(M);let y;this._active=!0;do{if(y=M.execute(M.state,M.delay))break}while(M=v.shift());if(this._active=!1,y){for(;M=v.shift();)M.unsubscribe();throw y}}}},6936:(qe,re,l)=>{"use strict";l.d(re,{P:()=>L,z:()=>r});var t=l(5417);const r=new(l(1010).v)(t.o),L=r},7654:(qe,re,l)=>{"use strict";l.d(re,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},4915:(qe,re,l)=>{"use strict";l.d(re,{N:()=>M});var t=l(5417),r=l(1010);const M=new class L extends r.v{}(class i extends t.o{constructor(u,_){super(u,_),this.scheduler=u,this.work=_}schedule(u,_=0){return _>0?super.schedule(u,_):(this.delay=_,this.state=u,this.scheduler.flush(this),this)}execute(u,_){return _>0||this.closed?super.execute(u,_):this._execute(u,_)}requestAsyncId(u,_,p=0){return null!=p&&p>0||null==p&&this.delay>0?super.requestAsyncId(u,_,p):(u.flush(this),0)}})},3542:(qe,re,l)=>{"use strict";l.d(re,{z:()=>t});const t={setTimeout(i,r,...L){const{delegate:M}=t;return M?.setTimeout?M.setTimeout(i,r,...L):setTimeout(i,r,...L)},clearTimeout(i){const{delegate:r}=t;return(r?.clearTimeout||clearTimeout)(i)},delegate:void 0}},7321:(qe,re,l)=>{"use strict";l.d(re,{h:()=>i});const i=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4585:(qe,re,l)=>{"use strict";l.d(re,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},4423:(qe,re,l)=>{"use strict";l.d(re,{K:()=>i});const i=(0,l(7543).d)(r=>function(){r(this),this.name="EmptyError",this.message="no elements in sequence"})},420:(qe,re,l)=>{"use strict";l.d(re,{_6:()=>v,jO:()=>L,yG:()=>M});var t=l(2971),i=l(9867);function r(y){return y[y.length-1]}function L(y){return(0,t.m)(r(y))?y.pop():void 0}function M(y){return(0,i.K)(r(y))?y.pop():void 0}function v(y,u){return"number"==typeof r(y)?y.pop():u}},5756:(qe,re,l)=>{"use strict";l.d(re,{D:()=>M});const{isArray:t}=Array,{getPrototypeOf:i,prototype:r,keys:L}=Object;function M(y){if(1===y.length){const u=y[0];if(t(u))return{args:u,keys:null};if(function v(y){return y&&"object"==typeof y&&i(y)===r}(u)){const _=L(u);return{args:_.map(p=>u[p]),keys:_}}}return{args:y,keys:null}}},9663:(qe,re,l)=>{"use strict";function t(i,r){if(i){const L=i.indexOf(r);0<=L&&i.splice(L,1)}}l.d(re,{P:()=>t})},7543:(qe,re,l)=>{"use strict";function t(i){const L=i(M=>{Error.call(M),M.stack=(new Error).stack});return L.prototype=Object.create(Error.prototype),L.prototype.constructor=L,L}l.d(re,{d:()=>t})},1054:(qe,re,l)=>{"use strict";function t(i,r){return i.reduce((L,M,v)=>(L[M]=r[v],L),{})}l.d(re,{n:()=>t})},2309:(qe,re,l)=>{"use strict";l.d(re,{O:()=>L,x:()=>r});var t=l(9057);let i=null;function r(M){if(t.v.useDeprecatedSynchronousErrorHandling){const v=!i;if(v&&(i={errorThrown:!1,error:null}),M(),v){const{errorThrown:y,error:u}=i;if(i=null,y)throw u}}else M()}function L(M){t.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=M)}},1817:(qe,re,l)=>{"use strict";function t(i,r,L,M=0,v=!1){const y=r.schedule(function(){L(),v?i.add(this.schedule(null,M)):this.unsubscribe()},M);if(i.add(y),!v)return y}l.d(re,{f:()=>t})},9173:(qe,re,l)=>{"use strict";function t(i){return i}l.d(re,{y:()=>t})},9806:(qe,re,l)=>{"use strict";l.d(re,{z:()=>t});const t=i=>i&&"number"==typeof i.length&&"function"!=typeof i},470:(qe,re,l)=>{"use strict";l.d(re,{D:()=>i});var t=l(2971);function i(r){return Symbol.asyncIterator&&(0,t.m)(r?.[Symbol.asyncIterator])}},7885:(qe,re,l)=>{"use strict";function t(i){return i instanceof Date&&!isNaN(i)}l.d(re,{q:()=>t})},2971:(qe,re,l)=>{"use strict";function t(i){return"function"==typeof i}l.d(re,{m:()=>t})},1331:(qe,re,l)=>{"use strict";l.d(re,{c:()=>r});var t=l(4585),i=l(2971);function r(L){return(0,i.m)(L[t.L])}},3433:(qe,re,l)=>{"use strict";l.d(re,{T:()=>r});var t=l(7321),i=l(2971);function r(L){return(0,i.m)(L?.[t.h])}},9548:(qe,re,l)=>{"use strict";l.d(re,{t:()=>i});var t=l(2971);function i(r){return(0,t.m)(r?.then)}},181:(qe,re,l)=>{"use strict";l.d(re,{L:()=>L,Q:()=>r});var t=l(2321),i=l(2971);function r(M){return(0,t.FC)(this,arguments,function*(){const y=M.getReader();try{for(;;){const{value:u,done:_}=yield(0,t.qq)(y.read());if(_)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(u)}}finally{y.releaseLock()}})}function L(M){return(0,i.m)(M?.getReader)}},9867:(qe,re,l)=>{"use strict";l.d(re,{K:()=>i});var t=l(2971);function i(r){return r&&(0,t.m)(r.schedule)}},1944:(qe,re,l)=>{"use strict";l.d(re,{A:()=>i,e:()=>r});var t=l(2971);function i(L){return(0,t.m)(L?.lift)}function r(L){return M=>{if(i(M))return M.lift(function(v){try{return L(v,this)}catch(y){this.error(y)}});throw new TypeError("Unable to lift unknown Observable type")}}},8385:(qe,re,l)=>{"use strict";l.d(re,{Z:()=>L});var t=l(635);const{isArray:i}=Array;function L(M){return(0,t.U)(v=>function r(M,v){return i(v)?M(...v):M(v)}(M,v))}},9635:(qe,re,l)=>{"use strict";function t(){}l.d(re,{Z:()=>t})},629:(qe,re,l)=>{"use strict";l.d(re,{U:()=>r,z:()=>i});var t=l(9173);function i(...L){return r(L)}function r(L){return 0===L.length?t.y:1===L.length?L[0]:function(v){return L.reduce((y,u)=>u(y),v)}}},4709:(qe,re,l)=>{"use strict";l.d(re,{h:()=>r});var t=l(9057),i=l(3542);function r(L){i.z.setTimeout(()=>{const{onUnhandledError:M}=t.v;if(!M)throw L;M(L)})}},7785:(qe,re,l)=>{"use strict";function t(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(re,{z:()=>t})},4851:(qe,re,l)=>{"use strict";l.d(re,{IO:()=>h,LC:()=>i,SB:()=>_,X$:()=>L,ZE:()=>W,ZN:()=>P,_7:()=>d,_j:()=>t,eR:()=>C,jt:()=>M,k1:()=>I,l3:()=>r,oB:()=>u,oQ:()=>g,pV:()=>f,vP:()=>y});class t{}class i{}const r="*";function L(k,D){return{type:7,name:k,definitions:D,options:{}}}function M(k,D=null){return{type:4,styles:D,timings:k}}function y(k,D=null){return{type:2,steps:k,options:D}}function u(k){return{type:6,styles:k,offset:null}}function _(k,D,N){return{type:0,name:k,styles:D,options:N}}function C(k,D,N=null){return{type:1,expr:k,animation:D,options:N}}function g(k,D=null){return{type:8,animation:k,options:D}}function f(k=null){return{type:9,options:k}}function d(k,D=null){return{type:10,animation:k,options:D}}function h(k,D,N=null){return{type:11,selector:k,animation:D,options:N}}function b(k){Promise.resolve().then(k)}class P{constructor(D=0,N=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=D+N}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(D=>D()),this._onDoneFns=[])}onStart(D){this._originalOnStartFns.push(D),this._onStartFns.push(D)}onDone(D){this._originalOnDoneFns.push(D),this._onDoneFns.push(D)}onDestroy(D){this._onDestroyFns.push(D)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){b(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(D=>D()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(D=>D()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(D){this._position=this.totalTime?D*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(D){const N="start"==D?this._onStartFns:this._onDoneFns;N.forEach(s=>s()),N.length=0}}class W{constructor(D){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=D;let N=0,s=0,V=0;const Q=this.players.length;0==Q?b(()=>this._onFinish()):this.players.forEach(me=>{me.onDone(()=>{++N==Q&&this._onFinish()}),me.onDestroy(()=>{++s==Q&&this._onDestroy()}),me.onStart(()=>{++V==Q&&this._onStart()})}),this.totalTime=this.players.reduce((me,ue)=>Math.max(me,ue.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(D=>D()),this._onDoneFns=[])}init(){this.players.forEach(D=>D.init())}onStart(D){this._onStartFns.push(D)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(D=>D()),this._onStartFns=[])}onDone(D){this._onDoneFns.push(D)}onDestroy(D){this._onDestroyFns.push(D)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(D=>D.play())}pause(){this.players.forEach(D=>D.pause())}restart(){this.players.forEach(D=>D.restart())}finish(){this._onFinish(),this.players.forEach(D=>D.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(D=>D.destroy()),this._onDestroyFns.forEach(D=>D()),this._onDestroyFns=[])}reset(){this.players.forEach(D=>D.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(D){const N=D*this.totalTime;this.players.forEach(s=>{const V=s.totalTime?Math.min(1,N/s.totalTime):1;s.setPosition(V)})}getPosition(){const D=this.players.reduce((N,s)=>null===N||s.totalTime>N.totalTime?s:N,null);return null!=D?D.getPosition():0}beforeDestroy(){this.players.forEach(D=>{D.beforeDestroy&&D.beforeDestroy()})}triggerCallback(D){const N="start"==D?this._onStartFns:this._onDoneFns;N.forEach(s=>s()),N.length=0}}const I="!"},4666:(qe,re,l)=>{"use strict";l.d(re,{Do:()=>W,EM:()=>Ki,HT:()=>L,JF:()=>ie,K0:()=>v,Mx:()=>Fi,NF:()=>ti,Nd:()=>ce,O5:()=>Mo,PC:()=>_t,S$:()=>T,V_:()=>_,Ye:()=>I,b0:()=>P,bD:()=>hn,ez:()=>jt,mk:()=>$n,q:()=>r,sg:()=>zi,tP:()=>Nt,uU:()=>io,w_:()=>M});var t=l(2560);let i=null;function r(){return i}function L(Z){i||(i=Z)}class M{}const v=new t.OlP("DocumentToken");let y=(()=>{class Z{historyGo(te){throw new Error("Not implemented")}}return Z.\u0275fac=function(te){return new(te||Z)},Z.\u0275prov=t.Yz7({token:Z,factory:function(){return function u(){return(0,t.LFG)(p)}()},providedIn:"platform"}),Z})();const _=new t.OlP("Location Initialized");let p=(()=>{class Z extends y{constructor(te){super(),this._doc=te,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(te){const xe=r().getGlobalEventTarget(this._doc,"window");return xe.addEventListener("popstate",te,!1),()=>xe.removeEventListener("popstate",te)}onHashChange(te){const xe=r().getGlobalEventTarget(this._doc,"window");return xe.addEventListener("hashchange",te,!1),()=>xe.removeEventListener("hashchange",te)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(te){this._location.pathname=te}pushState(te,xe,it){C()?this._history.pushState(te,xe,it):this._location.hash=it}replaceState(te,xe,it){C()?this._history.replaceState(te,xe,it):this._location.hash=it}forward(){this._history.forward()}back(){this._history.back()}historyGo(te=0){this._history.go(te)}getState(){return this._history.state}}return Z.\u0275fac=function(te){return new(te||Z)(t.LFG(v))},Z.\u0275prov=t.Yz7({token:Z,factory:function(){return function g(){return new p((0,t.LFG)(v))}()},providedIn:"platform"}),Z})();function C(){return!!window.history.pushState}function f(Z,ge){if(0==Z.length)return ge;if(0==ge.length)return Z;let te=0;return Z.endsWith("/")&&te++,ge.startsWith("/")&&te++,2==te?Z+ge.substring(1):1==te?Z+ge:Z+"/"+ge}function d(Z){const ge=Z.match(/#|\?|$/),te=ge&&ge.index||Z.length;return Z.slice(0,te-("/"===Z[te-1]?1:0))+Z.slice(te)}function h(Z){return Z&&"?"!==Z[0]?"?"+Z:Z}let T=(()=>{class Z{historyGo(te){throw new Error("Not implemented")}}return Z.\u0275fac=function(te){return new(te||Z)},Z.\u0275prov=t.Yz7({token:Z,factory:function(){return(0,t.f3M)(P)},providedIn:"root"}),Z})();const b=new t.OlP("appBaseHref");let P=(()=>{class Z extends T{constructor(te,xe){super(),this._platformLocation=te,this._removeListenerFns=[],this._baseHref=xe??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(v).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}prepareExternalUrl(te){return f(this._baseHref,te)}path(te=!1){const xe=this._platformLocation.pathname+h(this._platformLocation.search),it=this._platformLocation.hash;return it&&te?`${xe}${it}`:xe}pushState(te,xe,it,Lt){const Yt=this.prepareExternalUrl(it+h(Lt));this._platformLocation.pushState(te,xe,Yt)}replaceState(te,xe,it,Lt){const Yt=this.prepareExternalUrl(it+h(Lt));this._platformLocation.replaceState(te,xe,Yt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}}return Z.\u0275fac=function(te){return new(te||Z)(t.LFG(y),t.LFG(b,8))},Z.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),W=(()=>{class Z extends T{constructor(te,xe){super(),this._platformLocation=te,this._baseHref="",this._removeListenerFns=[],null!=xe&&(this._baseHref=xe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}path(te=!1){let xe=this._platformLocation.hash;return null==xe&&(xe="#"),xe.length>0?xe.substring(1):xe}prepareExternalUrl(te){const xe=f(this._baseHref,te);return xe.length>0?"#"+xe:xe}pushState(te,xe,it,Lt){let Yt=this.prepareExternalUrl(it+h(Lt));0==Yt.length&&(Yt=this._platformLocation.pathname),this._platformLocation.pushState(te,xe,Yt)}replaceState(te,xe,it,Lt){let Yt=this.prepareExternalUrl(it+h(Lt));0==Yt.length&&(Yt=this._platformLocation.pathname),this._platformLocation.replaceState(te,xe,Yt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}}return Z.\u0275fac=function(te){return new(te||Z)(t.LFG(y),t.LFG(b,8))},Z.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac}),Z})(),I=(()=>{class Z{constructor(te){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=te;const xe=this._locationStrategy.getBaseHref();this._basePath=function s(Z){if(new RegExp("^(https?:)?//").test(Z)){const[,te]=Z.split(/\/\/[^\/]+/);return te}return Z}(d(N(xe))),this._locationStrategy.onPopState(it=>{this._subject.emit({url:this.path(!0),pop:!0,state:it.state,type:it.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(te=!1){return this.normalize(this._locationStrategy.path(te))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(te,xe=""){return this.path()==this.normalize(te+h(xe))}normalize(te){return Z.stripTrailingSlash(function D(Z,ge){if(!Z||!ge.startsWith(Z))return ge;const te=ge.substring(Z.length);return""===te||["/",";","?","#"].includes(te[0])?te:ge}(this._basePath,N(te)))}prepareExternalUrl(te){return te&&"/"!==te[0]&&(te="/"+te),this._locationStrategy.prepareExternalUrl(te)}go(te,xe="",it=null){this._locationStrategy.pushState(it,"",te,xe),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+h(xe)),it)}replaceState(te,xe="",it=null){this._locationStrategy.replaceState(it,"",te,xe),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+h(xe)),it)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(te=0){this._locationStrategy.historyGo?.(te)}onUrlChange(te){return this._urlChangeListeners.push(te),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(xe=>{this._notifyUrlChangeListeners(xe.url,xe.state)})),()=>{const xe=this._urlChangeListeners.indexOf(te);this._urlChangeListeners.splice(xe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(te="",xe){this._urlChangeListeners.forEach(it=>it(te,xe))}subscribe(te,xe,it){return this._subject.subscribe({next:te,error:xe,complete:it})}}return Z.normalizeQueryParams=h,Z.joinWithSlash=f,Z.stripTrailingSlash=d,Z.\u0275fac=function(te){return new(te||Z)(t.LFG(T))},Z.\u0275prov=t.Yz7({token:Z,factory:function(){return function k(){return new I((0,t.LFG)(T))}()},providedIn:"root"}),Z})();function N(Z){return Z.replace(/\/index.html$/,"")}var ue=(()=>((ue=ue||{})[ue.Format=0]="Format",ue[ue.Standalone=1]="Standalone",ue))(),De=(()=>((De=De||{})[De.Narrow=0]="Narrow",De[De.Abbreviated=1]="Abbreviated",De[De.Wide=2]="Wide",De[De.Short=3]="Short",De))(),Ue=(()=>((Ue=Ue||{})[Ue.Short=0]="Short",Ue[Ue.Medium=1]="Medium",Ue[Ue.Long=2]="Long",Ue[Ue.Full=3]="Full",Ue))(),Xe=(()=>((Xe=Xe||{})[Xe.Decimal=0]="Decimal",Xe[Xe.Group=1]="Group",Xe[Xe.List=2]="List",Xe[Xe.PercentSign=3]="PercentSign",Xe[Xe.PlusSign=4]="PlusSign",Xe[Xe.MinusSign=5]="MinusSign",Xe[Xe.Exponential=6]="Exponential",Xe[Xe.SuperscriptingExponent=7]="SuperscriptingExponent",Xe[Xe.PerMille=8]="PerMille",Xe[Xe.Infinity=9]="Infinity",Xe[Xe.NaN=10]="NaN",Xe[Xe.TimeSeparator=11]="TimeSeparator",Xe[Xe.CurrencyDecimal=12]="CurrencyDecimal",Xe[Xe.CurrencyGroup=13]="CurrencyGroup",Xe))();function ye(Z,ge){return Ft((0,t.cg1)(Z)[t.wAp.DateFormat],ge)}function we(Z,ge){return Ft((0,t.cg1)(Z)[t.wAp.TimeFormat],ge)}function Fe(Z,ge){return Ft((0,t.cg1)(Z)[t.wAp.DateTimeFormat],ge)}function lt(Z,ge){const te=(0,t.cg1)(Z),xe=te[t.wAp.NumberSymbols][ge];if(typeof xe>"u"){if(ge===Xe.CurrencyDecimal)return te[t.wAp.NumberSymbols][Xe.Decimal];if(ge===Xe.CurrencyGroup)return te[t.wAp.NumberSymbols][Xe.Group]}return xe}function ct(Z){if(!Z[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Z[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(Z,ge){for(let te=ge;te>-1;te--)if(typeof Z[te]<"u")return Z[te];throw new Error("Locale data API: locale data undefined")}function yt(Z){const[ge,te]=Z.split(":");return{hours:+ge,minutes:+te}}const en=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,mn={},En=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ln=(()=>((Ln=Ln||{})[Ln.Short=0]="Short",Ln[Ln.ShortGMT=1]="ShortGMT",Ln[Ln.Long=2]="Long",Ln[Ln.Extended=3]="Extended",Ln))(),dt=(()=>((dt=dt||{})[dt.FullYear=0]="FullYear",dt[dt.Month=1]="Month",dt[dt.Date=2]="Date",dt[dt.Hours=3]="Hours",dt[dt.Minutes=4]="Minutes",dt[dt.Seconds=5]="Seconds",dt[dt.FractionalSeconds=6]="FractionalSeconds",dt[dt.Day=7]="Day",dt))(),Ot=(()=>((Ot=Ot||{})[Ot.DayPeriods=0]="DayPeriods",Ot[Ot.Days=1]="Days",Ot[Ot.Months=2]="Months",Ot[Ot.Eras=3]="Eras",Ot))();function $(Z,ge,te,xe){let it=function Fn(Z){if(Je(Z))return Z;if("number"==typeof Z&&!isNaN(Z))return new Date(Z);if("string"==typeof Z){if(Z=Z.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Z)){const[it,Lt=1,Yt=1]=Z.split("-").map(Gn=>+Gn);return pe(it,Lt-1,Yt)}const te=parseFloat(Z);if(!isNaN(Z-te))return new Date(te);let xe;if(xe=Z.match(en))return function ut(Z){const ge=new Date(0);let te=0,xe=0;const it=Z[8]?ge.setUTCFullYear:ge.setFullYear,Lt=Z[8]?ge.setUTCHours:ge.setHours;Z[9]&&(te=Number(Z[9]+Z[10]),xe=Number(Z[9]+Z[11])),it.call(ge,Number(Z[1]),Number(Z[2])-1,Number(Z[3]));const Yt=Number(Z[4]||0)-te,Gn=Number(Z[5]||0)-xe,Gi=Number(Z[6]||0),Zi=Math.floor(1e3*parseFloat("0."+(Z[7]||0)));return Lt.call(ge,Yt,Gn,Gi,Zi),ge}(xe)}const ge=new Date(Z);if(!Je(ge))throw new Error(`Unable to convert "${Z}" into a date`);return ge}(Z);ge=Ee(te,ge)||ge;let Gn,Yt=[];for(;ge;){if(Gn=En.exec(ge),!Gn){Yt.push(ge);break}{Yt=Yt.concat(Gn.slice(1));const Li=Yt.pop();if(!Li)break;ge=Li}}let Gi=it.getTimezoneOffset();xe&&(Gi=Mn(xe,Gi),it=function Rn(Z,ge,te){const xe=te?-1:1,it=Z.getTimezoneOffset();return function kn(Z,ge){return(Z=new Date(Z.getTime())).setMinutes(Z.getMinutes()+ge),Z}(Z,xe*(Mn(ge,it)-it))}(it,xe,!0));let Zi="";return Yt.forEach(Li=>{const Ci=function gn(Z){if(Ut[Z])return Ut[Z];let ge;switch(Z){case"G":case"GG":case"GGG":ge=vn(Ot.Eras,De.Abbreviated);break;case"GGGG":ge=vn(Ot.Eras,De.Wide);break;case"GGGGG":ge=vn(Ot.Eras,De.Narrow);break;case"y":ge=on(dt.FullYear,1,0,!1,!0);break;case"yy":ge=on(dt.FullYear,2,0,!0,!0);break;case"yyy":ge=on(dt.FullYear,3,0,!1,!0);break;case"yyyy":ge=on(dt.FullYear,4,0,!1,!0);break;case"Y":ge=Gt(1);break;case"YY":ge=Gt(2,!0);break;case"YYY":ge=Gt(3);break;case"YYYY":ge=Gt(4);break;case"M":case"L":ge=on(dt.Month,1,1);break;case"MM":case"LL":ge=on(dt.Month,2,1);break;case"MMM":ge=vn(Ot.Months,De.Abbreviated);break;case"MMMM":ge=vn(Ot.Months,De.Wide);break;case"MMMMM":ge=vn(Ot.Months,De.Narrow);break;case"LLL":ge=vn(Ot.Months,De.Abbreviated,ue.Standalone);break;case"LLLL":ge=vn(Ot.Months,De.Wide,ue.Standalone);break;case"LLLLL":ge=vn(Ot.Months,De.Narrow,ue.Standalone);break;case"w":ge=at(1);break;case"ww":ge=at(2);break;case"W":ge=at(1,!0);break;case"d":ge=on(dt.Date,1);break;case"dd":ge=on(dt.Date,2);break;case"c":case"cc":ge=on(dt.Day,1);break;case"ccc":ge=vn(Ot.Days,De.Abbreviated,ue.Standalone);break;case"cccc":ge=vn(Ot.Days,De.Wide,ue.Standalone);break;case"ccccc":ge=vn(Ot.Days,De.Narrow,ue.Standalone);break;case"cccccc":ge=vn(Ot.Days,De.Short,ue.Standalone);break;case"E":case"EE":case"EEE":ge=vn(Ot.Days,De.Abbreviated);break;case"EEEE":ge=vn(Ot.Days,De.Wide);break;case"EEEEE":ge=vn(Ot.Days,De.Narrow);break;case"EEEEEE":ge=vn(Ot.Days,De.Short);break;case"a":case"aa":case"aaa":ge=vn(Ot.DayPeriods,De.Abbreviated);break;case"aaaa":ge=vn(Ot.DayPeriods,De.Wide);break;case"aaaaa":ge=vn(Ot.DayPeriods,De.Narrow);break;case"b":case"bb":case"bbb":ge=vn(Ot.DayPeriods,De.Abbreviated,ue.Standalone,!0);break;case"bbbb":ge=vn(Ot.DayPeriods,De.Wide,ue.Standalone,!0);break;case"bbbbb":ge=vn(Ot.DayPeriods,De.Narrow,ue.Standalone,!0);break;case"B":case"BB":case"BBB":ge=vn(Ot.DayPeriods,De.Abbreviated,ue.Format,!0);break;case"BBBB":ge=vn(Ot.DayPeriods,De.Wide,ue.Format,!0);break;case"BBBBB":ge=vn(Ot.DayPeriods,De.Narrow,ue.Format,!0);break;case"h":ge=on(dt.Hours,1,-12);break;case"hh":ge=on(dt.Hours,2,-12);break;case"H":ge=on(dt.Hours,1);break;case"HH":ge=on(dt.Hours,2);break;case"m":ge=on(dt.Minutes,1);break;case"mm":ge=on(dt.Minutes,2);break;case"s":ge=on(dt.Seconds,1);break;case"ss":ge=on(dt.Seconds,2);break;case"S":ge=on(dt.FractionalSeconds,1);break;case"SS":ge=on(dt.FractionalSeconds,2);break;case"SSS":ge=on(dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ge=Ht(Ln.Short);break;case"ZZZZZ":ge=Ht(Ln.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ge=Ht(Ln.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ge=Ht(Ln.Long);break;default:return null}return Ut[Z]=ge,ge}(Li);Zi+=Ci?Ci(it,te,Gi):"''"===Li?"'":Li.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Zi}function pe(Z,ge,te){const xe=new Date(0);return xe.setFullYear(Z,ge,te),xe.setHours(0,0,0),xe}function Ee(Z,ge){const te=function ze(Z){return(0,t.cg1)(Z)[t.wAp.LocaleId]}(Z);if(mn[te]=mn[te]||{},mn[te][ge])return mn[te][ge];let xe="";switch(ge){case"shortDate":xe=ye(Z,Ue.Short);break;case"mediumDate":xe=ye(Z,Ue.Medium);break;case"longDate":xe=ye(Z,Ue.Long);break;case"fullDate":xe=ye(Z,Ue.Full);break;case"shortTime":xe=we(Z,Ue.Short);break;case"mediumTime":xe=we(Z,Ue.Medium);break;case"longTime":xe=we(Z,Ue.Long);break;case"fullTime":xe=we(Z,Ue.Full);break;case"short":const it=Ee(Z,"shortTime"),Lt=Ee(Z,"shortDate");xe=Ge(Fe(Z,Ue.Short),[it,Lt]);break;case"medium":const Yt=Ee(Z,"mediumTime"),Gn=Ee(Z,"mediumDate");xe=Ge(Fe(Z,Ue.Medium),[Yt,Gn]);break;case"long":const Gi=Ee(Z,"longTime"),Zi=Ee(Z,"longDate");xe=Ge(Fe(Z,Ue.Long),[Gi,Zi]);break;case"full":const Li=Ee(Z,"fullTime"),Ci=Ee(Z,"fullDate");xe=Ge(Fe(Z,Ue.Full),[Li,Ci])}return xe&&(mn[te][ge]=xe),xe}function Ge(Z,ge){return ge&&(Z=Z.replace(/\{([^}]+)}/g,function(te,xe){return null!=ge&&xe in ge?ge[xe]:te})),Z}function Zt(Z,ge,te="-",xe,it){let Lt="";(Z<0||it&&Z<=0)&&(it?Z=1-Z:(Z=-Z,Lt=te));let Yt=String(Z);for(;Yt.length<ge;)Yt="0"+Yt;return xe&&(Yt=Yt.slice(Yt.length-ge)),Lt+Yt}function on(Z,ge,te=0,xe=!1,it=!1){return function(Lt,Yt){let Gn=function Un(Z,ge){switch(Z){case dt.FullYear:return ge.getFullYear();case dt.Month:return ge.getMonth();case dt.Date:return ge.getDate();case dt.Hours:return ge.getHours();case dt.Minutes:return ge.getMinutes();case dt.Seconds:return ge.getSeconds();case dt.FractionalSeconds:return ge.getMilliseconds();case dt.Day:return ge.getDay();default:throw new Error(`Unknown DateType value "${Z}".`)}}(Z,Lt);if((te>0||Gn>-te)&&(Gn+=te),Z===dt.Hours)0===Gn&&-12===te&&(Gn=12);else if(Z===dt.FractionalSeconds)return function tn(Z,ge){return Zt(Z,3).substring(0,ge)}(Gn,ge);const Gi=lt(Yt,Xe.MinusSign);return Zt(Gn,ge,Gi,xe,it)}}function vn(Z,ge,te=ue.Format,xe=!1){return function(it,Lt){return function zt(Z,ge,te,xe,it,Lt){switch(te){case Ot.Months:return function de(Z,ge,te){const xe=(0,t.cg1)(Z),Lt=Ft([xe[t.wAp.MonthsFormat],xe[t.wAp.MonthsStandalone]],ge);return Ft(Lt,te)}(ge,it,xe)[Z.getMonth()];case Ot.Days:return function Re(Z,ge,te){const xe=(0,t.cg1)(Z),Lt=Ft([xe[t.wAp.DaysFormat],xe[t.wAp.DaysStandalone]],ge);return Ft(Lt,te)}(ge,it,xe)[Z.getDay()];case Ot.DayPeriods:const Yt=Z.getHours(),Gn=Z.getMinutes();if(Lt){const Zi=function Ve(Z){const ge=(0,t.cg1)(Z);return ct(ge),(ge[t.wAp.ExtraData][2]||[]).map(xe=>"string"==typeof xe?yt(xe):[yt(xe[0]),yt(xe[1])])}(ge),Li=function rt(Z,ge,te){const xe=(0,t.cg1)(Z);ct(xe);const Lt=Ft([xe[t.wAp.ExtraData][0],xe[t.wAp.ExtraData][1]],ge)||[];return Ft(Lt,te)||[]}(ge,it,xe),Ci=Zi.findIndex(uo=>{if(Array.isArray(uo)){const[Vi,mo]=uo,_r=Yt>=Vi.hours&&Gn>=Vi.minutes,zo=Yt<mo.hours||Yt===mo.hours&&Gn<mo.minutes;if(Vi.hours<mo.hours){if(_r&&zo)return!0}else if(_r||zo)return!0}else if(uo.hours===Yt&&uo.minutes===Gn)return!0;return!1});if(-1!==Ci)return Li[Ci]}return function F(Z,ge,te){const xe=(0,t.cg1)(Z),Lt=Ft([xe[t.wAp.DayPeriodsFormat],xe[t.wAp.DayPeriodsStandalone]],ge);return Ft(Lt,te)}(ge,it,xe)[Yt<12?0:1];case Ot.Eras:return function Ce(Z,ge){return Ft((0,t.cg1)(Z)[t.wAp.Eras],ge)}(ge,xe)[Z.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${te}`)}}(it,Lt,Z,ge,te,xe)}}function Ht(Z){return function(ge,te,xe){const it=-1*xe,Lt=lt(te,Xe.MinusSign),Yt=it>0?Math.floor(it/60):Math.ceil(it/60);switch(Z){case Ln.Short:return(it>=0?"+":"")+Zt(Yt,2,Lt)+Zt(Math.abs(it%60),2,Lt);case Ln.ShortGMT:return"GMT"+(it>=0?"+":"")+Zt(Yt,1,Lt);case Ln.Long:return"GMT"+(it>=0?"+":"")+Zt(Yt,2,Lt)+":"+Zt(Math.abs(it%60),2,Lt);case Ln.Extended:return 0===xe?"Z":(it>=0?"+":"")+Zt(Yt,2,Lt)+":"+Zt(Math.abs(it%60),2,Lt);default:throw new Error(`Unknown zone width "${Z}"`)}}}const pt=0,Dt=4;function Be(Z){return pe(Z.getFullYear(),Z.getMonth(),Z.getDate()+(Dt-Z.getDay()))}function at(Z,ge=!1){return function(te,xe){let it;if(ge){const Lt=new Date(te.getFullYear(),te.getMonth(),1).getDay()-1,Yt=te.getDate();it=1+Math.floor((Yt+Lt)/7)}else{const Lt=Be(te),Yt=function ot(Z){const ge=pe(Z,pt,1).getDay();return pe(Z,0,1+(ge<=Dt?Dt:Dt+7)-ge)}(Lt.getFullYear()),Gn=Lt.getTime()-Yt.getTime();it=1+Math.round(Gn/6048e5)}return Zt(it,Z,lt(xe,Xe.MinusSign))}}function Gt(Z,ge=!1){return function(te,xe){return Zt(Be(te).getFullYear(),Z,lt(xe,Xe.MinusSign),ge)}}const Ut={};function Mn(Z,ge){Z=Z.replace(/:/g,"");const te=Date.parse("Jan 01, 1970 00:00:00 "+Z)/6e4;return isNaN(te)?ge:te}function Je(Z){return Z instanceof Date&&!isNaN(Z.valueOf())}function Fi(Z,ge){ge=encodeURIComponent(ge);for(const te of Z.split(";")){const xe=te.indexOf("="),[it,Lt]=-1==xe?[te,""]:[te.slice(0,xe),te.slice(xe+1)];if(it.trim()===ge)return decodeURIComponent(Lt)}return null}const Di=/\s+/,pn=[];let $n=(()=>{class Z{constructor(te,xe,it,Lt){this._iterableDiffers=te,this._keyValueDiffers=xe,this._ngEl=it,this._renderer=Lt,this.initialClasses=pn,this.stateMap=new Map}set klass(te){this.initialClasses=null!=te?te.trim().split(Di):pn}set ngClass(te){this.rawClass="string"==typeof te?te.trim().split(Di):te}ngDoCheck(){for(const xe of this.initialClasses)this._updateState(xe,!0);const te=this.rawClass;if(Array.isArray(te)||te instanceof Set)for(const xe of te)this._updateState(xe,!0);else if(null!=te)for(const xe of Object.keys(te))this._updateState(xe,Boolean(te[xe]));this._applyStateDiff()}_updateState(te,xe){const it=this.stateMap.get(te);void 0!==it?(it.enabled!==xe&&(it.changed=!0,it.enabled=xe),it.touched=!0):this.stateMap.set(te,{enabled:xe,changed:!0,touched:!0})}_applyStateDiff(){for(const te of this.stateMap){const xe=te[0],it=te[1];it.changed?(this._toggleClass(xe,it.enabled),it.changed=!1):it.touched||(it.enabled&&this._toggleClass(xe,!1),this.stateMap.delete(xe)),it.touched=!1}}_toggleClass(te,xe){(te=te.trim()).length>0&&te.split(Di).forEach(it=>{xe?this._renderer.addClass(this._ngEl.nativeElement,it):this._renderer.removeClass(this._ngEl.nativeElement,it)})}}return Z.\u0275fac=function(te){return new(te||Z)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},Z.\u0275dir=t.lG2({type:Z,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Z})();class _i{constructor(ge,te,xe,it){this.$implicit=ge,this.ngForOf=te,this.index=xe,this.count=it}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let zi=(()=>{class Z{set ngForOf(te){this._ngForOf=te,this._ngForOfDirty=!0}set ngForTrackBy(te){this._trackByFn=te}get ngForTrackBy(){return this._trackByFn}constructor(te,xe,it){this._viewContainer=te,this._template=xe,this._differs=it,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(te){te&&(this._template=te)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const te=this._ngForOf;!this._differ&&te&&(this._differ=this._differs.find(te).create(this.ngForTrackBy))}if(this._differ){const te=this._differ.diff(this._ngForOf);te&&this._applyChanges(te)}}_applyChanges(te){const xe=this._viewContainer;te.forEachOperation((it,Lt,Yt)=>{if(null==it.previousIndex)xe.createEmbeddedView(this._template,new _i(it.item,this._ngForOf,-1,-1),null===Yt?void 0:Yt);else if(null==Yt)xe.remove(null===Lt?void 0:Lt);else if(null!==Lt){const Gn=xe.get(Lt);xe.move(Gn,Yt),Pn(Gn,it)}});for(let it=0,Lt=xe.length;it<Lt;it++){const Gn=xe.get(it).context;Gn.index=it,Gn.count=Lt,Gn.ngForOf=this._ngForOf}te.forEachIdentityChange(it=>{Pn(xe.get(it.currentIndex),it)})}static ngTemplateContextGuard(te,xe){return!0}}return Z.\u0275fac=function(te){return new(te||Z)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},Z.\u0275dir=t.lG2({type:Z,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Z})();function Pn(Z,ge){Z.context.$implicit=ge.item}let Mo=(()=>{class Z{constructor(te,xe){this._viewContainer=te,this._context=new Jn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=xe}set ngIf(te){this._context.$implicit=this._context.ngIf=te,this._updateView()}set ngIfThen(te){Ui("ngIfThen",te),this._thenTemplateRef=te,this._thenViewRef=null,this._updateView()}set ngIfElse(te){Ui("ngIfElse",te),this._elseTemplateRef=te,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(te,xe){return!0}}return Z.\u0275fac=function(te){return new(te||Z)(t.Y36(t.s_b),t.Y36(t.Rgc))},Z.\u0275dir=t.lG2({type:Z,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Z})();class Jn{constructor(){this.$implicit=null,this.ngIf=null}}function Ui(Z,ge){if(ge&&!ge.createEmbeddedView)throw new Error(`${Z} must be a TemplateRef, but received '${(0,t.AaK)(ge)}'.`)}let _t=(()=>{class Z{constructor(te,xe,it){this._ngEl=te,this._differs=xe,this._renderer=it,this._ngStyle=null,this._differ=null}set ngStyle(te){this._ngStyle=te,!this._differ&&te&&(this._differ=this._differs.find(te).create())}ngDoCheck(){if(this._differ){const te=this._differ.diff(this._ngStyle);te&&this._applyChanges(te)}}_setStyle(te,xe){const[it,Lt]=te.split("."),Yt=-1===it.indexOf("-")?void 0:t.JOm.DashCase;null!=xe?this._renderer.setStyle(this._ngEl.nativeElement,it,Lt?`${xe}${Lt}`:xe,Yt):this._renderer.removeStyle(this._ngEl.nativeElement,it,Yt)}_applyChanges(te){te.forEachRemovedItem(xe=>this._setStyle(xe.key,null)),te.forEachAddedItem(xe=>this._setStyle(xe.key,xe.currentValue)),te.forEachChangedItem(xe=>this._setStyle(xe.key,xe.currentValue))}}return Z.\u0275fac=function(te){return new(te||Z)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},Z.\u0275dir=t.lG2({type:Z,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Z})(),Nt=(()=>{class Z{constructor(te){this._viewContainerRef=te,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(te){if(te.ngTemplateOutlet||te.ngTemplateOutletInjector){const xe=this._viewContainerRef;if(this._viewRef&&xe.remove(xe.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:it,ngTemplateOutletContext:Lt,ngTemplateOutletInjector:Yt}=this;this._viewRef=xe.createEmbeddedView(it,Lt,Yt?{injector:Yt}:void 0)}else this._viewRef=null}else this._viewRef&&te.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Z.\u0275fac=function(te){return new(te||Z)(t.Y36(t.s_b))},Z.\u0275dir=t.lG2({type:Z,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),Z})();const Vo=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Yo=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let io=(()=>{class Z{constructor(te,xe,it){this.locale=te,this.defaultTimezone=xe,this.defaultOptions=it}transform(te,xe,it,Lt){if(null==te||""===te||te!=te)return null;try{return $(te,xe??this.defaultOptions?.dateFormat??"mediumDate",Lt||this.locale,it??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Yt){throw function cn(Z,ge){return new t.vHH(2100,!1)}()}}}return Z.\u0275fac=function(te){return new(te||Z)(t.Y36(t.soG,16),t.Y36(Vo,24),t.Y36(Yo,24))},Z.\u0275pipe=t.Yjl({name:"date",type:Z,pure:!0,standalone:!0}),Z})(),ce=(()=>{class Z{constructor(te){this.differs=te,this.keyValues=[],this.compareFn=Se}transform(te,xe=Se){if(!te||!(te instanceof Map)&&"object"!=typeof te)return null;this.differ||(this.differ=this.differs.find(te).create());const it=this.differ.diff(te),Lt=xe!==this.compareFn;return it&&(this.keyValues=[],it.forEachItem(Yt=>{this.keyValues.push(function Ye(Z,ge){return{key:Z,value:ge}}(Yt.key,Yt.currentValue))})),(it||Lt)&&(this.keyValues.sort(xe),this.compareFn=xe),this.keyValues}}return Z.\u0275fac=function(te){return new(te||Z)(t.Y36(t.aQg,16))},Z.\u0275pipe=t.Yjl({name:"keyvalue",type:Z,pure:!1,standalone:!0}),Z})();function Se(Z,ge){const te=Z.key,xe=ge.key;if(te===xe)return 0;if(void 0===te)return 1;if(void 0===xe)return-1;if(null===te)return 1;if(null===xe)return-1;if("string"==typeof te&&"string"==typeof xe)return te<xe?-1:1;if("number"==typeof te&&"number"==typeof xe)return te-xe;if("boolean"==typeof te&&"boolean"==typeof xe)return te<xe?-1:1;const it=String(te),Lt=String(xe);return it==Lt?0:it<Lt?-1:1}let jt=(()=>{class Z{}return Z.\u0275fac=function(te){return new(te||Z)},Z.\u0275mod=t.oAB({type:Z}),Z.\u0275inj=t.cJS({}),Z})();const hn="browser";function ti(Z){return Z===hn}let Ki=(()=>{class Z{}return Z.\u0275prov=(0,t.Yz7)({token:Z,providedIn:"root",factory:()=>new Vt((0,t.LFG)(v),window)}),Z})();class Vt{constructor(ge,te){this.document=ge,this.window=te,this.offset=()=>[0,0]}setOffset(ge){this.offset=Array.isArray(ge)?()=>ge:ge}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ge){this.supportsScrolling()&&this.window.scrollTo(ge[0],ge[1])}scrollToAnchor(ge){if(!this.supportsScrolling())return;const te=function Qe(Z,ge){const te=Z.getElementById(ge)||Z.getElementsByName(ge)[0];if(te)return te;if("function"==typeof Z.createTreeWalker&&Z.body&&(Z.body.createShadowRoot||Z.body.attachShadow)){const xe=Z.createTreeWalker(Z.body,NodeFilter.SHOW_ELEMENT);let it=xe.currentNode;for(;it;){const Lt=it.shadowRoot;if(Lt){const Yt=Lt.getElementById(ge)||Lt.querySelector(`[name="${ge}"]`);if(Yt)return Yt}it=xe.nextNode()}}return null}(this.document,ge);te&&(this.scrollToElement(te),te.focus())}setHistoryScrollRestoration(ge){if(this.supportScrollRestoration()){const te=this.window.history;te&&te.scrollRestoration&&(te.scrollRestoration=ge)}}scrollToElement(ge){const te=ge.getBoundingClientRect(),xe=te.left+this.window.pageXOffset,it=te.top+this.window.pageYOffset,Lt=this.offset();this.window.scrollTo(xe-Lt[0],it-Lt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ge=ae(this.window.history)||ae(Object.getPrototypeOf(this.window.history));return!(!ge||!ge.writable&&!ge.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ae(Z){return Object.getOwnPropertyDescriptor(Z,"scrollRestoration")}class ie{}},8987:(qe,re,l)=>{"use strict";l.d(re,{JF:()=>Ht,LE:()=>P,TP:()=>Ce,WM:()=>p,Zn:()=>Ue,eN:()=>ze});var t=l(4666),i=l(2560),r=l(745),L=l(833),M=l(3853),v=l(116),y=l(635);class u{}class _{}class p{constructor(Be){this.normalizedNames=new Map,this.lazyUpdate=null,Be?this.lazyInit="string"==typeof Be?()=>{this.headers=new Map,Be.split("\n").forEach(at=>{const Gt=at.indexOf(":");if(Gt>0){const Ut=at.slice(0,Gt),gn=Ut.toLowerCase(),Mn=at.slice(Gt+1).trim();this.maybeSetNormalizedName(Ut,gn),this.headers.has(gn)?this.headers.get(gn).push(Mn):this.headers.set(gn,[Mn])}})}:()=>{this.headers=new Map,Object.entries(Be).forEach(([at,Gt])=>{let Ut;if(Ut="string"==typeof Gt?[Gt]:"number"==typeof Gt?[Gt.toString()]:Gt.map(gn=>gn.toString()),Ut.length>0){const gn=at.toLowerCase();this.headers.set(gn,Ut),this.maybeSetNormalizedName(at,gn)}})}:this.headers=new Map}has(Be){return this.init(),this.headers.has(Be.toLowerCase())}get(Be){this.init();const at=this.headers.get(Be.toLowerCase());return at&&at.length>0?at[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Be){return this.init(),this.headers.get(Be.toLowerCase())||null}append(Be,at){return this.clone({name:Be,value:at,op:"a"})}set(Be,at){return this.clone({name:Be,value:at,op:"s"})}delete(Be,at){return this.clone({name:Be,value:at,op:"d"})}maybeSetNormalizedName(Be,at){this.normalizedNames.has(at)||this.normalizedNames.set(at,Be)}init(){this.lazyInit&&(this.lazyInit instanceof p?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Be=>this.applyUpdate(Be)),this.lazyUpdate=null))}copyFrom(Be){Be.init(),Array.from(Be.headers.keys()).forEach(at=>{this.headers.set(at,Be.headers.get(at)),this.normalizedNames.set(at,Be.normalizedNames.get(at))})}clone(Be){const at=new p;return at.lazyInit=this.lazyInit&&this.lazyInit instanceof p?this.lazyInit:this,at.lazyUpdate=(this.lazyUpdate||[]).concat([Be]),at}applyUpdate(Be){const at=Be.name.toLowerCase();switch(Be.op){case"a":case"s":let Gt=Be.value;if("string"==typeof Gt&&(Gt=[Gt]),0===Gt.length)return;this.maybeSetNormalizedName(Be.name,at);const Ut=("a"===Be.op?this.headers.get(at):void 0)||[];Ut.push(...Gt),this.headers.set(at,Ut);break;case"d":const gn=Be.value;if(gn){let Mn=this.headers.get(at);if(!Mn)return;Mn=Mn.filter(kn=>-1===gn.indexOf(kn)),0===Mn.length?(this.headers.delete(at),this.normalizedNames.delete(at)):this.headers.set(at,Mn)}else this.headers.delete(at),this.normalizedNames.delete(at)}}forEach(Be){this.init(),Array.from(this.normalizedNames.keys()).forEach(at=>Be(this.normalizedNames.get(at),this.headers.get(at)))}}class g{encodeKey(Be){return T(Be)}encodeValue(Be){return T(Be)}decodeKey(Be){return decodeURIComponent(Be)}decodeValue(Be){return decodeURIComponent(Be)}}const d=/%(\d[a-f0-9])/gi,h={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function T(ot){return encodeURIComponent(ot).replace(d,(Be,at)=>h[at]??Be)}function b(ot){return`${ot}`}class P{constructor(Be={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Be.encoder||new g,Be.fromString){if(Be.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function f(ot,Be){const at=new Map;return ot.length>0&&ot.replace(/^\?/,"").split("&").forEach(Ut=>{const gn=Ut.indexOf("="),[Mn,kn]=-1==gn?[Be.decodeKey(Ut),""]:[Be.decodeKey(Ut.slice(0,gn)),Be.decodeValue(Ut.slice(gn+1))],Rn=at.get(Mn)||[];Rn.push(kn),at.set(Mn,Rn)}),at}(Be.fromString,this.encoder)}else Be.fromObject?(this.map=new Map,Object.keys(Be.fromObject).forEach(at=>{const Gt=Be.fromObject[at],Ut=Array.isArray(Gt)?Gt.map(b):[b(Gt)];this.map.set(at,Ut)})):this.map=null}has(Be){return this.init(),this.map.has(Be)}get(Be){this.init();const at=this.map.get(Be);return at?at[0]:null}getAll(Be){return this.init(),this.map.get(Be)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Be,at){return this.clone({param:Be,value:at,op:"a"})}appendAll(Be){const at=[];return Object.keys(Be).forEach(Gt=>{const Ut=Be[Gt];Array.isArray(Ut)?Ut.forEach(gn=>{at.push({param:Gt,value:gn,op:"a"})}):at.push({param:Gt,value:Ut,op:"a"})}),this.clone(at)}set(Be,at){return this.clone({param:Be,value:at,op:"s"})}delete(Be,at){return this.clone({param:Be,value:at,op:"d"})}toString(){return this.init(),this.keys().map(Be=>{const at=this.encoder.encodeKey(Be);return this.map.get(Be).map(Gt=>at+"="+this.encoder.encodeValue(Gt)).join("&")}).filter(Be=>""!==Be).join("&")}clone(Be){const at=new P({encoder:this.encoder});return at.cloneFrom=this.cloneFrom||this,at.updates=(this.updates||[]).concat(Be),at}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Be=>this.map.set(Be,this.cloneFrom.map.get(Be))),this.updates.forEach(Be=>{switch(Be.op){case"a":case"s":const at=("a"===Be.op?this.map.get(Be.param):void 0)||[];at.push(b(Be.value)),this.map.set(Be.param,at);break;case"d":if(void 0===Be.value){this.map.delete(Be.param);break}{let Gt=this.map.get(Be.param)||[];const Ut=Gt.indexOf(b(Be.value));-1!==Ut&&Gt.splice(Ut,1),Gt.length>0?this.map.set(Be.param,Gt):this.map.delete(Be.param)}}}),this.cloneFrom=this.updates=null)}}class I{constructor(){this.map=new Map}set(Be,at){return this.map.set(Be,at),this}get(Be){return this.map.has(Be)||this.map.set(Be,Be.defaultValue()),this.map.get(Be)}delete(Be){return this.map.delete(Be),this}has(Be){return this.map.has(Be)}keys(){return this.map.keys()}}function D(ot){return typeof ArrayBuffer<"u"&&ot instanceof ArrayBuffer}function N(ot){return typeof Blob<"u"&&ot instanceof Blob}function s(ot){return typeof FormData<"u"&&ot instanceof FormData}class Q{constructor(Be,at,Gt,Ut){let gn;if(this.url=at,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Be.toUpperCase(),function k(ot){switch(ot){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ut?(this.body=void 0!==Gt?Gt:null,gn=Ut):gn=Gt,gn&&(this.reportProgress=!!gn.reportProgress,this.withCredentials=!!gn.withCredentials,gn.responseType&&(this.responseType=gn.responseType),gn.headers&&(this.headers=gn.headers),gn.context&&(this.context=gn.context),gn.params&&(this.params=gn.params)),this.headers||(this.headers=new p),this.context||(this.context=new I),this.params){const Mn=this.params.toString();if(0===Mn.length)this.urlWithParams=at;else{const kn=at.indexOf("?");this.urlWithParams=at+(-1===kn?"?":kn<at.length-1?"&":"")+Mn}}else this.params=new P,this.urlWithParams=at}serializeBody(){return null===this.body?null:D(this.body)||N(this.body)||s(this.body)||function V(ot){return typeof URLSearchParams<"u"&&ot instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof P?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||s(this.body)?null:N(this.body)?this.body.type||null:D(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof P?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Be={}){const at=Be.method||this.method,Gt=Be.url||this.url,Ut=Be.responseType||this.responseType,gn=void 0!==Be.body?Be.body:this.body,Mn=void 0!==Be.withCredentials?Be.withCredentials:this.withCredentials,kn=void 0!==Be.reportProgress?Be.reportProgress:this.reportProgress;let Rn=Be.headers||this.headers,Fn=Be.params||this.params;const ut=Be.context??this.context;return void 0!==Be.setHeaders&&(Rn=Object.keys(Be.setHeaders).reduce((Je,Y)=>Je.set(Y,Be.setHeaders[Y]),Rn)),Be.setParams&&(Fn=Object.keys(Be.setParams).reduce((Je,Y)=>Je.set(Y,Be.setParams[Y]),Fn)),new Q(at,Gt,gn,{params:Fn,headers:Rn,context:ut,reportProgress:kn,responseType:Ut,withCredentials:Mn})}}var me=(()=>((me=me||{})[me.Sent=0]="Sent",me[me.UploadProgress=1]="UploadProgress",me[me.ResponseHeader=2]="ResponseHeader",me[me.DownloadProgress=3]="DownloadProgress",me[me.Response=4]="Response",me[me.User=5]="User",me))();class ue{constructor(Be,at=200,Gt="OK"){this.headers=Be.headers||new p,this.status=void 0!==Be.status?Be.status:at,this.statusText=Be.statusText||Gt,this.url=Be.url||null,this.ok=this.status>=200&&this.status<300}}class De extends ue{constructor(Be={}){super(Be),this.type=me.ResponseHeader}clone(Be={}){return new De({headers:Be.headers||this.headers,status:void 0!==Be.status?Be.status:this.status,statusText:Be.statusText||this.statusText,url:Be.url||this.url||void 0})}}class Ue extends ue{constructor(Be={}){super(Be),this.type=me.Response,this.body=void 0!==Be.body?Be.body:null}clone(Be={}){return new Ue({body:void 0!==Be.body?Be.body:this.body,headers:Be.headers||this.headers,status:void 0!==Be.status?Be.status:this.status,statusText:Be.statusText||this.statusText,url:Be.url||this.url||void 0})}}class Xe extends ue{constructor(Be){super(Be,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Be.url||"(unknown url)"}`:`Http failure response for ${Be.url||"(unknown url)"}: ${Be.status} ${Be.statusText}`,this.error=Be.error||null}}function st(ot,Be){return{body:Be,headers:ot.headers,context:ot.context,observe:ot.observe,params:ot.params,reportProgress:ot.reportProgress,responseType:ot.responseType,withCredentials:ot.withCredentials}}let ze=(()=>{class ot{constructor(at){this.handler=at}request(at,Gt,Ut={}){let gn;if(at instanceof Q)gn=at;else{let Rn,Fn;Rn=Ut.headers instanceof p?Ut.headers:new p(Ut.headers),Ut.params&&(Fn=Ut.params instanceof P?Ut.params:new P({fromObject:Ut.params})),gn=new Q(at,Gt,void 0!==Ut.body?Ut.body:null,{headers:Rn,context:Ut.context,params:Fn,reportProgress:Ut.reportProgress,responseType:Ut.responseType||"json",withCredentials:Ut.withCredentials})}const Mn=(0,r.of)(gn).pipe((0,M.b)(Rn=>this.handler.handle(Rn)));if(at instanceof Q||"events"===Ut.observe)return Mn;const kn=Mn.pipe((0,v.h)(Rn=>Rn instanceof Ue));switch(Ut.observe||"body"){case"body":switch(gn.responseType){case"arraybuffer":return kn.pipe((0,y.U)(Rn=>{if(null!==Rn.body&&!(Rn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Rn.body}));case"blob":return kn.pipe((0,y.U)(Rn=>{if(null!==Rn.body&&!(Rn.body instanceof Blob))throw new Error("Response is not a Blob.");return Rn.body}));case"text":return kn.pipe((0,y.U)(Rn=>{if(null!==Rn.body&&"string"!=typeof Rn.body)throw new Error("Response is not a string.");return Rn.body}));default:return kn.pipe((0,y.U)(Rn=>Rn.body))}case"response":return kn;default:throw new Error(`Unreachable: unhandled observe type ${Ut.observe}}`)}}delete(at,Gt={}){return this.request("DELETE",at,Gt)}get(at,Gt={}){return this.request("GET",at,Gt)}head(at,Gt={}){return this.request("HEAD",at,Gt)}jsonp(at,Gt){return this.request("JSONP",at,{params:(new P).append(Gt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(at,Gt={}){return this.request("OPTIONS",at,Gt)}patch(at,Gt,Ut={}){return this.request("PATCH",at,st(Ut,Gt))}post(at,Gt,Ut={}){return this.request("POST",at,st(Ut,Gt))}put(at,Gt,Ut={}){return this.request("PUT",at,st(Ut,Gt))}}return ot.\u0275fac=function(at){return new(at||ot)(i.LFG(u))},ot.\u0275prov=i.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function F(ot,Be){return Be(ot)}function Re(ot,Be){return(at,Gt)=>Be.intercept(at,{handle:Ut=>ot(Ut,Gt)})}const Ce=new i.OlP("HTTP_INTERCEPTORS"),oe=new i.OlP("HTTP_INTERCEPTOR_FNS");function G(){let ot=null;return(Be,at)=>(null===ot&&(ot=((0,i.f3M)(Ce,{optional:!0})??[]).reduceRight(Re,F)),ot(Be,at))}let ye=(()=>{class ot extends u{constructor(at,Gt){super(),this.backend=at,this.injector=Gt,this.chain=null}handle(at){if(null===this.chain){const Gt=Array.from(new Set(this.injector.get(oe)));this.chain=Gt.reduceRight((Ut,gn)=>function de(ot,Be,at){return(Gt,Ut)=>at.runInContext(()=>Be(Gt,gn=>ot(gn,Ut)))}(Ut,gn,this.injector),F)}return this.chain(at,Gt=>this.backend.handle(Gt))}}return ot.\u0275fac=function(at){return new(at||ot)(i.LFG(_),i.LFG(i.lqb))},ot.\u0275prov=i.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const rt=/^\)\]\}',?\n/;let Ft=(()=>{class ot{constructor(at){this.xhrFactory=at}handle(at){if("JSONP"===at.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new L.y(Gt=>{const Ut=this.xhrFactory.build();if(Ut.open(at.method,at.urlWithParams),at.withCredentials&&(Ut.withCredentials=!0),at.headers.forEach((le,Oe)=>Ut.setRequestHeader(le,Oe.join(","))),at.headers.has("Accept")||Ut.setRequestHeader("Accept","application/json, text/plain, */*"),!at.headers.has("Content-Type")){const le=at.detectContentTypeHeader();null!==le&&Ut.setRequestHeader("Content-Type",le)}if(at.responseType){const le=at.responseType.toLowerCase();Ut.responseType="json"!==le?le:"text"}const gn=at.serializeBody();let Mn=null;const kn=()=>{if(null!==Mn)return Mn;const le=Ut.statusText||"OK",Oe=new p(Ut.getAllResponseHeaders()),nt=function Et(ot){return"responseURL"in ot&&ot.responseURL?ot.responseURL:/^X-Request-URL:/m.test(ot.getAllResponseHeaders())?ot.getResponseHeader("X-Request-URL"):null}(Ut)||at.url;return Mn=new De({headers:Oe,status:Ut.status,statusText:le,url:nt}),Mn},Rn=()=>{let{headers:le,status:Oe,statusText:nt,url:Xt}=kn(),Dn=null;204!==Oe&&(Dn=typeof Ut.response>"u"?Ut.responseText:Ut.response),0===Oe&&(Oe=Dn?200:0);let St=Oe>=200&&Oe<300;if("json"===at.responseType&&"string"==typeof Dn){const Vn=Dn;Dn=Dn.replace(rt,"");try{Dn=""!==Dn?JSON.parse(Dn):null}catch(He){Dn=Vn,St&&(St=!1,Dn={error:He,text:Dn})}}St?(Gt.next(new Ue({body:Dn,headers:le,status:Oe,statusText:nt,url:Xt||void 0})),Gt.complete()):Gt.error(new Xe({error:Dn,headers:le,status:Oe,statusText:nt,url:Xt||void 0}))},Fn=le=>{const{url:Oe}=kn(),nt=new Xe({error:le,status:Ut.status||0,statusText:Ut.statusText||"Unknown Error",url:Oe||void 0});Gt.error(nt)};let ut=!1;const Je=le=>{ut||(Gt.next(kn()),ut=!0);let Oe={type:me.DownloadProgress,loaded:le.loaded};le.lengthComputable&&(Oe.total=le.total),"text"===at.responseType&&Ut.responseText&&(Oe.partialText=Ut.responseText),Gt.next(Oe)},Y=le=>{let Oe={type:me.UploadProgress,loaded:le.loaded};le.lengthComputable&&(Oe.total=le.total),Gt.next(Oe)};return Ut.addEventListener("load",Rn),Ut.addEventListener("error",Fn),Ut.addEventListener("timeout",Fn),Ut.addEventListener("abort",Fn),at.reportProgress&&(Ut.addEventListener("progress",Je),null!==gn&&Ut.upload&&Ut.upload.addEventListener("progress",Y)),Ut.send(gn),Gt.next({type:me.Sent}),()=>{Ut.removeEventListener("error",Fn),Ut.removeEventListener("abort",Fn),Ut.removeEventListener("load",Rn),Ut.removeEventListener("timeout",Fn),at.reportProgress&&(Ut.removeEventListener("progress",Je),null!==gn&&Ut.upload&&Ut.upload.removeEventListener("progress",Y)),Ut.readyState!==Ut.DONE&&Ut.abort()}})}}return ot.\u0275fac=function(at){return new(at||ot)(i.LFG(t.JF))},ot.\u0275prov=i.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const yt=new i.OlP("XSRF_ENABLED"),bt=new i.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),en=new i.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class mn{}let En=(()=>{class ot{constructor(at,Gt,Ut){this.doc=at,this.platform=Gt,this.cookieName=Ut,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const at=this.doc.cookie||"";return at!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(at,this.cookieName),this.lastCookieString=at),this.lastToken}}return ot.\u0275fac=function(at){return new(at||ot)(i.LFG(t.K0),i.LFG(i.Lbi),i.LFG(bt))},ot.\u0275prov=i.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function Ln(ot,Be){const at=ot.url.toLowerCase();if(!(0,i.f3M)(yt)||"GET"===ot.method||"HEAD"===ot.method||at.startsWith("http://")||at.startsWith("https://"))return Be(ot);const Gt=(0,i.f3M)(mn).getToken(),Ut=(0,i.f3M)(en);return null!=Gt&&!ot.headers.has(Ut)&&(ot=ot.clone({headers:ot.headers.set(Ut,Gt)})),Be(ot)}var Ot=(()=>((Ot=Ot||{})[Ot.Interceptors=0]="Interceptors",Ot[Ot.LegacyInterceptors=1]="LegacyInterceptors",Ot[Ot.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ot[Ot.NoXsrfProtection=3]="NoXsrfProtection",Ot[Ot.JsonpSupport=4]="JsonpSupport",Ot[Ot.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ot))();function $(ot,Be){return{\u0275kind:ot,\u0275providers:Be}}function pe(...ot){const Be=[ze,Ft,ye,{provide:u,useExisting:ye},{provide:_,useExisting:Ft},{provide:oe,useValue:Ln,multi:!0},{provide:yt,useValue:!0},{provide:mn,useClass:En}];for(const at of ot)Be.push(...at.\u0275providers);return(0,i.MR2)(Be)}const Ge=new i.OlP("LEGACY_INTERCEPTOR_FN");let Ht=(()=>{class ot{}return ot.\u0275fac=function(at){return new(at||ot)},ot.\u0275mod=i.oAB({type:ot}),ot.\u0275inj=i.cJS({providers:[pe($(Ot.LegacyInterceptors,[{provide:Ge,useFactory:G},{provide:oe,useExisting:Ge,multi:!0}]))]}),ot})()},2560:(qe,re,l)=>{"use strict";l.d(re,{$8M:()=>bs,$WT:()=>so,$Z:()=>Yp,AFp:()=>og,ALo:()=>Mm,AaK:()=>u,Akn:()=>Zr,AsE:()=>Xu,BQk:()=>gc,CHM:()=>q,CRH:()=>Lm,CZH:()=>Dc,CqO:()=>Dh,D6c:()=>jC,DdM:()=>um,EJc:()=>sC,EiD:()=>pp,EpF:()=>wh,F$t:()=>Nh,F4k:()=>xh,FYo:()=>xp,FiY:()=>xi,G48:()=>DC,Gf:()=>Pm,GfV:()=>Dp,GkF:()=>Gu,Gpc:()=>C,Gre:()=>mf,HTZ:()=>gm,Hh0:()=>_m,Hsn:()=>Lh,JOm:()=>Br,JVY:()=>Xg,JZr:()=>T,KtG:()=>Ae,L6k:()=>e_,LAX:()=>n_,LFG:()=>Ht,Lbi:()=>nC,Lck:()=>l1,MAs:()=>Th,MMx:()=>dd,MR2:()=>y_,N_p:()=>od,NdJ:()=>zu,OlP:()=>to,Oqu:()=>Qu,P3R:()=>mp,PXZ:()=>bC,Q6J:()=>Bu,QGY:()=>$u,QbO:()=>iC,Qsj:()=>P_,QtT:()=>Qf,R0b:()=>Gr,RDi:()=>jg,Rgc:()=>xl,SBq:()=>hl,SDv:()=>Jf,Sil:()=>cC,Suo:()=>Nm,TTD:()=>fi,TgZ:()=>hc,Tol:()=>Qh,Udp:()=>Yu,VKq:()=>dm,Vkw:()=>aC,W1O:()=>Bm,WLB:()=>pm,X6Q:()=>xC,XFs:()=>yt,Xpm:()=>St,Xts:()=>lu,Y36:()=>Da,YKP:()=>tm,YNc:()=>Mh,Yjl:()=>ai,Yz7:()=>lt,Z0I:()=>nn,ZZ4:()=>Fd,_Bn:()=>em,_UZ:()=>Hu,_Vd:()=>pl,_c5:()=>zC,_uU:()=>af,aQg:()=>Ud,c2e:()=>oC,cJS:()=>wt,cg1:()=>ed,dDg:()=>yC,dqk:()=>En,eBb:()=>t_,eFA:()=>_g,eJc:()=>Ed,ekj:()=>qu,eoX:()=>hg,evT:()=>Ap,f3M:()=>Dt,g9A:()=>sg,h0i:()=>Ga,hGG:()=>KC,hij:()=>vc,iGM:()=>Rm,ifc:()=>Rn,ip1:()=>ig,jDz:()=>im,kEZ:()=>hm,kL8:()=>xf,l5B:()=>fm,lG2:()=>ei,lcZ:()=>Tm,lqb:()=>ta,lri:()=>dg,mCW:()=>Xl,n5z:()=>qa,oAB:()=>Ze,oJD:()=>hp,oxw:()=>Ph,pB0:()=>i_,pQV:()=>rd,q3G:()=>No,qLn:()=>fl,qOj:()=>Lu,qZA:()=>fc,qbA:()=>mm,qzn:()=>Sa,rFY:()=>ym,rWj:()=>pg,sBO:()=>AC,s_b:()=>Tc,soG:()=>Ac,tBr:()=>In,tHW:()=>id,tb:()=>mg,tp0:()=>ar,uIk:()=>Uu,uOi:()=>au,vHH:()=>b,vpe:()=>ds,wAp:()=>si,xi3:()=>wm,xp6:()=>kp,ynx:()=>mc,z2F:()=>Oc,z3N:()=>Ds,zSh:()=>pu,zs3:()=>na});var t=l(253),i=l(7714),r=l(833),L=l(6646),M=l(1203);function v(e){for(let n in e)if(e[n]===v)return n;throw Error("Could not find renamed property on target object.")}function y(e,n){for(const o in n)n.hasOwnProperty(o)&&!e.hasOwnProperty(o)&&(e[o]=n[o])}function u(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(u).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const o=n.indexOf("\n");return-1===o?n:n.substring(0,o)}function _(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const p=v({__forward_ref__:v});function C(e){return e.__forward_ref__=C,e.toString=function(){return u(this())},e}function g(e){return f(e)?e():e}function f(e){return"function"==typeof e&&e.hasOwnProperty(p)&&e.__forward_ref__===C}function d(e){return e&&!!e.\u0275providers}const T="https://g.co/ng/security#xss";class b extends Error{constructor(n,o){super(P(n,o)),this.code=n}}function P(e,n){return`NG0${Math.abs(e)}${n?": "+n.trim():""}`}function W(e){return"string"==typeof e?e:null==e?"":String(e)}function s(e,n){throw new b(-201,!1)}function G(e,n,o,a){throw new Error(`ASSERTION ERROR: ${e}`+(null==a?"":` [Expected=> ${o} ${a} ${n} <=Actual]`))}function lt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function wt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Bt(e){return xt(e,Ve)||xt(e,Et)}function nn(e){return null!==Bt(e)}function xt(e,n){return e.hasOwnProperty(n)?e[n]:null}function ct(e){return e&&(e.hasOwnProperty(rt)||e.hasOwnProperty(Ft))?e[rt]:null}const Ve=v({\u0275prov:v}),rt=v({\u0275inj:v}),Et=v({ngInjectableDef:v}),Ft=v({ngInjectorDef:v});var yt=(()=>((yt=yt||{})[yt.Default=0]="Default",yt[yt.Host=1]="Host",yt[yt.Self=2]="Self",yt[yt.SkipSelf=4]="SkipSelf",yt[yt.Optional=8]="Optional",yt))();let un;function Jt(e){const n=un;return un=e,n}function en(e,n,o){const a=Bt(e);return a&&"root"==a.providedIn?void 0===a.value?a.value=a.factory():a.value:o&yt.Optional?null:void 0!==n?n:void s(u(e))}const En=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),$={},pe="__NG_DI_FLAG__",Ee="ngTempTokenPath",Ge="ngTokenPath",Zt=/\n/gm,tn="\u0275",on="__source";let Un;function vn(e){const n=Un;return Un=e,n}function zt(e,n=yt.Default){if(void 0===Un)throw new b(-203,!1);return null===Un?en(e,void 0,n):Un.get(e,n&yt.Optional?null:void 0,n)}function Ht(e,n=yt.Default){return(function bt(){return un}()||zt)(g(e),n)}function Dt(e,n=yt.Default){return Ht(e,ot(n))}function ot(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Be(e){const n=[];for(let o=0;o<e.length;o++){const a=g(e[o]);if(Array.isArray(a)){if(0===a.length)throw new b(900,!1);let c,m=yt.Default;for(let O=0;O<a.length;O++){const H=a[O],X=Gt(H);"number"==typeof X?-1===X?c=H.token:m|=X:c=H}n.push(Ht(c,m))}else n.push(Ht(a))}return n}function at(e,n){return e[pe]=n,e.prototype[pe]=n,e}function Gt(e){return e[pe]}function Mn(e){return{toString:e}.toString()}var kn=(()=>((kn=kn||{})[kn.OnPush=0]="OnPush",kn[kn.Default=1]="Default",kn))(),Rn=(()=>{return(e=Rn||(Rn={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Rn;var e})();const Fn={},ut=[],Je=v({\u0275cmp:v}),Y=v({\u0275dir:v}),le=v({\u0275pipe:v}),Oe=v({\u0275mod:v}),nt=v({\u0275fac:v}),Xt=v({__NG_ELEMENT_ID__:v});let Dn=0;function St(e){return Mn(()=>{const n=yo(e),o={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===kn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Rn.Emulated,id:"c"+Dn++,styles:e.styles||ut,_:null,schemas:e.schemas||null,tView:null};ao(o);const a=e.dependencies;return o.directiveDefs=Fi(a,!1),o.pipeDefs=Fi(a,!0),o})}function He(e){return xn(e)||ni(e)}function ht(e){return null!==e}function Ze(e){return Mn(()=>({type:e.type,bootstrap:e.bootstrap||ut,declarations:e.declarations||ut,imports:e.imports||ut,exports:e.exports||ut,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Hn(e,n){if(null==e)return Fn;const o={};for(const a in e)if(e.hasOwnProperty(a)){let c=e[a],m=c;Array.isArray(c)&&(m=c[1],c=c[0]),o[c]=a,n&&(n[c]=m)}return o}function ei(e){return Mn(()=>{const n=yo(e);return ao(n),n})}function ai(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function xn(e){return e[Je]||null}function ni(e){return e[Y]||null}function Oi(e){return e[le]||null}function so(e){const n=xn(e)||ni(e)||Oi(e);return null!==n&&n.standalone}function Ii(e,n){const o=e[Oe]||null;if(!o&&!0===n)throw new Error(`Type ${u(e)} does not have '\u0275mod' property.`);return o}function yo(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||ut,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Hn(e.inputs,n),outputs:Hn(e.outputs)}}function ao(e){e.features?.forEach(n=>n(e))}function Fi(e,n){if(!e)return null;const o=n?Oi:He;return()=>("function"==typeof e?e():e).map(a=>o(a)).filter(ht)}const Di=0,pn=1,$n=2,bi=3,no=4,ro=5,_i=6,zi=7,Pn=8,lo=9,Mo=10,Jn=11,Ui=12,Si=13,Yn=14,Yi=15,li=16,Io=17,je=18,Tt=19,_t=20,Nt=21,Qt=22,Qn=1,di=2,yi=7,qi=8,oi=9,wi=10;function Hi(e){return Array.isArray(e)&&"object"==typeof e[Qn]}function co(e){return Array.isArray(e)&&!0===e[Qn]}function Bo(e){return 0!=(4&e.flags)}function Vo(e){return e.componentOffset>-1}function Yo(e){return 1==(1&e.flags)}function io(e){return!!e.template}function ho(e){return 0!=(256&e[$n])}function qn(e,n){return e.hasOwnProperty(nt)?e[nt]:null}class Ai{constructor(n,o,a){this.previousValue=n,this.currentValue=o,this.firstChange=a}isFirstChange(){return this.firstChange}}function fi(){return Ki}function Ki(e){return e.type.prototype.ngOnChanges&&(e.setInput=ae),Vt}function Vt(){const e=A(this),n=e?.current;if(n){const o=e.previous;if(o===Fn)e.previous=n;else for(let a in n)o[a]=n[a];e.current=null,this.ngOnChanges(n)}}function ae(e,n,o,a){const c=this.declaredInputs[o],m=A(e)||function ie(e,n){return e[Qe]=n}(e,{previous:Fn,current:null}),O=m.current||(m.current={}),H=m.previous,X=H[c];O[c]=new Ai(X&&X.currentValue,n,H===Fn),e[a]=n}fi.ngInherit=!0;const Qe="__ngSimpleChanges__";function A(e){return e[Qe]||null}const gt=function(e,n,o){};function mi(e){for(;Array.isArray(e);)e=e[Di];return e}function So(e,n){return mi(n[e])}function ji(e,n){return mi(n[e.index])}function Xi(e,n){return e.data[n]}function Ri(e,n){return e[n]}function Ji(e,n){const o=n[e];return Hi(o)?o:o[Di]}function vo(e){return 64==(64&e[$n])}function To(e,n){return null==n?null:e[n]}function fe(e){e[je]=0}function We(e,n){e[ro]+=n;let o=e,a=e[bi];for(;null!==a&&(1===n&&1===o[ro]||-1===n&&0===o[ro]);)a[ro]+=n,o=a,a=a[bi]}const E={lFrame:Kr(null),bindingsEnabled:!0};function Tn(){return E.bindingsEnabled}function z(){return E.lFrame.lView}function ee(){return E.lFrame.tView}function q(e){return E.lFrame.contextLView=e,e[Pn]}function Ae(e){return E.lFrame.contextLView=null,e}function Mt(){let e=Cn();for(;null!==e&&64===e.type;)e=e.parent;return e}function Cn(){return E.lFrame.currentTNode}function hi(){const e=E.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function Bi(e,n){const o=E.lFrame;o.currentTNode=e,o.isParent=n}function ir(){return E.lFrame.isParent}function or(){E.lFrame.isParent=!1}function Pi(){const e=E.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function fo(){return E.lFrame.bindingIndex}function Jo(){return E.lFrame.bindingIndex++}function ur(e){const n=E.lFrame,o=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,o}function gr(e){E.lFrame.inI18n=e}function wr(e,n){const o=E.lFrame;o.bindingIndex=o.bindingRootIndex=e,Ro(n)}function Ro(e){E.lFrame.currentDirectiveIndex=e}function br(){return E.lFrame.currentQueryIndex}function zr(e){E.lFrame.currentQueryIndex=e}function zn(e){const n=e[pn];return 2===n.type?n.declTNode:1===n.type?e[_i]:null}function Qo(e,n,o){if(o&yt.SkipSelf){let c=n,m=e;for(;!(c=c.parent,null!==c||o&yt.Host||(c=zn(m),null===c||(m=m[Yi],10&c.type))););if(null===c)return!1;n=c,e=m}const a=E.lFrame=ps();return a.currentTNode=n,a.lView=e,!0}function Dr(e){const n=ps(),o=e[pn];E.lFrame=n,n.currentTNode=o.firstChild,n.lView=e,n.tView=o,n.contextLView=e,n.bindingIndex=o.bindingStartIndex,n.inI18n=!1}function ps(){const e=E.lFrame,n=null===e?null:e.child;return null===n?Kr(e):n}function Kr(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function Qr(){const e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Nr=Qr;function hs(){const e=Qr();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Co(){return E.lFrame.selectedIndex}function Sr(e){E.lFrame.selectedIndex=e}function Wi(){const e=E.lFrame;return Xi(e.tView,e.selectedIndex)}function ms(e,n){for(let o=n.directiveStart,a=n.directiveEnd;o<a;o++){const m=e.data[o].type.prototype,{ngAfterContentInit:O,ngAfterContentChecked:H,ngAfterViewInit:X,ngAfterViewChecked:he,ngOnDestroy:Ie}=m;O&&(e.contentHooks??(e.contentHooks=[])).push(-o,O),H&&((e.contentHooks??(e.contentHooks=[])).push(o,H),(e.contentCheckHooks??(e.contentCheckHooks=[])).push(o,H)),X&&(e.viewHooks??(e.viewHooks=[])).push(-o,X),he&&((e.viewHooks??(e.viewHooks=[])).push(o,he),(e.viewCheckHooks??(e.viewCheckHooks=[])).push(o,he)),null!=Ie&&(e.destroyHooks??(e.destroyHooks=[])).push(o,Ie)}}function Ls(e,n,o){ge(e,n,3,o)}function Xr(e,n,o,a){(3&e[$n])===o&&ge(e,n,o,a)}function Z(e,n){let o=e[$n];(3&o)===n&&(o&=2047,o+=1,e[$n]=o)}function ge(e,n,o,a){const m=a??-1,O=n.length-1;let H=0;for(let X=void 0!==a?65535&e[je]:0;X<O;X++)if("number"==typeof n[X+1]){if(H=n[X],null!=a&&H>=a)break}else n[X]<0&&(e[je]+=65536),(H<m||-1==m)&&(te(e,o,n,X),e[je]=(4294901760&e[je])+X+2),X++}function te(e,n,o,a){const c=o[a]<0,m=o[a+1],H=e[c?-o[a]:o[a]];if(c){if(e[$n]>>11<e[je]>>16&&(3&e[$n])===n){e[$n]+=2048,gt(4,H,m);try{m.call(H)}finally{gt(5,H,m)}}}else{gt(4,H,m);try{m.call(H)}finally{gt(5,H,m)}}}const xe=-1;class it{constructor(n,o,a){this.factory=n,this.resolving=!1,this.canSeeViewProviders=o,this.injectImpl=a}}function Vi(e,n,o){let a=0;for(;a<o.length;){const c=o[a];if("number"==typeof c){if(0!==c)break;a++;const m=o[a++],O=o[a++],H=o[a++];e.setAttribute(n,O,H,m)}else{const m=c,O=o[++a];_r(m)?e.setProperty(n,m,O):e.setAttribute(n,m,O),a++}}return a}function mo(e){return 3===e||4===e||6===e}function _r(e){return 64===e.charCodeAt(0)}function zo(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let o=-1;for(let a=0;a<n.length;a++){const c=n[a];"number"==typeof c?o=c:0===o||Ar(e,o,c,null,-1===o||2===o?n[++a]:null)}}return e}function Ar(e,n,o,a,c){let m=0,O=e.length;if(-1===n)O=-1;else for(;m<e.length;){const H=e[m++];if("number"==typeof H){if(H===n){O=-1;break}if(H>n){O=m-1;break}}}for(;m<e.length;){const H=e[m];if("number"==typeof H)break;if(H===o){if(null===a)return void(null!==c&&(e[m+1]=c));if(a===e[m+1])return void(e[m+2]=c)}m++,null!==a&&m++,null!==c&&m++}-1!==O&&(e.splice(O,0,n),m=O+1),e.splice(m++,0,o),null!==a&&e.splice(m++,0,a),null!==c&&e.splice(m++,0,c)}function Ko(e){return e!==xe}function po(e){return 32767&e}function Po(e,n){let o=function yr(e){return e>>16}(e),a=n;for(;o>0;)a=a[Yi],o--;return a}let gs=!0;function ks(e){const n=gs;return gs=e,n}const _s=255,ys=5;let la=0;const vr={};function vs(e,n){const o=ca(e,n);if(-1!==o)return o;const a=n[pn];a.firstCreatePass&&(e.injectorIndex=n.length,Ks(a.data,e),Ks(n,null),Ks(a.blueprint,null));const c=ua(e,n),m=e.injectorIndex;if(Ko(c)){const O=po(c),H=Po(c,n),X=H[pn].data;for(let he=0;he<8;he++)n[m+he]=H[O+he]|X[O+he]}return n[m+8]=c,m}function Ks(e,n){e.push(0,0,0,0,0,0,0,0,n)}function ca(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function ua(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let o=0,a=null,c=n;for(;null!==c;){if(a=dr(c),null===a)return xe;if(o++,c=c[Yi],-1!==a.injectorIndex)return a.injectorIndex|o<<16}return xe}function es(e,n,o){!function Za(e,n,o){let a;"string"==typeof o?a=o.charCodeAt(0)||0:o.hasOwnProperty(Xt)&&(a=o[Xt]),null==a&&(a=o[Xt]=la++);const c=a&_s;n.data[e+(c>>ys)]|=1<<c}(e,n,o)}function Lr(e,n,o){if(o&yt.Optional||void 0!==e)return e;s()}function Fs(e,n,o,a){if(o&yt.Optional&&void 0===a&&(a=null),!(o&(yt.Self|yt.Host))){const c=e[lo],m=Jt(void 0);try{return c?c.get(n,a,o&yt.Optional):en(n,a,o&yt.Optional)}finally{Jt(m)}}return Lr(a,0,o)}function Cs(e,n,o,a=yt.Default,c){if(null!==e){if(1024&n[$n]){const O=function Al(e,n,o,a,c){let m=e,O=n;for(;null!==m&&null!==O&&1024&O[$n]&&!(256&O[$n]);){const H=da(m,O,o,a|yt.Self,vr);if(H!==vr)return H;let X=m.parent;if(!X){const he=O[Nt];if(he){const Ie=he.get(o,vr,a);if(Ie!==vr)return Ie}X=dr(O),O=O[Yi]}m=X}return c}(e,n,o,a,vr);if(O!==vr)return O}const m=da(e,n,o,a,vr);if(m!==vr)return m}return Fs(n,o,a,c)}function da(e,n,o,a,c){const m=function jr(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(Xt)?e[Xt]:void 0;return"number"==typeof n?n>=0?n&_s:js:n}(o);if("function"==typeof m){if(!Qo(n,e,a))return a&yt.Host?Lr(c,0,a):Fs(n,o,a,c);try{const O=m(a);if(null!=O||a&yt.Optional)return O;s()}finally{Nr()}}else if("number"==typeof m){let O=null,H=ca(e,n),X=xe,he=a&yt.Host?n[li][_i]:null;for((-1===H||a&yt.SkipSelf)&&(X=-1===H?ua(e,n):n[H+8],X!==xe&&ha(a,!1)?(O=n[pn],H=po(X),n=Po(X,n)):H=-1);-1!==H;){const Ie=n[pn];if(Us(m,H,Ie.data)){const et=pa(H,n,o,O,a,he);if(et!==vr)return et}X=n[H+8],X!==xe&&ha(a,n[pn].data[H+8]===he)&&Us(m,H,n)?(O=Ie,H=po(X),n=Po(X,n)):H=-1}}return c}function pa(e,n,o,a,c,m){const O=n[pn],H=O.data[e+8],Ie=Es(H,O,o,null==a?Vo(H)&&gs:a!=O&&0!=(3&H.type),c&yt.Host&&m===H);return null!==Ie?oo(n,O,Ie,H):vr}function Es(e,n,o,a,c){const m=e.providerIndexes,O=n.data,H=1048575&m,X=e.directiveStart,Ie=m>>20,mt=c?H+Ie:e.directiveEnd;for(let Rt=a?H:H+Ie;Rt<mt;Rt++){const qt=O[Rt];if(Rt<X&&o===qt||Rt>=X&&qt.type===o)return Rt}if(c){const Rt=O[X];if(Rt&&io(Rt)&&Rt.type===o)return X}return null}function oo(e,n,o,a){let c=e[o];const m=n.data;if(function Lt(e){return e instanceof it}(c)){const O=c;O.resolving&&function k(e,n){const o=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new b(-200,`Circular dependency in DI detected for ${e}${o}`)}(function I(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():W(e)}(m[o]));const H=ks(O.canSeeViewProviders);O.resolving=!0;const X=O.injectImpl?Jt(O.injectImpl):null;Qo(e,a,yt.Default);try{c=e[o]=O.factory(void 0,m,e,a),n.firstCreatePass&&o>=a.directiveStart&&function zs(e,n,o){const{ngOnChanges:a,ngOnInit:c,ngDoCheck:m}=n.type.prototype;if(a){const O=Ki(n);(o.preOrderHooks??(o.preOrderHooks=[])).push(e,O),(o.preOrderCheckHooks??(o.preOrderCheckHooks=[])).push(e,O)}c&&(o.preOrderHooks??(o.preOrderHooks=[])).push(0-e,c),m&&((o.preOrderHooks??(o.preOrderHooks=[])).push(e,m),(o.preOrderCheckHooks??(o.preOrderCheckHooks=[])).push(e,m))}(o,m[o],n)}finally{null!==X&&Jt(X),ks(H),O.resolving=!1,Nr()}}return c}function Us(e,n,o){return!!(o[n+(e>>ys)]&1<<e)}function ha(e,n){return!(e&yt.Self||e&yt.Host&&n)}class ts{constructor(n,o){this._tNode=n,this._lView=o}get(n,o,a){return Cs(this._tNode,this._lView,n,ot(a),o)}}function js(){return new ts(Mt(),z())}function qa(e){return Mn(()=>{const n=e.prototype.constructor,o=n[nt]||fa(n),a=Object.prototype;let c=Object.getPrototypeOf(e.prototype).constructor;for(;c&&c!==a;){const m=c[nt]||fa(c);if(m&&m!==o)return m;c=Object.getPrototypeOf(c)}return m=>new m})}function fa(e){return f(e)?()=>{const n=fa(g(e));return n&&n()}:qn(e)}function dr(e){const n=e[pn],o=n.type;return 2===o?n.declTNode:1===o?e[_i]:null}function bs(e){return function Ya(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const o=e.attrs;if(o){const a=o.length;let c=0;for(;c<a;){const m=o[c];if(mo(m))break;if(0===m)c+=2;else if("number"==typeof m)for(c++;c<a&&"string"==typeof o[c];)c++;else{if(m===n)return o[c+1];c+=2}}}return null}(Mt(),e)}const kr="__parameters__";function Xo(e,n,o){return Mn(()=>{const a=function Ss(e){return function(...o){if(e){const a=e(...o);for(const c in a)this[c]=a[c]}}}(n);function c(...m){if(this instanceof c)return a.apply(this,m),this;const O=new c(...m);return H.annotation=O,H;function H(X,he,Ie){const et=X.hasOwnProperty(kr)?X[kr]:Object.defineProperty(X,kr,{value:[]})[kr];for(;et.length<=Ie;)et.push(null);return(et[Ie]=et[Ie]||[]).push(O),X}}return o&&(c.prototype=Object.create(o.prototype)),c.prototype.ngMetadataName=e,c.annotationCls=c,c})}class to{constructor(n,o){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof o?this.__NG_ELEMENT_ID__=o:void 0!==o&&(this.\u0275prov=lt({token:this,providedIn:o.providedIn||"root",factory:o.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Fr(e,n){e.forEach(o=>Array.isArray(o)?Fr(o,n):n(o))}function Ms(e,n,o){n>=e.length?e.push(o):e.splice(n,0,o)}function is(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function os(e,n){const o=[];for(let a=0;a<e;a++)o.push(n);return o}function er(e,n,o){let a=Ts(e,n);return a>=0?e[1|a]=o:(a=~a,function il(e,n,o,a){let c=e.length;if(c==n)e.push(o,a);else if(1===c)e.push(a,e[0]),e[0]=o;else{for(c--,e.push(e[c-1],e[c]);c>n;)e[c]=e[c-2],c--;e[n]=o,e[n+1]=a}}(e,a,n,o)),a}function Ys(e,n){const o=Ts(e,n);if(o>=0)return e[1|o]}function Ts(e,n){return function U(e,n,o){let a=0,c=e.length>>o;for(;c!==a;){const m=a+(c-a>>1),O=e[m<<o];if(n===O)return m<<o;O>n?c=m:a=m+1}return~(c<<o)}(e,n,1)}const In=at(Xo("Inject",e=>({token:e})),-1),xi=at(Xo("Optional"),8),ar=at(Xo("SkipSelf"),4);var Br=(()=>((Br=Br||{})[Br.Important=1]="Important",Br[Br.DashCase=2]="DashCase",Br))();const Wd=/^>|^->|<!--|-->|--!>|<!-$/g,$c=/(<|>)/,zc="\u200b$1\u200b";const al=new Map;let jc=0;const S="__ngContext__";function B(e,n){Hi(n)?(e[S]=n[_t],function Zc(e){al.set(e[_t],e)}(n)):e[S]=n}let Bn;function Ti(e,n){return Bn(e,n)}function Qi(e){const n=e[bi];return co(n)?n[bi]:n}function rs(e){return tr(e[Si])}function Tr(e){return tr(e[no])}function tr(e){for(;null!==e&&!co(e);)e=e[no];return e}function hr(e,n,o,a,c){if(null!=a){let m,O=!1;co(a)?m=a:Hi(a)&&(O=!0,a=a[Di]);const H=mi(a);0===e&&null!==o?null==c?as(n,o,H):Eo(n,o,H,c||null,!0):1===e&&null!==o?Eo(n,o,H,c||null,!0):2===e?Xc(n,H,O):3===e&&n.destroyNode(H),null!=m&&function Vg(e,n,o,a,c){const m=o[yi];m!==mi(o)&&hr(n,e,a,m,c);for(let H=wi;H<o.length;H++){const X=o[H];cl(X[pn],X,e,n,a,m)}}(n,e,m,o,c)}}function Ir(e,n){return e.createText(n)}function Vr(e,n,o){e.setValue(n,o)}function $l(e,n){return e.createComment(function Kc(e){return e.replace(Wd,n=>n.replace($c,zc))}(n))}function ws(e,n,o){return e.createElement(n,o)}function ki(e,n){const o=e[oi],a=o.indexOf(n),c=n[bi];512&n[$n]&&(n[$n]&=-513,We(c,-1)),o.splice(a,1)}function Ao(e,n){if(e.length<=wi)return;const o=wi+n,a=e[o];if(a){const c=a[Io];null!==c&&c!==e&&ki(c,a),n>0&&(e[o-1][no]=a[no]);const m=is(e,wi+n);!function xs(e,n){cl(e,n,n[Jn],2,null,null),n[Di]=null,n[_i]=null}(a[pn],a);const O=m[Tt];null!==O&&O.detachView(m[pn]),a[bi]=null,a[no]=null,a[$n]&=-65}return a}function Rr(e,n){if(!(128&n[$n])){const o=n[Jn];o.destroyNode&&cl(e,n,o,3,null,null),function Wn(e){let n=e[Si];if(!n)return cr(e[pn],e);for(;n;){let o=null;if(Hi(n))o=n[Si];else{const a=n[wi];a&&(o=a)}if(!o){for(;n&&!n[no]&&n!==e;)Hi(n)&&cr(n[pn],n),n=n[bi];null===n&&(n=e),Hi(n)&&cr(n[pn],n),o=n&&n[no]}n=o}}(n)}}function cr(e,n){if(!(128&n[$n])){n[$n]&=-65,n[$n]|=128,function _o(e,n){let o;if(null!=e&&null!=(o=e.destroyHooks))for(let a=0;a<o.length;a+=2){const c=n[o[a]];if(!(c instanceof it)){const m=o[a+1];if(Array.isArray(m))for(let O=0;O<m.length;O+=2){const H=c[m[O]],X=m[O+1];gt(4,H,X);try{X.call(H)}finally{gt(5,H,X)}}else{gt(4,c,m);try{m.call(c)}finally{gt(5,c,m)}}}}}(e,n),function ss(e,n){const o=e.cleanup,a=n[zi];let c=-1;if(null!==o)for(let m=0;m<o.length-1;m+=2)if("string"==typeof o[m]){const O=o[m+3];O>=0?a[c=O]():a[c=-O].unsubscribe(),m+=2}else{const O=a[c=o[m+1]];o[m].call(O)}if(null!==a){for(let m=c+1;m<a.length;m++)(0,a[m])();n[zi]=null}}(e,n),1===n[pn].type&&n[Jn].destroy();const o=n[Io];if(null!==o&&co(n[bi])){o!==n[bi]&&ki(o,n);const a=n[Tt];null!==a&&a.detachView(e)}!function Yc(e){al.delete(e[_t])}(n)}}function ll(e,n,o){return jl(e,n.parent,o)}function jl(e,n,o){let a=n;for(;null!==a&&40&a.type;)a=(n=a).parent;if(null===a)return o[Di];{const{componentOffset:c}=a;if(c>-1){const{encapsulation:m}=e.data[a.directiveStart+c];if(m===Rn.None||m===Rn.Emulated)return null}return ji(a,o)}}function Eo(e,n,o,a,c){e.insertBefore(n,o,a,c)}function as(e,n,o){e.appendChild(n,o)}function Cr(e,n,o,a,c){null!==a?Eo(e,n,o,a,c):as(e,n,o)}function Zl(e,n){return e.parentNode(n)}function Zd(e,n,o){return qd(e,n,o)}function Yd(e,n,o){return 40&e.type?ji(e,o):null}let Jc,Jl,nu,Ql,qd=Yd;function Jd(e,n){qd=e,Jc=n}function Yl(e,n,o,a){const c=ll(e,a,n),m=n[Jn],H=Zd(a.parent||n[_i],a,n);if(null!=c)if(Array.isArray(o))for(let X=0;X<o.length;X++)Cr(m,c,o[X],H,!1);else Cr(m,c,o,H,!1);void 0!==Jc&&Jc(m,a,n,o,c)}function ql(e,n){if(null!==n){const o=n.type;if(3&o)return ji(n,e);if(4&o)return Qc(-1,e[n.index]);if(8&o){const a=n.child;if(null!==a)return ql(e,a);{const c=e[n.index];return co(c)?Qc(-1,c):mi(c)}}if(32&o)return Ti(n,e)()||mi(e[n.index]);{const a=Qd(e,n);return null!==a?Array.isArray(a)?a[0]:ql(Qi(e[li]),a):ql(e,n.next)}}return null}function Qd(e,n){return null!==n?e[li][_i].projection[n.projection]:null}function Qc(e,n){const o=wi+e+1;if(o<n.length){const a=n[o],c=a[pn].firstChild;if(null!==c)return ql(a,c)}return n[yi]}function Xc(e,n,o){const a=Zl(e,n);a&&function Ea(e,n,o,a){e.removeChild(n,o,a)}(e,a,n,o)}function eu(e,n,o,a,c,m,O){for(;null!=o;){const H=a[o.index],X=o.type;if(O&&0===n&&(H&&B(mi(H),a),o.flags|=2),32!=(32&o.flags))if(8&X)eu(e,n,o.child,a,c,m,!1),hr(n,e,c,H,m);else if(32&X){const he=Ti(o,a);let Ie;for(;Ie=he();)hr(n,e,c,Ie,m);hr(n,e,c,H,m)}else 16&X?Xd(e,n,a,o,c,m):hr(n,e,c,H,m);o=O?o.projectionNext:o.next}}function cl(e,n,o,a,c,m){eu(o,a,e.firstChild,n,c,m,!1)}function Xd(e,n,o,a,c,m){const O=o[li],X=O[_i].projection[a.projection];if(Array.isArray(X))for(let he=0;he<X.length;he++)hr(n,e,c,X[he],m);else eu(e,n,X,O[bi],c,m,!0)}function ep(e,n,o){""===o?e.removeAttribute(n,"class"):e.setAttribute(n,"class",o)}function tp(e,n,o){const{mergedAttrs:a,classes:c,styles:m}=o;null!==a&&Vi(e,n,a),null!==c&&ep(e,n,c),null!==m&&function Gg(e,n,o){e.setAttribute(n,"style",o)}(e,n,m)}function ba(e){return function tu(){if(void 0===Jl&&(Jl=null,En.trustedTypes))try{Jl=En.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Jl}()?.createHTML(e)||e}function jg(e){nu=e}function np(){return void 0!==nu?nu:typeof document<"u"?document:void 0}function iu(){if(void 0===Ql&&(Ql=null,En.trustedTypes))try{Ql=En.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ql}function ip(e){return iu()?.createHTML(e)||e}function rp(e){return iu()?.createScriptURL(e)||e}class Xs{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${T})`}}class Wg extends Xs{getTypeName(){return"HTML"}}class Zg extends Xs{getTypeName(){return"Style"}}class Yg extends Xs{getTypeName(){return"Script"}}class qg extends Xs{getTypeName(){return"URL"}}class Jg extends Xs{getTypeName(){return"ResourceURL"}}function Ds(e){return e instanceof Xs?e.changingThisBreaksApplicationSecurity:e}function Sa(e,n){const o=function Qg(e){return e instanceof Xs&&e.getTypeName()||null}(e);if(null!=o&&o!==n){if("ResourceURL"===o&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${o} (see ${T})`)}return o===n}function Xg(e){return new Wg(e)}function e_(e){return new Zg(e)}function t_(e){return new Yg(e)}function n_(e){return new qg(e)}function i_(e){return new Jg(e)}function sp(e){const n=new r_(e);return function s_(){try{return!!(new window.DOMParser).parseFromString(ba(""),"text/html")}catch{return!1}}()?new o_(n):n}class o_{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const o=(new window.DOMParser).parseFromString(ba(n),"text/html").body;return null===o?this.inertDocumentHelper.getInertBodyElement(n):(o.removeChild(o.firstChild),o)}catch{return null}}}class r_{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const o=this.inertDocument.createElement("template");return o.innerHTML=ba(n),o}}const a_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Xl(e){return(e=String(e)).match(a_)?e:"unsafe:"+e}function As(e){const n={};for(const o of e.split(","))n[o]=!0;return n}function ul(...e){const n={};for(const o of e)for(const a in o)o.hasOwnProperty(a)&&(n[a]=!0);return n}const ap=As("area,br,col,hr,img,wbr"),lp=As("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),cp=As("rp,rt"),ou=ul(ap,ul(lp,As("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ul(cp,As("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ul(cp,lp)),ru=As("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),up=ul(ru,As("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),As("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),l_=As("script,style,template");class c_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let o=n.firstChild,a=!0;for(;o;)if(o.nodeType===Node.ELEMENT_NODE?a=this.startElement(o):o.nodeType===Node.TEXT_NODE?this.chars(o.nodeValue):this.sanitizedSomething=!0,a&&o.firstChild)o=o.firstChild;else for(;o;){o.nodeType===Node.ELEMENT_NODE&&this.endElement(o);let c=this.checkClobberedElement(o,o.nextSibling);if(c){o=c;break}o=this.checkClobberedElement(o,o.parentNode)}return this.buf.join("")}startElement(n){const o=n.nodeName.toLowerCase();if(!ou.hasOwnProperty(o))return this.sanitizedSomething=!0,!l_.hasOwnProperty(o);this.buf.push("<"),this.buf.push(o);const a=n.attributes;for(let c=0;c<a.length;c++){const m=a.item(c),O=m.name,H=O.toLowerCase();if(!up.hasOwnProperty(H)){this.sanitizedSomething=!0;continue}let X=m.value;ru[H]&&(X=Xl(X)),this.buf.push(" ",O,'="',dp(X),'"')}return this.buf.push(">"),!0}endElement(n){const o=n.nodeName.toLowerCase();ou.hasOwnProperty(o)&&!ap.hasOwnProperty(o)&&(this.buf.push("</"),this.buf.push(o),this.buf.push(">"))}chars(n){this.buf.push(dp(n))}checkClobberedElement(n,o){if(o&&(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return o}}const u_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d_=/([^\#-~ |!])/g;function dp(e){return e.replace(/&/g,"&amp;").replace(u_,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(d_,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ec;function pp(e,n){let o=null;try{ec=ec||sp(e);let a=n?String(n):"";o=ec.getInertBodyElement(a);let c=5,m=a;do{if(0===c)throw new Error("Failed to sanitize html because the input is unstable");c--,a=m,m=o.innerHTML,o=ec.getInertBodyElement(a)}while(a!==m);return ba((new c_).sanitizeChildren(su(o)||o))}finally{if(o){const a=su(o)||o;for(;a.firstChild;)a.removeChild(a.firstChild)}}}function su(e){return"content"in e&&function p_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var No=(()=>((No=No||{})[No.NONE=0]="NONE",No[No.HTML=1]="HTML",No[No.STYLE=2]="STYLE",No[No.SCRIPT=3]="SCRIPT",No[No.URL=4]="URL",No[No.RESOURCE_URL=5]="RESOURCE_URL",No))();function hp(e){const n=dl();return n?ip(n.sanitize(No.HTML,e)||""):Sa(e,"HTML")?ip(Ds(e)):pp(np(),W(e))}function fp(e){const n=dl();return n?n.sanitize(No.URL,e)||"":Sa(e,"URL")?Ds(e):Xl(W(e))}function au(e){const n=dl();if(n)return rp(n.sanitize(No.RESOURCE_URL,e)||"");if(Sa(e,"ResourceURL"))return rp(Ds(e));throw new b(904,!1)}function mp(e,n,o){return function __(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?au:fp}(n,o)(e)}function dl(){const e=z();return e&&e[Ui]}const lu=new to("ENVIRONMENT_INITIALIZER"),gp=new to("INJECTOR",-1),_p=new to("INJECTOR_DEF_TYPES");class yp{get(n,o=$){if(o===$){const a=new Error(`NullInjectorError: No provider for ${u(n)}!`);throw a.name="NullInjectorError",a}return o}}function y_(e){return{\u0275providers:e}}function v_(...e){return{\u0275providers:vp(0,e),\u0275fromNgModule:!0}}function vp(e,...n){const o=[],a=new Set;let c;return Fr(n,m=>{const O=m;cu(O,o,[],a)&&(c||(c=[]),c.push(O))}),void 0!==c&&Cp(c,o),o}function Cp(e,n){for(let o=0;o<e.length;o++){const{providers:c}=e[o];uu(c,m=>{n.push(m)})}}function cu(e,n,o,a){if(!(e=g(e)))return!1;let c=null,m=ct(e);const O=!m&&xn(e);if(m||O){if(O&&!O.standalone)return!1;c=e}else{const X=e.ngModule;if(m=ct(X),!m)return!1;c=X}const H=a.has(c);if(O){if(H)return!1;if(a.add(c),O.dependencies){const X="function"==typeof O.dependencies?O.dependencies():O.dependencies;for(const he of X)cu(he,n,o,a)}}else{if(!m)return!1;{if(null!=m.imports&&!H){let he;a.add(c);try{Fr(m.imports,Ie=>{cu(Ie,n,o,a)&&(he||(he=[]),he.push(Ie))})}finally{}void 0!==he&&Cp(he,n)}if(!H){const he=qn(c)||(()=>new c);n.push({provide:c,useFactory:he,deps:ut},{provide:_p,useValue:c,multi:!0},{provide:lu,useValue:()=>Ht(c),multi:!0})}const X=m.providers;null==X||H||uu(X,Ie=>{n.push(Ie)})}}return c!==e&&void 0!==e.providers}function uu(e,n){for(let o of e)d(o)&&(o=o.\u0275providers),Array.isArray(o)?uu(o,n):n(o)}const C_=v({provide:String,useValue:v});function du(e){return null!==e&&"object"==typeof e&&C_ in e}function ea(e){return"function"==typeof e}const pu=new to("Set Injector scope."),tc={},b_={};let hu;function nc(){return void 0===hu&&(hu=new yp),hu}class ta{}class Sp extends ta{get destroyed(){return this._destroyed}constructor(n,o,a,c){super(),this.parent=o,this.source=a,this.scopes=c,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,mu(n,O=>this.processProvider(O)),this.records.set(gp,Ma(void 0,this)),c.has("environment")&&this.records.set(ta,Ma(void 0,this));const m=this.records.get(pu);null!=m&&"string"==typeof m.value&&this.scopes.add(m.value),this.injectorDefTypes=new Set(this.get(_p.multi,ut,yt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const o=vn(this),a=Jt(void 0);try{return n()}finally{vn(o),Jt(a)}}get(n,o=$,a=yt.Default){this.assertNotDestroyed(),a=ot(a);const c=vn(this),m=Jt(void 0);try{if(!(a&yt.SkipSelf)){let H=this.records.get(n);if(void 0===H){const X=function x_(e){return"function"==typeof e||"object"==typeof e&&e instanceof to}(n)&&Bt(n);H=X&&this.injectableDefInScope(X)?Ma(fu(n),tc):null,this.records.set(n,H)}if(null!=H)return this.hydrate(n,H)}return(a&yt.Self?nc():this.parent).get(n,o=a&yt.Optional&&o===$?null:o)}catch(O){if("NullInjectorError"===O.name){if((O[Ee]=O[Ee]||[]).unshift(u(n)),c)throw O;return function Ut(e,n,o,a){const c=e[Ee];throw n[on]&&c.unshift(n[on]),e.message=function gn(e,n,o,a=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==tn?e.slice(2):e;let c=u(n);if(Array.isArray(n))c=n.map(u).join(" -> ");else if("object"==typeof n){let m=[];for(let O in n)if(n.hasOwnProperty(O)){let H=n[O];m.push(O+":"+("string"==typeof H?JSON.stringify(H):u(H)))}c=`{${m.join(", ")}}`}return`${o}${a?"("+a+")":""}[${c}]: ${e.replace(Zt,"\n  ")}`}("\n"+e.message,c,o,a),e[Ge]=c,e[Ee]=null,e}(O,n,"R3InjectorError",this.source)}throw O}finally{Jt(m),vn(c)}}resolveInjectorInitializers(){const n=vn(this),o=Jt(void 0);try{const a=this.get(lu.multi,ut,yt.Self);for(const c of a)c()}finally{vn(n),Jt(o)}}toString(){const n=[],o=this.records;for(const a of o.keys())n.push(u(a));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(n){let o=ea(n=g(n))?n:g(n&&n.provide);const a=function M_(e){return du(e)?Ma(void 0,e.useValue):Ma(Mp(e),tc)}(n);if(ea(n)||!0!==n.multi)this.records.get(o);else{let c=this.records.get(o);c||(c=Ma(void 0,tc,!0),c.factory=()=>Be(c.multi),this.records.set(o,c)),o=n,c.multi.push(n)}this.records.set(o,a)}hydrate(n,o){return o.value===tc&&(o.value=b_,o.value=o.factory()),"object"==typeof o.value&&o.value&&function w_(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(o.value)&&this._ngOnDestroyHooks.add(o.value),o.value}injectableDefInScope(n){if(!n.providedIn)return!1;const o=g(n.providedIn);return"string"==typeof o?"any"===o||this.scopes.has(o):this.injectorDefTypes.has(o)}}function fu(e){const n=Bt(e),o=null!==n?n.factory:qn(e);if(null!==o)return o;if(e instanceof to)throw new b(204,!1);if(e instanceof Function)return function S_(e){const n=e.length;if(n>0)throw os(n,"?"),new b(204,!1);const o=function sn(e){return e&&(e[Ve]||e[Et])||null}(e);return null!==o?()=>o.factory(e):()=>new e}(e);throw new b(204,!1)}function Mp(e,n,o){let a;if(ea(e)){const c=g(e);return qn(c)||fu(c)}if(du(e))a=()=>g(e.useValue);else if(function bp(e){return!(!e||!e.useFactory)}(e))a=()=>e.useFactory(...Be(e.deps||[]));else if(function Ep(e){return!(!e||!e.useExisting)}(e))a=()=>Ht(g(e.useExisting));else{const c=g(e&&(e.useClass||e.provide));if(!function T_(e){return!!e.deps}(e))return qn(c)||fu(c);a=()=>new c(...Be(e.deps))}return a}function Ma(e,n,o=!1){return{factory:e,value:n,multi:o?[]:void 0}}function mu(e,n){for(const o of e)Array.isArray(o)?mu(o,n):o&&d(o)?mu(o.\u0275providers,n):n(o)}class D_{}class Tp{}class O_{resolveComponentFactory(n){throw function A_(e){const n=Error(`No component factory found for ${u(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let pl=(()=>{class e{}return e.NULL=new O_,e})();function I_(){return Ta(Mt(),z())}function Ta(e,n){return new hl(ji(e,n))}let hl=(()=>{class e{constructor(o){this.nativeElement=o}}return e.__NG_ELEMENT_ID__=I_,e})();function R_(e){return e instanceof hl?e.nativeElement:e}class xp{}let P_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function N_(){const e=z(),o=Ji(Mt().index,e);return(Hi(o)?o:e)[Jn]}(),e})(),L_=(()=>{class e{}return e.\u0275prov=lt({token:e,providedIn:"root",factory:()=>null}),e})();class Dp{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const k_=new Dp("15.2.10"),gu={},_u="ngOriginalError";function yu(e){return e[_u]}class fl{constructor(){this._console=console}handleError(n){const o=this._findOriginalError(n);this._console.error("ERROR",n),o&&this._console.error("ORIGINAL ERROR",o)}_findOriginalError(n){let o=n&&yu(n);for(;o&&yu(o);)o=yu(o);return o||null}}function Ap(e){return e.ownerDocument}function Os(e){return e instanceof Function?e():e}function Ip(e,n,o){let a=e.length;for(;;){const c=e.indexOf(n,o);if(-1===c)return c;if(0===c||e.charCodeAt(c-1)<=32){const m=n.length;if(c+m===a||e.charCodeAt(c+m)<=32)return c}o=c+1}}const Rp="ng-template";function j_(e,n,o){let a=0,c=!0;for(;a<e.length;){let m=e[a++];if("string"==typeof m&&c){const O=e[a++];if(o&&"class"===m&&-1!==Ip(O.toLowerCase(),n,0))return!0}else{if(1===m){for(;a<e.length&&"string"==typeof(m=e[a++]);)if(m.toLowerCase()===n)return!0;return!1}"number"==typeof m&&(c=!1)}}return!1}function Pp(e){return 4===e.type&&e.value!==Rp}function W_(e,n,o){return n===(4!==e.type||o?e.value:Rp)}function Z_(e,n,o){let a=4;const c=e.attrs||[],m=function J_(e){for(let n=0;n<e.length;n++)if(mo(e[n]))return n;return e.length}(c);let O=!1;for(let H=0;H<n.length;H++){const X=n[H];if("number"!=typeof X){if(!O)if(4&a){if(a=2|1&a,""!==X&&!W_(e,X,o)||""===X&&1===n.length){if(Wr(a))return!1;O=!0}}else{const he=8&a?X:n[++H];if(8&a&&null!==e.attrs){if(!j_(e.attrs,he,o)){if(Wr(a))return!1;O=!0}continue}const et=Y_(8&a?"class":X,c,Pp(e),o);if(-1===et){if(Wr(a))return!1;O=!0;continue}if(""!==he){let mt;mt=et>m?"":c[et+1].toLowerCase();const Rt=8&a?mt:null;if(Rt&&-1!==Ip(Rt,he,0)||2&a&&he!==mt){if(Wr(a))return!1;O=!0}}}}else{if(!O&&!Wr(a)&&!Wr(X))return!1;if(O&&Wr(X))continue;O=!1,a=X|1&a}}return Wr(a)||O}function Wr(e){return 0==(1&e)}function Y_(e,n,o,a){if(null===n)return-1;let c=0;if(a||!o){let m=!1;for(;c<n.length;){const O=n[c];if(O===e)return c;if(3===O||6===O)m=!0;else{if(1===O||2===O){let H=n[++c];for(;"string"==typeof H;)H=n[++c];continue}if(4===O)break;if(0===O){c+=4;continue}}c+=m?1:2}return-1}return function Q_(e,n){let o=e.indexOf(4);if(o>-1)for(o++;o<e.length;){const a=e[o];if("number"==typeof a)return-1;if(a===n)return o;o++}return-1}(n,e)}function Np(e,n,o=!1){for(let a=0;a<n.length;a++)if(Z_(e,n[a],o))return!0;return!1}function X_(e,n){e:for(let o=0;o<n.length;o++){const a=n[o];if(e.length===a.length){for(let c=0;c<e.length;c++)if(e[c]!==a[c])continue e;return!0}}return!1}function Lp(e,n){return e?":not("+n.trim()+")":n}function e0(e){let n=e[0],o=1,a=2,c="",m=!1;for(;o<e.length;){let O=e[o];if("string"==typeof O)if(2&a){const H=e[++o];c+="["+O+(H.length>0?'="'+H+'"':"")+"]"}else 8&a?c+="."+O:4&a&&(c+=" "+O);else""!==c&&!Wr(O)&&(n+=Lp(m,c),c=""),a=O,m=m||!Wr(a);o++}return""!==c&&(n+=Lp(m,c)),n}const Ei={};function kp(e){Fp(ee(),z(),Co()+e,!1)}function Fp(e,n,o,a){if(!a)if(3==(3&n[$n])){const m=e.preOrderCheckHooks;null!==m&&Ls(n,m,o)}else{const m=e.preOrderHooks;null!==m&&Xr(n,m,0,o)}Sr(o)}function Hp(e,n=null,o=null,a){const c=Gp(e,n,o,a);return c.resolveInjectorInitializers(),c}function Gp(e,n=null,o=null,a,c=new Set){const m=[o||ut,v_(e)];return a=a||("object"==typeof e?void 0:u(e)),new Sp(m,n||nc(),a||null,c)}let na=(()=>{class e{static create(o,a){if(Array.isArray(o))return Hp({name:""},a,o,"");{const c=o.name??"";return Hp({name:c},o.parent,o.providers,c)}}}return e.THROW_IF_NOT_FOUND=$,e.NULL=new yp,e.\u0275prov=lt({token:e,providedIn:"any",factory:()=>Ht(gp)}),e.__NG_ELEMENT_ID__=-1,e})();function Da(e,n=yt.Default){const o=z();return null===o?Ht(e,n):Cs(Mt(),o,g(e),n)}function Yp(){throw new Error("invalid")}function qp(e,n){const o=e.contentQueries;if(null!==o)for(let a=0;a<o.length;a+=2){const m=o[a+1];if(-1!==m){const O=e.data[m];zr(o[a]),O.contentQueries(2,n[m],m)}}}function oc(e,n,o,a,c,m,O,H,X,he,Ie){const et=n.blueprint.slice();return et[Di]=c,et[$n]=76|a,(null!==Ie||e&&1024&e[$n])&&(et[$n]|=1024),fe(et),et[bi]=et[Yi]=e,et[Pn]=o,et[Mo]=O||e&&e[Mo],et[Jn]=H||e&&e[Jn],et[Ui]=X||e&&e[Ui]||null,et[lo]=he||e&&e[lo]||null,et[_i]=m,et[_t]=function Wc(){return jc++}(),et[Nt]=Ie,et[li]=2==n.type?e[li]:et,et}function Aa(e,n,o,a,c){let m=e.data[n];if(null===m)m=Su(e,n,o,a,c),function $r(){return E.lFrame.inI18n}()&&(m.flags|=32);else if(64&m.type){m.type=o,m.value=a,m.attrs=c;const O=hi();m.injectorIndex=null===O?-1:O.injectorIndex}return Bi(m,!0),m}function Su(e,n,o,a,c){const m=Cn(),O=ir(),X=e.data[n]=function x0(e,n,o,a,c,m){return{type:o,index:a,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:c,attrs:m,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,O?m:m&&m.parent,o,n,a,c);return null===e.firstChild&&(e.firstChild=X),null!==m&&(O?null==m.child&&null!==X.parent&&(m.child=X):null===m.next&&(m.next=X,X.prev=m)),X}function ml(e,n,o,a){if(0===o)return-1;const c=n.length;for(let m=0;m<o;m++)n.push(a),e.blueprint.push(a),e.data.push(null);return c}function Mu(e,n,o){Dr(n);try{const a=e.viewQuery;null!==a&&Pu(1,a,o);const c=e.template;null!==c&&Jp(e,n,c,1,o),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&qp(e,n),e.staticViewQueries&&Pu(2,e.viewQuery,o);const m=e.components;null!==m&&function M0(e,n){for(let o=0;o<n.length;o++)W0(e,n[o])}(n,m)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),a}finally{n[$n]&=-5,hs()}}function rc(e,n,o,a){const c=n[$n];if(128!=(128&c)){Dr(n);try{fe(n),function Ni(e){return E.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==o&&Jp(e,n,o,2,a);const O=3==(3&c);if(O){const he=e.preOrderCheckHooks;null!==he&&Ls(n,he,null)}else{const he=e.preOrderHooks;null!==he&&Xr(n,he,0,null),Z(n,0)}if(function K0(e){for(let n=rs(e);null!==n;n=Tr(n)){if(!n[di])continue;const o=n[oi];for(let a=0;a<o.length;a++){const c=o[a];512&c[$n]||We(c[bi],1),c[$n]|=512}}}(n),function z0(e){for(let n=rs(e);null!==n;n=Tr(n))for(let o=wi;o<n.length;o++){const a=n[o],c=a[pn];vo(a)&&rc(c,a,c.template,a[Pn])}}(n),null!==e.contentQueries&&qp(e,n),O){const he=e.contentCheckHooks;null!==he&&Ls(n,he)}else{const he=e.contentHooks;null!==he&&Xr(n,he,1),Z(n,1)}!function b0(e,n){const o=e.hostBindingOpCodes;if(null!==o)try{for(let a=0;a<o.length;a++){const c=o[a];if(c<0)Sr(~c);else{const m=c,O=o[++a],H=o[++a];wr(O,m),H(2,n[m])}}}finally{Sr(-1)}}(e,n);const H=e.components;null!==H&&function S0(e,n){for(let o=0;o<n.length;o++)j0(e,n[o])}(n,H);const X=e.viewQuery;if(null!==X&&Pu(2,X,a),O){const he=e.viewCheckHooks;null!==he&&Ls(n,he)}else{const he=e.viewHooks;null!==he&&Xr(n,he,2),Z(n,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[$n]&=-41,512&n[$n]&&(n[$n]&=-513,We(n[bi],-1))}finally{hs()}}}function Jp(e,n,o,a,c){const m=Co(),O=2&a;try{Sr(-1),O&&n.length>Qt&&Fp(e,n,Qt,!1),gt(O?2:0,c),o(a,c)}finally{Sr(m),gt(O?3:1,c)}}function Tu(e,n,o){if(Bo(n)){const c=n.directiveEnd;for(let m=n.directiveStart;m<c;m++){const O=e.data[m];O.contentQueries&&O.contentQueries(1,o[m],m)}}}function wu(e,n,o){Tn()&&(function N0(e,n,o,a){const c=o.directiveStart,m=o.directiveEnd;Vo(o)&&function H0(e,n,o){const a=ji(n,e),c=Qp(o),m=e[Mo],O=sc(e,oc(e,c,null,o.onPush?32:16,a,n,m,m.createRenderer(a,o),null,null,null));e[n.index]=O}(n,o,e.data[c+o.componentOffset]),e.firstCreatePass||vs(o,n),B(a,n);const O=o.initialInputs;for(let H=c;H<m;H++){const X=e.data[H],he=oo(n,e,H,o);B(he,n),null!==O&&G0(0,H-c,he,X,0,O),io(X)&&(Ji(o.index,n)[Pn]=oo(n,e,H,o))}}(e,n,o,ji(o,n)),64==(64&o.flags)&&ih(e,n,o))}function xu(e,n,o=ji){const a=n.localNames;if(null!==a){let c=n.index+1;for(let m=0;m<a.length;m+=2){const O=a[m+1],H=-1===O?o(n,e):e[O];e[c++]=H}}}function Qp(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=Du(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):n}function Du(e,n,o,a,c,m,O,H,X,he){const Ie=Qt+a,et=Ie+c,mt=function T0(e,n){const o=[];for(let a=0;a<n;a++)o.push(a<e?null:Ei);return o}(Ie,et),Rt="function"==typeof he?he():he;return mt[pn]={type:e,blueprint:mt,template:o,queries:null,viewQuery:H,declTNode:n,data:mt.slice().fill(null,Ie),bindingStartIndex:Ie,expandoStartIndex:et,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof m?m():m,pipeRegistry:"function"==typeof O?O():O,firstChild:null,schemas:X,consts:Rt,incompleteFirstPass:!1}}function Xp(e,n,o,a){const c=rh(n);null===o?c.push(a):(c.push(o),e.firstCreatePass&&sh(e).push(a,c.length-1))}function eh(e,n,o,a){for(let c in e)if(e.hasOwnProperty(c)){o=null===o?{}:o;const m=e[c];null===a?th(o,n,c,m):a.hasOwnProperty(c)&&th(o,n,a[c],m)}return o}function th(e,n,o,a){e.hasOwnProperty(o)?e[o].push(n,a):e[o]=[n,a]}function Pr(e,n,o,a,c,m,O,H){const X=ji(n,o);let Ie,he=n.inputs;!H&&null!=he&&(Ie=he[a])?(Nu(e,o,Ie,a,c),Vo(n)&&function O0(e,n){const o=Ji(n,e);16&o[$n]||(o[$n]|=32)}(o,n.index)):3&n.type&&(a=function A0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(a),c=null!=O?O(c,n.value||"",a):c,m.setProperty(X,a,c))}function Au(e,n,o,a){if(Tn()){const c=null===a?null:{"":-1},m=function k0(e,n){const o=e.directiveRegistry;let a=null,c=null;if(o)for(let m=0;m<o.length;m++){const O=o[m];if(Np(n,O.selectors,!1))if(a||(a=[]),io(O))if(null!==O.findHostDirectiveDefs){const H=[];c=c||new Map,O.findHostDirectiveDefs(O,H,c),a.unshift(...H,O),Ou(e,n,H.length)}else a.unshift(O),Ou(e,n,0);else c=c||new Map,O.findHostDirectiveDefs?.(O,a,c),a.push(O)}return null===a?null:[a,c]}(e,o);let O,H;null===m?O=H=null:[O,H]=m,null!==O&&nh(e,n,o,O,c,H),c&&function F0(e,n,o){if(n){const a=e.localNames=[];for(let c=0;c<n.length;c+=2){const m=o[n[c+1]];if(null==m)throw new b(-301,!1);a.push(n[c],m)}}}(o,a,c)}o.mergedAttrs=zo(o.mergedAttrs,o.attrs)}function nh(e,n,o,a,c,m){for(let he=0;he<a.length;he++)es(vs(o,n),e,a[he].type);!function B0(e,n,o){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+o,e.providerIndexes=n}(o,e.data.length,a.length);for(let he=0;he<a.length;he++){const Ie=a[he];Ie.providersResolver&&Ie.providersResolver(Ie)}let O=!1,H=!1,X=ml(e,n,a.length,null);for(let he=0;he<a.length;he++){const Ie=a[he];o.mergedAttrs=zo(o.mergedAttrs,Ie.hostAttrs),V0(e,o,n,X,Ie),U0(X,Ie,c),null!==Ie.contentQueries&&(o.flags|=4),(null!==Ie.hostBindings||null!==Ie.hostAttrs||0!==Ie.hostVars)&&(o.flags|=64);const et=Ie.type.prototype;!O&&(et.ngOnChanges||et.ngOnInit||et.ngDoCheck)&&((e.preOrderHooks??(e.preOrderHooks=[])).push(o.index),O=!0),!H&&(et.ngOnChanges||et.ngDoCheck)&&((e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(o.index),H=!0),X++}!function D0(e,n,o){const c=n.directiveEnd,m=e.data,O=n.attrs,H=[];let X=null,he=null;for(let Ie=n.directiveStart;Ie<c;Ie++){const et=m[Ie],mt=o?o.get(et):null,qt=mt?mt.outputs:null;X=eh(et.inputs,Ie,X,mt?mt.inputs:null),he=eh(et.outputs,Ie,he,qt);const fn=null===X||null===O||Pp(n)?null:$0(X,Ie,O);H.push(fn)}null!==X&&(X.hasOwnProperty("class")&&(n.flags|=8),X.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=H,n.inputs=X,n.outputs=he}(e,o,m)}function ih(e,n,o){const a=o.directiveStart,c=o.directiveEnd,m=o.index,O=function Fo(){return E.lFrame.currentDirectiveIndex}();try{Sr(m);for(let H=a;H<c;H++){const X=e.data[H],he=n[H];Ro(H),(null!==X.hostBindings||0!==X.hostVars||null!==X.hostAttrs)&&L0(X,he)}}finally{Sr(-1),Ro(O)}}function L0(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function Ou(e,n,o){n.componentOffset=o,(e.components??(e.components=[])).push(n.index)}function U0(e,n,o){if(o){if(n.exportAs)for(let a=0;a<n.exportAs.length;a++)o[n.exportAs[a]]=e;io(n)&&(o[""]=e)}}function V0(e,n,o,a,c){e.data[a]=c;const m=c.factory||(c.factory=qn(c.type)),O=new it(m,io(c),Da);e.blueprint[a]=O,o[a]=O,function R0(e,n,o,a,c){const m=c.hostBindings;if(m){let O=e.hostBindingOpCodes;null===O&&(O=e.hostBindingOpCodes=[]);const H=~n.index;(function P0(e){let n=e.length;for(;n>0;){const o=e[--n];if("number"==typeof o&&o<0)return o}return 0})(O)!=H&&O.push(H),O.push(o,a,m)}}(e,n,a,ml(e,o,c.hostVars,Ei),c)}function Iu(e,n,o,a,c,m,O){if(null==m)e.removeAttribute(n,c,o);else{const H=null==O?W(m):O(m,a||"",c);e.setAttribute(n,c,H,o)}}function G0(e,n,o,a,c,m){const O=m[n];if(null!==O){const H=a.setInput;for(let X=0;X<O.length;){const he=O[X++],Ie=O[X++],et=O[X++];null!==H?a.setInput(o,et,he,Ie):o[Ie]=et}}}function $0(e,n,o){let a=null,c=0;for(;c<o.length;){const m=o[c];if(0!==m)if(5!==m){if("number"==typeof m)break;if(e.hasOwnProperty(m)){null===a&&(a=[]);const O=e[m];for(let H=0;H<O.length;H+=2)if(O[H]===n){a.push(m,O[H+1],o[c+1]);break}}c+=2}else c+=2;else c+=4}return a}function oh(e,n,o,a){return[e,!0,!1,n,null,0,a,o,null,null]}function j0(e,n){const o=Ji(n,e);if(vo(o)){const a=o[pn];48&o[$n]?rc(a,o,a.template,o[Pn]):o[ro]>0&&Ru(o)}}function Ru(e){for(let a=rs(e);null!==a;a=Tr(a))for(let c=wi;c<a.length;c++){const m=a[c];if(vo(m))if(512&m[$n]){const O=m[pn];rc(O,m,O.template,m[Pn])}else m[ro]>0&&Ru(m)}const o=e[pn].components;if(null!==o)for(let a=0;a<o.length;a++){const c=Ji(o[a],e);vo(c)&&c[ro]>0&&Ru(c)}}function W0(e,n){const o=Ji(n,e),a=o[pn];(function Z0(e,n){for(let o=n.length;o<e.blueprint.length;o++)n.push(e.blueprint[o])})(a,o),Mu(a,o,o[Pn])}function sc(e,n){return e[Si]?e[Yn][no]=n:e[Si]=n,e[Yn]=n,n}function ac(e){for(;e;){e[$n]|=32;const n=Qi(e);if(ho(e)&&!n)return e;e=n}return null}function lc(e,n,o,a=!0){const c=n[Mo];c.begin&&c.begin();try{rc(e,n,e.template,o)}catch(O){throw a&&lh(n,O),O}finally{c.end&&c.end()}}function Pu(e,n,o){zr(0),n(e,o)}function rh(e){return e[zi]||(e[zi]=[])}function sh(e){return e.cleanup||(e.cleanup=[])}function lh(e,n){const o=e[lo],a=o?o.get(fl,null):null;a&&a.handleError(n)}function Nu(e,n,o,a,c){for(let m=0;m<o.length;){const O=o[m++],H=o[m++],X=n[O],he=e.data[O];null!==he.setInput?he.setInput(X,c,a,H):X[H]=c}}function Is(e,n,o){const a=So(n,e);Vr(e[Jn],a,o)}function cc(e,n,o){let a=o?e.styles:null,c=o?e.classes:null,m=0;if(null!==n)for(let O=0;O<n.length;O++){const H=n[O];"number"==typeof H?m=H:1==m?c=_(c,H):2==m&&(a=_(a,H+": "+n[++O]+";"))}o?e.styles=a:e.stylesWithoutHost=a,o?e.classes=c:e.classesWithoutHost=c}function uc(e,n,o,a,c=!1){for(;null!==o;){const m=n[o.index];if(null!==m&&a.push(mi(m)),co(m))for(let H=wi;H<m.length;H++){const X=m[H],he=X[pn].firstChild;null!==he&&uc(X[pn],X,he,a)}const O=o.type;if(8&O)uc(e,n,o.child,a);else if(32&O){const H=Ti(o,n);let X;for(;X=H();)a.push(X)}else if(16&O){const H=Qd(n,o);if(Array.isArray(H))a.push(...H);else{const X=Qi(n[li]);uc(X[pn],X,H,a,!0)}}o=c?o.projectionNext:o.next}return a}class gl{get rootNodes(){const n=this._lView,o=n[pn];return uc(o,n,o.firstChild,[])}constructor(n,o){this._lView=n,this._cdRefInjectingView=o,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Pn]}set context(n){this._lView[Pn]=n}get destroyed(){return 128==(128&this._lView[$n])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[bi];if(co(n)){const o=n[qi],a=o?o.indexOf(this):-1;a>-1&&(Ao(n,a),is(o,a))}this._attachedToViewContainer=!1}Rr(this._lView[pn],this._lView)}onDestroy(n){Xp(this._lView[pn],this._lView,null,n)}markForCheck(){ac(this._cdRefInjectingView||this._lView)}detach(){this._lView[$n]&=-65}reattach(){this._lView[$n]|=64}detectChanges(){lc(this._lView[pn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Kl(e,n){cl(e,n,n[Jn],2,null,null)}(this._lView[pn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=n}}class Y0 extends gl{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;lc(n[pn],n,n[Pn],!1)}checkNoChanges(){}get context(){return null}}class ch extends pl{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const o=xn(n);return new _l(o,this.ngModule)}}function uh(e){const n=[];for(let o in e)e.hasOwnProperty(o)&&n.push({propName:e[o],templateName:o});return n}class J0{constructor(n,o){this.injector=n,this.parentInjector=o}get(n,o,a){a=ot(a);const c=this.injector.get(n,gu,a);return c!==gu||o===gu?c:this.parentInjector.get(n,o,a)}}class _l extends Tp{get inputs(){return uh(this.componentDef.inputs)}get outputs(){return uh(this.componentDef.outputs)}constructor(n,o){super(),this.componentDef=n,this.ngModule=o,this.componentType=n.type,this.selector=function t0(e){return e.map(e0).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!o}create(n,o,a,c){let m=(c=c||this.ngModule)instanceof ta?c:c?.injector;m&&null!==this.componentDef.getStandaloneInjector&&(m=this.componentDef.getStandaloneInjector(m)||m);const O=m?new J0(n,m):n,H=O.get(xp,null);if(null===H)throw new b(407,!1);const X=O.get(L_,null),he=H.createRenderer(null,this.componentDef),Ie=this.componentDef.selectors[0][0]||"div",et=a?function w0(e,n,o){return e.selectRootElement(n,o===Rn.ShadowDom)}(he,a,this.componentDef.encapsulation):ws(he,Ie,function q0(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(Ie)),mt=this.componentDef.onPush?288:272,Rt=Du(0,null,null,1,0,null,null,null,null,null),qt=oc(null,Rt,null,mt,null,null,H,he,X,O,null);let fn,Nn;Dr(qt);try{const Kn=this.componentDef;let ui,an=null;Kn.findHostDirectiveDefs?(ui=[],an=new Map,Kn.findHostDirectiveDefs(Kn,ui,an),ui.push(Kn)):ui=[Kn];const gi=function X0(e,n){const o=e[pn],a=Qt;return e[a]=n,Aa(o,a,2,"#host",null)}(qt,et),bo=function ey(e,n,o,a,c,m,O,H){const X=c[pn];!function ty(e,n,o,a){for(const c of e)n.mergedAttrs=zo(n.mergedAttrs,c.hostAttrs);null!==n.mergedAttrs&&(cc(n,n.mergedAttrs,!0),null!==o&&tp(a,o,n))}(a,e,n,O);const he=m.createRenderer(n,o),Ie=oc(c,Qp(o),null,o.onPush?32:16,c[e.index],e,m,he,H||null,null,null);return X.firstCreatePass&&Ou(X,e,a.length-1),sc(c,Ie),c[e.index]=Ie}(gi,et,Kn,ui,qt,H,he);Nn=Xi(Rt,Qt),et&&function iy(e,n,o,a){if(a)Vi(e,o,["ng-version",k_.full]);else{const{attrs:c,classes:m}=function n0(e){const n=[],o=[];let a=1,c=2;for(;a<e.length;){let m=e[a];if("string"==typeof m)2===c?""!==m&&n.push(m,e[++a]):8===c&&o.push(m);else{if(!Wr(c))break;c=m}a++}return{attrs:n,classes:o}}(n.selectors[0]);c&&Vi(e,o,c),m&&m.length>0&&ep(e,o,m.join(" "))}}(he,Kn,et,a),void 0!==o&&function oy(e,n,o){const a=e.projection=[];for(let c=0;c<n.length;c++){const m=o[c];a.push(null!=m?Array.from(m):null)}}(Nn,this.ngContentSelectors,o),fn=function ny(e,n,o,a,c,m){const O=Mt(),H=c[pn],X=ji(O,c);nh(H,c,O,o,null,a);for(let Ie=0;Ie<o.length;Ie++)B(oo(c,H,O.directiveStart+Ie,O),c);ih(H,c,O),X&&B(X,c);const he=oo(c,H,O.directiveStart+O.componentOffset,O);if(e[Pn]=c[Pn]=he,null!==m)for(const Ie of m)Ie(he,n);return Tu(H,O,e),he}(bo,Kn,ui,an,qt,[ry]),Mu(Rt,qt,null)}finally{hs()}return new Q0(this.componentType,fn,Ta(Nn,qt),qt,Nn)}}class Q0 extends D_{constructor(n,o,a,c,m){super(),this.location=a,this._rootLView=c,this._tNode=m,this.instance=o,this.hostView=this.changeDetectorRef=new Y0(c),this.componentType=n}setInput(n,o){const a=this._tNode.inputs;let c;if(null!==a&&(c=a[n])){const m=this._rootLView;Nu(m[pn],m,c,n,o),ac(Ji(this._tNode.index,m))}}get injector(){return new ts(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function ry(){const e=Mt();ms(z()[pn],e)}function Lu(e){let n=function dh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),o=!0;const a=[e];for(;n;){let c;if(io(e))c=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new b(903,!1);c=n.\u0275dir}if(c){if(o){a.push(c);const O=e;O.inputs=ku(e.inputs),O.declaredInputs=ku(e.declaredInputs),O.outputs=ku(e.outputs);const H=c.hostBindings;H&&cy(e,H);const X=c.viewQuery,he=c.contentQueries;if(X&&ay(e,X),he&&ly(e,he),y(e.inputs,c.inputs),y(e.declaredInputs,c.declaredInputs),y(e.outputs,c.outputs),io(c)&&c.data.animation){const Ie=e.data;Ie.animation=(Ie.animation||[]).concat(c.data.animation)}}const m=c.features;if(m)for(let O=0;O<m.length;O++){const H=m[O];H&&H.ngInherit&&H(e),H===Lu&&(o=!1)}}n=Object.getPrototypeOf(n)}!function sy(e){let n=0,o=null;for(let a=e.length-1;a>=0;a--){const c=e[a];c.hostVars=n+=c.hostVars,c.hostAttrs=zo(c.hostAttrs,o=zo(o,c.hostAttrs))}}(a)}function ku(e){return e===Fn?{}:e===ut?[]:e}function ay(e,n){const o=e.viewQuery;e.viewQuery=o?(a,c)=>{n(a,c),o(a,c)}:n}function ly(e,n){const o=e.contentQueries;e.contentQueries=o?(a,c,m)=>{n(a,c,m),o(a,c,m)}:n}function cy(e,n){const o=e.hostBindings;e.hostBindings=o?(a,c)=>{n(a,c),o(a,c)}:n}function dc(e){return!!Fu(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Fu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function cs(e,n,o){return e[n]=o}function yl(e,n){return e[n]}function fr(e,n,o){return!Object.is(e[n],o)&&(e[n]=o,!0)}function ia(e,n,o,a){const c=fr(e,n,o);return fr(e,n+1,a)||c}function pc(e,n,o,a,c){const m=ia(e,n,o,a);return fr(e,n+2,c)||m}function Hr(e,n,o,a,c,m){const O=ia(e,n,o,a);return ia(e,n+2,c,m)||O}function Uu(e,n,o,a){const c=z();return fr(c,Jo(),n)&&(ee(),function ls(e,n,o,a,c,m){const O=ji(e,n);Iu(n[Jn],O,m,e.value,o,a,c)}(Wi(),c,e,n,o,a)),Uu}function Ia(e,n,o,a){return fr(e,Jo(),o)?n+W(o)+a:Ei}function Mh(e,n,o,a,c,m,O,H){const X=z(),he=ee(),Ie=e+Qt,et=he.firstCreatePass?function vy(e,n,o,a,c,m,O,H,X){const he=n.consts,Ie=Aa(n,e,4,O||null,To(he,H));Au(n,o,Ie,To(he,X)),ms(n,Ie);const et=Ie.tView=Du(2,Ie,a,c,m,n.directiveRegistry,n.pipeRegistry,null,n.schemas,he);return null!==n.queries&&(n.queries.template(n,Ie),et.queries=n.queries.embeddedTView(Ie)),Ie}(Ie,he,X,n,o,a,c,m,O):he.data[Ie];Bi(et,!1);const mt=X[Jn].createComment("");Yl(he,X,mt,et),B(mt,X),sc(X,X[Ie]=oh(mt,X,mt,et)),Yo(et)&&wu(he,X,et),null!=O&&xu(X,et,H)}function Th(e){return Ri(function Go(){return E.lFrame.contextLView}(),Qt+e)}function Bu(e,n,o){const a=z();return fr(a,Jo(),n)&&Pr(ee(),Wi(),a,e,n,a[Jn],o,!1),Bu}function Vu(e,n,o,a,c){const O=c?"class":"style";Nu(e,o,n.inputs[O],O,a)}function hc(e,n,o,a){const c=z(),m=ee(),O=Qt+e,H=c[Jn],X=m.firstCreatePass?function Ey(e,n,o,a,c,m){const O=n.consts,X=Aa(n,e,2,a,To(O,c));return Au(n,o,X,To(O,m)),null!==X.attrs&&cc(X,X.attrs,!1),null!==X.mergedAttrs&&cc(X,X.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,X),X}(O,m,c,n,o,a):m.data[O],he=c[O]=ws(H,n,function ja(){return E.lFrame.currentNamespace}()),Ie=Yo(X);return Bi(X,!0),tp(H,he,X),32!=(32&X.flags)&&Yl(m,c,he,X),0===function Ne(){return E.lFrame.elementDepthCount}()&&B(he,c),function kt(){E.lFrame.elementDepthCount++}(),Ie&&(wu(m,c,X),Tu(m,X,c)),null!==a&&xu(c,X),hc}function fc(){let e=Mt();ir()?or():(e=e.parent,Bi(e,!1));const n=e;!function ln(){E.lFrame.elementDepthCount--}();const o=ee();return o.firstCreatePass&&(ms(o,e),Bo(e)&&o.queries.elementEnd(e)),null!=n.classesWithoutHost&&function Zi(e){return 0!=(8&e.flags)}(n)&&Vu(o,n,z(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Li(e){return 0!=(16&e.flags)}(n)&&Vu(o,n,z(),n.stylesWithoutHost,!1),fc}function Hu(e,n,o,a){return hc(e,n,o,a),fc(),Hu}function mc(e,n,o){const a=z(),c=ee(),m=e+Qt,O=c.firstCreatePass?function by(e,n,o,a,c){const m=n.consts,O=To(m,a),H=Aa(n,e,8,"ng-container",O);return null!==O&&cc(H,O,!0),Au(n,o,H,To(m,c)),null!==n.queries&&n.queries.elementStart(n,H),H}(m,c,a,n,o):c.data[m];Bi(O,!0);const H=a[m]=a[Jn].createComment("");return Yl(c,a,H,O),B(H,a),Yo(O)&&(wu(c,a,O),Tu(c,O,a)),null!=o&&xu(a,O),mc}function gc(){let e=Mt();const n=ee();return ir()?or():(e=e.parent,Bi(e,!1)),n.firstCreatePass&&(ms(n,e),Bo(e)&&n.queries.elementEnd(e)),gc}function Gu(e,n,o){return mc(e,n,o),gc(),Gu}function wh(){return z()}function $u(e){return!!e&&"function"==typeof e.then}function xh(e){return!!e&&"function"==typeof e.subscribe}const Dh=xh;function zu(e,n,o,a){const c=z(),m=ee(),O=Mt();return function Oh(e,n,o,a,c,m,O){const H=Yo(a),he=e.firstCreatePass&&sh(e),Ie=n[Pn],et=rh(n);let mt=!0;if(3&a.type||O){const fn=ji(a,n),Nn=O?O(fn):fn,Kn=et.length,ui=O?gi=>O(mi(gi[a.index])):a.index;let an=null;if(!O&&H&&(an=function Sy(e,n,o,a){const c=e.cleanup;if(null!=c)for(let m=0;m<c.length-1;m+=2){const O=c[m];if(O===o&&c[m+1]===a){const H=n[zi],X=c[m+2];return H.length>X?H[X]:null}"string"==typeof O&&(m+=2)}return null}(e,n,c,a.index)),null!==an)(an.__ngLastListenerFn__||an).__ngNextListenerFn__=m,an.__ngLastListenerFn__=m,mt=!1;else{m=Rh(a,n,Ie,m,!1);const gi=o.listen(Nn,c,m);et.push(m,gi),he&&he.push(c,ui,Kn,Kn+1)}}else m=Rh(a,n,Ie,m,!1);const Rt=a.outputs;let qt;if(mt&&null!==Rt&&(qt=Rt[c])){const fn=qt.length;if(fn)for(let Nn=0;Nn<fn;Nn+=2){const bo=n[qt[Nn]][qt[Nn+1]].subscribe(m),Lo=et.length;et.push(m,bo),he&&he.push(c,a.index,Lo,-(Lo+1))}}}(m,c,c[Jn],O,e,n,a),zu}function Ih(e,n,o,a){try{return gt(6,n,o),!1!==o(a)}catch(c){return lh(e,c),!1}finally{gt(7,n,o)}}function Rh(e,n,o,a,c){return function m(O){if(O===Function)return a;ac(e.componentOffset>-1?Ji(e.index,n):n);let X=Ih(n,o,a,O),he=m.__ngNextListenerFn__;for(;he;)X=Ih(n,o,he,O)&&X,he=he.__ngNextListenerFn__;return c&&!1===X&&(O.preventDefault(),O.returnValue=!1),X}}function Ph(e=1){return function Ps(e){return(E.lFrame.contextLView=function fs(e,n){for(;e>0;)n=n[Yi],e--;return n}(e,E.lFrame.contextLView))[Pn]}(e)}function My(e,n){let o=null;const a=function q_(e){const n=e.attrs;if(null!=n){const o=n.indexOf(5);if(!(1&o))return n[o+1]}return null}(e);for(let c=0;c<n.length;c++){const m=n[c];if("*"!==m){if(null===a?Np(e,m,!0):X_(a,m))return c}else o=c}return o}function Nh(e){const n=z()[li][_i];if(!n.projection){const a=n.projection=os(e?e.length:1,null),c=a.slice();let m=n.child;for(;null!==m;){const O=e?My(m,e):0;null!==O&&(c[O]?c[O].projectionNext=m:a[O]=m,c[O]=m),m=m.next}}}function Lh(e,n=0,o){const a=z(),c=ee(),m=Aa(c,Qt+e,16,null,o||null);null===m.projection&&(m.projection=n),or(),32!=(32&m.flags)&&function Bg(e,n,o){Xd(n[Jn],0,n,o,ll(e,o,n),Zd(o.parent||n[_i],o,n))}(c,a,m)}function _c(e,n){return e<<17|n<<2}function Hs(e){return e>>17&32767}function ju(e){return 2|e}function oa(e){return(131068&e)>>2}function Wu(e,n){return-131069&e|n<<2}function Zu(e){return 1|e}function Kh(e,n,o,a,c){const m=e[o+1],O=null===n;let H=a?Hs(m):oa(m),X=!1;for(;0!==H&&(!1===X||O);){const Ie=e[H+1];Oy(e[H],n)&&(X=!0,e[H+1]=a?Zu(Ie):ju(Ie)),H=a?Hs(Ie):oa(Ie)}X&&(e[o+1]=a?ju(m):Zu(m))}function Oy(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ts(e,n)>=0}const Wo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jh(e){return e.substring(Wo.key,Wo.keyEnd)}function Iy(e){return e.substring(Wo.value,Wo.valueEnd)}function Wh(e,n){const o=Wo.textEnd;return o===n?-1:(n=Wo.keyEnd=function Ny(e,n,o){for(;n<o&&e.charCodeAt(n)>32;)n++;return n}(e,Wo.key=n,o),Ba(e,n,o))}function Zh(e,n){const o=Wo.textEnd;let a=Wo.key=Ba(e,n,o);return o===a?-1:(a=Wo.keyEnd=function Ly(e,n,o){let a;for(;n<o&&(45===(a=e.charCodeAt(n))||95===a||(-33&a)>=65&&(-33&a)<=90||a>=48&&a<=57);)n++;return n}(e,a,o),a=qh(e,a,o),a=Wo.value=Ba(e,a,o),a=Wo.valueEnd=function ky(e,n,o){let a=-1,c=-1,m=-1,O=n,H=O;for(;O<o;){const X=e.charCodeAt(O++);if(59===X)return H;34===X||39===X?H=O=Jh(e,X,O,o):n===O-4&&85===m&&82===c&&76===a&&40===X?H=O=Jh(e,41,O,o):X>32&&(H=O),m=c,c=a,a=-33&X}return H}(e,a,o),qh(e,a,o))}function Yh(e){Wo.key=0,Wo.keyEnd=0,Wo.value=0,Wo.valueEnd=0,Wo.textEnd=e.length}function Ba(e,n,o){for(;n<o&&e.charCodeAt(n)<=32;)n++;return n}function qh(e,n,o,a){return(n=Ba(e,n,o))<o&&n++,n}function Jh(e,n,o,a){let c=-1,m=o;for(;m<a;){const O=e.charCodeAt(m++);if(O==n&&92!==c)return m;c=92==O&&92===c?0:O}throw new Error}function Yu(e,n,o){return Yr(e,n,o,!1),Yu}function qu(e,n){return Yr(e,n,null,!0),qu}function Zr(e){qr(tf,Fy,e,!1)}function Fy(e,n){for(let o=function Py(e){return Yh(e),Zh(e,Ba(e,0,Wo.textEnd))}(n);o>=0;o=Zh(n,o))tf(e,jh(n),Iy(n))}function Qh(e){qr($y,us,e,!0)}function us(e,n){for(let o=function Ry(e){return Yh(e),Wh(e,Ba(e,0,Wo.textEnd))}(n);o>=0;o=Wh(n,o))er(e,jh(n),!0)}function Yr(e,n,o,a){const c=z(),m=ee(),O=ur(2);m.firstUpdatePass&&ef(m,e,O,a),n!==Ei&&fr(c,O,n)&&nf(m,m.data[Co()],c,c[Jn],e,c[O+1]=function Ky(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=u(Ds(e)))),e}(n,o),a,O)}function qr(e,n,o,a){const c=ee(),m=ur(2);c.firstUpdatePass&&ef(c,null,m,a);const O=z();if(o!==Ei&&fr(O,m,o)){const H=c.data[Co()];if(sf(H,a)&&!Xh(c,m)){let X=a?H.classesWithoutHost:H.stylesWithoutHost;null!==X&&(o=_(X,o||"")),Vu(c,H,O,o,a)}else!function zy(e,n,o,a,c,m,O,H){c===Ei&&(c=ut);let X=0,he=0,Ie=0<c.length?c[0]:null,et=0<m.length?m[0]:null;for(;null!==Ie||null!==et;){const mt=X<c.length?c[X+1]:void 0,Rt=he<m.length?m[he+1]:void 0;let fn,qt=null;Ie===et?(X+=2,he+=2,mt!==Rt&&(qt=et,fn=Rt)):null===et||null!==Ie&&Ie<et?(X+=2,qt=Ie):(he+=2,qt=et,fn=Rt),null!==qt&&nf(e,n,o,a,qt,fn,O,H),Ie=X<c.length?c[X]:null,et=he<m.length?m[he]:null}}(c,H,O,O[Jn],O[m+1],O[m+1]=function Gy(e,n,o){if(null==o||""===o)return ut;const a=[],c=Ds(o);if(Array.isArray(c))for(let m=0;m<c.length;m++)e(a,c[m],!0);else if("object"==typeof c)for(const m in c)c.hasOwnProperty(m)&&e(a,m,c[m]);else"string"==typeof c&&n(a,c);return a}(e,n,o),a,m)}}function Xh(e,n){return n>=e.expandoStartIndex}function ef(e,n,o,a){const c=e.data;if(null===c[o+1]){const m=c[Co()],O=Xh(e,o);sf(m,a)&&null===n&&!O&&(n=!1),n=function Uy(e,n,o,a){const c=function xr(e){const n=E.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let m=a?n.residualClasses:n.residualStyles;if(null===c)0===(a?n.classBindings:n.styleBindings)&&(o=vl(o=Ju(null,e,n,o,a),n.attrs,a),m=null);else{const O=n.directiveStylingLast;if(-1===O||e[O]!==c)if(o=Ju(c,e,n,o,a),null===m){let X=function By(e,n,o){const a=o?n.classBindings:n.styleBindings;if(0!==oa(a))return e[Hs(a)]}(e,n,a);void 0!==X&&Array.isArray(X)&&(X=Ju(null,e,n,X[1],a),X=vl(X,n.attrs,a),function Vy(e,n,o,a){e[Hs(o?n.classBindings:n.styleBindings)]=a}(e,n,a,X))}else m=function Hy(e,n,o){let a;const c=n.directiveEnd;for(let m=1+n.directiveStylingLast;m<c;m++)a=vl(a,e[m].hostAttrs,o);return vl(a,n.attrs,o)}(e,n,a)}return void 0!==m&&(a?n.residualClasses=m:n.residualStyles=m),o}(c,m,n,a),function Dy(e,n,o,a,c,m){let O=m?n.classBindings:n.styleBindings,H=Hs(O),X=oa(O);e[a]=o;let Ie,he=!1;if(Array.isArray(o)?(Ie=o[1],(null===Ie||Ts(o,Ie)>0)&&(he=!0)):Ie=o,c)if(0!==X){const mt=Hs(e[H+1]);e[a+1]=_c(mt,H),0!==mt&&(e[mt+1]=Wu(e[mt+1],a)),e[H+1]=function wy(e,n){return 131071&e|n<<17}(e[H+1],a)}else e[a+1]=_c(H,0),0!==H&&(e[H+1]=Wu(e[H+1],a)),H=a;else e[a+1]=_c(X,0),0===H?H=a:e[X+1]=Wu(e[X+1],a),X=a;he&&(e[a+1]=ju(e[a+1])),Kh(e,Ie,a,!0),Kh(e,Ie,a,!1),function Ay(e,n,o,a,c){const m=c?e.residualClasses:e.residualStyles;null!=m&&"string"==typeof n&&Ts(m,n)>=0&&(o[a+1]=Zu(o[a+1]))}(n,Ie,e,a,m),O=_c(H,X),m?n.classBindings=O:n.styleBindings=O}(c,m,n,o,O,a)}}function Ju(e,n,o,a,c){let m=null;const O=o.directiveEnd;let H=o.directiveStylingLast;for(-1===H?H=o.directiveStart:H++;H<O&&(m=n[H],a=vl(a,m.hostAttrs,c),m!==e);)H++;return null!==e&&(o.directiveStylingLast=H),a}function vl(e,n,o){const a=o?1:2;let c=-1;if(null!==n)for(let m=0;m<n.length;m++){const O=n[m];"number"==typeof O?c=O:c===a&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),er(e,O,!!o||n[++m]))}return void 0===e?null:e}function tf(e,n,o){er(e,n,Ds(o))}function $y(e,n,o){const a=String(n);""!==a&&!a.includes(" ")&&er(e,a,o)}function nf(e,n,o,a,c,m,O,H){if(!(3&n.type))return;const X=e.data,he=X[H+1],Ie=function xy(e){return 1==(1&e)}(he)?rf(X,n,o,c,oa(he),O):void 0;yc(Ie)||(yc(m)||function Ty(e){return 2==(2&e)}(he)&&(m=rf(X,null,o,c,H,O)),function Hg(e,n,o,a,c){if(n)c?e.addClass(o,a):e.removeClass(o,a);else{let m=-1===a.indexOf("-")?void 0:Br.DashCase;null==c?e.removeStyle(o,a,m):("string"==typeof c&&c.endsWith("!important")&&(c=c.slice(0,-10),m|=Br.Important),e.setStyle(o,a,c,m))}}(a,O,So(Co(),o),c,m))}function rf(e,n,o,a,c,m){const O=null===n;let H;for(;c>0;){const X=e[c],he=Array.isArray(X),Ie=he?X[1]:X,et=null===Ie;let mt=o[c+1];mt===Ei&&(mt=et?ut:void 0);let Rt=et?Ys(mt,a):Ie===a?mt:void 0;if(he&&!yc(Rt)&&(Rt=Ys(X,a)),yc(Rt)&&(H=Rt,O))return H;const qt=e[c+1];c=O?Hs(qt):oa(qt)}if(null!==n){let X=m?n.residualClasses:n.residualStyles;null!=X&&(H=Ys(X,a))}return H}function yc(e){return void 0!==e}function sf(e,n){return 0!=(e.flags&(n?8:16))}function af(e,n=""){const o=z(),a=ee(),c=e+Qt,m=a.firstCreatePass?Aa(a,c,1,n,null):a.data[c],O=o[c]=Ir(o[Jn],n);Yl(a,o,O,m),Bi(m,!1)}function Qu(e){return vc("",e,""),Qu}function vc(e,n,o){const a=z(),c=Ia(a,e,n,o);return c!==Ei&&Is(a,Co(),c),vc}function Xu(e,n,o,a,c){const m=z(),O=function Ra(e,n,o,a,c,m){const H=ia(e,fo(),o,c);return ur(2),H?n+W(o)+a+W(c)+m:Ei}(m,e,n,o,a,c);return O!==Ei&&Is(m,Co(),O),Xu}function mf(e,n,o){qr(er,us,Ia(z(),e,n,o),!0)}const ra=void 0;var uv=["en",[["a","p"],["AM","PM"],ra],[["AM","PM"],ra,ra],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ra,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ra,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ra,"{1} 'at' {0}",ra],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function cv(e){const o=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return 1===o&&0===a?1:5}];let Va={};function ed(e){const n=function dv(e){return e.toLowerCase().replace(/_/g,"-")}(e);let o=Df(n);if(o)return o;const a=n.split("-")[0];if(o=Df(a),o)return o;if("en"===a)return uv;throw new b(701,!1)}function xf(e){return ed(e)[si.PluralCase]}function Df(e){return e in Va||(Va[e]=En.ng&&En.ng.common&&En.ng.common.locales&&En.ng.common.locales[e]),Va[e]}var si=(()=>((si=si||{})[si.LocaleId=0]="LocaleId",si[si.DayPeriodsFormat=1]="DayPeriodsFormat",si[si.DayPeriodsStandalone=2]="DayPeriodsStandalone",si[si.DaysFormat=3]="DaysFormat",si[si.DaysStandalone=4]="DaysStandalone",si[si.MonthsFormat=5]="MonthsFormat",si[si.MonthsStandalone=6]="MonthsStandalone",si[si.Eras=7]="Eras",si[si.FirstDayOfWeek=8]="FirstDayOfWeek",si[si.WeekendRange=9]="WeekendRange",si[si.DateFormat=10]="DateFormat",si[si.TimeFormat=11]="TimeFormat",si[si.DateTimeFormat=12]="DateTimeFormat",si[si.NumberSymbols=13]="NumberSymbols",si[si.NumberFormats=14]="NumberFormats",si[si.CurrencyCode=15]="CurrencyCode",si[si.CurrencySymbol=16]="CurrencySymbol",si[si.CurrencyName=17]="CurrencyName",si[si.Currencies=18]="Currencies",si[si.Directionality=19]="Directionality",si[si.PluralCase=20]="PluralCase",si[si.ExtraData=21]="ExtraData",si))();const pv=["zero","one","two","few","many"],Ha="en-US",Cc={marker:"element"},Ec={marker:"ICU"};var Oo=(()=>((Oo=Oo||{})[Oo.SHIFT=2]="SHIFT",Oo[Oo.APPEND_EAGERLY=1]="APPEND_EAGERLY",Oo[Oo.COMMENT=2]="COMMENT",Oo))();let Af=Ha;function Of(e){(function oe(e,n){null==e&&G(n,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Af=e.toLowerCase().replace(/_/g,"-"))}function If(e,n,o){const a=n.insertBeforeIndex,c=Array.isArray(a)?a[0]:a;return null===c?Yd(e,0,o):mi(o[c])}function Rf(e,n,o,a,c){const m=n.insertBeforeIndex;if(Array.isArray(m)){let O=a,H=null;if(3&n.type||(H=O,O=c),null!==O&&-1===n.componentOffset)for(let X=1;X<m.length;X++)Eo(e,O,o[m[X]],H,!1)}}function Pf(e,n){if(e.push(n),e.length>1)for(let o=e.length-2;o>=0;o--){const a=e[o];Nf(a)||gv(a,n)&&null===_v(a)&&yv(a,n.index)}}function Nf(e){return!(64&e.type)}function gv(e,n){return Nf(n)||e.index>n.index}function _v(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function yv(e,n){const o=e.insertBeforeIndex;Array.isArray(o)?o[0]=n:(Jd(If,Rf),e.insertBeforeIndex=n)}function Cl(e,n){const o=e.data[n];return null===o||"string"==typeof o?null:o.hasOwnProperty("currentCaseLViewIndex")?o:o.value}function Ev(e,n,o){const a=Su(e,o,64,null,null);return Pf(n,a),a}function bc(e,n){const o=n[e.currentCaseLViewIndex];return null===o?o:o<0?~o:o}function Lf(e){return e>>>17}function kf(e){return(131070&e)>>>1}let El=0,bl=0;function Uf(e,n,o,a){const c=o[Jn];let O,m=null;for(let H=0;H<n.length;H++){const X=n[H];if("string"==typeof X){const he=n[++H];null===o[he]&&(o[he]=Ir(c,X))}else if("number"==typeof X)switch(1&X){case 0:const he=Lf(X);let Ie,et;if(null===m&&(m=he,O=Zl(c,a)),he===m?(Ie=a,et=O):(Ie=null,et=mi(o[he])),null!==et){const fn=kf(X);Eo(c,et,o[fn],Ie,!1);const Kn=Cl(e,fn);if(null!==Kn&&"object"==typeof Kn){const ui=bc(Kn,o);null!==ui&&Uf(e,Kn.create[ui],o,o[Kn.anchorIdx])}}break;case 1:const Rt=n[++H],qt=n[++H];Iu(c,So(X>>>1,o),null,null,Rt,qt,null)}else switch(X){case Ec:const he=n[++H],Ie=n[++H];null===o[Ie]&&B(o[Ie]=$l(c,he),o);break;case Cc:const et=n[++H],mt=n[++H];null===o[mt]&&B(o[mt]=ws(c,et,null),o)}}}function Bf(e,n,o,a,c){for(let m=0;m<o.length;m++){const O=o[m],H=o[++m];if(O&c){let X="";for(let he=m+1;he<=m+H;he++){const Ie=o[he];if("string"==typeof Ie)X+=Ie;else if("number"==typeof Ie)if(Ie<0)X+=W(n[a-Ie]);else{const et=Ie>>>2;switch(3&Ie){case 1:const mt=o[++he],Rt=o[++he],qt=e.data[et];"string"==typeof qt?Iu(n[Jn],n[et],null,qt,mt,X,Rt):Pr(e,qt,n,mt,X,n[Jn],Rt,!1);break;case 0:const fn=n[et];null!==fn&&Vr(n[Jn],fn,X);break;case 2:wv(e,Cl(e,et),n,X);break;case 3:Vf(e,Cl(e,et),a,n)}}}}else{const X=o[m+1];if(X>0&&3==(3&X)){const Ie=Cl(e,X>>>2);n[Ie.currentCaseLViewIndex]<0&&Vf(e,Ie,a,n)}}m+=H}}function Vf(e,n,o,a){let c=a[n.currentCaseLViewIndex];if(null!==c){let m=El;c<0&&(c=a[n.currentCaseLViewIndex]=~c,m=-1),Bf(e,a,n.update[c],o,m)}}function wv(e,n,o,a){const c=function xv(e,n){let o=e.cases.indexOf(n);if(-1===o)switch(e.type){case 1:{const a=function hv(e,n){const o=xf(n)(parseInt(e,10)),a=pv[o];return void 0!==a?a:"other"}(n,function mv(){return Af}());o=e.cases.indexOf(a),-1===o&&"other"!==a&&(o=e.cases.indexOf("other"));break}case 0:o=e.cases.indexOf("other")}return-1===o?null:o}(n,a);if(bc(n,o)!==c&&(Hf(e,n,o),o[n.currentCaseLViewIndex]=null===c?null:~c,null!==c)){const O=o[n.anchorIdx];O&&Uf(e,n.create[c],o,O)}}function Hf(e,n,o){let a=bc(n,o);if(null!==a){const c=n.remove[a];for(let m=0;m<c.length;m++){const O=c[m];if(O>0){const H=So(O,o);null!==H&&Xc(o[Jn],H)}else Hf(e,Cl(e,~O),o)}}}function Dv(){const e=[];let o,a,n=-1;function m(H,X){n=0;const he=bc(H,X);a=null!==he?H.remove[he]:ut}function O(){if(n<a.length){const H=a[n++];return H>0?o[H]:(e.push(n,a),m(o[pn].data[~H],o),O())}return 0===e.length?null:(a=e.pop(),n=e.pop(),O())}return function c(H,X){for(o=X;e.length;)e.pop();return m(H.value,X),O}}const Sc=/\ufffd(\d+):?\d*\ufffd/gi,Ov=/\ufffd(\d+)\ufffd/,$f=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Sl="\ufffd",Iv=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Rv=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Pv=/\uE500/g;function zf(e,n,o,a,c,m,O){const H=ml(e,a,1,null);let X=H<<Oo.SHIFT,he=hi();n===he&&(he=null),null===he&&(X|=Oo.APPEND_EAGERLY),O&&(X|=Oo.COMMENT,function $i(e){void 0===Bn&&(Bn=e())}(Dv)),c.push(X,null===m?"":m);const Ie=Su(e,H,O?32:1,null===m?"":m,null);Pf(o,Ie);const et=Ie.index;return Bi(Ie,!1),null!==he&&n!==he&&function Cv(e,n){let o=e.insertBeforeIndex;null===o?(Jd(If,Rf),o=e.insertBeforeIndex=[null,n]):(function De(e,n,o){e!=n&&G(o,e,n,"==")}(Array.isArray(o),!0,"Expecting array here"),o.push(n))}(he,et),Ie}function kv(e,n,o,a,c,m,O){const H=O.match(Sc),X=zf(e,n,o,m,a,H?null:O,!1);H&&Ml(c,O,X.index,null,0,null)}function Ml(e,n,o,a,c,m){const O=e.length,H=O+1;e.push(null,null);const X=O+2,he=n.split(Sc);let Ie=0;for(let et=0;et<he.length;et++){const mt=he[et];if(1&et){const Rt=c+parseInt(mt,10);e.push(-1-Rt),Ie|=Kf(Rt)}else""!==mt&&e.push(mt)}return e.push(o<<2|(a?1:0)),a&&e.push(a,m),e[O]=Ie,e[H]=e.length-X,Ie}function Kf(e){return 1<<Math.min(e,31)}function jf(e){let n,m,o="",a=0,c=!1;for(;null!==(n=Iv.exec(e));)c?n[0]===`${Sl}/*${m}${Sl}`&&(a=n.index,c=!1):(o+=e.substring(a,n.index+n[0].length),m=n[1],c=!0);return o+=e.slice(a),o}function Wf(e,n,o,a,c,m){let O=0;const H={type:c.type,currentCaseLViewIndex:ml(e,n,1,null),anchorIdx:m,cases:[],create:[],remove:[],update:[]};(function zv(e,n,o){e.push(Kf(n.mainBinding),2,-1-n.mainBinding,o<<2|2)})(o,c,m),function vv(e,n,o){const a=e.data[n];null===a?e.data[n]=o:a.value=o}(e,m,H);const X=c.values;for(let he=0;he<X.length;he++){const Ie=X[he],et=[];for(let mt=0;mt<Ie.length;mt++){const Rt=Ie[mt];if("string"!=typeof Rt){const qt=et.push(Rt)-1;Ie[mt]=`\x3c!--\ufffd${qt}\ufffd--\x3e`}}O=Gv(e,H,n,o,a,c.cases[he],Ie.join(""),et)|O}O&&function Kv(e,n,o){e.push(n,1,o<<2|3)}(o,O,m)}function Hv(e){const n=[],o=[];let a=1,c=0;const m=td(e=e.replace($f,function(O,H,X){return a="select"===X?0:1,c=parseInt(H.slice(1),10),""}));for(let O=0;O<m.length;){let H=m[O++].trim();1===a&&(H=H.replace(/\s*(?:=)?(\w+)\s*/,"$1")),H.length&&n.push(H);const X=td(m[O++]);n.length>o.length&&o.push(X)}return{type:a,mainBinding:c,cases:n,values:o}}function td(e){if(!e)return[];let n=0;const o=[],a=[],c=/[{}]/g;let m;for(c.lastIndex=0;m=c.exec(e);){const H=m.index;if("}"==m[0]){if(o.pop(),0==o.length){const X=e.substring(n,H);$f.test(X)?a.push(Hv(X)):a.push(X),n=H+1}}else{if(0==o.length){const X=e.substring(n,H);a.push(X),n=H+1}o.push("{")}}const O=e.substring(n);return a.push(O),a}function Gv(e,n,o,a,c,m,O,H){const X=[],he=[],Ie=[];n.cases.push(m),n.create.push(X),n.remove.push(he),n.update.push(Ie);const mt=sp(np()).getInertBodyElement(O),Rt=su(mt)||mt;return Rt?Zf(e,n,o,a,X,he,Ie,Rt,c,H,0):0}function Zf(e,n,o,a,c,m,O,H,X,he,Ie){let et=0,mt=H.firstChild;for(;mt;){const Rt=ml(e,o,1,null);switch(mt.nodeType){case Node.ELEMENT_NODE:const qt=mt,fn=qt.tagName.toLowerCase();if(ou.hasOwnProperty(fn)){nd(c,Cc,fn,X,Rt),e.data[Rt]=fn;const an=qt.attributes;for(let gi=0;gi<an.length;gi++){const bo=an.item(gi),Lo=bo.name.toLowerCase();bo.value.match(Sc)?up.hasOwnProperty(Lo)&&Ml(O,bo.value,Rt,bo.name,0,ru[Lo]?Xl:null):jv(c,Rt,bo)}et=Zf(e,n,o,a,c,m,O,mt,Rt,he,Ie+1)|et,Yf(m,Rt,Ie)}break;case Node.TEXT_NODE:const Nn=mt.textContent||"",Kn=Nn.match(Sc);nd(c,null,Kn?"":Nn,X,Rt),Yf(m,Rt,Ie),Kn&&(et=Ml(O,Nn,Rt,null,0,null)|et);break;case Node.COMMENT_NODE:const ui=Ov.exec(mt.textContent||"");if(ui){const gi=he[parseInt(ui[1],10)];nd(c,Ec,"",X,Rt),Wf(e,o,a,X,gi,Rt),$v(m,Rt,Ie)}}mt=mt.nextSibling}return et}function Yf(e,n,o){0===o&&e.push(n)}function $v(e,n,o){0===o&&(e.push(~n),e.push(n))}function nd(e,n,o,a,c){null!==n&&e.push(n),e.push(o,c,function bv(e,n,o){return e|n<<17|o<<1}(0,a,c))}function jv(e,n,o){e.push(n<<1|1,o.name,o.value)}function id(e,n,o=-1){const a=ee(),c=z(),m=Qt+e,O=To(a.consts,n),H=hi();a.firstCreatePass&&function Lv(e,n,o,a,c,m){const O=hi(),H=[],X=[],he=[[]];c=function Vv(e,n){if(function Bv(e){return-1===e}(n))return jf(e);{const o=e.indexOf(`:${n}${Sl}`)+2+n.toString().length,a=e.search(new RegExp(`${Sl}\\/\\*\\d+:${n}${Sl}`));return jf(e.substring(o,a))}}(c,m);const Ie=function Nv(e){return e.replace(Pv," ")}(c).split(Rv);for(let et=0;et<Ie.length;et++){let mt=Ie[et];if(1&et){const Rt=47===mt.charCodeAt(0),fn=(mt.charCodeAt(Rt?1:0),Qt+Number.parseInt(mt.substring(Rt?2:1)));if(Rt)he.shift(),Bi(hi(),!1);else{const Nn=Ev(e,he[0],fn);he.unshift([]),Bi(Nn,!0)}}else{const Rt=td(mt);for(let qt=0;qt<Rt.length;qt++){let fn=Rt[qt];if(1&qt){const Nn=fn;if("object"!=typeof Nn)throw new Error(`Unable to parse ICU expression in "${c}" message.`);Wf(e,o,X,n,Nn,zf(e,O,he[0],o,H,"",!0).index)}else""!==fn&&kv(e,O,he[0],H,X,o,fn)}}}e.data[a]={create:H,update:X}}(a,null===H?0:H.index,c,m,O,o);const X=a.data[m],Ie=jl(a,H===c[_i]?null:H,c);(function Tv(e,n,o,a){const c=e[Jn];for(let m=0;m<n.length;m++){const O=n[m++],H=n[m],he=(O&Oo.APPEND_EAGERLY)===Oo.APPEND_EAGERLY,Ie=O>>>Oo.SHIFT;let et=e[Ie];null===et&&(et=e[Ie]=(O&Oo.COMMENT)===Oo.COMMENT?c.createComment(H):Ir(c,H)),he&&null!==o&&Eo(c,o,et,a,!1)}})(c,X.create,Ie,H&&8&H.type?c[H.index]:null),gr(!0)}function od(){gr(!1)}function Jf(e,n,o){id(e,n,o),od()}function rd(e){return function Sv(e){e&&(El|=1<<Math.min(bl,31)),bl++}(fr(z(),Jo(),e)),rd}function Qf(e){!function Mv(e,n,o){if(bl>0){const a=e.data[o];Bf(e,n,Array.isArray(a)?a:a.update,fo()-bl-1,El)}El=0,bl=0}(ee(),z(),e+Qt)}function sd(e,n,o,a,c){if(e=g(e),Array.isArray(e))for(let m=0;m<e.length;m++)sd(e[m],n,o,a,c);else{const m=ee(),O=z();let H=ea(e)?e:g(e.provide),X=Mp(e);const he=Mt(),Ie=1048575&he.providerIndexes,et=he.directiveStart,mt=he.providerIndexes>>20;if(ea(e)||!e.multi){const Rt=new it(X,c,Da),qt=ld(H,n,c?Ie:Ie+mt,et);-1===qt?(es(vs(he,O),m,H),ad(m,e,n.length),n.push(H),he.directiveStart++,he.directiveEnd++,c&&(he.providerIndexes+=1048576),o.push(Rt),O.push(Rt)):(o[qt]=Rt,O[qt]=Rt)}else{const Rt=ld(H,n,Ie+mt,et),qt=ld(H,n,Ie,Ie+mt),Nn=qt>=0&&o[qt];if(c&&!Nn||!c&&!(Rt>=0&&o[Rt])){es(vs(he,O),m,H);const Kn=function a1(e,n,o,a,c){const m=new it(e,o,Da);return m.multi=[],m.index=n,m.componentProviders=0,Xf(m,c,a&&!o),m}(c?s1:r1,o.length,c,a,X);!c&&Nn&&(o[qt].providerFactory=Kn),ad(m,e,n.length,0),n.push(H),he.directiveStart++,he.directiveEnd++,c&&(he.providerIndexes+=1048576),o.push(Kn),O.push(Kn)}else ad(m,e,Rt>-1?Rt:qt,Xf(o[c?qt:Rt],X,!c&&a));!c&&a&&Nn&&o[qt].componentProviders++}}}function ad(e,n,o,a){const c=ea(n),m=function E_(e){return!!e.useClass}(n);if(c||m){const X=(m?g(n.useClass):n).prototype.ngOnDestroy;if(X){const he=e.destroyHooks||(e.destroyHooks=[]);if(!c&&n.multi){const Ie=he.indexOf(o);-1===Ie?he.push(o,[a,X]):he[Ie+1].push(a,X)}else he.push(o,X)}}}function Xf(e,n,o){return o&&e.componentProviders++,e.multi.push(n)-1}function ld(e,n,o,a){for(let c=o;c<a;c++)if(n[c]===e)return c;return-1}function r1(e,n,o,a){return cd(this.multi,[])}function s1(e,n,o,a){const c=this.multi;let m;if(this.providerFactory){const O=this.providerFactory.componentProviders,H=oo(o,o[pn],this.providerFactory.index,a);m=H.slice(0,O),cd(c,m);for(let X=O;X<H.length;X++)m.push(H[X])}else m=[],cd(c,m);return m}function cd(e,n){for(let o=0;o<e.length;o++)n.push((0,e[o])());return n}function em(e,n=[]){return o=>{o.providersResolver=(a,c)=>function o1(e,n,o){const a=ee();if(a.firstCreatePass){const c=io(e);sd(o,a.data,a.blueprint,c,!0),sd(n,a.data,a.blueprint,c,!1)}}(a,c?c(e):e,n)}}class Ga{}class tm{}function l1(e,n){return new nm(e,n??null)}class nm extends Ga{constructor(n,o){super(),this._parent=o,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ch(this);const a=Ii(n);this._bootstrapComponents=Os(a.bootstrap),this._r3Injector=Gp(n,o,[{provide:Ga,useValue:this},{provide:pl,useValue:this.componentFactoryResolver}],u(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(o=>o()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class ud extends tm{constructor(n){super(),this.moduleType=n}create(n){return new nm(this.moduleType,n)}}class c1 extends Ga{constructor(n,o,a){super(),this.componentFactoryResolver=new ch(this),this.instance=null;const c=new Sp([...n,{provide:Ga,useValue:this},{provide:pl,useValue:this.componentFactoryResolver}],o||nc(),a,new Set(["environment"]));this.injector=c,c.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function dd(e,n,o=null){return new c1(e,n,o).injector}let u1=(()=>{class e{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o.id)){const a=vp(0,o.type),c=a.length>0?dd([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o.id,c)}return this.cachedInjectors.get(o.id)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=lt({token:e,providedIn:"environment",factory:()=>new e(Ht(ta))}),e})();function im(e){e.getStandaloneInjector=n=>n.get(u1).getOrCreateStandaloneInjector(e)}function um(e,n,o){const a=Pi()+e,c=z();return c[a]===Ei?cs(c,a,o?n.call(o):n()):yl(c,a)}function dm(e,n,o,a){return vm(z(),Pi(),e,n,o,a)}function pm(e,n,o,a,c){return Cm(z(),Pi(),e,n,o,a,c)}function hm(e,n,o,a,c,m){return function Em(e,n,o,a,c,m,O,H){const X=n+o;return pc(e,X,c,m,O)?cs(e,X+3,H?a.call(H,c,m,O):a(c,m,O)):Tl(e,X+3)}(z(),Pi(),e,n,o,a,c,m)}function fm(e,n,o,a,c,m,O){return function bm(e,n,o,a,c,m,O,H,X){const he=n+o;return Hr(e,he,c,m,O,H)?cs(e,he+4,X?a.call(X,c,m,O,H):a(c,m,O,H)):Tl(e,he+4)}(z(),Pi(),e,n,o,a,c,m,O)}function mm(e,n,o,a,c,m,O,H){const X=Pi()+e,he=z(),Ie=Hr(he,X,o,a,c,m);return fr(he,X+4,O)||Ie?cs(he,X+5,H?n.call(H,o,a,c,m,O):n(o,a,c,m,O)):yl(he,X+5)}function gm(e,n,o,a,c,m,O,H,X){const he=Pi()+e,Ie=z(),et=Hr(Ie,he,o,a,c,m);return ia(Ie,he+4,O,H)||et?cs(Ie,he+6,X?n.call(X,o,a,c,m,O,H):n(o,a,c,m,O,H)):yl(Ie,he+6)}function _m(e,n,o,a,c,m,O,H,X,he){const Ie=Pi()+e,et=z();let mt=Hr(et,Ie,o,a,c,m);return pc(et,Ie+4,O,H,X)||mt?cs(et,Ie+7,he?n.call(he,o,a,c,m,O,H,X):n(o,a,c,m,O,H,X)):yl(et,Ie+7)}function ym(e,n,o,a){return function Sm(e,n,o,a,c,m){let O=n+o,H=!1;for(let X=0;X<c.length;X++)fr(e,O++,c[X])&&(H=!0);return H?cs(e,O,a.apply(m,c)):Tl(e,O)}(z(),Pi(),e,n,o,a)}function Tl(e,n){const o=e[n];return o===Ei?void 0:o}function vm(e,n,o,a,c,m){const O=n+o;return fr(e,O,c)?cs(e,O+1,m?a.call(m,c):a(c)):Tl(e,O+1)}function Cm(e,n,o,a,c,m,O){const H=n+o;return ia(e,H,c,m)?cs(e,H+2,O?a.call(O,c,m):a(c,m)):Tl(e,H+2)}function Mm(e,n){const o=ee();let a;const c=e+Qt;o.firstCreatePass?(a=function C1(e,n){if(n)for(let o=n.length-1;o>=0;o--){const a=n[o];if(e===a.name)return a}}(n,o.pipeRegistry),o.data[c]=a,a.onDestroy&&(o.destroyHooks??(o.destroyHooks=[])).push(c,a.onDestroy)):a=o.data[c];const m=a.factory||(a.factory=qn(a.type)),O=Jt(Da);try{const H=ks(!1),X=m();return ks(H),function Cy(e,n,o,a){o>=e.data.length&&(e.data[o]=null,e.blueprint[o]=null),n[o]=a}(o,z(),c,X),X}finally{Jt(O)}}function Tm(e,n,o){const a=e+Qt,c=z(),m=Ri(c,a);return wl(c,a)?vm(c,Pi(),n,m.transform,o,m):m.transform(o)}function wm(e,n,o,a){const c=e+Qt,m=z(),O=Ri(m,c);return wl(m,c)?Cm(m,Pi(),n,O.transform,o,a,O):O.transform(o,a)}function wl(e,n){return e[pn].data[n].pure}function hd(e){return n=>{setTimeout(e,void 0,n)}}const ds=class M1 extends t.x{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,o,a){let c=n,m=o||(()=>null),O=a;if(n&&"object"==typeof n){const X=n;c=X.next?.bind(X),m=X.error?.bind(X),O=X.complete?.bind(X)}this.__isAsync&&(m=hd(m),c&&(c=hd(c)),O&&(O=hd(O)));const H=super.subscribe({next:c,error:m,complete:O});return n instanceof i.w0&&n.add(H),H}};function T1(){return this._results[Symbol.iterator]()}class fd{get changes(){return this._changes||(this._changes=new ds)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const o=fd.prototype;o[Symbol.iterator]||(o[Symbol.iterator]=T1)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,o){return this._results.reduce(n,o)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,o){const a=this;a.dirty=!1;const c=function sr(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Ol(e,n,o){if(e.length!==n.length)return!1;for(let a=0;a<e.length;a++){let c=e[a],m=n[a];if(o&&(c=o(c),m=o(m)),m!==c)return!1}return!0}(a._results,c,o))&&(a._results=c,a.length=c.length,a.last=c[this.length-1],a.first=c[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let xl=(()=>{class e{}return e.__NG_ELEMENT_ID__=D1,e})();const w1=xl,x1=class extends w1{constructor(n,o,a){super(),this._declarationLView=n,this._declarationTContainer=o,this.elementRef=a}createEmbeddedView(n,o){const a=this._declarationTContainer.tView,c=oc(this._declarationLView,a,n,16,null,a.declTNode,null,null,null,null,o||null);c[Io]=this._declarationLView[this._declarationTContainer.index];const O=this._declarationLView[Tt];return null!==O&&(c[Tt]=O.createEmbeddedView(a)),Mu(a,c,n),new gl(c)}};function D1(){return Mc(Mt(),z())}function Mc(e,n){return 4&e.type?new x1(n,e,Ta(e,n)):null}let Tc=(()=>{class e{}return e.__NG_ELEMENT_ID__=A1,e})();function A1(){return Am(Mt(),z())}const O1=Tc,xm=class extends O1{constructor(n,o,a){super(),this._lContainer=n,this._hostTNode=o,this._hostLView=a}get element(){return Ta(this._hostTNode,this._hostLView)}get injector(){return new ts(this._hostTNode,this._hostLView)}get parentInjector(){const n=ua(this._hostTNode,this._hostLView);if(Ko(n)){const o=Po(n,this._hostLView),a=po(n);return new ts(o[pn].data[a+8],o)}return new ts(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const o=Dm(this._lContainer);return null!==o&&o[n]||null}get length(){return this._lContainer.length-wi}createEmbeddedView(n,o,a){let c,m;"number"==typeof a?c=a:null!=a&&(c=a.index,m=a.injector);const O=n.createEmbeddedView(o||{},m);return this.insert(O,c),O}createComponent(n,o,a,c,m){const O=n&&!function Mr(e){return"function"==typeof e}(n);let H;if(O)H=o;else{const et=o||{};H=et.index,a=et.injector,c=et.projectableNodes,m=et.environmentInjector||et.ngModuleRef}const X=O?n:new _l(xn(n)),he=a||this.parentInjector;if(!m&&null==X.ngModule){const mt=(O?he:this.parentInjector).get(ta,null);mt&&(m=mt)}const Ie=X.create(he,c,void 0,m);return this.insert(Ie.hostView,H),Ie}insert(n,o){const a=n._lView,c=a[pn];if(function Mi(e){return co(e[bi])}(a)){const Ie=this.indexOf(n);if(-1!==Ie)this.detach(Ie);else{const et=a[bi],mt=new xm(et,et[_i],et[bi]);mt.detach(mt.indexOf(n))}}const m=this._adjustIndex(o),O=this._lContainer;!function Xn(e,n,o,a){const c=wi+a,m=o.length;a>0&&(o[c-1][no]=n),a<m-wi?(n[no]=o[c],Ms(o,wi+a,n)):(o.push(n),n[no]=null),n[bi]=o;const O=n[Io];null!==O&&o!==O&&function ci(e,n){const o=e[oi];n[li]!==n[bi][bi][li]&&(e[di]=!0),null===o?e[oi]=[n]:o.push(n)}(O,n);const H=n[Tt];null!==H&&H.insertView(e),n[$n]|=64}(c,a,O,m);const H=Qc(m,O),X=a[Jn],he=Zl(X,O[yi]);return null!==he&&function zl(e,n,o,a,c,m){a[Di]=c,a[_i]=n,cl(e,a,o,1,c,m)}(c,O[_i],X,a,he,H),n.attachToViewContainerRef(),Ms(md(O),m,n),n}move(n,o){return this.insert(n,o)}indexOf(n){const o=Dm(this._lContainer);return null!==o?o.indexOf(n):-1}remove(n){const o=this._adjustIndex(n,-1),a=Ao(this._lContainer,o);a&&(is(md(this._lContainer),o),Rr(a[pn],a))}detach(n){const o=this._adjustIndex(n,-1),a=Ao(this._lContainer,o);return a&&null!=is(md(this._lContainer),o)?new gl(a):null}_adjustIndex(n,o=0){return n??this.length+o}};function Dm(e){return e[qi]}function md(e){return e[qi]||(e[qi]=[])}function Am(e,n){let o;const a=n[e.index];if(co(a))o=a;else{let c;if(8&e.type)c=mi(a);else{const m=n[Jn];c=m.createComment("");const O=ji(e,n);Eo(m,Zl(m,O),c,function Ug(e,n){return e.nextSibling(n)}(m,O),!1)}n[e.index]=o=oh(a,n,c,e),sc(n,o)}return new xm(o,e,n)}class gd{constructor(n){this.queryList=n,this.matches=null}clone(){return new gd(this.queryList)}setDirty(){this.queryList.setDirty()}}class _d{constructor(n=[]){this.queries=n}createEmbeddedView(n){const o=n.queries;if(null!==o){const a=null!==n.contentQueries?n.contentQueries[0]:o.length,c=[];for(let m=0;m<a;m++){const O=o.getByIndex(m);c.push(this.queries[O.indexInDeclarationView].clone())}return new _d(c)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let o=0;o<this.queries.length;o++)null!==Um(n,o).matches&&this.queries[o].setDirty()}}class Om{constructor(n,o,a=null){this.predicate=n,this.flags=o,this.read=a}}class yd{constructor(n=[]){this.queries=n}elementStart(n,o){for(let a=0;a<this.queries.length;a++)this.queries[a].elementStart(n,o)}elementEnd(n){for(let o=0;o<this.queries.length;o++)this.queries[o].elementEnd(n)}embeddedTView(n){let o=null;for(let a=0;a<this.length;a++){const c=null!==o?o.length:0,m=this.getByIndex(a).embeddedTView(n,c);m&&(m.indexInDeclarationView=a,null!==o?o.push(m):o=[m])}return null!==o?new yd(o):null}template(n,o){for(let a=0;a<this.queries.length;a++)this.queries[a].template(n,o)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class vd{constructor(n,o=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=o}elementStart(n,o){this.isApplyingToNode(o)&&this.matchTNode(n,o)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,o){this.elementStart(n,o)}embeddedTView(n,o){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,o),new vd(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const o=this._declarationNodeIndex;let a=n.parent;for(;null!==a&&8&a.type&&a.index!==o;)a=a.parent;return o===(null!==a?a.index:-1)}return this._appliesToNextNode}matchTNode(n,o){const a=this.metadata.predicate;if(Array.isArray(a))for(let c=0;c<a.length;c++){const m=a[c];this.matchTNodeWithReadOption(n,o,I1(o,m)),this.matchTNodeWithReadOption(n,o,Es(o,n,m,!1,!1))}else a===xl?4&o.type&&this.matchTNodeWithReadOption(n,o,-1):this.matchTNodeWithReadOption(n,o,Es(o,n,a,!1,!1))}matchTNodeWithReadOption(n,o,a){if(null!==a){const c=this.metadata.read;if(null!==c)if(c===hl||c===Tc||c===xl&&4&o.type)this.addMatch(o.index,-2);else{const m=Es(o,n,c,!1,!1);null!==m&&this.addMatch(o.index,m)}else this.addMatch(o.index,a)}}addMatch(n,o){null===this.matches?this.matches=[n,o]:this.matches.push(n,o)}}function I1(e,n){const o=e.localNames;if(null!==o)for(let a=0;a<o.length;a+=2)if(o[a]===n)return o[a+1];return null}function P1(e,n,o,a){return-1===o?function R1(e,n){return 11&e.type?Ta(e,n):4&e.type?Mc(e,n):null}(n,e):-2===o?function N1(e,n,o){return o===hl?Ta(n,e):o===xl?Mc(n,e):o===Tc?Am(n,e):void 0}(e,n,a):oo(e,e[pn],o,n)}function Im(e,n,o,a){const c=n[Tt].queries[a];if(null===c.matches){const m=e.data,O=o.matches,H=[];for(let X=0;X<O.length;X+=2){const he=O[X];H.push(he<0?null:P1(n,m[he],O[X+1],o.metadata.read))}c.matches=H}return c.matches}function Cd(e,n,o,a){const c=e.queries.getByIndex(o),m=c.matches;if(null!==m){const O=Im(e,n,c,o);for(let H=0;H<m.length;H+=2){const X=m[H];if(X>0)a.push(O[H/2]);else{const he=m[H+1],Ie=n[-X];for(let et=wi;et<Ie.length;et++){const mt=Ie[et];mt[Io]===mt[bi]&&Cd(mt[pn],mt,he,a)}if(null!==Ie[oi]){const et=Ie[oi];for(let mt=0;mt<et.length;mt++){const Rt=et[mt];Cd(Rt[pn],Rt,he,a)}}}}}return a}function Rm(e){const n=z(),o=ee(),a=br();zr(a+1);const c=Um(o,a);if(e.dirty&&function ko(e){return 4==(4&e[$n])}(n)===(2==(2&c.metadata.flags))){if(null===c.matches)e.reset([]);else{const m=c.crossesNgTemplate?Cd(o,n,a,[]):Im(o,n,c,a);e.reset(m,R_),e.notifyOnChanges()}return!0}return!1}function Pm(e,n,o){const a=ee();a.firstCreatePass&&(Fm(a,new Om(e,n,o),-1),2==(2&n)&&(a.staticViewQueries=!0)),km(a,z(),n)}function Nm(e,n,o,a){const c=ee();if(c.firstCreatePass){const m=Mt();Fm(c,new Om(n,o,a),m.index),function k1(e,n){const o=e.contentQueries||(e.contentQueries=[]);n!==(o.length?o[o.length-1]:-1)&&o.push(e.queries.length-1,n)}(c,e),2==(2&o)&&(c.staticContentQueries=!0)}km(c,z(),o)}function Lm(){return function L1(e,n){return e[Tt].queries[n].queryList}(z(),br())}function km(e,n,o){const a=new fd(4==(4&o));Xp(e,n,a,a.destroy),null===n[Tt]&&(n[Tt]=new _d),n[Tt].queries.push(new gd(a))}function Fm(e,n,o){null===e.queries&&(e.queries=new yd),e.queries.track(new vd(n,o))}function Um(e,n){return e.queries.getByIndex(n)}function Bm(e,n){return Mc(e,n)}function Ed(e){return!!Ii(e)}function xc(...e){}const ig=new to("Application Initializer");let Dc=(()=>{class e{constructor(o){this.appInits=o,this.resolve=xc,this.reject=xc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,c)=>{this.resolve=a,this.reject=c})}runInitializers(){if(this.initialized)return;const o=[],a=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let c=0;c<this.appInits.length;c++){const m=this.appInits[c]();if($u(m))o.push(m);else if(Dh(m)){const O=new Promise((H,X)=>{m.subscribe({complete:H,error:X})});o.push(O)}}Promise.all(o).then(()=>{a()}).catch(c=>{this.reject(c)}),0===o.length&&a(),this.initialized=!0}}return e.\u0275fac=function(o){return new(o||e)(Ht(ig,8))},e.\u0275prov=lt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const og=new to("AppId",{providedIn:"root",factory:function rg(){return`${wd()}${wd()}${wd()}`}});function wd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const sg=new to("Platform Initializer"),nC=new to("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),iC=new to("AnimationModuleType");let oC=(()=>{class e{log(o){console.log(o)}warn(o){console.warn(o)}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=lt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Ac=new to("LocaleId",{providedIn:"root",factory:()=>Dt(Ac,yt.Optional|yt.SkipSelf)||function rC(){return typeof $localize<"u"&&$localize.locale||Ha}()}),sC=new to("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),aC=new to("TranslationsFormat");class lC{constructor(n,o){this.ngModuleFactory=n,this.componentFactories=o}}let cC=(()=>{class e{compileModuleSync(o){return new ud(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),m=Os(Ii(o).declarations).reduce((O,H)=>{const X=xn(H);return X&&O.push(new _l(X)),O},[]);return new lC(a,m)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=lt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const pC=(()=>Promise.resolve(0))();function xd(e){typeof Zone>"u"?pC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Gr{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:a=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ds(!1),this.onMicrotaskEmpty=new ds(!1),this.onStable=new ds(!1),this.onError=new ds(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();const c=this;c._nesting=0,c._outer=c._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(c._inner=c._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(c._inner=c._inner.fork(Zone.longStackTraceZoneSpec)),c.shouldCoalesceEventChangeDetection=!a&&o,c.shouldCoalesceRunChangeDetection=a,c.lastRequestAnimationFrameId=-1,c.nativeRequestAnimationFrame=function hC(){let e=En.requestAnimationFrame,n=En.cancelAnimationFrame;if(typeof Zone<"u"&&e&&n){const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o);const a=n[Zone.__symbol__("OriginalDelegate")];a&&(n=a)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function gC(e){const n=()=>{!function mC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(En,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ad(e),e.isCheckStableRunning=!0,Dd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ad(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(o,a,c,m,O,H)=>{try{return cg(e),o.invokeTask(c,m,O,H)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===m.type||e.shouldCoalesceRunChangeDetection)&&n(),ug(e)}},onInvoke:(o,a,c,m,O,H,X)=>{try{return cg(e),o.invoke(c,m,O,H,X)}finally{e.shouldCoalesceRunChangeDetection&&n(),ug(e)}},onHasTask:(o,a,c,m)=>{o.hasTask(c,m),a===c&&("microTask"==m.change?(e._hasPendingMicrotasks=m.microTask,Ad(e),Dd(e)):"macroTask"==m.change&&(e.hasPendingMacrotasks=m.macroTask))},onHandleError:(o,a,c,m)=>(o.handleError(c,m),e.runOutsideAngular(()=>e.onError.emit(m)),!1)})}(c)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Gr.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(Gr.isInAngularZone())throw new b(909,!1)}run(n,o,a){return this._inner.run(n,o,a)}runTask(n,o,a,c){const m=this._inner,O=m.scheduleEventTask("NgZoneEvent: "+c,n,fC,xc,xc);try{return m.runTask(O,o,a)}finally{m.cancelTask(O)}}runGuarded(n,o,a){return this._inner.runGuarded(n,o,a)}runOutsideAngular(n){return this._outer.run(n)}}const fC={};function Dd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ad(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ug(e){e._nesting--,Dd(e)}class _C{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ds,this.onMicrotaskEmpty=new ds,this.onStable=new ds,this.onError=new ds}run(n,o,a){return n.apply(o,a)}runGuarded(n,o,a){return n.apply(o,a)}runOutsideAngular(n){return n()}runTask(n,o,a,c){return n.apply(o,a)}}const dg=new to(""),pg=new to("");let Od,yC=(()=>{class e{constructor(o,a,c){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Od||(function vC(e){Od=e}(c),c.addToWindow(a)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Gr.assertNotInAngularZone(),xd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())xd(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb(this._didWork)}this._didWork=!1});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,c){let m=-1;a&&a>0&&(m=setTimeout(()=>{this._callbacks=this._callbacks.filter(O=>O.timeoutId!==m),o(this._didWork,this.getPendingTasks())},a)),this._callbacks.push({doneCb:o,timeoutId:m,updateCb:c})}whenStable(o,a,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(o,a,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,c){return[]}}return e.\u0275fac=function(o){return new(o||e)(Ht(Gr),Ht(hg),Ht(pg))},e.\u0275prov=lt({token:e,factory:e.\u0275fac}),e})(),hg=(()=>{class e{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){return Od?.findTestabilityInTree(this,o,a)??null}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=lt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Rs=!1;let Gs=null;const fg=new to("AllowMultipleToken"),Id=new to("PlatformDestroyListeners"),mg=new to("appBootstrapListener");class bC{constructor(n,o){this.name=n,this.token=o}}function _g(e,n,o=[]){const a=`Platform: ${n}`,c=new to(a);return(m=[])=>{let O=Rd();if(!O||O.injector.get(fg,!1)){const H=[...o,...m,{provide:c,useValue:!0}];e?e(H):function SC(e){if(Gs&&!Gs.get(fg,!1))throw new b(400,!1);Gs=e;const n=e.get(vg);(function gg(e){const n=e.get(sg,null);n&&n.forEach(o=>o())})(e)}(function yg(e=[],n){return na.create({name:n,providers:[{provide:pu,useValue:"platform"},{provide:Id,useValue:new Set([()=>Gs=null])},...e]})}(H,a))}return function TC(e){const n=Rd();if(!n)throw new b(401,!1);return n}()}}function Rd(){return Gs?.get(vg)??null}let vg=(()=>{class e{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const c=function Eg(e,n){let o;return o="noop"===e?new _C:("zone.js"===e?void 0:e)||new Gr(n),o}(a?.ngZone,function Cg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(a)),m=[{provide:Gr,useValue:c}];return c.run(()=>{const O=na.create({providers:m,parent:this.injector,name:o.moduleType.name}),H=o.create(O),X=H.injector.get(fl,null);if(!X)throw new b(402,!1);return c.runOutsideAngular(()=>{const he=c.onError.subscribe({next:Ie=>{X.handleError(Ie)}});H.onDestroy(()=>{Ic(this._modules,H),he.unsubscribe()})}),function bg(e,n,o){try{const a=o();return $u(a)?a.catch(c=>{throw n.runOutsideAngular(()=>e.handleError(c)),c}):a}catch(a){throw n.runOutsideAngular(()=>e.handleError(a)),a}}(X,c,()=>{const he=H.injector.get(Dc);return he.runInitializers(),he.donePromise.then(()=>(Of(H.injector.get(Ac,Ha)||Ha),this._moduleDoBootstrap(H),H))})})}bootstrapModule(o,a=[]){const c=Sg({},a);return function CC(e,n,o){const a=new ud(o);return Promise.resolve(a)}(0,0,o).then(m=>this.bootstrapModuleFactory(m,c))}_moduleDoBootstrap(o){const a=o.injector.get(Oc);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(c=>a.bootstrap(c));else{if(!o.instance.ngDoBootstrap)throw new b(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(Id,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(o){return new(o||e)(Ht(na))},e.\u0275prov=lt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Sg(e,n){return Array.isArray(n)?n.reduce(Sg,e):{...e,...n}}let Oc=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(o,a,c){this._zone=o,this._injector=a,this._exceptionHandler=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const m=new r.y(H=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{H.next(this._stable),H.complete()})}),O=new r.y(H=>{let X;this._zone.runOutsideAngular(()=>{X=this._zone.onStable.subscribe(()=>{Gr.assertNotInAngularZone(),xd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,H.next(!0))})})});const he=this._zone.onUnstable.subscribe(()=>{Gr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{H.next(!1)}))});return()=>{X.unsubscribe(),he.unsubscribe()}});this.isStable=(0,L.T)(m,O.pipe((0,M.B)()))}bootstrap(o,a){const c=o instanceof Tp;if(!this._injector.get(Dc).done){!c&&so(o);throw new b(405,Rs)}let O;O=c?o:this._injector.get(pl).resolveComponentFactory(o),this.componentTypes.push(O.componentType);const H=function EC(e){return e.isBoundToModule}(O)?void 0:this._injector.get(Ga),he=O.create(na.NULL,[],a||O.selector,H),Ie=he.location.nativeElement,et=he.injector.get(dg,null);return et?.registerApplication(Ie),he.onDestroy(()=>{this.detachView(he.hostView),Ic(this.components,he),et?.unregisterApplication(Ie)}),this._loadComponent(he),he}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0;for(let o of this._views)o.detectChanges()}catch(o){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(o))}finally{this._runningTick=!1}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;Ic(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(mg,[]);a.push(...this._bootstrapListeners),a.forEach(c=>c(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>Ic(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new b(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(o){return new(o||e)(Ht(Gr),Ht(ta),Ht(fl))},e.\u0275prov=lt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ic(e,n){const o=e.indexOf(n);o>-1&&e.splice(o,1)}function xC(){return!1}function DC(){}let AC=(()=>{class e{}return e.__NG_ELEMENT_ID__=OC,e})();function OC(e){return function IC(e,n,o){if(Vo(e)&&!o){const a=Ji(e.index,n);return new gl(a,a)}return 47&e.type?new gl(n[li],n):null}(Mt(),z(),16==(16&e))}class Dg{constructor(){}supports(n){return dc(n)}create(n){return new FC(n)}}const kC=(e,n)=>n;class FC{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||kC}forEachItem(n){let o;for(o=this._itHead;null!==o;o=o._next)n(o)}forEachOperation(n){let o=this._itHead,a=this._removalsHead,c=0,m=null;for(;o||a;){const O=!a||o&&o.currentIndex<Og(a,c,m)?o:a,H=Og(O,c,m),X=O.currentIndex;if(O===a)c--,a=a._nextRemoved;else if(o=o._next,null==O.previousIndex)c++;else{m||(m=[]);const he=H-c,Ie=X-c;if(he!=Ie){for(let mt=0;mt<he;mt++){const Rt=mt<m.length?m[mt]:m[mt]=0,qt=Rt+mt;Ie<=qt&&qt<he&&(m[mt]=Rt+1)}m[O.previousIndex]=Ie-he}}H!==X&&n(O,H,X)}}forEachPreviousItem(n){let o;for(o=this._previousItHead;null!==o;o=o._nextPrevious)n(o)}forEachAddedItem(n){let o;for(o=this._additionsHead;null!==o;o=o._nextAdded)n(o)}forEachMovedItem(n){let o;for(o=this._movesHead;null!==o;o=o._nextMoved)n(o)}forEachRemovedItem(n){let o;for(o=this._removalsHead;null!==o;o=o._nextRemoved)n(o)}forEachIdentityChange(n){let o;for(o=this._identityChangesHead;null!==o;o=o._nextIdentityChange)n(o)}diff(n){if(null==n&&(n=[]),!dc(n))throw new b(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let c,m,O,o=this._itHead,a=!1;if(Array.isArray(n)){this.length=n.length;for(let H=0;H<this.length;H++)m=n[H],O=this._trackByFn(H,m),null!==o&&Object.is(o.trackById,O)?(a&&(o=this._verifyReinsertion(o,m,O,H)),Object.is(o.item,m)||this._addIdentityChange(o,m)):(o=this._mismatch(o,m,O,H),a=!0),o=o._next}else c=0,function gy(e,n){if(Array.isArray(e))for(let o=0;o<e.length;o++)n(e[o]);else{const o=e[Symbol.iterator]();let a;for(;!(a=o.next()).done;)n(a.value)}}(n,H=>{O=this._trackByFn(c,H),null!==o&&Object.is(o.trackById,O)?(a&&(o=this._verifyReinsertion(o,H,O,c)),Object.is(o.item,H)||this._addIdentityChange(o,H)):(o=this._mismatch(o,H,O,c),a=!0),o=o._next,c++}),this.length=c;return this._truncate(o),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,o,a,c){let m;return null===n?m=this._itTail:(m=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null))?(Object.is(n.item,o)||this._addIdentityChange(n,o),this._reinsertAfter(n,m,c)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(a,c))?(Object.is(n.item,o)||this._addIdentityChange(n,o),this._moveAfter(n,m,c)):n=this._addAfter(new UC(o,a),m,c),n}_verifyReinsertion(n,o,a,c){let m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null);return null!==m?n=this._reinsertAfter(m,n._prev,c):n.currentIndex!=c&&(n.currentIndex=c,this._addToMoves(n,c)),n}_truncate(n){for(;null!==n;){const o=n._next;this._addToRemovals(this._unlink(n)),n=o}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,o,a){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const c=n._prevRemoved,m=n._nextRemoved;return null===c?this._removalsHead=m:c._nextRemoved=m,null===m?this._removalsTail=c:m._prevRemoved=c,this._insertAfter(n,o,a),this._addToMoves(n,a),n}_moveAfter(n,o,a){return this._unlink(n),this._insertAfter(n,o,a),this._addToMoves(n,a),n}_addAfter(n,o,a){return this._insertAfter(n,o,a),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,o,a){const c=null===o?this._itHead:o._next;return n._next=c,n._prev=o,null===c?this._itTail=n:c._prev=n,null===o?this._itHead=n:o._next=n,null===this._linkedRecords&&(this._linkedRecords=new Ag),this._linkedRecords.put(n),n.currentIndex=a,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const o=n._prev,a=n._next;return null===o?this._itHead=a:o._next=a,null===a?this._itTail=o:a._prev=o,n}_addToMoves(n,o){return n.previousIndex===o||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ag),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,o){return n.item=o,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class UC{constructor(n,o){this.item=n,this.trackById=o,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class BC{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,o){let a;for(a=this._head;null!==a;a=a._nextDup)if((null===o||o<=a.currentIndex)&&Object.is(a.trackById,n))return a;return null}remove(n){const o=n._prevDup,a=n._nextDup;return null===o?this._head=a:o._nextDup=a,null===a?this._tail=o:a._prevDup=o,null===this._head}}class Ag{constructor(){this.map=new Map}put(n){const o=n.trackById;let a=this.map.get(o);a||(a=new BC,this.map.set(o,a)),a.add(n)}get(n,o){const c=this.map.get(n);return c?c.get(n,o):null}remove(n){const o=n.trackById;return this.map.get(o).remove(n)&&this.map.delete(o),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Og(e,n,o){const a=e.previousIndex;if(null===a)return a;let c=0;return o&&a<o.length&&(c=o[a]),a+n+c}class Ig{constructor(){}supports(n){return n instanceof Map||Fu(n)}create(){return new VC}}class VC{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let o;for(o=this._mapHead;null!==o;o=o._next)n(o)}forEachPreviousItem(n){let o;for(o=this._previousMapHead;null!==o;o=o._nextPrevious)n(o)}forEachChangedItem(n){let o;for(o=this._changesHead;null!==o;o=o._nextChanged)n(o)}forEachAddedItem(n){let o;for(o=this._additionsHead;null!==o;o=o._nextAdded)n(o)}forEachRemovedItem(n){let o;for(o=this._removalsHead;null!==o;o=o._nextRemoved)n(o)}diff(n){if(n){if(!(n instanceof Map||Fu(n)))throw new b(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let o=this._mapHead;if(this._appendAfter=null,this._forEach(n,(a,c)=>{if(o&&o.key===c)this._maybeAddToChanges(o,a),this._appendAfter=o,o=o._next;else{const m=this._getOrCreateRecordForKey(c,a);o=this._insertBeforeOrAppend(o,m)}}),o){o._prev&&(o._prev._next=null),this._removalsHead=o;for(let a=o;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,o){if(n){const a=n._prev;return o._next=n,o._prev=a,n._prev=o,a&&(a._next=o),n===this._mapHead&&(this._mapHead=o),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=o,o._prev=this._appendAfter):this._mapHead=o,this._appendAfter=o,null}_getOrCreateRecordForKey(n,o){if(this._records.has(n)){const c=this._records.get(n);this._maybeAddToChanges(c,o);const m=c._prev,O=c._next;return m&&(m._next=O),O&&(O._prev=m),c._next=null,c._prev=null,c}const a=new HC(n);return this._records.set(n,a),a.currentValue=o,this._addToAdditions(a),a}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,o){Object.is(o,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=o,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,o){n instanceof Map?n.forEach(o):Object.keys(n).forEach(a=>o(n[a],a))}}class HC{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Rg(){return new Fd([new Dg])}let Fd=(()=>{class e{constructor(o){this.factories=o}static create(o,a){if(null!=a){const c=a.factories.slice();o=o.concat(c)}return new e(o)}static extend(o){return{provide:e,useFactory:a=>e.create(o,a||Rg()),deps:[[e,new ar,new xi]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(null!=a)return a;throw new b(901,!1)}}return e.\u0275prov=lt({token:e,providedIn:"root",factory:Rg}),e})();function Pg(){return new Ud([new Ig])}let Ud=(()=>{class e{constructor(o){this.factories=o}static create(o,a){if(a){const c=a.factories.slice();o=o.concat(c)}return new e(o)}static extend(o){return{provide:e,useFactory:a=>e.create(o,a||Pg()),deps:[[e,new ar,new xi]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(a)return a;throw new b(901,!1)}}return e.\u0275prov=lt({token:e,providedIn:"root",factory:Pg}),e})();const zC=_g(null,"core",[]);let KC=(()=>{class e{constructor(o){}}return e.\u0275fac=function(o){return new(o||e)(Ht(Oc))},e.\u0275mod=Ze({type:e}),e.\u0275inj=wt({}),e})();function jC(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},6803:(qe,re,l)=>{"use strict";l.d(re,{Fj:()=>k,qu:()=>Ne,NI:()=>li,u:()=>rn,sg:()=>Se,u5:()=>vi,nD:()=>Ri,Cf:()=>V,JU:()=>h,a5:()=>bt,JJ:()=>En,JL:()=>Ln,F:()=>Si,On:()=>oi,YN:()=>jn,UX:()=>pi,Q7:()=>An,QS:()=>ln,p4:()=>Io,nJ:()=>Xt,kI:()=>ue,_Y:()=>wi,Kr:()=>Ki});var t=l(2560),i=l(4666),r=l(7400),L=l(833),M=l(5756),v=l(4987),y=l(420),u=l(3945),_=l(8385),p=l(1054),g=l(635);let f=(()=>{class z{constructor(q,Ae){this._renderer=q,this._elementRef=Ae,this.onChange=Mt=>{},this.onTouched=()=>{}}setProperty(q,Ae){this._renderer.setProperty(this._elementRef.nativeElement,q,Ae)}registerOnTouched(q){this.onTouched=q}registerOnChange(q){this.onChange=q}setDisabledState(q){this.setProperty("disabled",q)}}return z.\u0275fac=function(q){return new(q||z)(t.Y36(t.Qsj),t.Y36(t.SBq))},z.\u0275dir=t.lG2({type:z}),z})(),d=(()=>{class z extends f{}return z.\u0275fac=function(){let ee;return function(Ae){return(ee||(ee=t.n5z(z)))(Ae||z)}}(),z.\u0275dir=t.lG2({type:z,features:[t.qOj]}),z})();const h=new t.OlP("NgValueAccessor"),P={provide:h,useExisting:(0,t.Gpc)(()=>k),multi:!0},I=new t.OlP("CompositionEventMode");let k=(()=>{class z extends f{constructor(q,Ae,Mt){super(q,Ae),this._compositionMode=Mt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function W(){const z=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(z.toLowerCase())}())}writeValue(q){this.setProperty("value",q??"")}_handleInput(q){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(q)}_compositionStart(){this._composing=!0}_compositionEnd(q){this._composing=!1,this._compositionMode&&this.onChange(q)}}return z.\u0275fac=function(q){return new(q||z)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(I,8))},z.\u0275dir=t.lG2({type:z,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(q,Ae){1&q&&t.NdJ("input",function(Cn){return Ae._handleInput(Cn.target.value)})("blur",function(){return Ae.onTouched()})("compositionstart",function(){return Ae._compositionStart()})("compositionend",function(Cn){return Ae._compositionEnd(Cn.target.value)})},features:[t._Bn([P]),t.qOj]}),z})();const D=!1;function N(z){return null==z||("string"==typeof z||Array.isArray(z))&&0===z.length}function s(z){return null!=z&&"number"==typeof z.length}const V=new t.OlP("NgValidators"),Q=new t.OlP("NgAsyncValidators"),me=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ue{static min(ee){return function De(z){return ee=>{if(N(ee.value)||N(z))return null;const q=parseFloat(ee.value);return!isNaN(q)&&q<z?{min:{min:z,actual:ee.value}}:null}}(ee)}static max(ee){return function Ue(z){return ee=>{if(N(ee.value)||N(z))return null;const q=parseFloat(ee.value);return!isNaN(q)&&q>z?{max:{max:z,actual:ee.value}}:null}}(ee)}static required(ee){return Xe(ee)}static requiredTrue(ee){return function st(z){return!0===z.value?null:{required:!0}}(ee)}static email(ee){return function ze(z){return N(z.value)||me.test(z.value)?null:{email:!0}}(ee)}static minLength(ee){return function F(z){return ee=>N(ee.value)||!s(ee.value)?null:ee.value.length<z?{minlength:{requiredLength:z,actualLength:ee.value.length}}:null}(ee)}static maxLength(ee){return Re(ee)}static pattern(ee){return function de(z){if(!z)return Ce;let ee,q;return"string"==typeof z?(q="","^"!==z.charAt(0)&&(q+="^"),q+=z,"$"!==z.charAt(z.length-1)&&(q+="$"),ee=new RegExp(q)):(q=z.toString(),ee=z),Ae=>{if(N(Ae.value))return null;const Mt=Ae.value;return ee.test(Mt)?null:{pattern:{requiredPattern:q,actualValue:Mt}}}}(ee)}static nullValidator(ee){return null}static compose(ee){return Pt(ee)}static composeAsync(ee){return Bt(ee)}}function Xe(z){return N(z.value)?{required:!0}:null}function Re(z){return ee=>s(ee.value)&&ee.value.length>z?{maxlength:{requiredLength:z,actualLength:ee.value.length}}:null}function Ce(z){return null}function oe(z){return null!=z}function G(z){const ee=(0,t.QGY)(z)?(0,r.D)(z):z;if(D&&!(0,t.CqO)(ee)){let q="Expected async validator to return Promise or Observable.";throw"object"==typeof z&&(q+=" Are you using a synchronous validator where an async validator is expected?"),new t.vHH(-1101,q)}return ee}function ye(z){let ee={};return z.forEach(q=>{ee=null!=q?{...ee,...q}:ee}),0===Object.keys(ee).length?null:ee}function we(z,ee){return ee.map(q=>q(z))}function lt(z){return z.map(ee=>function Fe(z){return!z.validate}(ee)?ee:q=>ee.validate(q))}function Pt(z){if(!z)return null;const ee=z.filter(oe);return 0==ee.length?null:function(q){return ye(we(q,ee))}}function wt(z){return null!=z?Pt(lt(z)):null}function Bt(z){if(!z)return null;const ee=z.filter(oe);return 0==ee.length?null:function(q){return function C(...z){const ee=(0,y.jO)(z),{args:q,keys:Ae}=(0,M.D)(z),Mt=new L.y(Cn=>{const{length:hi}=q;if(!hi)return void Cn.complete();const Bi=new Array(hi);let ir=hi,or=hi;for(let Go=0;Go<hi;Go++){let $o=!1;(0,v.Xf)(q[Go]).subscribe((0,u.x)(Cn,wo=>{$o||($o=!0,or--),Bi[Go]=wo},()=>ir--,void 0,()=>{(!ir||!$o)&&(or||Cn.next(Ae?(0,p.n)(Ae,Bi):Bi),Cn.complete())}))}});return ee?Mt.pipe((0,_.Z)(ee)):Mt}(we(q,ee).map(G)).pipe((0,g.U)(ye))}}function nn(z){return null!=z?Bt(lt(z)):null}function xt(z,ee){return null===z?[ee]:Array.isArray(z)?[...z,ee]:[z,ee]}function sn(z){return z._rawValidators}function ct(z){return z._rawAsyncValidators}function Ve(z){return z?Array.isArray(z)?z:[z]:[]}function rt(z,ee){return Array.isArray(z)?z.includes(ee):z===ee}function Et(z,ee){const q=Ve(ee);return Ve(z).forEach(Mt=>{rt(q,Mt)||q.push(Mt)}),q}function Ft(z,ee){return Ve(ee).filter(q=>!rt(z,q))}class yt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(ee){this._rawValidators=ee||[],this._composedValidatorFn=wt(this._rawValidators)}_setAsyncValidators(ee){this._rawAsyncValidators=ee||[],this._composedAsyncValidatorFn=nn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ee){this._onDestroyCallbacks.push(ee)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ee=>ee()),this._onDestroyCallbacks=[]}reset(ee){this.control&&this.control.reset(ee)}hasError(ee,q){return!!this.control&&this.control.hasError(ee,q)}getError(ee,q){return this.control?this.control.getError(ee,q):null}}class un extends yt{get formDirective(){return null}get path(){return null}}class bt extends yt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Jt{constructor(ee){this._cd=ee}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let En=(()=>{class z extends Jt{constructor(q){super(q)}}return z.\u0275fac=function(q){return new(q||z)(t.Y36(bt,2))},z.\u0275dir=t.lG2({type:z,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(q,Ae){2&q&&t.ekj("ng-untouched",Ae.isUntouched)("ng-touched",Ae.isTouched)("ng-pristine",Ae.isPristine)("ng-dirty",Ae.isDirty)("ng-valid",Ae.isValid)("ng-invalid",Ae.isInvalid)("ng-pending",Ae.isPending)},features:[t.qOj]}),z})(),Ln=(()=>{class z extends Jt{constructor(q){super(q)}}return z.\u0275fac=function(q){return new(q||z)(t.Y36(un,10))},z.\u0275dir=t.lG2({type:z,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(q,Ae){2&q&&t.ekj("ng-untouched",Ae.isUntouched)("ng-touched",Ae.isTouched)("ng-pristine",Ae.isPristine)("ng-dirty",Ae.isDirty)("ng-valid",Ae.isValid)("ng-invalid",Ae.isInvalid)("ng-pending",Ae.isPending)("ng-submitted",Ae.isSubmitted)},features:[t.qOj]}),z})();function pt(z,ee){return z?`with name: '${ee}'`:`at index: ${ee}`}const at=!1,Gt="VALID",Ut="INVALID",gn="PENDING",Mn="DISABLED";function kn(z){return(Je(z)?z.validators:z)||null}function Fn(z,ee){return(Je(ee)?ee.asyncValidators:z)||null}function Je(z){return null!=z&&!Array.isArray(z)&&"object"==typeof z}function Y(z,ee,q){const Ae=z.controls;if(!(ee?Object.keys(Ae):Ae).length)throw new t.vHH(1e3,at?function Dt(z){return`\n    There are no form controls registered with this ${z?"group":"array"} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `}(ee):"");if(!Ae[q])throw new t.vHH(1001,at?function ot(z,ee){return`Cannot find form control ${pt(z,ee)}`}(ee,q):"")}function le(z,ee,q){z._forEachChild((Ae,Mt)=>{if(void 0===q[Mt])throw new t.vHH(1002,at?function Be(z,ee){return`Must supply a value for form control ${pt(z,ee)}`}(ee,Mt):"")})}class Oe{constructor(ee,q){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ee),this._assignAsyncValidators(q)}get validator(){return this._composedValidatorFn}set validator(ee){this._rawValidators=this._composedValidatorFn=ee}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ee){this._rawAsyncValidators=this._composedAsyncValidatorFn=ee}get parent(){return this._parent}get valid(){return this.status===Gt}get invalid(){return this.status===Ut}get pending(){return this.status==gn}get disabled(){return this.status===Mn}get enabled(){return this.status!==Mn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ee){this._assignValidators(ee)}setAsyncValidators(ee){this._assignAsyncValidators(ee)}addValidators(ee){this.setValidators(Et(ee,this._rawValidators))}addAsyncValidators(ee){this.setAsyncValidators(Et(ee,this._rawAsyncValidators))}removeValidators(ee){this.setValidators(Ft(ee,this._rawValidators))}removeAsyncValidators(ee){this.setAsyncValidators(Ft(ee,this._rawAsyncValidators))}hasValidator(ee){return rt(this._rawValidators,ee)}hasAsyncValidator(ee){return rt(this._rawAsyncValidators,ee)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ee={}){this.touched=!0,this._parent&&!ee.onlySelf&&this._parent.markAsTouched(ee)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ee=>ee.markAllAsTouched())}markAsUntouched(ee={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(q=>{q.markAsUntouched({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}markAsDirty(ee={}){this.pristine=!1,this._parent&&!ee.onlySelf&&this._parent.markAsDirty(ee)}markAsPristine(ee={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(q=>{q.markAsPristine({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}markAsPending(ee={}){this.status=gn,!1!==ee.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ee.onlySelf&&this._parent.markAsPending(ee)}disable(ee={}){const q=this._parentMarkedDirty(ee.onlySelf);this.status=Mn,this.errors=null,this._forEachChild(Ae=>{Ae.disable({...ee,onlySelf:!0})}),this._updateValue(),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ee,skipPristineCheck:q}),this._onDisabledChange.forEach(Ae=>Ae(!0))}enable(ee={}){const q=this._parentMarkedDirty(ee.onlySelf);this.status=Gt,this._forEachChild(Ae=>{Ae.enable({...ee,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent}),this._updateAncestors({...ee,skipPristineCheck:q}),this._onDisabledChange.forEach(Ae=>Ae(!1))}_updateAncestors(ee){this._parent&&!ee.onlySelf&&(this._parent.updateValueAndValidity(ee),ee.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ee){this._parent=ee}getRawValue(){return this.value}updateValueAndValidity(ee={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gt||this.status===gn)&&this._runAsyncValidator(ee.emitEvent)),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ee.onlySelf&&this._parent.updateValueAndValidity(ee)}_updateTreeValidity(ee={emitEvent:!0}){this._forEachChild(q=>q._updateTreeValidity(ee)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mn:Gt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ee){if(this.asyncValidator){this.status=gn,this._hasOwnPendingAsyncValidator=!0;const q=G(this.asyncValidator(this));this._asyncValidationSubscription=q.subscribe(Ae=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ae,{emitEvent:ee})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ee,q={}){this.errors=ee,this._updateControlsErrors(!1!==q.emitEvent)}get(ee){let q=ee;return null==q||(Array.isArray(q)||(q=q.split(".")),0===q.length)?null:q.reduce((Ae,Mt)=>Ae&&Ae._find(Mt),this)}getError(ee,q){const Ae=q?this.get(q):this;return Ae&&Ae.errors?Ae.errors[ee]:null}hasError(ee,q){return!!this.getError(ee,q)}get root(){let ee=this;for(;ee._parent;)ee=ee._parent;return ee}_updateControlsErrors(ee){this.status=this._calculateStatus(),ee&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ee)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Mn:this.errors?Ut:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gn)?gn:this._anyControlsHaveStatus(Ut)?Ut:Gt}_anyControlsHaveStatus(ee){return this._anyControls(q=>q.status===ee)}_anyControlsDirty(){return this._anyControls(ee=>ee.dirty)}_anyControlsTouched(){return this._anyControls(ee=>ee.touched)}_updatePristine(ee={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}_updateTouched(ee={}){this.touched=this._anyControlsTouched(),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}_registerOnCollectionChange(ee){this._onCollectionChange=ee}_setUpdateStrategy(ee){Je(ee)&&null!=ee.updateOn&&(this._updateOn=ee.updateOn)}_parentMarkedDirty(ee){return!ee&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ee){return null}_assignValidators(ee){this._rawValidators=Array.isArray(ee)?ee.slice():ee,this._composedValidatorFn=function Rn(z){return Array.isArray(z)?wt(z):z||null}(this._rawValidators)}_assignAsyncValidators(ee){this._rawAsyncValidators=Array.isArray(ee)?ee.slice():ee,this._composedAsyncValidatorFn=function ut(z){return Array.isArray(z)?nn(z):z||null}(this._rawAsyncValidators)}}class nt extends Oe{constructor(ee,q,Ae){super(kn(q),Fn(Ae,q)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ee,q){return this.controls[ee]?this.controls[ee]:(this.controls[ee]=q,q.setParent(this),q._registerOnCollectionChange(this._onCollectionChange),q)}addControl(ee,q,Ae={}){this.registerControl(ee,q),this.updateValueAndValidity({emitEvent:Ae.emitEvent}),this._onCollectionChange()}removeControl(ee,q={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}setControl(ee,q,Ae={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],q&&this.registerControl(ee,q),this.updateValueAndValidity({emitEvent:Ae.emitEvent}),this._onCollectionChange()}contains(ee){return this.controls.hasOwnProperty(ee)&&this.controls[ee].enabled}setValue(ee,q={}){le(this,!0,ee),Object.keys(ee).forEach(Ae=>{Y(this,!0,Ae),this.controls[Ae].setValue(ee[Ae],{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q)}patchValue(ee,q={}){null!=ee&&(Object.keys(ee).forEach(Ae=>{const Mt=this.controls[Ae];Mt&&Mt.patchValue(ee[Ae],{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q))}reset(ee={},q={}){this._forEachChild((Ae,Mt)=>{Ae.reset(ee[Mt],{onlySelf:!0,emitEvent:q.emitEvent})}),this._updatePristine(q),this._updateTouched(q),this.updateValueAndValidity(q)}getRawValue(){return this._reduceChildren({},(ee,q,Ae)=>(ee[Ae]=q.getRawValue(),ee))}_syncPendingControls(){let ee=this._reduceChildren(!1,(q,Ae)=>!!Ae._syncPendingControls()||q);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){Object.keys(this.controls).forEach(q=>{const Ae=this.controls[q];Ae&&ee(Ae,q)})}_setUpControls(){this._forEachChild(ee=>{ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ee){for(const[q,Ae]of Object.entries(this.controls))if(this.contains(q)&&ee(Ae))return!0;return!1}_reduceValue(){return this._reduceChildren({},(q,Ae,Mt)=>((Ae.enabled||this.disabled)&&(q[Mt]=Ae.value),q))}_reduceChildren(ee,q){let Ae=ee;return this._forEachChild((Mt,Cn)=>{Ae=q(Ae,Mt,Cn)}),Ae}_allControlsDisabled(){for(const ee of Object.keys(this.controls))if(this.controls[ee].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ee){return this.controls.hasOwnProperty(ee)?this.controls[ee]:null}}const Xt=nt;class St extends nt{}const He=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>ht}),ht="always";function Ze(z,ee){return[...ee.path,z]}function Kt(z,ee,q=ht){xn(z,ee),ee.valueAccessor.writeValue(z.value),(z.disabled||"always"===q)&&ee.valueAccessor.setDisabledState?.(z.disabled),function Oi(z,ee){ee.valueAccessor.registerOnChange(q=>{z._pendingValue=q,z._pendingChange=!0,z._pendingDirty=!0,"change"===z.updateOn&&Ii(z,ee)})}(z,ee),function yo(z,ee){const q=(Ae,Mt)=>{ee.valueAccessor.writeValue(Ae),Mt&&ee.viewToModelUpdate(Ae)};z.registerOnChange(q),ee._registerOnDestroy(()=>{z._unregisterOnChange(q)})}(z,ee),function so(z,ee){ee.valueAccessor.registerOnTouched(()=>{z._pendingTouched=!0,"blur"===z.updateOn&&z._pendingChange&&Ii(z,ee),"submit"!==z.updateOn&&z.markAsTouched()})}(z,ee),function ai(z,ee){if(ee.valueAccessor.setDisabledState){const q=Ae=>{ee.valueAccessor.setDisabledState(Ae)};z.registerOnDisabledChange(q),ee._registerOnDestroy(()=>{z._unregisterOnDisabledChange(q)})}}(z,ee)}function Hn(z,ee,q=!0){const Ae=()=>{};ee.valueAccessor&&(ee.valueAccessor.registerOnChange(Ae),ee.valueAccessor.registerOnTouched(Ae)),ni(z,ee),z&&(ee._invokeOnDestroyCallbacks(),z._registerOnCollectionChange(()=>{}))}function ei(z,ee){z.forEach(q=>{q.registerOnValidatorChange&&q.registerOnValidatorChange(ee)})}function xn(z,ee){const q=sn(z);null!==ee.validator?z.setValidators(xt(q,ee.validator)):"function"==typeof q&&z.setValidators([q]);const Ae=ct(z);null!==ee.asyncValidator?z.setAsyncValidators(xt(Ae,ee.asyncValidator)):"function"==typeof Ae&&z.setAsyncValidators([Ae]);const Mt=()=>z.updateValueAndValidity();ei(ee._rawValidators,Mt),ei(ee._rawAsyncValidators,Mt)}function ni(z,ee){let q=!1;if(null!==z){if(null!==ee.validator){const Mt=sn(z);if(Array.isArray(Mt)&&Mt.length>0){const Cn=Mt.filter(hi=>hi!==ee.validator);Cn.length!==Mt.length&&(q=!0,z.setValidators(Cn))}}if(null!==ee.asyncValidator){const Mt=ct(z);if(Array.isArray(Mt)&&Mt.length>0){const Cn=Mt.filter(hi=>hi!==ee.asyncValidator);Cn.length!==Mt.length&&(q=!0,z.setAsyncValidators(Cn))}}}const Ae=()=>{};return ei(ee._rawValidators,Ae),ei(ee._rawAsyncValidators,Ae),q}function Ii(z,ee){z._pendingDirty&&z.markAsDirty(),z.setValue(z._pendingValue,{emitModelToViewChange:!1}),ee.viewToModelUpdate(z._pendingValue),z._pendingChange=!1}function ao(z,ee){xn(z,ee)}function ro(z,ee){if(!z.hasOwnProperty("model"))return!1;const q=z.model;return!!q.isFirstChange()||!Object.is(ee,q.currentValue)}function zi(z,ee){z._syncPendingControls(),ee.forEach(q=>{const Ae=q.control;"submit"===Ae.updateOn&&Ae._pendingChange&&(q.viewToModelUpdate(Ae._pendingValue),Ae._pendingChange=!1)})}function Pn(z,ee){if(!ee)return null;let q,Ae,Mt;return Array.isArray(ee),ee.forEach(Cn=>{Cn.constructor===k?q=Cn:function _i(z){return Object.getPrototypeOf(z.constructor)===d}(Cn)?Ae=Cn:Mt=Cn}),Mt||Ae||q||null}const Jn={provide:un,useExisting:(0,t.Gpc)(()=>Si)},Ui=(()=>Promise.resolve())();let Si=(()=>{class z extends un{constructor(q,Ae,Mt){super(),this.callSetDisabledState=Mt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new nt({},wt(q),nn(Ae))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(q){Ui.then(()=>{const Ae=this._findContainer(q.path);q.control=Ae.registerControl(q.name,q.control),Kt(q.control,q,this.callSetDisabledState),q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(q)})}getControl(q){return this.form.get(q.path)}removeControl(q){Ui.then(()=>{const Ae=this._findContainer(q.path);Ae&&Ae.removeControl(q.name),this._directives.delete(q)})}addFormGroup(q){Ui.then(()=>{const Ae=this._findContainer(q.path),Mt=new nt({});ao(Mt,q),Ae.registerControl(q.name,Mt),Mt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(q){Ui.then(()=>{const Ae=this._findContainer(q.path);Ae&&Ae.removeControl(q.name)})}getFormGroup(q){return this.form.get(q.path)}updateModel(q,Ae){Ui.then(()=>{this.form.get(q.path).setValue(Ae)})}setValue(q){this.control.setValue(q)}onSubmit(q){return this.submitted=!0,zi(this.form,this._directives),this.ngSubmit.emit(q),"dialog"===q?.target?.method}onReset(){this.resetForm()}resetForm(q){this.form.reset(q),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(q){return q.pop(),q.length?this.form.get(q):this.form}}return z.\u0275fac=function(q){return new(q||z)(t.Y36(V,10),t.Y36(Q,10),t.Y36(He,8))},z.\u0275dir=t.lG2({type:z,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(q,Ae){1&q&&t.NdJ("submit",function(Cn){return Ae.onSubmit(Cn)})("reset",function(){return Ae.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Jn]),t.qOj]}),z})();function Yn(z,ee){const q=z.indexOf(ee);q>-1&&z.splice(q,1)}function Yi(z){return"object"==typeof z&&null!==z&&2===Object.keys(z).length&&"value"in z&&"disabled"in z}const li=class extends Oe{constructor(ee=null,q,Ae){super(kn(q),Fn(Ae,q)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ee),this._setUpdateStrategy(q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Je(q)&&(q.nonNullable||q.initialValueIsDefault)&&(this.defaultValue=Yi(ee)?ee.value:ee)}setValue(ee,q={}){this.value=this._pendingValue=ee,this._onChange.length&&!1!==q.emitModelToViewChange&&this._onChange.forEach(Ae=>Ae(this.value,!1!==q.emitViewToModelChange)),this.updateValueAndValidity(q)}patchValue(ee,q={}){this.setValue(ee,q)}reset(ee=this.defaultValue,q={}){this._applyFormState(ee),this.markAsPristine(q),this.markAsUntouched(q),this.setValue(this.value,q),this._pendingChange=!1}_updateValue(){}_anyControls(ee){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ee){this._onChange.push(ee)}_unregisterOnChange(ee){Yn(this._onChange,ee)}registerOnDisabledChange(ee){this._onDisabledChange.push(ee)}_unregisterOnDisabledChange(ee){Yn(this._onDisabledChange,ee)}_forEachChild(ee){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(ee){Yi(ee)?(this.value=this._pendingValue=ee.value,ee.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ee}},Io=li,yi={provide:bt,useExisting:(0,t.Gpc)(()=>oi)},qi=(()=>Promise.resolve())();let oi=(()=>{class z extends bt{constructor(q,Ae,Mt,Cn,hi,Bi){super(),this._changeDetectorRef=hi,this.callSetDisabledState=Bi,this.control=new li,this._registered=!1,this.update=new t.vpe,this._parent=q,this._setValidators(Ae),this._setAsyncValidators(Mt),this.valueAccessor=Pn(0,Cn)}ngOnChanges(q){if(this._checkForErrors(),!this._registered||"name"in q){if(this._registered&&(this._checkName(),this.formDirective)){const Ae=q.name.previousValue;this.formDirective.removeControl({name:Ae,path:this._getPath(Ae)})}this._setUpControl()}"isDisabled"in q&&this._updateDisabled(q),ro(q,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(q){this.viewModel=q,this.update.emit(q)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Kt(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(q){qi.then(()=>{this.control.setValue(q,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(q){const Ae=q.isDisabled.currentValue,Mt=0!==Ae&&(0,t.D6c)(Ae);qi.then(()=>{Mt&&!this.control.disabled?this.control.disable():!Mt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(q){return this._parent?Ze(q,this._parent):[q]}}return z.\u0275fac=function(q){return new(q||z)(t.Y36(un,9),t.Y36(V,10),t.Y36(Q,10),t.Y36(h,10),t.Y36(t.sBO,8),t.Y36(He,8))},z.\u0275dir=t.lG2({type:z,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([yi]),t.qOj,t.TTD]}),z})(),wi=(()=>{class z{}return z.\u0275fac=function(q){return new(q||z)},z.\u0275dir=t.lG2({type:z,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),z})(),Vo=(()=>{class z{}return z.\u0275fac=function(q){return new(q||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({}),z})();const qo=new t.OlP("NgModelWithFormControlWarning"),ce={provide:un,useExisting:(0,t.Gpc)(()=>Se)};let Se=(()=>{class z extends un{constructor(q,Ae,Mt){super(),this.callSetDisabledState=Mt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(q),this._setAsyncValidators(Ae)}ngOnChanges(q){this._checkFormPresent(),q.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ni(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(q){const Ae=this.form.get(q.path);return Kt(Ae,q,this.callSetDisabledState),Ae.updateValueAndValidity({emitEvent:!1}),this.directives.push(q),Ae}getControl(q){return this.form.get(q.path)}removeControl(q){Hn(q.control||null,q,!1),function lo(z,ee){const q=z.indexOf(ee);q>-1&&z.splice(q,1)}(this.directives,q)}addFormGroup(q){this._setUpFormContainer(q)}removeFormGroup(q){this._cleanUpFormContainer(q)}getFormGroup(q){return this.form.get(q.path)}addFormArray(q){this._setUpFormContainer(q)}removeFormArray(q){this._cleanUpFormContainer(q)}getFormArray(q){return this.form.get(q.path)}updateModel(q,Ae){this.form.get(q.path).setValue(Ae)}onSubmit(q){return this.submitted=!0,zi(this.form,this.directives),this.ngSubmit.emit(q),"dialog"===q?.target?.method}onReset(){this.resetForm()}resetForm(q){this.form.reset(q),this.submitted=!1}_updateDomValue(){this.directives.forEach(q=>{const Ae=q.control,Mt=this.form.get(q.path);Ae!==Mt&&(Hn(Ae||null,q),(z=>z instanceof li)(Mt)&&(Kt(Mt,q,this.callSetDisabledState),q.control=Mt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(q){const Ae=this.form.get(q.path);ao(Ae,q),Ae.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(q){if(this.form){const Ae=this.form.get(q.path);Ae&&function Fi(z,ee){return ni(z,ee)}(Ae,q)&&Ae.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){xn(this.form,this),this._oldForm&&ni(this._oldForm,this)}_checkFormPresent(){}}return z.\u0275fac=function(q){return new(q||z)(t.Y36(V,10),t.Y36(Q,10),t.Y36(He,8))},z.\u0275dir=t.lG2({type:z,selectors:[["","formGroup",""]],hostBindings:function(q,Ae){1&q&&t.NdJ("submit",function(Cn){return Ae.onSubmit(Cn)})("reset",function(){return Ae.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([ce]),t.qOj,t.TTD]}),z})();const $t={provide:bt,useExisting:(0,t.Gpc)(()=>rn)};let rn=(()=>{class z extends bt{set isDisabled(q){}constructor(q,Ae,Mt,Cn,hi){super(),this._ngModelWarningConfig=hi,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=q,this._setValidators(Ae),this._setAsyncValidators(Mt),this.valueAccessor=Pn(0,Cn)}ngOnChanges(q){this._added||this._setUpControl(),ro(q,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(q){this.viewModel=q,this.update.emit(q)}get path(){return Ze(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return z._ngModelWarningSentOnce=!1,z.\u0275fac=function(q){return new(q||z)(t.Y36(un,13),t.Y36(V,10),t.Y36(Q,10),t.Y36(h,10),t.Y36(qo,8))},z.\u0275dir=t.lG2({type:z,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([$t]),t.qOj,t.TTD]}),z})();const jt={provide:h,useExisting:(0,t.Gpc)(()=>Zn),multi:!0};function hn(z,ee){return null==z?`${ee}`:(ee&&"object"==typeof ee&&(ee="Object"),`${z}: ${ee}`.slice(0,50))}let Zn=(()=>{class z extends d{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(q){this._compareWith=q}writeValue(q){this.value=q;const Mt=hn(this._getOptionId(q),q);this.setProperty("value",Mt)}registerOnChange(q){this.onChange=Ae=>{this.value=this._getOptionValue(Ae),q(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(q){for(const Ae of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Ae),q))return Ae;return null}_getOptionValue(q){const Ae=function yn(z){return z.split(":")[0]}(q);return this._optionMap.has(Ae)?this._optionMap.get(Ae):q}}return z.\u0275fac=function(){let ee;return function(Ae){return(ee||(ee=t.n5z(z)))(Ae||z)}}(),z.\u0275dir=t.lG2({type:z,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(q,Ae){1&q&&t.NdJ("change",function(Cn){return Ae.onChange(Cn.target.value)})("blur",function(){return Ae.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([jt]),t.qOj]}),z})(),jn=(()=>{class z{constructor(q,Ae,Mt){this._element=q,this._renderer=Ae,this._select=Mt,this._select&&(this.id=this._select._registerOption())}set ngValue(q){null!=this._select&&(this._select._optionMap.set(this.id,q),this._setElementValue(hn(this.id,q)),this._select.writeValue(this._select.value))}set value(q){this._setElementValue(q),this._select&&this._select.writeValue(this._select.value)}_setElementValue(q){this._renderer.setProperty(this._element.nativeElement,"value",q)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return z.\u0275fac=function(q){return new(q||z)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Zn,9))},z.\u0275dir=t.lG2({type:z,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),z})();const ti={provide:h,useExisting:(0,t.Gpc)(()=>fi),multi:!0};function On(z,ee){return null==z?`${ee}`:("string"==typeof ee&&(ee=`'${ee}'`),ee&&"object"==typeof ee&&(ee="Object"),`${z}: ${ee}`.slice(0,50))}let fi=(()=>{class z extends d{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(q){this._compareWith=q}writeValue(q){let Ae;if(this.value=q,Array.isArray(q)){const Mt=q.map(Cn=>this._getOptionId(Cn));Ae=(Cn,hi)=>{Cn._setSelected(Mt.indexOf(hi.toString())>-1)}}else Ae=(Mt,Cn)=>{Mt._setSelected(!1)};this._optionMap.forEach(Ae)}registerOnChange(q){this.onChange=Ae=>{const Mt=[],Cn=Ae.selectedOptions;if(void 0!==Cn){const hi=Cn;for(let Bi=0;Bi<hi.length;Bi++){const or=this._getOptionValue(hi[Bi].value);Mt.push(or)}}else{const hi=Ae.options;for(let Bi=0;Bi<hi.length;Bi++){const ir=hi[Bi];if(ir.selected){const or=this._getOptionValue(ir.value);Mt.push(or)}}}this.value=Mt,q(Mt)}}_registerOption(q){const Ae=(this._idCounter++).toString();return this._optionMap.set(Ae,q),Ae}_getOptionId(q){for(const Ae of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Ae)._value,q))return Ae;return null}_getOptionValue(q){const Ae=function qn(z){return z.split(":")[0]}(q);return this._optionMap.has(Ae)?this._optionMap.get(Ae)._value:q}}return z.\u0275fac=function(){let ee;return function(Ae){return(ee||(ee=t.n5z(z)))(Ae||z)}}(),z.\u0275dir=t.lG2({type:z,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(q,Ae){1&q&&t.NdJ("change",function(Cn){return Ae.onChange(Cn.target)})("blur",function(){return Ae.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([ti]),t.qOj]}),z})(),Ki=(()=>{class z{constructor(q,Ae,Mt){this._element=q,this._renderer=Ae,this._select=Mt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(q){null!=this._select&&(this._value=q,this._setElementValue(On(this.id,q)),this._select.writeValue(this._select.value))}set value(q){this._select?(this._value=q,this._setElementValue(On(this.id,q)),this._select.writeValue(this._select.value)):this._setElementValue(q)}_setElementValue(q){this._renderer.setProperty(this._element.nativeElement,"value",q)}_setSelected(q){this._renderer.setProperty(this._element.nativeElement,"selected",q)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return z.\u0275fac=function(q){return new(q||z)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(fi,9))},z.\u0275dir=t.lG2({type:z,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),z})();let Qe=(()=>{class z{constructor(){this._validator=Ce}ngOnChanges(q){if(this.inputName in q){const Ae=this.normalizeInput(q[this.inputName].currentValue);this._enabled=this.enabled(Ae),this._validator=this._enabled?this.createValidator(Ae):Ce,this._onChange&&this._onChange()}}validate(q){return this._validator(q)}registerOnValidatorChange(q){this._onChange=q}enabled(q){return null!=q}}return z.\u0275fac=function(q){return new(q||z)},z.\u0275dir=t.lG2({type:z,features:[t.TTD]}),z})();const gt={provide:V,useExisting:(0,t.Gpc)(()=>An),multi:!0};let An=(()=>{class z extends Qe{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.D6c,this.createValidator=q=>Xe}enabled(q){return q}}return z.\u0275fac=function(){let ee;return function(Ae){return(ee||(ee=t.n5z(z)))(Ae||z)}}(),z.\u0275dir=t.lG2({type:z,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(q,Ae){2&q&&t.uIk("required",Ae._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([gt]),t.qOj]}),z})();const Xi={provide:V,useExisting:(0,t.Gpc)(()=>Ri),multi:!0};let Ri=(()=>{class z extends Qe{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=q=>function Vt(z){return"number"==typeof z?z:parseInt(z,10)}(q),this.createValidator=q=>Re(q)}}return z.\u0275fac=function(){let ee;return function(Ae){return(ee||(ee=t.n5z(z)))(Ae||z)}}(),z.\u0275dir=t.lG2({type:z,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(q,Ae){2&q&&t.uIk("maxlength",Ae._enabled?Ae.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t._Bn([Xi]),t.qOj]}),z})(),fe=(()=>{class z{}return z.\u0275fac=function(q){return new(q||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({imports:[Vo]}),z})();class We extends Oe{constructor(ee,q,Ae){super(kn(q),Fn(Ae,q)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ee){return this.controls[this._adjustIndex(ee)]}push(ee,q={}){this.controls.push(ee),this._registerControl(ee),this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}insert(ee,q,Ae={}){this.controls.splice(ee,0,q),this._registerControl(q),this.updateValueAndValidity({emitEvent:Ae.emitEvent})}removeAt(ee,q={}){let Ae=this._adjustIndex(ee);Ae<0&&(Ae=0),this.controls[Ae]&&this.controls[Ae]._registerOnCollectionChange(()=>{}),this.controls.splice(Ae,1),this.updateValueAndValidity({emitEvent:q.emitEvent})}setControl(ee,q,Ae={}){let Mt=this._adjustIndex(ee);Mt<0&&(Mt=0),this.controls[Mt]&&this.controls[Mt]._registerOnCollectionChange(()=>{}),this.controls.splice(Mt,1),q&&(this.controls.splice(Mt,0,q),this._registerControl(q)),this.updateValueAndValidity({emitEvent:Ae.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ee,q={}){le(this,!1,ee),ee.forEach((Ae,Mt)=>{Y(this,!1,Mt),this.at(Mt).setValue(Ae,{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q)}patchValue(ee,q={}){null!=ee&&(ee.forEach((Ae,Mt)=>{this.at(Mt)&&this.at(Mt).patchValue(Ae,{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q))}reset(ee=[],q={}){this._forEachChild((Ae,Mt)=>{Ae.reset(ee[Mt],{onlySelf:!0,emitEvent:q.emitEvent})}),this._updatePristine(q),this._updateTouched(q),this.updateValueAndValidity(q)}getRawValue(){return this.controls.map(ee=>ee.getRawValue())}clear(ee={}){this.controls.length<1||(this._forEachChild(q=>q._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ee.emitEvent}))}_adjustIndex(ee){return ee<0?ee+this.length:ee}_syncPendingControls(){let ee=this.controls.reduce((q,Ae)=>!!Ae._syncPendingControls()||q,!1);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){this.controls.forEach((q,Ae)=>{ee(q,Ae)})}_updateValue(){this.value=this.controls.filter(ee=>ee.enabled||this.disabled).map(ee=>ee.value)}_anyControls(ee){return this.controls.some(q=>q.enabled&&ee(q))}_setUpControls(){this._forEachChild(ee=>this._registerControl(ee))}_allControlsDisabled(){for(const ee of this.controls)if(ee.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ee){ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)}_find(ee){return this.at(ee)??null}}function be(z){return!!z&&(void 0!==z.asyncValidators||void 0!==z.validators||void 0!==z.updateOn)}let Ne=(()=>{class z{constructor(){this.useNonNullable=!1}get nonNullable(){const q=new z;return q.useNonNullable=!0,q}group(q,Ae=null){const Mt=this._reduceControls(q);let Cn={};return be(Ae)?Cn=Ae:null!==Ae&&(Cn.validators=Ae.validator,Cn.asyncValidators=Ae.asyncValidator),new nt(Mt,Cn)}record(q,Ae=null){const Mt=this._reduceControls(q);return new St(Mt,Ae)}control(q,Ae,Mt){let Cn={};return this.useNonNullable?(be(Ae)?Cn=Ae:(Cn.validators=Ae,Cn.asyncValidators=Mt),new li(q,{...Cn,nonNullable:!0})):new li(q,Ae,Mt)}array(q,Ae,Mt){const Cn=q.map(hi=>this._createControl(hi));return new We(Cn,Ae,Mt)}_reduceControls(q){const Ae={};return Object.keys(q).forEach(Mt=>{Ae[Mt]=this._createControl(q[Mt])}),Ae}_createControl(q){return q instanceof li||q instanceof Oe?q:Array.isArray(q)?this.control(q[0],q.length>1?q[1]:null,q.length>2?q[2]:null):this.control(q)}}return z.\u0275fac=function(q){return new(q||z)},z.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),ln=(()=>{class z extends Ne{group(q,Ae=null){return super.group(q,Ae)}control(q,Ae,Mt){return super.control(q,Ae,Mt)}array(q,Ae,Mt){return super.array(q,Ae,Mt)}}return z.\u0275fac=function(){let ee;return function(Ae){return(ee||(ee=t.n5z(z)))(Ae||z)}}(),z.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),vi=(()=>{class z{static withConfig(q){return{ngModule:z,providers:[{provide:He,useValue:q.callSetDisabledState??ht}]}}}return z.\u0275fac=function(q){return new(q||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({imports:[fe]}),z})(),pi=(()=>{class z{static withConfig(q){return{ngModule:z,providers:[{provide:qo,useValue:q.warnOnNgModelWithFormControl??"always"},{provide:He,useValue:q.callSetDisabledState??ht}]}}}return z.\u0275fac=function(q){return new(q||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({imports:[fe]}),z})()},4497:(qe,re,l)=>{"use strict";l.d(re,{Dx:()=>Ln,H7:()=>kn,b2:()=>bt,q6:()=>Et,se:()=>Xe});var t=l(4666),i=l(2560);class r extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class L extends r{static makeCurrent(){(0,t.HT)(new L)}onAndCancel(Y,le,Oe){return Y.addEventListener(le,Oe,!1),()=>{Y.removeEventListener(le,Oe,!1)}}dispatchEvent(Y,le){Y.dispatchEvent(le)}remove(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}createElement(Y,le){return(le=le||this.getDefaultDocument()).createElement(Y)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Y){return Y.nodeType===Node.ELEMENT_NODE}isShadowRoot(Y){return Y instanceof DocumentFragment}getGlobalEventTarget(Y,le){return"window"===le?window:"document"===le?Y:"body"===le?Y.body:null}getBaseHref(Y){const le=function v(){return M=M||document.querySelector("base"),M?M.getAttribute("href"):null}();return null==le?null:function u(Je){y=y||document.createElement("a"),y.setAttribute("href",Je);const Y=y.pathname;return"/"===Y.charAt(0)?Y:`/${Y}`}(le)}resetBaseElement(){M=null}getUserAgent(){return window.navigator.userAgent}getCookie(Y){return(0,t.Mx)(document.cookie,Y)}}let y,M=null;const _=new i.OlP("TRANSITION_ID"),C=[{provide:i.ip1,useFactory:function p(Je,Y,le){return()=>{le.get(i.CZH).donePromise.then(()=>{const Oe=(0,t.q)(),nt=Y.querySelectorAll(`style[ng-transition="${Je}"]`);for(let Xt=0;Xt<nt.length;Xt++)Oe.remove(nt[Xt])})}},deps:[_,t.K0,i.zs3],multi:!0}];let f=(()=>{class Je{build(){return new XMLHttpRequest}}return Je.\u0275fac=function(le){return new(le||Je)},Je.\u0275prov=i.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const d=new i.OlP("EventManagerPlugins");let h=(()=>{class Je{constructor(le,Oe){this._zone=Oe,this._eventNameToPlugin=new Map,le.forEach(nt=>{nt.manager=this}),this._plugins=le.slice().reverse()}addEventListener(le,Oe,nt){return this._findPluginFor(Oe).addEventListener(le,Oe,nt)}addGlobalEventListener(le,Oe,nt){return this._findPluginFor(Oe).addGlobalEventListener(le,Oe,nt)}getZone(){return this._zone}_findPluginFor(le){const Oe=this._eventNameToPlugin.get(le);if(Oe)return Oe;const nt=this._plugins;for(let Xt=0;Xt<nt.length;Xt++){const Dn=nt[Xt];if(Dn.supports(le))return this._eventNameToPlugin.set(le,Dn),Dn}throw new Error(`No event manager plugin found for event ${le}`)}}return Je.\u0275fac=function(le){return new(le||Je)(i.LFG(d),i.LFG(i.R0b))},Je.\u0275prov=i.Yz7({token:Je,factory:Je.\u0275fac}),Je})();class T{constructor(Y){this._doc=Y}addGlobalEventListener(Y,le,Oe){const nt=(0,t.q)().getGlobalEventTarget(this._doc,Y);if(!nt)throw new Error(`Unsupported event target ${nt} for event ${le}`);return this.addEventListener(nt,le,Oe)}}let b=(()=>{class Je{constructor(){this.usageCount=new Map}addStyles(le){for(const Oe of le)1===this.changeUsageCount(Oe,1)&&this.onStyleAdded(Oe)}removeStyles(le){for(const Oe of le)0===this.changeUsageCount(Oe,-1)&&this.onStyleRemoved(Oe)}onStyleRemoved(le){}onStyleAdded(le){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(le,Oe){const nt=this.usageCount;let Xt=nt.get(le)??0;return Xt+=Oe,Xt>0?nt.set(le,Xt):nt.delete(le),Xt}ngOnDestroy(){for(const le of this.getAllStyles())this.onStyleRemoved(le);this.usageCount.clear()}}return Je.\u0275fac=function(le){return new(le||Je)},Je.\u0275prov=i.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),P=(()=>{class Je extends b{constructor(le){super(),this.doc=le,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(le){for(const Oe of this.hostNodes)this.addStyleToHost(Oe,le)}onStyleRemoved(le){const Oe=this.styleRef;Oe.get(le)?.forEach(Xt=>Xt.remove()),Oe.delete(le)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(le){this.hostNodes.add(le);for(const Oe of this.getAllStyles())this.addStyleToHost(le,Oe)}removeHost(le){this.hostNodes.delete(le)}addStyleToHost(le,Oe){const nt=this.doc.createElement("style");nt.textContent=Oe,le.appendChild(nt);const Xt=this.styleRef.get(Oe);Xt?Xt.push(nt):this.styleRef.set(Oe,[nt])}resetHostNodes(){const le=this.hostNodes;le.clear(),le.add(this.doc.head)}}return Je.\u0275fac=function(le){return new(le||Je)(i.LFG(t.K0))},Je.\u0275prov=i.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const W={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},I=/%COMP%/g,D="%COMP%",N=`_nghost-${D}`,s=`_ngcontent-${D}`,Q=new i.OlP("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function De(Je,Y){return Y.flat(100).map(le=>le.replace(I,Je))}function Ue(Je){return Y=>{if("__ngUnwrap__"===Y)return Je;!1===Je(Y)&&(Y.preventDefault(),Y.returnValue=!1)}}let Xe=(()=>{class Je{constructor(le,Oe,nt,Xt){this.eventManager=le,this.sharedStylesHost=Oe,this.appId=nt,this.removeStylesOnCompDestory=Xt,this.rendererByCompId=new Map,this.defaultRenderer=new st(le)}createRenderer(le,Oe){if(!le||!Oe)return this.defaultRenderer;const nt=this.getOrCreateRenderer(le,Oe);return nt instanceof oe?nt.applyToHost(le):nt instanceof Ce&&nt.applyStyles(),nt}getOrCreateRenderer(le,Oe){const nt=this.rendererByCompId;let Xt=nt.get(Oe.id);if(!Xt){const Dn=this.eventManager,St=this.sharedStylesHost,Vn=this.removeStylesOnCompDestory;switch(Oe.encapsulation){case i.ifc.Emulated:Xt=new oe(Dn,St,Oe,this.appId,Vn);break;case i.ifc.ShadowDom:return new de(Dn,St,le,Oe);default:Xt=new Ce(Dn,St,Oe,Vn)}Xt.onDestroy=()=>nt.delete(Oe.id),nt.set(Oe.id,Xt)}return Xt}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return Je.\u0275fac=function(le){return new(le||Je)(i.LFG(h),i.LFG(P),i.LFG(i.AFp),i.LFG(Q))},Je.\u0275prov=i.Yz7({token:Je,factory:Je.\u0275fac}),Je})();class st{constructor(Y){this.eventManager=Y,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Y,le){return le?document.createElementNS(W[le]||le,Y):document.createElement(Y)}createComment(Y){return document.createComment(Y)}createText(Y){return document.createTextNode(Y)}appendChild(Y,le){(Re(Y)?Y.content:Y).appendChild(le)}insertBefore(Y,le,Oe){Y&&(Re(Y)?Y.content:Y).insertBefore(le,Oe)}removeChild(Y,le){Y&&Y.removeChild(le)}selectRootElement(Y,le){let Oe="string"==typeof Y?document.querySelector(Y):Y;if(!Oe)throw new Error(`The selector "${Y}" did not match any elements`);return le||(Oe.textContent=""),Oe}parentNode(Y){return Y.parentNode}nextSibling(Y){return Y.nextSibling}setAttribute(Y,le,Oe,nt){if(nt){le=nt+":"+le;const Xt=W[nt];Xt?Y.setAttributeNS(Xt,le,Oe):Y.setAttribute(le,Oe)}else Y.setAttribute(le,Oe)}removeAttribute(Y,le,Oe){if(Oe){const nt=W[Oe];nt?Y.removeAttributeNS(nt,le):Y.removeAttribute(`${Oe}:${le}`)}else Y.removeAttribute(le)}addClass(Y,le){Y.classList.add(le)}removeClass(Y,le){Y.classList.remove(le)}setStyle(Y,le,Oe,nt){nt&(i.JOm.DashCase|i.JOm.Important)?Y.style.setProperty(le,Oe,nt&i.JOm.Important?"important":""):Y.style[le]=Oe}removeStyle(Y,le,Oe){Oe&i.JOm.DashCase?Y.style.removeProperty(le):Y.style[le]=""}setProperty(Y,le,Oe){Y[le]=Oe}setValue(Y,le){Y.nodeValue=le}listen(Y,le,Oe){return"string"==typeof Y?this.eventManager.addGlobalEventListener(Y,le,Ue(Oe)):this.eventManager.addEventListener(Y,le,Ue(Oe))}}function Re(Je){return"TEMPLATE"===Je.tagName&&void 0!==Je.content}class de extends st{constructor(Y,le,Oe,nt){super(Y),this.sharedStylesHost=le,this.hostEl=Oe,this.shadowRoot=Oe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Xt=De(nt.id,nt.styles);for(const Dn of Xt){const St=document.createElement("style");St.textContent=Dn,this.shadowRoot.appendChild(St)}}nodeOrShadowRoot(Y){return Y===this.hostEl?this.shadowRoot:Y}appendChild(Y,le){return super.appendChild(this.nodeOrShadowRoot(Y),le)}insertBefore(Y,le,Oe){return super.insertBefore(this.nodeOrShadowRoot(Y),le,Oe)}removeChild(Y,le){return super.removeChild(this.nodeOrShadowRoot(Y),le)}parentNode(Y){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Y)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ce extends st{constructor(Y,le,Oe,nt,Xt=Oe.id){super(Y),this.sharedStylesHost=le,this.removeStylesOnCompDestory=nt,this.rendererUsageCount=0,this.styles=De(Xt,Oe.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class oe extends Ce{constructor(Y,le,Oe,nt,Xt){const Dn=nt+"-"+Oe.id;super(Y,le,Oe,Xt,Dn),this.contentAttr=function me(Je){return s.replace(I,Je)}(Dn),this.hostAttr=function ue(Je){return N.replace(I,Je)}(Dn)}applyToHost(Y){this.applyStyles(),this.setAttribute(Y,this.hostAttr,"")}createElement(Y,le){const Oe=super.createElement(Y,le);return super.setAttribute(Oe,this.contentAttr,""),Oe}}let G=(()=>{class Je extends T{constructor(le){super(le)}supports(le){return!0}addEventListener(le,Oe,nt){return le.addEventListener(Oe,nt,!1),()=>this.removeEventListener(le,Oe,nt)}removeEventListener(le,Oe,nt){return le.removeEventListener(Oe,nt)}}return Je.\u0275fac=function(le){return new(le||Je)(i.LFG(t.K0))},Je.\u0275prov=i.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const ye=["alt","control","meta","shift"],we={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Fe={alt:Je=>Je.altKey,control:Je=>Je.ctrlKey,meta:Je=>Je.metaKey,shift:Je=>Je.shiftKey};let lt=(()=>{class Je extends T{constructor(le){super(le)}supports(le){return null!=Je.parseEventName(le)}addEventListener(le,Oe,nt){const Xt=Je.parseEventName(Oe),Dn=Je.eventCallback(Xt.fullKey,nt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(le,Xt.domEventName,Dn))}static parseEventName(le){const Oe=le.toLowerCase().split("."),nt=Oe.shift();if(0===Oe.length||"keydown"!==nt&&"keyup"!==nt)return null;const Xt=Je._normalizeKey(Oe.pop());let Dn="",St=Oe.indexOf("code");if(St>-1&&(Oe.splice(St,1),Dn="code."),ye.forEach(He=>{const ht=Oe.indexOf(He);ht>-1&&(Oe.splice(ht,1),Dn+=He+".")}),Dn+=Xt,0!=Oe.length||0===Xt.length)return null;const Vn={};return Vn.domEventName=nt,Vn.fullKey=Dn,Vn}static matchEventFullKeyCode(le,Oe){let nt=we[le.key]||le.key,Xt="";return Oe.indexOf("code.")>-1&&(nt=le.code,Xt="code."),!(null==nt||!nt)&&(nt=nt.toLowerCase()," "===nt?nt="space":"."===nt&&(nt="dot"),ye.forEach(Dn=>{Dn!==nt&&(0,Fe[Dn])(le)&&(Xt+=Dn+".")}),Xt+=nt,Xt===Oe)}static eventCallback(le,Oe,nt){return Xt=>{Je.matchEventFullKeyCode(Xt,le)&&nt.runGuarded(()=>Oe(Xt))}}static _normalizeKey(le){return"esc"===le?"escape":le}}return Je.\u0275fac=function(le){return new(le||Je)(i.LFG(t.K0))},Je.\u0275prov=i.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const Et=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:t.bD},{provide:i.g9A,useValue:function sn(){L.makeCurrent()},multi:!0},{provide:t.K0,useFactory:function Ve(){return(0,i.RDi)(document),document},deps:[]}]),Ft=new i.OlP(""),yt=[{provide:i.rWj,useClass:class g{addToWindow(Y){i.dqk.getAngularTestability=(Oe,nt=!0)=>{const Xt=Y.findTestabilityInTree(Oe,nt);if(null==Xt)throw new Error("Could not find testability for element.");return Xt},i.dqk.getAllAngularTestabilities=()=>Y.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>Y.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(Oe=>{const nt=i.dqk.getAllAngularTestabilities();let Xt=nt.length,Dn=!1;const St=function(Vn){Dn=Dn||Vn,Xt--,0==Xt&&Oe(Dn)};nt.forEach(function(Vn){Vn.whenStable(St)})})}findTestabilityInTree(Y,le,Oe){return null==le?null:Y.getTestability(le)??(Oe?(0,t.q)().isShadowRoot(le)?this.findTestabilityInTree(Y,le.host,!0):this.findTestabilityInTree(Y,le.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],un=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function ct(){return new i.qLn},deps:[]},{provide:d,useClass:G,multi:!0,deps:[t.K0,i.R0b,i.Lbi]},{provide:d,useClass:lt,multi:!0,deps:[t.K0]},{provide:Xe,useClass:Xe,deps:[h,P,i.AFp,Q]},{provide:i.FYo,useExisting:Xe},{provide:b,useExisting:P},{provide:P,useClass:P,deps:[t.K0]},{provide:h,useClass:h,deps:[d,i.R0b]},{provide:t.JF,useClass:f,deps:[]},[]];let bt=(()=>{class Je{constructor(le){}static withServerTransition(le){return{ngModule:Je,providers:[{provide:i.AFp,useValue:le.appId},{provide:_,useExisting:i.AFp},C]}}}return Je.\u0275fac=function(le){return new(le||Je)(i.LFG(Ft,12))},Je.\u0275mod=i.oAB({type:Je}),Je.\u0275inj=i.cJS({providers:[...un,...yt],imports:[t.ez,i.hGG]}),Je})(),Ln=(()=>{class Je{constructor(le){this._doc=le}getTitle(){return this._doc.title}setTitle(le){this._doc.title=le||""}}return Je.\u0275fac=function(le){return new(le||Je)(i.LFG(t.K0))},Je.\u0275prov=i.Yz7({token:Je,factory:function(le){let Oe=null;return Oe=le?new le:function En(){return new Ln((0,i.LFG)(t.K0))}(),Oe},providedIn:"root"}),Je})();typeof window<"u"&&window;let kn=(()=>{class Je{}return Je.\u0275fac=function(le){return new(le||Je)},Je.\u0275prov=i.Yz7({token:Je,factory:function(le){let Oe=null;return Oe=le?new(le||Je):i.LFG(Fn),Oe},providedIn:"root"}),Je})(),Fn=(()=>{class Je extends kn{constructor(le){super(),this._doc=le}sanitize(le,Oe){if(null==Oe)return null;switch(le){case i.q3G.NONE:return Oe;case i.q3G.HTML:return(0,i.qzn)(Oe,"HTML")?(0,i.z3N)(Oe):(0,i.EiD)(this._doc,String(Oe)).toString();case i.q3G.STYLE:return(0,i.qzn)(Oe,"Style")?(0,i.z3N)(Oe):Oe;case i.q3G.SCRIPT:if((0,i.qzn)(Oe,"Script"))return(0,i.z3N)(Oe);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.qzn)(Oe,"URL")?(0,i.z3N)(Oe):(0,i.mCW)(String(Oe));case i.q3G.RESOURCE_URL:if((0,i.qzn)(Oe,"ResourceURL"))return(0,i.z3N)(Oe);throw new Error(`unsafe value used in a resource URL context (see ${i.JZr})`);default:throw new Error(`Unexpected SecurityContext ${le} (see ${i.JZr})`)}}bypassSecurityTrustHtml(le){return(0,i.JVY)(le)}bypassSecurityTrustStyle(le){return(0,i.L6k)(le)}bypassSecurityTrustScript(le){return(0,i.eBb)(le)}bypassSecurityTrustUrl(le){return(0,i.LAX)(le)}bypassSecurityTrustResourceUrl(le){return(0,i.pB0)(le)}}return Je.\u0275fac=function(le){return new(le||Je)(i.LFG(t.K0))},Je.\u0275prov=i.Yz7({token:Je,factory:function(le){let Oe=null;return Oe=le?new le:function Rn(Je){return new Fn(Je.get(t.K0))}(i.LFG(i.zs3)),Oe},providedIn:"root"}),Je})()},7641:(qe,re,l)=>{"use strict";l.d(re,{gz:()=>ft,F0:()=>oo,Bz:()=>is,lC:()=>Ke});var t=l(2560),i=l(7400),r=l(745),L=l(6317),M=l(4423),v=l(833),y=l(5756),u=l(9173),_=l(8385),p=l(420),C=l(1054),g=l(3945),f=l(1817);function d(...R){const U=(0,p.yG)(R),x=(0,p.jO)(R),{args:K,keys:se}=(0,y.D)(R);if(0===K.length)return(0,i.D)([],U);const Te=new v.y(function h(R,U,x=u.y){return K=>{T(U,()=>{const{length:se}=R,Te=new Array(se);let Le=se,vt=se;for(let Wt=0;Wt<se;Wt++)T(U,()=>{const wn=(0,i.D)(R[Wt],U);let In=!1;wn.subscribe((0,g.x)(K,xi=>{Te[Wt]=xi,In||(In=!0,vt--),vt||K.next(x(Te.slice()))},()=>{--Le||K.complete()}))},K)},K)}}(K,U,se?Le=>(0,C.n)(se,Le):u.y));return x?Te.pipe((0,_.Z)(x)):Te}function T(R,U,x){R?(0,f.f)(x,R,U):U()}var b=l(1308);function W(...R){return function P(){return(0,b.J)(1)}()((0,i.D)(R,(0,p.yG)(R)))}var I=l(4987);function k(R){return new v.y(U=>{(0,I.Xf)(R()).subscribe(U)})}var D=l(629),N=l(5474),s=l(591),V=l(7714),Q=l(1944);function me(){return(0,Q.e)((R,U)=>{let x=null;R._refCount++;const K=(0,g.x)(U,void 0,void 0,void 0,()=>{if(!R||R._refCount<=0||0<--R._refCount)return void(x=null);const se=R._connection,Te=x;x=null,se&&(!Te||se===Te)&&se.unsubscribe(),U.unsubscribe()});R.subscribe(K),K.closed||(x=R.connect())})}class ue extends v.y{constructor(U,x){super(),this.source=U,this.subjectFactory=x,this._subject=null,this._refCount=0,this._connection=null,(0,Q.A)(U)&&(this.lift=U.lift)}_subscribe(U){return this.getSubject().subscribe(U)}getSubject(){const U=this._subject;return(!U||U.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:U}=this;this._subject=this._connection=null,U?.unsubscribe()}connect(){let U=this._connection;if(!U){U=this._connection=new V.w0;const x=this.getSubject();U.add(this.source.subscribe((0,g.x)(x,void 0,()=>{this._teardown(),x.complete()},K=>{this._teardown(),x.error(K)},()=>this._teardown()))),U.closed&&(this._connection=null,U=V.w0.EMPTY)}return U}refCount(){return me()(this)}}var De=l(253),Ue=l(4666),Xe=l(635),st=l(2673),ze=l(9295),Re=l(116),de=l(9525);function Ce(R){return(0,Q.e)((U,x)=>{let K=!1;U.subscribe((0,g.x)(x,se=>{K=!0,x.next(se)},()=>{K||x.next(R),x.complete()}))})}function oe(R=G){return(0,Q.e)((U,x)=>{let K=!1;U.subscribe((0,g.x)(x,se=>{K=!0,x.next(se)},()=>K?x.complete():x.error(R())))})}function G(){return new M.K}function ye(R,U){const x=arguments.length>=2;return K=>K.pipe(R?(0,Re.h)((se,Te)=>R(se,Te,K)):u.y,(0,ze.q)(1),x?Ce(U):oe(()=>new M.K))}var we=l(3853),Fe=l(9337),lt=l(3158),Pt=l(4351);function wt(R){return R<=0?()=>s.E:(0,Q.e)((U,x)=>{let K=[];U.subscribe((0,g.x)(x,se=>{K.push(se),R<K.length&&K.shift()},()=>{for(const se of K)x.next(se);x.complete()},void 0,()=>{K=null}))})}function Bt(R,U){const x=arguments.length>=2;return K=>K.pipe(R?(0,Re.h)((se,Te)=>R(se,Te,K)):u.y,wt(1),x?Ce(U):oe(()=>new M.K))}function sn(R){return(0,Q.e)((U,x)=>{try{U.subscribe(x)}finally{x.add(R)}})}var ct=l(4497);const Ve="primary",rt=Symbol("RouteTitle");class Et{constructor(U){this.params=U||{}}has(U){return Object.prototype.hasOwnProperty.call(this.params,U)}get(U){if(this.has(U)){const x=this.params[U];return Array.isArray(x)?x[0]:x}return null}getAll(U){if(this.has(U)){const x=this.params[U];return Array.isArray(x)?x:[x]}return[]}get keys(){return Object.keys(this.params)}}function Ft(R){return new Et(R)}function yt(R,U,x){const K=x.path.split("/");if(K.length>R.length||"full"===x.pathMatch&&(U.hasChildren()||K.length<R.length))return null;const se={};for(let Te=0;Te<K.length;Te++){const Le=K[Te],vt=R[Te];if(Le.startsWith(":"))se[Le.substring(1)]=vt;else if(Le!==vt.path)return null}return{consumed:R.slice(0,K.length),posParams:se}}function bt(R,U){const x=R?Object.keys(R):void 0,K=U?Object.keys(U):void 0;if(!x||!K||x.length!=K.length)return!1;let se;for(let Te=0;Te<x.length;Te++)if(se=x[Te],!Jt(R[se],U[se]))return!1;return!0}function Jt(R,U){if(Array.isArray(R)&&Array.isArray(U)){if(R.length!==U.length)return!1;const x=[...R].sort(),K=[...U].sort();return x.every((se,Te)=>K[Te]===se)}return R===U}function en(R){return Array.prototype.concat.apply([],R)}function mn(R){return R.length>0?R[R.length-1]:null}function Ln(R,U){for(const x in R)R.hasOwnProperty(x)&&U(R[x],x)}function dt(R){return(0,t.CqO)(R)?R:(0,t.QGY)(R)?(0,i.D)(Promise.resolve(R)):(0,r.of)(R)}const Ot=!1,$={exact:function Zt(R,U,x){if(!ot(R.segments,U.segments)||!vn(R.segments,U.segments,x)||R.numberOfChildren!==U.numberOfChildren)return!1;for(const K in U.children)if(!R.children[K]||!Zt(R.children[K],U.children[K],x))return!1;return!0},subset:on},pe={exact:function Ge(R,U){return bt(R,U)},subset:function tn(R,U){return Object.keys(U).length<=Object.keys(R).length&&Object.keys(U).every(x=>Jt(R[x],U[x]))},ignored:()=>!0};function Ee(R,U,x){return $[x.paths](R.root,U.root,x.matrixParams)&&pe[x.queryParams](R.queryParams,U.queryParams)&&!("exact"===x.fragment&&R.fragment!==U.fragment)}function on(R,U,x){return Un(R,U,U.segments,x)}function Un(R,U,x,K){if(R.segments.length>x.length){const se=R.segments.slice(0,x.length);return!(!ot(se,x)||U.hasChildren()||!vn(se,x,K))}if(R.segments.length===x.length){if(!ot(R.segments,x)||!vn(R.segments,x,K))return!1;for(const se in U.children)if(!R.children[se]||!on(R.children[se],U.children[se],K))return!1;return!0}{const se=x.slice(0,R.segments.length),Te=x.slice(R.segments.length);return!!(ot(R.segments,se)&&vn(R.segments,se,K)&&R.children[Ve])&&Un(R.children[Ve],U,Te,K)}}function vn(R,U,x){return U.every((K,se)=>pe[x](R[se].parameters,K.parameters))}class zt{constructor(U=new Ht([],{}),x={},K=null){this.root=U,this.queryParams=x,this.fragment=K}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ft(this.queryParams)),this._queryParamMap}toString(){return Ut.serialize(this)}}class Ht{constructor(U,x){this.segments=U,this.children=x,this.parent=null,Ln(x,(K,se)=>K.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gn(this)}}class pt{constructor(U,x){this.path=U,this.parameters=x}get parameterMap(){return this._parameterMap||(this._parameterMap=Ft(this.parameters)),this._parameterMap}toString(){return le(this)}}function ot(R,U){return R.length===U.length&&R.every((x,K)=>x.path===U[K].path)}let at=(()=>{class R{}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:function(){return new Gt},providedIn:"root"}),R})();class Gt{parse(U){const x=new Ze(U);return new zt(x.parseRootSegment(),x.parseQueryParams(),x.parseFragment())}serialize(U){const x=`/${Mn(U.root,!0)}`,K=function nt(R){const U=Object.keys(R).map(x=>{const K=R[x];return Array.isArray(K)?K.map(se=>`${Rn(x)}=${Rn(se)}`).join("&"):`${Rn(x)}=${Rn(K)}`}).filter(x=>!!x);return U.length?`?${U.join("&")}`:""}(U.queryParams);return`${x}${K}${"string"==typeof U.fragment?`#${function Fn(R){return encodeURI(R)}(U.fragment)}`:""}`}}const Ut=new Gt;function gn(R){return R.segments.map(U=>le(U)).join("/")}function Mn(R,U){if(!R.hasChildren())return gn(R);if(U){const x=R.children[Ve]?Mn(R.children[Ve],!1):"",K=[];return Ln(R.children,(se,Te)=>{Te!==Ve&&K.push(`${Te}:${Mn(se,!1)}`)}),K.length>0?`${x}(${K.join("//")})`:x}{const x=function Be(R,U){let x=[];return Ln(R.children,(K,se)=>{se===Ve&&(x=x.concat(U(K,se)))}),Ln(R.children,(K,se)=>{se!==Ve&&(x=x.concat(U(K,se)))}),x}(R,(K,se)=>se===Ve?[Mn(R.children[Ve],!1)]:[`${se}:${Mn(K,!1)}`]);return 1===Object.keys(R.children).length&&null!=R.children[Ve]?`${gn(R)}/${x[0]}`:`${gn(R)}/(${x.join("//")})`}}function kn(R){return encodeURIComponent(R).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rn(R){return kn(R).replace(/%3B/gi,";")}function ut(R){return kn(R).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Je(R){return decodeURIComponent(R)}function Y(R){return Je(R.replace(/\+/g,"%20"))}function le(R){return`${ut(R.path)}${function Oe(R){return Object.keys(R).map(U=>`;${ut(U)}=${ut(R[U])}`).join("")}(R.parameters)}`}const Xt=/^[^\/()?;=#]+/;function Dn(R){const U=R.match(Xt);return U?U[0]:""}const St=/^[^=?&#]+/,He=/^[^&#]+/;class Ze{constructor(U){this.url=U,this.remaining=U}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ht([],{}):new Ht([],this.parseChildren())}parseQueryParams(){const U={};if(this.consumeOptional("?"))do{this.parseQueryParam(U)}while(this.consumeOptional("&"));return U}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const U=[];for(this.peekStartsWith("(")||U.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),U.push(this.parseSegment());let x={};this.peekStartsWith("/(")&&(this.capture("/"),x=this.parseParens(!0));let K={};return this.peekStartsWith("(")&&(K=this.parseParens(!1)),(U.length>0||Object.keys(x).length>0)&&(K[Ve]=new Ht(U,x)),K}parseSegment(){const U=Dn(this.remaining);if(""===U&&this.peekStartsWith(";"))throw new t.vHH(4009,Ot);return this.capture(U),new pt(Je(U),this.parseMatrixParams())}parseMatrixParams(){const U={};for(;this.consumeOptional(";");)this.parseParam(U);return U}parseParam(U){const x=Dn(this.remaining);if(!x)return;this.capture(x);let K="";if(this.consumeOptional("=")){const se=Dn(this.remaining);se&&(K=se,this.capture(K))}U[Je(x)]=Je(K)}parseQueryParam(U){const x=function Vn(R){const U=R.match(St);return U?U[0]:""}(this.remaining);if(!x)return;this.capture(x);let K="";if(this.consumeOptional("=")){const Le=function ht(R){const U=R.match(He);return U?U[0]:""}(this.remaining);Le&&(K=Le,this.capture(K))}const se=Y(x),Te=Y(K);if(U.hasOwnProperty(se)){let Le=U[se];Array.isArray(Le)||(Le=[Le],U[se]=Le),Le.push(Te)}else U[se]=Te}parseParens(U){const x={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const K=Dn(this.remaining),se=this.remaining[K.length];if("/"!==se&&")"!==se&&";"!==se)throw new t.vHH(4010,Ot);let Te;K.indexOf(":")>-1?(Te=K.slice(0,K.indexOf(":")),this.capture(Te),this.capture(":")):U&&(Te=Ve);const Le=this.parseChildren();x[Te]=1===Object.keys(Le).length?Le[Ve]:new Ht([],Le),this.consumeOptional("//")}return x}peekStartsWith(U){return this.remaining.startsWith(U)}consumeOptional(U){return!!this.peekStartsWith(U)&&(this.remaining=this.remaining.substring(U.length),!0)}capture(U){if(!this.consumeOptional(U))throw new t.vHH(4011,Ot)}}function Kt(R){return R.segments.length>0?new Ht([],{[Ve]:R}):R}function Hn(R){const U={};for(const K of Object.keys(R.children)){const Te=Hn(R.children[K]);(Te.segments.length>0||Te.hasChildren())&&(U[K]=Te)}return function ei(R){if(1===R.numberOfChildren&&R.children[Ve]){const U=R.children[Ve];return new Ht(R.segments.concat(U.segments),U.children)}return R}(new Ht(R.segments,U))}function ai(R){return R instanceof zt}const xn=!1;function Ii(R,U,x,K,se){if(0===x.length)return Fi(U.root,U.root,U.root,K,se);const Te=function $n(R){if("string"==typeof R[0]&&1===R.length&&"/"===R[0])return new pn(!0,0,R);let U=0,x=!1;const K=R.reduce((se,Te,Le)=>{if("object"==typeof Te&&null!=Te){if(Te.outlets){const vt={};return Ln(Te.outlets,(Wt,wn)=>{vt[wn]="string"==typeof Wt?Wt.split("/"):Wt}),[...se,{outlets:vt}]}if(Te.segmentPath)return[...se,Te.segmentPath]}return"string"!=typeof Te?[...se,Te]:0===Le?(Te.split("/").forEach((vt,Wt)=>{0==Wt&&"."===vt||(0==Wt&&""===vt?x=!0:".."===vt?U++:""!=vt&&se.push(vt))}),se):[...se,Te]},[]);return new pn(x,U,K)}(x);return Te.toRoot()?Fi(U.root,U.root,new Ht([],{}),K,se):function Le(Wt){const wn=function ro(R,U,x,K){if(R.isAbsolute)return new bi(U.root,!0,0);if(-1===K)return new bi(x,x===U.root,0);return function _i(R,U,x){let K=R,se=U,Te=x;for(;Te>se;){if(Te-=se,K=K.parent,!K)throw new t.vHH(4005,xn&&"Invalid number of '../'");se=K.segments.length}return new bi(K,!1,se-Te)}(x,K+(yo(R.commands[0])?0:1),R.numberOfDoubleDots)}(Te,U,R.snapshot?._urlSegment,Wt),In=wn.processChildren?lo(wn.segmentGroup,wn.index,Te.commands):Pn(wn.segmentGroup,wn.index,Te.commands);return Fi(U.root,wn.segmentGroup,In,K,se)}(R.snapshot?._lastPathIndex)}function yo(R){return"object"==typeof R&&null!=R&&!R.outlets&&!R.segmentPath}function ao(R){return"object"==typeof R&&null!=R&&R.outlets}function Fi(R,U,x,K,se){let Le,Te={};K&&Ln(K,(Wt,wn)=>{Te[wn]=Array.isArray(Wt)?Wt.map(In=>`${In}`):`${Wt}`}),Le=R===U?x:Di(R,U,x);const vt=Kt(Hn(Le));return new zt(vt,Te,se)}function Di(R,U,x){const K={};return Ln(R.children,(se,Te)=>{K[Te]=se===U?x:Di(se,U,x)}),new Ht(R.segments,K)}class pn{constructor(U,x,K){if(this.isAbsolute=U,this.numberOfDoubleDots=x,this.commands=K,U&&K.length>0&&yo(K[0]))throw new t.vHH(4003,xn&&"Root segment cannot have matrix parameters");const se=K.find(ao);if(se&&se!==mn(K))throw new t.vHH(4004,xn&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class bi{constructor(U,x,K){this.segmentGroup=U,this.processChildren=x,this.index=K}}function Pn(R,U,x){if(R||(R=new Ht([],{})),0===R.segments.length&&R.hasChildren())return lo(R,U,x);const K=function Mo(R,U,x){let K=0,se=U;const Te={match:!1,pathIndex:0,commandIndex:0};for(;se<R.segments.length;){if(K>=x.length)return Te;const Le=R.segments[se],vt=x[K];if(ao(vt))break;const Wt=`${vt}`,wn=K<x.length-1?x[K+1]:null;if(se>0&&void 0===Wt)break;if(Wt&&wn&&"object"==typeof wn&&void 0===wn.outlets){if(!Yn(Wt,wn,Le))return Te;K+=2}else{if(!Yn(Wt,{},Le))return Te;K++}se++}return{match:!0,pathIndex:se,commandIndex:K}}(R,U,x),se=x.slice(K.commandIndex);if(K.match&&K.pathIndex<R.segments.length){const Te=new Ht(R.segments.slice(0,K.pathIndex),{});return Te.children[Ve]=new Ht(R.segments.slice(K.pathIndex),R.children),lo(Te,0,se)}return K.match&&0===se.length?new Ht(R.segments,{}):K.match&&!R.hasChildren()?Jn(R,U,x):K.match?lo(R,0,se):Jn(R,U,x)}function lo(R,U,x){if(0===x.length)return new Ht(R.segments,{});{const K=function zi(R){return ao(R[0])?R[0].outlets:{[Ve]:R}}(x),se={};if(!K[Ve]&&R.children[Ve]&&1===R.numberOfChildren&&0===R.children[Ve].segments.length){const Te=lo(R.children[Ve],U,x);return new Ht(R.segments,Te.children)}return Ln(K,(Te,Le)=>{"string"==typeof Te&&(Te=[Te]),null!==Te&&(se[Le]=Pn(R.children[Le],U,Te))}),Ln(R.children,(Te,Le)=>{void 0===K[Le]&&(se[Le]=Te)}),new Ht(R.segments,se)}}function Jn(R,U,x){const K=R.segments.slice(0,U);let se=0;for(;se<x.length;){const Te=x[se];if(ao(Te)){const Wt=Ui(Te.outlets);return new Ht(K,Wt)}if(0===se&&yo(x[0])){K.push(new pt(R.segments[U].path,Si(x[0]))),se++;continue}const Le=ao(Te)?Te.outlets[Ve]:`${Te}`,vt=se<x.length-1?x[se+1]:null;Le&&vt&&yo(vt)?(K.push(new pt(Le,Si(vt))),se+=2):(K.push(new pt(Le,{})),se++)}return new Ht(K,{})}function Ui(R){const U={};return Ln(R,(x,K)=>{"string"==typeof x&&(x=[x]),null!==x&&(U[K]=Jn(new Ht([],{}),0,x))}),U}function Si(R){const U={};return Ln(R,(x,K)=>U[K]=`${x}`),U}function Yn(R,U,x){return R==x.path&&bt(U,x.parameters)}const Yi="imperative";class li{constructor(U,x){this.id=U,this.url=x}}class Io extends li{constructor(U,x,K="imperative",se=null){super(U,x),this.type=0,this.navigationTrigger=K,this.restoredState=se}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class je extends li{constructor(U,x,K){super(U,x),this.urlAfterRedirects=K,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Tt extends li{constructor(U,x,K,se){super(U,x),this.reason=K,this.code=se,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _t extends li{constructor(U,x,K,se){super(U,x),this.reason=K,this.code=se,this.type=16}}class Nt extends li{constructor(U,x,K,se){super(U,x),this.error=K,this.target=se,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Qt extends li{constructor(U,x,K,se){super(U,x),this.urlAfterRedirects=K,this.state=se,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cn extends li{constructor(U,x,K,se){super(U,x),this.urlAfterRedirects=K,this.state=se,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qn extends li{constructor(U,x,K,se,Te){super(U,x),this.urlAfterRedirects=K,this.state=se,this.shouldActivate=Te,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class di extends li{constructor(U,x,K,se){super(U,x),this.urlAfterRedirects=K,this.state=se,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yi extends li{constructor(U,x,K,se){super(U,x),this.urlAfterRedirects=K,this.state=se,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qi{constructor(U){this.route=U,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class oi{constructor(U){this.route=U,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class wi{constructor(U){this.snapshot=U,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zo{constructor(U){this.snapshot=U,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hi{constructor(U){this.snapshot=U,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class co{constructor(U){this.snapshot=U,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bo{constructor(U,x,K){this.routerEvent=U,this.position=x,this.anchor=K,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let io=(()=>{class R{createUrlTree(x,K,se,Te,Le,vt){return Ii(x||K.root,se,Te,Le,vt)}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})(),mr=(()=>{class R{}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:function(U){return io.\u0275fac(U)},providedIn:"root"}),R})();class qo{constructor(U){this._root=U}get root(){return this._root.value}parent(U){const x=this.pathFromRoot(U);return x.length>1?x[x.length-2]:null}children(U){const x=nr(U,this._root);return x?x.children.map(K=>K.value):[]}firstChild(U){const x=nr(U,this._root);return x&&x.children.length>0?x.children[0].value:null}siblings(U){const x=Ye(U,this._root);return x.length<2?[]:x[x.length-2].children.map(se=>se.value).filter(se=>se!==U)}pathFromRoot(U){return Ye(U,this._root).map(x=>x.value)}}function nr(R,U){if(R===U.value)return U;for(const x of U.children){const K=nr(R,x);if(K)return K}return null}function Ye(R,U){if(R===U.value)return[U];for(const x of U.children){const K=Ye(R,x);if(K.length)return K.unshift(U),K}return[]}class ce{constructor(U,x){this.value=U,this.children=x}toString(){return`TreeNode(${this.value})`}}function Se(R){const U={};return R&&R.children.forEach(x=>U[x.value.outlet]=x),U}class Me extends qo{constructor(U,x){super(U),this.snapshot=x,hn(this,U)}toString(){return this.snapshot.toString()}}function Pe(R,U){const x=function $e(R,U){const Le=new rn([],{},{},"",{},Ve,U,null,R.root,-1,{});return new jt("",new ce(Le,[]))}(R,U),K=new L.X([new pt("",{})]),se=new L.X({}),Te=new L.X({}),Le=new L.X({}),vt=new L.X(""),Wt=new ft(K,se,Le,vt,Te,Ve,U,x.root);return Wt.snapshot=x.root,new Me(new ce(Wt,[]),x)}class ft{constructor(U,x,K,se,Te,Le,vt,Wt){this.url=U,this.params=x,this.queryParams=K,this.fragment=se,this.data=Te,this.outlet=Le,this.component=vt,this.title=this.data?.pipe((0,Xe.U)(wn=>wn[rt]))??(0,r.of)(void 0),this._futureSnapshot=Wt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Xe.U)(U=>Ft(U)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Xe.U)(U=>Ft(U)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function At(R,U="emptyOnly"){const x=R.pathFromRoot;let K=0;if("always"!==U)for(K=x.length-1;K>=1;){const se=x[K],Te=x[K-1];if(se.routeConfig&&""===se.routeConfig.path)K--;else{if(Te.component)break;K--}}return function $t(R){return R.reduce((U,x)=>({params:{...U.params,...x.params},data:{...U.data,...x.data},resolve:{...x.data,...U.resolve,...x.routeConfig?.data,...x._resolvedData}}),{params:{},data:{},resolve:{}})}(x.slice(K))}class rn{get title(){return this.data?.[rt]}constructor(U,x,K,se,Te,Le,vt,Wt,wn,In,xi){this.url=U,this.params=x,this.queryParams=K,this.fragment=se,this.data=Te,this.outlet=Le,this.component=vt,this.routeConfig=Wt,this._urlSegment=wn,this._lastPathIndex=In,this._resolve=xi}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ft(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ft(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(K=>K.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class jt extends qo{constructor(U,x){super(x),this.url=U,hn(this,x)}toString(){return yn(this._root)}}function hn(R,U){U.value._routerState=R,U.children.forEach(x=>hn(R,x))}function yn(R){const U=R.children.length>0?` { ${R.children.map(yn).join(", ")} } `:"";return`${R.value}${U}`}function Zn(R){if(R.snapshot){const U=R.snapshot,x=R._futureSnapshot;R.snapshot=x,bt(U.queryParams,x.queryParams)||R.queryParams.next(x.queryParams),U.fragment!==x.fragment&&R.fragment.next(x.fragment),bt(U.params,x.params)||R.params.next(x.params),function un(R,U){if(R.length!==U.length)return!1;for(let x=0;x<R.length;++x)if(!bt(R[x],U[x]))return!1;return!0}(U.url,x.url)||R.url.next(x.url),bt(U.data,x.data)||R.data.next(x.data)}else R.snapshot=R._futureSnapshot,R.data.next(R._futureSnapshot.data)}function jn(R,U){const x=bt(R.params,U.params)&&function Dt(R,U){return ot(R,U)&&R.every((x,K)=>bt(x.parameters,U[K].parameters))}(R.url,U.url);return x&&!(!R.parent!=!U.parent)&&(!R.parent||jn(R.parent,U.parent))}function On(R,U,x){if(x&&R.shouldReuseRoute(U.value,x.value.snapshot)){const K=x.value;K._futureSnapshot=U.value;const se=function qn(R,U,x){return U.children.map(K=>{for(const se of x.children)if(R.shouldReuseRoute(K.value,se.value.snapshot))return On(R,K,se);return On(R,K)})}(R,U,x);return new ce(K,se)}{if(R.shouldAttach(U.value)){const Te=R.retrieve(U.value);if(null!==Te){const Le=Te.route;return Le.value._futureSnapshot=U.value,Le.children=U.children.map(vt=>On(R,vt)),Le}}const K=function Ai(R){return new ft(new L.X(R.url),new L.X(R.params),new L.X(R.queryParams),new L.X(R.fragment),new L.X(R.data),R.outlet,R.component,R)}(U.value),se=U.children.map(Te=>On(R,Te));return new ce(K,se)}}const fi="ngNavigationCancelingError";function Ki(R,U){const{redirectTo:x,navigationBehaviorOptions:K}=ai(U)?{redirectTo:U,navigationBehaviorOptions:void 0}:U,se=Vt(!1,0,U);return se.url=x,se.navigationBehaviorOptions=K,se}function Vt(R,U,x){const K=new Error("NavigationCancelingError: "+(R||""));return K[fi]=!0,K.cancellationCode=U,x&&(K.url=x),K}function ae(R){return Qe(R)&&ai(R.url)}function Qe(R){return R&&R[fi]}class A{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ie,this.attachRef=null}}let ie=(()=>{class R{constructor(){this.contexts=new Map}onChildOutletCreated(x,K){const se=this.getOrCreateContext(x);se.outlet=K,this.contexts.set(x,se)}onChildOutletDestroyed(x){const K=this.getContext(x);K&&(K.outlet=null,K.attachRef=null)}onOutletDeactivated(){const x=this.contexts;return this.contexts=new Map,x}onOutletReAttached(x){this.contexts=x}getOrCreateContext(x){let K=this.getContext(x);return K||(K=new A,this.contexts.set(x,K)),K}getContext(x){return this.contexts.get(x)||null}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();const _e=!1;let Ke=(()=>{class R{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ve,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(ie),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb)}ngOnChanges(x){if(x.name){const{firstChange:K,previousValue:se}=x.name;if(K)return;this.isTrackedInParentContexts(se)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(se)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(x){return this.parentContexts.getContext(x)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const x=this.parentContexts.getContext(this.name);x?.route&&(x.attachRef?this.attach(x.attachRef,x.route):this.activateWith(x.route,x.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,_e);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,_e);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,_e);this.location.detach();const x=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(x.instance),x}attach(x,K){this.activated=x,this._activatedRoute=K,this.location.insert(x.hostView),this.attachEvents.emit(x.instance)}deactivate(){if(this.activated){const x=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(x)}}activateWith(x,K){if(this.isActivated)throw new t.vHH(4013,_e);this._activatedRoute=x;const se=this.location,Le=x.snapshot.component,vt=this.parentContexts.getOrCreateContext(this.name).children,Wt=new gt(x,vt,se.injector);if(K&&function _n(R){return!!R.resolveComponentFactory}(K)){const wn=K.resolveComponentFactory(Le);this.activated=se.createComponent(wn,se.length,Wt)}else this.activated=se.createComponent(Le,{index:se.length,injector:Wt,environmentInjector:K??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275dir=t.lG2({type:R,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]}),R})();class gt{constructor(U,x,K){this.route=U,this.childContexts=x,this.parent=K}get(U,x){return U===ft?this.route:U===ie?this.childContexts:this.parent.get(U,x)}}let An=(()=>{class R{}return R.\u0275fac=function(x){return new(x||R)},R.\u0275cmp=t.Xpm({type:R,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(x,K){1&x&&t._UZ(0,"router-outlet")},dependencies:[Ke],encapsulation:2}),R})();function mi(R,U){return R.providers&&!R._injector&&(R._injector=(0,t.MMx)(R.providers,U,`Route: ${R.path}`)),R._injector??U}function vo(R){const U=R.children&&R.children.map(vo),x=U?{...R,children:U}:{...R};return!x.component&&!x.loadComponent&&(U||x.loadChildren)&&x.outlet&&x.outlet!==Ve&&(x.component=An),x}function Mi(R){return R.outlet||Ve}function To(R,U){const x=R.filter(K=>Mi(K)===U);return x.push(...R.filter(K=>Mi(K)!==U)),x}function fe(R){if(!R)return null;if(R.routeConfig?._injector)return R.routeConfig._injector;for(let U=R.parent;U;U=U.parent){const x=U.routeConfig;if(x?._loadedInjector)return x._loadedInjector;if(x?._injector)return x._injector}return null}class E{constructor(U,x,K,se){this.routeReuseStrategy=U,this.futureState=x,this.currState=K,this.forwardEvent=se}activate(U){const x=this.futureState._root,K=this.currState?this.currState._root:null;this.deactivateChildRoutes(x,K,U),Zn(this.futureState.root),this.activateChildRoutes(x,K,U)}deactivateChildRoutes(U,x,K){const se=Se(x);U.children.forEach(Te=>{const Le=Te.value.outlet;this.deactivateRoutes(Te,se[Le],K),delete se[Le]}),Ln(se,(Te,Le)=>{this.deactivateRouteAndItsChildren(Te,K)})}deactivateRoutes(U,x,K){const se=U.value,Te=x?x.value:null;if(se===Te)if(se.component){const Le=K.getContext(se.outlet);Le&&this.deactivateChildRoutes(U,x,Le.children)}else this.deactivateChildRoutes(U,x,K);else Te&&this.deactivateRouteAndItsChildren(x,K)}deactivateRouteAndItsChildren(U,x){U.value.component&&this.routeReuseStrategy.shouldDetach(U.value.snapshot)?this.detachAndStoreRouteSubtree(U,x):this.deactivateRouteAndOutlet(U,x)}detachAndStoreRouteSubtree(U,x){const K=x.getContext(U.value.outlet),se=K&&U.value.component?K.children:x,Te=Se(U);for(const Le of Object.keys(Te))this.deactivateRouteAndItsChildren(Te[Le],se);if(K&&K.outlet){const Le=K.outlet.detach(),vt=K.children.onOutletDeactivated();this.routeReuseStrategy.store(U.value.snapshot,{componentRef:Le,route:U,contexts:vt})}}deactivateRouteAndOutlet(U,x){const K=x.getContext(U.value.outlet),se=K&&U.value.component?K.children:x,Te=Se(U);for(const Le of Object.keys(Te))this.deactivateRouteAndItsChildren(Te[Le],se);K&&(K.outlet&&(K.outlet.deactivate(),K.children.onOutletDeactivated()),K.attachRef=null,K.resolver=null,K.route=null)}activateChildRoutes(U,x,K){const se=Se(x);U.children.forEach(Te=>{this.activateRoutes(Te,se[Te.value.outlet],K),this.forwardEvent(new co(Te.value.snapshot))}),U.children.length&&this.forwardEvent(new Zo(U.value.snapshot))}activateRoutes(U,x,K){const se=U.value,Te=x?x.value:null;if(Zn(se),se===Te)if(se.component){const Le=K.getOrCreateContext(se.outlet);this.activateChildRoutes(U,x,Le.children)}else this.activateChildRoutes(U,x,K);else if(se.component){const Le=K.getOrCreateContext(se.outlet);if(this.routeReuseStrategy.shouldAttach(se.snapshot)){const vt=this.routeReuseStrategy.retrieve(se.snapshot);this.routeReuseStrategy.store(se.snapshot,null),Le.children.onOutletReAttached(vt.contexts),Le.attachRef=vt.componentRef,Le.route=vt.route.value,Le.outlet&&Le.outlet.attach(vt.componentRef,vt.route.value),Zn(vt.route.value),this.activateChildRoutes(U,null,Le.children)}else{const vt=fe(se.snapshot),Wt=vt?.get(t._Vd)??null;Le.attachRef=null,Le.route=se,Le.resolver=Wt,Le.injector=vt,Le.outlet&&Le.outlet.activateWith(se,Le.injector),this.activateChildRoutes(U,null,Le.children)}}else this.activateChildRoutes(U,null,K)}}class ne{constructor(U){this.path=U,this.route=this.path[this.path.length-1]}}class be{constructor(U,x){this.component=U,this.route=x}}function Ne(R,U,x){const K=R._root;return Tn(K,U?U._root:null,x,[K.value])}function ln(R,U){const x=Symbol(),K=U.get(R,x);return K===x?"function"!=typeof R||(0,t.Z0I)(R)?U.get(R):R:K}function Tn(R,U,x,K,se={canDeactivateChecks:[],canActivateChecks:[]}){const Te=Se(U);return R.children.forEach(Le=>{(function vi(R,U,x,K,se={canDeactivateChecks:[],canActivateChecks:[]}){const Te=R.value,Le=U?U.value:null,vt=x?x.getContext(R.value.outlet):null;if(Le&&Te.routeConfig===Le.routeConfig){const Wt=function pi(R,U,x){if("function"==typeof x)return x(R,U);switch(x){case"pathParamsChange":return!ot(R.url,U.url);case"pathParamsOrQueryParamsChange":return!ot(R.url,U.url)||!bt(R.queryParams,U.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jn(R,U)||!bt(R.queryParams,U.queryParams);default:return!jn(R,U)}}(Le,Te,Te.routeConfig.runGuardsAndResolvers);Wt?se.canActivateChecks.push(new ne(K)):(Te.data=Le.data,Te._resolvedData=Le._resolvedData),Tn(R,U,Te.component?vt?vt.children:null:x,K,se),Wt&&vt&&vt.outlet&&vt.outlet.isActivated&&se.canDeactivateChecks.push(new be(vt.outlet.component,Le))}else Le&&z(U,vt,se),se.canActivateChecks.push(new ne(K)),Tn(R,null,Te.component?vt?vt.children:null:x,K,se)})(Le,Te[Le.value.outlet],x,K.concat([Le.value]),se),delete Te[Le.value.outlet]}),Ln(Te,(Le,vt)=>z(Le,x.getContext(vt),se)),se}function z(R,U,x){const K=Se(R),se=R.value;Ln(K,(Te,Le)=>{z(Te,se.component?U?U.children.getContext(Le):null:U,x)}),x.canDeactivateChecks.push(new be(se.component&&U&&U.outlet&&U.outlet.isActivated?U.outlet.component:null,se))}function ee(R){return"function"==typeof R}function Go(R){return R instanceof M.K||"EmptyError"===R?.name}const $o=Symbol("INITIAL_VALUE");function wo(){return(0,st.w)(R=>d(R.map(U=>U.pipe((0,ze.q)(1),function F(...R){const U=(0,p.yG)(R);return(0,Q.e)((x,K)=>{(U?W(R,x,U):W(R,x)).subscribe(K)})}($o)))).pipe((0,Xe.U)(U=>{for(const x of U)if(!0!==x){if(x===$o)return $o;if(!1===x||x instanceof zt)return x}return!0}),(0,Re.h)(U=>U!==$o),(0,ze.q)(1)))}function Ro(R){return(0,D.z)((0,Fe.b)(U=>{if(ai(U))throw Ki(0,U)}),(0,Xe.U)(U=>!0===U))}const br={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zr(R,U,x,K,se){const Te=zn(R,U,x);return Te.matched?function xr(R,U,x,K){const se=U.canMatch;if(!se||0===se.length)return(0,r.of)(!0);const Te=se.map(Le=>{const vt=ln(Le,R);return dt(function Bi(R){return R&&ee(R.canMatch)}(vt)?vt.canMatch(U,x):R.runInContext(()=>vt(U,x)))});return(0,r.of)(Te).pipe(wo(),Ro())}(K=mi(U,K),U,x).pipe((0,Xe.U)(Le=>!0===Le?Te:{...br})):(0,r.of)(Te)}function zn(R,U,x){if(""===U.path)return"full"===U.pathMatch&&(R.hasChildren()||x.length>0)?{...br}:{matched:!0,consumedSegments:[],remainingSegments:x,parameters:{},positionalParamSegments:{}};const se=(U.matcher||yt)(x,R,U);if(!se)return{...br};const Te={};Ln(se.posParams,(vt,Wt)=>{Te[Wt]=vt.path});const Le=se.consumed.length>0?{...Te,...se.consumed[se.consumed.length-1].parameters}:Te;return{matched:!0,consumedSegments:se.consumed,remainingSegments:x.slice(se.consumed.length),parameters:Le,positionalParamSegments:se.posParams??{}}}function Qo(R,U,x,K){if(x.length>0&&function Kr(R,U,x){return x.some(K=>Nr(R,U,K)&&Mi(K)!==Ve)}(R,x,K)){const Te=new Ht(U,function ps(R,U,x,K){const se={};se[Ve]=K,K._sourceSegment=R,K._segmentIndexShift=U.length;for(const Te of x)if(""===Te.path&&Mi(Te)!==Ve){const Le=new Ht([],{});Le._sourceSegment=R,Le._segmentIndexShift=U.length,se[Mi(Te)]=Le}return se}(R,U,K,new Ht(x,R.children)));return Te._sourceSegment=R,Te._segmentIndexShift=U.length,{segmentGroup:Te,slicedSegments:[]}}if(0===x.length&&function Qr(R,U,x){return x.some(K=>Nr(R,U,K))}(R,x,K)){const Te=new Ht(R.segments,function Dr(R,U,x,K,se){const Te={};for(const Le of K)if(Nr(R,x,Le)&&!se[Mi(Le)]){const vt=new Ht([],{});vt._sourceSegment=R,vt._segmentIndexShift=U.length,Te[Mi(Le)]=vt}return{...se,...Te}}(R,U,x,K,R.children));return Te._sourceSegment=R,Te._segmentIndexShift=U.length,{segmentGroup:Te,slicedSegments:x}}const se=new Ht(R.segments,R.children);return se._sourceSegment=R,se._segmentIndexShift=U.length,{segmentGroup:se,slicedSegments:x}}function Nr(R,U,x){return(!(R.hasChildren()||U.length>0)||"full"!==x.pathMatch)&&""===x.path}function hs(R,U,x,K){return!!(Mi(R)===K||K!==Ve&&Nr(U,x,R))&&("**"===R.path||zn(U,R,x).matched)}function Ps(R,U,x){return 0===U.length&&!R.children[x]}const fs=!1;class Co{constructor(U){this.segmentGroup=U||null}}class Sr{constructor(U){this.urlTree=U}}function Wi(R){return(0,N._)(new Co(R))}function Ns(R){return(0,N._)(new Sr(R))}class ja{constructor(U,x,K,se,Te){this.injector=U,this.configLoader=x,this.urlSerializer=K,this.urlTree=se,this.config=Te,this.allowRedirects=!0}apply(){const U=Qo(this.urlTree.root,[],[],this.config).segmentGroup,x=new Ht(U.segments,U.children);return this.expandSegmentGroup(this.injector,this.config,x,Ve).pipe((0,Xe.U)(Te=>this.createUrlTree(Hn(Te),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,lt.K)(Te=>{if(Te instanceof Sr)return this.allowRedirects=!1,this.match(Te.urlTree);throw Te instanceof Co?this.noMatchError(Te):Te}))}match(U){return this.expandSegmentGroup(this.injector,this.config,U.root,Ve).pipe((0,Xe.U)(se=>this.createUrlTree(Hn(se),U.queryParams,U.fragment))).pipe((0,lt.K)(se=>{throw se instanceof Co?this.noMatchError(se):se}))}noMatchError(U){return new t.vHH(4002,fs)}createUrlTree(U,x,K){const se=Kt(U);return new zt(se,x,K)}expandSegmentGroup(U,x,K,se){return 0===K.segments.length&&K.hasChildren()?this.expandChildren(U,x,K).pipe((0,Xe.U)(Te=>new Ht([],Te))):this.expandSegment(U,K,x,K.segments,se,!0)}expandChildren(U,x,K){const se=[];for(const Te of Object.keys(K.children))"primary"===Te?se.unshift(Te):se.push(Te);return(0,i.D)(se).pipe((0,we.b)(Te=>{const Le=K.children[Te],vt=To(x,Te);return this.expandSegmentGroup(U,vt,Le,Te).pipe((0,Xe.U)(Wt=>({segment:Wt,outlet:Te})))}),(0,Pt.R)((Te,Le)=>(Te[Le.outlet]=Le.segment,Te),{}),Bt())}expandSegment(U,x,K,se,Te,Le){return(0,i.D)(K).pipe((0,we.b)(vt=>this.expandSegmentAgainstRoute(U,x,K,vt,se,Te,Le).pipe((0,lt.K)(wn=>{if(wn instanceof Co)return(0,r.of)(null);throw wn}))),ye(vt=>!!vt),(0,lt.K)((vt,Wt)=>{if(Go(vt))return Ps(x,se,Te)?(0,r.of)(new Ht([],{})):Wi(x);throw vt}))}expandSegmentAgainstRoute(U,x,K,se,Te,Le,vt){return hs(se,x,Te,Le)?void 0===se.redirectTo?this.matchSegmentAgainstRoute(U,x,se,Te,Le):vt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(U,x,K,se,Te,Le):Wi(x):Wi(x)}expandSegmentAgainstRouteUsingRedirect(U,x,K,se,Te,Le){return"**"===se.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(U,K,se,Le):this.expandRegularSegmentAgainstRouteUsingRedirect(U,x,K,se,Te,Le)}expandWildCardWithParamsAgainstRouteUsingRedirect(U,x,K,se){const Te=this.applyRedirectCommands([],K.redirectTo,{});return K.redirectTo.startsWith("/")?Ns(Te):this.lineralizeSegments(K,Te).pipe((0,de.z)(Le=>{const vt=new Ht(Le,{});return this.expandSegment(U,vt,x,Le,se,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(U,x,K,se,Te,Le){const{matched:vt,consumedSegments:Wt,remainingSegments:wn,positionalParamSegments:In}=zn(x,se,Te);if(!vt)return Wi(x);const xi=this.applyRedirectCommands(Wt,se.redirectTo,In);return se.redirectTo.startsWith("/")?Ns(xi):this.lineralizeSegments(se,xi).pipe((0,de.z)(go=>this.expandSegment(U,x,K,go.concat(wn),Le,!1)))}matchSegmentAgainstRoute(U,x,K,se,Te){return"**"===K.path?(U=mi(K,U),K.loadChildren?(K._loadedRoutes?(0,r.of)({routes:K._loadedRoutes,injector:K._loadedInjector}):this.configLoader.loadChildren(U,K)).pipe((0,Xe.U)(vt=>(K._loadedRoutes=vt.routes,K._loadedInjector=vt.injector,new Ht(se,{})))):(0,r.of)(new Ht(se,{}))):zr(x,K,se,U).pipe((0,st.w)(({matched:Le,consumedSegments:vt,remainingSegments:Wt})=>Le?this.getChildConfig(U=K._injector??U,K,se).pipe((0,de.z)(In=>{const xi=In.injector??U,go=In.routes,{segmentGroup:ar,slicedSegments:Or}=Qo(x,vt,Wt,go),Ur=new Ht(ar.segments,ar.children);if(0===Or.length&&Ur.hasChildren())return this.expandChildren(xi,go,Ur).pipe((0,Xe.U)(Il=>new Ht(vt,Il)));if(0===go.length&&0===Or.length)return(0,r.of)(new Ht(vt,{}));const Uo=Mi(K)===Te;return this.expandSegment(xi,Ur,go,Or,Uo?Ve:Te,!0).pipe((0,Xe.U)(Js=>new Ht(vt.concat(Js.segments),Js.children)))})):Wi(x)))}getChildConfig(U,x,K){return x.children?(0,r.of)({routes:x.children,injector:U}):x.loadChildren?void 0!==x._loadedRoutes?(0,r.of)({routes:x._loadedRoutes,injector:x._loadedInjector}):function Fo(R,U,x,K){const se=U.canLoad;if(void 0===se||0===se.length)return(0,r.of)(!0);const Te=se.map(Le=>{const vt=ln(Le,R);return dt(function Ae(R){return R&&ee(R.canLoad)}(vt)?vt.canLoad(U,x):R.runInContext(()=>vt(U,x)))});return(0,r.of)(Te).pipe(wo(),Ro())}(U,x,K).pipe((0,de.z)(se=>se?this.configLoader.loadChildren(U,x).pipe((0,Fe.b)(Te=>{x._loadedRoutes=Te.routes,x._loadedInjector=Te.injector})):function aa(R){return(0,N._)(Vt(fs,3))}())):(0,r.of)({routes:[],injector:U})}lineralizeSegments(U,x){let K=[],se=x.root;for(;;){if(K=K.concat(se.segments),0===se.numberOfChildren)return(0,r.of)(K);if(se.numberOfChildren>1||!se.children[Ve])return U.redirectTo,(0,N._)(new t.vHH(4e3,fs));se=se.children[Ve]}}applyRedirectCommands(U,x,K){return this.applyRedirectCreateUrlTree(x,this.urlSerializer.parse(x),U,K)}applyRedirectCreateUrlTree(U,x,K,se){const Te=this.createSegmentGroup(U,x.root,K,se);return new zt(Te,this.createQueryParams(x.queryParams,this.urlTree.queryParams),x.fragment)}createQueryParams(U,x){const K={};return Ln(U,(se,Te)=>{if("string"==typeof se&&se.startsWith(":")){const vt=se.substring(1);K[Te]=x[vt]}else K[Te]=se}),K}createSegmentGroup(U,x,K,se){const Te=this.createSegments(U,x.segments,K,se);let Le={};return Ln(x.children,(vt,Wt)=>{Le[Wt]=this.createSegmentGroup(U,vt,K,se)}),new Ht(Te,Le)}createSegments(U,x,K,se){return x.map(Te=>Te.path.startsWith(":")?this.findPosParam(U,Te,se):this.findOrReturn(Te,K))}findPosParam(U,x,K){const se=K[x.path.substring(1)];if(!se)throw new t.vHH(4001,fs);return se}findOrReturn(U,x){let K=0;for(const se of x){if(se.path===U.path)return x.splice(K),se;K++}return U}}class Ls{}class ge{constructor(U,x,K,se,Te,Le,vt){this.injector=U,this.rootComponentType=x,this.config=K,this.urlTree=se,this.url=Te,this.paramsInheritanceStrategy=Le,this.urlSerializer=vt}recognize(){const U=Qo(this.urlTree.root,[],[],this.config.filter(x=>void 0===x.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,U,Ve).pipe((0,Xe.U)(x=>{if(null===x)return null;const K=new rn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ve,this.rootComponentType,null,this.urlTree.root,-1,{}),se=new ce(K,x),Te=new jt(this.url,se);return this.inheritParamsAndData(Te._root),Te}))}inheritParamsAndData(U){const x=U.value,K=At(x,this.paramsInheritanceStrategy);x.params=Object.freeze(K.params),x.data=Object.freeze(K.data),U.children.forEach(se=>this.inheritParamsAndData(se))}processSegmentGroup(U,x,K,se){return 0===K.segments.length&&K.hasChildren()?this.processChildren(U,x,K):this.processSegment(U,x,K,K.segments,se)}processChildren(U,x,K){return(0,i.D)(Object.keys(K.children)).pipe((0,we.b)(se=>{const Te=K.children[se],Le=To(x,se);return this.processSegmentGroup(U,Le,Te,se)}),(0,Pt.R)((se,Te)=>se&&Te?(se.push(...Te),se):null),function nn(R,U=!1){return(0,Q.e)((x,K)=>{let se=0;x.subscribe((0,g.x)(K,Te=>{const Le=R(Te,se++);(Le||U)&&K.next(Te),!Le&&K.complete()}))})}(se=>null!==se),Ce(null),Bt(),(0,Xe.U)(se=>{if(null===se)return null;const Te=Lt(se);return function te(R){R.sort((U,x)=>U.value.outlet===Ve?-1:x.value.outlet===Ve?1:U.value.outlet.localeCompare(x.value.outlet))}(Te),Te}))}processSegment(U,x,K,se,Te){return(0,i.D)(x).pipe((0,we.b)(Le=>this.processSegmentAgainstRoute(Le._injector??U,Le,K,se,Te)),ye(Le=>!!Le),(0,lt.K)(Le=>{if(Go(Le))return Ps(K,se,Te)?(0,r.of)([]):(0,r.of)(null);throw Le}))}processSegmentAgainstRoute(U,x,K,se,Te){if(x.redirectTo||!hs(x,K,se,Te))return(0,r.of)(null);let Le;if("**"===x.path){const vt=se.length>0?mn(se).parameters:{},Wt=Gi(K)+se.length,wn=new rn(se,vt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Li(x),Mi(x),x.component??x._loadedComponent??null,x,Gn(K),Wt,Ci(x));Le=(0,r.of)({snapshot:wn,consumedSegments:[],remainingSegments:[]})}else Le=zr(K,x,se,U).pipe((0,Xe.U)(({matched:vt,consumedSegments:Wt,remainingSegments:wn,parameters:In})=>{if(!vt)return null;const xi=Gi(K)+Wt.length;return{snapshot:new rn(Wt,In,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Li(x),Mi(x),x.component??x._loadedComponent??null,x,Gn(K),xi,Ci(x)),consumedSegments:Wt,remainingSegments:wn}}));return Le.pipe((0,st.w)(vt=>{if(null===vt)return(0,r.of)(null);const{snapshot:Wt,consumedSegments:wn,remainingSegments:In}=vt;U=x._injector??U;const xi=x._loadedInjector??U,go=function xe(R){return R.children?R.children:R.loadChildren?R._loadedRoutes:[]}(x),{segmentGroup:ar,slicedSegments:Or}=Qo(K,wn,In,go.filter(Uo=>void 0===Uo.redirectTo));if(0===Or.length&&ar.hasChildren())return this.processChildren(xi,go,ar).pipe((0,Xe.U)(Uo=>null===Uo?null:[new ce(Wt,Uo)]));if(0===go.length&&0===Or.length)return(0,r.of)([new ce(Wt,[])]);const Ur=Mi(x)===Te;return this.processSegment(xi,go,ar,Or,Ur?Ve:Te).pipe((0,Xe.U)(Uo=>null===Uo?null:[new ce(Wt,Uo)]))}))}}function it(R){const U=R.value.routeConfig;return U&&""===U.path&&void 0===U.redirectTo}function Lt(R){const U=[],x=new Set;for(const K of R){if(!it(K)){U.push(K);continue}const se=U.find(Te=>K.value.routeConfig===Te.value.routeConfig);void 0!==se?(se.children.push(...K.children),x.add(se)):U.push(K)}for(const K of x){const se=Lt(K.children);U.push(new ce(K.value,se))}return U.filter(K=>!x.has(K))}function Gn(R){let U=R;for(;U._sourceSegment;)U=U._sourceSegment;return U}function Gi(R){let U=R,x=U._segmentIndexShift??0;for(;U._sourceSegment;)U=U._sourceSegment,x+=U._segmentIndexShift??0;return x-1}function Li(R){return R.data||{}}function Ci(R){return R.resolve||{}}function Ko(R){return"string"==typeof R.title||null===R.title}function po(R){return(0,st.w)(U=>{const x=R(U);return x?(0,i.D)(x).pipe((0,Xe.U)(()=>U)):(0,r.of)(U)})}const Po=new t.OlP("ROUTES");let gs=(()=>{class R{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(x){if(this.componentLoaders.get(x))return this.componentLoaders.get(x);if(x._loadedComponent)return(0,r.of)(x._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(x);const K=dt(x.loadComponent()).pipe((0,Xe.U)(Wa),(0,Fe.b)(Te=>{this.onLoadEndListener&&this.onLoadEndListener(x),x._loadedComponent=Te}),sn(()=>{this.componentLoaders.delete(x)})),se=new ue(K,()=>new De.x).pipe(me());return this.componentLoaders.set(x,se),se}loadChildren(x,K){if(this.childrenLoaders.get(K))return this.childrenLoaders.get(K);if(K._loadedRoutes)return(0,r.of)({routes:K._loadedRoutes,injector:K._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(K);const Te=this.loadModuleFactoryOrRoutes(K.loadChildren).pipe((0,Xe.U)(vt=>{this.onLoadEndListener&&this.onLoadEndListener(K);let Wt,wn,In=!1;Array.isArray(vt)?wn=vt:(Wt=vt.create(x).injector,wn=en(Wt.get(Po,[],t.XFs.Self|t.XFs.Optional)));return{routes:wn.map(vo),injector:Wt}}),sn(()=>{this.childrenLoaders.delete(K)})),Le=new ue(Te,()=>new De.x).pipe(me());return this.childrenLoaders.set(K,Le),Le}loadModuleFactoryOrRoutes(x){return dt(x()).pipe((0,Xe.U)(Wa),(0,de.z)(K=>K instanceof t.YKP||Array.isArray(K)?(0,r.of)(K):(0,i.D)(this.compiler.compileModuleAsync(K))))}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function Wa(R){return function ks(R){return R&&"object"==typeof R&&"default"in R}(R)?R.default:R}let ys=(()=>{class R{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new De.x,this.configLoader=(0,t.f3M)(gs),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(at),this.rootContexts=(0,t.f3M)(ie),this.navigationId=0,this.afterPreactivation=()=>(0,r.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=se=>this.events.next(new oi(se)),this.configLoader.onLoadStartListener=se=>this.events.next(new qi(se))}complete(){this.transitions?.complete()}handleNavigationRequest(x){const K=++this.navigationId;this.transitions?.next({...this.transitions.value,...x,id:K})}setupNavigations(x){return this.transitions=new L.X({id:0,targetPageId:0,currentUrlTree:x.currentUrlTree,currentRawUrl:x.currentUrlTree,extractedUrl:x.urlHandlingStrategy.extract(x.currentUrlTree),urlAfterRedirects:x.urlHandlingStrategy.extract(x.currentUrlTree),rawUrl:x.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Yi,restoredState:null,currentSnapshot:x.routerState.snapshot,targetSnapshot:null,currentRouterState:x.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Re.h)(K=>0!==K.id),(0,Xe.U)(K=>({...K,extractedUrl:x.urlHandlingStrategy.extract(K.rawUrl)})),(0,st.w)(K=>{let se=!1,Te=!1;return(0,r.of)(K).pipe((0,Fe.b)(Le=>{this.currentNavigation={id:Le.id,initialUrl:Le.rawUrl,extractedUrl:Le.extractedUrl,trigger:Le.source,extras:Le.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,st.w)(Le=>{const vt=x.browserUrlTree.toString(),Wt=!x.navigated||Le.extractedUrl.toString()!==vt||vt!==x.currentUrlTree.toString();if(!Wt&&"reload"!==(Le.extras.onSameUrlNavigation??x.onSameUrlNavigation)){const In="";return this.events.next(new _t(Le.id,x.serializeUrl(K.rawUrl),In,0)),x.rawUrlTree=Le.rawUrl,Le.resolve(null),s.E}if(x.urlHandlingStrategy.shouldProcessUrl(Le.rawUrl))return la(Le.source)&&(x.browserUrlTree=Le.extractedUrl),(0,r.of)(Le).pipe((0,st.w)(In=>{const xi=this.transitions?.getValue();return this.events.next(new Io(In.id,this.urlSerializer.serialize(In.extractedUrl),In.source,In.restoredState)),xi!==this.transitions?.getValue()?s.E:Promise.resolve(In)}),function zs(R,U,x,K){return(0,st.w)(se=>function Ka(R,U,x,K,se){return new ja(R,U,x,K,se).apply()}(R,U,x,se.extractedUrl,K).pipe((0,Xe.U)(Te=>({...se,urlAfterRedirects:Te}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,x.config),(0,Fe.b)(In=>{this.currentNavigation={...this.currentNavigation,finalUrl:In.urlAfterRedirects},K.urlAfterRedirects=In.urlAfterRedirects}),function uo(R,U,x,K,se){return(0,de.z)(Te=>function Z(R,U,x,K,se,Te,Le="emptyOnly"){return new ge(R,U,x,K,se,Le,Te).recognize().pipe((0,st.w)(vt=>null===vt?function Xr(R){return new v.y(U=>U.error(R))}(new Ls):(0,r.of)(vt)))}(R,U,x,Te.urlAfterRedirects,K.serialize(Te.urlAfterRedirects),K,se).pipe((0,Xe.U)(Le=>({...Te,targetSnapshot:Le}))))}(this.environmentInjector,this.rootComponentType,x.config,this.urlSerializer,x.paramsInheritanceStrategy),(0,Fe.b)(In=>{if(K.targetSnapshot=In.targetSnapshot,"eager"===x.urlUpdateStrategy){if(!In.extras.skipLocationChange){const go=x.urlHandlingStrategy.merge(In.urlAfterRedirects,In.rawUrl);x.setBrowserUrl(go,In)}x.browserUrlTree=In.urlAfterRedirects}const xi=new Qt(In.id,this.urlSerializer.serialize(In.extractedUrl),this.urlSerializer.serialize(In.urlAfterRedirects),In.targetSnapshot);this.events.next(xi)}));if(Wt&&x.urlHandlingStrategy.shouldProcessUrl(x.rawUrlTree)){const{id:In,extractedUrl:xi,source:go,restoredState:ar,extras:Or}=Le,Ur=new Io(In,this.urlSerializer.serialize(xi),go,ar);this.events.next(Ur);const Uo=Pe(xi,this.rootComponentType).snapshot;return K={...Le,targetSnapshot:Uo,urlAfterRedirects:xi,extras:{...Or,skipLocationChange:!1,replaceUrl:!1}},(0,r.of)(K)}{const In="";return this.events.next(new _t(Le.id,x.serializeUrl(K.extractedUrl),In,1)),x.rawUrlTree=Le.rawUrl,Le.resolve(null),s.E}}),(0,Fe.b)(Le=>{const vt=new cn(Le.id,this.urlSerializer.serialize(Le.extractedUrl),this.urlSerializer.serialize(Le.urlAfterRedirects),Le.targetSnapshot);this.events.next(vt)}),(0,Xe.U)(Le=>K={...Le,guards:Ne(Le.targetSnapshot,Le.currentSnapshot,this.rootContexts)}),function Pi(R,U){return(0,de.z)(x=>{const{targetSnapshot:K,currentSnapshot:se,guards:{canActivateChecks:Te,canDeactivateChecks:Le}}=x;return 0===Le.length&&0===Te.length?(0,r.of)({...x,guardsResult:!0}):function fo(R,U,x,K){return(0,i.D)(R).pipe((0,de.z)(se=>function wr(R,U,x,K,se){const Te=U&&U.routeConfig?U.routeConfig.canDeactivate:null;if(!Te||0===Te.length)return(0,r.of)(!0);const Le=Te.map(vt=>{const Wt=fe(U)??se,wn=ln(vt,Wt);return dt(function hi(R){return R&&ee(R.canDeactivate)}(wn)?wn.canDeactivate(R,U,x,K):Wt.runInContext(()=>wn(R,U,x,K))).pipe(ye())});return(0,r.of)(Le).pipe(wo())}(se.component,se.route,x,U,K)),ye(se=>!0!==se,!0))}(Le,K,se,R).pipe((0,de.z)(vt=>vt&&function q(R){return"boolean"==typeof R}(vt)?function Ni(R,U,x,K){return(0,i.D)(U).pipe((0,we.b)(se=>W(function ur(R,U){return null!==R&&U&&U(new wi(R)),(0,r.of)(!0)}(se.route.parent,K),function Jo(R,U){return null!==R&&U&&U(new Hi(R)),(0,r.of)(!0)}(se.route,K),function gr(R,U,x){const K=U[U.length-1],Te=U.slice(0,U.length-1).reverse().map(Le=>function kt(R){const U=R.routeConfig?R.routeConfig.canActivateChild:null;return U&&0!==U.length?{node:R,guards:U}:null}(Le)).filter(Le=>null!==Le).map(Le=>k(()=>{const vt=Le.guards.map(Wt=>{const wn=fe(Le.node)??x,In=ln(Wt,wn);return dt(function Cn(R){return R&&ee(R.canActivateChild)}(In)?In.canActivateChild(K,R):wn.runInContext(()=>In(K,R))).pipe(ye())});return(0,r.of)(vt).pipe(wo())}));return(0,r.of)(Te).pipe(wo())}(R,se.path,x),function $r(R,U,x){const K=U.routeConfig?U.routeConfig.canActivate:null;if(!K||0===K.length)return(0,r.of)(!0);const se=K.map(Te=>k(()=>{const Le=fe(U)??x,vt=ln(Te,Le);return dt(function Mt(R){return R&&ee(R.canActivate)}(vt)?vt.canActivate(U,R):Le.runInContext(()=>vt(U,R))).pipe(ye())}));return(0,r.of)(se).pipe(wo())}(R,se.route,x))),ye(se=>!0!==se,!0))}(K,Te,R,U):(0,r.of)(vt)),(0,Xe.U)(vt=>({...x,guardsResult:vt})))})}(this.environmentInjector,Le=>this.events.next(Le)),(0,Fe.b)(Le=>{if(K.guardsResult=Le.guardsResult,ai(Le.guardsResult))throw Ki(0,Le.guardsResult);const vt=new Qn(Le.id,this.urlSerializer.serialize(Le.extractedUrl),this.urlSerializer.serialize(Le.urlAfterRedirects),Le.targetSnapshot,!!Le.guardsResult);this.events.next(vt)}),(0,Re.h)(Le=>!!Le.guardsResult||(x.restoreHistory(Le),this.cancelNavigationTransition(Le,"",3),!1)),po(Le=>{if(Le.guards.canActivateChecks.length)return(0,r.of)(Le).pipe((0,Fe.b)(vt=>{const Wt=new di(vt.id,this.urlSerializer.serialize(vt.extractedUrl),this.urlSerializer.serialize(vt.urlAfterRedirects),vt.targetSnapshot);this.events.next(Wt)}),(0,st.w)(vt=>{let Wt=!1;return(0,r.of)(vt).pipe(function Vi(R,U){return(0,de.z)(x=>{const{targetSnapshot:K,guards:{canActivateChecks:se}}=x;if(!se.length)return(0,r.of)(x);let Te=0;return(0,i.D)(se).pipe((0,we.b)(Le=>function mo(R,U,x,K){const se=R.routeConfig,Te=R._resolve;return void 0!==se?.title&&!Ko(se)&&(Te[rt]=se.title),function _r(R,U,x,K){const se=function zo(R){return[...Object.keys(R),...Object.getOwnPropertySymbols(R)]}(R);if(0===se.length)return(0,r.of)({});const Te={};return(0,i.D)(se).pipe((0,de.z)(Le=>function Ar(R,U,x,K){const se=fe(U)??K,Te=ln(R,se);return dt(Te.resolve?Te.resolve(U,x):se.runInContext(()=>Te(U,x)))}(R[Le],U,x,K).pipe(ye(),(0,Fe.b)(vt=>{Te[Le]=vt}))),wt(1),function xt(R){return(0,Xe.U)(()=>R)}(Te),(0,lt.K)(Le=>Go(Le)?s.E:(0,N._)(Le)))}(Te,R,U,K).pipe((0,Xe.U)(Le=>(R._resolvedData=Le,R.data=At(R,x).resolve,se&&Ko(se)&&(R.data[rt]=se.title),null)))}(Le.route,K,R,U)),(0,Fe.b)(()=>Te++),wt(1),(0,de.z)(Le=>Te===se.length?(0,r.of)(x):s.E))})}(x.paramsInheritanceStrategy,this.environmentInjector),(0,Fe.b)({next:()=>Wt=!0,complete:()=>{Wt||(x.restoreHistory(vt),this.cancelNavigationTransition(vt,"",2))}}))}),(0,Fe.b)(vt=>{const Wt=new yi(vt.id,this.urlSerializer.serialize(vt.extractedUrl),this.urlSerializer.serialize(vt.urlAfterRedirects),vt.targetSnapshot);this.events.next(Wt)}))}),po(Le=>{const vt=Wt=>{const wn=[];Wt.routeConfig?.loadComponent&&!Wt.routeConfig._loadedComponent&&wn.push(this.configLoader.loadComponent(Wt.routeConfig).pipe((0,Fe.b)(In=>{Wt.component=In}),(0,Xe.U)(()=>{})));for(const In of Wt.children)wn.push(...vt(In));return wn};return d(vt(Le.targetSnapshot.root)).pipe(Ce(),(0,ze.q)(1))}),po(()=>this.afterPreactivation()),(0,Xe.U)(Le=>{const vt=function ti(R,U,x){const K=On(R,U._root,x?x._root:void 0);return new Me(K,U)}(x.routeReuseStrategy,Le.targetSnapshot,Le.currentRouterState);return K={...Le,targetRouterState:vt}}),(0,Fe.b)(Le=>{x.currentUrlTree=Le.urlAfterRedirects,x.rawUrlTree=x.urlHandlingStrategy.merge(Le.urlAfterRedirects,Le.rawUrl),x.routerState=Le.targetRouterState,"deferred"===x.urlUpdateStrategy&&(Le.extras.skipLocationChange||x.setBrowserUrl(x.rawUrlTree,Le),x.browserUrlTree=Le.urlAfterRedirects)}),((R,U,x)=>(0,Xe.U)(K=>(new E(U,K.targetRouterState,K.currentRouterState,x).activate(R),K)))(this.rootContexts,x.routeReuseStrategy,Le=>this.events.next(Le)),(0,ze.q)(1),(0,Fe.b)({next:Le=>{se=!0,this.lastSuccessfulNavigation=this.currentNavigation,x.navigated=!0,this.events.next(new je(Le.id,this.urlSerializer.serialize(Le.extractedUrl),this.urlSerializer.serialize(x.currentUrlTree))),x.titleStrategy?.updateTitle(Le.targetRouterState.snapshot),Le.resolve(!0)},complete:()=>{se=!0}}),sn(()=>{se||Te||this.cancelNavigationTransition(K,"",1),this.currentNavigation?.id===K.id&&(this.currentNavigation=null)}),(0,lt.K)(Le=>{if(Te=!0,Qe(Le)){ae(Le)||(x.navigated=!0,x.restoreHistory(K,!0));const vt=new Tt(K.id,this.urlSerializer.serialize(K.extractedUrl),Le.message,Le.cancellationCode);if(this.events.next(vt),ae(Le)){const Wt=x.urlHandlingStrategy.merge(Le.url,x.rawUrlTree),wn={skipLocationChange:K.extras.skipLocationChange,replaceUrl:"eager"===x.urlUpdateStrategy||la(K.source)};x.scheduleNavigation(Wt,Yi,null,wn,{resolve:K.resolve,reject:K.reject,promise:K.promise})}else K.resolve(!1)}else{x.restoreHistory(K,!0);const vt=new Nt(K.id,this.urlSerializer.serialize(K.extractedUrl),Le,K.targetSnapshot??void 0);this.events.next(vt);try{K.resolve(x.errorHandler(Le))}catch(Wt){K.reject(Wt)}}return s.E}))}))}cancelNavigationTransition(x,K,se){const Te=new Tt(x.id,this.urlSerializer.serialize(x.extractedUrl),K,se);this.events.next(Te),x.resolve(!1)}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function la(R){return R!==Yi}let vr=(()=>{class R{buildTitle(x){let K,se=x.root;for(;void 0!==se;)K=this.getResolvedTitleForRoute(se)??K,se=se.children.find(Te=>Te.outlet===Ve);return K}getResolvedTitleForRoute(x){return x.data[rt]}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:function(){return(0,t.f3M)(Za)},providedIn:"root"}),R})(),Za=(()=>{class R extends vr{constructor(x){super(),this.title=x}updateTitle(x){const K=this.buildTitle(x);void 0!==K&&this.title.setTitle(K)}}return R.\u0275fac=function(x){return new(x||R)(t.LFG(ct.Dx))},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),vs=(()=>{class R{}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:function(){return(0,t.f3M)(ca)},providedIn:"root"}),R})();class Ks{shouldDetach(U){return!1}store(U,x){}shouldAttach(U){return!1}retrieve(U){return null}shouldReuseRoute(U,x){return U.routeConfig===x.routeConfig}}let ca=(()=>{class R extends Ks{}return R.\u0275fac=function(){let U;return function(K){return(U||(U=t.n5z(R)))(K||R)}}(),R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();const es=new t.OlP("",{providedIn:"root",factory:()=>({})});let Ya=(()=>{class R{}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:function(){return(0,t.f3M)(Lr)},providedIn:"root"}),R})(),Lr=(()=>{class R{shouldProcessUrl(x){return!0}extract(x){return x}merge(x,K){return x}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function Cs(R){throw R}function da(R,U,x){return U.parse("/")}const pa={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Es={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let oo=(()=>{class R{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this.options=(0,t.f3M)(es,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Cs,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||da,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(Ya),this.routeReuseStrategy=(0,t.f3M)(vs),this.urlCreationStrategy=(0,t.f3M)(mr),this.titleStrategy=(0,t.f3M)(vr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=en((0,t.f3M)(Po,{optional:!0})??[]),this.navigationTransitions=(0,t.f3M)(ys),this.urlSerializer=(0,t.f3M)(at),this.location=(0,t.f3M)(Ue.Ye),this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new zt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Pe(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(x=>{this.lastSuccessfulId=x.id,this.currentPageId=this.browserPageId??0},x=>{this.console.warn(`Unhandled Navigation Error: ${x}`)})}resetRootComponentType(x){this.routerState.root.component=x,this.navigationTransitions.rootComponentType=x}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const x=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Yi,x)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(x=>{const K="popstate"===x.type?"popstate":"hashchange";"popstate"===K&&setTimeout(()=>{this.navigateToSyncWithBrowser(x.url,K,x.state)},0)}))}navigateToSyncWithBrowser(x,K,se){const Te={replaceUrl:!0},Le=se?.navigationId?se:null;if(se){const Wt={...se};delete Wt.navigationId,delete Wt.\u0275routerPageId,0!==Object.keys(Wt).length&&(Te.state=Wt)}const vt=this.parseUrl(x);this.scheduleNavigation(vt,K,Le,Te)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(x){this.config=x.map(vo),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(x,K={}){const{relativeTo:se,queryParams:Te,fragment:Le,queryParamsHandling:vt,preserveFragment:Wt}=K,wn=Wt?this.currentUrlTree.fragment:Le;let In=null;switch(vt){case"merge":In={...this.currentUrlTree.queryParams,...Te};break;case"preserve":In=this.currentUrlTree.queryParams;break;default:In=Te||null}return null!==In&&(In=this.removeEmptyProps(In)),this.urlCreationStrategy.createUrlTree(se,this.routerState,this.currentUrlTree,x,In,wn??null)}navigateByUrl(x,K={skipLocationChange:!1}){const se=ai(x)?x:this.parseUrl(x),Te=this.urlHandlingStrategy.merge(se,this.rawUrlTree);return this.scheduleNavigation(Te,Yi,null,K)}navigate(x,K={skipLocationChange:!1}){return function jr(R){for(let U=0;U<R.length;U++){const x=R[U];if(null==x)throw new t.vHH(4008,false)}}(x),this.navigateByUrl(this.createUrlTree(x,K),K)}serializeUrl(x){return this.urlSerializer.serialize(x)}parseUrl(x){let K;try{K=this.urlSerializer.parse(x)}catch(se){K=this.malformedUriErrorHandler(se,this.urlSerializer,x)}return K}isActive(x,K){let se;if(se=!0===K?{...pa}:!1===K?{...Es}:K,ai(x))return Ee(this.currentUrlTree,x,se);const Te=this.parseUrl(x);return Ee(this.currentUrlTree,Te,se)}removeEmptyProps(x){return Object.keys(x).reduce((K,se)=>{const Te=x[se];return null!=Te&&(K[se]=Te),K},{})}scheduleNavigation(x,K,se,Te,Le){if(this.disposed)return Promise.resolve(!1);let vt,Wt,wn,In;return Le?(vt=Le.resolve,Wt=Le.reject,wn=Le.promise):wn=new Promise((xi,go)=>{vt=xi,Wt=go}),In="computed"===this.canceledNavigationResolution?se&&se.\u0275routerPageId?se.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:In,source:K,restoredState:se,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:x,extras:Te,resolve:vt,reject:Wt,promise:wn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),wn.catch(xi=>Promise.reject(xi))}setBrowserUrl(x,K){const se=this.urlSerializer.serialize(x);if(this.location.isCurrentPathEqualTo(se)||K.extras.replaceUrl){const Le={...K.extras.state,...this.generateNgRouterState(K.id,this.browserPageId)};this.location.replaceState(se,"",Le)}else{const Te={...K.extras.state,...this.generateNgRouterState(K.id,K.targetPageId)};this.location.go(se,"",Te)}}restoreHistory(x,K=!1){if("computed"===this.canceledNavigationResolution){const Te=this.currentPageId-(this.browserPageId??this.currentPageId);0!==Te?this.location.historyGo(Te):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Te&&(this.resetState(x),this.browserUrlTree=x.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(K&&this.resetState(x),this.resetUrlToCurrentUrlTree())}resetState(x){this.routerState=x.currentRouterState,this.currentUrlTree=x.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,x.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(x,K){return"computed"===this.canceledNavigationResolution?{navigationId:x,\u0275routerPageId:K}:{navigationId:x}}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();class js{}let Al=(()=>{class R{constructor(x,K,se,Te,Le){this.router=x,this.injector=se,this.preloadingStrategy=Te,this.loader=Le}setUpPreloading(){this.subscription=this.router.events.pipe((0,Re.h)(x=>x instanceof je),(0,we.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(x,K){const se=[];for(const Te of K){Te.providers&&!Te._injector&&(Te._injector=(0,t.MMx)(Te.providers,x,`Route: ${Te.path}`));const Le=Te._injector??x,vt=Te._loadedInjector??Le;(Te.loadChildren&&!Te._loadedRoutes&&void 0===Te.canLoad||Te.loadComponent&&!Te._loadedComponent)&&se.push(this.preloadConfig(Le,Te)),(Te.children||Te._loadedRoutes)&&se.push(this.processRoutes(vt,Te.children??Te._loadedRoutes))}return(0,i.D)(se).pipe((0,b.J)())}preloadConfig(x,K){return this.preloadingStrategy.preload(K,()=>{let se;se=K.loadChildren&&void 0===K.canLoad?this.loader.loadChildren(x,K):(0,r.of)(null);const Te=se.pipe((0,de.z)(Le=>null===Le?(0,r.of)(void 0):(K._loadedRoutes=Le.routes,K._loadedInjector=Le.injector,this.processRoutes(Le.injector??x,Le.routes))));if(K.loadComponent&&!K._loadedComponent){const Le=this.loader.loadComponent(K);return(0,i.D)([Te,Le]).pipe((0,b.J)())}return Te})}}return R.\u0275fac=function(x){return new(x||R)(t.LFG(oo),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(js),t.LFG(gs))},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();const dr=new t.OlP("");let bs=(()=>{class R{constructor(x,K,se,Te,Le={}){this.urlSerializer=x,this.transitions=K,this.viewportScroller=se,this.zone=Te,this.options=Le,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Le.scrollPositionRestoration=Le.scrollPositionRestoration||"disabled",Le.anchorScrolling=Le.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(x=>{x instanceof Io?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=x.navigationTrigger,this.restoredId=x.restoredState?x.restoredState.navigationId:0):x instanceof je&&(this.lastId=x.id,this.scheduleScrollEvent(x,this.urlSerializer.parse(x.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(x=>{x instanceof Bo&&(x.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(x.position):x.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(x.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(x,K){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Bo(x,"popstate"===this.lastSource?this.store[this.restoredId]:null,K))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return R.\u0275fac=function(x){t.$Z()},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})();var xo=(()=>((xo=xo||{})[xo.COMPLETE=0]="COMPLETE",xo[xo.FAILED=1]="FAILED",xo[xo.REDIRECTING=2]="REDIRECTING",xo))();const rr=!1;function Xo(R,U){return{\u0275kind:R,\u0275providers:U}}const Zs=new t.OlP("",{providedIn:"root",factory:()=>!1});function Bs(){const R=(0,t.f3M)(t.zs3);return U=>{const x=R.get(t.z2F);if(U!==x.components[0])return;const K=R.get(oo),se=R.get(Qa);1===R.get(ma)&&K.initialNavigation(),R.get(ns,null,t.XFs.Optional)?.setUpPreloading(),R.get(dr,null,t.XFs.Optional)?.init(),K.resetRootComponentType(x.componentTypes[0]),se.closed||(se.next(),se.complete(),se.unsubscribe())}}const Qa=new t.OlP(rr?"bootstrap done indicator":"",{factory:()=>new De.x}),ma=new t.OlP(rr?"initial navigation":"",{providedIn:"root",factory:()=>1});function el(){let R=[];return R=rr?[{provide:t.Xts,multi:!0,useFactory:()=>{const U=(0,t.f3M)(oo);return()=>U.events.subscribe(x=>{console.group?.(`Router Event: ${x.constructor.name}`),console.log(function Vo(R){if(!("type"in R))return`Unknown Router Event: ${R.constructor.name}`;switch(R.type){case 14:return`ActivationEnd(path: '${R.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${R.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${R.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${R.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${R.id}, url: '${R.url}', urlAfterRedirects: '${R.urlAfterRedirects}', state: ${R.state}, shouldActivate: ${R.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${R.id}, url: '${R.url}', urlAfterRedirects: '${R.urlAfterRedirects}', state: ${R.state})`;case 2:return`NavigationCancel(id: ${R.id}, url: '${R.url}')`;case 16:return`NavigationSkipped(id: ${R.id}, url: '${R.url}')`;case 1:return`NavigationEnd(id: ${R.id}, url: '${R.url}', urlAfterRedirects: '${R.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${R.id}, url: '${R.url}', error: ${R.error})`;case 0:return`NavigationStart(id: ${R.id}, url: '${R.url}')`;case 6:return`ResolveEnd(id: ${R.id}, url: '${R.url}', urlAfterRedirects: '${R.urlAfterRedirects}', state: ${R.state})`;case 5:return`ResolveStart(id: ${R.id}, url: '${R.url}', urlAfterRedirects: '${R.urlAfterRedirects}', state: ${R.state})`;case 10:return`RouteConfigLoadEnd(path: ${R.route.path})`;case 9:return`RouteConfigLoadStart(path: ${R.route.path})`;case 4:return`RoutesRecognized(id: ${R.id}, url: '${R.url}', urlAfterRedirects: '${R.urlAfterRedirects}', state: ${R.state})`;case 15:return`Scroll(anchor: '${R.anchor}', position: '${R.position?`${R.position[0]}, ${R.position[1]}`:null}')`}}(x)),console.log(x),console.groupEnd?.()})}}]:[],Xo(1,R)}const ns=new t.OlP(rr?"router preloader":"");function ga(R){return Xo(0,[{provide:ns,useExisting:Al},{provide:js,useExisting:R}])}const Mr=!1,sr=new t.OlP(Mr?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Fr=[Ue.Ye,{provide:at,useClass:Gt},oo,ie,{provide:ft,useFactory:function Ss(R){return R.routerState.root},deps:[oo]},gs,Mr?{provide:Zs,useValue:!0}:[]];function Ms(){return new t.PXZ("Router",oo)}let is=(()=>{class R{constructor(x){}static forRoot(x,K){return{ngModule:R,providers:[Fr,Mr&&K?.enableTracing?el().\u0275providers:[],{provide:Po,multi:!0,useValue:x},{provide:sr,useFactory:il,deps:[[oo,new t.FiY,new t.tp0]]},{provide:es,useValue:K||{}},K?.useHash?{provide:Ue.S$,useClass:Ue.Do}:{provide:Ue.S$,useClass:Ue.b0},{provide:dr,useFactory:()=>{const R=(0,t.f3M)(Ue.EM),U=(0,t.f3M)(t.R0b),x=(0,t.f3M)(es),K=(0,t.f3M)(ys),se=(0,t.f3M)(at);return x.scrollOffset&&R.setOffset(x.scrollOffset),new bs(se,K,R,U,x)}},K?.preloadingStrategy?ga(K.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:Ms},K?.initialNavigation?ol(K):[],[{provide:er,useFactory:Bs},{provide:t.tb,multi:!0,useExisting:er}]]}}static forChild(x){return{ngModule:R,providers:[{provide:Po,multi:!0,useValue:x}]}}}return R.\u0275fac=function(x){return new(x||R)(t.LFG(sr,8))},R.\u0275mod=t.oAB({type:R}),R.\u0275inj=t.cJS({imports:[An]}),R})();function il(R){if(Mr&&R)throw new t.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function ol(R){return["disabled"===R.initialNavigation?Xo(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const U=(0,t.f3M)(oo);return()=>{U.setUpLocationChangeListener()}}},{provide:ma,useValue:2}]).\u0275providers:[],"enabledBlocking"===R.initialNavigation?Xo(2,[{provide:ma,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:U=>{const x=U.get(Ue.V_,Promise.resolve());return()=>x.then(()=>new Promise(K=>{const se=U.get(oo),Te=U.get(Qa);(function kr(R,U){R.events.pipe((0,Re.h)(x=>x instanceof je||x instanceof Tt||x instanceof Nt||x instanceof _t),(0,Xe.U)(x=>x instanceof je||x instanceof _t?xo.COMPLETE:x instanceof Tt&&(0===x.code||1===x.code)?xo.REDIRECTING:xo.FAILED),(0,Re.h)(x=>x!==xo.REDIRECTING),(0,ze.q)(1)).subscribe(()=>{U()})})(se,()=>{K(!0)}),U.get(ys).afterPreactivation=()=>(K(!0),Te.closed?(0,r.of)(void 0):Te),se.initialNavigation()}))}}]).\u0275providers:[]]}const er=new t.OlP(Mr?"Router Initializer":"")},5242:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2560),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9263),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(591),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(833),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(745),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6646),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(4915),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6067),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1203),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(116),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(635),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3853),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7580),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(1989),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3158),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9295),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(8951),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(2673),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(7260),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(8728),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(538),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(4351);const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(re,l){if(this.action=re,this.timestamp=l,this.type=PERFORM_ACTION,typeof re.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(re){this.timestamp=re,this.type=RESET}}class Rollback{constructor(re){this.timestamp=re,this.type=ROLLBACK}}class Commit{constructor(re){this.timestamp=re,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(re){this.id=re,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(re,l,t=!0){this.start=re,this.end=l,this.active=t,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(re){this.index=re,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(re){this.actionId=re,this.type=JUMP_TO_ACTION}}class ImportState{constructor(re){this.nextLiftedState=re,this.type=IMPORT_STATE}}class LockChanges{constructor(re){this.status=re,this.type=LOCK_CHANGES}}class PauseRecording{constructor(re){this.status=re,this.type=PAUSE_RECORDING}}class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(qe){const re={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},l="function"==typeof qe?qe():qe,r=Object.assign({},re,{features:l.features||!!l.logOnly&&{pause:!0,export:!0,test:!0}||re.features},l);if(r.maxAge&&r.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${r.maxAge}`);return r}function difference(qe,re){return qe.filter(l=>re.indexOf(l)<0)}function unliftState(qe){const{computedStates:re,currentStateIndex:l}=qe;if(l>=re.length){const{state:i}=re[re.length-1];return i}const{state:t}=re[l];return t}function unliftAction(qe){return qe.actionsById[qe.nextActionId-1]}function liftAction(qe){return new PerformAction(qe,+Date.now())}function sanitizeActions(qe,re){return Object.keys(re).reduce((l,t)=>{const i=Number(t);return l[i]=sanitizeAction(qe,re[i],i),l},{})}function sanitizeAction(qe,re,l){return{...re,action:qe(re.action,l)}}function sanitizeStates(qe,re){return re.map((l,t)=>({state:sanitizeState(qe,l.state,t),error:l.error}))}function sanitizeState(qe,re,l){return qe(re,l)}function shouldFilterActions(qe){return qe.predicate||qe.actionsSafelist||qe.actionsBlocklist}function filterLiftedState(qe,re,l,t){const i=[],r={},L=[];return qe.stagedActionIds.forEach((M,v)=>{const y=qe.actionsById[M];y&&(v&&isActionFiltered(qe.computedStates[v],y,re,l,t)||(r[M]=y,i.push(M),L.push(qe.computedStates[v])))}),{...qe,stagedActionIds:i,actionsById:r,computedStates:L}}function isActionFiltered(qe,re,l,t,i){const r=l&&!l(qe,re.action),L=t&&!re.action.type.match(t.map(v=>escapeRegExp(v)).join("|")),M=i&&re.action.type.match(i.map(v=>escapeRegExp(v)).join("|"));return r||L||M}function escapeRegExp(qe){return qe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let DevtoolsDispatcher=(()=>{class qe extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return qe.\u0275fac=function(){let re;return function(t){return(re||(re=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(qe)))(t||qe)}}(),qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(qe,re,l){this.config=re,this.dispatcher=l,this.devtoolsExtension=qe,this.createActionStreams()}notify(qe,re){if(this.devtoolsExtension)if(qe.type===PERFORM_ACTION){if(re.isLocked||re.isPaused)return;const l=unliftState(re);if(shouldFilterActions(this.config)&&isActionFiltered(l,qe,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,l,re.currentStateIndex):l,i=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,qe,re.nextActionId):qe;this.sendToReduxDevtools(()=>this.extensionConnection.send(i,t))}else{const l={...re,stagedActionIds:re.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,re.actionsById):re.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,re.computedStates):re.computedStates};this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,l,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(qe=>{const re=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=re,re.init(),re.subscribe(l=>qe.next(l)),re.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const qe=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),re=qe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.type===ExtensionActionTypes.START)),l=qe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.type===ExtensionActionTypes.STOP)),t=qe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(M=>this.unwrapAction(M.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(M=>M.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(v=>v.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>M),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(M))),r=qe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(M=>this.unwrapAction(M.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(l)),L=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(l));this.start$=re.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(l)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>r)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>L))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(qe){const re={name:qe.name,features:qe.features,serialize:qe.serialize,autoPause:qe.autoPause??!1,trace:qe.trace??!1,traceLimit:qe.traceLimit??75};return!1!==qe.maxAge&&(re.maxAge=qe.maxAge),re}sendToReduxDevtools(qe){try{qe()}catch(re){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",re)}}}return DevtoolsExtension.\u0275fac=function qe(re){return new(re||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(qe,re,l,t,i){if(t)return{state:l,error:"Interrupted by an error up the chain"};let L,r=l;try{r=qe(l,re)}catch(M){L=M.toString(),i.handleError(M)}return{state:r,error:L}}function recomputeStates(qe,re,l,t,i,r,L,M,v){if(re>=qe.length&&qe.length===r.length)return qe;const y=qe.slice(0,re),u=r.length-(v?1:0);for(let _=re;_<u;_++){const p=r[_],C=i[p].action,g=y[_-1],f=g?g.state:t,d=g?g.error:void 0,T=L.indexOf(p)>-1?g:computeNextEntry(l,C,f,d,M);y.push(T)}return v&&y.push(qe[qe.length-1]),y}function liftInitialState(qe,re){return{monitorState:re(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:qe,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(qe,re,l,t,i={}){return r=>(L,M)=>{let{monitorState:v,actionsById:y,nextActionId:u,stagedActionIds:_,skippedActionIds:p,committedState:C,currentStateIndex:g,computedStates:f,isLocked:d,isPaused:h}=L||re;function T(W){let I=W,k=_.slice(1,I+1);for(let D=0;D<k.length;D++){if(f[D+1].error){I=D,k=_.slice(1,I+1);break}delete y[k[D]]}p=p.filter(D=>-1===k.indexOf(D)),_=[0,..._.slice(I+1)],C=f[I].state,f=f.slice(I),g=g>I?g-I:0}function b(){y={0:liftAction(INIT_ACTION)},u=1,_=[0],p=[],C=f[g].state,g=0,f=[]}L||(y=Object.create(y));let P=0;switch(M.type){case LOCK_CHANGES:d=M.status,P=1/0;break;case PAUSE_RECORDING:h=M.status,h?(_=[..._,u],y[u]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),u++,P=_.length-1,f=f.concat(f[f.length-1]),g===_.length-2&&g++,P=1/0):b();break;case RESET:y={0:liftAction(INIT_ACTION)},u=1,_=[0],p=[],C=qe,g=0,f=[];break;case COMMIT:b();break;case ROLLBACK:y={0:liftAction(INIT_ACTION)},u=1,_=[0],p=[],g=0,f=[];break;case TOGGLE_ACTION:{const{id:W}=M;p=-1===p.indexOf(W)?[W,...p]:p.filter(k=>k!==W),P=_.indexOf(W);break}case SET_ACTIONS_ACTIVE:{const{start:W,end:I,active:k}=M,D=[];for(let N=W;N<I;N++)D.push(N);p=k?difference(p,D):[...p,...D],P=_.indexOf(W);break}case JUMP_TO_STATE:g=M.index,P=1/0;break;case JUMP_TO_ACTION:{const W=_.indexOf(M.actionId);-1!==W&&(g=W),P=1/0;break}case SWEEP:_=difference(_,p),p=[],g=Math.min(g,_.length-1);break;case PERFORM_ACTION:{if(d)return L||re;if(h||L&&isActionFiltered(L.computedStates[g],M,i.predicate,i.actionsSafelist,i.actionsBlocklist)){const I=f[f.length-1];f=[...f.slice(0,-1),computeNextEntry(r,M.action,I.state,I.error,l)],P=1/0;break}i.maxAge&&_.length===i.maxAge&&T(1),g===_.length-1&&g++;const W=u++;y[W]=M,_=[..._,W],P=_.length-1;break}case IMPORT_STATE:({monitorState:v,actionsById:y,nextActionId:u,stagedActionIds:_,skippedActionIds:p,committedState:C,currentStateIndex:g,computedStates:f,isLocked:d,isPaused:h}=M.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:P=0,i.maxAge&&_.length>i.maxAge&&(f=recomputeStates(f,P,r,C,y,_,p,l,h),T(_.length-i.maxAge),P=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(f.filter(I=>I.error).length>0)P=0,i.maxAge&&_.length>i.maxAge&&(f=recomputeStates(f,P,r,C,y,_,p,l,h),T(_.length-i.maxAge),P=1/0);else{if(!h&&!d){g===_.length-1&&g++;const I=u++;y[I]=new PerformAction(M,+Date.now()),_=[..._,I],P=_.length-1,f=recomputeStates(f,P,r,C,y,_,p,l,h)}f=f.map(I=>({...I,state:r(I.state,RECOMPUTE_ACTION)})),g=_.length-1,i.maxAge&&_.length>i.maxAge&&T(_.length-i.maxAge),P=1/0}break;default:P=1/0}return f=recomputeStates(f,P,r,C,y,_,p,l,h),v=t(v,M),{monitorState:v,actionsById:y,nextActionId:u,stagedActionIds:_,skippedActionIds:p,committedState:C,currentStateIndex:g,computedStates:f,isLocked:d,isPaused:h}}}let StoreDevtools=(()=>{class qe{constructor(l,t,i,r,L,M,v,y){const u=liftInitialState(v,y.monitor),_=liftReducerWith(v,u,M,y.monitor,y),p=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),r.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),l,r.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),C=i.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(_)),g=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),f=p.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(C),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:b},[P,W])=>{let I=W(b,P);return P.type!==PERFORM_ACTION&&shouldFilterActions(y)&&(I=filterLiftedState(I,y.predicate,y.actionsSafelist,y.actionsBlocklist)),r.notify(P,I),{state:I,action:P}},{state:u,action:null})).subscribe(({state:b,action:P})=>{g.next(b),P.type===PERFORM_ACTION&&L.next(P.action)}),d=r.start$.subscribe(()=>{this.refresh()}),h=g.asObservable(),T=h.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=d,this.stateSubscription=f,this.dispatcher=l,this.liftedState=h,this.state=T}dispatch(l){this.dispatcher.next(l)}next(l){this.dispatcher.next(l)}error(l){}complete(){}performAction(l){this.dispatch(new PerformAction(l,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(l){this.dispatch(new ToggleAction(l))}jumpToAction(l){this.dispatch(new JumpToAction(l))}jumpToState(l){this.dispatch(new JumpToState(l))}importState(l){this.dispatch(new ImportState(l))}lockChanges(l){this.dispatch(new LockChanges(l))}pauseRecording(l){this.dispatch(new PauseRecording(l))}}return qe.\u0275fac=function(l){return new(l||qe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(qe,re){return Boolean(qe)||re.monitor!==noMonitor}function createReduxDevtoolsExtension(){const qe="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[qe]<"u"?window[qe]:null}function provideStoreDevtools(qe={}){return(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.MR2)([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:qe},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}])}function createStateObservable(qe){return qe.state}let StoreDevtoolsModule=(()=>{class qe{static instrument(l={}){return{ngModule:qe,providers:[provideStoreDevtools(l)]}}}return qe.\u0275fac=function(l){return new(l||qe)},qe.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:qe}),qe.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),qe})()},9263:(qe,re,l)=>{"use strict";l.d(re,{UO:()=>s,qg:()=>N,Y6:()=>ue,mK:()=>yt,n$:()=>Ft,Y$:()=>en,FR:()=>En,yh:()=>$,CK:()=>Yn,Aw:()=>Yi,cr:()=>Si,wb:()=>un,PH:()=>d,Lq:()=>Io,on:()=>li,Ky:()=>h});var t=l(2560),i=l(6317),r=l(833),L=l(253),M=l(4915),v=l(8728),y=l(538),u=l(4351),_=l(635),C=l(8977);const g={};function d(je,Tt){if(g[je]=(g[je]||0)+1,"function"==typeof Tt)return b(je,(...Nt)=>({...Tt(...Nt),type:je}));switch(Tt?Tt._as:"empty"){case"empty":return b(je,()=>({type:je}));case"props":return b(je,Nt=>({...Nt,type:je}));default:throw new Error("Unexpected config.")}}function h(){return{_as:"props",_p:void 0}}function b(je,Tt){return Object.defineProperty(Tt,"type",{value:je,writable:!1})}const N="@ngrx/store/init";let s=(()=>{class je extends i.X{constructor(){super({type:N})}next(_t){if("function"==typeof _t)throw new TypeError("\n        Dispatch expected an object, instead it received a function.\n        If you're using the createAction function, make sure to invoke the function\n        before dispatching the action. For example, someAction should be someAction().");if(typeof _t>"u")throw new TypeError("Actions must be objects");if(typeof _t.type>"u")throw new TypeError("Actions must have a type property");super.next(_t)}complete(){}ngOnDestroy(){super.complete()}}return je.\u0275fac=function(_t){return new(_t||je)},je.\u0275prov=t.Yz7({token:je,factory:je.\u0275fac}),je})();const V=[s],Q=new t.OlP("@ngrx/store Internal Root Guard"),me=new t.OlP("@ngrx/store Internal Initial State"),ue=new t.OlP("@ngrx/store Initial State"),De=new t.OlP("@ngrx/store Reducer Factory"),Ue=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),Xe=new t.OlP("@ngrx/store Initial Reducers"),st=new t.OlP("@ngrx/store Internal Initial Reducers"),ze=new t.OlP("@ngrx/store Store Features"),F=new t.OlP("@ngrx/store Internal Store Reducers"),Re=new t.OlP("@ngrx/store Internal Feature Reducers"),de=new t.OlP("@ngrx/store Internal Feature Configs"),Ce=new t.OlP("@ngrx/store Internal Store Features"),oe=new t.OlP("@ngrx/store Internal Feature Reducers Token"),G=new t.OlP("@ngrx/store Feature Reducers"),ye=new t.OlP("@ngrx/store User Provided Meta Reducers"),we=new t.OlP("@ngrx/store Meta Reducers"),Fe=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),lt=new t.OlP("@ngrx/store User Runtime Checks Config"),Pt=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),wt=new t.OlP("@ngrx/store Internal Runtime Checks"),Bt=new t.OlP("@ngrx/store Check if Action types are unique");function sn(je,Tt={}){const _t=Object.keys(je),Nt={};for(let cn=0;cn<_t.length;cn++){const Qn=_t[cn];"function"==typeof je[Qn]&&(Nt[Qn]=je[Qn])}const Qt=Object.keys(Nt);return function(Qn,di){Qn=void 0===Qn?Tt:Qn;let yi=!1;const qi={};for(let oi=0;oi<Qt.length;oi++){const wi=Qt[oi],Hi=Qn[wi],co=(0,Nt[wi])(Hi,di);qi[wi]=co,yi=yi||co!==Hi}return yi?qi:Qn}}function Ve(...je){return function(Tt){if(0===je.length)return Tt;const _t=je[je.length-1];return je.slice(0,-1).reduceRight((Qt,cn)=>cn(Qt),_t(Tt))}}function rt(je,Tt){return Array.isArray(Tt)&&Tt.length>0&&(je=Ve.apply(null,[...Tt,je])),(_t,Nt)=>{const Qt=je(_t);return(cn,Qn)=>Qt(cn=void 0===cn?Nt:cn,Qn)}}new t.OlP("@ngrx/store Root Store Provider"),new t.OlP("@ngrx/store Feature State Provider");class Ft extends r.y{}class yt extends s{}const un="@ngrx/store/update-reducers";let bt=(()=>{class je extends i.X{constructor(_t,Nt,Qt,cn){super(cn(Qt,Nt)),this.dispatcher=_t,this.initialState=Nt,this.reducers=Qt,this.reducerFactory=cn}get currentReducers(){return this.reducers}addFeature(_t){this.addFeatures([_t])}addFeatures(_t){const Nt=_t.reduce((Qt,{reducers:cn,reducerFactory:Qn,metaReducers:di,initialState:yi,key:qi})=>{const oi="function"==typeof cn?function Et(je){const Tt=Array.isArray(je)&&je.length>0?Ve(...je):_t=>_t;return(_t,Nt)=>(_t=Tt(_t),(Qt,cn)=>_t(Qt=void 0===Qt?Nt:Qt,cn))}(di)(cn,yi):rt(Qn,di)(cn,yi);return Qt[qi]=oi,Qt},{});this.addReducers(Nt)}removeFeature(_t){this.removeFeatures([_t])}removeFeatures(_t){this.removeReducers(_t.map(Nt=>Nt.key))}addReducer(_t,Nt){this.addReducers({[_t]:Nt})}addReducers(_t){this.reducers={...this.reducers,..._t},this.updateReducers(Object.keys(_t))}removeReducer(_t){this.removeReducers([_t])}removeReducers(_t){_t.forEach(Nt=>{this.reducers=function ct(je,Tt){return Object.keys(je).filter(_t=>_t!==Tt).reduce((_t,Nt)=>Object.assign(_t,{[Nt]:je[Nt]}),{})}(this.reducers,Nt)}),this.updateReducers(_t)}updateReducers(_t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:un,features:_t})}ngOnDestroy(){this.complete()}}return je.\u0275fac=function(_t){return new(_t||je)(t.LFG(yt),t.LFG(ue),t.LFG(Xe),t.LFG(De))},je.\u0275prov=t.Yz7({token:je,factory:je.\u0275fac}),je})();const Jt=[bt,{provide:Ft,useExisting:bt},{provide:yt,useExisting:s}];let en=(()=>{class je extends L.x{ngOnDestroy(){this.complete()}}return je.\u0275fac=function(){let Tt;return function(Nt){return(Tt||(Tt=t.n5z(je)))(Nt||je)}}(),je.\u0275prov=t.Yz7({token:je,factory:je.\u0275fac}),je})();const mn=[en];class En extends r.y{}let Ln=(()=>{class je extends i.X{constructor(_t,Nt,Qt,cn){super(cn);const qi=_t.pipe((0,v.Q)(M.N)).pipe((0,y.M)(Nt)).pipe((0,u.R)(dt,{state:cn}));this.stateSubscription=qi.subscribe(({state:oi,action:wi})=>{this.next(oi),Qt.next(wi)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return je.INIT=N,je.\u0275fac=function(_t){return new(_t||je)(t.LFG(s),t.LFG(Ft),t.LFG(en),t.LFG(ue))},je.\u0275prov=t.Yz7({token:je,factory:je.\u0275fac}),je})();function dt(je={state:void 0},[Tt,_t]){const{state:Nt}=je;return{state:_t(Nt,Tt),action:Tt}}const Ot=[Ln,{provide:En,useExisting:Ln}];let $=(()=>{class je extends r.y{constructor(_t,Nt,Qt){super(),this.actionsObserver=Nt,this.reducerManager=Qt,this.source=_t}select(_t,...Nt){return Ee.call(null,_t,...Nt)(this)}lift(_t){const Nt=new je(this,this.actionsObserver,this.reducerManager);return Nt.operator=_t,Nt}dispatch(_t){this.actionsObserver.next(_t)}next(_t){this.actionsObserver.next(_t)}error(_t){this.actionsObserver.error(_t)}complete(){this.actionsObserver.complete()}addReducer(_t,Nt){this.reducerManager.addReducer(_t,Nt)}removeReducer(_t){this.reducerManager.removeReducer(_t)}}return je.\u0275fac=function(_t){return new(_t||je)(t.LFG(En),t.LFG(s),t.LFG(bt))},je.\u0275prov=t.Yz7({token:je,factory:je.\u0275fac}),je})();const pe=[$];function Ee(je,Tt,..._t){return function(Qt){let cn;if("string"==typeof je){const Qn=[Tt,..._t].filter(Boolean);cn=Qt.pipe(function p(...je){const Tt=je.length;if(0===Tt)throw new Error("list of properties cannot be empty.");return(0,_.U)(_t=>{let Nt=_t;for(let Qt=0;Qt<Tt;Qt++){const cn=Nt?.[je[Qt]];if(!(typeof cn<"u"))return;Nt=cn}return Nt})}(je,...Qn))}else{if("function"!=typeof je)throw new TypeError(`Unexpected type '${typeof je}' in select operator, expected 'string' or 'function'`);cn=Qt.pipe((0,_.U)(Qn=>je(Qn,Tt)))}return cn.pipe((0,C.x)())}}const Ge="https://ngrx.io/guide/store/configuration/runtime-checks";function Zt(je){return void 0===je}function tn(je){return null===je}function on(je){return Array.isArray(je)}function Ht(je){return"object"==typeof je&&null!==je}function ot(je){return"function"==typeof je}function Vn(je){return je instanceof t.OlP?(0,t.f3M)(je):je}function He(je,Tt){return Tt.map((_t,Nt)=>{if(je[Nt]instanceof t.OlP){const Qt=(0,t.f3M)(je[Nt]);return{key:_t.key,reducerFactory:Qt.reducerFactory?Qt.reducerFactory:sn,metaReducers:Qt.metaReducers?Qt.metaReducers:[],initialState:Qt.initialState}}return _t})}function ht(je){return je.map(Tt=>Tt instanceof t.OlP?(0,t.f3M)(Tt):Tt)}function Ze(je){return"function"==typeof je?je():je}function Kt(je,Tt){return je.concat(Tt)}function Hn(){if((0,t.f3M)($,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function ai(je){Object.freeze(je);const Tt=ot(je);return Object.getOwnPropertyNames(je).forEach(_t=>{if(!_t.startsWith("\u0275")&&function at(je,Tt){return Object.prototype.hasOwnProperty.call(je,Tt)}(je,_t)&&(!Tt||"caller"!==_t&&"callee"!==_t&&"arguments"!==_t)){const Nt=je[_t];(Ht(Nt)||ot(Nt))&&!Object.isFrozen(Nt)&&ai(Nt)}}),je}function ni(je,Tt=[]){return(Zt(je)||tn(je))&&0===Tt.length?{path:["root"],value:je}:Object.keys(je).reduce((Nt,Qt)=>{if(Nt)return Nt;const cn=je[Qt];return function Be(je){return ot(je)&&je.hasOwnProperty("\u0275cmp")}(cn)?Nt:!(Zt(cn)||tn(cn)||function zt(je){return"number"==typeof je}(cn)||function vn(je){return"boolean"==typeof je}(cn)||function Un(je){return"string"==typeof je}(cn)||on(cn))&&(function Dt(je){if(!function pt(je){return Ht(je)&&!on(je)}(je))return!1;const Tt=Object.getPrototypeOf(je);return Tt===Object.prototype||null===Tt}(cn)?ni(cn,[...Tt,Qt]):{path:[...Tt,Qt],value:cn})},!1)}function Oi(je,Tt){if(!1===je)return;const _t=je.path.join("."),Nt=new Error(`Detected unserializable ${Tt} at "${_t}". ${Ge}#strict${Tt}serializability`);throw Nt.value=je.value,Nt.unserializablePath=_t,Nt}function Ii(je){return(0,t.X6Q)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...je}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function yo({strictActionSerializability:je,strictStateSerializability:Tt}){return _t=>je||Tt?function xn(je,Tt){return function(_t,Nt){Tt.action(Nt)&&Oi(ni(Nt),"action");const Qt=je(_t,Nt);return Tt.state()&&Oi(ni(Qt),"state"),Qt}}(_t,{action:Nt=>je&&!Fi(Nt),state:()=>Tt}):_t}function ao({strictActionImmutability:je,strictStateImmutability:Tt}){return _t=>je||Tt?function ei(je,Tt){return function(_t,Nt){const Qt=Tt.action(Nt)?ai(Nt):Nt,cn=je(_t,Qt);return Tt.state()?ai(cn):cn}}(_t,{action:Nt=>je&&!Fi(Nt),state:()=>Tt}):_t}function Fi(je){return je.type.startsWith("@ngrx")}function Di({strictActionWithinNgZone:je}){return Tt=>je?function so(je,Tt){return function(_t,Nt){if(Tt.action(Nt)&&!t.R0b.isInAngularZone())throw new Error(`Action '${Nt.type}' running outside NgZone. ${Ge}#strictactionwithinngzone`);return je(_t,Nt)}}(Tt,{action:_t=>je&&!Fi(_t)}):Tt}function pn(je){return[{provide:Pt,useValue:je},{provide:lt,useFactory:bi,deps:[Pt]},{provide:wt,deps:[lt],useFactory:Ii},{provide:we,multi:!0,deps:[wt],useFactory:ao},{provide:we,multi:!0,deps:[wt],useFactory:yo},{provide:we,multi:!0,deps:[wt],useFactory:Di}]}function $n(){return[{provide:Bt,multi:!0,deps:[wt],useFactory:no}]}function bi(je){return je}function no(je){if(!je.strictActionTypeUniqueness)return;const Tt=Object.entries(g).filter(([,_t])=>_t>1).map(([_t])=>_t);if(Tt.length)throw new Error(`Action types are registered more than once, ${Tt.map(_t=>`"${_t}"`).join(", ")}. ${Ge}#strictactiontypeuniqueness`)}function _i(je={},Tt={}){return[{provide:Q,useFactory:Hn},{provide:me,useValue:Tt.initialState},{provide:ue,useFactory:Ze,deps:[me]},{provide:st,useValue:je},{provide:F,useExisting:je instanceof t.OlP?je:st},{provide:Xe,deps:[st,[new t.tBr(F)]],useFactory:Vn},{provide:ye,useValue:Tt.metaReducers?Tt.metaReducers:[]},{provide:Fe,deps:[we,ye],useFactory:Kt},{provide:Ue,useValue:Tt.reducerFactory?Tt.reducerFactory:sn},{provide:De,deps:[Ue,Fe],useFactory:rt},V,Jt,mn,Ot,pe,pn(Tt.runtimeChecks),$n()]}function Ui(je,Tt,_t={}){return[{provide:de,multi:!0,useValue:je instanceof Object?{}:_t},{provide:ze,multi:!0,useValue:{key:je instanceof Object?je.name:je,reducerFactory:_t instanceof t.OlP||!_t.reducerFactory?sn:_t.reducerFactory,metaReducers:_t instanceof t.OlP||!_t.metaReducers?[]:_t.metaReducers,initialState:_t instanceof t.OlP||!_t.initialState?void 0:_t.initialState}},{provide:Ce,deps:[de,ze],useFactory:He},{provide:Re,multi:!0,useValue:je instanceof Object?je.reducer:Tt},{provide:oe,multi:!0,useExisting:Tt instanceof t.OlP?Tt:Re},{provide:G,multi:!0,deps:[Re,[new t.tBr(oe)]],useFactory:ht},$n()]}let Si=(()=>{class je{constructor(_t,Nt,Qt,cn,Qn,di){}}return je.\u0275fac=function(_t){return new(_t||je)(t.LFG(s),t.LFG(Ft),t.LFG(en),t.LFG($),t.LFG(Q,8),t.LFG(Bt,8))},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({}),je})(),Yn=(()=>{class je{constructor(_t,Nt,Qt,cn,Qn){this.features=_t,this.featureReducers=Nt,this.reducerManager=Qt;const di=_t.map((yi,qi)=>{const wi=Nt.shift()[qi];return{...yi,reducers:wi,initialState:Ze(yi.initialState)}});Qt.addFeatures(di)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return je.\u0275fac=function(_t){return new(_t||je)(t.LFG(Ce),t.LFG(G),t.LFG(bt),t.LFG(Si),t.LFG(Bt,8))},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({}),je})(),Yi=(()=>{class je{static forRoot(_t,Nt){return{ngModule:Si,providers:[..._i(_t,Nt)]}}static forFeature(_t,Nt,Qt={}){return{ngModule:Yn,providers:[...Ui(_t,Nt,Qt)]}}}return je.\u0275fac=function(_t){return new(_t||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({}),je})();function li(...je){return{reducer:je.pop(),types:je.map(Nt=>Nt.type)}}function Io(je,...Tt){const _t=new Map;for(const Nt of Tt)for(const Qt of Nt.types){const cn=_t.get(Qt);_t.set(Qt,cn?(di,yi)=>Nt.reducer(cn(di,yi),yi):Nt.reducer)}return function(Nt=je,Qt){const cn=_t.get(Qt.type);return cn?cn(Nt,Qt):Nt}}},5502:(qe,re,l)=>{"use strict";l.d(re,{N:()=>r});var t=l(2560),i=l(4666);let r=(()=>{class L{constructor(v,y){this.document=v,this.platformId=y,this.documentIsAccessible=(0,i.NF)(this.platformId)}static getCookieRegExp(v){const y=v.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+y+"|;\\s*"+y+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(v){try{return decodeURIComponent(v)}catch{return v}}check(v){return!!this.documentIsAccessible&&(v=encodeURIComponent(v),L.getCookieRegExp(v).test(this.document.cookie))}get(v){if(this.documentIsAccessible&&this.check(v)){v=encodeURIComponent(v);const u=L.getCookieRegExp(v).exec(this.document.cookie);return u[1]?L.safeDecodeURIComponent(u[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const v={},y=this.document;return y.cookie&&""!==y.cookie&&y.cookie.split(";").forEach(u=>{const[_,p]=u.split("=");v[L.safeDecodeURIComponent(_.replace(/^ /,""))]=L.safeDecodeURIComponent(p)}),v}set(v,y,u,_,p,C,g){if(!this.documentIsAccessible)return;if("number"==typeof u||u instanceof Date||_||p||C||g)return void this.set(v,y,{expires:u,path:_,domain:p,secure:C,sameSite:g||"Lax"});let f=encodeURIComponent(v)+"="+encodeURIComponent(y)+";";const d=u||{};d.expires&&(f+="number"==typeof d.expires?"expires="+new Date((new Date).getTime()+1e3*d.expires*60*60*24).toUTCString()+";":"expires="+d.expires.toUTCString()+";"),d.path&&(f+="path="+d.path+";"),d.domain&&(f+="domain="+d.domain+";"),!1===d.secure&&"None"===d.sameSite&&(d.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${v} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),d.secure&&(f+="secure;"),d.sameSite||(d.sameSite="Lax"),f+="sameSite="+d.sameSite+";",this.document.cookie=f}delete(v,y,u,_,p="Lax"){this.documentIsAccessible&&this.set(v,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:y,domain:u,secure:_,sameSite:p})}deleteAll(v,y,u,_="Lax"){if(!this.documentIsAccessible)return;const p=this.getAll();for(const C in p)p.hasOwnProperty(C)&&this.delete(C,v,y,u,_)}}return L.\u0275fac=function(v){return new(v||L)(t.LFG(i.K0),t.LFG(t.Lbi))},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},4356:(qe,re,l)=>{"use strict";l.d(re,{$_:()=>b,F0:()=>f,a6:()=>_,b4:()=>h,ez:()=>g,h4:()=>T,iZ:()=>C,jx:()=>P,m8:()=>W,pg:()=>p,ws:()=>I});var t=l(2560),i=l(253),r=l(8549),L=l(4666);const M=["*"];let _=(()=>{class D{}return D.STARTS_WITH="startsWith",D.CONTAINS="contains",D.NOT_CONTAINS="notContains",D.ENDS_WITH="endsWith",D.EQUALS="equals",D.NOT_EQUALS="notEquals",D.IN="in",D.LESS_THAN="lt",D.LESS_THAN_OR_EQUAL_TO="lte",D.GREATER_THAN="gt",D.GREATER_THAN_OR_EQUAL_TO="gte",D.BETWEEN="between",D.IS="is",D.IS_NOT="isNot",D.BEFORE="before",D.AFTER="after",D.DATE_IS="dateIs",D.DATE_IS_NOT="dateIsNot",D.DATE_BEFORE="dateBefore",D.DATE_AFTER="dateAfter",D})(),p=(()=>{class D{}return D.AND="and",D.OR="or",D})(),C=(()=>{class D{constructor(){this.filters={startsWith:(s,V,Q)=>{if(null==V||""===V.trim())return!0;if(null==s)return!1;let me=r.gb.removeAccents(V.toString()).toLocaleLowerCase(Q);return r.gb.removeAccents(s.toString()).toLocaleLowerCase(Q).slice(0,me.length)===me},contains:(s,V,Q)=>{if(null==V||"string"==typeof V&&""===V.trim())return!0;if(null==s)return!1;let me=r.gb.removeAccents(V.toString()).toLocaleLowerCase(Q);return-1!==r.gb.removeAccents(s.toString()).toLocaleLowerCase(Q).indexOf(me)},notContains:(s,V,Q)=>{if(null==V||"string"==typeof V&&""===V.trim())return!0;if(null==s)return!1;let me=r.gb.removeAccents(V.toString()).toLocaleLowerCase(Q);return-1===r.gb.removeAccents(s.toString()).toLocaleLowerCase(Q).indexOf(me)},endsWith:(s,V,Q)=>{if(null==V||""===V.trim())return!0;if(null==s)return!1;let me=r.gb.removeAccents(V.toString()).toLocaleLowerCase(Q),ue=r.gb.removeAccents(s.toString()).toLocaleLowerCase(Q);return-1!==ue.indexOf(me,ue.length-me.length)},equals:(s,V,Q)=>null==V||"string"==typeof V&&""===V.trim()||null!=s&&(s.getTime&&V.getTime?s.getTime()===V.getTime():r.gb.removeAccents(s.toString()).toLocaleLowerCase(Q)==r.gb.removeAccents(V.toString()).toLocaleLowerCase(Q)),notEquals:(s,V,Q)=>!(null==V||"string"==typeof V&&""===V.trim()||null!=s&&(s.getTime&&V.getTime?s.getTime()===V.getTime():r.gb.removeAccents(s.toString()).toLocaleLowerCase(Q)==r.gb.removeAccents(V.toString()).toLocaleLowerCase(Q))),in:(s,V)=>{if(null==V||0===V.length)return!0;for(let Q=0;Q<V.length;Q++)if(r.gb.equals(s,V[Q]))return!0;return!1},between:(s,V)=>null==V||null==V[0]||null==V[1]||null!=s&&(s.getTime?V[0].getTime()<=s.getTime()&&s.getTime()<=V[1].getTime():V[0]<=s&&s<=V[1]),lt:(s,V,Q)=>null==V||null!=s&&(s.getTime&&V.getTime?s.getTime()<V.getTime():s<V),lte:(s,V,Q)=>null==V||null!=s&&(s.getTime&&V.getTime?s.getTime()<=V.getTime():s<=V),gt:(s,V,Q)=>null==V||null!=s&&(s.getTime&&V.getTime?s.getTime()>V.getTime():s>V),gte:(s,V,Q)=>null==V||null!=s&&(s.getTime&&V.getTime?s.getTime()>=V.getTime():s>=V),is:(s,V,Q)=>this.filters.equals(s,V,Q),isNot:(s,V,Q)=>this.filters.notEquals(s,V,Q),before:(s,V,Q)=>this.filters.lt(s,V,Q),after:(s,V,Q)=>this.filters.gt(s,V,Q),dateIs:(s,V)=>null==V||null!=s&&s.toDateString()===V.toDateString(),dateIsNot:(s,V)=>null==V||null!=s&&s.toDateString()!==V.toDateString(),dateBefore:(s,V)=>null==V||null!=s&&s.getTime()<V.getTime(),dateAfter:(s,V)=>null==V||null!=s&&s.getTime()>V.getTime()}}filter(s,V,Q,me,ue){let De=[];if(s)for(let Ue of s)for(let Xe of V){let st=r.gb.resolveFieldData(Ue,Xe);if(this.filters[me](st,Q,ue)){De.push(Ue);break}}return De}register(s,V){this.filters[s]=V}}return D.\u0275fac=function(s){return new(s||D)},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),g=(()=>{class D{constructor(){this.messageSource=new i.x,this.clearSource=new i.x,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(s){s&&this.messageSource.next(s)}addAll(s){s&&s.length&&this.messageSource.next(s)}clear(s){this.clearSource.next(s||null)}}return D.\u0275fac=function(s){return new(s||D)},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac}),D})(),f=(()=>{class D{constructor(){this.clickSource=new i.x,this.clickObservable=this.clickSource.asObservable()}add(s){s&&this.clickSource.next(s)}}return D.\u0275fac=function(s){return new(s||D)},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),h=(()=>{class D{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[_.STARTS_WITH,_.CONTAINS,_.NOT_CONTAINS,_.ENDS_WITH,_.EQUALS,_.NOT_EQUALS],numeric:[_.EQUALS,_.NOT_EQUALS,_.LESS_THAN,_.LESS_THAN_OR_EQUAL_TO,_.GREATER_THAN,_.GREATER_THAN_OR_EQUAL_TO],date:[_.DATE_IS,_.DATE_IS_NOT,_.DATE_BEFORE,_.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new i.x,this.translationObserver=this.translationSource.asObservable()}getTranslation(s){return this.translation[s]}setTranslation(s){this.translation={...this.translation,...s},this.translationSource.next(this.translation)}}return D.\u0275fac=function(s){return new(s||D)},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),T=(()=>{class D{}return D.\u0275fac=function(s){return new(s||D)},D.\u0275cmp=t.Xpm({type:D,selectors:[["p-header"]],ngContentSelectors:M,decls:1,vars:0,template:function(s,V){1&s&&(t.F$t(),t.Hsn(0))},encapsulation:2}),D})(),b=(()=>{class D{}return D.\u0275fac=function(s){return new(s||D)},D.\u0275cmp=t.Xpm({type:D,selectors:[["p-footer"]],ngContentSelectors:M,decls:1,vars:0,template:function(s,V){1&s&&(t.F$t(),t.Hsn(0))},encapsulation:2}),D})(),P=(()=>{class D{constructor(s){this.template=s}getType(){return this.name}}return D.\u0275fac=function(s){return new(s||D)(t.Y36(t.Rgc))},D.\u0275dir=t.lG2({type:D,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),D})(),W=(()=>{class D{}return D.\u0275fac=function(s){return new(s||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[L.ez]}),D})(),I=(()=>{class D{}return D.STARTS_WITH="startsWith",D.CONTAINS="contains",D.NOT_CONTAINS="notContains",D.ENDS_WITH="endsWith",D.EQUALS="equals",D.NOT_EQUALS="notEquals",D.NO_FILTER="noFilter",D.LT="lt",D.LTE="lte",D.GT="gt",D.GTE="gte",D.IS="is",D.IS_NOT="isNot",D.BEFORE="before",D.AFTER="after",D.CLEAR="clear",D.APPLY="apply",D.MATCH_ALL="matchAll",D.MATCH_ANY="matchAny",D.ADD_RULE="addRule",D.REMOVE_RULE="removeRule",D.ACCEPT="accept",D.REJECT="reject",D.CHOOSE="choose",D.UPLOAD="upload",D.CANCEL="cancel",D.DAY_NAMES="dayNames",D.DAY_NAMES_SHORT="dayNamesShort",D.DAY_NAMES_MIN="dayNamesMin",D.MONTH_NAMES="monthNames",D.MONTH_NAMES_SHORT="monthNamesShort",D.FIRST_DAY_OF_WEEK="firstDayOfWeek",D.TODAY="today",D.WEEK_HEADER="weekHeader",D.WEAK="weak",D.MEDIUM="medium",D.STRONG="strong",D.PASSWORD_PROMPT="passwordPrompt",D.EMPTY_MESSAGE="emptyMessage",D.EMPTY_FILTER_MESSAGE="emptyFilterMessage",D})()},174:(qe,re,l)=>{"use strict";l.d(re,{E:()=>M,P:()=>L});var t=l(4666),i=l(2560),r=l(1420);let L=(()=>{class v{constructor(u){this.host=u,this.focused=!1}ngAfterViewChecked(){if(!this.focused&&this.autofocus){const u=r.p.getFocusableElements(this.host.nativeElement);0===u.length&&this.host.nativeElement.focus(),u.length>0&&u[0].focus(),this.focused=!0}}}return v.\u0275fac=function(u){return new(u||v)(i.Y36(i.SBq))},v.\u0275dir=i.lG2({type:v,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}}),v})(),M=(()=>{class v{}return v.\u0275fac=function(u){return new(u||v)},v.\u0275mod=i.oAB({type:v}),v.\u0275inj=i.cJS({imports:[t.ez]}),v})()},6328:(qe,re,l)=>{"use strict";l.d(re,{Hq:()=>d,hJ:()=>T});var t=l(4666),i=l(2560),r=l(1420),L=l(4538),M=l(8549);const f={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let d=(()=>{class b{constructor(W,I){this.el=W,this.document=I,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1,this._internalClasses=Object.values(f)}get label(){return this._label}set label(W){this._label=W,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(W){this._icon=W,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(W){this._loading=W,this.initialized&&(this.updateIcon(),this.setStyleClass())}get htmlElement(){return this.el.nativeElement}ngAfterViewInit(){r.p.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const W=[f.button,f.component];return this.icon&&!this.label&&M.gb.isEmpty(this.htmlElement.textContent)&&W.push(f.iconOnly),this.loading&&(W.push(f.disabled,f.loading),!this.icon&&this.label&&W.push(f.labelOnly)),W}setStyleClass(){const W=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...W)}createLabel(){if(this.label){let W=this.document.createElement("span");this.icon&&!this.label&&W.setAttribute("aria-hidden","true"),W.className="p-button-label",W.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(W)}}createIcon(){if(this.icon||this.loading){let W=this.document.createElement("span");W.className="p-button-icon",W.setAttribute("aria-hidden","true");let I=this.label?"p-button-icon-"+this.iconPos:null;I&&r.p.addClass(W,I);let k=this.getIconClass();k&&r.p.addMultipleClasses(W,k),this.htmlElement.insertBefore(W,this.htmlElement.firstChild)}}updateLabel(){let W=r.p.findSingle(this.htmlElement,".p-button-label");this.label?W?W.textContent=this.label:this.createLabel():W&&this.htmlElement.removeChild(W)}updateIcon(){let W=r.p.findSingle(this.htmlElement,".p-button-icon");this.icon||this.loading?W?W.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():W&&this.htmlElement.removeChild(W)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return b.\u0275fac=function(W){return new(W||b)(i.Y36(i.SBq),i.Y36(t.K0))},b.\u0275dir=i.lG2({type:b,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),b})(),T=(()=>{class b{}return b.\u0275fac=function(W){return new(W||b)},b.\u0275mod=i.oAB({type:b}),b.\u0275inj=i.cJS({imports:[t.ez,L.T]}),b})()},2547:(qe,re,l)=>{"use strict";l.d(re,{_8:()=>Ln,f:()=>En});var t=l(4851),i=l(4666),r=l(2560),L=l(6803),M=l(4356),v=l(6328),y=l(1420),u=l(4538),_=l(8549);const p=["container"],C=["inputfield"],g=["contentWrapper"];function f(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"i",8),r.NdJ("click",function(){r.CHM($);const Ee=r.oxw(2);return r.KtG(Ee.clear())}),r.qZA()}}function d(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"button",9),r.NdJ("click",function(Ee){r.CHM($),r.oxw();const Ge=r.MAs(1),Zt=r.oxw();return r.KtG(Zt.onButtonClick(Ee,Ge))}),r.qZA()}if(2&dt){const $=r.oxw(2);r.Q6J("icon",$.icon)("disabled",$.disabled),r.uIk("aria-label",$.iconAriaLabel)}}function h(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"input",4,5),r.NdJ("focus",function(Ee){r.CHM($);const Ge=r.oxw();return r.KtG(Ge.onInputFocus(Ee))})("keydown",function(Ee){r.CHM($);const Ge=r.oxw();return r.KtG(Ge.onInputKeydown(Ee))})("click",function(){r.CHM($);const Ee=r.oxw();return r.KtG(Ee.onInputClick())})("blur",function(Ee){r.CHM($);const Ge=r.oxw();return r.KtG(Ge.onInputBlur(Ee))})("input",function(Ee){r.CHM($);const Ge=r.oxw();return r.KtG(Ge.onUserInput(Ee))}),r.qZA(),r.YNc(2,f,1,0,"i",6),r.YNc(3,d,1,3,"button",7)}if(2&dt){const $=r.oxw();r.Tol($.inputStyleClass),r.Q6J("value",$.inputFieldValue)("readonly",$.readonlyInput)("ngStyle",$.inputStyle)("placeholder",$.placeholder||"")("disabled",$.disabled)("ngClass","p-inputtext p-component"),r.uIk("id",$.inputId)("name",$.name)("required",$.required)("aria-required",$.required)("tabindex",$.tabindex)("inputmode",$.touchUI?"off":null)("aria-labelledby",$.ariaLabelledBy),r.xp6(2),r.Q6J("ngIf",$.showClear&&!$.disabled&&null!=$.value),r.xp6(1),r.Q6J("ngIf",$.showIcon)}}function T(dt,Ot){1&dt&&r.GkF(0)}function b(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"button",30),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(4);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("click",function(Ee){r.CHM($);const Ge=r.oxw(4);return r.KtG(Ge.onPrevButtonClick(Ee))}),r._UZ(1,"span",31),r.qZA()}}function P(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"button",32),r.NdJ("click",function(Ee){r.CHM($);const Ge=r.oxw(4);return r.KtG(Ge.switchToMonthView(Ee))})("keydown",function(Ee){r.CHM($);const Ge=r.oxw(4);return r.KtG(Ge.onContainerButtonKeydown(Ee))}),r._uU(1),r.qZA()}if(2&dt){const $=r.oxw().$implicit,pe=r.oxw(3);r.Q6J("disabled",pe.switchViewButtonDisabled()),r.xp6(1),r.hij(" ",pe.getMonthName($.month)," ")}}function W(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"button",33),r.NdJ("click",function(Ee){r.CHM($);const Ge=r.oxw(4);return r.KtG(Ge.switchToYearView(Ee))})("keydown",function(Ee){r.CHM($);const Ge=r.oxw(4);return r.KtG(Ge.onContainerButtonKeydown(Ee))}),r._uU(1),r.qZA()}if(2&dt){const $=r.oxw().$implicit,pe=r.oxw(3);r.Q6J("disabled",pe.switchViewButtonDisabled()),r.xp6(1),r.hij(" ",pe.getYear($)," ")}}function I(dt,Ot){if(1&dt&&(r.ynx(0),r._uU(1),r.BQk()),2&dt){const $=r.oxw(5);r.xp6(1),r.AsE("",$.yearPickerValues()[0]," - ",$.yearPickerValues()[$.yearPickerValues().length-1],"")}}function k(dt,Ot){1&dt&&r.GkF(0)}const D=function(dt){return{$implicit:dt}};function N(dt,Ot){if(1&dt&&(r.TgZ(0,"span",34),r.YNc(1,I,2,2,"ng-container",13),r.YNc(2,k,1,0,"ng-container",35),r.qZA()),2&dt){const $=r.oxw(4);r.xp6(1),r.Q6J("ngIf",!$.decadeTemplate),r.xp6(1),r.Q6J("ngTemplateOutlet",$.decadeTemplate)("ngTemplateOutletContext",r.VKq(3,D,$.yearPickerValues))}}function s(dt,Ot){if(1&dt&&(r.TgZ(0,"th",41)(1,"span"),r._uU(2),r.qZA()()),2&dt){const $=r.oxw(5);r.xp6(2),r.Oqu($.getTranslation("weekHeader"))}}function V(dt,Ot){if(1&dt&&(r.TgZ(0,"th",42)(1,"span"),r._uU(2),r.qZA()()),2&dt){const $=Ot.$implicit;r.xp6(2),r.Oqu($)}}function Q(dt,Ot){if(1&dt&&(r.TgZ(0,"td",45)(1,"span",46),r._uU(2),r.qZA()()),2&dt){const $=r.oxw().index,pe=r.oxw(2).$implicit;r.xp6(2),r.hij(" ",pe.weekNumbers[$]," ")}}function me(dt,Ot){if(1&dt&&(r.ynx(0),r._uU(1),r.BQk()),2&dt){const $=r.oxw(2).$implicit;r.xp6(1),r.Oqu($.day)}}function ue(dt,Ot){1&dt&&r.GkF(0)}const De=function(dt,Ot){return{"p-highlight":dt,"p-disabled":Ot}};function Ue(dt,Ot){if(1&dt){const $=r.EpF();r.ynx(0),r.TgZ(1,"span",48),r.NdJ("click",function(Ee){r.CHM($);const Ge=r.oxw().$implicit,Zt=r.oxw(6);return r.KtG(Zt.onDateSelect(Ee,Ge))})("keydown",function(Ee){r.CHM($);const Ge=r.oxw().$implicit,Zt=r.oxw(3).index,tn=r.oxw(3);return r.KtG(tn.onDateCellKeydown(Ee,Ge,Zt))}),r.YNc(2,me,2,1,"ng-container",13),r.YNc(3,ue,1,0,"ng-container",35),r.qZA(),r.BQk()}if(2&dt){const $=r.oxw().$implicit,pe=r.oxw(6);r.xp6(1),r.Q6J("ngClass",r.WLB(4,De,pe.isSelected($),!$.selectable)),r.xp6(1),r.Q6J("ngIf",!pe.dateTemplate),r.xp6(1),r.Q6J("ngTemplateOutlet",pe.dateTemplate)("ngTemplateOutletContext",r.VKq(7,D,$))}}const Xe=function(dt,Ot){return{"p-datepicker-other-month":dt,"p-datepicker-today":Ot}};function st(dt,Ot){if(1&dt&&(r.TgZ(0,"td",47),r.YNc(1,Ue,4,9,"ng-container",13),r.qZA()),2&dt){const $=Ot.$implicit,pe=r.oxw(6);r.Q6J("ngClass",r.WLB(2,Xe,$.otherMonth,$.today)),r.xp6(1),r.Q6J("ngIf",!$.otherMonth||pe.showOtherMonths)}}function ze(dt,Ot){if(1&dt&&(r.TgZ(0,"tr"),r.YNc(1,Q,3,1,"td",43),r.YNc(2,st,2,5,"td",44),r.qZA()),2&dt){const $=Ot.$implicit,pe=r.oxw(5);r.xp6(1),r.Q6J("ngIf",pe.showWeek),r.xp6(1),r.Q6J("ngForOf",$)}}function F(dt,Ot){if(1&dt&&(r.TgZ(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),r.YNc(4,s,3,1,"th",38),r.YNc(5,V,3,1,"th",39),r.qZA()(),r.TgZ(6,"tbody"),r.YNc(7,ze,3,2,"tr",40),r.qZA()()()),2&dt){const $=r.oxw().$implicit,pe=r.oxw(3);r.xp6(4),r.Q6J("ngIf",pe.showWeek),r.xp6(1),r.Q6J("ngForOf",pe.weekDays),r.xp6(2),r.Q6J("ngForOf",$.dates)}}function Re(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"div",20)(1,"div",21),r.YNc(2,b,2,0,"button",22),r.TgZ(3,"div",23),r.YNc(4,P,2,2,"button",24),r.YNc(5,W,2,2,"button",25),r.YNc(6,N,3,5,"span",26),r.qZA(),r.TgZ(7,"button",27),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("click",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onNextButtonClick(Ee))}),r._UZ(8,"span",28),r.qZA()(),r.YNc(9,F,8,3,"div",29),r.qZA()}if(2&dt){const $=Ot.index,pe=r.oxw(3);r.xp6(2),r.Q6J("ngIf",0===$),r.xp6(2),r.Q6J("ngIf","date"===pe.currentView),r.xp6(1),r.Q6J("ngIf","year"!==pe.currentView),r.xp6(1),r.Q6J("ngIf","year"===pe.currentView),r.xp6(1),r.Udp("display",1===pe.numberOfMonths||$===pe.numberOfMonths-1?"inline-flex":"none"),r.xp6(2),r.Q6J("ngIf","date"===pe.currentView)}}function de(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"span",51),r.NdJ("click",function(Ee){const Zt=r.CHM($).index,tn=r.oxw(4);return r.KtG(tn.onMonthSelect(Ee,Zt))})("keydown",function(Ee){const Zt=r.CHM($).index,tn=r.oxw(4);return r.KtG(tn.onMonthCellKeydown(Ee,Zt))}),r._uU(1),r.qZA()}if(2&dt){const $=Ot.$implicit,pe=Ot.index,Ee=r.oxw(4);r.Q6J("ngClass",r.WLB(2,De,Ee.isMonthSelected(pe),Ee.isMonthDisabled(pe))),r.xp6(1),r.hij(" ",$," ")}}function Ce(dt,Ot){if(1&dt&&(r.TgZ(0,"div",49),r.YNc(1,de,2,5,"span",50),r.qZA()),2&dt){const $=r.oxw(3);r.xp6(1),r.Q6J("ngForOf",$.monthPickerValues())}}const oe=function(dt){return{"p-highlight":dt}};function G(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"span",54),r.NdJ("click",function(Ee){const Zt=r.CHM($).$implicit,tn=r.oxw(4);return r.KtG(tn.onYearSelect(Ee,Zt))})("keydown",function(Ee){const Zt=r.CHM($).$implicit,tn=r.oxw(4);return r.KtG(tn.onYearCellKeydown(Ee,Zt))}),r._uU(1),r.qZA()}if(2&dt){const $=Ot.$implicit,pe=r.oxw(4);r.Q6J("ngClass",r.VKq(2,oe,pe.isYearSelected($))),r.xp6(1),r.hij(" ",$," ")}}function ye(dt,Ot){if(1&dt&&(r.TgZ(0,"div",52),r.YNc(1,G,2,4,"span",53),r.qZA()),2&dt){const $=r.oxw(3);r.xp6(1),r.Q6J("ngForOf",$.yearPickerValues())}}function we(dt,Ot){if(1&dt&&(r.ynx(0),r.TgZ(1,"div",16),r.YNc(2,Re,10,7,"div",17),r.qZA(),r.YNc(3,Ce,2,1,"div",18),r.YNc(4,ye,2,1,"div",19),r.BQk()),2&dt){const $=r.oxw(2);r.xp6(2),r.Q6J("ngForOf",$.months),r.xp6(1),r.Q6J("ngIf","month"===$.currentView),r.xp6(1),r.Q6J("ngIf","year"===$.currentView)}}function Fe(dt,Ot){1&dt&&(r.ynx(0),r._uU(1,"0"),r.BQk())}function lt(dt,Ot){1&dt&&(r.ynx(0),r._uU(1,"0"),r.BQk())}function Pt(dt,Ot){if(1&dt&&(r.TgZ(0,"div",60)(1,"span"),r._uU(2),r.qZA()()),2&dt){const $=r.oxw(3);r.xp6(2),r.Oqu($.timeSeparator)}}function wt(dt,Ot){1&dt&&(r.ynx(0),r._uU(1,"0"),r.BQk())}function Bt(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"div",65)(1,"button",57),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("keydown.enter",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.incrementSecond(Ee))})("keydown.space",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.incrementSecond(Ee))})("mousedown",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onTimePickerElementMouseDown(Ee,2,1))})("mouseup",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.enter",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.space",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("mouseleave",function(){r.CHM($);const Ee=r.oxw(3);return r.KtG(Ee.onTimePickerElementMouseLeave())}),r._UZ(2,"span",58),r.qZA(),r.TgZ(3,"span"),r.YNc(4,wt,2,0,"ng-container",13),r._uU(5),r.qZA(),r.TgZ(6,"button",57),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("keydown.enter",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.decrementSecond(Ee))})("keydown.space",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.decrementSecond(Ee))})("mousedown",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onTimePickerElementMouseDown(Ee,2,-1))})("mouseup",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.enter",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.space",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("mouseleave",function(){r.CHM($);const Ee=r.oxw(3);return r.KtG(Ee.onTimePickerElementMouseLeave())}),r._UZ(7,"span",59),r.qZA()()}if(2&dt){const $=r.oxw(3);r.xp6(4),r.Q6J("ngIf",$.currentSecond<10),r.xp6(1),r.Oqu($.currentSecond)}}function nn(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"div",66)(1,"button",67),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("click",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.toggleAMPM(Ee))})("keydown.enter",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.toggleAMPM(Ee))}),r._UZ(2,"span",58),r.qZA(),r.TgZ(3,"span"),r._uU(4),r.qZA(),r.TgZ(5,"button",67),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("click",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.toggleAMPM(Ee))})("keydown.enter",function(Ee){r.CHM($);const Ge=r.oxw(3);return r.KtG(Ge.toggleAMPM(Ee))}),r._UZ(6,"span",59),r.qZA()()}if(2&dt){const $=r.oxw(3);r.xp6(4),r.Oqu($.pm?"PM":"AM")}}function xt(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"div",55)(1,"div",56)(2,"button",57),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("keydown.enter",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.incrementHour(Ee))})("keydown.space",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.incrementHour(Ee))})("mousedown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseDown(Ee,0,1))})("mouseup",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.enter",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.space",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("mouseleave",function(){r.CHM($);const Ee=r.oxw(2);return r.KtG(Ee.onTimePickerElementMouseLeave())}),r._UZ(3,"span",58),r.qZA(),r.TgZ(4,"span"),r.YNc(5,Fe,2,0,"ng-container",13),r._uU(6),r.qZA(),r.TgZ(7,"button",57),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("keydown.enter",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.decrementHour(Ee))})("keydown.space",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.decrementHour(Ee))})("mousedown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseDown(Ee,0,-1))})("mouseup",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.enter",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.space",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("mouseleave",function(){r.CHM($);const Ee=r.oxw(2);return r.KtG(Ee.onTimePickerElementMouseLeave())}),r._UZ(8,"span",59),r.qZA()(),r.TgZ(9,"div",60)(10,"span"),r._uU(11),r.qZA()(),r.TgZ(12,"div",61)(13,"button",57),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("keydown.enter",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.incrementMinute(Ee))})("keydown.space",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.incrementMinute(Ee))})("mousedown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseDown(Ee,1,1))})("mouseup",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.enter",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.space",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("mouseleave",function(){r.CHM($);const Ee=r.oxw(2);return r.KtG(Ee.onTimePickerElementMouseLeave())}),r._UZ(14,"span",58),r.qZA(),r.TgZ(15,"span"),r.YNc(16,lt,2,0,"ng-container",13),r._uU(17),r.qZA(),r.TgZ(18,"button",57),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("keydown.enter",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.decrementMinute(Ee))})("keydown.space",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.decrementMinute(Ee))})("mousedown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseDown(Ee,1,-1))})("mouseup",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.enter",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("keyup.space",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTimePickerElementMouseUp(Ee))})("mouseleave",function(){r.CHM($);const Ee=r.oxw(2);return r.KtG(Ee.onTimePickerElementMouseLeave())}),r._UZ(19,"span",59),r.qZA()(),r.YNc(20,Pt,3,1,"div",62),r.YNc(21,Bt,8,2,"div",63),r.YNc(22,nn,7,1,"div",64),r.qZA()}if(2&dt){const $=r.oxw(2);r.xp6(5),r.Q6J("ngIf",$.currentHour<10),r.xp6(1),r.Oqu($.currentHour),r.xp6(5),r.Oqu($.timeSeparator),r.xp6(5),r.Q6J("ngIf",$.currentMinute<10),r.xp6(1),r.Oqu($.currentMinute),r.xp6(3),r.Q6J("ngIf",$.showSeconds),r.xp6(1),r.Q6J("ngIf",$.showSeconds),r.xp6(1),r.Q6J("ngIf","12"==$.hourFormat)}}const sn=function(dt){return[dt]};function ct(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"div",68)(1,"button",69),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("click",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onTodayButtonClick(Ee))}),r.qZA(),r.TgZ(2,"button",69),r.NdJ("keydown",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onContainerButtonKeydown(Ee))})("click",function(Ee){r.CHM($);const Ge=r.oxw(2);return r.KtG(Ge.onClearButtonClick(Ee))}),r.qZA()()}if(2&dt){const $=r.oxw(2);r.xp6(1),r.Q6J("label",$.getTranslation("today"))("ngClass",r.VKq(4,sn,$.todayButtonStyleClass)),r.xp6(1),r.Q6J("label",$.getTranslation("clear"))("ngClass",r.VKq(6,sn,$.clearButtonStyleClass))}}function Ve(dt,Ot){1&dt&&r.GkF(0)}const rt=function(dt,Ot,$,pe,Ee,Ge){return{"p-datepicker p-component":!0,"p-datepicker-inline":dt,"p-disabled":Ot,"p-datepicker-timeonly":$,"p-datepicker-multiple-month":pe,"p-datepicker-monthpicker":Ee,"p-datepicker-touch-ui":Ge}},Et=function(dt,Ot){return{showTransitionParams:dt,hideTransitionParams:Ot}},Ft=function(dt){return{value:"visibleTouchUI",params:dt}},yt=function(dt){return{value:"visible",params:dt}};function un(dt,Ot){if(1&dt){const $=r.EpF();r.TgZ(0,"div",10,11),r.NdJ("@overlayAnimation.start",function(Ee){r.CHM($);const Ge=r.oxw();return r.KtG(Ge.onOverlayAnimationStart(Ee))})("@overlayAnimation.done",function(Ee){r.CHM($);const Ge=r.oxw();return r.KtG(Ge.onOverlayAnimationDone(Ee))})("click",function(Ee){r.CHM($);const Ge=r.oxw();return r.KtG(Ge.onOverlayClick(Ee))}),r.Hsn(2),r.YNc(3,T,1,0,"ng-container",12),r.YNc(4,we,5,3,"ng-container",13),r.YNc(5,xt,23,8,"div",14),r.YNc(6,ct,3,8,"div",15),r.Hsn(7,1),r.YNc(8,Ve,1,0,"ng-container",12),r.qZA()}if(2&dt){const $=r.oxw();r.Tol($.panelStyleClass),r.Q6J("ngStyle",$.panelStyle)("ngClass",r.HTZ(11,rt,$.inline,$.disabled,$.timeOnly,$.numberOfMonths>1,"month"===$.view,$.touchUI))("@overlayAnimation",$.touchUI?r.VKq(21,Ft,r.WLB(18,Et,$.showTransitionOptions,$.hideTransitionOptions)):r.VKq(26,yt,r.WLB(23,Et,$.showTransitionOptions,$.hideTransitionOptions)))("@.disabled",!0===$.inline),r.xp6(3),r.Q6J("ngTemplateOutlet",$.headerTemplate),r.xp6(1),r.Q6J("ngIf",!$.timeOnly),r.xp6(1),r.Q6J("ngIf",($.showTime||$.timeOnly)&&"date"===$.currentView),r.xp6(1),r.Q6J("ngIf",$.showButtonBar),r.xp6(2),r.Q6J("ngTemplateOutlet",$.footerTemplate)}}const bt=[[["p-header"]],[["p-footer"]]],Jt=function(dt,Ot,$,pe){return{"p-calendar":!0,"p-calendar-w-btn":dt,"p-calendar-timeonly":Ot,"p-calendar-disabled":$,"p-focus":pe}},en=["p-header","p-footer"],mn={provide:L.JU,useExisting:(0,r.Gpc)(()=>En),multi:!0};let En=(()=>{class dt{constructor($,pe,Ee,Ge,Zt,tn,on){this.document=$,this.el=pe,this.renderer=Ee,this.cd=Ge,this.zone=Zt,this.config=tn,this.overlayService=on,this.multipleSeparator=",",this.rangeSeparator="-",this.inline=!1,this.showOtherMonths=!0,this.icon="pi pi-calendar",this.shortYearCutoff="+10",this.hourFormat="24",this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.showOnFocus=!0,this.showWeek=!1,this.showClear=!1,this.dataType="date",this.selectionMode="single",this.todayButtonStyleClass="p-button-text",this.clearButtonStyleClass="p-button-text",this.autoZIndex=!0,this.baseZIndex=0,this.keepInvalid=!1,this.hideOnDateTimeSelect=!0,this.timeSeparator=":",this.focusTrap=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onFocus=new r.vpe,this.onBlur=new r.vpe,this.onClose=new r.vpe,this.onSelect=new r.vpe,this.onClear=new r.vpe,this.onInput=new r.vpe,this.onTodayClick=new r.vpe,this.onClearClick=new r.vpe,this.onMonthChange=new r.vpe,this.onYearChange=new r.vpe,this.onClickOutside=new r.vpe,this.onShow=new r.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(Un,vn){return"12"==this.hourFormat?12===Un?vn?12:0:vn?Un+12:Un:Un},this.window=this.document.defaultView}set content($){this.contentViewChild=$,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}get view(){return this._view}set view($){this._view=$,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate($){if(this._defaultDate=$,this.initialized){const pe=$||new Date;this.currentMonth=pe.getMonth(),this.currentYear=pe.getFullYear(),this.initTime(pe),this.createMonths(this.currentMonth,this.currentYear)}}get minDate(){return this._minDate}set minDate($){this._minDate=$,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate($){this._maxDate=$,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates($){this._disabledDates=$,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays($){this._disabledDays=$,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange($){if(this._yearRange=$,$){const pe=$.split(":"),Ee=parseInt(pe[0]),Ge=parseInt(pe[1]);this.populateYearOptions(Ee,Ge)}}get showTime(){return this._showTime}set showTime($){this._showTime=$,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get locale(){return this._locale}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions($){this._responsiveOptions=$,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths($){this._numberOfMonths=$,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek($){this._firstDayOfWeek=$,this.createWeekDays()}set locale($){console.warn("Locale property has no effect, use new i18n API instead.")}ngOnInit(){this.attributeSelector=(0,_.Th)();const $=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=$.getMonth(),this.currentYear=$.getFullYear(),this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime($),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach($=>{switch($.getType()){case"date":default:this.dateTemplate=$.template;break;case"decade":this.decadeTemplate=$.template;break;case"disabledDate":this.disabledDateTemplate=$.template;break;case"header":this.headerTemplate=$.template;break;case"footer":this.footerTemplate=$.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=y.p.getOuterWidth(this.containerViewChild.nativeElement)+"px")))}getTranslation($){return this.config.getTranslation($)}populateYearOptions($,pe){this.yearOptions=[];for(let Ee=$;Ee<=pe;Ee++)this.yearOptions.push(Ee)}createWeekDays(){this.weekDays=[];let $=this.getFirstDateOfWeek(),pe=this.getTranslation(M.ws.DAY_NAMES_MIN);for(let Ee=0;Ee<7;Ee++)this.weekDays.push(pe[$]),$=6==$?0:++$}monthPickerValues(){let $=[];for(let pe=0;pe<=11;pe++)$.push(this.config.getTranslation("monthNamesShort")[pe]);return $}yearPickerValues(){let $=[],pe=this.currentYear-this.currentYear%10;for(let Ee=0;Ee<10;Ee++)$.push(pe+Ee);return $}createMonths($,pe){this.months=this.months=[];for(let Ee=0;Ee<this.numberOfMonths;Ee++){let Ge=$+Ee,Zt=pe;Ge>11&&(Ge=Ge%11-1,Zt=pe+1),this.months.push(this.createMonth(Ge,Zt))}}getWeekNumber($){let pe=new Date($.getTime());pe.setDate(pe.getDate()+4-(pe.getDay()||7));let Ee=pe.getTime();return pe.setMonth(0),pe.setDate(1),Math.floor(Math.round((Ee-pe.getTime())/864e5)/7)+1}createMonth($,pe){let Ee=[],Ge=this.getFirstDayOfMonthIndex($,pe),Zt=this.getDaysCountInMonth($,pe),tn=this.getDaysCountInPrevMonth($,pe),on=1,Un=new Date,vn=[],zt=Math.ceil((Zt+Ge)/7);for(let Ht=0;Ht<zt;Ht++){let pt=[];if(0==Ht){for(let ot=tn-Ge+1;ot<=tn;ot++){let Be=this.getPreviousMonthAndYear($,pe);pt.push({day:ot,month:Be.month,year:Be.year,otherMonth:!0,today:this.isToday(Un,ot,Be.month,Be.year),selectable:this.isSelectable(ot,Be.month,Be.year,!0)})}let Dt=7-pt.length;for(let ot=0;ot<Dt;ot++)pt.push({day:on,month:$,year:pe,today:this.isToday(Un,on,$,pe),selectable:this.isSelectable(on,$,pe,!1)}),on++}else for(let Dt=0;Dt<7;Dt++){if(on>Zt){let ot=this.getNextMonthAndYear($,pe);pt.push({day:on-Zt,month:ot.month,year:ot.year,otherMonth:!0,today:this.isToday(Un,on-Zt,ot.month,ot.year),selectable:this.isSelectable(on-Zt,ot.month,ot.year,!0)})}else pt.push({day:on,month:$,year:pe,today:this.isToday(Un,on,$,pe),selectable:this.isSelectable(on,$,pe,!1)});on++}this.showWeek&&vn.push(this.getWeekNumber(new Date(pt[0].year,pt[0].month,pt[0].day))),Ee.push(pt)}return{month:$,year:pe,dates:Ee,weekNumbers:vn}}initTime($){this.pm=$.getHours()>11,this.showTime?(this.currentMinute=$.getMinutes(),this.currentSecond=$.getSeconds(),this.setCurrentHourPM($.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward($){this.disabled?$.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward($){this.disabled?$.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){if(this.currentYear--,this.yearNavigator&&this.currentYear<this.yearOptions[0]){let $=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]-$,this.yearOptions[this.yearOptions.length-1]-$)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){if(this.currentYear++,this.yearNavigator&&this.currentYear>this.yearOptions[this.yearOptions.length-1]){let $=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]+$,this.yearOptions[this.yearOptions.length-1]+$)}}switchToMonthView($){this.setCurrentView("month"),$.preventDefault()}switchToYearView($){this.setCurrentView("year"),$.preventDefault()}onDateSelect($,pe){!this.disabled&&pe.selectable?(this.isMultipleSelection()&&this.isSelected(pe)?(this.value=this.value.filter((Ee,Ge)=>!this.isDateEquals(Ee,pe)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(pe)&&this.selectDate(pe),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{$.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),$.preventDefault()):$.preventDefault()}shouldSelectDate($){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect($,pe){"month"===this.view?this.onDateSelect($,{year:this.currentYear,month:pe,day:1,selectable:!0}):(this.currentMonth=pe,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect($,pe){"year"===this.view?this.onDateSelect($,{year:pe,month:0,day:1,selectable:!0}):(this.currentYear=pe,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let $="";if(this.value)if(this.isSingleSelection())$=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let pe=0;pe<this.value.length;pe++)$+=this.formatDateTime(this.value[pe]),pe!==this.value.length-1&&($+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let Ee=this.value[1];$=this.formatDateTime(this.value[0]),Ee&&($+=" "+this.rangeSeparator+" "+this.formatDateTime(Ee))}this.inputFieldValue=$,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime($){let pe=this.keepInvalid?$:null;return this.isValidDate($)&&(this.timeOnly?pe=this.formatTime($):(pe=this.formatDate($,this.getDateFormat()),this.showTime&&(pe+=" "+this.formatTime($)))),pe}setCurrentHourPM($){"12"==this.hourFormat?(this.pm=$>11,this.currentHour=$>=12?12==$?12:$-12:0==$?12:$):this.currentHour=$}setCurrentView($){this.currentView=$,this.cd.detectChanges(),this.alignOverlay()}selectDate($){let pe=new Date($.year,$.month,$.day);if(this.showTime&&(pe.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),pe.setMinutes(this.currentMinute),pe.setSeconds(this.currentSecond)),this.minDate&&this.minDate>pe&&(pe=this.minDate,this.setCurrentHourPM(pe.getHours()),this.currentMinute=pe.getMinutes(),this.currentSecond=pe.getSeconds()),this.maxDate&&this.maxDate<pe&&(pe=this.maxDate,this.setCurrentHourPM(pe.getHours()),this.currentMinute=pe.getMinutes(),this.currentSecond=pe.getSeconds()),this.isSingleSelection())this.updateModel(pe);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,pe]:[pe]);else if(this.isRangeSelection())if(this.value&&this.value.length){let Ee=this.value[0],Ge=this.value[1];!Ge&&pe.getTime()>=Ee.getTime()?Ge=pe:(Ee=pe,Ge=null),this.updateModel([Ee,Ge])}else this.updateModel([pe,null]);this.onSelect.emit(pe)}updateModel($){if(this.value=$,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let pe=null;this.value&&(pe=this.value.map(Ee=>this.formatDateTime(Ee))),this.onModelChange(pe)}}getFirstDayOfMonthIndex($,pe){let Ee=new Date;Ee.setDate(1),Ee.setMonth($),Ee.setFullYear(pe);let Ge=Ee.getDay()+this.getSundayIndex();return Ge>=7?Ge-7:Ge}getDaysCountInMonth($,pe){return 32-this.daylightSavingAdjust(new Date(pe,$,32)).getDate()}getDaysCountInPrevMonth($,pe){let Ee=this.getPreviousMonthAndYear($,pe);return this.getDaysCountInMonth(Ee.month,Ee.year)}getPreviousMonthAndYear($,pe){let Ee,Ge;return 0===$?(Ee=11,Ge=pe-1):(Ee=$-1,Ge=pe),{month:Ee,year:Ge}}getNextMonthAndYear($,pe){let Ee,Ge;return 11===$?(Ee=0,Ge=pe+1):(Ee=$+1,Ge=pe),{month:Ee,year:Ge}}getSundayIndex(){let $=this.getFirstDateOfWeek();return $>0?7-$:0}isSelected($){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,$);if(this.isMultipleSelection()){let pe=!1;for(let Ee of this.value)if(pe=this.isDateEquals(Ee,$),pe)break;return pe}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],$)||this.isDateEquals(this.value[1],$)||this.isDateBetween(this.value[0],this.value[1],$):this.isDateEquals(this.value[0],$):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected($){if(this.isComparable()&&!this.isMultipleSelection()){const[pe,Ee]=this.isRangeSelection()?this.value:[this.value,this.value],Ge=new Date(this.currentYear,$,1);return Ge>=pe&&Ge<=(Ee??pe)}return!1}isMonthDisabled($){for(let pe=1;pe<this.getDaysCountInMonth($,this.currentYear)+1;pe++)if(this.isSelectable(pe,$,this.currentYear,!1))return!1;return!0}isYearSelected($){if(this.isComparable()){let pe=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&pe.getFullYear()===$}return!1}isDateEquals($,pe){return!(!$||!_.gb.isDate($))&&$.getDate()===pe.day&&$.getMonth()===pe.month&&$.getFullYear()===pe.year}isDateBetween($,pe,Ee){if($&&pe){let Zt=new Date(Ee.year,Ee.month,Ee.day);return $.getTime()<=Zt.getTime()&&pe.getTime()>=Zt.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday($,pe,Ee,Ge){return $.getDate()===pe&&$.getMonth()===Ee&&$.getFullYear()===Ge}isSelectable($,pe,Ee,Ge){let Zt=!0,tn=!0,on=!0,Un=!0;return!(Ge&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>Ee||this.minDate.getFullYear()===Ee&&(this.minDate.getMonth()>pe||this.minDate.getMonth()===pe&&this.minDate.getDate()>$))&&(Zt=!1),this.maxDate&&(this.maxDate.getFullYear()<Ee||this.maxDate.getFullYear()===Ee&&(this.maxDate.getMonth()<pe||this.maxDate.getMonth()===pe&&this.maxDate.getDate()<$))&&(tn=!1),this.disabledDates&&(on=!this.isDateDisabled($,pe,Ee)),this.disabledDays&&(Un=!this.isDayDisabled($,pe,Ee)),Zt&&tn&&on&&Un)}isDateDisabled($,pe,Ee){if(this.disabledDates)for(let Ge of this.disabledDates)if(Ge.getFullYear()===Ee&&Ge.getMonth()===pe&&Ge.getDate()===$)return!0;return!1}isDayDisabled($,pe,Ee){if(this.disabledDays){let Zt=new Date(Ee,pe,$).getDay();return-1!==this.disabledDays.indexOf(Zt)}return!1}onInputFocus($){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit($)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur($){this.focus=!1,this.onBlur.emit($),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick($,pe){this.overlayVisible?this.hideOverlay():(pe.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick($){this.overlayService.add({originalEvent:$,target:this.el.nativeElement})}getMonthName($){return this.config.getTranslation("monthNames")[$]}getYear($){return"month"===this.currentView?this.currentYear:$.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick($){this.navigationState={backward:!0,button:!0},this.navBackward($)}onNextButtonClick($){this.navigationState={backward:!1,button:!0},this.navForward($)}onContainerButtonKeydown($){switch($.which){case 9:this.inline||this.trapFocus($);break;case 27:this.overlayVisible=!1,$.preventDefault()}}onInputKeydown($){this.isKeydown=!0,40===$.keyCode&&this.contentViewChild?this.trapFocus($):27===$.keyCode||13===$.keyCode?this.overlayVisible&&(this.overlayVisible=!1,$.preventDefault()):9===$.keyCode&&this.contentViewChild&&(y.p.getFocusableElements(this.contentViewChild.nativeElement).forEach(pe=>pe.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown($,pe,Ee){const Ge=$.currentTarget,Zt=Ge.parentElement;switch($.which){case 40:{Ge.tabIndex="-1";let tn=y.p.index(Zt),on=Zt.parentElement.nextElementSibling;on?y.p.hasClass(on.children[tn].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward($)):(on.children[tn].children[0].tabIndex="0",on.children[tn].children[0].focus()):(this.navigationState={backward:!1},this.navForward($)),$.preventDefault();break}case 38:{Ge.tabIndex="-1";let tn=y.p.index(Zt),on=Zt.parentElement.previousElementSibling;if(on){let Un=on.children[tn].children[0];y.p.hasClass(Un,"p-disabled")?(this.navigationState={backward:!0},this.navBackward($)):(Un.tabIndex="0",Un.focus())}else this.navigationState={backward:!0},this.navBackward($);$.preventDefault();break}case 37:{Ge.tabIndex="-1";let tn=Zt.previousElementSibling;if(tn){let on=tn.children[0];y.p.hasClass(on,"p-disabled")||y.p.hasClass(on.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,Ee):(on.tabIndex="0",on.focus())}else this.navigateToMonth(!0,Ee);$.preventDefault();break}case 39:{Ge.tabIndex="-1";let tn=Zt.nextElementSibling;if(tn){let on=tn.children[0];y.p.hasClass(on,"p-disabled")?this.navigateToMonth(!1,Ee):(on.tabIndex="0",on.focus())}else this.navigateToMonth(!1,Ee);$.preventDefault();break}case 13:case 32:this.onDateSelect($,pe),$.preventDefault();break;case 27:this.overlayVisible=!1,$.preventDefault();break;case 9:this.inline||this.trapFocus($)}}onMonthCellKeydown($,pe){const Ee=$.currentTarget;switch($.which){case 38:case 40:{Ee.tabIndex="-1";var Ge=Ee.parentElement.children,Zt=y.p.index(Ee);let tn=Ge[40===$.which?Zt+3:Zt-3];tn&&(tn.tabIndex="0",tn.focus()),$.preventDefault();break}case 37:{Ee.tabIndex="-1";let tn=Ee.previousElementSibling;tn?(tn.tabIndex="0",tn.focus()):(this.navigationState={backward:!0},this.navBackward($)),$.preventDefault();break}case 39:{Ee.tabIndex="-1";let tn=Ee.nextElementSibling;tn?(tn.tabIndex="0",tn.focus()):(this.navigationState={backward:!1},this.navForward($)),$.preventDefault();break}case 13:this.onMonthSelect($,pe),$.preventDefault();break;case 13:case 32:case 27:this.overlayVisible=!1,$.preventDefault();break;case 9:this.inline||this.trapFocus($)}}onYearCellKeydown($,pe){const Ee=$.currentTarget;switch($.which){case 38:case 40:{Ee.tabIndex="-1";var Ge=Ee.parentElement.children,Zt=y.p.index(Ee);let tn=Ge[40===$.which?Zt+2:Zt-2];tn&&(tn.tabIndex="0",tn.focus()),$.preventDefault();break}case 37:{Ee.tabIndex="-1";let tn=Ee.previousElementSibling;tn?(tn.tabIndex="0",tn.focus()):(this.navigationState={backward:!0},this.navBackward($)),$.preventDefault();break}case 39:{Ee.tabIndex="-1";let tn=Ee.nextElementSibling;tn?(tn.tabIndex="0",tn.focus()):(this.navigationState={backward:!1},this.navForward($)),$.preventDefault();break}case 13:case 32:this.onYearSelect($,pe),$.preventDefault();break;case 27:this.overlayVisible=!1,$.preventDefault();break;case 9:this.trapFocus($)}}navigateToMonth($,pe){if($)if(1===this.numberOfMonths||0===pe)this.navigationState={backward:!0},this.navBackward(event);else{let Ge=y.p.find(this.contentViewChild.nativeElement.children[pe-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),Zt=Ge[Ge.length-1];Zt.tabIndex="0",Zt.focus()}else if(1===this.numberOfMonths||pe===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let Ge=y.p.findSingle(this.contentViewChild.nativeElement.children[pe+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");Ge.tabIndex="0",Ge.focus()}}updateFocus(){let $;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?y.p.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():y.p.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let pe;pe=y.p.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),pe&&pe.length>0&&($=pe[pe.length-1])}else $=y.p.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");$&&($.tabIndex="0",$.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const $=this.contentViewChild?.nativeElement;let pe;if("month"===this.currentView){let Ee=y.p.find($,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),Ge=y.p.findSingle($,".p-monthpicker .p-monthpicker-month.p-highlight");Ee.forEach(Zt=>Zt.tabIndex=-1),pe=Ge||Ee[0],0===Ee.length&&y.p.find($,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(tn=>tn.tabIndex=-1)}else if("year"===this.currentView){let Ee=y.p.find($,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),Ge=y.p.findSingle($,".p-yearpicker .p-yearpicker-year.p-highlight");Ee.forEach(Zt=>Zt.tabIndex=-1),pe=Ge||Ee[0],0===Ee.length&&y.p.find($,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(tn=>tn.tabIndex=-1)}else if(pe=y.p.findSingle($,"span.p-highlight"),!pe){let Ee=y.p.findSingle($,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");pe=Ee||y.p.findSingle($,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}pe&&(pe.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||pe.focus()},1),this.preventFocus=!1)}trapFocus($){let pe=y.p.getFocusableElements(this.contentViewChild.nativeElement);if(pe&&pe.length>0)if(pe[0].ownerDocument.activeElement){let Ee=pe.indexOf(pe[0].ownerDocument.activeElement);if($.shiftKey)if(-1==Ee||0===Ee)if(this.focusTrap)pe[pe.length-1].focus();else{if(-1===Ee)return this.hideOverlay();if(0===Ee)return}else pe[Ee-1].focus();else if(-1==Ee||Ee===pe.length-1){if(!this.focusTrap&&-1!=Ee)return this.hideOverlay();pe[0].focus()}else pe[Ee+1].focus()}else pe[0].focus();$.preventDefault()}onMonthDropdownChange($){this.currentMonth=parseInt($),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange($){this.currentYear=parseInt($),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}validateTime($,pe,Ee,Ge){let Zt=this.value;const tn=this.convertTo24Hour($,Ge);this.isRangeSelection()&&(Zt=this.value[1]||this.value[0]),this.isMultipleSelection()&&(Zt=this.value[this.value.length-1]);const on=Zt?Zt.toDateString():null;return!(this.minDate&&on&&this.minDate.toDateString()===on&&(this.minDate.getHours()>tn||this.minDate.getHours()===tn&&(this.minDate.getMinutes()>pe||this.minDate.getMinutes()===pe&&this.minDate.getSeconds()>Ee))||this.maxDate&&on&&this.maxDate.toDateString()===on&&(this.maxDate.getHours()<tn||this.maxDate.getHours()===tn&&(this.maxDate.getMinutes()<pe||this.maxDate.getMinutes()===pe&&this.maxDate.getSeconds()<Ee)))}incrementHour($){let Ee=this.currentHour+this.stepHour,Ge=this.pm;"24"==this.hourFormat?Ee=Ee>=24?Ee-24:Ee:"12"==this.hourFormat&&(this.currentHour<12&&Ee>11&&(Ge=!this.pm),Ee=Ee>=13?Ee-12:Ee),this.validateTime(Ee,this.currentMinute,this.currentSecond,Ge)&&(this.currentHour=Ee,this.pm=Ge),$.preventDefault()}onTimePickerElementMouseDown($,pe,Ee){this.disabled||(this.repeat($,null,pe,Ee),$.preventDefault())}onTimePickerElementMouseUp($){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat($,pe,Ee,Ge){let Zt=pe||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat($,100,Ee,Ge),this.cd.markForCheck()},Zt),Ee){case 0:1===Ge?this.incrementHour($):this.decrementHour($);break;case 1:1===Ge?this.incrementMinute($):this.decrementMinute($);break;case 2:1===Ge?this.incrementSecond($):this.decrementSecond($)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour($){let pe=this.currentHour-this.stepHour,Ee=this.pm;"24"==this.hourFormat?pe=pe<0?24+pe:pe:"12"==this.hourFormat&&(12===this.currentHour&&(Ee=!this.pm),pe=pe<=0?12+pe:pe),this.validateTime(pe,this.currentMinute,this.currentSecond,Ee)&&(this.currentHour=pe,this.pm=Ee),$.preventDefault()}incrementMinute($){let pe=this.currentMinute+this.stepMinute;pe=pe>59?pe-60:pe,this.validateTime(this.currentHour,pe,this.currentSecond,this.pm)&&(this.currentMinute=pe),$.preventDefault()}decrementMinute($){let pe=this.currentMinute-this.stepMinute;pe=pe<0?60+pe:pe,this.validateTime(this.currentHour,pe,this.currentSecond,this.pm)&&(this.currentMinute=pe),$.preventDefault()}incrementSecond($){let pe=this.currentSecond+this.stepSecond;pe=pe>59?pe-60:pe,this.validateTime(this.currentHour,this.currentMinute,pe,this.pm)&&(this.currentSecond=pe),$.preventDefault()}decrementSecond($){let pe=this.currentSecond-this.stepSecond;pe=pe<0?60+pe:pe,this.validateTime(this.currentHour,this.currentMinute,pe,this.pm)&&(this.currentSecond=pe),$.preventDefault()}updateTime(){let $=this.value;this.isRangeSelection()&&($=this.value[1]||this.value[0]),this.isMultipleSelection()&&($=this.value[this.value.length-1]),$=$?new Date($.getTime()):new Date,$.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),$.setMinutes(this.currentMinute),$.setSeconds(this.currentSecond),this.isRangeSelection()&&($=this.value[1]?[this.value[0],$]:[$,null]),this.isMultipleSelection()&&($=[...this.value.slice(0,-1),$]),this.updateModel($),this.onSelect.emit($),this.updateInputfield()}toggleAMPM($){const pe=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,pe)&&(this.pm=pe,this.updateTime()),$.preventDefault()}onUserInput($){if(!this.isKeydown)return;this.isKeydown=!1;let pe=$.target.value;try{let Ee=this.parseValueFromString(pe);this.isValidSelection(Ee)&&(this.updateModel(Ee),this.updateUI())}catch{this.updateModel(this.keepInvalid?pe:null)}this.filled=null!=pe&&pe.length,this.onInput.emit($)}isValidSelection($){let pe=!0;return this.isSingleSelection()?this.isSelectable($.getDate(),$.getMonth(),$.getFullYear(),!1)||(pe=!1):$.every(Ee=>this.isSelectable(Ee.getDate(),Ee.getMonth(),Ee.getFullYear(),!1))&&this.isRangeSelection()&&(pe=$.length>1&&$[1]>$[0]),pe}parseValueFromString($){if(!$||0===$.trim().length)return null;let pe;if(this.isSingleSelection())pe=this.parseDateTime($);else if(this.isMultipleSelection()){let Ee=$.split(this.multipleSeparator);pe=[];for(let Ge of Ee)pe.push(this.parseDateTime(Ge.trim()))}else if(this.isRangeSelection()){let Ee=$.split(" "+this.rangeSeparator+" ");pe=[];for(let Ge=0;Ge<Ee.length;Ge++)pe[Ge]=this.parseDateTime(Ee[Ge].trim())}return pe}parseDateTime($){let pe,Ee=$.split(" ");if(this.timeOnly)pe=new Date,this.populateTime(pe,Ee[0],Ee[1]);else{const Ge=this.getDateFormat();if(this.showTime){let Zt="12"==this.hourFormat?Ee.pop():null,tn=Ee.pop();pe=this.parseDate(Ee.join(" "),Ge),this.populateTime(pe,tn,Zt)}else pe=this.parseDate($,Ge)}return pe}populateTime($,pe,Ee){if("12"==this.hourFormat&&!Ee)throw"Invalid Time";this.pm="PM"===Ee||"pm"===Ee;let Ge=this.parseTime(pe);$.setHours(Ge.hour),$.setMinutes(Ge.minute),$.setSeconds(Ge.second)}isValidDate($){return _.gb.isDate($)&&_.gb.isNotEmpty($)}updateUI(){let $=this.value;Array.isArray($)&&($=$[0]);let pe=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:$&&this.isValidDate($)?$:new Date;this.currentMonth=pe.getMonth(),this.currentYear=pe.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(pe.getHours()),this.currentMinute=pe.getMinutes(),this.currentSecond=pe.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild.nativeElement.focus()))}onOverlayAnimationStart($){switch($.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=$.element,this.overlay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?_.P9.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):_.P9.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit($));break;case"void":this.onOverlayHide(),this.onClose.emit($)}}onOverlayAnimationDone($){switch($.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&_.P9.clear($.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.document.body.appendChild(this.overlay):y.p.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width=y.p.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=y.p.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=y.p.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",y.p.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):y.p.relativePosition(this.overlay,this.inputfieldViewChild.nativeElement))}enableModality($){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt($.style.zIndex)-1)),y.p.addMultipleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",Ee=>{this.disableModality()}),this.renderer.appendChild(this.document.body,this.mask),y.p.addClass(this.document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(y.p.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let pe,$=this.document.body.children;for(let Ee=0;Ee<$.length;Ee++)if(y.p.hasClass($[Ee],"p-datepicker-mask-scrollblocker")){pe=!0;break}pe||y.p.removeClass(this.document.body,"p-overflow-hidden"),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}writeValue($){if(this.value=$,this.value&&"string"==typeof this.value)try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=$)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange($){this.onModelChange=$}registerOnTouched($){this.onModelTouched=$}setDisabledState($){this.disabled=$,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(M.ws.FIRST_DAY_OF_WEEK)}formatDate($,pe){if(!$)return"";let Ee;const Ge=vn=>{const zt=Ee+1<pe.length&&pe.charAt(Ee+1)===vn;return zt&&Ee++,zt},Zt=(vn,zt,Ht)=>{let pt=""+zt;if(Ge(vn))for(;pt.length<Ht;)pt="0"+pt;return pt},tn=(vn,zt,Ht,pt)=>Ge(vn)?pt[zt]:Ht[zt];let on="",Un=!1;if($)for(Ee=0;Ee<pe.length;Ee++)if(Un)"'"!==pe.charAt(Ee)||Ge("'")?on+=pe.charAt(Ee):Un=!1;else switch(pe.charAt(Ee)){case"d":on+=Zt("d",$.getDate(),2);break;case"D":on+=tn("D",$.getDay(),this.getTranslation(M.ws.DAY_NAMES_SHORT),this.getTranslation(M.ws.DAY_NAMES));break;case"o":on+=Zt("o",Math.round((new Date($.getFullYear(),$.getMonth(),$.getDate()).getTime()-new Date($.getFullYear(),0,0).getTime())/864e5),3);break;case"m":on+=Zt("m",$.getMonth()+1,2);break;case"M":on+=tn("M",$.getMonth(),this.getTranslation(M.ws.MONTH_NAMES_SHORT),this.getTranslation(M.ws.MONTH_NAMES));break;case"y":on+=Ge("y")?$.getFullYear():($.getFullYear()%100<10?"0":"")+$.getFullYear()%100;break;case"@":on+=$.getTime();break;case"!":on+=1e4*$.getTime()+this.ticksTo1970;break;case"'":Ge("'")?on+="'":Un=!0;break;default:on+=pe.charAt(Ee)}return on}formatTime($){if(!$)return"";let pe="",Ee=$.getHours(),Ge=$.getMinutes(),Zt=$.getSeconds();return"12"==this.hourFormat&&Ee>11&&12!=Ee&&(Ee-=12),pe+="12"==this.hourFormat&&0===Ee?12:Ee<10?"0"+Ee:Ee,pe+=":",pe+=Ge<10?"0"+Ge:Ge,this.showSeconds&&(pe+=":",pe+=Zt<10?"0"+Zt:Zt),"12"==this.hourFormat&&(pe+=$.getHours()>11?" PM":" AM"),pe}parseTime($){let pe=$.split(":");if(pe.length!==(this.showSeconds?3:2))throw"Invalid time";let Ge=parseInt(pe[0]),Zt=parseInt(pe[1]),tn=this.showSeconds?parseInt(pe[2]):null;if(isNaN(Ge)||isNaN(Zt)||Ge>23||Zt>59||"12"==this.hourFormat&&Ge>12||this.showSeconds&&(isNaN(tn)||tn>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==Ge&&this.pm?Ge+=12:!this.pm&&12===Ge&&(Ge-=12)),{hour:Ge,minute:Zt,second:tn}}parseDate($,pe){if(null==pe||null==$)throw"Invalid arguments";if(""===($="object"==typeof $?$.toString():$+""))return null;let Ee,Ge,Zt,Dt,tn=0,on="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),Un=-1,vn=-1,zt=-1,Ht=-1,pt=!1,ot=Ut=>{let gn=Ee+1<pe.length&&pe.charAt(Ee+1)===Ut;return gn&&Ee++,gn},Be=Ut=>{let gn=ot(Ut),Mn="@"===Ut?14:"!"===Ut?20:"y"===Ut&&gn?4:"o"===Ut?3:2,Rn=new RegExp("^\\d{"+("y"===Ut?Mn:1)+","+Mn+"}"),Fn=$.substring(tn).match(Rn);if(!Fn)throw"Missing number at position "+tn;return tn+=Fn[0].length,parseInt(Fn[0],10)},at=(Ut,gn,Mn)=>{let kn=-1,Rn=ot(Ut)?Mn:gn,Fn=[];for(let ut=0;ut<Rn.length;ut++)Fn.push([ut,Rn[ut]]);Fn.sort((ut,Je)=>-(ut[1].length-Je[1].length));for(let ut=0;ut<Fn.length;ut++){let Je=Fn[ut][1];if($.substr(tn,Je.length).toLowerCase()===Je.toLowerCase()){kn=Fn[ut][0],tn+=Je.length;break}}if(-1!==kn)return kn+1;throw"Unknown name at position "+tn},Gt=()=>{if($.charAt(tn)!==pe.charAt(Ee))throw"Unexpected literal at position "+tn;tn++};for("month"===this.view&&(zt=1),Ee=0;Ee<pe.length;Ee++)if(pt)"'"!==pe.charAt(Ee)||ot("'")?Gt():pt=!1;else switch(pe.charAt(Ee)){case"d":zt=Be("d");break;case"D":at("D",this.getTranslation(M.ws.DAY_NAMES_SHORT),this.getTranslation(M.ws.DAY_NAMES));break;case"o":Ht=Be("o");break;case"m":vn=Be("m");break;case"M":vn=at("M",this.getTranslation(M.ws.MONTH_NAMES_SHORT),this.getTranslation(M.ws.MONTH_NAMES));break;case"y":Un=Be("y");break;case"@":Dt=new Date(Be("@")),Un=Dt.getFullYear(),vn=Dt.getMonth()+1,zt=Dt.getDate();break;case"!":Dt=new Date((Be("!")-this.ticksTo1970)/1e4),Un=Dt.getFullYear(),vn=Dt.getMonth()+1,zt=Dt.getDate();break;case"'":ot("'")?Gt():pt=!0;break;default:Gt()}if(tn<$.length&&(Zt=$.substr(tn),!/^\s+/.test(Zt)))throw"Extra/unparsed characters found in date: "+Zt;if(-1===Un?Un=(new Date).getFullYear():Un<100&&(Un+=(new Date).getFullYear()-(new Date).getFullYear()%100+(Un<=on?0:-100)),Ht>-1)for(vn=1,zt=Ht;Ge=this.getDaysCountInMonth(Un,vn-1),!(zt<=Ge);)vn++,zt-=Ge;if("year"===this.view&&(vn=-1===vn?1:vn,zt=-1===zt?1:zt),Dt=this.daylightSavingAdjust(new Date(Un,vn-1,zt)),Dt.getFullYear()!==Un||Dt.getMonth()+1!==vn||Dt.getDate()!==zt)throw"Invalid date";return Dt}daylightSavingAdjust($){return $?($.setHours($.getHours()>12?$.getHours()+2:0),$):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick($){let pe=new Date,Ee={day:pe.getDate(),month:pe.getMonth(),year:pe.getFullYear(),otherMonth:pe.getMonth()!==this.currentMonth||pe.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect($,Ee),this.onTodayClick.emit($)}onClearButtonClick($){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit($)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let $="";if(this.responsiveOptions){let pe=[...this.responsiveOptions].filter(Ee=>!(!Ee.breakpoint||!Ee.numMonths)).sort((Ee,Ge)=>-1*Ee.breakpoint.localeCompare(Ge.breakpoint,void 0,{numeric:!0}));for(let Ee=0;Ee<pe.length;Ee++){let{breakpoint:Ge,numMonths:Zt}=pe[Ee],tn=`\n                        .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${Zt}) .p-datepicker-next {\n                            display: inline-flex !important;\n                        }\n                    `;for(let on=Zt;on<this.numberOfMonths;on++)tn+=`\n                            .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${on+1}) {\n                                display: none !important;\n                            }\n                        `;$+=`\n                        @media screen and (max-width: ${Ge}) {\n                            ${tn}\n                        }\n                    `}}this.responsiveStyleElement.innerHTML=$}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",pe=>{this.isOutsideClicked(pe)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(pe),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new y.V(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked($){return!(this.el.nativeElement.isSameNode($.target)||this.isNavIconClicked($)||this.el.nativeElement.contains($.target)||this.overlay&&this.overlay.contains($.target))}isNavIconClicked($){return y.p.hasClass($.target,"p-datepicker-prev")||y.p.hasClass($.target,"p-datepicker-prev-icon")||y.p.hasClass($.target,"p-datepicker-next")||y.p.hasClass($.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!y.p.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&_.P9.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return dt.\u0275fac=function($){return new($||dt)(r.Y36(i.K0),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(M.b4),r.Y36(M.F0))},dt.\u0275cmp=r.Xpm({type:dt,selectors:[["p-calendar"]],contentQueries:function($,pe,Ee){if(1&$&&r.Suo(Ee,M.jx,4),2&$){let Ge;r.iGM(Ge=r.CRH())&&(pe.templates=Ge)}},viewQuery:function($,pe){if(1&$&&(r.Gf(p,5),r.Gf(C,5),r.Gf(g,5)),2&$){let Ee;r.iGM(Ee=r.CRH())&&(pe.containerViewChild=Ee.first),r.iGM(Ee=r.CRH())&&(pe.inputfieldViewChild=Ee.first),r.iGM(Ee=r.CRH())&&(pe.content=Ee.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function($,pe){2&$&&r.ekj("p-inputwrapper-filled",pe.filled)("p-inputwrapper-focus",pe.focus)("p-calendar-clearable",pe.showClear&&!pe.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",view:"view",defaultDate:"defaultDate",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[r._Bn([mn])],ngContentSelectors:en,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],["class","p-calendar-clear-icon pi pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calendar-clear-icon","pi","pi-times",3,"click"],["type","button","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger",3,"icon","disabled","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[1,"p-datepicker-next-icon","pi","pi-chevron-right"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],[1,"p-datepicker-prev-icon","pi","pi-chevron-left"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],[3,"ngClass"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"pi","pi-chevron-up"],[1,"pi","pi-chevron-down"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function($,pe){1&$&&(r.F$t(bt),r.TgZ(0,"span",0,1),r.YNc(2,h,4,17,"ng-template",2),r.YNc(3,un,9,28,"div",3),r.qZA()),2&$&&(r.Tol(pe.styleClass),r.Q6J("ngClass",r.l5B(6,Jt,pe.showIcon,pe.timeOnly,pe.disabled,pe.focus))("ngStyle",pe.style),r.xp6(2),r.Q6J("ngIf",!pe.inline),r.xp6(1),r.Q6J("ngIf",pe.inline||pe.overlayVisible))},dependencies:[i.mk,i.sg,i.O5,i.tP,i.PC,v.Hq,u.H],styles:[".p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[(0,t.X$)("overlayAnimation",[(0,t.SB)("visibleTouchUI",(0,t.oB)({transform:"translate(-50%,-50%)",opacity:1})),(0,t.eR)("void => visible",[(0,t.oB)({opacity:0,transform:"scaleY(0.8)"}),(0,t.jt)("{{showTransitionParams}}",(0,t.oB)({opacity:1,transform:"*"}))]),(0,t.eR)("visible => void",[(0,t.jt)("{{hideTransitionParams}}",(0,t.oB)({opacity:0}))]),(0,t.eR)("void => visibleTouchUI",[(0,t.oB)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),(0,t.jt)("{{showTransitionParams}}")]),(0,t.eR)("visibleTouchUI => void",[(0,t.jt)("{{hideTransitionParams}}",(0,t.oB)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0}),dt})(),Ln=(()=>{class dt{}return dt.\u0275fac=function($){return new($||dt)},dt.\u0275mod=r.oAB({type:dt}),dt.\u0275inj=r.cJS({imports:[i.ez,v.hJ,M.m8,u.T,v.hJ,M.m8]}),dt})()},1518:(qe,re,l)=>{"use strict";l.d(re,{N:()=>L,U:()=>r});var t=l(2560),i=l(4666);let r=(()=>{class M{constructor(y,u,_){this.el=y,this._zone=u,this.cd=_,this.siteKey=null,this.theme="light",this.type="image",this.size="normal",this.tabindex=0,this.initCallback="initRecaptcha",this.onResponse=new t.vpe,this.onExpire=new t.vpe,this._instance=null,this._language=null}get language(){return this._language}set language(y){this._language=y,this.init()}ngAfterViewInit(){window.grecaptcha?window.grecaptcha.render?this.init():setTimeout(()=>{this.init()},100):window[this.initCallback]=()=>{this.init()}}init(){this._instance=window.grecaptcha.render(this.el.nativeElement.children[0],{sitekey:this.siteKey,theme:this.theme,type:this.type,size:this.size,tabindex:this.tabindex,hl:this.language,callback:y=>{this._zone.run(()=>this.recaptchaCallback(y))},"expired-callback":()=>{this._zone.run(()=>this.recaptchaExpiredCallback())}})}reset(){null!==this._instance&&(window.grecaptcha.reset(this._instance),this.cd.markForCheck())}getResponse(){return null===this._instance?null:window.grecaptcha.getResponse(this._instance)}recaptchaCallback(y){this.onResponse.emit({response:y})}recaptchaExpiredCallback(){this.onExpire.emit()}ngOnDestroy(){null!=this._instance&&window.grecaptcha.reset(this._instance)}}return M.\u0275fac=function(y){return new(y||M)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO))},M.\u0275cmp=t.Xpm({type:M,selectors:[["p-captcha"]],hostAttrs:[1,"p-element"],inputs:{siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabindex:"tabindex",initCallback:"initCallback",language:"language"},outputs:{onResponse:"onResponse",onExpire:"onExpire"},decls:1,vars:0,template:function(y,u){1&y&&t._UZ(0,"div")},encapsulation:2,changeDetection:0}),M})(),L=(()=>{class M{}return M.\u0275fac=function(y){return new(y||M)},M.\u0275mod=t.oAB({type:M}),M.\u0275inj=t.cJS({imports:[i.ez]}),M})()},4357:(qe,re,l)=>{"use strict";l.d(re,{Z:()=>h,d:()=>T});var t=l(2560),i=l(4666),r=l(4356);function L(b,P){1&b&&t.GkF(0)}function M(b,P){if(1&b&&(t.TgZ(0,"div",8),t.Hsn(1,1),t.YNc(2,L,1,0,"ng-container",6),t.qZA()),2&b){const W=t.oxw();t.xp6(2),t.Q6J("ngTemplateOutlet",W.headerTemplate)}}function v(b,P){1&b&&t.GkF(0)}function y(b,P){if(1&b&&(t.TgZ(0,"div",9),t._uU(1),t.YNc(2,v,1,0,"ng-container",6),t.qZA()),2&b){const W=t.oxw();t.xp6(1),t.hij(" ",W.header," "),t.xp6(1),t.Q6J("ngTemplateOutlet",W.titleTemplate)}}function u(b,P){1&b&&t.GkF(0)}function _(b,P){if(1&b&&(t.TgZ(0,"div",10),t._uU(1),t.YNc(2,u,1,0,"ng-container",6),t.qZA()),2&b){const W=t.oxw();t.xp6(1),t.hij(" ",W.subheader," "),t.xp6(1),t.Q6J("ngTemplateOutlet",W.subtitleTemplate)}}function p(b,P){1&b&&t.GkF(0)}function C(b,P){1&b&&t.GkF(0)}function g(b,P){if(1&b&&(t.TgZ(0,"div",11),t.Hsn(1,2),t.YNc(2,C,1,0,"ng-container",6),t.qZA()),2&b){const W=t.oxw();t.xp6(2),t.Q6J("ngTemplateOutlet",W.footerTemplate)}}const f=["*",[["p-header"]],[["p-footer"]]],d=["*","p-header","p-footer"];let h=(()=>{class b{constructor(W){this.el=W}ngAfterContentInit(){this.templates.forEach(W=>{switch(W.getType()){case"header":this.headerTemplate=W.template;break;case"title":this.titleTemplate=W.template;break;case"subtitle":this.subtitleTemplate=W.template;break;case"content":default:this.contentTemplate=W.template;break;case"footer":this.footerTemplate=W.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return b.\u0275fac=function(W){return new(W||b)(t.Y36(t.SBq))},b.\u0275cmp=t.Xpm({type:b,selectors:[["p-card"]],contentQueries:function(W,I,k){if(1&W&&(t.Suo(k,r.h4,5),t.Suo(k,r.$_,5),t.Suo(k,r.jx,4)),2&W){let D;t.iGM(D=t.CRH())&&(I.headerFacet=D.first),t.iGM(D=t.CRH())&&(I.footerFacet=D.first),t.iGM(D=t.CRH())&&(I.templates=D)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:d,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(W,I){1&W&&(t.F$t(f),t.TgZ(0,"div",0),t.YNc(1,M,3,1,"div",1),t.TgZ(2,"div",2),t.YNc(3,y,3,2,"div",3),t.YNc(4,_,3,2,"div",4),t.TgZ(5,"div",5),t.Hsn(6),t.YNc(7,p,1,0,"ng-container",6),t.qZA(),t.YNc(8,g,3,1,"div",7),t.qZA()()),2&W&&(t.Tol(I.styleClass),t.Q6J("ngClass","p-card p-component")("ngStyle",I.style),t.xp6(1),t.Q6J("ngIf",I.headerFacet||I.headerTemplate),t.xp6(2),t.Q6J("ngIf",I.header||I.titleTemplate),t.xp6(1),t.Q6J("ngIf",I.subheader||I.subtitleTemplate),t.xp6(3),t.Q6J("ngTemplateOutlet",I.contentTemplate),t.xp6(1),t.Q6J("ngIf",I.footerFacet||I.footerTemplate))},dependencies:[i.mk,i.O5,i.tP,i.PC],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),b})(),T=(()=>{class b{}return b.\u0275fac=function(W){return new(W||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[i.ez,r.m8]}),b})()},749:(qe,re,l)=>{"use strict";l.d(re,{XZ:()=>C,nD:()=>g});var t=l(4666),i=l(2560),r=l(6803),L=l(8549);const M=["cb"],v=function(f,d,h){return{"p-checkbox-label":!0,"p-checkbox-label-active":f,"p-disabled":d,"p-checkbox-label-focus":h}};function y(f,d){if(1&f){const h=i.EpF();i.TgZ(0,"label",7),i.NdJ("click",function(b){i.CHM(h);const P=i.oxw(),W=i.MAs(3);return i.KtG(P.onClick(b,W,!0))}),i._uU(1),i.qZA()}if(2&f){const h=i.oxw();i.Tol(h.labelStyleClass),i.Q6J("ngClass",i.kEZ(5,v,h.checked(),h.disabled,h.focused)),i.uIk("for",h.inputId),i.xp6(1),i.Oqu(h.label)}}const u=function(f,d,h){return{"p-checkbox p-component":!0,"p-checkbox-checked":f,"p-checkbox-disabled":d,"p-checkbox-focused":h}},_=function(f,d,h){return{"p-highlight":f,"p-disabled":d,"p-focus":h}},p={provide:r.JU,useExisting:(0,i.Gpc)(()=>C),multi:!0};let C=(()=>{class f{constructor(h){this.cd=h,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new i.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(h,T,b){h.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(h),b&&T.focus())}updateModel(h){let T;this.binary?(T=this.checked()?this.falseValue:this.trueValue,this.model=T,this.onModelChange(T)):(T=this.checked()?this.model.filter(b=>!L.gb.equals(b,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(T),this.model=T,this.formControl&&this.formControl.setValue(T)),this.onChange.emit({checked:T,originalEvent:h})}handleChange(h){this.readonly||this.updateModel(h)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(h){this.model=h,this.cd.markForCheck()}registerOnChange(h){this.onModelChange=h}registerOnTouched(h){this.onModelTouched=h}setDisabledState(h){this.disabled=h,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:L.gb.contains(this.value,this.model)}}return f.\u0275fac=function(h){return new(h||f)(i.Y36(i.sBO))},f.\u0275cmp=i.Xpm({type:f,selectors:[["p-checkbox"]],viewQuery:function(h,T){if(1&h&&i.Gf(M,5),2&h){let b;i.iGM(b=i.CRH())&&(T.inputViewChild=b.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[i._Bn([p])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(h,T){if(1&h){const b=i.EpF();i.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),i.NdJ("focus",function(){return T.onFocus()})("blur",function(){return T.onBlur()})("change",function(W){return T.handleChange(W)}),i.qZA()(),i.TgZ(4,"div",4),i.NdJ("click",function(W){i.CHM(b);const I=i.MAs(3);return i.KtG(T.onClick(W,I,!0))}),i._UZ(5,"span",5),i.qZA()(),i.YNc(6,y,2,9,"label",6)}2&h&&(i.Tol(T.styleClass),i.Q6J("ngStyle",T.style)("ngClass",i.kEZ(18,u,T.checked(),T.disabled,T.focused)),i.xp6(2),i.Q6J("readonly",T.readonly)("value",T.value)("checked",T.checked())("disabled",T.disabled),i.uIk("id",T.inputId)("name",T.name)("tabindex",T.tabindex)("aria-labelledby",T.ariaLabelledBy)("aria-label",T.ariaLabel)("aria-checked",T.checked())("required",T.required),i.xp6(2),i.Q6J("ngClass",i.kEZ(22,_,T.checked(),T.disabled,T.focused)),i.xp6(1),i.Q6J("ngClass",T.checked()?T.checkboxIcon:null),i.xp6(1),i.Q6J("ngIf",T.label))},dependencies:[t.mk,t.O5,t.PC],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),f})(),g=(()=>{class f{}return f.\u0275fac=function(h){return new(h||f)},f.\u0275mod=i.oAB({type:f}),f.\u0275inj=i.cJS({imports:[t.ez]}),f})()},9999:(qe,re,l)=>{"use strict";l.d(re,{V:()=>Re,S:()=>de});var t=l(2560),i=l(4851),r=l(4666),L=l(1420),M=l(4356);let v=(()=>{class Ce{constructor(G){this.el=G}onkeydown(G){if(!0!==this.pFocusTrapDisabled){G.preventDefault();const ye=L.p.getNextFocusableElement(this.el.nativeElement,G.shiftKey);ye&&(ye.focus(),ye.select?.())}}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(t.SBq))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(G,ye){1&G&&t.NdJ("keydown.tab",function(Fe){return ye.onkeydown(Fe)})("keydown.shift.tab",function(Fe){return ye.onkeydown(Fe)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),Ce})(),y=(()=>{class Ce{}return Ce.\u0275fac=function(G){return new(G||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({imports:[r.ez]}),Ce})();var u=l(4538),_=l(8549);const p=["titlebar"],C=["content"],g=["footer"];function f(Ce,oe){if(1&Ce){const G=t.EpF();t.TgZ(0,"div",11),t.NdJ("mousedown",function(we){t.CHM(G);const Fe=t.oxw(3);return t.KtG(Fe.initResize(we))}),t.qZA()}}function d(Ce,oe){if(1&Ce&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&Ce){const G=t.oxw(4);t.uIk("id",G.id+"-label"),t.xp6(1),t.Oqu(G.header)}}function h(Ce,oe){if(1&Ce&&(t.TgZ(0,"span",18),t.Hsn(1,1),t.qZA()),2&Ce){const G=t.oxw(4);t.uIk("id",G.id+"-label")}}function T(Ce,oe){1&Ce&&t.GkF(0)}const b=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function P(Ce,oe){if(1&Ce){const G=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(G);const we=t.oxw(4);return t.KtG(we.maximize())})("keydown.enter",function(){t.CHM(G);const we=t.oxw(4);return t.KtG(we.maximize())}),t._UZ(1,"span",20),t.qZA()}if(2&Ce){const G=t.oxw(4);t.Q6J("ngClass",t.DdM(2,b)),t.xp6(1),t.Q6J("ngClass",G.maximized?G.minimizeIcon:G.maximizeIcon)}}const W=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function I(Ce,oe){if(1&Ce){const G=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(we){t.CHM(G);const Fe=t.oxw(4);return t.KtG(Fe.close(we))})("keydown.enter",function(we){t.CHM(G);const Fe=t.oxw(4);return t.KtG(Fe.close(we))}),t._UZ(1,"span",22),t.qZA()}if(2&Ce){const G=t.oxw(4);t.Q6J("ngClass",t.DdM(4,W)),t.uIk("aria-label",G.closeAriaLabel)("tabindex",G.closeTabindex),t.xp6(1),t.Q6J("ngClass",G.closeIcon)}}function k(Ce,oe){if(1&Ce){const G=t.EpF();t.TgZ(0,"div",12,13),t.NdJ("mousedown",function(we){t.CHM(G);const Fe=t.oxw(3);return t.KtG(Fe.initDrag(we))}),t.YNc(2,d,2,2,"span",14),t.YNc(3,h,2,1,"span",14),t.YNc(4,T,1,0,"ng-container",9),t.TgZ(5,"div",15),t.YNc(6,P,2,3,"button",16),t.YNc(7,I,2,5,"button",17),t.qZA()()}if(2&Ce){const G=t.oxw(3);t.xp6(2),t.Q6J("ngIf",!G.headerFacet&&!G.headerTemplate),t.xp6(1),t.Q6J("ngIf",G.headerFacet),t.xp6(1),t.Q6J("ngTemplateOutlet",G.headerTemplate),t.xp6(2),t.Q6J("ngIf",G.maximizable),t.xp6(1),t.Q6J("ngIf",G.closable)}}function D(Ce,oe){1&Ce&&t.GkF(0)}function N(Ce,oe){1&Ce&&t.GkF(0)}function s(Ce,oe){if(1&Ce&&(t.TgZ(0,"div",23,24),t.Hsn(2,2),t.YNc(3,N,1,0,"ng-container",9),t.qZA()),2&Ce){const G=t.oxw(3);t.xp6(3),t.Q6J("ngTemplateOutlet",G.footerTemplate)}}const V=function(Ce,oe,G,ye){return{"p-dialog p-component":!0,"p-dialog-rtl":Ce,"p-dialog-draggable":oe,"p-dialog-resizable":G,"p-dialog-maximized":ye}},Q=function(Ce,oe){return{transform:Ce,transition:oe}},me=function(Ce){return{value:"visible",params:Ce}};function ue(Ce,oe){if(1&Ce){const G=t.EpF();t.TgZ(0,"div",3,4),t.NdJ("@animation.start",function(we){t.CHM(G);const Fe=t.oxw(2);return t.KtG(Fe.onAnimationStart(we))})("@animation.done",function(we){t.CHM(G);const Fe=t.oxw(2);return t.KtG(Fe.onAnimationEnd(we))}),t.YNc(2,f,1,0,"div",5),t.YNc(3,k,8,5,"div",6),t.TgZ(4,"div",7,8),t.Hsn(6),t.YNc(7,D,1,0,"ng-container",9),t.qZA(),t.YNc(8,s,4,1,"div",10),t.qZA()}if(2&Ce){const G=t.oxw(2);t.Tol(G.styleClass),t.Q6J("ngClass",t.l5B(15,V,G.rtl,G.draggable,G.resizable,G.maximized))("ngStyle",G.style)("pFocusTrapDisabled",!1===G.focusTrap)("@animation",t.VKq(23,me,t.WLB(20,Q,G.transformOptions,G.transitionOptions))),t.uIk("aria-labelledby",G.id+"-label"),t.xp6(2),t.Q6J("ngIf",G.resizable),t.xp6(1),t.Q6J("ngIf",G.showHeader),t.xp6(1),t.Tol(G.contentStyleClass),t.Q6J("ngClass","p-dialog-content")("ngStyle",G.contentStyle),t.xp6(3),t.Q6J("ngTemplateOutlet",G.contentTemplate),t.xp6(1),t.Q6J("ngIf",G.footerFacet||G.footerTemplate)}}const De=function(Ce,oe,G,ye,we,Fe,lt,Pt,wt,Bt){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":Ce,"p-dialog-mask-scrollblocker":oe,"p-dialog-left":G,"p-dialog-right":ye,"p-dialog-top":we,"p-dialog-top-left":Fe,"p-dialog-top-right":lt,"p-dialog-bottom":Pt,"p-dialog-bottom-left":wt,"p-dialog-bottom-right":Bt}};function Ue(Ce,oe){if(1&Ce&&(t.TgZ(0,"div",1),t.YNc(1,ue,9,25,"div",2),t.qZA()),2&Ce){const G=t.oxw();t.Tol(G.maskStyleClass),t.Q6J("ngClass",t.rFY(4,De,[G.modal,G.modal||G.blockScroll,"left"===G.position,"right"===G.position,"top"===G.position,"topleft"===G.position||"top-left"===G.position,"topright"===G.position||"top-right"===G.position,"bottom"===G.position,"bottomleft"===G.position||"bottom-left"===G.position,"bottomright"===G.position||"bottom-right"===G.position])),t.xp6(1),t.Q6J("ngIf",G.visible)}}const Xe=["*",[["p-header"]],[["p-footer"]]],st=["*","p-header","p-footer"],ze=(0,i.oQ)([(0,i.oB)({transform:"{{transform}}",opacity:0}),(0,i.jt)("{{transition}}")]),F=(0,i.oQ)([(0,i.jt)("{{transition}}",(0,i.oB)({transform:"{{transform}}",opacity:0}))]);let Re=(()=>{class Ce{constructor(G,ye,we,Fe,lt,Pt,wt){this.document=G,this.platformId=ye,this.el=we,this.renderer=Fe,this.zone=lt,this.cd=Pt,this.config=wt,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.closeTabindex="-1",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new t.vpe,this.onHide=new t.vpe,this.visibleChange=new t.vpe,this.onResizeInit=new t.vpe,this.onResizeEnd=new t.vpe,this.onDragEnd=new t.vpe,this.onMaximize=new t.vpe,this.id=(0,_.Th)(),this._style={},this._position="center",this.transformOptions="scale(0.7)",this.window=this.document.defaultView}get positionLeft(){return 0}set positionLeft(G){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(G){console.log("positionTop property is deprecated.")}get responsive(){return!1}set responsive(G){console.log("Responsive property is deprecated.")}get breakpoint(){return 649}set breakpoint(G){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}ngAfterContentInit(){this.templates.forEach(G=>{switch(G.getType()){case"header":this.headerTemplate=G.template;break;case"content":default:this.contentTemplate=G.template;break;case"footer":this.footerTemplate=G.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}get visible(){return this._visible}set visible(G){this._visible=G,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(G){G&&(this._style={...G},this.originalStyle=G)}get position(){return this._position}set position(G){switch(this._position=G,G){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}focus(){let G=L.p.findSingle(this.container,"[autofocus]");G&&this.zone.runOutsideAngular(()=>{setTimeout(()=>G.focus(),5)})}close(G){this.visibleChange.emit(!1),G.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",G=>{this.wrapper&&this.wrapper.isSameNode(G.target)&&this.close(G)})),this.modal&&L.p.addClass(this.document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&L.p.removeClass(this.document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?L.p.addClass(this.document.body,"p-overflow-hidden"):L.p.removeClass(this.document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(_.P9.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if((0,r.NF)(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let G="";for(let ye in this.breakpoints)G+=`\n                        @media screen and (max-width: ${ye}) {\n                            .p-dialog[${this.id}] {\n                                width: ${this.breakpoints[ye]} !important;\n                            }\n                        }\n                    `;this.renderer.setProperty(this.styleElement,"innerHTML",G)}}initDrag(G){L.p.hasClass(G.target,"p-dialog-header-icon")||L.p.hasClass(G.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=G.pageX,this.lastPageY=G.pageY,this.container.style.margin="0",L.p.addClass(this.document.body,"p-unselectable-text"))}onKeydown(G){if(this.focusTrap&&9===G.which){G.preventDefault();let ye=L.p.getFocusableElements(this.container);if(ye&&ye.length>0)if(ye[0].ownerDocument.activeElement){let we=ye.indexOf(ye[0].ownerDocument.activeElement);G.shiftKey?-1==we||0===we?ye[ye.length-1].focus():ye[we-1].focus():-1==we||we===ye.length-1?ye[0].focus():ye[we+1].focus()}else ye[0].focus()}}onDrag(G){if(this.dragging){let ye=L.p.getOuterWidth(this.container),we=L.p.getOuterHeight(this.container),Fe=G.pageX-this.lastPageX,lt=G.pageY-this.lastPageY,Pt=this.container.getBoundingClientRect(),wt=Pt.left+Fe,Bt=Pt.top+lt,nn=L.p.getViewport();this.container.style.position="fixed",this.keepInViewport?(wt>=this.minX&&wt+ye<nn.width&&(this._style.left=wt+"px",this.lastPageX=G.pageX,this.container.style.left=wt+"px"),Bt>=this.minY&&Bt+we<nn.height&&(this._style.top=Bt+"px",this.lastPageY=G.pageY,this.container.style.top=Bt+"px")):(this.lastPageX=G.pageX,this.container.style.left=wt+"px",this.lastPageY=G.pageY,this.container.style.top=Bt+"px")}}endDrag(G){this.dragging&&(this.dragging=!1,L.p.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(G))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(G){this.resizable&&(this.resizing=!0,this.lastPageX=G.pageX,this.lastPageY=G.pageY,L.p.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(G))}onResize(G){if(this.resizing){let ye=G.pageX-this.lastPageX,we=G.pageY-this.lastPageY,Fe=L.p.getOuterWidth(this.container),lt=L.p.getOuterHeight(this.container),Pt=L.p.getOuterHeight(this.contentViewChild.nativeElement),wt=Fe+ye,Bt=lt+we,nn=this.container.style.minWidth,xt=this.container.style.minHeight,sn=this.container.getBoundingClientRect(),ct=L.p.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(wt+=ye,Bt+=we),(!nn||wt>parseInt(nn))&&sn.left+wt<ct.width&&(this._style.width=wt+"px",this.container.style.width=this._style.width),(!xt||Bt>parseInt(xt))&&sn.top+Bt<ct.height&&(this.contentViewChild.nativeElement.style.height=Pt+Bt-lt+"px",this._style.height&&(this._style.height=Bt+"px",this.container.style.height=this._style.height)),this.lastPageX=G.pageX,this.lastPageY=G.pageY}}resizeEnd(G){this.resizing&&(this.resizing=!1,L.p.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(G))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",ye=>{27==ye.which&&this.close(ye)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):L.p.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(G){switch(G.toState){case"visible":this.container=G.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&L.p.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&L.p.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(G){switch(G.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(L.p.removeClass(this.document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&L.p.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&_.P9.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}}return Ce.\u0275fac=function(G){return new(G||Ce)(t.Y36(r.K0),t.Y36(t.Lbi),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(M.b4))},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["p-dialog"]],contentQueries:function(G,ye,we){if(1&G&&(t.Suo(we,M.h4,5),t.Suo(we,M.$_,5),t.Suo(we,M.jx,4)),2&G){let Fe;t.iGM(Fe=t.CRH())&&(ye.headerFacet=Fe.first),t.iGM(Fe=t.CRH())&&(ye.footerFacet=Fe.first),t.iGM(Fe=t.CRH())&&(ye.templates=Fe)}},viewQuery:function(G,ye){if(1&G&&(t.Gf(p,5),t.Gf(C,5),t.Gf(g,5)),2&G){let we;t.iGM(we=t.CRH())&&(ye.headerViewChild=we.first),t.iGM(we=t.CRH())&&(ye.contentViewChild=we.first),t.iGM(we=t.CRH())&&(ye.footerViewChild=we.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:st,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(G,ye){1&G&&(t.F$t(Xe),t.YNc(0,Ue,2,15,"div",0)),2&G&&t.Q6J("ngIf",ye.maskVisible)},dependencies:[r.mk,r.O5,r.tP,r.PC,v,u.H],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[(0,i.X$)("animation",[(0,i.eR)("void => visible",[(0,i._7)(ze)]),(0,i.eR)("visible => void",[(0,i._7)(F)])])]},changeDetection:0}),Ce})(),de=(()=>{class Ce{}return Ce.\u0275fac=function(G){return new(G||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({imports:[r.ez,y,u.T,M.m8]}),Ce})()},1420:(qe,re,l)=>{"use strict";l.d(re,{V:()=>i,p:()=>t});let t=(()=>{class r{static addClass(M,v){M&&v&&(M.classList?M.classList.add(v):M.className+=" "+v)}static addMultipleClasses(M,v){if(M&&v)if(M.classList){let y=v.trim().split(" ");for(let u=0;u<y.length;u++)M.classList.add(y[u])}else{let y=v.split(" ");for(let u=0;u<y.length;u++)M.className+=" "+y[u]}}static removeClass(M,v){M&&v&&(M.classList?M.classList.remove(v):M.className=M.className.replace(new RegExp("(^|\\b)"+v.split(" ").join("|")+"(\\b|$)","gi")," "))}static hasClass(M,v){return!(!M||!v)&&(M.classList?M.classList.contains(v):new RegExp("(^| )"+v+"( |$)","gi").test(M.className))}static siblings(M){return Array.prototype.filter.call(M.parentNode.children,function(v){return v!==M})}static find(M,v){return Array.from(M.querySelectorAll(v))}static findSingle(M,v){return M?M.querySelector(v):null}static index(M){let v=M.parentNode.childNodes,y=0;for(var u=0;u<v.length;u++){if(v[u]==M)return y;1==v[u].nodeType&&y++}return-1}static indexWithinGroup(M,v){let y=M.parentNode?M.parentNode.childNodes:[],u=0;for(var _=0;_<y.length;_++){if(y[_]==M)return u;y[_].attributes&&y[_].attributes[v]&&1==y[_].nodeType&&u++}return-1}static appendOverlay(M,v,y="self"){"self"!==y&&M&&v&&this.appendChild(M,v)}static alignOverlay(M,v,y="self",u=!0){M&&v&&(u&&(M.style.minWidth||(M.style.minWidth=r.getOuterWidth(v)+"px")),"self"===y?this.relativePosition(M,v):this.absolutePosition(M,v))}static relativePosition(M,v){const y=P=>{if(P)return"relative"===getComputedStyle(P).getPropertyValue("position")?P:y(P.parentElement)},u=M.offsetParent?{width:M.offsetWidth,height:M.offsetHeight}:this.getHiddenElementDimensions(M),_=v.offsetHeight,p=v.getBoundingClientRect(),C=this.getWindowScrollTop(),g=this.getWindowScrollLeft(),f=this.getViewport(),h=y(M)?.getBoundingClientRect()||{top:-1*C,left:-1*g};let T,b;p.top+_+u.height>f.height?(T=p.top-h.top-u.height,M.style.transformOrigin="bottom",p.top+T<0&&(T=-1*p.top)):(T=_+p.top-h.top,M.style.transformOrigin="top"),b=u.width>f.width?-1*(p.left-h.left):p.left-h.left+u.width>f.width?-1*(p.left-h.left+u.width-f.width):p.left-h.left,M.style.top=T+"px",M.style.left=b+"px"}static absolutePosition(M,v){const y=M.offsetParent?{width:M.offsetWidth,height:M.offsetHeight}:this.getHiddenElementDimensions(M),u=y.height,_=y.width,p=v.offsetHeight,C=v.offsetWidth,g=v.getBoundingClientRect(),f=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let T,b;g.top+p+u>h.height?(T=g.top+f-u,M.style.transformOrigin="bottom",T<0&&(T=f)):(T=p+g.top+f,M.style.transformOrigin="top"),b=g.left+_>h.width?Math.max(0,g.left+d+C-_):g.left+d,M.style.top=T+"px",M.style.left=b+"px"}static getParents(M,v=[]){return null===M.parentNode?v:this.getParents(M.parentNode,v.concat([M.parentNode]))}static getScrollableParents(M){let v=[];if(M){let y=this.getParents(M);const u=/(auto|scroll)/,_=p=>{let C=window.getComputedStyle(p,null);return u.test(C.getPropertyValue("overflow"))||u.test(C.getPropertyValue("overflowX"))||u.test(C.getPropertyValue("overflowY"))};for(let p of y){let C=1===p.nodeType&&p.dataset.scrollselectors;if(C){let g=C.split(",");for(let f of g){let d=this.findSingle(p,f);d&&_(d)&&v.push(d)}}9!==p.nodeType&&_(p)&&v.push(p)}}return v}static getHiddenElementOuterHeight(M){M.style.visibility="hidden",M.style.display="block";let v=M.offsetHeight;return M.style.display="none",M.style.visibility="visible",v}static getHiddenElementOuterWidth(M){M.style.visibility="hidden",M.style.display="block";let v=M.offsetWidth;return M.style.display="none",M.style.visibility="visible",v}static getHiddenElementDimensions(M){let v={};return M.style.visibility="hidden",M.style.display="block",v.width=M.offsetWidth,v.height=M.offsetHeight,M.style.display="none",M.style.visibility="visible",v}static scrollInView(M,v){let y=getComputedStyle(M).getPropertyValue("borderTopWidth"),u=y?parseFloat(y):0,_=getComputedStyle(M).getPropertyValue("paddingTop"),p=_?parseFloat(_):0,C=M.getBoundingClientRect(),f=v.getBoundingClientRect().top+document.body.scrollTop-(C.top+document.body.scrollTop)-u-p,d=M.scrollTop,h=M.clientHeight,T=this.getOuterHeight(v);f<0?M.scrollTop=d+f:f+T>h&&(M.scrollTop=d+f-h+T)}static fadeIn(M,v){M.style.opacity=0;let y=+new Date,u=0,_=function(){u=+M.style.opacity.replace(",",".")+((new Date).getTime()-y)/v,M.style.opacity=u,y=+new Date,+u<1&&(window.requestAnimationFrame&&requestAnimationFrame(_)||setTimeout(_,16))};_()}static fadeOut(M,v){var y=1,p=50/v;let C=setInterval(()=>{(y-=p)<=0&&(y=0,clearInterval(C)),M.style.opacity=y},50)}static getWindowScrollTop(){let M=document.documentElement;return(window.pageYOffset||M.scrollTop)-(M.clientTop||0)}static getWindowScrollLeft(){let M=document.documentElement;return(window.pageXOffset||M.scrollLeft)-(M.clientLeft||0)}static matches(M,v){var y=Element.prototype;return(y.matches||y.webkitMatchesSelector||y.mozMatchesSelector||y.msMatchesSelector||function(_){return-1!==[].indexOf.call(document.querySelectorAll(_),this)}).call(M,v)}static getOuterWidth(M,v){let y=M.offsetWidth;if(v){let u=getComputedStyle(M);y+=parseFloat(u.marginLeft)+parseFloat(u.marginRight)}return y}static getHorizontalPadding(M){let v=getComputedStyle(M);return parseFloat(v.paddingLeft)+parseFloat(v.paddingRight)}static getHorizontalMargin(M){let v=getComputedStyle(M);return parseFloat(v.marginLeft)+parseFloat(v.marginRight)}static innerWidth(M){let v=M.offsetWidth,y=getComputedStyle(M);return v+=parseFloat(y.paddingLeft)+parseFloat(y.paddingRight),v}static width(M){let v=M.offsetWidth,y=getComputedStyle(M);return v-=parseFloat(y.paddingLeft)+parseFloat(y.paddingRight),v}static getInnerHeight(M){let v=M.offsetHeight,y=getComputedStyle(M);return v+=parseFloat(y.paddingTop)+parseFloat(y.paddingBottom),v}static getOuterHeight(M,v){let y=M.offsetHeight;if(v){let u=getComputedStyle(M);y+=parseFloat(u.marginTop)+parseFloat(u.marginBottom)}return y}static getHeight(M){let v=M.offsetHeight,y=getComputedStyle(M);return v-=parseFloat(y.paddingTop)+parseFloat(y.paddingBottom)+parseFloat(y.borderTopWidth)+parseFloat(y.borderBottomWidth),v}static getWidth(M){let v=M.offsetWidth,y=getComputedStyle(M);return v-=parseFloat(y.paddingLeft)+parseFloat(y.paddingRight)+parseFloat(y.borderLeftWidth)+parseFloat(y.borderRightWidth),v}static getViewport(){let M=window,v=document,y=v.documentElement,u=v.getElementsByTagName("body")[0];return{width:M.innerWidth||y.clientWidth||u.clientWidth,height:M.innerHeight||y.clientHeight||u.clientHeight}}static getOffset(M){var v=M.getBoundingClientRect();return{top:v.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:v.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(M,v){let y=M.parentNode;if(!y)throw"Can't replace element";return y.replaceChild(v,M)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var M=window.navigator.userAgent;return M.indexOf("MSIE ")>0||(M.indexOf("Trident/")>0?(M.indexOf("rv:"),!0):M.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(M,v){if(this.isElement(v))v.appendChild(M);else{if(!v.el||!v.el.nativeElement)throw"Cannot append "+v+" to "+M;v.el.nativeElement.appendChild(M)}}static removeChild(M,v){if(this.isElement(v))v.removeChild(M);else{if(!v.el||!v.el.nativeElement)throw"Cannot remove "+M+" from "+v;v.el.nativeElement.removeChild(M)}}static removeElement(M){"remove"in Element.prototype?M.remove():M.parentNode.removeChild(M)}static isElement(M){return"object"==typeof HTMLElement?M instanceof HTMLElement:M&&"object"==typeof M&&null!==M&&1===M.nodeType&&"string"==typeof M.nodeName}static calculateScrollbarWidth(M){if(M){let v=getComputedStyle(M);return M.offsetWidth-M.clientWidth-parseFloat(v.borderLeftWidth)-parseFloat(v.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let v=document.createElement("div");v.className="p-scrollbar-measure",document.body.appendChild(v);let y=v.offsetWidth-v.clientWidth;return document.body.removeChild(v),this.calculatedScrollbarWidth=y,y}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let M=document.createElement("div");M.className="p-scrollbar-measure",document.body.appendChild(M);let v=M.offsetHeight-M.clientHeight;return document.body.removeChild(M),this.calculatedScrollbarWidth=v,v}static invokeElementMethod(M,v,y){M[v].apply(M,y)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let M=this.resolveUserAgent();this.browser={},M.browser&&(this.browser[M.browser]=!0,this.browser.version=M.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let M=navigator.userAgent.toLowerCase(),v=/(chrome)[ \/]([\w.]+)/.exec(M)||/(webkit)[ \/]([\w.]+)/.exec(M)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(M)||/(msie) ([\w.]+)/.exec(M)||M.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(M)||[];return{browser:v[1]||"",version:v[2]||"0"}}static isInteger(M){return Number.isInteger?Number.isInteger(M):"number"==typeof M&&isFinite(M)&&Math.floor(M)===M}static isHidden(M){return!M||null===M.offsetParent}static isVisible(M){return M&&null!=M.offsetParent}static isExist(M){return null!==M&&typeof M<"u"&&M.nodeName&&M.parentNode}static focus(M,v){M&&document.activeElement!==M&&M.focus(v)}static getFocusableElements(M){let v=r.find(M,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                [href]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),y=[];for(let u of v)(u.offsetWidth||u.offsetHeight||u.getClientRects().length)&&y.push(u);return y}static getNextFocusableElement(M,v=!1){const y=r.getFocusableElements(M);let u=0;if(y&&y.length>0){const _=y.indexOf(y[0].ownerDocument.activeElement);v?u=-1==_||0===_?y.length-1:_-1:-1!=_&&_!==y.length-1&&(u=_+1)}return y[u]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(M,v){if(!M)return null;switch(M){case"document":return document;case"window":return window;case"@next":return v?.nextElementSibling;case"@prev":return v?.previousElementSibling;case"@parent":return v?.parentElement;case"@grandparent":return v?.parentElement.parentElement;default:const y=typeof M;if("string"===y)return document.querySelector(M);if("object"===y&&M.hasOwnProperty("nativeElement"))return this.isExist(M.nativeElement)?M.nativeElement:void 0;const _=(p=M)&&p.constructor&&p.call&&p.apply?M():M;return _&&9===_.nodeType||this.isExist(_)?_:null}var p}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}}return r.zindex=1e3,r.calculatedScrollbarWidth=null,r.calculatedScrollbarHeight=null,r})();class i{constructor(L,M=(()=>{})){this.element=L,this.listener=M}bindScrollListener(){this.scrollableParents=t.getScrollableParents(this.element);for(let L=0;L<this.scrollableParents.length;L++)this.scrollableParents[L].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let L=0;L<this.scrollableParents.length;L++)this.scrollableParents[L].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}},6999:(qe,re,l)=>{"use strict";l.d(re,{Lt:()=>Rn,kW:()=>Fn});var t=l(4666),i=l(2560),r=l(6803),L=l(4356),M=l(174),v=l(1420),y=l(4851),u=l(8549);const _=["overlay"],p=["content"];function C(ut,Je){1&ut&&i.GkF(0)}const g=function(ut,Je,Y){return{showTransitionParams:ut,hideTransitionParams:Je,transform:Y}},f=function(ut){return{value:"visible",params:ut}},d=function(ut){return{mode:ut}},h=function(ut){return{$implicit:ut}};function T(ut,Je){if(1&ut){const Y=i.EpF();i.TgZ(0,"div",1,3),i.NdJ("click",function(Oe){i.CHM(Y);const nt=i.oxw(2);return i.KtG(nt.onOverlayContentClick(Oe))})("@overlayContentAnimation.start",function(Oe){i.CHM(Y);const nt=i.oxw(2);return i.KtG(nt.onOverlayContentAnimationStart(Oe))})("@overlayContentAnimation.done",function(Oe){i.CHM(Y);const nt=i.oxw(2);return i.KtG(nt.onOverlayContentAnimationDone(Oe))}),i.Hsn(2),i.YNc(3,C,1,0,"ng-container",4),i.qZA()}if(2&ut){const Y=i.oxw(2);i.Tol(Y.contentStyleClass),i.Q6J("ngStyle",Y.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",i.VKq(11,f,i.kEZ(7,g,Y.showTransitionOptions,Y.hideTransitionOptions,Y.transformOptions[Y.modal?Y.overlayResponsiveDirection:"default"]))),i.xp6(3),i.Q6J("ngTemplateOutlet",Y.contentTemplate)("ngTemplateOutletContext",i.VKq(15,h,i.VKq(13,d,Y.overlayMode)))}}const b=function(ut,Je,Y,le,Oe,nt,Xt,Dn,St,Vn,He,ht,Ze,Kt){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":ut,"p-overlay-center":Je,"p-overlay-top":Y,"p-overlay-top-start":le,"p-overlay-top-end":Oe,"p-overlay-bottom":nt,"p-overlay-bottom-start":Xt,"p-overlay-bottom-end":Dn,"p-overlay-left":St,"p-overlay-left-start":Vn,"p-overlay-left-end":He,"p-overlay-right":ht,"p-overlay-right-start":Ze,"p-overlay-right-end":Kt}};function P(ut,Je){if(1&ut){const Y=i.EpF();i.TgZ(0,"div",1,2),i.NdJ("click",function(Oe){i.CHM(Y);const nt=i.oxw();return i.KtG(nt.onOverlayClick(Oe))}),i.YNc(2,T,4,17,"div",0),i.qZA()}if(2&ut){const Y=i.oxw();i.Tol(Y.styleClass),i.Q6J("ngStyle",Y.style)("ngClass",i.rFY(5,b,[Y.modal,Y.modal&&"center"===Y.overlayResponsiveDirection,Y.modal&&"top"===Y.overlayResponsiveDirection,Y.modal&&"top-start"===Y.overlayResponsiveDirection,Y.modal&&"top-end"===Y.overlayResponsiveDirection,Y.modal&&"bottom"===Y.overlayResponsiveDirection,Y.modal&&"bottom-start"===Y.overlayResponsiveDirection,Y.modal&&"bottom-end"===Y.overlayResponsiveDirection,Y.modal&&"left"===Y.overlayResponsiveDirection,Y.modal&&"left-start"===Y.overlayResponsiveDirection,Y.modal&&"left-end"===Y.overlayResponsiveDirection,Y.modal&&"right"===Y.overlayResponsiveDirection,Y.modal&&"right-start"===Y.overlayResponsiveDirection,Y.modal&&"right-end"===Y.overlayResponsiveDirection])),i.xp6(2),i.Q6J("ngIf",Y.visible)}}const W=["*"],I={provide:r.JU,useExisting:(0,i.Gpc)(()=>N),multi:!0},k=(0,y.oQ)([(0,y.oB)({transform:"{{transform}}",opacity:0}),(0,y.jt)("{{showTransitionParams}}")]),D=(0,y.oQ)([(0,y.jt)("{{hideTransitionParams}}",(0,y.oB)({transform:"{{transform}}",opacity:0}))]);let N=(()=>{class ut{constructor(Y,le,Oe,nt,Xt,Dn,St){this.document=Y,this.platformId=le,this.el=Oe,this.renderer=nt,this.config=Xt,this.overlayService=Dn,this.zone=St,this.visibleChange=new i.vpe,this.onBeforeShow=new i.vpe,this.onShow=new i.vpe,this.onBeforeHide=new i.vpe,this.onHide=new i.vpe,this.onAnimationStart=new i.vpe,this.onAnimationDone=new i.vpe,this._visible=!1,this.modalVisible=!1,this.isOverlayClicked=!1,this.isOverlayContentClicked=!1,this.transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"},this.window=this.document.defaultView}get visible(){return this._visible}set visible(Y){this._visible=Y,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(Y){this._mode=Y}get style(){return u.gb.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(Y){this._style=Y}get styleClass(){return u.gb.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(Y){this._styleClass=Y}get contentStyle(){return u.gb.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(Y){this._contentStyle=Y}get contentStyleClass(){return u.gb.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(Y){this._contentStyleClass=Y}get target(){const Y=this._target||this.overlayOptions?.target;return void 0===Y?"@prev":Y}set target(Y){this._target=Y}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(Y){this._appendTo=Y}get autoZIndex(){const Y=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===Y||Y}set autoZIndex(Y){this._autoZIndex=Y}get baseZIndex(){const Y=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===Y?0:Y}set baseZIndex(Y){this._baseZIndex=Y}get showTransitionOptions(){const Y=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===Y?".12s cubic-bezier(0, 0, 0.2, 1)":Y}set showTransitionOptions(Y){this._showTransitionOptions=Y}get hideTransitionOptions(){const Y=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===Y?".1s linear":Y}set hideTransitionOptions(Y){this._hideTransitionOptions=Y}get listener(){return this._listener||this.overlayOptions?.listener}set listener(Y){this._listener=Y}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(Y){this._responsive=Y}get options(){return this._options}set options(Y){this._options=Y}get modal(){if((0,t.NF)(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return v.p.getTargetElement(this.target,this.el?.nativeElement)}ngAfterContentInit(){this.templates?.forEach(Y=>{Y.getType(),this.contentTemplate=Y.template})}show(Y,le=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:Y||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),le&&v.p.focus(this.targetEl),this.modal&&v.p.addClass(this.document?.body,"p-overflow-hidden")}hide(Y,le=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:Y||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),le&&v.p.focus(this.targetEl),this.modal&&v.p.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&v.p.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(Y){this._visible=Y,this.visibleChange.emit(Y)}onOverlayClick(Y){this.isOverlayClicked=!0}onOverlayContentClick(Y){this.overlayService.add({originalEvent:Y,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(Y){switch(Y.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&u.P9.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),v.p.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&v.p.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",Y)}onOverlayContentAnimationDone(Y){const le=this.overlayEl||Y.element.parentElement;switch(Y.toState){case"visible":this.show(le,!0),this.bindListeners();break;case"void":this.hide(le,!0),this.unbindListeners(),v.p.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),u.P9.clear(le),this.modalVisible=!1}this.handleEvents("onAnimationDone",Y)}handleEvents(Y,le){this[Y].emit(le),this.options&&this.options[Y]&&this.options[Y](le),this.config?.overlayOptions&&this.config?.overlayOptions[Y]&&this.config?.overlayOptions[Y](le)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new v.V(this.targetEl,Y=>{(!this.listener||this.listener(Y,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(Y,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",Y=>{const Oe=!(this.targetEl&&(this.targetEl.isSameNode(Y.target)||!this.isOverlayClicked&&this.targetEl.contains(Y.target))||this.isOverlayContentClicked);(this.listener?this.listener(Y,{type:"outside",mode:this.overlayMode,valid:3!==Y.which&&Oe}):Oe)&&this.hide(Y),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",Y=>{(this.listener?this.listener(Y,{type:"resize",mode:this.overlayMode,valid:!v.p.isTouchDevice()}):!v.p.isTouchDevice())&&this.hide(Y,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",Y=>{this.overlayOptions.hideOnEscape&&27===Y.keyCode&&(this.listener?this.listener(Y,{type:"keydown",mode:this.overlayMode,valid:!v.p.isTouchDevice()}):!v.p.isTouchDevice())&&this.zone.run(()=>{this.hide(Y,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(v.p.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),u.P9.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}}return ut.\u0275fac=function(Y){return new(Y||ut)(i.Y36(t.K0),i.Y36(i.Lbi),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(L.b4),i.Y36(L.F0),i.Y36(i.R0b))},ut.\u0275cmp=i.Xpm({type:ut,selectors:[["p-overlay"]],contentQueries:function(Y,le,Oe){if(1&Y&&i.Suo(Oe,L.jx,4),2&Y){let nt;i.iGM(nt=i.CRH())&&(le.templates=nt)}},viewQuery:function(Y,le){if(1&Y&&(i.Gf(_,5),i.Gf(p,5)),2&Y){let Oe;i.iGM(Oe=i.CRH())&&(le.overlayViewChild=Oe.first),i.iGM(Oe=i.CRH())&&(le.contentViewChild=Oe.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[i._Bn([I])],ngContentSelectors:W,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Y,le){1&Y&&(i.F$t(),i.YNc(0,P,3,20,"div",0)),2&Y&&i.Q6J("ngIf",le.modalVisible)},dependencies:[t.mk,t.O5,t.tP,t.PC],styles:[".p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}\n"],encapsulation:2,data:{animation:[(0,y.X$)("overlayContentAnimation",[(0,y.eR)(":enter",[(0,y._7)(k)]),(0,y.eR)(":leave",[(0,y._7)(D)])])]},changeDetection:0}),ut})(),s=(()=>{class ut{}return ut.\u0275fac=function(Y){return new(Y||ut)},ut.\u0275mod=i.oAB({type:ut}),ut.\u0275inj=i.cJS({imports:[t.ez,L.m8,L.m8]}),ut})();var V=l(4538),Q=l(3705),me=l(4329);function ue(ut,Je){if(1&ut&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&ut){const Y=i.oxw();let le;i.xp6(1),i.Oqu(null!==(le=Y.label)&&void 0!==le?le:"empty")}}function De(ut,Je){1&ut&&i.GkF(0)}const Ue=function(ut){return{height:ut}},Xe=function(ut,Je){return{"p-dropdown-item":!0,"p-highlight":ut,"p-disabled":Je}},st=function(ut){return{$implicit:ut}},ze=["container"],F=["filter"],Re=["in"],de=["editableInput"],Ce=["items"],oe=["scroller"],G=["overlay"];function ye(ut,Je){if(1&ut&&(i.ynx(0),i._uU(1),i.BQk()),2&ut){const Y=i.oxw(2);i.xp6(1),i.Oqu(Y.label||"empty")}}function we(ut,Je){1&ut&&i.GkF(0)}const Fe=function(ut){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":ut}};function lt(ut,Je){if(1&ut&&(i.TgZ(0,"span",14),i.YNc(1,ye,2,1,"ng-container",15),i.YNc(2,we,1,0,"ng-container",16),i.qZA()),2&ut){const Y=i.oxw();i.Q6J("ngClass",i.VKq(9,Fe,null==Y.label||0===Y.label.length))("pTooltip",Y.tooltip)("tooltipPosition",Y.tooltipPosition)("positionStyle",Y.tooltipPositionStyle)("tooltipStyleClass",Y.tooltipStyleClass),i.uIk("id",Y.labelId),i.xp6(1),i.Q6J("ngIf",!Y.selectedItemTemplate),i.xp6(1),i.Q6J("ngTemplateOutlet",Y.selectedItemTemplate)("ngTemplateOutletContext",i.VKq(11,st,Y.selectedOption))}}const Pt=function(ut){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":ut}};function wt(ut,Je){if(1&ut&&(i.TgZ(0,"span",17),i._uU(1),i.qZA()),2&ut){const Y=i.oxw();i.Q6J("ngClass",i.VKq(2,Pt,null==Y.placeholder||0===Y.placeholder.length)),i.xp6(1),i.Oqu(Y.placeholder||"empty")}}function Bt(ut,Je){if(1&ut){const Y=i.EpF();i.TgZ(0,"input",18,19),i.NdJ("input",function(Oe){i.CHM(Y);const nt=i.oxw();return i.KtG(nt.onEditableInputChange(Oe))})("focus",function(Oe){i.CHM(Y);const nt=i.oxw();return i.KtG(nt.onEditableInputFocus(Oe))})("blur",function(Oe){i.CHM(Y);const nt=i.oxw();return i.KtG(nt.onInputBlur(Oe))}),i.qZA()}if(2&ut){const Y=i.oxw();i.Q6J("disabled",Y.disabled),i.uIk("maxlength",Y.maxlength)("placeholder",Y.placeholder)("aria-expanded",Y.overlayVisible)}}function nn(ut,Je){if(1&ut){const Y=i.EpF();i.TgZ(0,"i",20),i.NdJ("click",function(Oe){i.CHM(Y);const nt=i.oxw();return i.KtG(nt.clear(Oe))}),i.qZA()}}function xt(ut,Je){1&ut&&i.GkF(0)}function sn(ut,Je){1&ut&&i.GkF(0)}const ct=function(ut){return{options:ut}};function Ve(ut,Je){if(1&ut&&(i.ynx(0),i.YNc(1,sn,1,0,"ng-container",16),i.BQk()),2&ut){const Y=i.oxw(3);i.xp6(1),i.Q6J("ngTemplateOutlet",Y.filterTemplate)("ngTemplateOutletContext",i.VKq(2,ct,Y.filterOptions))}}function rt(ut,Je){if(1&ut){const Y=i.EpF();i.TgZ(0,"div",30)(1,"input",31,32),i.NdJ("keydown.enter",function(Oe){return Oe.preventDefault()})("keydown",function(Oe){i.CHM(Y);const nt=i.oxw(3);return i.KtG(nt.onKeydown(Oe,!1))})("input",function(Oe){i.CHM(Y);const nt=i.oxw(3);return i.KtG(nt.onFilterInputChange(Oe))}),i.qZA(),i._UZ(3,"span",33),i.qZA()}if(2&ut){const Y=i.oxw(3);i.xp6(1),i.Q6J("value",Y.filterValue||""),i.uIk("placeholder",Y.filterPlaceholder)("aria-label",Y.ariaFilterLabel)("aria-activedescendant",Y.overlayVisible?"p-highlighted-option":Y.labelId)}}function Et(ut,Je){if(1&ut&&(i.TgZ(0,"div",27),i.NdJ("click",function(le){return le.stopPropagation()}),i.YNc(1,Ve,2,4,"ng-container",28),i.YNc(2,rt,4,4,"ng-template",null,29,i.W1O),i.qZA()),2&ut){const Y=i.MAs(3),le=i.oxw(2);i.xp6(1),i.Q6J("ngIf",le.filterTemplate)("ngIfElse",Y)}}function Ft(ut,Je){1&ut&&i.GkF(0)}const yt=function(ut,Je){return{$implicit:ut,options:Je}};function un(ut,Je){if(1&ut&&i.YNc(0,Ft,1,0,"ng-container",16),2&ut){const Y=Je.$implicit,le=Je.options;i.oxw(2);const Oe=i.MAs(7);i.Q6J("ngTemplateOutlet",Oe)("ngTemplateOutletContext",i.WLB(2,yt,Y,le))}}function bt(ut,Je){1&ut&&i.GkF(0)}function Jt(ut,Je){if(1&ut&&i.YNc(0,bt,1,0,"ng-container",16),2&ut){const Y=Je.options,le=i.oxw(4);i.Q6J("ngTemplateOutlet",le.loaderTemplate)("ngTemplateOutletContext",i.VKq(2,ct,Y))}}function en(ut,Je){1&ut&&(i.ynx(0),i.YNc(1,Jt,1,4,"ng-template",36),i.BQk())}function mn(ut,Je){if(1&ut){const Y=i.EpF();i.TgZ(0,"p-scroller",34,35),i.NdJ("onLazyLoad",function(Oe){i.CHM(Y);const nt=i.oxw(2);return i.KtG(nt.onLazyLoad.emit(Oe))}),i.YNc(2,un,1,5,"ng-template",13),i.YNc(3,en,2,0,"ng-container",15),i.qZA()}if(2&ut){const Y=i.oxw(2);i.Akn(i.VKq(8,Ue,Y.scrollHeight)),i.Q6J("items",Y.optionsToDisplay)("itemSize",Y.virtualScrollItemSize||Y._itemSize)("autoSize",!0)("lazy",Y.lazy)("options",Y.virtualScrollOptions),i.xp6(3),i.Q6J("ngIf",Y.loaderTemplate)}}function En(ut,Je){1&ut&&i.GkF(0)}const Ln=function(){return{}};function dt(ut,Je){if(1&ut&&(i.ynx(0),i.YNc(1,En,1,0,"ng-container",16),i.BQk()),2&ut){i.oxw();const Y=i.MAs(7),le=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",Y)("ngTemplateOutletContext",i.WLB(3,yt,le.optionsToDisplay,i.DdM(2,Ln)))}}function Ot(ut,Je){if(1&ut&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&ut){const Y=i.oxw().$implicit,le=i.oxw(4);i.xp6(1),i.Oqu(le.getOptionGroupLabel(Y)||"empty")}}function $(ut,Je){1&ut&&i.GkF(0)}function pe(ut,Je){1&ut&&i.GkF(0)}const Ee=function(ut,Je){return{$implicit:ut,selectedOption:Je}};function Ge(ut,Je){if(1&ut&&(i.TgZ(0,"li",42),i.YNc(1,Ot,2,1,"span",15),i.YNc(2,$,1,0,"ng-container",16),i.qZA(),i.YNc(3,pe,1,0,"ng-container",16)),2&ut){const Y=Je.$implicit,le=i.oxw(2).options,Oe=i.MAs(5),nt=i.oxw(2);i.Q6J("ngStyle",i.VKq(6,Ue,le.itemSize+"px")),i.xp6(1),i.Q6J("ngIf",!nt.groupTemplate),i.xp6(1),i.Q6J("ngTemplateOutlet",nt.groupTemplate)("ngTemplateOutletContext",i.VKq(8,st,Y)),i.xp6(1),i.Q6J("ngTemplateOutlet",Oe)("ngTemplateOutletContext",i.WLB(10,Ee,nt.getOptionGroupChildren(Y),nt.selectedOption))}}function Zt(ut,Je){if(1&ut&&(i.ynx(0),i.YNc(1,Ge,4,13,"ng-template",41),i.BQk()),2&ut){const Y=i.oxw().$implicit;i.xp6(1),i.Q6J("ngForOf",Y)}}function tn(ut,Je){1&ut&&i.GkF(0)}function on(ut,Je){if(1&ut&&(i.ynx(0),i.YNc(1,tn,1,0,"ng-container",16),i.BQk()),2&ut){const Y=i.oxw().$implicit,le=i.MAs(5),Oe=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",le)("ngTemplateOutletContext",i.WLB(2,Ee,Y,Oe.selectedOption))}}function Un(ut,Je){if(1&ut){const Y=i.EpF();i.TgZ(0,"p-dropdownItem",43),i.NdJ("onClick",function(Oe){i.CHM(Y);const nt=i.oxw(4);return i.KtG(nt.onItemClick(Oe))}),i.qZA()}if(2&ut){const Y=Je.$implicit,le=i.oxw().selectedOption,Oe=i.oxw(3);i.Q6J("option",Y)("selected",le==Y)("label",Oe.getOptionLabel(Y))("disabled",Oe.isOptionDisabled(Y))("template",Oe.itemTemplate)}}function vn(ut,Je){1&ut&&i.YNc(0,Un,1,5,"ng-template",41),2&ut&&i.Q6J("ngForOf",Je.$implicit)}function zt(ut,Je){if(1&ut&&(i.ynx(0),i._uU(1),i.BQk()),2&ut){const Y=i.oxw(4);i.xp6(1),i.hij(" ",Y.emptyFilterMessageLabel," ")}}function Ht(ut,Je){1&ut&&i.GkF(0,null,45)}function pt(ut,Je){if(1&ut&&(i.TgZ(0,"li",44),i.YNc(1,zt,2,1,"ng-container",28),i.YNc(2,Ht,2,0,"ng-container",22),i.qZA()),2&ut){const Y=i.oxw().options,le=i.oxw(2);i.Q6J("ngStyle",i.VKq(4,Ue,Y.itemSize+"px")),i.xp6(1),i.Q6J("ngIf",!le.emptyFilterTemplate&&!le.emptyTemplate)("ngIfElse",le.emptyFilter),i.xp6(1),i.Q6J("ngTemplateOutlet",le.emptyFilterTemplate||le.emptyTemplate)}}function Dt(ut,Je){if(1&ut&&(i.ynx(0),i._uU(1),i.BQk()),2&ut){const Y=i.oxw(4);i.xp6(1),i.hij(" ",Y.emptyMessageLabel," ")}}function ot(ut,Je){1&ut&&i.GkF(0,null,46)}function Be(ut,Je){if(1&ut&&(i.TgZ(0,"li",44),i.YNc(1,Dt,2,1,"ng-container",28),i.YNc(2,ot,2,0,"ng-container",22),i.qZA()),2&ut){const Y=i.oxw().options,le=i.oxw(2);i.Q6J("ngStyle",i.VKq(4,Ue,Y.itemSize+"px")),i.xp6(1),i.Q6J("ngIf",!le.emptyTemplate)("ngIfElse",le.empty),i.xp6(1),i.Q6J("ngTemplateOutlet",le.emptyTemplate)}}function at(ut,Je){if(1&ut&&(i.TgZ(0,"ul",37,38),i.YNc(2,Zt,2,1,"ng-container",15),i.YNc(3,on,2,5,"ng-container",15),i.YNc(4,vn,1,1,"ng-template",null,39,i.W1O),i.YNc(6,pt,3,6,"li",40),i.YNc(7,Be,3,6,"li",40),i.qZA()),2&ut){const Y=Je.options,le=i.oxw(2);i.Akn(Y.contentStyle),i.Q6J("ngClass",Y.contentStyleClass),i.uIk("id",le.listId),i.xp6(2),i.Q6J("ngIf",le.group),i.xp6(1),i.Q6J("ngIf",!le.group),i.xp6(3),i.Q6J("ngIf",le.filterValue&&le.isEmpty()),i.xp6(1),i.Q6J("ngIf",!le.filterValue&&le.isEmpty())}}function Gt(ut,Je){1&ut&&i.GkF(0)}function Ut(ut,Je){if(1&ut&&(i.TgZ(0,"div",21),i.YNc(1,xt,1,0,"ng-container",22),i.YNc(2,Et,4,2,"div",23),i.TgZ(3,"div",24),i.YNc(4,mn,4,10,"p-scroller",25),i.YNc(5,dt,2,6,"ng-container",15),i.YNc(6,at,8,8,"ng-template",null,26,i.W1O),i.qZA(),i.YNc(8,Gt,1,0,"ng-container",22),i.qZA()),2&ut){const Y=i.oxw();i.Tol(Y.panelStyleClass),i.Q6J("ngClass","p-dropdown-panel p-component")("ngStyle",Y.panelStyle),i.xp6(1),i.Q6J("ngTemplateOutlet",Y.headerTemplate),i.xp6(1),i.Q6J("ngIf",Y.filter),i.xp6(1),i.Udp("max-height",Y.virtualScroll?"auto":Y.scrollHeight||"auto"),i.xp6(1),i.Q6J("ngIf",Y.virtualScroll),i.xp6(1),i.Q6J("ngIf",!Y.virtualScroll),i.xp6(3),i.Q6J("ngTemplateOutlet",Y.footerTemplate)}}const gn=function(ut,Je,Y,le){return{"p-dropdown p-component":!0,"p-disabled":ut,"p-dropdown-open":Je,"p-focus":Y,"p-dropdown-clearable":le}},Mn={provide:r.JU,useExisting:(0,i.Gpc)(()=>Rn),multi:!0};let kn=(()=>{class ut{constructor(){this.onClick=new i.vpe}onOptionClick(Y){this.onClick.emit({originalEvent:Y,option:this.option})}}return ut.\u0275fac=function(Y){return new(Y||ut)},ut.\u0275cmp=i.Xpm({type:ut,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Y,le){1&Y&&(i.TgZ(0,"li",0),i.NdJ("click",function(nt){return le.onOptionClick(nt)}),i.YNc(1,ue,2,1,"span",1),i.YNc(2,De,1,0,"ng-container",2),i.qZA()),2&Y&&(i.Q6J("ngStyle",i.VKq(8,Ue,le.itemSize+"px"))("id",le.selected?"p-highlighted-option":"")("ngClass",i.WLB(10,Xe,le.selected,le.disabled)),i.uIk("aria-label",le.label)("aria-selected",le.selected),i.xp6(1),i.Q6J("ngIf",!le.template),i.xp6(1),i.Q6J("ngTemplateOutlet",le.template)("ngTemplateOutletContext",i.VKq(13,st,le.option)))},dependencies:[t.mk,t.O5,t.tP,t.PC,V.H],encapsulation:2}),ut})(),Rn=(()=>{class ut{constructor(Y,le,Oe,nt,Xt,Dn){this.el=Y,this.renderer=le,this.cd=Oe,this.zone=nt,this.filterService=Xt,this.config=Dn,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.lazy=!1,this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.overlayDirection="end",this.onChange=new i.vpe,this.onFilter=new i.vpe,this.onFocus=new i.vpe,this.onBlur=new i.vpe,this.onClick=new i.vpe,this.onShow=new i.vpe,this.onHide=new i.vpe,this.onClear=new i.vpe,this.onLazyLoad=new i.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.id=(0,u.Th)()}get disabled(){return this._disabled}set disabled(Y){Y&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=Y,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(Y){this._itemSize=Y,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get autoZIndex(){return this._autoZIndex}set autoZIndex(Y){this._autoZIndex=Y,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(Y){this._baseZIndex=Y,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(Y){this._showTransitionOptions=Y,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(Y){this._hideTransitionOptions=Y,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}ngAfterContentInit(){this.templates.forEach(Y=>{switch(Y.getType()){case"item":default:this.itemTemplate=Y.template;break;case"selectedItem":this.selectedItemTemplate=Y.template;break;case"header":this.headerTemplate=Y.template;break;case"filter":this.filterTemplate=Y.template;break;case"footer":this.footerTemplate=Y.template;break;case"emptyfilter":this.emptyFilterTemplate=Y.template;break;case"empty":this.emptyTemplate=Y.template;break;case"group":this.groupTemplate=Y.template;break;case"loader":this.loaderTemplate=Y.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list",this.filterBy&&(this.filterOptions={filter:Y=>this.onFilterInputChange(Y),reset:()=>this.resetFilter()})}get options(){return this._options}set options(Y){this._options=Y,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),!this.selectedOption&&u.gb.isNotEmpty(this.value)&&!this.editable&&(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(Y){this._filterValue=Y,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return"number"==typeof this.selectedOption&&(this.selectedOption=this.selectedOption.toString()),this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(L.ws.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(L.ws.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.value?!!this.value:this.value||null!=this.value||null!=this.value}get isVisibleClearIcon(){return null!=this.value&&""!==this.value&&this.showClear&&!this.disabled}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(Y){return this.optionLabel?u.gb.resolveFieldData(Y,this.optionLabel):Y&&void 0!==Y.label?Y.label:Y}getOptionValue(Y){return this.optionValue?u.gb.resolveFieldData(Y,this.optionValue):!this.optionLabel&&Y&&void 0!==Y.value?Y.value:Y}isOptionDisabled(Y){return this.optionDisabled?u.gb.resolveFieldData(Y,this.optionDisabled):!(!Y||void 0===Y.disabled)&&Y.disabled}getOptionGroupLabel(Y){return this.optionGroupLabel?u.gb.resolveFieldData(Y,this.optionGroupLabel):Y&&void 0!==Y.label?Y.label:Y}getOptionGroupChildren(Y){return this.optionGroupChildren?u.gb.resolveFieldData(Y,this.optionGroupChildren):Y.items}onItemClick(Y){const le=Y.option;this.isOptionDisabled(le)||(this.selectItem(Y.originalEvent,le),this.accessibleViewChild.nativeElement.focus({preventScroll:!0})),setTimeout(()=>{this.hide()},1)}selectItem(Y,le){this.selectedOption!=le&&(this.selectedOption=le,this.value=this.getOptionValue(le),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:Y,value:this.value}))}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let Y=v.p.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,"li.p-highlight");Y&&v.p.scrollInView(this.itemsWrapper,Y),this.selectedOptionUpdated=!1}}writeValue(Y){this.filter&&this.resetFilter(),this.value=Y,this.updateSelectedOption(Y),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}updateSelectedOption(Y){this.selectedOption=this.findOption(Y,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]:this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(Y){this.onModelChange=Y}registerOnTouched(Y){this.onModelTouched=Y}setDisabledState(Y){this.disabled=Y,this.cd.markForCheck()}onMouseclick(Y){this.disabled||this.readonly||this.isInputClick(Y)||(this.onClick.emit(Y),this.accessibleViewChild.nativeElement.focus({preventScroll:!0}),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}isInputClick(Y){return v.p.hasClass(Y.target,"p-dropdown-clear-icon")||Y.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&Y.target.isSameNode(this.editableInputViewChild.nativeElement)}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputFocus(Y){this.focused=!0,this.hide(),this.onFocus.emit(Y)}onEditableInputChange(Y){this.value=Y.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:Y,value:this.value})}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(Y){if("visible"===Y.toState){if(this.itemsWrapper=v.p.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller.setContentEl(this.itemsViewChild.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const le=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;-1!==le&&this.scroller.scrollToIndex(le)}else{let le=v.p.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");le&&le.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(Y)}"void"===Y.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(Y))}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.cd.markForCheck()}onInputFocus(Y){this.focused=!0,this.onFocus.emit(Y)}onInputBlur(Y){this.focused=!1,this.onBlur.emit(Y),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(Y){let le;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let Oe=Y-1;0<=Oe;Oe--){let nt=this.optionsToDisplay[Oe];if(!this.isOptionDisabled(nt)){le=nt;break}}if(!le)for(let Oe=this.optionsToDisplay.length-1;Oe>=Y;Oe--){let nt=this.optionsToDisplay[Oe];if(!this.isOptionDisabled(nt)){le=nt;break}}}return le}findNextEnabledOption(Y){let le;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let Oe=Y+1;Oe<this.optionsToDisplay.length;Oe++){let nt=this.optionsToDisplay[Oe];if(!this.isOptionDisabled(nt)){le=nt;break}}if(!le)for(let Oe=0;Oe<Y;Oe++){let nt=this.optionsToDisplay[Oe];if(!this.isOptionDisabled(nt)){le=nt;break}}}return le}onKeydown(Y,le){if(!this.readonly&&this.optionsToDisplay&&null!==this.optionsToDisplay.length)switch(Y.which){case 40:if(!this.overlayVisible&&Y.altKey)this.show();else if(this.group){let Oe=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==Oe){let nt=Oe.itemIndex+1;nt<this.getOptionGroupChildren(this.optionsToDisplay[Oe.groupIndex]).length?(this.selectItem(Y,this.getOptionGroupChildren(this.optionsToDisplay[Oe.groupIndex])[nt]),this.selectedOptionUpdated=!0):this.optionsToDisplay[Oe.groupIndex+1]&&(this.selectItem(Y,this.getOptionGroupChildren(this.optionsToDisplay[Oe.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(Y,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let Oe=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,nt=this.findNextEnabledOption(Oe);nt&&(this.selectItem(Y,nt),this.selectedOptionUpdated=!0)}Y.preventDefault();break;case 38:if(this.group){let Oe=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==Oe){let nt=Oe.itemIndex-1;if(nt>=0)this.selectItem(Y,this.getOptionGroupChildren(this.optionsToDisplay[Oe.groupIndex])[nt]),this.selectedOptionUpdated=!0;else if(nt<0){let Xt=this.optionsToDisplay[Oe.groupIndex-1];Xt&&(this.selectItem(Y,this.getOptionGroupChildren(Xt)[this.getOptionGroupChildren(Xt).length-1]),this.selectedOptionUpdated=!0)}}}else{let Oe=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,nt=this.findPrevEnabledOption(Oe);nt&&(this.selectItem(Y,nt),this.selectedOptionUpdated=!0)}Y.preventDefault();break;case 32:le&&(this.overlayVisible?this.hide():this.show(),Y.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),Y.preventDefault();break;case 27:case 9:this.hide();break;default:le&&!Y.metaKey&&17!==Y.which&&this.search(Y)}}search(Y){this.searchTimeout&&clearTimeout(this.searchTimeout);const le=Y.key;let Oe;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=le,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+le:le,this.group){let nt=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};Oe=this.searchOptionWithinGroup(nt)}else{let nt=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;Oe=this.searchOption(++nt)}Oe&&!this.isOptionDisabled(Oe)&&(this.selectItem(Y,Oe),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(Y){let le;return this.searchValue&&(le=this.searchOptionInRange(Y,this.optionsToDisplay.length),le||(le=this.searchOptionInRange(0,Y))),le}searchOptionInRange(Y,le){for(let Oe=Y;Oe<le;Oe++){let nt=this.optionsToDisplay[Oe];if(this.getOptionLabel(nt).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(nt))return nt}return null}searchOptionWithinGroup(Y){if(this.searchValue){for(let Oe=Y.groupIndex;Oe<this.optionsToDisplay.length;Oe++)for(let nt=Y.groupIndex===Oe?Y.itemIndex+1:0;nt<this.getOptionGroupChildren(this.optionsToDisplay[Oe]).length;nt++){let Xt=this.getOptionGroupChildren(this.optionsToDisplay[Oe])[nt];if(this.getOptionLabel(Xt).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(Xt))return Xt}for(let Oe=0;Oe<=Y.groupIndex;Oe++)for(let nt=0;nt<(Y.groupIndex===Oe?Y.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[Oe]).length);nt++){let Xt=this.getOptionGroupChildren(this.optionsToDisplay[Oe])[nt];if(this.getOptionLabel(Xt).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(Xt))return Xt}}return null}findOptionIndex(Y,le){let Oe=-1;if(le)for(let nt=0;nt<le.length;nt++)if(null==Y&&null==this.getOptionValue(le[nt])||u.gb.equals(Y,this.getOptionValue(le[nt]),this.dataKey)){Oe=nt;break}return Oe}findOptionGroupIndex(Y,le){let Oe,nt;if(le)for(let Xt=0;Xt<le.length&&(Oe=Xt,nt=this.findOptionIndex(Y,this.getOptionGroupChildren(le[Xt])),-1===nt);Xt++);return-1!==nt?{groupIndex:Oe,itemIndex:nt}:-1}findOption(Y,le,Oe){if(this.group&&!Oe){let nt;if(le&&le.length)for(let Xt of le)if(nt=this.findOption(Y,this.getOptionGroupChildren(Xt),!0),nt)break;return nt}{let nt=this.findOptionIndex(Y,le);return-1!=nt?le[nt]:null}}onFilterInputChange(Y){let le=Y.target.value;le&&le.length?(this._filterValue=le,this.activateFilter()):(this._filterValue=null,this.optionsToDisplay=this.options),this.virtualScroll&&this.scroller.scrollToIndex(0),this.optionsChanged=!0,this.onFilter.emit({originalEvent:Y,filter:this._filterValue})}activateFilter(){let Y=(this.filterBy||this.optionLabel||"label").split(",");if(this.options&&this.options.length){if(this.group){let le=[];for(let Oe of this.options){let nt=this.filterService.filter(this.getOptionGroupChildren(Oe),Y,this.filterValue,this.filterMatchMode,this.filterLocale);nt&&nt.length&&le.push({...Oe,[this.optionGroupChildren]:nt})}this.optionsToDisplay=le}else this.optionsToDisplay=this.filterService.filter(this.options,Y,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.editable?v.p.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():v.p.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(Y){this.value=null,this.onModelChange(this.value),this.onChange.emit({originalEvent:Y,value:this.value}),this.updateSelectedOption(this.value),this.updateEditableLabel(),this.onClear.emit(Y)}}return ut.\u0275fac=function(Y){return new(Y||ut)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(L.iZ),i.Y36(L.b4))},ut.\u0275cmp=i.Xpm({type:ut,selectors:[["p-dropdown"]],contentQueries:function(Y,le,Oe){if(1&Y&&i.Suo(Oe,L.jx,4),2&Y){let nt;i.iGM(nt=i.CRH())&&(le.templates=nt)}},viewQuery:function(Y,le){if(1&Y&&(i.Gf(ze,5),i.Gf(F,5),i.Gf(Re,5),i.Gf(de,5),i.Gf(Ce,5),i.Gf(oe,5),i.Gf(G,5)),2&Y){let Oe;i.iGM(Oe=i.CRH())&&(le.containerViewChild=Oe.first),i.iGM(Oe=i.CRH())&&(le.filterViewChild=Oe.first),i.iGM(Oe=i.CRH())&&(le.accessibleViewChild=Oe.first),i.iGM(Oe=i.CRH())&&(le.editableInputViewChild=Oe.first),i.iGM(Oe=i.CRH())&&(le.itemsViewChild=Oe.first),i.iGM(Oe=i.CRH())&&(le.scroller=Oe.first),i.iGM(Oe=i.CRH())&&(le.overlayViewChild=Oe.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(Y,le){2&Y&&i.ekj("p-inputwrapper-filled",le.filled)("p-inputwrapper-focus",le.focused||le.overlayVisible)},inputs:{scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",overlayDirection:"overlayDirection",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[i._Bn([Mn])],decls:14,vars:32,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","pAutoFocus","","role","combobox",3,"disabled","autofocus","focus","blur","keydown"],["in",""],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","text","class","p-dropdown-label p-inputtext","aria-haspopup","listbox",3,"disabled","input","focus","blur",4,"ngIf"],["class","p-dropdown-clear-icon pi pi-times",3,"click",4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["type","text","aria-haspopup","listbox",1,"p-dropdown-label","p-inputtext",3,"disabled","input","focus","blur"],["editableInput",""],[1,"p-dropdown-clear-icon","pi","pi-times",3,"click"],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],[1,"p-dropdown-header",3,"click"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","keydown.enter","keydown","input"],["filter",""],[1,"p-dropdown-filter-icon","pi","pi-search"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["itemslist",""],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-dropdown-item-group",3,"ngStyle"],[3,"option","selected","label","disabled","template","onClick"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(Y,le){1&Y&&(i.TgZ(0,"div",0,1),i.NdJ("click",function(nt){return le.onMouseclick(nt)}),i.TgZ(2,"div",2)(3,"input",3,4),i.NdJ("focus",function(nt){return le.onInputFocus(nt)})("blur",function(nt){return le.onInputBlur(nt)})("keydown",function(nt){return le.onKeydown(nt,!0)}),i.qZA()(),i.YNc(5,lt,3,13,"span",5),i.YNc(6,wt,2,4,"span",6),i.YNc(7,Bt,2,4,"input",7),i.YNc(8,nn,1,0,"i",8),i.TgZ(9,"div",9),i._UZ(10,"span",10),i.qZA(),i.TgZ(11,"p-overlay",11,12),i.NdJ("visibleChange",function(nt){return le.overlayVisible=nt})("onAnimationStart",function(nt){return le.onOverlayAnimationStart(nt)})("onHide",function(){return le.hide()}),i.YNc(13,Ut,9,11,"ng-template",13),i.qZA()()),2&Y&&(i.Tol(le.styleClass),i.Q6J("ngClass",i.l5B(27,gn,le.disabled,le.overlayVisible,le.focused,le.showClear&&!le.disabled))("ngStyle",le.style),i.xp6(3),i.Q6J("disabled",le.disabled)("autofocus",le.autofocus),i.uIk("id",le.inputId)("placeholder",le.placeholder)("aria-label",le.ariaLabel)("aria-expanded",!1)("aria-labelledby",le.ariaLabelledBy)("tabindex",le.tabindex)("aria-activedescendant",le.overlayVisible?le.labelId:null),i.xp6(2),i.Q6J("ngIf",!le.editable&&null!=le.label),i.xp6(1),i.Q6J("ngIf",!le.editable&&null==le.label),i.xp6(1),i.Q6J("ngIf",le.editable),i.xp6(1),i.Q6J("ngIf",le.isVisibleClearIcon),i.xp6(1),i.uIk("aria-expanded",le.overlayVisible),i.xp6(1),i.Q6J("ngClass",le.dropdownIcon),i.xp6(1),i.Q6J("visible",le.overlayVisible)("options",le.overlayOptions)("target","@parent")("appendTo",le.appendTo)("autoZIndex",le.autoZIndex)("baseZIndex",le.baseZIndex)("showTransitionOptions",le.showTransitionOptions)("hideTransitionOptions",le.hideTransitionOptions))},dependencies:[t.mk,t.sg,t.O5,t.tP,t.PC,N,L.jx,me.u,Q.T,M.P,kn],styles:[".p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}\n"],encapsulation:2,changeDetection:0}),ut})(),Fn=(()=>{class ut{}return ut.\u0275fac=function(Y){return new(Y||ut)},ut.\u0275mod=i.oAB({type:ut}),ut.\u0275inj=i.cJS({imports:[t.ez,s,L.m8,me.z,V.T,Q.v,M.E,s,L.m8,Q.v]}),ut})()},8179:(qe,re,l)=>{"use strict";l.d(re,{ML:()=>f,Z_:()=>d});var t=l(2560),i=l(4666),r=l(4356),L=l(1420),M=l(6803),v=l(3786);function y(h,T){1&h&&t.GkF(0)}function u(h,T){if(1&h&&(t.TgZ(0,"div",3),t.Hsn(1),t.YNc(2,y,1,0,"ng-container",4),t.qZA()),2&h){const b=t.oxw();t.xp6(2),t.Q6J("ngTemplateOutlet",b.headerTemplate)}}function _(h,T){1&h&&(t.TgZ(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),t._uU(4,"Heading"),t.qZA(),t.TgZ(5,"option",8),t._uU(6,"Subheading"),t.qZA(),t.TgZ(7,"option",9),t._uU(8,"Normal"),t.qZA()(),t.TgZ(9,"select",10)(10,"option",9),t._uU(11,"Sans Serif"),t.qZA(),t.TgZ(12,"option",11),t._uU(13,"Serif"),t.qZA(),t.TgZ(14,"option",12),t._uU(15,"Monospace"),t.qZA()()(),t.TgZ(16,"span",5),t._UZ(17,"button",13)(18,"button",14)(19,"button",15),t.qZA(),t.TgZ(20,"span",5),t._UZ(21,"select",16)(22,"select",17),t.qZA(),t.TgZ(23,"span",5),t._UZ(24,"button",18)(25,"button",19),t.TgZ(26,"select",20),t._UZ(27,"option",9),t.TgZ(28,"option",21),t._uU(29,"center"),t.qZA(),t.TgZ(30,"option",22),t._uU(31,"right"),t.qZA(),t.TgZ(32,"option",23),t._uU(33,"justify"),t.qZA()()(),t.TgZ(34,"span",5),t._UZ(35,"button",24)(36,"button",25)(37,"button",26),t.qZA(),t.TgZ(38,"span",5),t._UZ(39,"button",27),t.qZA()())}const p=[[["p-header"]]],C=["p-header"],g={provide:M.JU,useExisting:(0,t.Gpc)(()=>f),multi:!0};let f=(()=>{class h{constructor(b){this.el=b,this.onTextChange=new t.vpe,this.onSelectionChange=new t.vpe,this.onInit=new t.vpe,this.delayedCommand=null,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.quillElements=null}get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}ngAfterViewInit(){this.initQuillElements(),this.isAttachedQuillEditorToDOM&&this.initQuillEditor()}ngAfterViewChecked(){!this.quill&&this.isAttachedQuillEditorToDOM&&this.initQuillEditor(),this.delayedCommand&&this.isAttachedQuillEditorToDOM&&(this.delayedCommand(),this.delayedCommand=null)}ngAfterContentInit(){this.templates.forEach(b=>{"header"===b.getType()&&(this.headerTemplate=b.template)})}writeValue(b){if(this.value=b,this.quill)if(b){const P=()=>{this.quill.setContents(this.quill.clipboard.convert(this.value))};this.isAttachedQuillEditorToDOM?P():this.delayedCommand=P}else{const P=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?P():this.delayedCommand=P}}registerOnChange(b){this.onModelChange=b}registerOnTouched(b){this.onModelTouched=b}getQuill(){return this.quill}get readonly(){return this._readonly}set readonly(b){this._readonly=b,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}initQuillEditor(){this.initQuillElements();const{toolbarElement:b,editorElement:P}=this.quillElements;let W={toolbar:b},I=this.modules?{...W,...this.modules}:W;this.quill=new v(P,{modules:I,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer}),this.value&&this.quill.setContents(this.quill.clipboard.convert(this.value)),this.quill.on("text-change",(k,D,N)=>{if("user"===N){let s=L.p.findSingle(P,".ql-editor").innerHTML,V=this.quill.getText().trim();"<p><br></p>"===s&&(s=null),this.onTextChange.emit({htmlValue:s,textValue:V,delta:k,source:N}),this.onModelChange(s),this.onModelTouched()}}),this.quill.on("selection-change",(k,D,N)=>{this.onSelectionChange.emit({range:k,oldRange:D,source:N})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:L.p.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:L.p.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}}return h.\u0275fac=function(b){return new(b||h)(t.Y36(t.SBq))},h.\u0275cmp=t.Xpm({type:h,selectors:[["p-editor"]],contentQueries:function(b,P,W){if(1&b&&(t.Suo(W,r.h4,5),t.Suo(W,r.jx,4)),2&b){let I;t.iGM(I=t.CRH())&&(P.toolbar=I.first),t.iGM(I=t.CRH())&&(P.templates=I)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onTextChange:"onTextChange",onSelectionChange:"onSelectionChange",onInit:"onInit"},features:[t._Bn([g])],ngContentSelectors:C,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(b,P){1&b&&(t.F$t(p),t.TgZ(0,"div",0),t.YNc(1,u,3,1,"div",1),t.YNc(2,_,40,0,"div",1),t._UZ(3,"div",2),t.qZA()),2&b&&(t.Tol(P.styleClass),t.Q6J("ngClass","p-editor-container"),t.xp6(1),t.Q6J("ngIf",P.toolbar||P.headerTemplate),t.xp6(1),t.Q6J("ngIf",!P.toolbar&&!P.headerTemplate),t.xp6(1),t.Q6J("ngStyle",P.style))},dependencies:[i.mk,i.O5,i.tP,i.PC],styles:[".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\n"],encapsulation:2,changeDetection:0}),h})(),d=(()=>{class h{}return h.\u0275fac=function(b){return new(b||h)},h.\u0275mod=t.oAB({type:h}),h.\u0275inj=t.cJS({imports:[i.ez,r.m8]}),h})()},1227:(qe,re,l)=>{"use strict";l.d(re,{vy:()=>p,zz:()=>C});var t=l(4666),i=l(2560),r=l(6803),L=l(174),M=l(1420),v=l(9906);const y=["input"];function u(g,f){if(1&g){const d=i.EpF();i.TgZ(0,"i",3),i.NdJ("click",function(){i.CHM(d);const T=i.oxw();return i.KtG(T.clear())}),i.qZA()}}const _={provide:r.JU,useExisting:(0,i.Gpc)(()=>p),multi:!0};let p=(()=>{class g{constructor(d,h,T,b){this.document=d,this.platformId=h,this.el=T,this.cd=b,this.type="text",this.slotChar="_",this.autoClear=!0,this.showClear=!1,this.characterPattern="[A-Za-z]",this.keepBuffer=!1,this.onComplete=new i.vpe,this.onFocus=new i.vpe,this.onBlur=new i.vpe,this.onInput=new i.vpe,this.onKeydown=new i.vpe,this.onClear=new i.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.androidChrome=!0}ngOnInit(){if((0,t.NF)(this.platformId)){let d=navigator.userAgent;this.androidChrome=/chrome/i.test(d)&&/android/i.test(d)}this.initMask()}get mask(){return this._mask}set mask(d){this._mask=d,this.initMask(),this.writeValue(""),this.onModelChange(this.value)}initMask(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":`${this.characterPattern}|[0-9]`};let d=this.mask.split("");for(let h=0;h<d.length;h++){let T=d[h];"?"==T?(this.len--,this.partialPosition=h):this.defs[T]?(this.tests.push(new RegExp(this.defs[T])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),h<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(let h=0;h<d.length;h++){let T=d[h];"?"!=T&&this.buffer.push(this.defs[T]?this.getPlaceholder(h):T)}this.defaultBuffer=this.buffer.join("")}writeValue(d){this.value=d,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.value=null==this.value||null==this.value?"":this.value,this.checkVal(),this.focusText=this.inputViewChild.nativeElement.value,this.updateFilledState())}registerOnChange(d){this.onModelChange=d}registerOnTouched(d){this.onModelTouched=d}setDisabledState(d){this.disabled=d,this.cd.markForCheck()}caret(d,h){let T,b,P;if(this.inputViewChild.nativeElement.offsetParent&&this.inputViewChild.nativeElement===this.inputViewChild.nativeElement.ownerDocument.activeElement){if("number"!=typeof d)return this.inputViewChild.nativeElement.setSelectionRange?(b=this.inputViewChild.nativeElement.selectionStart,P=this.inputViewChild.nativeElement.selectionEnd):this.document.selection&&this.document.selection.createRange&&(T=this.document.selection.createRange(),b=0-T.duplicate().moveStart("character",-1e5),P=b+T.text.length),{begin:b,end:P};b=d,P="number"==typeof h?h:b,this.inputViewChild.nativeElement.setSelectionRange?this.inputViewChild.nativeElement.setSelectionRange(b,P):this.inputViewChild.nativeElement.createTextRange&&(T=this.inputViewChild.nativeElement.createTextRange(),T.collapse(!0),T.moveEnd("character",P),T.moveStart("character",b),T.select())}}isCompleted(){for(let h=this.firstNonMaskPos;h<=this.lastRequiredNonMaskPos;h++)if(this.tests[h]&&this.buffer[h]===this.getPlaceholder(h))return!1;return!0}getPlaceholder(d){return this.slotChar.charAt(d<this.slotChar.length?d:0)}seekNext(d){for(;++d<this.len&&!this.tests[d];);return d}seekPrev(d){for(;--d>=0&&!this.tests[d];);return d}shiftL(d,h){let T,b;if(!(d<0)){for(T=d,b=this.seekNext(h);T<this.len;T++)if(this.tests[T]){if(!(b<this.len&&this.tests[T].test(this.buffer[b])))break;this.buffer[T]=this.buffer[b],this.buffer[b]=this.getPlaceholder(b),b=this.seekNext(b)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,d))}}shiftR(d){let h,T,b,P;for(h=d,T=this.getPlaceholder(d);h<this.len;h++)if(this.tests[h]){if(b=this.seekNext(h),P=this.buffer[h],this.buffer[h]=T,!(b<this.len&&this.tests[b].test(P)))break;T=P}}handleAndroidInput(d){var h=this.inputViewChild.nativeElement.value,T=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>h.length){for(this.checkVal(!0);T.begin>0&&!this.tests[T.begin-1];)T.begin--;if(0===T.begin)for(;T.begin<this.firstNonMaskPos&&!this.tests[T.begin];)T.begin++;setTimeout(()=>{this.caret(T.begin,T.begin),this.updateModel(d),this.isCompleted()&&this.onComplete.emit()},0)}else{for(this.checkVal(!0);T.begin<this.len&&!this.tests[T.begin];)T.begin++;setTimeout(()=>{this.caret(T.begin,T.begin),this.updateModel(d),this.isCompleted()&&this.onComplete.emit()},0)}}onInputBlur(d){if(this.focused=!1,this.onModelTouched(),this.keepBuffer||this.checkVal(),this.updateFilledState(),this.onBlur.emit(d),this.inputViewChild.nativeElement.value!=this.focusText||this.inputViewChild.nativeElement.value!=this.value){this.updateModel(d);let h=this.document.createEvent("HTMLEvents");h.initEvent("change",!0,!1),this.inputViewChild.nativeElement.dispatchEvent(h)}}onInputKeydown(d){if(this.readonly)return;let T,b,P,W,h=d.which||d.keyCode;(0,t.NF)(this.platformId)&&(W=/iphone/i.test(M.p.getUserAgent())),this.oldVal=this.inputViewChild.nativeElement.value,this.onKeydown.emit(d),8===h||46===h||W&&127===h?(T=this.caret(),b=T.begin,P=T.end,P-b==0&&(b=46!==h?this.seekPrev(b):P=this.seekNext(b-1),P=46===h?this.seekNext(P):P),this.clearBuffer(b,P),this.shiftL(b,this.keepBuffer?P-2:P-1),this.updateModel(d),this.onInput.emit(d),d.preventDefault()):13===h?(this.onInputBlur(d),this.updateModel(d)):27===h&&(this.inputViewChild.nativeElement.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(d),d.preventDefault())}onKeyPress(d){if(!this.readonly){var b,P,W,I,h=d.which||d.keyCode,T=this.caret();d.ctrlKey||d.altKey||d.metaKey||h<32||h>34&&h<41||(h&&13!==h&&(T.end-T.begin!=0&&(this.clearBuffer(T.begin,T.end),this.shiftL(T.begin,T.end-1)),(b=this.seekNext(T.begin-1))<this.len&&(P=String.fromCharCode(h),this.tests[b].test(P)&&(this.shiftR(b),this.buffer[b]=P,this.writeBuffer(),W=this.seekNext(b),M.p.isClient&&/android/i.test(M.p.getUserAgent())?setTimeout(()=>{this.caret(W)},0):this.caret(W),T.begin<=this.lastRequiredNonMaskPos&&(I=this.isCompleted()),this.onInput.emit(d))),d.preventDefault()),this.updateModel(d),this.updateFilledState(),I&&this.onComplete.emit())}}clearBuffer(d,h){if(!this.keepBuffer){let T;for(T=d;T<h&&T<this.len;T++)this.tests[T]&&(this.buffer[T]=this.getPlaceholder(T))}}writeBuffer(){this.inputViewChild.nativeElement.value=this.buffer.join("")}checkVal(d){let b,P,W,h=this.inputViewChild.nativeElement.value,T=-1;for(b=0,W=0;b<this.len;b++)if(this.tests[b]){for(this.buffer[b]=this.getPlaceholder(b);W++<h.length;)if(P=h.charAt(W-1),this.tests[b].test(P)){this.keepBuffer||(this.buffer[b]=P),T=b;break}if(W>h.length){this.clearBuffer(b+1,this.len);break}}else this.buffer[b]===h.charAt(W)&&W++,b<this.partialPosition&&(T=b);return d?this.writeBuffer():T+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.inputViewChild.nativeElement.value&&(this.inputViewChild.nativeElement.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.inputViewChild.nativeElement.value=this.inputViewChild.nativeElement.value.substring(0,T+1)),this.partialPosition?b:this.firstNonMaskPos}onInputFocus(d){if(this.readonly)return;let h;this.focused=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.inputViewChild.nativeElement.value,h=this.keepBuffer?this.inputViewChild.nativeElement.value.length:this.checkVal(),this.caretTimeoutId=setTimeout(()=>{this.inputViewChild.nativeElement===this.inputViewChild.nativeElement.ownerDocument.activeElement&&(this.writeBuffer(),h==this.mask.replace("?","").length?this.caret(0,h):this.caret(h))},10),this.onFocus.emit(d)}onInputChange(d){this.androidChrome?this.handleAndroidInput(d):this.handleInputChange(d),this.onInput.emit(d)}handleInputChange(d){this.readonly||setTimeout(()=>{var h=this.checkVal(!0);this.caret(h),this.updateModel(d),this.isCompleted()&&this.onComplete.emit()},0)}getUnmaskedValue(){let d=[];for(let h=0;h<this.buffer.length;h++){let T=this.buffer[h];this.tests[h]&&T!=this.getPlaceholder(h)&&d.push(T)}return d.join("")}updateModel(d){const h=this.unmask?this.getUnmaskedValue():d.target.value;(null!==h||void 0!==h)&&(this.value=h,this.onModelChange(this.value))}updateFilledState(){this.filled=this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}focus(){this.inputViewChild.nativeElement.focus()}clear(){this.inputViewChild.nativeElement.value="",this.value=null,this.onModelChange(this.value),this.onClear.emit()}}return g.\u0275fac=function(d){return new(d||g)(i.Y36(t.K0),i.Y36(i.Lbi),i.Y36(i.SBq),i.Y36(i.sBO))},g.\u0275cmp=i.Xpm({type:g,selectors:[["p-inputMask"]],viewQuery:function(d,h){if(1&d&&i.Gf(y,7),2&d){let T;i.iGM(T=i.CRH())&&(h.inputViewChild=T.first)}},hostAttrs:[1,"p-element"],hostVars:6,hostBindings:function(d,h){2&d&&i.ekj("p-inputwrapper-filled",h.filled)("p-inputwrapper-focus",h.focused)("p-inputmask-clearable",h.showClear&&!h.disabled)},inputs:{type:"type",slotChar:"slotChar",autoClear:"autoClear",showClear:"showClear",style:"style",inputId:"inputId",styleClass:"styleClass",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",disabled:"disabled",readonly:"readonly",unmask:"unmask",name:"name",required:"required",characterPattern:"characterPattern",autoFocus:"autoFocus",autocomplete:"autocomplete",keepBuffer:"keepBuffer",mask:"mask"},outputs:{onComplete:"onComplete",onFocus:"onFocus",onBlur:"onBlur",onInput:"onInput",onKeydown:"onKeydown",onClear:"onClear"},features:[i._Bn([_])],decls:3,vars:18,consts:[["pInputText","","pAutoFocus","",1,"p-inputmask",3,"ngStyle","ngClass","disabled","readonly","autofocus","focus","blur","keydown","keypress","input","paste"],["input",""],["class","p-inputmask-clear-icon pi pi-times",3,"click",4,"ngIf"],[1,"p-inputmask-clear-icon","pi","pi-times",3,"click"]],template:function(d,h){1&d&&(i.TgZ(0,"input",0,1),i.NdJ("focus",function(b){return h.onInputFocus(b)})("blur",function(b){return h.onInputBlur(b)})("keydown",function(b){return h.onInputKeydown(b)})("keypress",function(b){return h.onKeyPress(b)})("input",function(b){return h.onInputChange(b)})("paste",function(b){return h.handleInputChange(b)}),i.qZA(),i.YNc(2,u,1,0,"i",2)),2&d&&(i.Q6J("ngStyle",h.style)("ngClass",h.styleClass)("disabled",h.disabled)("readonly",h.readonly)("autofocus",h.autoFocus),i.uIk("id",h.inputId)("type",h.type)("name",h.name)("placeholder",h.placeholder)("title",h.title)("size",h.size)("autocomplete",h.autocomplete)("maxlength",h.maxlength)("tabindex",h.tabindex)("aria-label",h.ariaLabel)("aria-required",h.ariaRequired)("required",h.required),i.xp6(2),i.Q6J("ngIf",null!=h.value&&h.filled&&h.showClear&&!h.disabled))},dependencies:[t.mk,t.O5,t.PC,v.o,L.P],styles:[".p-inputmask-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputmask-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),g})(),C=(()=>{class g{}return g.\u0275fac=function(d){return new(d||g)},g.\u0275mod=i.oAB({type:g}),g.\u0275inj=i.cJS({imports:[t.ez,v.j,L.E]}),g})()},7990:(qe,re,l)=>{"use strict";l.d(re,{L$:()=>b,Rn:()=>T});var t=l(4666),i=l(2560),r=l(6803),L=l(6328),M=l(1420),v=l(9906);const y=["input"];function u(P,W){if(1&P){const I=i.EpF();i.TgZ(0,"i",6),i.NdJ("click",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.clear())}),i.qZA()}}const _=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},p=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function C(P,W){if(1&P){const I=i.EpF();i.TgZ(0,"span",7)(1,"button",8),i.NdJ("mousedown",function(D){i.CHM(I);const N=i.oxw();return i.KtG(N.onUpButtonMouseDown(D))})("mouseup",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onUpButtonMouseUp())})("mouseleave",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onUpButtonMouseLeave())})("keydown",function(D){i.CHM(I);const N=i.oxw();return i.KtG(N.onUpButtonKeyDown(D))})("keyup",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onUpButtonKeyUp())}),i.qZA(),i.TgZ(2,"button",8),i.NdJ("mousedown",function(D){i.CHM(I);const N=i.oxw();return i.KtG(N.onDownButtonMouseDown(D))})("mouseup",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onDownButtonMouseUp())})("mouseleave",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onDownButtonMouseLeave())})("keydown",function(D){i.CHM(I);const N=i.oxw();return i.KtG(N.onDownButtonKeyDown(D))})("keyup",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onDownButtonKeyUp())}),i.qZA()()}if(2&P){const I=i.oxw();i.xp6(1),i.Tol(I.incrementButtonClass),i.Q6J("ngClass",i.DdM(10,_))("icon",I.incrementButtonIcon)("disabled",I.disabled),i.xp6(1),i.Tol(I.decrementButtonClass),i.Q6J("ngClass",i.DdM(11,p))("icon",I.decrementButtonIcon)("disabled",I.disabled)}}function g(P,W){if(1&P){const I=i.EpF();i.TgZ(0,"button",8),i.NdJ("mousedown",function(D){i.CHM(I);const N=i.oxw();return i.KtG(N.onUpButtonMouseDown(D))})("mouseup",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onUpButtonMouseUp())})("mouseleave",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onUpButtonMouseLeave())})("keydown",function(D){i.CHM(I);const N=i.oxw();return i.KtG(N.onUpButtonKeyDown(D))})("keyup",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onUpButtonKeyUp())}),i.qZA()}if(2&P){const I=i.oxw();i.Tol(I.incrementButtonClass),i.Q6J("ngClass",i.DdM(5,_))("icon",I.incrementButtonIcon)("disabled",I.disabled)}}function f(P,W){if(1&P){const I=i.EpF();i.TgZ(0,"button",8),i.NdJ("mousedown",function(D){i.CHM(I);const N=i.oxw();return i.KtG(N.onDownButtonMouseDown(D))})("mouseup",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onDownButtonMouseUp())})("mouseleave",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onDownButtonMouseLeave())})("keydown",function(D){i.CHM(I);const N=i.oxw();return i.KtG(N.onDownButtonKeyDown(D))})("keyup",function(){i.CHM(I);const D=i.oxw();return i.KtG(D.onDownButtonKeyUp())}),i.qZA()}if(2&P){const I=i.oxw();i.Tol(I.decrementButtonClass),i.Q6J("ngClass",i.DdM(5,p))("icon",I.decrementButtonIcon)("disabled",I.disabled)}}const d=function(P,W,I){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":P,"p-inputnumber-buttons-horizontal":W,"p-inputnumber-buttons-vertical":I}},h={provide:r.JU,useExisting:(0,i.Gpc)(()=>T),multi:!0};let T=(()=>{class P{constructor(I,k,D){this.document=I,this.el=k,this.cd=D,this.showButtons=!1,this.format=!0,this.buttonLayout="stacked",this.incrementButtonIcon="pi pi-angle-up",this.decrementButtonIcon="pi pi-angle-down",this.readonly=!1,this.step=1,this.allowEmpty=!0,this.mode="decimal",this.useGrouping=!0,this.showClear=!1,this.onInput=new i.vpe,this.onFocus=new i.vpe,this.onBlur=new i.vpe,this.onKeyDown=new i.vpe,this.onClear=new i.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.groupChar="",this.prefixChar="",this.suffixChar=""}get disabled(){return this._disabled}set disabled(I){I&&(this.focused=!1),this._disabled=I,this.timer&&this.clearTimer()}ngOnChanges(I){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(D=>!!I[D])&&this.updateConstructParser()}ngOnInit(){this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const I=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(I.map((D,N)=>[D,N]));this._numeral=new RegExp(`[${I.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=D=>k.get(D)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(I){return I.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const I=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${I.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const I=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=I.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const I=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${I.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const I=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${I.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const I=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=I.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const I=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=I.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(I){if(null!=I){if("-"===I)return I;if(this.format){let D=new Intl.NumberFormat(this.locale,this.getOptions()).format(I);return this.prefix&&(D=this.prefix+D),this.suffix&&(D+=this.suffix),D}return I.toString()}return""}parseValue(I){let k=I.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(k){if("-"===k)return k;let D=+k;return isNaN(D)?null:D}return null}repeat(I,k,D){if(this.readonly)return;let N=k||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(I,40,D)},N),this.spin(I,D)}spin(I,k){let D=this.step*k,N=this.parseValue(this.input.nativeElement.value)||0,s=this.validateValue(N+D);this.maxlength&&this.maxlength<this.formatValue(s).length||(this.updateInput(s,null,"spin",null),this.updateModel(I,s),this.handleOnInput(I,N,s))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(I){this.input.nativeElement.focus(),this.repeat(I,null,1),I.preventDefault()}onUpButtonMouseUp(){this.clearTimer()}onUpButtonMouseLeave(){this.clearTimer()}onUpButtonKeyDown(I){(32===I.keyCode||13===I.keyCode)&&this.repeat(I,null,1)}onUpButtonKeyUp(){this.clearTimer()}onDownButtonMouseDown(I){this.input.nativeElement.focus(),this.repeat(I,null,-1),I.preventDefault()}onDownButtonMouseUp(){this.clearTimer()}onDownButtonMouseLeave(){this.clearTimer()}onDownButtonKeyUp(){this.clearTimer()}onDownButtonKeyDown(I){(32===I.keyCode||13===I.keyCode)&&this.repeat(I,null,-1)}onUserInput(I){this.readonly||(this.isSpecialChar&&(I.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(I){if(this.readonly)return;if(this.lastValue=I.target.value,I.shiftKey||I.altKey)return void(this.isSpecialChar=!0);let k=I.target.selectionStart,D=I.target.selectionEnd,N=I.target.value,s=null;switch(I.altKey&&I.preventDefault(),I.which){case 38:this.spin(I,1),I.preventDefault();break;case 40:this.spin(I,-1),I.preventDefault();break;case 37:this.isNumeralChar(N.charAt(k-1))||I.preventDefault();break;case 39:this.isNumeralChar(N.charAt(k))||I.preventDefault();break;case 13:s=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(s),this.input.nativeElement.setAttribute("aria-valuenow",s),this.updateModel(I,s);break;case 8:if(I.preventDefault(),k===D){const V=N.charAt(k-1),{decimalCharIndex:Q,decimalCharIndexWithoutPrefix:me}=this.getDecimalCharIndexes(N);if(this.isNumeralChar(V)){const ue=this.getDecimalLength(N);if(this._group.test(V))this._group.lastIndex=0,s=N.slice(0,k-2)+N.slice(k-1);else if(this._decimal.test(V))this._decimal.lastIndex=0,ue?this.input.nativeElement.setSelectionRange(k-1,k-1):s=N.slice(0,k-1)+N.slice(k);else if(Q>0&&k>Q){const De=this.isDecimalMode()&&(this.minFractionDigits||0)<ue?"":"0";s=N.slice(0,k-1)+De+N.slice(k)}else 1===me?(s=N.slice(0,k-1)+"0"+N.slice(k),s=this.parseValue(s)>0?s:""):s=N.slice(0,k-1)+N.slice(k)}this.updateValue(I,s,null,"delete-single")}else s=this.deleteRange(N,k,D),this.updateValue(I,s,null,"delete-range");break;case 46:if(I.preventDefault(),k===D){const V=N.charAt(k),{decimalCharIndex:Q,decimalCharIndexWithoutPrefix:me}=this.getDecimalCharIndexes(N);if(this.isNumeralChar(V)){const ue=this.getDecimalLength(N);if(this._group.test(V))this._group.lastIndex=0,s=N.slice(0,k)+N.slice(k+2);else if(this._decimal.test(V))this._decimal.lastIndex=0,ue?this.input.nativeElement.setSelectionRange(k+1,k+1):s=N.slice(0,k)+N.slice(k+1);else if(Q>0&&k>Q){const De=this.isDecimalMode()&&(this.minFractionDigits||0)<ue?"":"0";s=N.slice(0,k)+De+N.slice(k+1)}else 1===me?(s=N.slice(0,k)+"0"+N.slice(k+1),s=this.parseValue(s)>0?s:""):s=N.slice(0,k)+N.slice(k+1)}this.updateValue(I,s,null,"delete-back-single")}else s=this.deleteRange(N,k,D),this.updateValue(I,s,null,"delete-range")}this.onKeyDown.emit(I)}onInputKeyPress(I){if(this.readonly)return;let k=I.which||I.keyCode,D=String.fromCharCode(k);const N=this.isDecimalSign(D),s=this.isMinusSign(D);13!=k&&I.preventDefault(),(48<=k&&k<=57||s||N)&&this.insert(I,D,{isDecimalSign:N,isMinusSign:s})}onPaste(I){if(!this.disabled&&!this.readonly){I.preventDefault();let k=(I.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(k){let D=this.parseValue(k);null!=D&&this.insert(I,D.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(I){return!(!this._minusSign.test(I)&&"-"!==I||(this._minusSign.lastIndex=0,0))}isDecimalSign(I){return!!this._decimal.test(I)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(I){let k=I.search(this._decimal);this._decimal.lastIndex=0;const N=I.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:k,decimalCharIndexWithoutPrefix:N}}getCharIndexes(I){const k=I.search(this._decimal);this._decimal.lastIndex=0;const D=I.search(this._minusSign);this._minusSign.lastIndex=0;const N=I.search(this._suffix);this._suffix.lastIndex=0;const s=I.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:k,minusCharIndex:D,suffixCharIndex:N,currencyCharIndex:s}}insert(I,k,D={isDecimalSign:!1,isMinusSign:!1}){const N=k.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==N)return;let s=this.input.nativeElement.selectionStart,V=this.input.nativeElement.selectionEnd,Q=this.input.nativeElement.value.trim();const{decimalCharIndex:me,minusCharIndex:ue,suffixCharIndex:De,currencyCharIndex:Ue}=this.getCharIndexes(Q);let Xe;if(D.isMinusSign)0===s&&(Xe=Q,(-1===ue||0!==V)&&(Xe=this.insertText(Q,k,0,V)),this.updateValue(I,Xe,k,"insert"));else if(D.isDecimalSign)me>0&&s===me?this.updateValue(I,Q,k,"insert"):(me>s&&me<V||-1===me&&this.maxFractionDigits)&&(Xe=this.insertText(Q,k,s,V),this.updateValue(I,Xe,k,"insert"));else{const st=this.numberFormat.resolvedOptions().maximumFractionDigits,ze=s!==V?"range-insert":"insert";if(me>0&&s>me){if(s+k.length-(me+1)<=st){const F=Ue>=s?Ue-1:De>=s?De:Q.length;Xe=Q.slice(0,s)+k+Q.slice(s+k.length,F)+Q.slice(F),this.updateValue(I,Xe,k,ze)}}else Xe=this.insertText(Q,k,s,V),this.updateValue(I,Xe,k,ze)}}insertText(I,k,D,N){if(2===("."===k?k:k.split(".")).length){const V=I.slice(D,N).search(this._decimal);return this._decimal.lastIndex=0,V>0?I.slice(0,D)+this.formatValue(k)+I.slice(N):I||this.formatValue(k)}return N-D===I.length?this.formatValue(k):0===D?k+I.slice(N):N===I.length?I.slice(0,D)+k:I.slice(0,D)+k+I.slice(N)}deleteRange(I,k,D){let N;return N=D-k===I.length?"":0===k?I.slice(D):D===I.length?I.slice(0,k):I.slice(0,k)+I.slice(D),N}initCursor(){let I=this.input.nativeElement.selectionStart,k=this.input.nativeElement.value,D=k.length,N=null,s=(this.prefixChar||"").length;k=k.replace(this._prefix,""),I-=s;let V=k.charAt(I);if(this.isNumeralChar(V))return I+s;let Q=I-1;for(;Q>=0;){if(V=k.charAt(Q),this.isNumeralChar(V)){N=Q+s;break}Q--}if(null!==N)this.input.nativeElement.setSelectionRange(N+1,N+1);else{for(Q=I;Q<D;){if(V=k.charAt(Q),this.isNumeralChar(V)){N=Q+s;break}Q++}null!==N&&this.input.nativeElement.setSelectionRange(N,N)}return N||0}onInputClick(){!this.readonly&&this.input.nativeElement.value!==M.p.getSelection()&&this.initCursor()}isNumeralChar(I){return!(1!==I.length||!(this._numeral.test(I)||this._decimal.test(I)||this._group.test(I)||this._minusSign.test(I))||(this.resetRegex(),0))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(I,k,D,N){let s=this.input.nativeElement.value,V=null;null!=k&&(V=this.parseValue(k),V=V||this.allowEmpty?V:0,this.updateInput(V,D,N,k),this.handleOnInput(I,s,V))}handleOnInput(I,k,D){this.isValueChanged(k,D)&&(this.input.nativeElement.value=this.formatValue(D),this.input.nativeElement.setAttribute("aria-valuenow",D),this.updateModel(I,D),this.onInput.emit({originalEvent:I,value:D,formattedValue:k}))}isValueChanged(I,k){return null===k&&null!==I||null!=k&&k!==("string"==typeof I?this.parseValue(I):I)}validateValue(I){return"-"===I||null==I?null:null!=this.min&&I<this.min?this.min:null!=this.max&&I>this.max?this.max:I}updateInput(I,k,D,N){k=k||"";let s=this.input.nativeElement.value,V=this.formatValue(I),Q=s.length;if(V!==N&&(V=this.concatValues(V,N)),0===Q){this.input.nativeElement.value=V,this.input.nativeElement.setSelectionRange(0,0);const ue=this.initCursor()+k.length;this.input.nativeElement.setSelectionRange(ue,ue)}else{let me=this.input.nativeElement.selectionStart,ue=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<V.length)return;this.input.nativeElement.value=V;let De=V.length;if("range-insert"===D){const Ue=this.parseValue((s||"").slice(0,me)),st=(null!==Ue?Ue.toString():"").split("").join(`(${this.groupChar})?`),ze=new RegExp(st,"g");ze.test(V);const F=k.split("").join(`(${this.groupChar})?`),Re=new RegExp(F,"g");Re.test(V.slice(ze.lastIndex)),ue=ze.lastIndex+Re.lastIndex,this.input.nativeElement.setSelectionRange(ue,ue)}else if(De===Q)"insert"===D||"delete-back-single"===D?this.input.nativeElement.setSelectionRange(ue+1,ue+1):"delete-single"===D?this.input.nativeElement.setSelectionRange(ue-1,ue-1):("delete-range"===D||"spin"===D)&&this.input.nativeElement.setSelectionRange(ue,ue);else if("delete-back-single"===D){let Ue=s.charAt(ue-1),Xe=s.charAt(ue),st=Q-De,ze=this._group.test(Xe);ze&&1===st?ue+=1:!ze&&this.isNumeralChar(Ue)&&(ue+=-1*st+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(ue,ue)}else if("-"===s&&"insert"===D){this.input.nativeElement.setSelectionRange(0,0);const Xe=this.initCursor()+k.length+1;this.input.nativeElement.setSelectionRange(Xe,Xe)}else ue+=De-Q,this.input.nativeElement.setSelectionRange(ue,ue)}this.input.nativeElement.setAttribute("aria-valuenow",I)}concatValues(I,k){if(I&&k){let D=k.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?I.replace(this.suffixChar,"").split(this._decimal)[0]+k.replace(this.suffixChar,"").slice(D)+this.suffixChar:-1!==D?I.split(this._decimal)[0]+k.slice(D):I}return I}getDecimalLength(I){if(I){const k=I.split(this._decimal);if(2===k.length)return k[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(I){this.focused=!0,this.onFocus.emit(I)}onInputBlur(I){this.focused=!1;let k=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(k),this.input.nativeElement.setAttribute("aria-valuenow",k),this.updateModel(I,k),this.onBlur.emit(I)}formattedValue(){return this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(I,k){this.value!==k&&(this.value=k,this.onModelChange(k)),this.onModelTouched()}writeValue(I){this.value=I,this.cd.markForCheck()}registerOnChange(I){this.onModelChange=I}registerOnTouched(I){this.onModelTouched=I}setDisabledState(I){this.disabled=I,this.cd.markForCheck()}get filled(){return null!=this.value&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}}return P.\u0275fac=function(I){return new(I||P)(i.Y36(t.K0),i.Y36(i.SBq),i.Y36(i.sBO))},P.\u0275cmp=i.Xpm({type:P,selectors:[["p-inputNumber"]],viewQuery:function(I,k){if(1&I&&i.Gf(y,5),2&I){let D;i.iGM(D=i.CRH())&&(k.input=D.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(I,k){2&I&&i.ekj("p-inputwrapper-filled",k.filled)("p-inputwrapper-focus",k.focused)("p-inputnumber-clearable",k.showClear&&"vertical"!=k.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[i._Bn([h]),i.TTD],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon pi pi-times",3,"click",4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","tabindex","-1",3,"ngClass","class","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[1,"p-inputnumber-clear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(I,k){1&I&&(i.TgZ(0,"span",0)(1,"input",1,2),i.NdJ("input",function(N){return k.onUserInput(N)})("keydown",function(N){return k.onInputKeyDown(N)})("keypress",function(N){return k.onInputKeyPress(N)})("paste",function(N){return k.onPaste(N)})("click",function(){return k.onInputClick()})("focus",function(N){return k.onInputFocus(N)})("blur",function(N){return k.onInputBlur(N)}),i.qZA(),i.YNc(3,u,1,0,"i",3),i.YNc(4,C,3,12,"span",4),i.YNc(5,g,1,6,"button",5),i.YNc(6,f,1,6,"button",5),i.qZA()),2&I&&(i.Tol(k.styleClass),i.Q6J("ngClass",i.kEZ(28,d,k.showButtons&&"stacked"===k.buttonLayout,k.showButtons&&"horizontal"===k.buttonLayout,k.showButtons&&"vertical"===k.buttonLayout))("ngStyle",k.style),i.xp6(1),i.Tol(k.inputStyleClass),i.Q6J("ngClass","p-inputnumber-input")("ngStyle",k.inputStyle)("value",k.formattedValue())("disabled",k.disabled)("readonly",k.readonly),i.uIk("placeholder",k.placeholder)("title",k.title)("id",k.inputId)("size",k.size)("name",k.name)("autocomplete",k.autocomplete)("maxlength",k.maxlength)("tabindex",k.tabindex)("aria-label",k.ariaLabel)("aria-required",k.ariaRequired)("required",k.required)("min",k.min)("max",k.max),i.xp6(2),i.Q6J("ngIf","vertical"!=k.buttonLayout&&k.showClear&&k.value),i.xp6(1),i.Q6J("ngIf",k.showButtons&&"stacked"===k.buttonLayout),i.xp6(1),i.Q6J("ngIf",k.showButtons&&"stacked"!==k.buttonLayout),i.xp6(1),i.Q6J("ngIf",k.showButtons&&"stacked"!==k.buttonLayout))},dependencies:[t.mk,t.O5,t.PC,v.o,L.Hq],styles:["p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),P})(),b=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=i.oAB({type:P}),P.\u0275inj=i.cJS({imports:[t.ez,v.j,L.hJ]}),P})()},9906:(qe,re,l)=>{"use strict";l.d(re,{j:()=>M,o:()=>L});var t=l(2560),i=l(4666),r=l(6803);let L=(()=>{class v{constructor(u,_,p){this.el=u,this.ngModel=_,this.cd=p}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(u){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return v.\u0275fac=function(u){return new(u||v)(t.Y36(t.SBq),t.Y36(r.On,8),t.Y36(t.sBO))},v.\u0275dir=t.lG2({type:v,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(u,_){1&u&&t.NdJ("input",function(C){return _.onInput(C)}),2&u&&t.ekj("p-filled",_.filled)}}),v})(),M=(()=>{class v{}return v.\u0275fac=function(u){return new(u||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[i.ez]}),v})()},8840:(qe,re,l)=>{"use strict";l.d(re,{Fr:()=>_,kK:()=>p});var t=l(2560),i=l(4666),r=l(1420);const M={provide:l(6803).Cf,useExisting:(0,t.Gpc)(()=>_),multi:!0},v={pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i},u={63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35};let _=(()=>{class C{constructor(f,d,h){this.document=f,this.platformId=d,this.el=h,this.ngModelChange=new t.vpe,this.isAndroid=!!(0,i.NF)(this.platformId)&&r.p.isAndroid()}get pattern(){return this._pattern}set pattern(f){this._pattern=f,this.regex=v[this._pattern]||this._pattern}isNavKeyPress(f){let d=f.keyCode;return d=r.p.getBrowser().safari&&u[d]||d,d>=33&&d<=40||13==d||9==d||27==d}isSpecialKey(f){let d=f.keyCode||f.charCode;return 9==d||13==d||27==d||16==d||17==d||d>=18&&d<=20||r.p.getBrowser().opera&&!f.shiftKey&&(8==d||d>=33&&d<=35||d>=36&&d<=39||d>=44&&d<=45)}getKey(f){let d=f.keyCode||f.charCode;return r.p.getBrowser().safari&&u[d]||d}getCharCode(f){return f.charCode||f.keyCode||f.which}findDelta(f,d){let h="";for(let T=0;T<f.length;T++)f.substr(0,T)+f.substr(T+f.length-d.length)===d&&(h=f.substr(T,f.length-d.length));return h}isValidChar(f){return this.regex.test(f)}isValidString(f){for(let d=0;d<f.length;d++)if(!this.isValidChar(f.substr(d,1)))return!1;return!0}onInput(f){if(this.isAndroid&&!this.pValidateOnly){let d=this.el.nativeElement.value,h=this.lastValue||"",T=this.findDelta(d,h),b=this.findDelta(h,d);T.length>1||!T&&!b?this.isValidString(d)||(this.el.nativeElement.value=h,this.ngModelChange.emit(h)):b||this.isValidChar(T)||(this.el.nativeElement.value=h,this.ngModelChange.emit(h)),d=this.el.nativeElement.value,this.isValidString(d)&&(this.lastValue=d)}}onKeyPress(f){if(this.isAndroid||this.pValidateOnly)return;let d=r.p.getBrowser(),h=this.getKey(f);if(d.mozilla&&(f.ctrlKey||f.altKey))return;if(17==h||18==h)return;let T=this.getCharCode(f),b=String.fromCharCode(T),P=!0;!d.mozilla&&(this.isSpecialKey(f)||!b)||(P=this.regex.test(b),P||f.preventDefault())}onPaste(f){const d=f.clipboardData||this.document.defaultView.clipboardData.getData("text");if(d){const h=d.getData("text");for(let T of h.toString())if(!this.regex.test(T))return void f.preventDefault()}}validate(f){if(this.pValidateOnly){let d=this.el.nativeElement.value;if(d&&!this.regex.test(d))return{validatePattern:!1}}}}return C.\u0275fac=function(f){return new(f||C)(t.Y36(i.K0),t.Y36(t.Lbi),t.Y36(t.SBq))},C.\u0275dir=t.lG2({type:C,selectors:[["","pKeyFilter",""]],hostAttrs:[1,"p-element"],hostBindings:function(f,d){1&f&&t.NdJ("input",function(T){return d.onInput(T)})("keypress",function(T){return d.onKeyPress(T)})("paste",function(T){return d.onPaste(T)})},inputs:{pValidateOnly:"pValidateOnly",pattern:["pKeyFilter","pattern"]},outputs:{ngModelChange:"ngModelChange"},features:[t._Bn([M])]}),C})(),p=(()=>{class C{}return C.\u0275fac=function(f){return new(f||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[i.ez]}),C})()},8547:(qe,re,l)=>{"use strict";l.d(re,{$:()=>W});var t=l(2560),i=l(4666),r=l(4538);let W=(()=>{class I{}return I.\u0275fac=function(D){return new(D||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({imports:[i.ez,r.T]}),I})()},6664:(qe,re,l)=>{"use strict";l.d(re,{T:()=>d,y:()=>h});var t=l(4851),i=l(4666),r=l(2560),L=l(4356),M=l(1420),v=l(4538),y=l(8549);function u(T,b){1&T&&r.GkF(0)}function _(T,b){if(1&T){const P=r.EpF();r.TgZ(0,"button",5),r.NdJ("click",function(I){r.CHM(P);const k=r.oxw(2);return r.KtG(k.onCloseClick(I))})("keydown.enter",function(){r.CHM(P);const I=r.oxw(2);return r.KtG(I.hide())}),r._UZ(1,"span",6),r.qZA()}if(2&T){const P=r.oxw(2);r.uIk("aria-label",P.ariaCloseLabel)}}const p=function(T,b){return{showTransitionParams:T,hideTransitionParams:b}},C=function(T,b){return{value:T,params:b}};function g(T,b){if(1&T){const P=r.EpF();r.TgZ(0,"div",1),r.NdJ("click",function(I){r.CHM(P);const k=r.oxw();return r.KtG(k.onOverlayClick(I))})("@animation.start",function(I){r.CHM(P);const k=r.oxw();return r.KtG(k.onAnimationStart(I))})("@animation.done",function(I){r.CHM(P);const k=r.oxw();return r.KtG(k.onAnimationEnd(I))}),r.TgZ(1,"div",2),r.NdJ("click",function(){r.CHM(P);const I=r.oxw();return r.KtG(I.onContentClick())})("mousedown",function(){r.CHM(P);const I=r.oxw();return r.KtG(I.onContentClick())}),r.Hsn(2),r.YNc(3,u,1,0,"ng-container",3),r.qZA(),r.YNc(4,_,2,1,"button",4),r.qZA()}if(2&T){const P=r.oxw();r.Tol(P.styleClass),r.Q6J("ngClass","p-overlaypanel p-component")("ngStyle",P.style)("@animation",r.WLB(10,C,P.overlayVisible?"open":"close",r.WLB(7,p,P.showTransitionOptions,P.hideTransitionOptions))),r.xp6(3),r.Q6J("ngTemplateOutlet",P.contentTemplate),r.xp6(1),r.Q6J("ngIf",P.showCloseIcon)}}const f=["*"];let d=(()=>{class T{constructor(P,W,I,k,D,N,s,V){this.document=P,this.platformId=W,this.el=I,this.renderer=k,this.cd=D,this.zone=N,this.config=s,this.overlayService=V,this.dismissable=!0,this.appendTo="body",this.autoZIndex=!0,this.baseZIndex=0,this.focusOnShow=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new r.vpe,this.onHide=new r.vpe,this.overlayVisible=!1,this.render=!1,this.isOverlayAnimationInProgress=!1,this.selfClick=!1}ngAfterContentInit(){this.templates.forEach(P=>{P.getType(),this.contentTemplate=P.template,this.cd.markForCheck()})}bindDocumentClickListener(){(0,i.NF)(this.platformId)&&!this.documentClickListener&&this.dismissable&&this.zone.runOutsideAngular(()=>{let P=M.p.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,P,I=>{!this.container.contains(I.target)&&this.target!==I.target&&!this.target.contains(I.target)&&!this.selfClick&&this.zone.run(()=>{this.hide()}),this.selfClick=!1,this.cd.markForCheck()})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(P,W){this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(P,W)&&(this.destroyCallback=()=>{this.show(null,W||P.currentTarget||P.target)}),this.hide()):this.show(P,W))}show(P,W){W&&P.stopPropagation(),!this.isOverlayAnimationInProgress&&(this.target=W||P.currentTarget||P.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())}onOverlayClick(P){this.overlayService.add({originalEvent:P,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(){this.selfClick=!0}hasTargetChanged(P,W){return null!=this.target&&this.target!==(W||P.currentTarget||P.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):M.p.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}align(){this.autoZIndex&&y.P9.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),M.p.absolutePosition(this.container,this.target);const P=M.p.getOffset(this.container),W=M.p.getOffset(this.target),I=this.document.defaultView.getComputedStyle(this.container).getPropertyValue("border-radius");let k=0;P.left<W.left&&(k=W.left-P.left-2*parseFloat(I)),this.container.style.setProperty("--overlayArrowLeft",`${k}px`),P.top<W.top&&(M.p.addClass(this.container,"p-overlaypanel-flipped"),this.showCloseIcon&&this.renderer.setStyle(this.container,"margin-top","-30px"))}onAnimationStart(P){"open"===P.toState&&(this.container=P.element,this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=W=>{this.container&&this.container.contains(W.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)),this.isOverlayAnimationInProgress=!0}onAnimationEnd(P){switch(P.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&y.P9.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}this.isOverlayAnimationInProgress=!1}focus(){let P=M.p.findSingle(this.container,"[autofocus]");P&&this.zone.runOutsideAngular(()=>{setTimeout(()=>P.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(P){this.hide(),P.preventDefault()}onWindowResize(P){this.overlayVisible&&!M.p.isTouchDevice()&&this.hide()}bindDocumentResizeListener(){(0,i.NF)(this.platformId)&&!this.documentResizeListener&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){(0,i.NF)(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new M.V(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&y.P9.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return T.\u0275fac=function(P){return new(P||T)(r.Y36(i.K0),r.Y36(r.Lbi),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(L.b4),r.Y36(L.F0))},T.\u0275cmp=r.Xpm({type:T,selectors:[["p-overlayPanel"]],contentQueries:function(P,W,I){if(1&P&&r.Suo(I,L.jx,4),2&P){let k;r.iGM(k=r.CRH())&&(W.templates=k)}},hostAttrs:[1,"p-element"],inputs:{dismissable:"dismissable",showCloseIcon:"showCloseIcon",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",ariaCloseLabel:"ariaCloseLabel",baseZIndex:"baseZIndex",focusOnShow:"focusOnShow",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},ngContentSelectors:f,decls:1,vars:1,consts:[[3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],[1,"p-overlaypanel-content",3,"click","mousedown"],[4,"ngTemplateOutlet"],["type","button","class","p-overlaypanel-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],["type","button","pRipple","",1,"p-overlaypanel-close","p-link",3,"click","keydown.enter"],[1,"p-overlaypanel-close-icon","pi","pi-times"]],template:function(P,W){1&P&&(r.F$t(),r.YNc(0,g,5,13,"div",0)),2&P&&r.Q6J("ngIf",W.render)},dependencies:[i.mk,i.O5,i.tP,i.PC,v.H],styles:['.p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.p-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after{border-bottom-color:transparent}.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}\n'],encapsulation:2,data:{animation:[(0,t.X$)("animation",[(0,t.SB)("void",(0,t.oB)({transform:"scaleY(0.8)",opacity:0})),(0,t.SB)("close",(0,t.oB)({opacity:0})),(0,t.SB)("open",(0,t.oB)({transform:"translateY(0)",opacity:1})),(0,t.eR)("void => open",(0,t.jt)("{{showTransitionParams}}")),(0,t.eR)("open => close",(0,t.jt)("{{hideTransitionParams}}"))])]},changeDetection:0}),T})(),h=(()=>{class T{}return T.\u0275fac=function(P){return new(P||T)},T.\u0275mod=r.oAB({type:T}),T.\u0275inj=r.cJS({imports:[i.ez,v.T,L.m8,L.m8]}),T})()},8848:(qe,re,l)=>{"use strict";l.d(re,{QK:()=>k,gz:()=>V});var t=l(4851),i=l(4666),r=l(2560),L=l(6803),M=l(4356),v=l(1420),y=l(9906),u=l(8549);const _=["input"];function p(Q,me){if(1&Q){const ue=r.EpF();r.TgZ(0,"i",5),r.NdJ("click",function(){r.CHM(ue);const Ue=r.oxw();return r.KtG(Ue.clear())}),r.qZA()}}function C(Q,me){if(1&Q){const ue=r.EpF();r.TgZ(0,"i",6),r.NdJ("click",function(){r.CHM(ue);const Ue=r.oxw();return r.KtG(Ue.onMaskToggle())}),r.ALo(1,"mapper"),r.qZA()}if(2&Q){const ue=r.oxw();r.Q6J("ngClass",r.xi3(1,1,ue.unmasked,ue.toggleIconClass))}}function g(Q,me){1&Q&&r.GkF(0)}function f(Q,me){1&Q&&r.GkF(0)}function d(Q,me){if(1&Q&&(r.ynx(0),r.YNc(1,f,1,0,"ng-container",8),r.BQk()),2&Q){const ue=r.oxw(2);r.xp6(1),r.Q6J("ngTemplateOutlet",ue.contentTemplate)}}const h=function(Q){return{width:Q}};function T(Q,me){if(1&Q&&(r.TgZ(0,"div",11),r._UZ(1,"div",0),r.ALo(2,"mapper"),r.qZA(),r.TgZ(3,"div",12),r._uU(4),r.qZA()),2&Q){const ue=r.oxw(2);r.xp6(1),r.Q6J("ngClass",r.xi3(2,3,ue.meter,ue.strengthClass))("ngStyle",r.VKq(6,h,ue.meter?ue.meter.width:"")),r.xp6(3),r.Oqu(ue.infoText)}}function b(Q,me){1&Q&&r.GkF(0)}const P=function(Q,me){return{showTransitionParams:Q,hideTransitionParams:me}},W=function(Q){return{value:"visible",params:Q}};function I(Q,me){if(1&Q){const ue=r.EpF();r.TgZ(0,"div",6,7),r.NdJ("click",function(Ue){r.CHM(ue);const Xe=r.oxw();return r.KtG(Xe.onOverlayClick(Ue))})("@overlayAnimation.start",function(Ue){r.CHM(ue);const Xe=r.oxw();return r.KtG(Xe.onAnimationStart(Ue))})("@overlayAnimation.done",function(Ue){r.CHM(ue);const Xe=r.oxw();return r.KtG(Xe.onAnimationEnd(Ue))}),r.YNc(2,g,1,0,"ng-container",8),r.YNc(3,d,2,1,"ng-container",9),r.YNc(4,T,5,8,"ng-template",null,10,r.W1O),r.YNc(6,b,1,0,"ng-container",8),r.qZA()}if(2&Q){const ue=r.MAs(5),De=r.oxw();r.Q6J("ngClass","p-password-panel p-component")("@overlayAnimation",r.VKq(9,W,r.WLB(6,P,De.showTransitionOptions,De.hideTransitionOptions))),r.xp6(2),r.Q6J("ngTemplateOutlet",De.headerTemplate),r.xp6(1),r.Q6J("ngIf",De.contentTemplate)("ngIfElse",ue),r.xp6(3),r.Q6J("ngTemplateOutlet",De.footerTemplate)}}let k=(()=>{class Q{constructor(ue,De,Ue,Xe,st){this.document=ue,this.platformId=De,this.renderer=Ue,this.el=Xe,this.zone=st,this.promptLabel="Enter a password",this.weakLabel="Weak",this.mediumLabel="Medium",this.strongLabel="Strong",this.feedback=!0}set showPassword(ue){this.el.nativeElement.type=ue?"text":"password"}ngDoCheck(){this.updateFilledState()}onInput(ue){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}createPanel(){(0,i.NF)(this.platformId)&&(this.panel=this.renderer.createElement("div"),this.renderer.addClass(this.panel,"p-password-panel"),this.renderer.addClass(this.panel,"p-component"),this.renderer.addClass(this.panel,"p-password-panel-overlay"),this.renderer.addClass(this.panel,"p-connected-overlay"),this.meter=this.renderer.createElement("div"),this.renderer.addClass(this.meter,"p-password-meter"),this.renderer.appendChild(this.panel,this.meter),this.info=this.renderer.createElement("div"),this.renderer.addClass(this.info,"p-password-info"),this.renderer.setProperty(this.info,"textContent",this.promptLabel),this.renderer.appendChild(this.panel,this.info),this.renderer.setStyle(this.panel,"minWidth",`${this.el.nativeElement.offsetWidth}px`),this.renderer.appendChild(document.body,this.panel))}showOverlay(){this.feedback&&(this.panel||this.createPanel(),this.renderer.setStyle(this.panel,"zIndex",String(++v.p.zindex)),this.renderer.setStyle(this.panel,"display","block"),this.zone.runOutsideAngular(()=>{setTimeout(()=>{v.p.addClass(this.panel,"p-connected-overlay-visible"),this.bindScrollListener(),this.bindDocumentResizeListener()},1)}),v.p.absolutePosition(this.panel,this.el.nativeElement))}hideOverlay(){this.feedback&&this.panel&&(v.p.addClass(this.panel,"p-connected-overlay-hidden"),v.p.removeClass(this.panel,"p-connected-overlay-visible"),this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.ngOnDestroy()},150)}))}onFocus(){this.showOverlay()}onBlur(){this.hideOverlay()}onKeyup(ue){if(this.feedback){let Ue=ue.target.value,Xe=null,st=null;if(0===Ue.length)Xe=this.promptLabel,st="0px 0px";else{var De=this.testStrength(Ue);De<30?(Xe=this.weakLabel,st="0px -10px"):De>=30&&De<80?(Xe=this.mediumLabel,st="0px -20px"):De>=80&&(Xe=this.strongLabel,st="0px -30px")}(!this.panel||!v.p.hasClass(this.panel,"p-connected-overlay-visible"))&&this.showOverlay(),this.renderer.setStyle(this.meter,"backgroundPosition",st),this.info.textContent=Xe}}testStrength(ue){let Ue,De=0;return Ue=ue.match("[0-9]"),De+=25*this.normalize(Ue?Ue.length:1/4,1),Ue=ue.match("[a-zA-Z]"),De+=10*this.normalize(Ue?Ue.length:.5,3),Ue=ue.match("[!@#$%^&*?_~.,;=]"),De+=35*this.normalize(Ue?Ue.length:1/6,1),Ue=ue.match("[A-Z]"),De+=30*this.normalize(Ue?Ue.length:1/6,1),De*=ue.length/8,De>100?100:De}normalize(ue,De){return ue-De<=0?ue/De:1+ue/(ue+De/4)*.5}get disabled(){return this.el.nativeElement.disabled}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new v.V(this.el.nativeElement,()=>{v.p.hasClass(this.panel,"p-connected-overlay-visible")&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentResizeListener(){(0,i.NF)(this.platformId)&&!this.documentResizeListener&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}onWindowResize(){v.p.isTouchDevice()||this.hideOverlay()}ngOnDestroy(){this.panel&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindDocumentResizeListener(),this.renderer.removeChild(this.document.body,this.panel),this.panel=null,this.meter=null,this.info=null)}}return Q.\u0275fac=function(ue){return new(ue||Q)(r.Y36(i.K0),r.Y36(r.Lbi),r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(r.R0b))},Q.\u0275dir=r.lG2({type:Q,selectors:[["","pPassword",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(ue,De){1&ue&&r.NdJ("input",function(Xe){return De.onInput(Xe)})("focus",function(){return De.onFocus()})("blur",function(){return De.onBlur()})("keyup",function(Xe){return De.onKeyup(Xe)}),2&ue&&r.ekj("p-filled",De.filled)},inputs:{promptLabel:"promptLabel",weakLabel:"weakLabel",mediumLabel:"mediumLabel",strongLabel:"strongLabel",feedback:"feedback",showPassword:"showPassword"}}),Q})(),D=(()=>{class Q{transform(ue,De,...Ue){return De(ue,...Ue)}}return Q.\u0275fac=function(ue){return new(ue||Q)},Q.\u0275pipe=r.Yjl({name:"mapper",type:Q,pure:!0}),Q})();const N={provide:L.JU,useExisting:(0,r.Gpc)(()=>s),multi:!0};let s=(()=>{class Q{constructor(ue,De,Ue,Xe,st,ze,F){this.document=ue,this.platformId=De,this.renderer=Ue,this.cd=Xe,this.config=st,this.el=ze,this.overlayService=F,this.mediumRegex="^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})",this.strongRegex="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})",this.feedback=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.showClear=!1,this.onFocus=new r.vpe,this.onBlur=new r.vpe,this.onClear=new r.vpe,this.overlayVisible=!1,this.focused=!1,this.unmasked=!1,this.value=null,this.onModelChange=()=>{},this.onModelTouched=()=>{}}ngAfterContentInit(){this.templates.forEach(ue=>{switch(ue.getType()){case"content":default:this.contentTemplate=ue.template;break;case"header":this.headerTemplate=ue.template;break;case"footer":this.footerTemplate=ue.template}})}ngOnInit(){this.infoText=this.promptText(),this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.updateUI(this.value||"")})}onAnimationStart(ue){switch(ue.toState){case"visible":this.overlay=ue.element,u.P9.set("overlay",this.overlay,this.config.zIndex.overlay),this.appendContainer(),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener();break;case"void":this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null}}onAnimationEnd(ue){"void"===ue.toState&&u.P9.clear(ue.element)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).appendChild(this.overlay))}alignOverlay(){this.appendTo?(this.overlay.style.minWidth=v.p.getOuterWidth(this.input.nativeElement)+"px",v.p.absolutePosition(this.overlay,this.input.nativeElement)):v.p.relativePosition(this.overlay,this.input.nativeElement)}onInput(ue){this.value=ue.target.value,this.onModelChange(this.value)}onInputFocus(ue){this.focused=!0,this.feedback&&(this.overlayVisible=!0),this.onFocus.emit(ue)}onInputBlur(ue){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.onModelTouched(),this.onBlur.emit(ue)}onKeyDown(ue){"Escape"===ue.key&&(this.overlayVisible=!1)}onKeyUp(ue){this.feedback&&(this.updateUI(ue.target.value),this.overlayVisible||(this.overlayVisible=!0))}updateUI(ue){let De=null,Ue=null;switch(this.testStrength(ue)){case 1:De=this.weakText(),Ue={strength:"weak",width:"33.33%"};break;case 2:De=this.mediumText(),Ue={strength:"medium",width:"66.66%"};break;case 3:De=this.strongText(),Ue={strength:"strong",width:"100%"};break;default:De=this.promptText(),Ue=null}this.meter=Ue,this.infoText=De}onMaskToggle(){this.unmasked=!this.unmasked}onOverlayClick(ue){this.overlayService.add({originalEvent:ue,target:this.el.nativeElement})}testStrength(ue){let De=0;return this.strongCheckRegExp.test(ue)?De=3:this.mediumCheckRegExp.test(ue)?De=2:ue.length&&(De=1),De}writeValue(ue){this.value=void 0===ue?null:ue,this.feedback&&this.updateUI(this.value||""),this.cd.markForCheck()}registerOnChange(ue){this.onModelChange=ue}registerOnTouched(ue){this.onModelTouched=ue}setDisabledState(ue){this.disabled=ue,this.cd.markForCheck()}bindScrollListener(){(0,i.NF)(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new v.V(this.input.nativeElement,()=>{this.overlayVisible&&(this.overlayVisible=!1)})),this.scrollHandler.bindScrollListener())}bindResizeListener(){(0,i.NF)(this.platformId)&&!this.resizeListener&&(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",()=>{this.overlayVisible&&!v.p.isTouchDevice()&&(this.overlayVisible=!1)}))}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}containerClass(ue){return{"p-password p-component p-inputwrapper":!0,"p-input-icon-right":ue}}inputFieldClass(ue){return{"p-password-input":!0,"p-disabled":ue}}toggleIconClass(ue){return ue?"pi pi-eye-slash":"pi pi-eye"}strengthClass(ue){return`p-password-strength ${ue?ue.strength:""}`}filled(){return null!=this.value&&this.value.toString().length>0}promptText(){return this.promptLabel||this.getTranslation(M.ws.PASSWORD_PROMPT)}weakText(){return this.weakLabel||this.getTranslation(M.ws.WEAK)}mediumText(){return this.mediumLabel||this.getTranslation(M.ws.MEDIUM)}strongText(){return this.strongLabel||this.getTranslation(M.ws.STRONG)}restoreAppend(){this.overlay&&this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).removeChild(this.overlay))}inputType(ue){return ue?"text":"password"}getTranslation(ue){return this.config.getTranslation(ue)}clear(){this.value=null,this.onModelChange(this.value),this.writeValue(this.value),this.onClear.emit()}ngOnDestroy(){this.overlay&&(u.P9.clear(this.overlay),this.overlay=null),this.restoreAppend(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}}return Q.\u0275fac=function(ue){return new(ue||Q)(r.Y36(i.K0),r.Y36(r.Lbi),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(M.b4),r.Y36(r.SBq),r.Y36(M.F0))},Q.\u0275cmp=r.Xpm({type:Q,selectors:[["p-password"]],contentQueries:function(ue,De,Ue){if(1&ue&&r.Suo(Ue,M.jx,4),2&ue){let Xe;r.iGM(Xe=r.CRH())&&(De.templates=Xe)}},viewQuery:function(ue,De){if(1&ue&&r.Gf(_,5),2&ue){let Ue;r.iGM(Ue=r.CRH())&&(De.input=Ue.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:8,hostBindings:function(ue,De){2&ue&&r.ekj("p-inputwrapper-filled",De.filled())("p-inputwrapper-focus",De.focused)("p-password-clearable",De.showClear)("p-password-mask",De.toggleMask)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",label:"label",disabled:"disabled",promptLabel:"promptLabel",mediumRegex:"mediumRegex",strongRegex:"strongRegex",weakLabel:"weakLabel",mediumLabel:"mediumLabel",maxLength:"maxLength",strongLabel:"strongLabel",inputId:"inputId",feedback:"feedback",appendTo:"appendTo",toggleMask:"toggleMask",inputStyleClass:"inputStyleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",styleClass:"styleClass",style:"style",inputStyle:"inputStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",placeholder:"placeholder",showClear:"showClear"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClear:"onClear"},features:[r._Bn([N])],decls:9,vars:28,consts:[[3,"ngClass","ngStyle"],["pInputText","",3,"ngClass","ngStyle","value","input","focus","blur","keyup","keydown"],["input",""],["class","p-password-clear-icon pi pi-times",3,"click",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],[1,"p-password-clear-icon","pi","pi-times",3,"click"],[3,"ngClass","click"],["overlay",""],[4,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],["content",""],[1,"p-password-meter"],["className","p-password-info"]],template:function(ue,De){1&ue&&(r.TgZ(0,"div",0),r.ALo(1,"mapper"),r.TgZ(2,"input",1,2),r.NdJ("input",function(Xe){return De.onInput(Xe)})("focus",function(Xe){return De.onInputFocus(Xe)})("blur",function(Xe){return De.onInputBlur(Xe)})("keyup",function(Xe){return De.onKeyUp(Xe)})("keydown",function(Xe){return De.onKeyDown(Xe)}),r.ALo(4,"mapper"),r.ALo(5,"mapper"),r.qZA(),r.YNc(6,p,1,0,"i",3),r.YNc(7,C,2,4,"i",4),r.YNc(8,I,7,11,"div",4),r.qZA()),2&ue&&(r.Tol(De.styleClass),r.Q6J("ngClass",r.xi3(1,19,De.toggleMask,De.containerClass))("ngStyle",De.style),r.xp6(2),r.Tol(De.inputStyleClass),r.Q6J("ngClass",r.xi3(4,22,De.disabled,De.inputFieldClass))("ngStyle",De.inputStyle)("value",De.value),r.uIk("label",De.label)("aria-label",De.ariaLabel)("aria-labelledBy",De.ariaLabelledBy)("id",De.inputId)("type",r.xi3(5,25,De.unmasked,De.inputType))("placeholder",De.placeholder)("maxlength",De.maxLength),r.xp6(4),r.Q6J("ngIf",De.showClear&&null!=De.value),r.xp6(1),r.Q6J("ngIf",De.toggleMask),r.xp6(1),r.Q6J("ngIf",De.overlayVisible))},dependencies:[i.mk,i.O5,i.tP,i.PC,y.o,D],styles:[".p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0%;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}.p-password-input::-ms-reveal,.p-password-input::-ms-clear{display:none}.p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-password-clearable{position:relative}\n"],encapsulation:2,data:{animation:[(0,t.X$)("overlayAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0,transform:"scaleY(0.8)"}),(0,t.jt)("{{showTransitionParams}}")]),(0,t.eR)(":leave",[(0,t.jt)("{{hideTransitionParams}}",(0,t.oB)({opacity:0}))])])]},changeDetection:0}),Q})(),V=(()=>{class Q{}return Q.\u0275fac=function(ue){return new(ue||Q)},Q.\u0275mod=r.oAB({type:Q}),Q.\u0275inj=r.cJS({imports:[i.ez,y.j,M.m8]}),Q})()},9902:(qe,re,l)=>{"use strict";l.d(re,{EU:()=>C,cc:()=>g});var t=l(2560),i=l(4666),r=l(6803);const L=["rb"],M=function(f,d,h){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":f,"p-disabled":d,"p-radiobutton-label-focus":h}};function v(f,d){if(1&f){const h=t.EpF();t.TgZ(0,"label",4),t.NdJ("click",function(b){t.CHM(h);const P=t.oxw();return t.KtG(P.select(b))}),t._uU(1),t.qZA()}if(2&f){const h=t.oxw(),T=t.MAs(3);t.Tol(h.labelStyleClass),t.Q6J("ngClass",t.kEZ(5,M,T.checked,h.disabled,h.focused)),t.uIk("for",h.inputId),t.xp6(1),t.Oqu(h.label)}}const y=function(f,d,h){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":f,"p-radiobutton-disabled":d,"p-radiobutton-focused":h}},u=function(f,d,h){return{"p-radiobutton-box":!0,"p-highlight":f,"p-disabled":d,"p-focus":h}},_={provide:r.JU,useExisting:(0,t.Gpc)(()=>C),multi:!0};let p=(()=>{class f{constructor(){this.accessors=[]}add(h,T){this.accessors.push([h,T])}remove(h){this.accessors=this.accessors.filter(T=>T[1]!==h)}select(h){this.accessors.forEach(T=>{this.isSameGroup(T,h)&&T[1]!==h&&T[1].writeValue(h.value)})}isSameGroup(h,T){return!!h[0].control&&h[0].control.root===T.control.control.root&&h[1].name===T.name}}return f.\u0275fac=function(h){return new(h||f)},f.\u0275prov=t.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),C=(()=>{class f{constructor(h,T,b){this.cd=h,this.injector=T,this.registry=b,this.onClick=new t.vpe,this.onFocus=new t.vpe,this.onBlur=new t.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}ngOnInit(){this.control=this.injector.get(r.a5),this.checkName(),this.registry.add(this.control,this)}handleClick(h,T,b){h.preventDefault(),!this.disabled&&(this.select(h),b&&T.focus())}select(h){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:h,value:this.value}))}writeValue(h){this.checked=h==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(h){this.onModelChange=h}registerOnTouched(h){this.onModelTouched=h}setDisabledState(h){this.disabled=h,this.cd.markForCheck()}onInputFocus(h){this.focused=!0,this.onFocus.emit(h)}onInputBlur(h){this.focused=!1,this.onModelTouched(),this.onBlur.emit(h)}onChange(h){this.select(h)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n          If you define both a name and a formControlName attribute on your radio button, their values\n          must match. Ex: <p-radioButton formControlName="food" name="food"></p-radioButton>\n        ')}}return f.\u0275fac=function(h){return new(h||f)(t.Y36(t.sBO),t.Y36(t.zs3),t.Y36(p))},f.\u0275cmp=t.Xpm({type:f,selectors:[["p-radioButton"]],viewQuery:function(h,T){if(1&h&&t.Gf(L,5),2&h){let b;t.iGM(b=t.CRH())&&(T.inputViewChild=b.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[t._Bn([_])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(h,T){if(1&h){const b=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),t.NdJ("change",function(W){return T.onChange(W)})("focus",function(W){return T.onInputFocus(W)})("blur",function(W){return T.onInputBlur(W)}),t.qZA()(),t.TgZ(4,"div",4),t.NdJ("click",function(W){t.CHM(b);const I=t.MAs(3);return t.KtG(T.handleClick(W,I,!0))}),t._UZ(5,"span",5),t.qZA()(),t.YNc(6,v,2,9,"label",6)}2&h&&(t.Tol(T.styleClass),t.Q6J("ngStyle",T.style)("ngClass",t.kEZ(15,y,T.checked,T.disabled,T.focused)),t.xp6(2),t.Q6J("checked",T.checked)("disabled",T.disabled),t.uIk("id",T.inputId)("name",T.name)("value",T.value)("tabindex",T.tabindex)("aria-checked",T.checked)("aria-label",T.ariaLabel)("aria-labelledby",T.ariaLabelledBy),t.xp6(2),t.Q6J("ngClass",t.kEZ(19,u,T.checked,T.disabled,T.focused)),t.xp6(2),t.Q6J("ngIf",T.label))},dependencies:[i.mk,i.O5,i.PC],encapsulation:2,changeDetection:0}),f})(),g=(()=>{class f{}return f.\u0275fac=function(h){return new(h||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[i.ez]}),f})()},4538:(qe,re,l)=>{"use strict";l.d(re,{H:()=>M,T:()=>v});var t=l(2560),i=l(4666),r=l(1420),L=l(4356);let M=(()=>{class y{constructor(_,p,C,g,f,d){this.document=_,this.platformId=p,this.renderer=C,this.el=g,this.zone=f,this.config=d}ngAfterViewInit(){(0,i.NF)(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(_){let p=this.getInk();if(!p||"none"===this.document.defaultView.getComputedStyle(p,null).display)return;if(r.p.removeClass(p,"p-ink-active"),!r.p.getHeight(p)&&!r.p.getWidth(p)){let d=Math.max(r.p.getOuterWidth(this.el.nativeElement),r.p.getOuterHeight(this.el.nativeElement));p.style.height=d+"px",p.style.width=d+"px"}let C=r.p.getOffset(this.el.nativeElement),g=_.pageX-C.left+this.document.body.scrollTop-r.p.getWidth(p)/2,f=_.pageY-C.top+this.document.body.scrollLeft-r.p.getHeight(p)/2;this.renderer.setStyle(p,"top",f+"px"),this.renderer.setStyle(p,"left",g+"px"),r.p.addClass(p,"p-ink-active"),this.timeout=setTimeout(()=>{let d=this.getInk();d&&r.p.removeClass(d,"p-ink-active")},401)}getInk(){const _=this.el.nativeElement.children;for(let p=0;p<_.length;p++)if("string"==typeof _[p].className&&-1!==_[p].className.indexOf("p-ink"))return _[p];return null}resetInk(){let _=this.getInk();_&&r.p.removeClass(_,"p-ink-active")}onAnimationEnd(_){this.timeout&&clearTimeout(this.timeout),r.p.removeClass(_.currentTarget,"p-ink-active")}create(){let _=this.renderer.createElement("span");this.renderer.addClass(_,"p-ink"),this.renderer.appendChild(this.el.nativeElement,_),this.animationListener||(this.animationListener=this.renderer.listen(_,"animationend",this.onAnimationEnd.bind(this)))}remove(){let _=this.getInk();_&&(this.mouseDownListener(),this.animationListener(),this.mouseDownListener=null,this.animationListener=null,r.p.removeElement(_))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return y.\u0275fac=function(_){return new(_||y)(t.Y36(i.K0),t.Y36(t.Lbi),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(L.b4,8))},y.\u0275dir=t.lG2({type:y,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),y})(),v=(()=>{class y{}return y.\u0275fac=function(_){return new(_||y)},y.\u0275mod=t.oAB({type:y}),y.\u0275inj=t.cJS({imports:[i.ez]}),y})()},3705:(qe,re,l)=>{"use strict";l.d(re,{T:()=>F,v:()=>Re});var t=l(4666),i=l(2560),r=l(4356),L=l(1420);const M=["element"],v=["content"];function y(de,Ce){1&de&&i.GkF(0)}const u=function(de,Ce){return{$implicit:de,options:Ce}};function _(de,Ce){if(1&de&&(i.ynx(0),i.YNc(1,y,1,0,"ng-container",7),i.BQk()),2&de){const oe=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",oe.contentTemplate)("ngTemplateOutletContext",i.WLB(2,u,oe.loadedItems,oe.getContentOptions()))}}function p(de,Ce){1&de&&i.GkF(0)}function C(de,Ce){if(1&de&&(i.ynx(0),i.YNc(1,p,1,0,"ng-container",7),i.BQk()),2&de){const oe=Ce.$implicit,G=Ce.index,ye=i.oxw(3);i.xp6(1),i.Q6J("ngTemplateOutlet",ye.itemTemplate)("ngTemplateOutletContext",i.WLB(2,u,oe,ye.getOptions(G)))}}const g=function(de){return{"p-scroller-loading":de}};function f(de,Ce){if(1&de&&(i.TgZ(0,"div",8,9),i.YNc(2,C,2,5,"ng-container",10),i.qZA()),2&de){const oe=i.oxw(2);i.Q6J("ngClass",i.VKq(4,g,oe.d_loading))("ngStyle",oe.contentStyle),i.xp6(2),i.Q6J("ngForOf",oe.loadedItems)("ngForTrackBy",oe._trackBy||oe.index)}}function d(de,Ce){if(1&de&&i._UZ(0,"div",11),2&de){const oe=i.oxw(2);i.Q6J("ngStyle",oe.spacerStyle)}}function h(de,Ce){1&de&&i.GkF(0)}const T=function(de){return{numCols:de}},b=function(de){return{options:de}};function P(de,Ce){if(1&de&&(i.ynx(0),i.YNc(1,h,1,0,"ng-container",7),i.BQk()),2&de){const oe=Ce.index,G=i.oxw(4);i.xp6(1),i.Q6J("ngTemplateOutlet",G.loaderTemplate)("ngTemplateOutletContext",i.VKq(4,b,G.getLoaderOptions(oe,G.both&&i.VKq(2,T,G._numItemsInViewport.cols))))}}function W(de,Ce){if(1&de&&(i.ynx(0),i.YNc(1,P,2,6,"ng-container",14),i.BQk()),2&de){const oe=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",oe.loaderArr)}}function I(de,Ce){1&de&&i.GkF(0)}const k=function(){return{styleClass:"p-scroller-loading-icon"}};function D(de,Ce){if(1&de&&(i.ynx(0),i.YNc(1,I,1,0,"ng-container",7),i.BQk()),2&de){const oe=i.oxw(4);i.xp6(1),i.Q6J("ngTemplateOutlet",oe.loaderIconTemplate)("ngTemplateOutletContext",i.VKq(3,b,i.DdM(2,k)))}}function N(de,Ce){1&de&&i._UZ(0,"i",16)}function s(de,Ce){if(1&de&&(i.YNc(0,D,2,5,"ng-container",0),i.YNc(1,N,1,0,"ng-template",null,15,i.W1O)),2&de){const oe=i.MAs(2),G=i.oxw(3);i.Q6J("ngIf",G.loaderIconTemplate)("ngIfElse",oe)}}const V=function(de){return{"p-component-overlay":de}};function Q(de,Ce){if(1&de&&(i.TgZ(0,"div",12),i.YNc(1,W,2,1,"ng-container",0),i.YNc(2,s,3,2,"ng-template",null,13,i.W1O),i.qZA()),2&de){const oe=i.MAs(3),G=i.oxw(2);i.Q6J("ngClass",i.VKq(3,V,!G.loaderTemplate)),i.xp6(1),i.Q6J("ngIf",G.loaderTemplate)("ngIfElse",oe)}}const me=function(de,Ce,oe){return{"p-scroller":!0,"p-scroller-inline":de,"p-both-scroll":Ce,"p-horizontal-scroll":oe}};function ue(de,Ce){if(1&de){const oe=i.EpF();i.ynx(0),i.TgZ(1,"div",2,3),i.NdJ("scroll",function(ye){i.CHM(oe);const we=i.oxw();return i.KtG(we.onContainerScroll(ye))}),i.YNc(3,_,2,5,"ng-container",0),i.YNc(4,f,3,6,"ng-template",null,4,i.W1O),i.YNc(6,d,1,1,"div",5),i.YNc(7,Q,4,5,"div",6),i.qZA(),i.BQk()}if(2&de){const oe=i.MAs(5),G=i.oxw();i.xp6(1),i.Tol(G._styleClass),i.Q6J("ngStyle",G._style)("ngClass",i.kEZ(10,me,G.inline,G.both,G.horizontal)),i.uIk("id",G._id)("tabindex",G.tabindex),i.xp6(2),i.Q6J("ngIf",G.contentTemplate)("ngIfElse",oe),i.xp6(3),i.Q6J("ngIf",G._showSpacer),i.xp6(1),i.Q6J("ngIf",!G.loaderDisabled&&G._showLoader&&G.d_loading)}}function De(de,Ce){1&de&&i.GkF(0)}const Ue=function(de,Ce){return{rows:de,columns:Ce}};function Xe(de,Ce){if(1&de&&(i.ynx(0),i.YNc(1,De,1,0,"ng-container",7),i.BQk()),2&de){const oe=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",oe.contentTemplate)("ngTemplateOutletContext",i.WLB(5,u,oe.items,i.WLB(2,Ue,oe._items,oe.loadedColumns)))}}function st(de,Ce){if(1&de&&(i.Hsn(0),i.YNc(1,Xe,2,8,"ng-container",17)),2&de){const oe=i.oxw();i.xp6(1),i.Q6J("ngIf",oe.contentTemplate)}}const ze=["*"];let F=(()=>{class de{constructor(oe,G,ye,we,Fe){this.document=oe,this.platformId=G,this.renderer=ye,this.cd=we,this.zone=Fe,this.onLazyLoad=new i.vpe,this.onScroll=new i.vpe,this.onScrollIndexChange=new i.vpe,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._step=0,this._delay=0,this._resizeDelay=10,this._appendOnly=!1,this._inline=!1,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.page=0,this.isRangeChanged=!1,this.numItemsInViewport=0,this.lastScrollPos=0,this.lazyLoadState={},this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1}get id(){return this._id}set id(oe){this._id=oe}get style(){return this._style}set style(oe){this._style=oe}get styleClass(){return this._styleClass}set styleClass(oe){this._styleClass=oe}get tabindex(){return this._tabindex}set tabindex(oe){this._tabindex=oe}get items(){return this._items}set items(oe){this._items=oe}get itemSize(){return this._itemSize}set itemSize(oe){this._itemSize=oe}get scrollHeight(){return this._scrollHeight}set scrollHeight(oe){this._scrollHeight=oe}get scrollWidth(){return this._scrollWidth}set scrollWidth(oe){this._scrollWidth=oe}get orientation(){return this._orientation}set orientation(oe){this._orientation=oe}get step(){return this._step}set step(oe){this._step=oe}get delay(){return this._delay}set delay(oe){this._delay=oe}get resizeDelay(){return this._resizeDelay}set resizeDelay(oe){this._resizeDelay=oe}get appendOnly(){return this._appendOnly}set appendOnly(oe){this._appendOnly=oe}get inline(){return this._inline}set inline(oe){this._inline=oe}get lazy(){return this._lazy}set lazy(oe){this._lazy=oe}get disabled(){return this._disabled}set disabled(oe){this._disabled=oe}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(oe){this._loaderDisabled=oe}get columns(){return this._columns}set columns(oe){this._columns=oe}get showSpacer(){return this._showSpacer}set showSpacer(oe){this._showSpacer=oe}get showLoader(){return this._showLoader}set showLoader(oe){this._showLoader=oe}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(oe){this._numToleratedItems=oe}get loading(){return this._loading}set loading(oe){this._loading=oe}get autoSize(){return this._autoSize}set autoSize(oe){this._autoSize=oe}get trackBy(){return this._trackBy}set trackBy(oe){this._trackBy=oe}get options(){return this._options}set options(oe){this._options=oe,oe&&"object"==typeof oe&&Object.entries(oe).forEach(([G,ye])=>this[`_${G}`]!==ye&&(this[`_${G}`]=ye))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(oe=>this._columns?oe:oe.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}ngOnInit(){this.setInitialState()}ngOnChanges(oe){let G=!1;if(oe.loading){const{previousValue:ye,currentValue:we}=oe.loading;this.lazy&&ye!==we&&we!==this.d_loading&&(this.d_loading=we,G=!0)}if(oe.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),oe.numToleratedItems){const{previousValue:ye,currentValue:we}=oe.numToleratedItems;ye!==we&&we!==this.d_numToleratedItems&&(this.d_numToleratedItems=we)}if(oe.options){const{previousValue:ye,currentValue:we}=oe.options;this.lazy&&ye?.loading!==we?.loading&&we?.loading!==this.d_loading&&(this.d_loading=we.loading,G=!0),ye?.numToleratedItems!==we?.numToleratedItems&&we?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=we.numToleratedItems)}this.initialized&&!G&&(oe.items?.previousValue?.length!==oe.items?.currentValue?.length||oe.itemSize||oe.scrollHeight||oe.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(oe=>{switch(oe.getType()){case"content":this.contentTemplate=oe.template;break;case"item":default:this.itemTemplate=oe.template;break;case"loader":this.loaderTemplate=oe.template;break;case"loadericon":this.loaderIconTemplate=oe.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){(0,t.NF)(this.platformId)&&L.p.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=L.p.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=L.p.getHeight(this.elementViewChild.nativeElement),this.defaultContentWidth=L.p.getWidth(this.contentEl),this.defaultContentHeight=L.p.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(oe){this.contentEl=oe||this.contentViewChild?.nativeElement||L.p.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(oe){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(oe)}scrollToIndex(oe,G="auto"){const{numToleratedItems:ye}=this.calculateNumItems(),we=this.getContentPosition(),Fe=(Bt=0,nn)=>Bt<=nn?0:Bt,lt=(Bt,nn,xt)=>Bt*nn+xt,Pt=(Bt=0,nn=0)=>this.scrollTo({left:Bt,top:nn,behavior:G});let wt=0;this.both?(wt={rows:Fe(oe[0],ye[0]),cols:Fe(oe[1],ye[1])},Pt(lt(wt.cols,this._itemSize[1],we.left),lt(wt.rows,this._itemSize[0],we.top))):(wt=Fe(oe,ye),this.horizontal?Pt(lt(wt,this._itemSize,we.left),0):Pt(0,lt(wt,this._itemSize,we.top))),this.isRangeChanged=this.first!==wt,this.first=wt}scrollInView(oe,G,ye="auto"){if(G){const{first:we,viewport:Fe}=this.getRenderedRange(),lt=(Bt=0,nn=0)=>this.scrollTo({left:Bt,top:nn,behavior:ye}),wt="to-end"===G;if("to-start"===G){if(this.both)Fe.first.rows-we.rows>oe[0]?lt(Fe.first.cols*this._itemSize[1],(Fe.first.rows-1)*this._itemSize[0]):Fe.first.cols-we.cols>oe[1]&&lt((Fe.first.cols-1)*this._itemSize[1],Fe.first.rows*this._itemSize[0]);else if(Fe.first-we>oe){const Bt=(Fe.first-1)*this._itemSize;this.horizontal?lt(Bt,0):lt(0,Bt)}}else if(wt)if(this.both)Fe.last.rows-we.rows<=oe[0]+1?lt(Fe.first.cols*this._itemSize[1],(Fe.first.rows+1)*this._itemSize[0]):Fe.last.cols-we.cols<=oe[1]+1&&lt((Fe.first.cols+1)*this._itemSize[1],Fe.first.rows*this._itemSize[0]);else if(Fe.last-we<=oe+1){const Bt=(Fe.first+1)*this._itemSize;this.horizontal?lt(Bt,0):lt(0,Bt)}}else this.scrollToIndex(oe,ye)}getRenderedRange(){const oe=(we,Fe)=>Math.floor(we/(Fe||we));let G=this.first,ye=0;if(this.elementViewChild?.nativeElement){const{scrollTop:we,scrollLeft:Fe}=this.elementViewChild.nativeElement;this.both?(G={rows:oe(we,this._itemSize[0]),cols:oe(Fe,this._itemSize[1])},ye={rows:G.rows+this.numItemsInViewport.rows,cols:G.cols+this.numItemsInViewport.cols}):(G=oe(this.horizontal?Fe:we,this._itemSize),ye=G+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:G,last:ye}}}calculateNumItems(){const oe=this.getContentPosition(),G=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-oe.left:0,ye=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-oe.top:0,we=(wt,Bt)=>Math.ceil(wt/(Bt||wt)),Fe=wt=>Math.ceil(wt/2),lt=this.both?{rows:we(ye,this._itemSize[0]),cols:we(G,this._itemSize[1])}:we(this.horizontal?G:ye,this._itemSize);return{numItemsInViewport:lt,numToleratedItems:this.d_numToleratedItems||(this.both?[Fe(lt.rows),Fe(lt.cols)]:Fe(lt))}}calculateOptions(){const{numItemsInViewport:oe,numToleratedItems:G}=this.calculateNumItems(),ye=(lt,Pt,wt,Bt=!1)=>this.getLast(lt+Pt+(lt<wt?2:3)*wt,Bt),we=this.first,Fe=this.both?{rows:ye(this.first.rows,oe.rows,G[0]),cols:ye(this.first.cols,oe.cols,G[1],!0)}:ye(this.first,oe,G);this.last=Fe,this.numItemsInViewport=oe,this.d_numToleratedItems=G,this.showLoader&&(this.loaderArr=this.both?Array.from({length:oe.rows}).map(()=>Array.from({length:oe.cols})):Array.from({length:oe})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:we.cols}:0:we,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[oe,G]=[L.p.getWidth(this.contentEl),L.p.getHeight(this.contentEl)];oe!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),G!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[ye,we]=[L.p.getWidth(this.elementViewChild.nativeElement),L.p.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=ye<this.defaultWidth?ye+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=we<this.defaultHeight?we+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(oe=0,G=!1){return this._items?Math.min(G?(this._columns||this._items[0]).length:this._items.length,oe):0}getContentPosition(){if(this.contentEl){const oe=getComputedStyle(this.contentEl),G=parseFloat(oe.paddingLeft)+Math.max(parseFloat(oe.left)||0,0),ye=parseFloat(oe.paddingRight)+Math.max(parseFloat(oe.right)||0,0),we=parseFloat(oe.paddingTop)+Math.max(parseFloat(oe.top)||0,0),Fe=parseFloat(oe.paddingBottom)+Math.max(parseFloat(oe.bottom)||0,0);return{left:G,right:ye,top:we,bottom:Fe,x:G+ye,y:we+Fe}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){const oe=this.elementViewChild.nativeElement.parentElement.parentElement,G=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||oe.offsetWidth}px`,ye=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||oe.offsetHeight}px`,we=(Fe,lt)=>this.elementViewChild.nativeElement.style[Fe]=lt;this.both||this.horizontal?(we("height",ye),we("width",G)):we("height",ye)}}setSpacerSize(){if(this._items){const oe=this.getContentPosition(),G=(ye,we,Fe,lt=0)=>this.spacerStyle={...this.spacerStyle,[`${ye}`]:(we||[]).length*Fe+lt+"px"};this.both?(G("height",this._items,this._itemSize[0],oe.y),G("width",this._columns||this._items[1],this._itemSize[1],oe.x)):this.horizontal?G("width",this._columns||this._items,this._itemSize,oe.x):G("height",this._items,this._itemSize,oe.y)}}setContentPosition(oe){if(this.contentEl&&!this._appendOnly){const G=oe?oe.first:this.first,ye=(Fe,lt)=>Fe*lt,we=(Fe=0,lt=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${Fe}px, ${lt}px, 0)`};if(this.both)we(ye(G.cols,this._itemSize[1]),ye(G.rows,this._itemSize[0]));else{const Fe=ye(G,this._itemSize);this.horizontal?we(Fe,0):we(0,Fe)}}}onScrollPositionChange(oe){const G=oe.target,ye=this.getContentPosition(),we=(rt,Et)=>rt?rt>Et?rt-Et:rt:0,Fe=(rt,Et)=>Math.floor(rt/(Et||rt)),lt=(rt,Et,Ft,yt,un,bt)=>rt<=un?un:bt?Ft-yt-un:Et+un-1,Pt=(rt,Et,Ft,yt,un,bt,Jt)=>rt<=bt?0:Math.max(0,Jt?rt<Et?Ft:rt-bt:rt>Et?Ft:rt-2*bt),wt=(rt,Et,Ft,yt,un,bt=!1)=>{let Jt=Et+yt+2*un;return rt>=un&&(Jt+=un+1),this.getLast(Jt,bt)},Bt=we(G.scrollTop,ye.top),nn=we(G.scrollLeft,ye.left);let xt=this.both?{rows:0,cols:0}:0,sn=this.last,ct=!1,Ve=this.lastScrollPos;if(this.both){const rt=this.lastScrollPos.top<=Bt,Et=this.lastScrollPos.left<=nn;if(!this._appendOnly||this._appendOnly&&(rt||Et)){const Ft={rows:Fe(Bt,this._itemSize[0]),cols:Fe(nn,this._itemSize[1])},yt={rows:lt(Ft.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],rt),cols:lt(Ft.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],Et)};xt={rows:Pt(Ft.rows,yt.rows,this.first.rows,0,0,this.d_numToleratedItems[0],rt),cols:Pt(Ft.cols,yt.cols,this.first.cols,0,0,this.d_numToleratedItems[1],Et)},sn={rows:wt(Ft.rows,xt.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:wt(Ft.cols,xt.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},ct=xt.rows!==this.first.rows||sn.rows!==this.last.rows||xt.cols!==this.first.cols||sn.cols!==this.last.cols||this.isRangeChanged,Ve={top:Bt,left:nn}}}else{const rt=this.horizontal?nn:Bt,Et=this.lastScrollPos<=rt;if(!this._appendOnly||this._appendOnly&&Et){const Ft=Fe(rt,this._itemSize);xt=Pt(Ft,lt(Ft,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,Et),this.first,0,0,this.d_numToleratedItems,Et),sn=wt(Ft,xt,0,this.numItemsInViewport,this.d_numToleratedItems),ct=xt!==this.first||sn!==this.last||this.isRangeChanged,Ve=rt}}return{first:xt,last:sn,isRangeChanged:ct,scrollPos:Ve}}onScrollChange(oe){const{first:G,last:ye,isRangeChanged:we,scrollPos:Fe}=this.onScrollPositionChange(oe);if(we){const lt={first:G,last:ye};if(this.setContentPosition(lt),this.first=G,this.last=ye,this.lastScrollPos=Fe,this.handleEvents("onScrollIndexChange",lt),this._lazy&&this.isPageChanged){const Pt={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):G,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:ye,this.items.length)};(this.lazyLoadState.first!==Pt.first||this.lazyLoadState.last!==Pt.last)&&this.handleEvents("onLazyLoad",Pt),this.lazyLoadState=Pt}}}onContainerScroll(oe){if(this.handleEvents("onScroll",{originalEvent:oe}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:G}=this.onScrollPositionChange(oe);(G||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(oe),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(oe)}bindResizeListener(){(0,t.NF)(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const oe=this.document.defaultView,G=L.p.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(oe,G,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(L.p.isVisible(this.elementViewChild?.nativeElement)){const[oe,G]=[L.p.getWidth(this.elementViewChild.nativeElement),L.p.getHeight(this.elementViewChild.nativeElement)],[ye,we]=[oe!==this.defaultWidth,G!==this.defaultHeight];(this.both?ye||we:this.horizontal?ye:this.vertical&&we)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=oe,this.defaultHeight=G,this.defaultContentWidth=L.p.getWidth(this.contentEl),this.defaultContentHeight=L.p.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(oe,G){return this.options&&this.options[oe]?this.options[oe](G):this[oe].emit(G)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:oe=>this.getOptions(oe),loading:this.d_loading,getLoaderOptions:(oe,G)=>this.getLoaderOptions(oe,G),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(oe){const G=(this._items||[]).length,ye=this.both?this.first.rows+oe:this.first+oe;return{index:ye,count:G,first:0===ye,last:ye===G-1,even:ye%2==0,odd:ye%2!=0}}getLoaderOptions(oe,G){const ye=this.loaderArr.length;return{index:oe,count:ye,first:0===oe,last:oe===ye-1,even:oe%2==0,odd:oe%2!=0,...G}}}return de.\u0275fac=function(oe){return new(oe||de)(i.Y36(t.K0),i.Y36(i.Lbi),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.R0b))},de.\u0275cmp=i.Xpm({type:de,selectors:[["p-scroller"]],contentQueries:function(oe,G,ye){if(1&oe&&i.Suo(ye,r.jx,4),2&oe){let we;i.iGM(we=i.CRH())&&(G.templates=we)}},viewQuery:function(oe,G){if(1&oe&&(i.Gf(M,5),i.Gf(v,5)),2&oe){let ye;i.iGM(ye=i.CRH())&&(G.elementViewChild=ye.first),i.iGM(ye=i.CRH())&&(G.contentViewChild=ye.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[i.TTD],ngContentSelectors:ze,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(oe,G){if(1&oe&&(i.F$t(),i.YNc(0,ue,8,14,"ng-container",0),i.YNc(1,st,2,1,"ng-template",null,1,i.W1O)),2&oe){const ye=i.MAs(2);i.Q6J("ngIf",!G._disabled)("ngIfElse",ye)}},dependencies:[t.mk,t.sg,t.O5,t.tP,t.PC],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}.p-scroller-inline .p-scroller-content{position:static}\n"],encapsulation:2}),de})(),Re=(()=>{class de{}return de.\u0275fac=function(oe){return new(oe||de)},de.\u0275mod=i.oAB({type:de}),de.\u0275inj=i.cJS({imports:[t.ez,r.m8,r.m8]}),de})()},4250:(qe,re,l)=>{"use strict";l.d(re,{_:()=>p});var t=l(2560),i=l(4666);let p=(()=>{class C{}return C.\u0275fac=function(f){return new(f||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[i.ez]}),C})()},4179:(qe,re,l)=>{"use strict";l.d(re,{Y:()=>W,l:()=>I});var t=l(4851),i=l(4666),r=l(2560),L=l(4356),M=l(1420),v=l(4538),y=l(8549);function u(k,D){1&k&&r.GkF(0)}function _(k,D){if(1&k){const N=r.EpF();r.TgZ(0,"button",8),r.NdJ("click",function(V){r.CHM(N);const Q=r.oxw(2);return r.KtG(Q.close(V))})("keydown.enter",function(V){r.CHM(N);const Q=r.oxw(2);return r.KtG(Q.close(V))}),r._UZ(1,"span",9),r.qZA()}if(2&k){const N=r.oxw(2);r.uIk("aria-label",N.ariaCloseLabel)}}function p(k,D){1&k&&r.GkF(0)}function C(k,D){1&k&&r.GkF(0)}const g=function(k,D,N,s,V,Q){return{"p-sidebar":!0,"p-sidebar-active":k,"p-sidebar-left":D,"p-sidebar-right":N,"p-sidebar-top":s,"p-sidebar-bottom":V,"p-sidebar-full":Q}},f=function(k,D){return{transform:k,transition:D}},d=function(k){return{value:"visible",params:k}};function h(k,D){if(1&k){const N=r.EpF();r.TgZ(0,"div",1,2),r.NdJ("@panelState.start",function(V){r.CHM(N);const Q=r.oxw();return r.KtG(Q.onAnimationStart(V))})("@panelState.done",function(V){r.CHM(N);const Q=r.oxw();return r.KtG(Q.onAnimationEnd(V))}),r.TgZ(2,"div",3),r.YNc(3,u,1,0,"ng-container",4),r.YNc(4,_,2,1,"button",5),r.qZA(),r.TgZ(5,"div",6),r.Hsn(6),r.YNc(7,p,1,0,"ng-container",4),r.qZA(),r.TgZ(8,"div",7),r.YNc(9,C,1,0,"ng-container",4),r.qZA()()}if(2&k){const N=r.oxw();r.Tol(N.styleClass),r.Q6J("ngClass",r.HTZ(10,g,N.visible,"left"===N.position&&!N.fullScreen,"right"===N.position&&!N.fullScreen,"top"===N.position&&!N.fullScreen,"bottom"===N.position&&!N.fullScreen,N.fullScreen))("@panelState",r.VKq(20,d,r.WLB(17,f,N.transformOptions,N.transitionOptions)))("ngStyle",N.style),r.uIk("aria-modal",N.modal),r.xp6(3),r.Q6J("ngTemplateOutlet",N.headerTemplate),r.xp6(1),r.Q6J("ngIf",N.showCloseIcon),r.xp6(3),r.Q6J("ngTemplateOutlet",N.contentTemplate),r.xp6(2),r.Q6J("ngTemplateOutlet",N.footerTemplate)}}const T=["*"],b=(0,t.oQ)([(0,t.oB)({transform:"{{transform}}",opacity:0}),(0,t.jt)("{{transition}}")]),P=(0,t.oQ)([(0,t.jt)("{{transition}}",(0,t.oB)({transform:"{{transform}}",opacity:0}))]);let W=(()=>{class k{constructor(N,s,V,Q,me){this.document=N,this.el=s,this.renderer=V,this.cd=Q,this.config=me,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.modal=!0,this.dismissible=!0,this.showCloseIcon=!0,this.closeOnEscape=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.onShow=new r.vpe,this.onHide=new r.vpe,this.visibleChange=new r.vpe,this._position="left",this._fullScreen=!1,this.transformOptions="translate3d(-100%, 0px, 0px)"}ngAfterViewInit(){this.initialized=!0}ngAfterContentInit(){this.templates.forEach(N=>{switch(N.getType()){case"content":default:this.contentTemplate=N.template;break;case"header":this.headerTemplate=N.template;break;case"footer":this.footerTemplate=N.template}})}get visible(){return this._visible}set visible(N){this._visible=N}get position(){return this._position}set position(N){switch(this._position=N,N){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)"}}get fullScreen(){return this._fullScreen}set fullScreen(N){this._fullScreen=N,N&&(this.transformOptions="none")}show(){this.autoZIndex&&y.P9.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(N=!0){N&&this.onHide.emit({}),this.modal&&this.disableModality()}close(N){this.hide(),this.visibleChange.emit(!1),N.preventDefault()}enableModality(){this.mask||(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(this.container.style.zIndex)-1)),M.p.addMultipleClasses(this.mask,"p-component-overlay p-sidebar-mask p-component-overlay p-component-overlay-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",N=>{this.dismissible&&this.close(N)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&M.p.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(M.p.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&M.p.removeClass(document.body,"p-overflow-hidden"),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(N){"visible"===N.toState&&(this.container=N.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener())}onAnimationEnd(N){"void"===N.toState&&(this.hide(!1),y.P9.clear(this.container),this.unbindGlobalListeners())}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):M.p.appendChild(this.container,this.appendTo))}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"keydown",s=>{27==s.which&&parseInt(this.container.style.zIndex)===y.P9.get(this.container)&&this.close(s)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&y.P9.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}}return k.\u0275fac=function(N){return new(N||k)(r.Y36(i.K0),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(L.b4))},k.\u0275cmp=r.Xpm({type:k,selectors:[["p-sidebar"]],contentQueries:function(N,s,V){if(1&N&&r.Suo(V,L.jx,4),2&N){let Q;r.iGM(Q=r.CRH())&&(s.templates=Q)}},hostAttrs:[1,"p-element"],inputs:{appendTo:"appendTo",blockScroll:"blockScroll",style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",modal:"modal",dismissible:"dismissible",showCloseIcon:"showCloseIcon",closeOnEscape:"closeOnEscape",transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},ngContentSelectors:T,decls:1,vars:1,consts:[["role","complementary",3,"ngClass","ngStyle","class",4,"ngIf"],["role","complementary",3,"ngClass","ngStyle"],["container",""],[1,"p-sidebar-header"],[4,"ngTemplateOutlet"],["type","button","class","p-sidebar-close p-sidebar-icon p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[1,"p-sidebar-content"],[1,"p-sidebar-footer"],["type","button","pRipple","",1,"p-sidebar-close","p-sidebar-icon","p-link",3,"click","keydown.enter"],[1,"p-sidebar-close-icon","pi","pi-times"]],template:function(N,s){1&N&&(r.F$t(),r.YNc(0,h,10,22,"div",0)),2&N&&r.Q6J("ngIf",s.visible)},dependencies:[i.mk,i.O5,i.tP,i.PC,v.H],styles:[".p-sidebar{position:fixed;transition:transform .3s;display:flex;flex-direction:column}.p-sidebar-content{position:relative;overflow-y:auto;flex-grow:1}.p-sidebar-header{display:flex;align-items:center}.p-sidebar-footer{margin-top:auto}.p-sidebar-icon{display:flex;align-items:center;justify-content:center;margin-left:auto}.p-sidebar-left{top:0;left:0;width:20rem;height:100%}.p-sidebar-right{top:0;right:0;width:20rem;height:100%}.p-sidebar-top{top:0;left:0;width:100%;height:10rem}.p-sidebar-bottom{bottom:0;left:0;width:100%;height:10rem}.p-sidebar-full{width:100%;height:100%;top:0;left:0;transition:none}.p-sidebar-left.p-sidebar-sm,.p-sidebar-right.p-sidebar-sm{width:20rem}.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-md{width:40rem}.p-sidebar-left.p-sidebar-lg,.p-sidebar-right.p-sidebar-lg{width:60rem}.p-sidebar-top.p-sidebar-sm,.p-sidebar-bottom.p-sidebar-sm{height:10rem}.p-sidebar-top.p-sidebar-md,.p-sidebar-bottom.p-sidebar-md{height:20rem}.p-sidebar-top.p-sidebar-lg,.p-sidebar-bottom.p-sidebar-lg{height:30rem}@media screen and (max-width: 64em){.p-sidebar-left.p-sidebar-lg,.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-lg,.p-sidebar-right.p-sidebar-md{width:20rem}}\n"],encapsulation:2,data:{animation:[(0,t.X$)("panelState",[(0,t.eR)("void => visible",[(0,t._7)(b)]),(0,t.eR)("visible => void",[(0,t._7)(P)])])]},changeDetection:0}),k})(),I=(()=>{class k{}return k.\u0275fac=function(N){return new(N||k)},k.\u0275mod=r.oAB({type:k}),k.\u0275inj=r.cJS({imports:[i.ez,v.T,L.m8,L.m8]}),k})()},2578:(qe,re,l)=>{"use strict";l.d(re,{fz:()=>ae,lQ:()=>Vt,iA:()=>qn,UA:()=>Xi,Mo:()=>Ri,U$:()=>To});var t=l(4666),i=l(2560),r=l(6803),L=l(4356),M=l(6328),v=l(2547),y=l(1420),u=l(6999),_=l(7990),p=l(9906),C=l(4538);function g(fe,We){1&fe&&i.GkF(0)}const f=function(fe){return{$implicit:fe}};function d(fe,We){if(1&fe&&(i.TgZ(0,"div",15),i.YNc(1,g,1,0,"ng-container",16),i.qZA()),2&fe){const E=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",E.templateLeft)("ngTemplateOutletContext",i.VKq(2,f,E.paginatorState))}}function h(fe,We){if(1&fe&&(i.TgZ(0,"span",17),i._uU(1),i.qZA()),2&fe){const E=i.oxw(2);i.xp6(1),i.Oqu(E.currentPageReport)}}const T=function(fe){return{"p-disabled":fe}};function b(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(be){i.CHM(E);const Ne=i.oxw(2);return i.KtG(Ne.changePageToFirst(be))}),i._UZ(1,"span",19),i.qZA()}if(2&fe){const E=i.oxw(2);i.Q6J("disabled",E.isFirstPage()||E.empty())("ngClass",i.VKq(2,T,E.isFirstPage()||E.empty()))}}const P=function(fe){return{"p-highlight":fe}};function W(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(be){const kt=i.CHM(E).$implicit,ln=i.oxw(3);return i.KtG(ln.onPageLinkClick(be,kt-1))}),i._uU(1),i.qZA()}if(2&fe){const E=We.$implicit,ne=i.oxw(3);i.Q6J("ngClass",i.VKq(2,P,E-1==ne.getPage())),i.xp6(1),i.hij(" ",E," ")}}function I(fe,We){if(1&fe&&(i.TgZ(0,"span",20),i.YNc(1,W,2,4,"button",21),i.qZA()),2&fe){const E=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",E.pageLinks)}}function k(fe,We){if(1&fe&&i._uU(0),2&fe){const E=i.oxw(3);i.Oqu(E.currentPageReport)}}function D(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"p-dropdown",23),i.NdJ("onChange",function(be){i.CHM(E);const Ne=i.oxw(2);return i.KtG(Ne.onPageDropdownChange(be))}),i.YNc(1,k,1,1,"ng-template",24),i.qZA()}if(2&fe){const E=i.oxw(2);i.Q6J("options",E.pageItems)("ngModel",E.getPage())("disabled",E.empty())("appendTo",E.dropdownAppendTo)("scrollHeight",E.dropdownScrollHeight)}}function N(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"button",25),i.NdJ("click",function(be){i.CHM(E);const Ne=i.oxw(2);return i.KtG(Ne.changePageToLast(be))}),i._UZ(1,"span",26),i.qZA()}if(2&fe){const E=i.oxw(2);i.Q6J("disabled",E.isLastPage()||E.empty())("ngClass",i.VKq(2,T,E.isLastPage()||E.empty()))}}function s(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"p-inputNumber",27),i.NdJ("ngModelChange",function(be){i.CHM(E);const Ne=i.oxw(2);return i.KtG(Ne.changePage(be-1))}),i.qZA()}if(2&fe){const E=i.oxw(2);i.Q6J("ngModel",E.currentPage())("disabled",E.empty())}}function V(fe,We){1&fe&&i.GkF(0)}function Q(fe,We){if(1&fe&&i.YNc(0,V,1,0,"ng-container",16),2&fe){const E=We.$implicit,ne=i.oxw(4);i.Q6J("ngTemplateOutlet",ne.dropdownItemTemplate)("ngTemplateOutletContext",i.VKq(2,f,E))}}function me(fe,We){1&fe&&(i.ynx(0),i.YNc(1,Q,1,4,"ng-template",30),i.BQk())}function ue(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"p-dropdown",28),i.NdJ("ngModelChange",function(be){i.CHM(E);const Ne=i.oxw(2);return i.KtG(Ne.rows=be)})("onChange",function(be){i.CHM(E);const Ne=i.oxw(2);return i.KtG(Ne.onRppChange(be))}),i.YNc(1,me,2,0,"ng-container",29),i.qZA()}if(2&fe){const E=i.oxw(2);i.Q6J("options",E.rowsPerPageItems)("ngModel",E.rows)("disabled",E.empty())("appendTo",E.dropdownAppendTo)("scrollHeight",E.dropdownScrollHeight),i.xp6(1),i.Q6J("ngIf",E.dropdownItemTemplate)}}function De(fe,We){1&fe&&i.GkF(0)}function Ue(fe,We){if(1&fe&&(i.TgZ(0,"div",31),i.YNc(1,De,1,0,"ng-container",16),i.qZA()),2&fe){const E=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",E.templateRight)("ngTemplateOutletContext",i.VKq(2,f,E.paginatorState))}}function Xe(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"div",1),i.YNc(1,d,2,4,"div",2),i.YNc(2,h,2,1,"span",3),i.YNc(3,b,2,4,"button",4),i.TgZ(4,"button",5),i.NdJ("click",function(be){i.CHM(E);const Ne=i.oxw();return i.KtG(Ne.changePageToPrev(be))}),i._UZ(5,"span",6),i.qZA(),i.YNc(6,I,2,1,"span",7),i.YNc(7,D,2,5,"p-dropdown",8),i.TgZ(8,"button",9),i.NdJ("click",function(be){i.CHM(E);const Ne=i.oxw();return i.KtG(Ne.changePageToNext(be))}),i._UZ(9,"span",10),i.qZA(),i.YNc(10,N,2,4,"button",11),i.YNc(11,s,1,2,"p-inputNumber",12),i.YNc(12,ue,2,6,"p-dropdown",13),i.YNc(13,Ue,2,4,"div",14),i.qZA()}if(2&fe){const E=i.oxw();i.Tol(E.styleClass),i.Q6J("ngStyle",E.style)("ngClass","p-paginator p-component"),i.xp6(1),i.Q6J("ngIf",E.templateLeft),i.xp6(1),i.Q6J("ngIf",E.showCurrentPageReport),i.xp6(1),i.Q6J("ngIf",E.showFirstLastIcon),i.xp6(1),i.Q6J("disabled",E.isFirstPage()||E.empty())("ngClass",i.VKq(17,T,E.isFirstPage()||E.empty())),i.xp6(2),i.Q6J("ngIf",E.showPageLinks),i.xp6(1),i.Q6J("ngIf",E.showJumpToPageDropdown),i.xp6(1),i.Q6J("disabled",E.isLastPage()||E.empty())("ngClass",i.VKq(19,T,E.isLastPage()||E.empty())),i.xp6(2),i.Q6J("ngIf",E.showFirstLastIcon),i.xp6(1),i.Q6J("ngIf",E.showJumpToPageInput),i.xp6(1),i.Q6J("ngIf",E.rowsPerPageOptions),i.xp6(1),i.Q6J("ngIf",E.templateRight)}}let st=(()=>{class fe{constructor(E){this.cd=E,this.pageLinkSize=5,this.onPageChange=new i.vpe,this.alwaysShow=!0,this.dropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.totalRecords=0,this.rows=0,this.showPageLinks=!0,this._first=0,this._page=0}ngOnInit(){this.updatePaginatorState()}ngOnChanges(E){E.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),E.first&&(this._first=E.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),E.rows&&(this.updatePageLinks(),this.updatePaginatorState()),E.rowsPerPageOptions&&this.updateRowsPerPageOptions()}get first(){return this._first}set first(E){this._first=E}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let E of this.rowsPerPageOptions)"object"==typeof E&&E.showAll?this.rowsPerPageItems.unshift({label:E.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(E),value:E})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let E=this.getPageCount(),ne=Math.min(this.pageLinkSize,E),be=Math.max(0,Math.ceil(this.getPage()-ne/2)),Ne=Math.min(E-1,be+ne-1);return be=Math.max(0,be-(this.pageLinkSize-(Ne-be+1))),[be,Ne]}updatePageLinks(){this.pageLinks=[];let E=this.calculatePageLinkBoundaries(),be=E[1];for(let Ne=E[0];Ne<=be;Ne++)this.pageLinks.push(Ne+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let Ne=0;Ne<this.getPageCount();Ne++)this.pageItems.push({label:String(Ne+1),value:Ne})}}changePage(E){var ne=this.getPageCount();if(E>=0&&E<ne){this._first=this.rows*E;var be={page:E,first:this.first,rows:this.rows,pageCount:ne};this.updatePageLinks(),this.onPageChange.emit(be),this.updatePaginatorState()}}updateFirst(){const E=this.getPage();E>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(E-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(E){this.isFirstPage()||this.changePage(0),E.preventDefault()}changePageToPrev(E){this.changePage(this.getPage()-1),E.preventDefault()}changePageToNext(E){this.changePage(this.getPage()+1),E.preventDefault()}changePageToLast(E){this.isLastPage()||this.changePage(this.getPageCount()-1),E.preventDefault()}onPageLinkClick(E,ne){this.changePage(ne),E.preventDefault()}onRppChange(E){this.changePage(this.getPage())}onPageDropdownChange(E){this.changePage(E.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}}return fe.\u0275fac=function(E){return new(E||fe)(i.Y36(i.sBO))},fe.\u0275cmp=i.Xpm({type:fe,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"templateLeft",templateRight:"templateRight",dropdownAppendTo:"dropdownAppendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[i.TTD],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-left"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-right"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-left"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-right"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(E,ne){1&E&&i.YNc(0,Xe,14,21,"div",0),2&E&&i.Q6J("ngIf",!!ne.alwaysShow||ne.pageLinks&&ne.pageLinks.length>1)},dependencies:[t.mk,t.sg,t.O5,t.tP,t.PC,u.Lt,L.jx,_.Rn,r.JJ,r.On,C.H],styles:[".p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}\n"],encapsulation:2,changeDetection:0}),fe})(),ze=(()=>{class fe{}return fe.\u0275fac=function(E){return new(E||fe)},fe.\u0275mod=i.oAB({type:fe}),fe.\u0275inj=i.cJS({imports:[t.ez,u.kW,_.L$,r.u5,L.m8,C.T,u.kW,_.L$,r.u5,L.m8]}),fe})();var F=l(3705),Re=l(8549);function de(fe,We){if(1&fe&&i._UZ(0,"span",8),2&fe){const E=i.oxw(2).$implicit;i.Tol(E.icon),i.Q6J("ngClass","p-button-icon p-button-icon-left")}}function Ce(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,de,1,3,"span",6),i.TgZ(2,"span",7),i._uU(3),i.qZA(),i.BQk()),2&fe){const E=i.oxw().$implicit,ne=i.oxw();i.xp6(1),i.Q6J("ngIf",E.icon),i.xp6(2),i.Oqu(ne.getOptionLabel(E))}}function oe(fe,We){1&fe&&i.GkF(0)}const G=function(fe,We){return{$implicit:fe,index:We}};function ye(fe,We){if(1&fe&&i.YNc(0,oe,1,0,"ng-container",9),2&fe){const E=i.oxw(),ne=E.$implicit,be=E.index,Ne=i.oxw();i.Q6J("ngTemplateOutlet",Ne.itemTemplate)("ngTemplateOutletContext",i.WLB(2,G,ne,be))}}const we=function(fe,We,E){return{"p-highlight":fe,"p-disabled":We,"p-button-icon-only":E}};function Fe(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"div",2,3),i.NdJ("click",function(be){const Ne=i.CHM(E),kt=Ne.$implicit,ln=Ne.index,Tn=i.oxw();return i.KtG(Tn.onItemClick(be,kt,ln))})("keydown.enter",function(be){const Ne=i.CHM(E),kt=Ne.$implicit,ln=Ne.index,Tn=i.oxw();return i.KtG(Tn.onItemClick(be,kt,ln))})("blur",function(){i.CHM(E);const be=i.oxw();return i.KtG(be.onBlur())}),i.YNc(2,Ce,4,2,"ng-container",4),i.YNc(3,ye,1,5,"ng-template",null,5,i.W1O),i.qZA()}if(2&fe){const E=We.$implicit,ne=i.MAs(4),be=i.oxw();i.Tol(E.styleClass),i.Q6J("ngClass",i.kEZ(10,we,be.isSelected(E),be.disabled||be.isOptionDisabled(E),E.icon&&!be.getOptionLabel(E))),i.uIk("aria-pressed",be.isSelected(E))("title",E.title)("aria-label",E.label)("tabindex",be.disabled?null:be.tabindex)("aria-labelledby",be.getOptionLabel(E)),i.xp6(2),i.Q6J("ngIf",!be.itemTemplate)("ngIfElse",ne)}}const lt={provide:r.JU,useExisting:(0,i.Gpc)(()=>Pt),multi:!0};let Pt=(()=>{class fe{constructor(E){this.cd=E,this.tabindex=0,this.onOptionClick=new i.vpe,this.onChange=new i.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}getOptionLabel(E){return this.optionLabel?Re.gb.resolveFieldData(E,this.optionLabel):null!=E.label?E.label:E}getOptionValue(E){return this.optionValue?Re.gb.resolveFieldData(E,this.optionValue):this.optionLabel||void 0===E.value?E:E.value}isOptionDisabled(E){return this.optionDisabled?Re.gb.resolveFieldData(E,this.optionDisabled):void 0!==E.disabled&&E.disabled}writeValue(E){this.value=E,this.cd.markForCheck()}registerOnChange(E){this.onModelChange=E}registerOnTouched(E){this.onModelTouched=E}setDisabledState(E){this.disabled=E,this.cd.markForCheck()}onItemClick(E,ne,be){if(!this.disabled&&!this.isOptionDisabled(ne)){if(this.multiple)this.isSelected(ne)?this.removeOption(ne):this.value=[...this.value||[],this.getOptionValue(ne)],this.onModelChange(this.value),this.onChange.emit({originalEvent:E,value:this.value});else{let Ne=this.getOptionValue(ne);this.value!==Ne&&(this.value=this.getOptionValue(ne),this.onModelChange(this.value),this.onChange.emit({originalEvent:E,value:this.value}))}this.onOptionClick.emit({originalEvent:E,option:ne,index:be})}}onBlur(){this.onModelTouched()}removeOption(E){this.value=this.value.filter(ne=>!Re.gb.equals(ne,this.getOptionValue(E),this.dataKey))}isSelected(E){let ne=!1,be=this.getOptionValue(E);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let Ne of this.value)if(Re.gb.equals(Ne,be,this.dataKey)){ne=!0;break}}else ne=Re.gb.equals(this.getOptionValue(E),this.value,this.dataKey);return ne}}return fe.\u0275fac=function(E){return new(E||fe)(i.Y36(i.sBO))},fe.\u0275cmp=i.Xpm({type:fe,selectors:[["p-selectButton"]],contentQueries:function(E,ne,be){if(1&E&&i.Suo(be,i.Rgc,5),2&E){let Ne;i.iGM(Ne=i.CRH())&&(ne.itemTemplate=Ne.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[i._Bn([lt])],decls:2,vars:5,consts:[["role","group",3,"ngClass","ngStyle"],["class","p-button p-component","role","button","pRipple","",3,"class","ngClass","click","keydown.enter","blur",4,"ngFor","ngForOf"],["role","button","pRipple","",1,"p-button","p-component",3,"ngClass","click","keydown.enter","blur"],["btn",""],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(E,ne){1&E&&(i.TgZ(0,"div",0),i.YNc(1,Fe,5,14,"div",1),i.qZA()),2&E&&(i.Tol(ne.styleClass),i.Q6J("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",ne.style),i.xp6(1),i.Q6J("ngForOf",ne.options))},dependencies:[t.mk,t.sg,t.O5,t.tP,t.PC,C.H],styles:['.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}\n'],encapsulation:2,changeDetection:0}),fe})(),wt=(()=>{class fe{}return fe.\u0275fac=function(E){return new(E||fe)},fe.\u0275mod=i.oAB({type:fe}),fe.\u0275inj=i.cJS({imports:[t.ez,C.T]}),fe})();const Bt=function(fe,We,E){return{"p-checkbox-label-active":fe,"p-disabled":We,"p-checkbox-label-focus":E}};function nn(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"label",7),i.NdJ("click",function(be){i.CHM(E);const Ne=i.oxw(),kt=i.MAs(3);return i.KtG(Ne.onClick(be,kt))}),i._uU(1),i.qZA()}if(2&fe){const E=i.oxw();i.Q6J("ngClass",i.kEZ(3,Bt,null!=E.value,E.disabled,E.focused)),i.uIk("for",E.inputId),i.xp6(1),i.Oqu(E.label)}}const xt=function(fe,We){return{"p-checkbox p-component":!0,"p-checkbox-disabled":fe,"p-checkbox-focused":We}},sn=function(fe,We,E){return{"p-highlight":fe,"p-disabled":We,"p-focus":E}},ct={provide:r.JU,useExisting:(0,i.Gpc)(()=>Ve),multi:!0};let Ve=(()=>{class fe{constructor(E){this.cd=E,this.checkboxTrueIcon="pi pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new i.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(E,ne){!this.disabled&&!this.readonly&&(this.toggle(E),this.focused=!0,ne.focus())}onKeydown(E){32==E.keyCode&&E.preventDefault()}onKeyup(E){32==E.keyCode&&!this.readonly&&(this.toggle(E),E.preventDefault())}toggle(E){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:E,value:this.value})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(E){this.onModelChange=E}registerOnTouched(E){this.onModelTouched=E}writeValue(E){this.value=E,this.cd.markForCheck()}setDisabledState(E){this.disabled=E,this.cd.markForCheck()}}return fe.\u0275fac=function(E){return new(E||fe)(i.Y36(i.sBO))},fe.\u0275cmp=i.Xpm({type:fe,selectors:[["p-triStateCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[i._Bn([ct])],decls:7,vars:21,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","text","inputmode","none",3,"name","readonly","disabled","keyup","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(E,ne){if(1&E){const be=i.EpF();i.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),i.NdJ("keyup",function(kt){return ne.onKeyup(kt)})("keydown",function(kt){return ne.onKeydown(kt)})("focus",function(){return ne.onFocus()})("blur",function(){return ne.onBlur()}),i.qZA()(),i.TgZ(4,"div",4),i.NdJ("click",function(kt){i.CHM(be);const ln=i.MAs(3);return i.KtG(ne.onClick(kt,ln))}),i._UZ(5,"span",5),i.qZA()(),i.YNc(6,nn,2,7,"label",6)}2&E&&(i.Tol(ne.styleClass),i.Q6J("ngStyle",ne.style)("ngClass",i.WLB(14,xt,ne.disabled,ne.focused)),i.xp6(2),i.Q6J("name",ne.name)("readonly",ne.readonly)("disabled",ne.disabled),i.uIk("id",ne.inputId)("tabindex",ne.tabindex)("aria-labelledby",ne.ariaLabelledBy),i.xp6(2),i.Q6J("ngClass",i.kEZ(17,sn,null!=ne.value,ne.disabled,ne.focused)),i.uIk("aria-checked",!0===ne.value),i.xp6(1),i.Q6J("ngClass",!0===ne.value?ne.checkboxTrueIcon:!1===ne.value?ne.checkboxFalseIcon:""),i.xp6(1),i.Q6J("ngIf",ne.label))},dependencies:[t.mk,t.O5,t.PC],encapsulation:2,changeDetection:0}),fe})(),rt=(()=>{class fe{}return fe.\u0275fac=function(E){return new(E||fe)},fe.\u0275mod=i.oAB({type:fe}),fe.\u0275inj=i.cJS({imports:[t.ez]}),fe})();var Et=l(253);const Ft=["container"],yt=["resizeHelper"],un=["reorderIndicatorUp"],bt=["reorderIndicatorDown"],Jt=["wrapper"],en=["table"],mn=["thead"],En=["tfoot"],Ln=["scroller"];function dt(fe,We){if(1&fe&&(i.TgZ(0,"div",15),i._UZ(1,"i"),i.qZA()),2&fe){const E=i.oxw();i.xp6(1),i.Tol("p-datatable-loading-icon pi-spin "+E.loadingIcon)}}function Ot(fe,We){1&fe&&i.GkF(0)}function $(fe,We){if(1&fe&&(i.TgZ(0,"div",16),i.YNc(1,Ot,1,0,"ng-container",17),i.qZA()),2&fe){const E=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",E.captionTemplate)}}function pe(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"p-paginator",18),i.NdJ("onPageChange",function(be){i.CHM(E);const Ne=i.oxw();return i.KtG(Ne.onPageChange(be))}),i.qZA()}if(2&fe){const E=i.oxw();i.Q6J("rows",E.rows)("first",E.first)("totalRecords",E.totalRecords)("pageLinkSize",E.pageLinks)("alwaysShow",E.alwaysShowPaginator)("rowsPerPageOptions",E.rowsPerPageOptions)("templateLeft",E.paginatorLeftTemplate)("templateRight",E.paginatorRightTemplate)("dropdownAppendTo",E.paginatorDropdownAppendTo)("dropdownScrollHeight",E.paginatorDropdownScrollHeight)("currentPageReportTemplate",E.currentPageReportTemplate)("showFirstLastIcon",E.showFirstLastIcon)("dropdownItemTemplate",E.paginatorDropdownItemTemplate)("showCurrentPageReport",E.showCurrentPageReport)("showJumpToPageDropdown",E.showJumpToPageDropdown)("showJumpToPageInput",E.showJumpToPageInput)("showPageLinks",E.showPageLinks)}}function Ee(fe,We){1&fe&&i.GkF(0)}const Ge=function(fe,We){return{$implicit:fe,options:We}};function Zt(fe,We){if(1&fe&&i.YNc(0,Ee,1,0,"ng-container",22),2&fe){const E=We.$implicit,ne=We.options;i.oxw(2);const be=i.MAs(10);i.Q6J("ngTemplateOutlet",be)("ngTemplateOutletContext",i.WLB(2,Ge,E,ne))}}const tn=function(fe){return{height:fe}};function on(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"p-scroller",19,20),i.NdJ("onLazyLoad",function(be){i.CHM(E);const Ne=i.oxw();return i.KtG(Ne.onLazyItemLoad(be))}),i.YNc(2,Zt,1,5,"ng-template",21),i.qZA()}if(2&fe){const E=i.oxw();i.Akn(i.VKq(15,tn,"flex"!==E.scrollHeight?E.scrollHeight:void 0)),i.Q6J("items",E.processedData)("columns",E.columns)("scrollHeight","flex"!==E.scrollHeight?void 0:"100%")("itemSize",E.virtualScrollItemSize||E._virtualRowHeight)("step",E.rows)("delay",E.lazy?E.virtualScrollDelay:0)("inline",!0)("lazy",E.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",E.loadingBodyTemplate)("options",E.virtualScrollOptions)("autoSize",!0)}}function Un(fe,We){1&fe&&i.GkF(0)}const vn=function(fe){return{columns:fe}};function zt(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,Un,1,0,"ng-container",22),i.BQk()),2&fe){const E=i.oxw(),ne=i.MAs(10);i.xp6(1),i.Q6J("ngTemplateOutlet",ne)("ngTemplateOutletContext",i.WLB(4,Ge,E.processedData,i.VKq(2,vn,E.columns)))}}function Ht(fe,We){1&fe&&i.GkF(0)}function pt(fe,We){1&fe&&i.GkF(0)}function Dt(fe,We){if(1&fe&&i._UZ(0,"tbody",31),2&fe){const E=i.oxw().options,ne=i.oxw();i.Q6J("value",ne.frozenValue)("frozenRows",!0)("pTableBody",E.columns)("pTableBodyTemplate",ne.frozenBodyTemplate)("frozen",!0)}}function ot(fe,We){if(1&fe&&i._UZ(0,"tbody",32),2&fe){const E=i.oxw().options;i.Akn("height: calc("+E.spacerStyle.height+" - "+E.rows.length*E.itemSize+"px);")}}function Be(fe,We){1&fe&&i.GkF(0)}const at=function(fe){return{$implicit:fe}};function Gt(fe,We){if(1&fe&&(i.TgZ(0,"tfoot",33,34),i.YNc(2,Be,1,0,"ng-container",22),i.qZA()),2&fe){const E=i.oxw().options,ne=i.oxw();i.xp6(2),i.Q6J("ngTemplateOutlet",ne.footerGroupedTemplate||ne.footerTemplate)("ngTemplateOutletContext",i.VKq(2,at,E.columns))}}const Ut=function(fe,We,E){return{"p-datatable-table":!0,"p-datatable-scrollable-table":fe,"p-datatable-resizable-table":We,"p-datatable-resizable-table-fit":E}};function gn(fe,We){if(1&fe&&(i.TgZ(0,"table",23,24),i.YNc(2,Ht,1,0,"ng-container",22),i.TgZ(3,"thead",25,26),i.YNc(5,pt,1,0,"ng-container",22),i.qZA(),i.YNc(6,Dt,1,5,"tbody",27),i._UZ(7,"tbody",28),i.YNc(8,ot,1,2,"tbody",29),i.YNc(9,Gt,3,4,"tfoot",30),i.qZA()),2&fe){const E=We.options,ne=i.oxw();i.Akn(ne.tableStyle),i.Tol(ne.tableStyleClass),i.Q6J("ngClass",i.kEZ(20,Ut,ne.scrollable,ne.resizableColumns,ne.resizableColumns&&"fit"===ne.columnResizeMode)),i.uIk("id",ne.id+"-table"),i.xp6(2),i.Q6J("ngTemplateOutlet",ne.colGroupTemplate)("ngTemplateOutletContext",i.VKq(24,at,E.columns)),i.xp6(3),i.Q6J("ngTemplateOutlet",ne.headerGroupedTemplate||ne.headerTemplate)("ngTemplateOutletContext",i.VKq(26,at,E.columns)),i.xp6(1),i.Q6J("ngIf",ne.frozenValue||ne.frozenBodyTemplate),i.xp6(1),i.Akn(E.contentStyle),i.Q6J("ngClass",E.contentStyleClass)("value",ne.dataToRender(E.rows))("pTableBody",E.columns)("pTableBodyTemplate",ne.bodyTemplate)("scrollerOptions",E),i.xp6(1),i.Q6J("ngIf",E.spacerStyle),i.xp6(1),i.Q6J("ngIf",ne.footerGroupedTemplate||ne.footerTemplate)}}function Mn(fe,We){if(1&fe){const E=i.EpF();i.TgZ(0,"p-paginator",35),i.NdJ("onPageChange",function(be){i.CHM(E);const Ne=i.oxw();return i.KtG(Ne.onPageChange(be))}),i.qZA()}if(2&fe){const E=i.oxw();i.Q6J("rows",E.rows)("first",E.first)("totalRecords",E.totalRecords)("pageLinkSize",E.pageLinks)("alwaysShow",E.alwaysShowPaginator)("rowsPerPageOptions",E.rowsPerPageOptions)("templateLeft",E.paginatorLeftTemplate)("templateRight",E.paginatorRightTemplate)("dropdownAppendTo",E.paginatorDropdownAppendTo)("dropdownScrollHeight",E.paginatorDropdownScrollHeight)("currentPageReportTemplate",E.currentPageReportTemplate)("showFirstLastIcon",E.showFirstLastIcon)("dropdownItemTemplate",E.paginatorDropdownItemTemplate)("showCurrentPageReport",E.showCurrentPageReport)("showJumpToPageDropdown",E.showJumpToPageDropdown)("showJumpToPageInput",E.showJumpToPageInput)("showPageLinks",E.showPageLinks)}}function kn(fe,We){1&fe&&i.GkF(0)}function Rn(fe,We){if(1&fe&&(i.TgZ(0,"div",36),i.YNc(1,kn,1,0,"ng-container",17),i.qZA()),2&fe){const E=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",E.summaryTemplate)}}function Fn(fe,We){1&fe&&i._UZ(0,"div",37,38)}function ut(fe,We){1&fe&&i._UZ(0,"span",39,40)}function Je(fe,We){1&fe&&i._UZ(0,"span",41,42)}const Y=function(fe,We,E){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":fe,"p-datatable-scrollable":We,"p-datatable-flex-scrollable":E}},le=function(fe){return{maxHeight:fe}},Oe=["pTableBody",""];function nt(fe,We){1&fe&&i.GkF(0)}const Xt=function(fe,We,E,ne,be){return{$implicit:fe,rowIndex:We,columns:E,editing:ne,frozen:be}};function Dn(fe,We){if(1&fe&&(i.ynx(0,3),i.YNc(1,nt,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw(),ne=E.$implicit,be=E.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",Ne.dt.groupHeaderTemplate)("ngTemplateOutletContext",i.qbA(2,Xt,ne,Ne.getRowIndex(be),Ne.columns,"row"===Ne.dt.editMode&&Ne.dt.isRowEditing(ne),Ne.frozen))}}function St(fe,We){1&fe&&i.GkF(0)}function Vn(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,St,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw(),ne=E.$implicit,be=E.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",ne?Ne.template:Ne.dt.loadingBodyTemplate)("ngTemplateOutletContext",i.qbA(2,Xt,ne,Ne.getRowIndex(be),Ne.columns,"row"===Ne.dt.editMode&&Ne.dt.isRowEditing(ne),Ne.frozen))}}function He(fe,We){1&fe&&i.GkF(0)}const ht=function(fe,We,E,ne,be,Ne,kt){return{$implicit:fe,rowIndex:We,columns:E,editing:ne,frozen:be,rowgroup:Ne,rowspan:kt}};function Ze(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,He,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw(),ne=E.$implicit,be=E.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",ne?Ne.template:Ne.dt.loadingBodyTemplate)("ngTemplateOutletContext",i.Hh0(2,ht,ne,Ne.getRowIndex(be),Ne.columns,"row"===Ne.dt.editMode&&Ne.dt.isRowEditing(ne),Ne.frozen,Ne.shouldRenderRowspan(Ne.value,ne,be),Ne.calculateRowGroupSize(Ne.value,ne,be)))}}function Kt(fe,We){1&fe&&i.GkF(0)}function Hn(fe,We){if(1&fe&&(i.ynx(0,3),i.YNc(1,Kt,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw(),ne=E.$implicit,be=E.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",Ne.dt.groupFooterTemplate)("ngTemplateOutletContext",i.qbA(2,Xt,ne,Ne.getRowIndex(be),Ne.columns,"row"===Ne.dt.editMode&&Ne.dt.isRowEditing(ne),Ne.frozen))}}function ei(fe,We){if(1&fe&&(i.YNc(0,Dn,2,8,"ng-container",2),i.YNc(1,Vn,2,8,"ng-container",0),i.YNc(2,Ze,2,10,"ng-container",0),i.YNc(3,Hn,2,8,"ng-container",2)),2&fe){const E=We.$implicit,ne=We.index,be=i.oxw(2);i.Q6J("ngIf",be.dt.groupHeaderTemplate&&!be.dt.virtualScroll&&"subheader"===be.dt.rowGroupMode&&be.shouldRenderRowGroupHeader(be.value,E,ne)),i.xp6(1),i.Q6J("ngIf","rowspan"!==be.dt.rowGroupMode),i.xp6(1),i.Q6J("ngIf","rowspan"===be.dt.rowGroupMode),i.xp6(1),i.Q6J("ngIf",be.dt.groupFooterTemplate&&!be.dt.virtualScroll&&"subheader"===be.dt.rowGroupMode&&be.shouldRenderRowGroupFooter(be.value,E,ne))}}function ai(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,ei,4,4,"ng-template",1),i.BQk()),2&fe){const E=i.oxw();i.xp6(1),i.Q6J("ngForOf",E.value)("ngForTrackBy",E.dt.rowTrackBy)}}function xn(fe,We){1&fe&&i.GkF(0)}const ni=function(fe,We,E,ne,be,Ne){return{$implicit:fe,rowIndex:We,columns:E,expanded:ne,editing:be,frozen:Ne}};function Oi(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,xn,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw(),ne=E.$implicit,be=E.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",Ne.template)("ngTemplateOutletContext",i.HTZ(2,ni,ne,Ne.getRowIndex(be),Ne.columns,Ne.dt.isRowExpanded(ne),"row"===Ne.dt.editMode&&Ne.dt.isRowEditing(ne),Ne.frozen))}}function so(fe,We){1&fe&&i.GkF(0)}function Ii(fe,We){if(1&fe&&(i.ynx(0,3),i.YNc(1,so,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw(),ne=E.$implicit,be=E.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",Ne.dt.groupHeaderTemplate)("ngTemplateOutletContext",i.HTZ(2,ni,ne,Ne.getRowIndex(be),Ne.columns,Ne.dt.isRowExpanded(ne),"row"===Ne.dt.editMode&&Ne.dt.isRowEditing(ne),Ne.frozen))}}function yo(fe,We){1&fe&&i.GkF(0)}function ao(fe,We){1&fe&&i.GkF(0)}function Fi(fe,We){if(1&fe&&(i.ynx(0,3),i.YNc(1,ao,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw(2),ne=E.$implicit,be=E.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",Ne.dt.groupFooterTemplate)("ngTemplateOutletContext",i.HTZ(2,ni,ne,Ne.getRowIndex(be),Ne.columns,Ne.dt.isRowExpanded(ne),"row"===Ne.dt.editMode&&Ne.dt.isRowEditing(ne),Ne.frozen))}}const Di=function(fe,We,E,ne){return{$implicit:fe,rowIndex:We,columns:E,frozen:ne}};function pn(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,yo,1,0,"ng-container",4),i.YNc(2,Fi,2,9,"ng-container",2),i.BQk()),2&fe){const E=i.oxw(),ne=E.$implicit,be=E.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",Ne.dt.expandedRowTemplate)("ngTemplateOutletContext",i.l5B(3,Di,ne,Ne.getRowIndex(be),Ne.columns,Ne.frozen)),i.xp6(1),i.Q6J("ngIf",Ne.dt.groupFooterTemplate&&"subheader"===Ne.dt.rowGroupMode&&Ne.shouldRenderRowGroupFooter(Ne.value,ne,Ne.getRowIndex(be)))}}function $n(fe,We){if(1&fe&&(i.YNc(0,Oi,2,9,"ng-container",0),i.YNc(1,Ii,2,9,"ng-container",2),i.YNc(2,pn,3,8,"ng-container",0)),2&fe){const E=We.$implicit,ne=We.index,be=i.oxw(2);i.Q6J("ngIf",!be.dt.groupHeaderTemplate),i.xp6(1),i.Q6J("ngIf",be.dt.groupHeaderTemplate&&"subheader"===be.dt.rowGroupMode&&be.shouldRenderRowGroupHeader(be.value,E,be.getRowIndex(ne))),i.xp6(1),i.Q6J("ngIf",be.dt.isRowExpanded(E))}}function bi(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,$n,3,3,"ng-template",1),i.BQk()),2&fe){const E=i.oxw();i.xp6(1),i.Q6J("ngForOf",E.value)("ngForTrackBy",E.dt.rowTrackBy)}}function no(fe,We){1&fe&&i.GkF(0)}function ro(fe,We){1&fe&&i.GkF(0)}function _i(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,ro,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw(),ne=E.$implicit,be=E.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",Ne.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",i.l5B(2,Di,ne,Ne.getRowIndex(be),Ne.columns,Ne.frozen))}}function zi(fe,We){if(1&fe&&(i.YNc(0,no,1,0,"ng-container",4),i.YNc(1,_i,2,7,"ng-container",0)),2&fe){const E=We.$implicit,ne=We.index,be=i.oxw(2);i.Q6J("ngTemplateOutlet",be.template)("ngTemplateOutletContext",i.HTZ(3,ni,E,be.getRowIndex(ne),be.columns,be.dt.isRowExpanded(E),"row"===be.dt.editMode&&be.dt.isRowEditing(E),be.frozen)),i.xp6(1),i.Q6J("ngIf",be.dt.isRowExpanded(E))}}function Pn(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,zi,2,10,"ng-template",1),i.BQk()),2&fe){const E=i.oxw();i.xp6(1),i.Q6J("ngForOf",E.value)("ngForTrackBy",E.dt.rowTrackBy)}}function lo(fe,We){1&fe&&i.GkF(0)}const Mo=function(fe,We){return{$implicit:fe,frozen:We}};function Jn(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,lo,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",E.dt.loadingBodyTemplate)("ngTemplateOutletContext",i.WLB(2,Mo,E.columns,E.frozen))}}function Ui(fe,We){1&fe&&i.GkF(0)}function Si(fe,We){if(1&fe&&(i.ynx(0),i.YNc(1,Ui,1,0,"ng-container",4),i.BQk()),2&fe){const E=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",E.dt.emptyMessageTemplate)("ngTemplateOutletContext",i.WLB(2,Mo,E.columns,E.frozen))}}function Yn(fe,We){if(1&fe&&(i.TgZ(0,"span",2),i._uU(1),i.qZA()),2&fe){const E=i.oxw();i.xp6(1),i.Oqu(E.getBadgeValue())}}const Yi=function(fe,We,E){return{"pi-sort-amount-up-alt":fe,"pi-sort-amount-down":We,"pi-sort-alt":E}},cn=function(fe,We){return{"p-checkbox-focused":fe,"p-checkbox-disabled":We}},Qn=function(fe,We,E){return{"p-checkbox-box p-component":!0,"p-highlight":fe,"p-focus":We,"p-disabled":E}},di=function(fe){return{"pi pi-check":fe}},yi=function(fe,We,E){return{"p-checkbox-box":!0,"p-highlight":fe,"p-focus":We,"p-disabled":E}};let On=(()=>{class fe{constructor(){this.sortSource=new Et.x,this.selectionSource=new Et.x,this.contextMenuSource=new Et.x,this.valueSource=new Et.x,this.totalRecordsSource=new Et.x,this.columnsSource=new Et.x,this.resetSource=new Et.x,this.sortSource$=this.sortSource.asObservable(),this.selectionSource$=this.selectionSource.asObservable(),this.contextMenuSource$=this.contextMenuSource.asObservable(),this.valueSource$=this.valueSource.asObservable(),this.totalRecordsSource$=this.totalRecordsSource.asObservable(),this.columnsSource$=this.columnsSource.asObservable(),this.resetSource$=this.resetSource.asObservable()}onSort(E){this.sortSource.next(E)}onSelectionChange(){this.selectionSource.next(null)}onResetChange(){this.resetSource.next(null)}onContextMenu(E){this.contextMenuSource.next(E)}onValueChange(E){this.valueSource.next(E)}onTotalRecordsChange(E){this.totalRecordsSource.next(E)}onColumnsChange(E){this.columnsSource.next(E)}}return fe.\u0275fac=function(E){return new(E||fe)},fe.\u0275prov=i.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),qn=(()=>{class fe{constructor(E,ne,be,Ne,kt,ln,Tn,vi,pi){this.document=E,this.platformId=ne,this.renderer=be,this.el=Ne,this.zone=kt,this.tableService=ln,this.cd=Tn,this.filterService=vi,this.overlayService=pi,this.pageLinks=5,this.alwaysShowPaginator=!0,this.paginatorPosition="bottom",this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.defaultSortOrder=1,this.sortMode="single",this.resetPageOnSort=!0,this.selectAllChange=new i.vpe,this.selectionChange=new i.vpe,this.contextMenuSelectionChange=new i.vpe,this.contextMenuSelectionMode="separate",this.rowTrackBy=(z,ee)=>ee,this.lazy=!1,this.lazyLoadOnInit=!0,this.compareSelectionBy="deepEquals",this.csvSeparator=",",this.exportFilename="download",this.filters={},this.filterDelay=300,this.expandedRowKeys={},this.editingRowKeys={},this.rowExpandMode="multiple",this.scrollDirection="vertical",this.virtualScrollDelay=250,this.columnResizeMode="fit",this.loadingIcon="pi pi-spinner",this.showLoader=!0,this.showInitialSortBadge=!0,this.stateStorage="session",this.editMode="cell",this.groupRowsByOrder=1,this.responsiveLayout="scroll",this.breakpoint="960px",this.onRowSelect=new i.vpe,this.onRowUnselect=new i.vpe,this.onPage=new i.vpe,this.onSort=new i.vpe,this.onFilter=new i.vpe,this.onLazyLoad=new i.vpe,this.onRowExpand=new i.vpe,this.onRowCollapse=new i.vpe,this.onContextMenuSelect=new i.vpe,this.onColResize=new i.vpe,this.onColReorder=new i.vpe,this.onRowReorder=new i.vpe,this.onEditInit=new i.vpe,this.onEditComplete=new i.vpe,this.onEditCancel=new i.vpe,this.onHeaderCheckboxToggle=new i.vpe,this.sortFunction=new i.vpe,this.firstChange=new i.vpe,this.rowsChange=new i.vpe,this.onStateSave=new i.vpe,this.onStateRestore=new i.vpe,this._virtualRowHeight=28,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=(0,Re.Th)(),this.window=this.document.defaultView}get responsive(){return this._responsive}set responsive(E){this._responsive=E,console.warn("responsive propery is deprecated as table is always responsive with scrollable behavior.")}get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(E){this._virtualRowHeight=E,console.warn("The virtualRowHeight property is deprecated, use virtualScrollItemSize property instead.")}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(E=>{switch(E.getType()){case"caption":this.captionTemplate=E.template;break;case"header":this.headerTemplate=E.template;break;case"headergrouped":this.headerGroupedTemplate=E.template;break;case"body":this.bodyTemplate=E.template;break;case"loadingbody":this.loadingBodyTemplate=E.template;break;case"footer":this.footerTemplate=E.template;break;case"footergrouped":this.footerGroupedTemplate=E.template;break;case"summary":this.summaryTemplate=E.template;break;case"colgroup":this.colGroupTemplate=E.template;break;case"rowexpansion":this.expandedRowTemplate=E.template;break;case"groupheader":this.groupHeaderTemplate=E.template;break;case"rowspan":this.rowspanTemplate=E.template;break;case"groupfooter":this.groupFooterTemplate=E.template;break;case"frozenrows":this.frozenRowsTemplate=E.template;break;case"frozenheader":this.frozenHeaderTemplate=E.template;break;case"frozenbody":this.frozenBodyTemplate=E.template;break;case"frozenfooter":this.frozenFooterTemplate=E.template;break;case"frozencolgroup":this.frozenColGroupTemplate=E.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=E.template;break;case"emptymessage":this.emptyMessageTemplate=E.template;break;case"paginatorleft":this.paginatorLeftTemplate=E.template;break;case"paginatorright":this.paginatorRightTemplate=E.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=E.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(E){E.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=E.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(E.value.currentValue)),E.columns&&(this._columns=E.columns.currentValue,this.tableService.onColumnsChange(E.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),E.sortField&&(this._sortField=E.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),E.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),E.sortOrder&&(this._sortOrder=E.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),E.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),E.multiSortMeta&&(this._multiSortMeta=E.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),E.selection&&(this._selection=E.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),E.selectAll&&(this._selectAll=E.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get value(){return this._value}set value(E){this._value=E}get columns(){return this._columns}set columns(E){this._columns=E}get first(){return this._first}set first(E){this._first=E}get rows(){return this._rows}set rows(E){this._rows=E}get totalRecords(){return this._totalRecords}set totalRecords(E){this._totalRecords=E,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(E){this._sortField=E}get sortOrder(){return this._sortOrder}set sortOrder(E){this._sortOrder=E}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(E){this._multiSortMeta=E}get selection(){return this._selection}set selection(E){this._selection=E}get selectAll(){return this._selection}set selectAll(E){this._selection=E}get processedData(){return this.filteredValue||this.value||[]}dataToRender(E){const ne=E||this.processedData;if(ne&&this.paginator){const be=this.lazy?0:this.first;return ne.slice(be,be+this.rows)}return ne}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let E of this._selection)this.selectionKeys[String(Re.gb.resolveFieldData(E,this.dataKey))]=1;else this.selectionKeys[String(Re.gb.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(E){this.first=E.first,this.rows=E.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(E){let ne=E.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===E.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=E.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let be=ne.metaKey||ne.ctrlKey,Ne=this.getSortMeta(E.field);Ne?be?Ne.order=-1*Ne.order:(this._multiSortMeta=[{field:E.field,order:-1*Ne.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!be||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:E.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let E=this.sortField||this.groupRowsBy,ne=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(E&&ne){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:E,order:ne}):(this.value.sort((Ne,kt)=>{let ln=Re.gb.resolveFieldData(Ne,E),Tn=Re.gb.resolveFieldData(kt,E),vi=null;return vi=null==ln&&null!=Tn?-1:null!=ln&&null==Tn?1:null==ln&&null==Tn?0:"string"==typeof ln&&"string"==typeof Tn?ln.localeCompare(Tn):ln<Tn?-1:ln>Tn?1:0,ne*vi}),this._value=[...this.value]),this.hasFilter()&&this._filter());let be={field:E,order:ne};this.onSort.emit(be),this.tableService.onSort(be)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((E,ne)=>this.multisortField(E,ne,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(E,ne,be,Ne){const kt=Re.gb.resolveFieldData(E,be[Ne].field),ln=Re.gb.resolveFieldData(ne,be[Ne].field);return 0===Re.gb.compare(kt,ln,this.filterLocale)?be.length-1>Ne?this.multisortField(E,ne,be,Ne+1):0:this.compareValuesOnSort(kt,ln,be[Ne].order)}compareValuesOnSort(E,ne,be){return Re.gb.sort(E,ne,be,this.filterLocale,this.sortOrder)}getSortMeta(E){if(this.multiSortMeta&&this.multiSortMeta.length)for(let ne=0;ne<this.multiSortMeta.length;ne++)if(this.multiSortMeta[ne].field===E)return this.multiSortMeta[ne];return null}isSorted(E){if("single"===this.sortMode)return this.sortField&&this.sortField===E;if("multiple"===this.sortMode){let ne=!1;if(this.multiSortMeta)for(let be=0;be<this.multiSortMeta.length;be++)if(this.multiSortMeta[be].field==E){ne=!0;break}return ne}}handleRowClick(E){let ne=E.originalEvent.target,be=ne.nodeName,Ne=ne.parentElement&&ne.parentElement.nodeName;if("INPUT"!=be&&"BUTTON"!=be&&"A"!=be&&"INPUT"!=Ne&&"BUTTON"!=Ne&&"A"!=Ne&&!y.p.hasClass(E.originalEvent.target,"p-clickable")){if(this.selectionMode){let kt=E.rowData,ln=E.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&E.originalEvent.shiftKey&&null!=this.anchorRowIndex)y.p.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(E.originalEvent),this.rangeRowIndex=ln,this.selectRange(E.originalEvent,ln);else{let Tn=this.isSelected(kt);if(!Tn&&!this.isRowSelectable(kt,ln))return;let vi=!this.rowTouched&&this.metaKeySelection,pi=this.dataKey?String(Re.gb.resolveFieldData(kt,this.dataKey)):null;if(this.anchorRowIndex=ln,this.rangeRowIndex=ln,vi){let z=E.originalEvent.metaKey||E.originalEvent.ctrlKey;if(Tn&&z){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let ee=this.findIndexInSelection(kt);this._selection=this.selection.filter((q,Ae)=>Ae!=ee),this.selectionChange.emit(this.selection),pi&&delete this.selectionKeys[pi]}this.onRowUnselect.emit({originalEvent:E.originalEvent,data:kt,type:"row"})}else this.isSingleSelectionMode()?(this._selection=kt,this.selectionChange.emit(kt),pi&&(this.selectionKeys={},this.selectionKeys[pi]=1)):this.isMultipleSelectionMode()&&(z?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,kt],this.selectionChange.emit(this.selection),pi&&(this.selectionKeys[pi]=1)),this.onRowSelect.emit({originalEvent:E.originalEvent,data:kt,type:"row",index:ln})}else if("single"===this.selectionMode)Tn?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:E.originalEvent,data:kt,type:"row",index:ln})):(this._selection=kt,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:E.originalEvent,data:kt,type:"row",index:ln}),pi&&(this.selectionKeys={},this.selectionKeys[pi]=1));else if("multiple"===this.selectionMode)if(Tn){let z=this.findIndexInSelection(kt);this._selection=this.selection.filter((ee,q)=>q!=z),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:E.originalEvent,data:kt,type:"row",index:ln}),pi&&delete this.selectionKeys[pi]}else this._selection=this.selection?[...this.selection,kt]:[kt],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:E.originalEvent,data:kt,type:"row",index:ln}),pi&&(this.selectionKeys[pi]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(E){this.rowTouched=!0}handleRowRightClick(E){if(this.contextMenu){const ne=E.rowData,be=E.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=ne,this.contextMenuSelectionChange.emit(ne),this.onContextMenuSelect.emit({originalEvent:E.originalEvent,data:ne,index:E.rowIndex}),this.contextMenu.show(E.originalEvent),this.tableService.onContextMenu(ne);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let Ne=this.isSelected(ne),kt=this.dataKey?String(Re.gb.resolveFieldData(ne,this.dataKey)):null;if(!Ne){if(!this.isRowSelectable(ne,be))return;this.isSingleSelectionMode()?(this.selection=ne,this.selectionChange.emit(ne),kt&&(this.selectionKeys={},this.selectionKeys[kt]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,ne]:[ne],this.selectionChange.emit(this.selection),kt&&(this.selectionKeys[kt]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(E.originalEvent),this.onContextMenuSelect.emit({originalEvent:E,data:ne,index:E.rowIndex})}}}selectRange(E,ne){let be,Ne;this.anchorRowIndex>ne?(be=ne,Ne=this.anchorRowIndex):this.anchorRowIndex<ne?(be=this.anchorRowIndex,Ne=ne):(be=ne,Ne=ne),this.lazy&&this.paginator&&(be-=this.first,Ne-=this.first);let kt=[];for(let ln=be;ln<=Ne;ln++){let Tn=this.filteredValue?this.filteredValue[ln]:this.value[ln];if(!this.isSelected(Tn)){if(!this.isRowSelectable(Tn,ne))continue;kt.push(Tn),this._selection=[...this.selection,Tn];let vi=this.dataKey?String(Re.gb.resolveFieldData(Tn,this.dataKey)):null;vi&&(this.selectionKeys[vi]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:E,data:kt,type:"row"})}clearSelectionRange(E){let ne,be;this.rangeRowIndex>this.anchorRowIndex?(ne=this.anchorRowIndex,be=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(ne=this.rangeRowIndex,be=this.anchorRowIndex):(ne=this.rangeRowIndex,be=this.rangeRowIndex);for(let Ne=ne;Ne<=be;Ne++){let kt=this.value[Ne],ln=this.findIndexInSelection(kt);this._selection=this.selection.filter((vi,pi)=>pi!=ln);let Tn=this.dataKey?String(Re.gb.resolveFieldData(kt,this.dataKey)):null;Tn&&delete this.selectionKeys[Tn],this.onRowUnselect.emit({originalEvent:E,data:kt,type:"row"})}}isSelected(E){return!(!E||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[Re.gb.resolveFieldData(E,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(E)>-1:this.equals(E,this.selection))}findIndexInSelection(E){let ne=-1;if(this.selection&&this.selection.length)for(let be=0;be<this.selection.length;be++)if(this.equals(E,this.selection[be])){ne=be;break}return ne}isRowSelectable(E,ne){return!(this.rowSelectable&&!this.rowSelectable({data:E,index:ne}))}toggleRowWithRadio(E,ne){if(this.preventSelectionSetterPropagation=!0,this.selection!=ne){if(!this.isRowSelectable(ne,E.rowIndex))return;this._selection=ne,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:E.originalEvent,index:E.rowIndex,data:ne,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Re.gb.resolveFieldData(ne,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:E.originalEvent,index:E.rowIndex,data:ne,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(E,ne){this.selection=this.selection||[];let be=this.isSelected(ne),Ne=this.dataKey?String(Re.gb.resolveFieldData(ne,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,be){let kt=this.findIndexInSelection(ne);this._selection=this.selection.filter((ln,Tn)=>Tn!=kt),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:E.originalEvent,index:E.rowIndex,data:ne,type:"checkbox"}),Ne&&delete this.selectionKeys[Ne]}else{if(!this.isRowSelectable(ne,E.rowIndex))return;this._selection=this.selection?[...this.selection,ne]:[ne],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:E.originalEvent,index:E.rowIndex,data:ne,type:"checkbox"}),Ne&&(this.selectionKeys[Ne]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(E,ne){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:E,checked:ne});else{const be=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let Ne=this.selectionPageOnly&&this._selection?this._selection.filter(kt=>!be.some(ln=>this.equals(kt,ln))):[];ne&&(Ne=this.frozenValue?[...Ne,...this.frozenValue,...be]:[...Ne,...be],Ne=this.rowSelectable?Ne.filter((kt,ln)=>this.rowSelectable({data:kt,index:ln})):Ne),this._selection=Ne,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:E,checked:ne}),this.isStateful()&&this.saveState()}}equals(E,ne){return"equals"===this.compareSelectionBy?E===ne:Re.gb.equals(E,ne,this.dataKey)}filter(E,ne,be){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(E)?this.filters[ne]&&delete this.filters[ne]:this.filters[ne]={value:E,matchMode:be},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(E,ne){this.filter(E,"global",ne)}isFilterBlank(E){return null==E||!!("string"==typeof E&&0==E.trim().length||Array.isArray(E)&&0==E.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let E;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");E=this.globalFilterFields||this.columns}this.filteredValue=[];for(let ne=0;ne<this.value.length;ne++){let ln,be=!0,Ne=!1,kt=!1;for(let Tn in this.filters)if(this.filters.hasOwnProperty(Tn)&&"global"!==Tn){kt=!0;let vi=Tn,pi=this.filters[vi];if(Array.isArray(pi)){for(let z of pi)if(be=this.executeLocalFilter(vi,this.value[ne],z),z.operator===L.pg.OR&&be||z.operator===L.pg.AND&&!be)break}else be=this.executeLocalFilter(vi,this.value[ne],pi);if(!be)break}if(this.filters.global&&!Ne&&E)for(let Tn=0;Tn<E.length&&(Ne=this.filterService.filters[this.filters.global.matchMode](Re.gb.resolveFieldData(this.value[ne],E[Tn].field||E[Tn]),this.filters.global.value,this.filterLocale),!Ne);Tn++);ln=this.filters.global?kt?kt&&be&&Ne:Ne:kt&&be,ln&&this.filteredValue.push(this.value[ne])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}else this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0)}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(E,ne,be){let Ne=be.value,kt=be.matchMode||L.a6.STARTS_WITH,ln=Re.gb.resolveFieldData(ne,E);return(0,this.filterService.filters[kt])(ln,Ne,this.filterLocale)}hasFilter(){let E=!0;for(let ne in this.filters)if(this.filters.hasOwnProperty(ne)){E=!1;break}return!E}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.filters.global&&(this.filters.global.value=null),this.filteredValue=null,this.tableService.onResetChange(),this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}reset(){this.clear()}getExportHeader(E){return E[this.exportHeader]||E.header||E.field}exportCSV(E){let ne,be="",Ne=this.columns;E&&E.selectionOnly?ne=this.selection||[]:E&&E.allValues?ne=this.value||[]:(ne=this.filteredValue||this.value,this.frozenValue&&(ne=ne?[...this.frozenValue,...ne]:this.frozenValue));for(let Tn=0;Tn<Ne.length;Tn++){let vi=Ne[Tn];!1!==vi.exportable&&vi.field&&(be+='"'+this.getExportHeader(vi)+'"',Tn<Ne.length-1&&(be+=this.csvSeparator))}ne.forEach((Tn,vi)=>{be+="\n";for(let pi=0;pi<Ne.length;pi++){let z=Ne[pi];if(!1!==z.exportable&&z.field){let ee=Re.gb.resolveFieldData(Tn,z.field);ee=null!=ee?this.exportFunction?this.exportFunction({data:ee,field:z.field}):String(ee).replace(/"/g,'""'):"",be+='"'+ee+'"',pi<Ne.length-1&&(be+=this.csvSeparator)}}});let kt=new Blob([be],{type:"text/csv;charset=utf-8;"}),ln=this.renderer.createElement("a");ln.style.display="none",this.renderer.appendChild(this.document.body,ln),void 0!==ln.download?(ln.setAttribute("href",URL.createObjectURL(kt)),ln.setAttribute("download",this.exportFilename+".csv"),ln.click()):(be="data:text/csv;charset=utf-8,"+be,this.window.open(encodeURI(be))),this.renderer.removeChild(this.document.body,ln)}onLazyItemLoad(E){this.onLazyLoad.emit({...this.createLazyLoadMetadata(),...E,rows:E.last-E.first})}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(E){this.virtualScroll&&this.scroller.scrollToIndex(E)}scrollTo(E){this.virtualScroll?this.scroller.scrollTo(E):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(E):(this.wrapperViewChild.nativeElement.scrollLeft=E.left,this.wrapperViewChild.nativeElement.scrollTop=E.top))}updateEditingCell(E,ne,be,Ne){this.editingCell=E,this.editingCellData=ne,this.editingCellField=be,this.editingCellRowIndex=Ne,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===y.p.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",E=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(y.p.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:E,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(E){let ne=String(Re.gb.resolveFieldData(E,this.dataKey));this.editingRowKeys[ne]=!0}saveRowEdit(E,ne){if(0===y.p.find(ne,".ng-invalid.ng-dirty").length){let be=String(Re.gb.resolveFieldData(E,this.dataKey));delete this.editingRowKeys[be]}}cancelRowEdit(E){let ne=String(Re.gb.resolveFieldData(E,this.dataKey));delete this.editingRowKeys[ne]}toggleRow(E,ne){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let be=String(Re.gb.resolveFieldData(E,this.dataKey));null!=this.expandedRowKeys[be]?(delete this.expandedRowKeys[be],this.onRowCollapse.emit({originalEvent:ne,data:E})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[be]=!0,this.onRowExpand.emit({originalEvent:ne,data:E})),ne&&ne.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(E){return!0===this.expandedRowKeys[String(Re.gb.resolveFieldData(E,this.dataKey))]}isRowEditing(E){return!0===this.editingRowKeys[String(Re.gb.resolveFieldData(E,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(E){let ne=y.p.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=E.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=E.pageX-ne+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(E),E.preventDefault()}onColumnResize(E){let ne=y.p.getOffset(this.containerViewChild.nativeElement).left;y.p.addClass(this.containerViewChild.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=E.pageX-ne+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let E=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,be=this.resizeColumnElement.offsetWidth+E;if(be>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let ln=this.resizeColumnElement.nextElementSibling.offsetWidth-E;be>15&&ln>15&&this.resizeTableCells(be,ln)}else"expand"===this.columnResizeMode&&(this.setResizeTableWidth(this.tableViewChild.nativeElement.offsetWidth+E+"px"),this.resizeTableCells(be,null));this.onColResize.emit({element:this.resizeColumnElement,delta:E}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",y.p.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(E,ne){let be=y.p.index(this.resizeColumnElement),Ne=[];const kt=y.p.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");y.p.find(kt,"tr > th").forEach(vi=>Ne.push(y.p.getOuterWidth(vi))),this.destroyStyleElement(),this.createStyleElement();let Tn="";Ne.forEach((vi,pi)=>{let z=pi===be?E:ne&&pi===be+1?ne:vi;Tn+=`\n                #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${pi+1}),\n                #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${pi+1}),\n                #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${pi+1}) {\n                    width: ${z}px !important; max-width: ${z}px !important;\n                }\n            `}),this.renderer.setProperty(this.styleElement,"innerHTML",Tn)}onColumnDragStart(E,ne){this.reorderIconWidth=y.p.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=y.p.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=ne,E.dataTransfer.setData("text","b")}onColumnDragEnter(E,ne){if(this.reorderableColumns&&this.draggedColumn&&ne){E.preventDefault();let be=y.p.getOffset(this.containerViewChild.nativeElement),Ne=y.p.getOffset(ne);if(this.draggedColumn!=ne){y.p.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),y.p.indexWithinGroup(ne,"preorderablecolumn");let Tn=Ne.left-be.left,pi=Ne.left+ne.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=Ne.top-be.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=Ne.top-be.top+ne.offsetHeight+"px",E.pageX>pi?(this.reorderIndicatorUpViewChild.nativeElement.style.left=Tn+ne.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=Tn+ne.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=Tn-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=Tn-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else E.dataTransfer.dropEffect="none"}}onColumnDragLeave(E){this.reorderableColumns&&this.draggedColumn&&E.preventDefault()}onColumnDrop(E,ne){if(E.preventDefault(),this.draggedColumn){let be=y.p.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),Ne=y.p.indexWithinGroup(ne,"preorderablecolumn"),kt=be!=Ne;kt&&(Ne-be==1&&-1===this.dropPosition||be-Ne==1&&1===this.dropPosition)&&(kt=!1),kt&&Ne<be&&1===this.dropPosition&&(Ne+=1),kt&&Ne>be&&-1===this.dropPosition&&(Ne-=1),kt&&(Re.gb.reorderArray(this.columns,be,Ne),this.onColReorder.emit({dragIndex:be,dropIndex:Ne,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(E,ne){this.rowDragging=!0,this.draggedRowIndex=ne,E.dataTransfer.setData("text","b")}onRowDragOver(E,ne,be){if(this.rowDragging&&this.draggedRowIndex!==ne){let Ne=y.p.getOffset(be).top+y.p.getWindowScrollTop(),kt=E.pageY,ln=Ne+y.p.getOuterHeight(be)/2,Tn=be.previousElementSibling;kt<ln?(y.p.removeClass(be,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=ne,Tn?y.p.addClass(Tn,"p-datatable-dragpoint-bottom"):y.p.addClass(be,"p-datatable-dragpoint-top")):(Tn?y.p.removeClass(Tn,"p-datatable-dragpoint-bottom"):y.p.addClass(be,"p-datatable-dragpoint-top"),this.droppedRowIndex=ne+1,y.p.addClass(be,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(E,ne){let be=ne.previousElementSibling;be&&y.p.removeClass(be,"p-datatable-dragpoint-bottom"),y.p.removeClass(ne,"p-datatable-dragpoint-bottom"),y.p.removeClass(ne,"p-datatable-dragpoint-top")}onRowDragEnd(E){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(E,ne){if(null!=this.droppedRowIndex){let be=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Re.gb.reorderArray(this.value,this.draggedRowIndex,be),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:be})}this.onRowDragLeave(E,ne),this.onRowDragEnd(E)}isEmpty(){let E=this.filteredValue||this.value;return null==E||0==E.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!(0,t.NF)(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const E=this.getStorage();let ne={};this.paginator&&(ne.first=this.first,ne.rows=this.rows),this.sortField&&(ne.sortField=this.sortField,ne.sortOrder=this.sortOrder),this.multiSortMeta&&(ne.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(ne.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(ne),this.reorderableColumns&&this.saveColumnOrder(ne),this.selection&&(ne.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(ne.expandedRowKeys=this.expandedRowKeys),E.setItem(this.stateKey,JSON.stringify(ne)),this.onStateSave.emit(ne)}clearState(){const E=this.getStorage();this.stateKey&&E.removeItem(this.stateKey)}restoreState(){const ne=this.getStorage().getItem(this.stateKey),be=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(ne){let kt=JSON.parse(ne,function(kt,ln){return"string"==typeof ln&&be.test(ln)?new Date(ln):ln});this.paginator&&(void 0!==this.first&&(this.first=kt.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=kt.rows,this.rowsChange.emit(this.rows))),kt.sortField&&(this.restoringSort=!0,this._sortField=kt.sortField,this._sortOrder=kt.sortOrder),kt.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=kt.multiSortMeta),kt.filters&&(this.restoringFilter=!0,this.filters=kt.filters),this.resizableColumns&&(this.columnWidthsState=kt.columnWidths,this.tableWidthState=kt.tableWidth),kt.expandedRowKeys&&(this.expandedRowKeys=kt.expandedRowKeys),kt.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(kt.selection)),this.stateRestored=!0,this.onStateRestore.emit(kt)}}saveColumnWidths(E){let ne=[];y.p.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr > th").forEach(Ne=>ne.push(y.p.getOuterWidth(Ne))),E.columnWidths=ne.join(","),"expand"===this.columnResizeMode&&(E.tableWidth=y.p.getOuterWidth(this.tableViewChild.nativeElement))}setResizeTableWidth(E){this.tableViewChild.nativeElement.style.width=E,this.tableViewChild.nativeElement.style.minWidth=E}restoreColumnWidths(){if(this.columnWidthsState){let E=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),Re.gb.isNotEmpty(E)){this.createStyleElement();let ne="";E.forEach((be,Ne)=>{ne+=`\n                        #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${Ne+1}),\n                        #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${Ne+1}),\n                        #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${Ne+1}) {\n                            width: ${be}px !important; max-width: ${be}px !important\n                        }\n                    `}),this.styleElement.innerHTML=ne}}}saveColumnOrder(E){if(this.columns){let ne=[];this.columns.map(be=>{ne.push(be.field||be.key)}),E.columnOrder=ne}}restoreColumnOrder(){const ne=this.getStorage().getItem(this.stateKey);if(ne){let Ne=JSON.parse(ne).columnOrder;if(Ne){let kt=[];Ne.map(ln=>{let Tn=this.findColumnByKey(ln);Tn&&kt.push(Tn)}),this.columnOrderStateRestored=!0,this.columns=kt}}}findColumnByKey(E){if(!this.columns)return null;for(let ne of this.columns)if(ne.key===E||ne.field===E)return ne}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){(0,t.NF)(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n    @media screen and (max-width: ${this.breakpoint}) {\n        #${this.id}-table > .p-datatable-thead > tr > th,\n        #${this.id}-table > .p-datatable-tfoot > tr > td {\n            display: none !important;\n        }\n    \n        #${this.id}-table > .p-datatable-tbody > tr > td {\n            display: flex;\n            width: 100% !important;\n            align-items: center;\n            justify-content: space-between;\n        }\n    \n        #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n            border: 0 none;\n        }\n    \n        #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n            border-top: 0;\n            border-right: 0;\n            border-left: 0;\n        }\n    \n        #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n            display: block;\n        }\n    }\n    `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}}return fe.\u0275fac=function(E){return new(E||fe)(i.Y36(t.K0),i.Y36(i.Lbi),i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(On),i.Y36(i.sBO),i.Y36(L.iZ),i.Y36(L.F0))},fe.\u0275cmp=i.Xpm({type:fe,selectors:[["p-table"]],contentQueries:function(E,ne,be){if(1&E&&i.Suo(be,L.jx,4),2&E){let Ne;i.iGM(Ne=i.CRH())&&(ne.templates=Ne)}},viewQuery:function(E,ne){if(1&E&&(i.Gf(Ft,5),i.Gf(yt,5),i.Gf(un,5),i.Gf(bt,5),i.Gf(Jt,5),i.Gf(en,5),i.Gf(mn,5),i.Gf(En,5),i.Gf(Ln,5)),2&E){let be;i.iGM(be=i.CRH())&&(ne.containerViewChild=be.first),i.iGM(be=i.CRH())&&(ne.resizeHelperViewChild=be.first),i.iGM(be=i.CRH())&&(ne.reorderIndicatorUpViewChild=be.first),i.iGM(be=i.CRH())&&(ne.reorderIndicatorDownViewChild=be.first),i.iGM(be=i.CRH())&&(ne.wrapperViewChild=be.first),i.iGM(be=i.CRH())&&(ne.tableViewChild=be.first),i.iGM(be=i.CRH())&&(ne.tableHeaderViewChild=be.first),i.iGM(be=i.CRH())&&(ne.tableFooterViewChild=be.first),i.iGM(be=i.CRH())&&(ne.scroller=be.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",virtualRowHeight:"virtualRowHeight",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll"},outputs:{selectAllChange:"selectAllChange",selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[i._Bn([On]),i.TTD],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","pi pi-arrow-down p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","pi pi-arrow-up p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[1,"p-datatable-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],[1,"p-datatable-thead"],["thead",""],["class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],[1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["class","p-datatable-tfoot",4,"ngIf"],[1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],[1,"p-datatable-scroller-spacer"],[1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"pi","pi-arrow-down","p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"pi","pi-arrow-up","p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(E,ne){1&E&&(i.TgZ(0,"div",0,1),i.YNc(2,dt,2,2,"div",2),i.YNc(3,$,2,1,"div",3),i.YNc(4,pe,1,17,"p-paginator",4),i.TgZ(5,"div",5,6),i.YNc(7,on,3,17,"p-scroller",7),i.YNc(8,zt,2,7,"ng-container",8),i.YNc(9,gn,10,28,"ng-template",null,9,i.W1O),i.qZA(),i.YNc(11,Mn,1,17,"p-paginator",10),i.YNc(12,Rn,2,1,"div",11),i.YNc(13,Fn,2,0,"div",12),i.YNc(14,ut,2,0,"span",13),i.YNc(15,Je,2,0,"span",14),i.qZA()),2&E&&(i.Tol(ne.styleClass),i.Q6J("ngStyle",ne.style)("ngClass",i.kEZ(16,Y,ne.rowHover||ne.selectionMode,ne.scrollable,ne.scrollable&&"flex"===ne.scrollHeight)),i.uIk("id",ne.id),i.xp6(2),i.Q6J("ngIf",ne.loading&&ne.showLoader),i.xp6(1),i.Q6J("ngIf",ne.captionTemplate),i.xp6(1),i.Q6J("ngIf",ne.paginator&&("top"===ne.paginatorPosition||"both"==ne.paginatorPosition)),i.xp6(1),i.Q6J("ngStyle",i.VKq(20,le,ne.virtualScroll?"":ne.scrollHeight)),i.xp6(2),i.Q6J("ngIf",ne.virtualScroll),i.xp6(1),i.Q6J("ngIf",!ne.virtualScroll),i.xp6(3),i.Q6J("ngIf",ne.paginator&&("bottom"===ne.paginatorPosition||"both"==ne.paginatorPosition)),i.xp6(1),i.Q6J("ngIf",ne.summaryTemplate),i.xp6(1),i.Q6J("ngIf",ne.resizableColumns),i.xp6(1),i.Q6J("ngIf",ne.reorderableColumns),i.xp6(1),i.Q6J("ngIf",ne.reorderableColumns))},dependencies:function(){return[t.mk,t.O5,t.tP,t.PC,st,L.jx,F.T,Ai]},styles:[".p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}\n"],encapsulation:2}),fe})(),Ai=(()=>{class fe{constructor(E,ne,be,Ne){this.dt=E,this.tableService=ne,this.cd=be,this.el=Ne,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}get value(){return this._value}set value(E){this._value=E,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}shouldRenderRowGroupHeader(E,ne,be){let Ne=Re.gb.resolveFieldData(ne,this.dt.groupRowsBy),kt=E[be-1];return!kt||Ne!==Re.gb.resolveFieldData(kt,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(E,ne,be){let Ne=Re.gb.resolveFieldData(ne,this.dt.groupRowsBy),kt=E[be+1];return!kt||Ne!==Re.gb.resolveFieldData(kt,this.dt.groupRowsBy)}shouldRenderRowspan(E,ne,be){let Ne=Re.gb.resolveFieldData(ne,this.dt.groupRowsBy),kt=E[be-1];return!kt||Ne!==Re.gb.resolveFieldData(kt,this.dt.groupRowsBy)}calculateRowGroupSize(E,ne,be){let Ne=Re.gb.resolveFieldData(ne,this.dt.groupRowsBy),kt=Ne,ln=0;for(;Ne===kt;){ln++;let Tn=E[++be];if(!Tn)break;kt=Re.gb.resolveFieldData(Tn,this.dt.groupRowsBy)}return 1===ln?null:ln}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=y.p.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let E=y.p.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=E+"px"}}getScrollerOption(E,ne){return this.dt.virtualScroll&&(ne=ne||this.scrollerOptions)?ne[E]:null}getRowIndex(E){const ne=this.dt.paginator?this.dt.first+E:E,be=this.getScrollerOption("getItemOptions");return be?be(ne).index:ne}}return fe.\u0275fac=function(E){return new(E||fe)(i.Y36(qn),i.Y36(On),i.Y36(i.sBO),i.Y36(i.SBq))},fe.\u0275cmp=i.Xpm({type:fe,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:Oe,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(E,ne){1&E&&(i.YNc(0,ai,2,2,"ng-container",0),i.YNc(1,bi,2,2,"ng-container",0),i.YNc(2,Pn,2,2,"ng-container",0),i.YNc(3,Jn,2,5,"ng-container",0),i.YNc(4,Si,2,5,"ng-container",0)),2&E&&(i.Q6J("ngIf",!ne.dt.expandedRowTemplate),i.xp6(1),i.Q6J("ngIf",ne.dt.expandedRowTemplate&&!(ne.frozen&&ne.dt.frozenExpandedRowTemplate)),i.xp6(1),i.Q6J("ngIf",ne.dt.frozenExpandedRowTemplate&&ne.frozen),i.xp6(1),i.Q6J("ngIf",ne.dt.loading),i.xp6(1),i.Q6J("ngIf",ne.dt.isEmpty()&&!ne.dt.loading))},dependencies:[t.sg,t.O5,t.tP],encapsulation:2}),fe})(),Vt=(()=>{class fe{constructor(E){this.dt=E,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(ne=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(E){this.isEnabled()&&!this.isFilterElement(E.target)&&(this.updateSortState(),this.dt.sort({originalEvent:E,field:this.field}),y.p.clearSelection())}onEnterKey(E){this.onClick(E)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(E){return y.p.hasClass(E,"pi-filter-icon")||y.p.hasClass(E,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return fe.\u0275fac=function(E){return new(E||fe)(i.Y36(qn))},fe.\u0275dir=i.lG2({type:fe,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(E,ne){1&E&&i.NdJ("click",function(Ne){return ne.onClick(Ne)})("keydown.enter",function(Ne){return ne.onEnterKey(Ne)}),2&E&&(i.uIk("tabindex",ne.isEnabled()?"0":null)("role","columnheader")("aria-sort",ne.sortOrder),i.ekj("p-sortable-column",ne.isEnabled())("p-highlight",ne.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}}),fe})(),ae=(()=>{class fe{constructor(E,ne){this.dt=E,this.cd=ne,this.subscription=this.dt.tableService.sortSource$.subscribe(be=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(E){E.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else if("multiple"===this.dt.sortMode){let E=this.dt.getSortMeta(this.field);this.sortOrder=E?E.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let E=this.dt._multiSortMeta,ne=-1;if(E&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||E.length>1))for(let be=0;be<E.length;be++){let Ne=E[be];if(Ne.field===this.field||Ne.field===this.field){ne=be;break}}return ne}getBadgeValue(){let E=this.getMultiSortMetaIndex();return this.dt.groupRowsBy&&E>-1?E:E+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return fe.\u0275fac=function(E){return new(E||fe)(i.Y36(qn),i.Y36(i.sBO))},fe.\u0275cmp=i.Xpm({type:fe,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:2,vars:6,consts:[[1,"p-sortable-column-icon","pi","pi-fw",3,"ngClass"],["class","p-sortable-column-badge",4,"ngIf"],[1,"p-sortable-column-badge"]],template:function(E,ne){1&E&&(i._UZ(0,"i",0),i.YNc(1,Yn,2,1,"span",1)),2&E&&(i.Q6J("ngClass",i.kEZ(2,Yi,1===ne.sortOrder,-1===ne.sortOrder,0===ne.sortOrder)),i.xp6(1),i.Q6J("ngIf",ne.isMultiSorted()))},dependencies:[t.mk,t.O5],encapsulation:2,changeDetection:0}),fe})(),Xi=(()=>{class fe{constructor(E,ne,be){this.dt=E,this.tableService=ne,this.cd=be,this.subscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.checked=this.dt.isSelected(this.value),this.cd.markForCheck()})}ngOnInit(){this.checked=this.dt.isSelected(this.value)}onClick(E){this.disabled||this.dt.toggleRowWithCheckbox({originalEvent:E,rowIndex:this.index},this.value),y.p.clearSelection()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return fe.\u0275fac=function(E){return new(E||fe)(i.Y36(qn),i.Y36(On),i.Y36(i.sBO))},fe.\u0275cmp=i.Xpm({type:fe,selectors:[["p-tableCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",value:"value",index:"index",inputId:"inputId",name:"name",required:"required",ariaLabel:"ariaLabel"},decls:6,vars:19,consts:[[1,"p-checkbox","p-component",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"checked","disabled","focus","blur"],["role","checkbox",3,"ngClass"],["box",""],[1,"p-checkbox-icon",3,"ngClass"]],template:function(E,ne){1&E&&(i.TgZ(0,"div",0),i.NdJ("click",function(Ne){return ne.onClick(Ne)}),i.TgZ(1,"div",1)(2,"input",2),i.NdJ("focus",function(){return ne.onFocus()})("blur",function(){return ne.onBlur()}),i.qZA()(),i.TgZ(3,"div",3,4),i._UZ(5,"span",5),i.qZA()()),2&E&&(i.Q6J("ngClass",i.WLB(10,cn,ne.focused,ne.disabled)),i.xp6(2),i.Q6J("checked",ne.checked)("disabled",ne.disabled),i.uIk("id",ne.inputId)("name",ne.name)("required",ne.required)("aria-label",ne.ariaLabel),i.xp6(1),i.Q6J("ngClass",i.kEZ(13,Qn,ne.checked,ne.focused,ne.disabled)),i.uIk("aria-checked",ne.checked),i.xp6(2),i.Q6J("ngClass",i.VKq(17,di,ne.checked)))},dependencies:[t.mk],encapsulation:2,changeDetection:0}),fe})(),Ri=(()=>{class fe{constructor(E,ne,be){this.dt=E,this.tableService=ne,this.cd=be,this.valueChangeSubscription=this.dt.tableService.valueSource$.subscribe(()=>{this.checked=this.updateCheckedState()}),this.selectionChangeSubscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.checked=this.updateCheckedState()})}ngOnInit(){this.checked=this.updateCheckedState()}onClick(E){this.disabled||this.dt.value&&this.dt.value.length>0&&this.dt.toggleRowsWithCheckbox(E,!this.checked),y.p.clearSelection()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}isDisabled(){return this.disabled||!this.dt.value||!this.dt.value.length}ngOnDestroy(){this.selectionChangeSubscription&&this.selectionChangeSubscription.unsubscribe(),this.valueChangeSubscription&&this.valueChangeSubscription.unsubscribe()}updateCheckedState(){if(this.cd.markForCheck(),null!==this.dt._selectAll)return this.dt._selectAll;{const E=this.dt.selectionPageOnly?this.dt.dataToRender(this.dt.processedData):this.dt.processedData,ne=this.dt.frozenValue?[...this.dt.frozenValue,...E]:E,be=this.dt.rowSelectable?ne.filter((Ne,kt)=>this.dt.rowSelectable({data:Ne,index:kt})):ne;return Re.gb.isNotEmpty(be)&&Re.gb.isNotEmpty(this.dt.selection)&&be.every(Ne=>this.dt.selection.some(kt=>this.dt.equals(Ne,kt)))}}}return fe.\u0275fac=function(E){return new(E||fe)(i.Y36(qn),i.Y36(On),i.Y36(i.sBO))},fe.\u0275cmp=i.Xpm({type:fe,selectors:[["p-tableHeaderCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",inputId:"inputId",name:"name",ariaLabel:"ariaLabel"},decls:7,vars:18,consts:[[1,"p-checkbox","p-component",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"checked","disabled","focus","blur"],["cb",""],["role","checkbox",3,"ngClass"],["box",""],[1,"p-checkbox-icon",3,"ngClass"]],template:function(E,ne){1&E&&(i.TgZ(0,"div",0),i.NdJ("click",function(Ne){return ne.onClick(Ne)}),i.TgZ(1,"div",1)(2,"input",2,3),i.NdJ("focus",function(){return ne.onFocus()})("blur",function(){return ne.onBlur()}),i.qZA()(),i.TgZ(4,"div",4,5),i._UZ(6,"span",6),i.qZA()()),2&E&&(i.Q6J("ngClass",i.WLB(9,cn,ne.focused,ne.isDisabled())),i.xp6(2),i.Q6J("checked",ne.checked)("disabled",ne.isDisabled()),i.uIk("id",ne.inputId)("name",ne.name)("aria-label",ne.ariaLabel),i.xp6(2),i.Q6J("ngClass",i.kEZ(12,yi,ne.checked,ne.focused,ne.isDisabled())),i.uIk("aria-checked",ne.checked),i.xp6(2),i.Q6J("ngClass",i.VKq(16,di,ne.checked)))},dependencies:[t.mk],encapsulation:2,changeDetection:0}),fe})(),To=(()=>{class fe{}return fe.\u0275fac=function(E){return new(E||fe)},fe.\u0275mod=i.oAB({type:fe}),fe.\u0275inj=i.cJS({imports:[t.ez,ze,p.j,u.kW,r.u5,M.hJ,wt,v._8,_.L$,rt,F.v,L.m8,F.v]}),fe})()},9129:(qe,re,l)=>{"use strict";l.d(re,{EV:()=>W,FN:()=>P});var t=l(2560),i=l(4666),r=l(4356),L=l(8549),M=l(4538),v=l(4851);const y=["container"],u=function(I,k,D,N){return{"pi-info-circle":I,"pi-exclamation-triangle":k,"pi-times-circle":D,"pi-check":N}};function _(I,k){if(1&I&&(t.ynx(0),t._UZ(1,"span",6),t.TgZ(2,"div",7)(3,"div",8),t._uU(4),t.qZA(),t.TgZ(5,"div",9),t._uU(6),t.qZA()(),t.BQk()),2&I){const D=t.oxw();t.xp6(1),t.Tol("p-toast-message-icon pi"+(D.message.icon?" "+D.message.icon:"")),t.Q6J("ngClass",t.l5B(5,u,"info"==D.message.severity,"warn"==D.message.severity,"error"==D.message.severity,"success"==D.message.severity)),t.xp6(3),t.Oqu(D.message.summary),t.xp6(2),t.Oqu(D.message.detail)}}function p(I,k){1&I&&t.GkF(0)}function C(I,k){if(1&I){const D=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(s){t.CHM(D);const V=t.oxw();return t.KtG(V.onCloseIconClick(s))})("keydown.enter",function(s){t.CHM(D);const V=t.oxw();return t.KtG(V.onCloseIconClick(s))}),t._UZ(1,"span",11),t.qZA()}}const g=function(I){return[I,"p-toast-message"]},f=function(I,k,D,N){return{showTransformParams:I,hideTransformParams:k,showTransitionParams:D,hideTransitionParams:N}},d=function(I){return{value:"visible",params:I}},h=function(I){return{$implicit:I}};function T(I,k){if(1&I){const D=t.EpF();t.TgZ(0,"p-toastItem",3),t.NdJ("onClose",function(s){t.CHM(D);const V=t.oxw();return t.KtG(V.onMessageClose(s))})("@toastAnimation.start",function(s){t.CHM(D);const V=t.oxw();return t.KtG(V.onAnimationStart(s))})("@toastAnimation.done",function(s){t.CHM(D);const V=t.oxw();return t.KtG(V.onAnimationEnd(s))}),t.qZA()}if(2&I){const D=k.$implicit,N=k.index,s=t.oxw();t.Q6J("message",D)("index",N)("template",s.template)("@toastAnimation",void 0)("showTransformOptions",s.showTransformOptions)("hideTransformOptions",s.hideTransformOptions)("showTransitionOptions",s.showTransitionOptions)("hideTransitionOptions",s.hideTransitionOptions)}}let b=(()=>{class I{constructor(D){this.zone=D,this.onClose=new t.vpe}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(D){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),D.preventDefault()}ngOnDestroy(){this.clearTimeout()}}return I.\u0275fac=function(D){return new(D||I)(t.Y36(t.R0b))},I.\u0275cmp=t.Xpm({type:I,selectors:[["p-toastItem"]],viewQuery:function(D,N){if(1&D&&t.Gf(y,5),2&D){let s;t.iGM(s=t.CRH())&&(N.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:"index",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:21,consts:[[3,"ngClass","mouseenter","mouseleave"],["container",""],["role","alert","aria-live","assertive","aria-atomic","true",1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"ngClass"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[1,"p-toast-icon-close-icon","pi","pi-times"]],template:function(D,N){1&D&&(t.TgZ(0,"div",0,1),t.NdJ("mouseenter",function(){return N.onMouseEnter()})("mouseleave",function(){return N.onMouseLeave()}),t.TgZ(2,"div",2),t.YNc(3,_,7,10,"ng-container",3),t.YNc(4,p,1,0,"ng-container",4),t.YNc(5,C,2,0,"button",5),t.qZA()()),2&D&&(t.Tol(N.message.styleClass),t.Q6J("ngClass",t.VKq(10,g,"p-toast-message-"+N.message.severity))("@messageState",t.VKq(17,d,t.l5B(12,f,N.showTransformOptions,N.hideTransformOptions,N.showTransitionOptions,N.hideTransitionOptions))),t.uIk("id",N.message.id),t.xp6(2),t.Q6J("ngClass",N.message.contentStyleClass),t.xp6(1),t.Q6J("ngIf",!N.template),t.xp6(1),t.Q6J("ngTemplateOutlet",N.template)("ngTemplateOutletContext",t.VKq(19,h,N.message)),t.xp6(1),t.Q6J("ngIf",!1!==N.message.closable))},dependencies:[i.mk,i.O5,i.tP,M.H],encapsulation:2,data:{animation:[(0,v.X$)("messageState",[(0,v.SB)("visible",(0,v.oB)({transform:"translateY(0)",opacity:1})),(0,v.eR)("void => *",[(0,v.oB)({transform:"{{showTransformParams}}",opacity:0}),(0,v.jt)("{{showTransitionParams}}")]),(0,v.eR)("* => void",[(0,v.jt)("{{hideTransitionParams}}",(0,v.oB)({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),I})(),P=(()=>{class I{constructor(D,N,s,V,Q){this.document=D,this.renderer=N,this.messageService=s,this.cd=V,this.config=Q,this.autoZIndex=!0,this.baseZIndex=0,this.position="top-right",this.preventOpenDuplicates=!1,this.preventDuplicates=!1,this.showTransformOptions="translateY(100%)",this.hideTransformOptions="translateY(-100%)",this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="250ms ease-in",this.onClose=new t.vpe,this.id=(0,L.Th)()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(D=>{if(D)if(Array.isArray(D)){const N=D.filter(s=>this.canAdd(s));this.add(N)}else this.canAdd(D)&&this.add([D])}),this.clearSubscription=this.messageService.clearObserver.subscribe(D=>{D?this.key===D&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(D){this.messages=this.messages?[...this.messages,...D]:[...D],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...D]:[...D]),this.cd.markForCheck()}canAdd(D){let N=this.key===D.key;return N&&this.preventOpenDuplicates&&(N=!this.containsMessage(this.messages,D)),N&&this.preventDuplicates&&(N=!this.containsMessage(this.messagesArchieve,D)),N}containsMessage(D,N){return!!D&&null!=D.find(s=>s.summary===N.summary&&s.detail==N.detail&&s.severity===N.severity)}ngAfterContentInit(){this.templates.forEach(D=>{D.getType(),this.template=D.template})}onMessageClose(D){this.messages.splice(D.index,1),this.onClose.emit({message:D.message}),this.cd.detectChanges()}onAnimationStart(D){"void"===D.fromState&&(this.renderer.setAttribute(this.containerViewChild.nativeElement,this.id,""),this.autoZIndex&&""===this.containerViewChild.nativeElement.style.zIndex&&L.P9.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(D){"void"===D.toState&&this.autoZIndex&&L.gb.isEmpty(this.messages)&&L.P9.clear(this.containerViewChild.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let D="";for(let N in this.breakpoints){let s="";for(let V in this.breakpoints[N])s+=V+":"+this.breakpoints[N][V]+" !important;";D+=`\n                    @media screen and (max-width: ${N}) {\n                        .p-toast[${this.id}] {\n                           ${s}\n                        }\n                    }\n                `}this.renderer.setProperty(this.styleElement,"innerHTML",D)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&L.P9.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return I.\u0275fac=function(D){return new(D||I)(t.Y36(i.K0),t.Y36(t.Qsj),t.Y36(r.ez),t.Y36(t.sBO),t.Y36(r.b4))},I.\u0275cmp=t.Xpm({type:I,selectors:[["p-toast"]],contentQueries:function(D,N,s){if(1&D&&t.Suo(s,r.jx,4),2&D){let V;t.iGM(V=t.CRH())&&(N.templates=V)}},viewQuery:function(D,N){if(1&D&&t.Gf(y,5),2&D){let s;t.iGM(s=t.CRH())&&(N.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function(D,N){1&D&&(t.TgZ(0,"div",0,1),t.YNc(2,T,1,8,"p-toastItem",2),t.qZA()),2&D&&(t.Tol(N.styleClass),t.Q6J("ngClass","p-toast p-component p-toast-"+N.position)("ngStyle",N.style),t.xp6(2),t.Q6J("ngForOf",N.messages))},dependencies:[i.mk,i.sg,i.PC,b],styles:[".p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}\n"],encapsulation:2,data:{animation:[(0,v.X$)("toastAnimation",[(0,v.eR)(":enter, :leave",[(0,v.IO)("@*",(0,v.pV)())])])]},changeDetection:0}),I})(),W=(()=>{class I{}return I.\u0275fac=function(D){return new(D||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({imports:[i.ez,M.T,r.m8]}),I})()},4329:(qe,re,l)=>{"use strict";l.d(re,{u:()=>v,z:()=>y});var t=l(4666),i=l(2560),r=l(1420),L=l(8549),M=l(4356);let v=(()=>{class u{constructor(p,C,g,f,d,h){this.platformId=p,this.el=C,this.zone=g,this.config=f,this.renderer=d,this.changeDetector=h,this.escape=!0,this.autoHide=!0,this.fitContent=!0,this.hideOnEscape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0,autoHide:!0,hideOnEscape:!1}}get disabled(){return this._disabled}set disabled(p){this._disabled=p,this.deactivate()}ngAfterViewInit(){(0,t.NF)(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let p=this.getTarget(this.el.nativeElement);p.addEventListener("focus",this.focusListener),p.addEventListener("blur",this.blurListener)}})}ngOnChanges(p){p.tooltipPosition&&this.setOption({tooltipPosition:p.tooltipPosition.currentValue}),p.tooltipEvent&&this.setOption({tooltipEvent:p.tooltipEvent.currentValue}),p.appendTo&&this.setOption({appendTo:p.appendTo.currentValue}),p.positionStyle&&this.setOption({positionStyle:p.positionStyle.currentValue}),p.tooltipStyleClass&&this.setOption({tooltipStyleClass:p.tooltipStyleClass.currentValue}),p.tooltipZIndex&&this.setOption({tooltipZIndex:p.tooltipZIndex.currentValue}),p.escape&&this.setOption({escape:p.escape.currentValue}),p.showDelay&&this.setOption({showDelay:p.showDelay.currentValue}),p.hideDelay&&this.setOption({hideDelay:p.hideDelay.currentValue}),p.life&&this.setOption({life:p.life.currentValue}),p.positionTop&&this.setOption({positionTop:p.positionTop.currentValue}),p.positionLeft&&this.setOption({positionLeft:p.positionLeft.currentValue}),p.disabled&&this.setOption({disabled:p.disabled.currentValue}),p.text&&(this.setOption({tooltipLabel:p.text.currentValue}),this.active&&(p.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),p.autoHide&&this.setOption({autoHide:p.autoHide.currentValue}),p.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...p.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(p){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(p){(this.isAutoHide()||!(r.p.hasClass(p.toElement,"p-tooltip")||r.p.hasClass(p.toElement,"p-tooltip-arrow")||r.p.hasClass(p.toElement,"p-tooltip-text")||r.p.hasClass(p.relatedTarget,"p-tooltip")))&&this.deactivate()}onFocus(p){this.activate()}onBlur(p){this.deactivate()}onInputClick(p){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let p=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},p)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let p=document.createElement("div");p.className="p-tooltip-arrow",this.container.appendChild(p),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?r.p.appendChild(this.container,this.el.nativeElement):r.p.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()||this.bindContainerMouseleaveListener()}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",C=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),r.p.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?L.P9.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&L.P9.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let p=this.el.nativeElement.getBoundingClientRect();return{left:p.left+r.p.getWindowScrollLeft(),top:p.top+r.p.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let p=this.getHostOffset(),C=p.left+r.p.getOuterWidth(this.el.nativeElement),g=p.top+(r.p.getOuterHeight(this.el.nativeElement)-r.p.getOuterHeight(this.container))/2;this.container.style.left=C+this.getOption("positionLeft")+"px",this.container.style.top=g+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let p=this.getHostOffset(),C=p.left-r.p.getOuterWidth(this.container),g=p.top+(r.p.getOuterHeight(this.el.nativeElement)-r.p.getOuterHeight(this.container))/2;this.container.style.left=C+this.getOption("positionLeft")+"px",this.container.style.top=g+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let p=this.getHostOffset(),C=p.left+(r.p.getOuterWidth(this.el.nativeElement)-r.p.getOuterWidth(this.container))/2,g=p.top-r.p.getOuterHeight(this.container);this.container.style.left=C+this.getOption("positionLeft")+"px",this.container.style.top=g+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let p=this.getHostOffset(),C=p.left+(r.p.getOuterWidth(this.el.nativeElement)-r.p.getOuterWidth(this.container))/2,g=p.top+r.p.getOuterHeight(this.el.nativeElement);this.container.style.left=C+this.getOption("positionLeft")+"px",this.container.style.top=g+this.getOption("positionTop")+"px"}setOption(p){this._tooltipOptions={...this._tooltipOptions,...p}}getOption(p){return this._tooltipOptions[p]}getTarget(p){return r.p.hasClass(p,"p-inputwrapper")?r.p.findSingle(p,"input"):p}preAlign(p){this.container.style.left="-999px",this.container.style.top="-999px";let C="p-tooltip p-component p-tooltip-"+p;this.container.className=this.getOption("tooltipStyleClass")?C+" "+this.getOption("tooltipStyleClass"):C}isOutOfBounds(){let p=this.container.getBoundingClientRect(),C=p.top,g=p.left,f=r.p.getOuterWidth(this.container),d=r.p.getOuterHeight(this.container),h=r.p.getViewport();return g+f>h.width||g<0||C<0||C+d>h.height}onWindowResize(p){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new r.V(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let p=this.getTarget(this.el.nativeElement);p.removeEventListener("focus",this.focusListener),p.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):r.p.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&L.P9.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return u.\u0275fac=function(p){return new(p||u)(i.Y36(i.Lbi),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(M.b4),i.Y36(i.Qsj),i.Y36(i.sBO))},u.\u0275dir=i.lG2({type:u,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(p,C){1&p&&i.NdJ("keydown.escape",function(f){return C.onPressEscape(f)},!1,i.evT)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[i.TTD]}),u})(),y=(()=>{class u{}return u.\u0275fac=function(p){return new(p||u)},u.\u0275mod=i.oAB({type:u}),u.\u0275inj=i.cJS({imports:[t.ez]}),u})()},8549:(qe,re,l)=>{"use strict";l.d(re,{P9:()=>M,Th:()=>r,gb:()=>t});class t{static equals(y,u,_){return _?this.resolveFieldData(y,_)===this.resolveFieldData(u,_):this.equalsByValue(y,u)}static equalsByValue(y,u){if(y===u)return!0;if(y&&u&&"object"==typeof y&&"object"==typeof u){var C,g,f,_=Array.isArray(y),p=Array.isArray(u);if(_&&p){if((g=y.length)!=u.length)return!1;for(C=g;0!=C--;)if(!this.equalsByValue(y[C],u[C]))return!1;return!0}if(_!=p)return!1;var d=this.isDate(y),h=this.isDate(u);if(d!=h)return!1;if(d&&h)return y.getTime()==u.getTime();var T=y instanceof RegExp,b=u instanceof RegExp;if(T!=b)return!1;if(T&&b)return y.toString()==u.toString();var P=Object.keys(y);if((g=P.length)!==Object.keys(u).length)return!1;for(C=g;0!=C--;)if(!Object.prototype.hasOwnProperty.call(u,P[C]))return!1;for(C=g;0!=C--;)if(!this.equalsByValue(y[f=P[C]],u[f]))return!1;return!0}return y!=y&&u!=u}static resolveFieldData(y,u){if(y&&u){if(this.isFunction(u))return u(y);if(-1==u.indexOf("."))return y[u];{let _=u.split("."),p=y;for(let C=0,g=_.length;C<g;++C){if(null==p)return null;p=p[_[C]]}return p}}return null}static isFunction(y){return!!(y&&y.constructor&&y.call&&y.apply)}static reorderArray(y,u,_){y&&u!==_&&(_>=y.length&&(_%=y.length,u%=y.length),y.splice(_,0,y.splice(u,1)[0]))}static insertIntoOrderedArray(y,u,_,p){if(_.length>0){let C=!1;for(let g=0;g<_.length;g++)if(this.findIndexInList(_[g],p)>u){_.splice(g,0,y),C=!0;break}C||_.push(y)}else _.push(y)}static findIndexInList(y,u){let _=-1;if(u)for(let p=0;p<u.length;p++)if(u[p]==y){_=p;break}return _}static contains(y,u){if(null!=y&&u&&u.length)for(let _ of u)if(this.equals(y,_))return!0;return!1}static removeAccents(y){return y&&y.search(/[\xC0-\xFF]/g)>-1&&(y=y.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),y}static isDate(y){return"[object Date]"===Object.prototype.toString.call(y)}static isEmpty(y){return null==y||""===y||Array.isArray(y)&&0===y.length||!this.isDate(y)&&"object"==typeof y&&0===Object.keys(y).length}static isNotEmpty(y){return!this.isEmpty(y)}static compare(y,u,_,p=1){let C=-1;const g=this.isEmpty(y),f=this.isEmpty(u);return C=g&&f?0:g?p:f?-p:"string"==typeof y&&"string"==typeof u?y.localeCompare(u,_,{numeric:!0}):y<u?-1:y>u?1:0,C}static sort(y,u,_=1,p,C=1){return(1===C?_:C)*t.compare(y,u,p,_)}static merge(y,u){if(null!=y||null!=u)return null!=y&&"object"!=typeof y||null!=u&&"object"!=typeof u?null!=y&&"string"!=typeof y||null!=u&&"string"!=typeof u?u||y:[y||"",u||""].join(" "):{...y||{},...u||{}}}}var i=0;function r(){return"pr_id_"+ ++i}var M=function L(){let v=[];const p=C=>C&&parseInt(C.style.zIndex,10)||0;return{get:p,set:(C,g,f)=>{g&&(g.style.zIndex=String(((C,g)=>{let f=v.length>0?v[v.length-1]:{key:C,value:g},d=f.value+(f.key===C?0:g)+1;return v.push({key:C,value:d}),d})(C,f)))},clear:C=>{C&&((C=>{v=v.filter(g=>g.value!==C)})(p(C)),C.style.zIndex="")},getCurrent:()=>v.length>0?v[v.length-1].value:0}}()},2321:(qe,re,l)=>{"use strict";function g(de,Ce,oe,G){return new(oe||(oe=Promise))(function(we,Fe){function lt(Bt){try{wt(G.next(Bt))}catch(nn){Fe(nn)}}function Pt(Bt){try{wt(G.throw(Bt))}catch(nn){Fe(nn)}}function wt(Bt){Bt.done?we(Bt.value):function ye(we){return we instanceof oe?we:new oe(function(Fe){Fe(we)})}(Bt.value).then(lt,Pt)}wt((G=G.apply(de,Ce||[])).next())})}function k(de){return this instanceof k?(this.v=de,this):new k(de)}function D(de,Ce,oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ye,G=oe.apply(de,Ce||[]),we=[];return ye={},Fe("next"),Fe("throw"),Fe("return"),ye[Symbol.asyncIterator]=function(){return this},ye;function Fe(xt){G[xt]&&(ye[xt]=function(sn){return new Promise(function(ct,Ve){we.push([xt,sn,ct,Ve])>1||lt(xt,sn)})})}function lt(xt,sn){try{!function Pt(xt){xt.value instanceof k?Promise.resolve(xt.value.v).then(wt,Bt):nn(we[0][2],xt)}(G[xt](sn))}catch(ct){nn(we[0][3],ct)}}function wt(xt){lt("next",xt)}function Bt(xt){lt("throw",xt)}function nn(xt,sn){xt(sn),we.shift(),we.length&&lt(we[0][0],we[0][1])}}function s(de){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var oe,Ce=de[Symbol.asyncIterator];return Ce?Ce.call(de):(de=function T(de){var Ce="function"==typeof Symbol&&Symbol.iterator,oe=Ce&&de[Ce],G=0;if(oe)return oe.call(de);if(de&&"number"==typeof de.length)return{next:function(){return de&&G>=de.length&&(de=void 0),{value:de&&de[G++],done:!de}}};throw new TypeError(Ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(de),oe={},G("next"),G("throw"),G("return"),oe[Symbol.asyncIterator]=function(){return this},oe);function G(we){oe[we]=de[we]&&function(Fe){return new Promise(function(lt,Pt){!function ye(we,Fe,lt,Pt){Promise.resolve(Pt).then(function(wt){we({value:wt,done:lt})},Fe)}(lt,Pt,(Fe=de[we](Fe)).done,Fe.value)})}}}l.d(re,{FC:()=>D,KL:()=>s,mG:()=>g,qq:()=>k}),"function"==typeof SuppressedError&&SuppressedError}},qe=>{qe(qe.s=263)}]);
//# sourceMappingURL=main.c46e7d2361ff36d7.js.map
(self.webpackChunkCommunityView=self.webpackChunkCommunityView||[]).push([[429],{9193:(n,m,t)=>{"use strict";t(593),t(8502),t(4924),t(5971),window.__Zone_enable_cross_context_check=!0},4924:()=>{"use strict";!function(f){const v=f.performance;function P(ut){v&&v.mark&&v.mark(ut)}function S(ut,Y){v&&v.measure&&v.measure(ut,Y)}P("Zone");const L=f.__Zone_symbol_prefix||"__zone_symbol__";function D(ut){return L+ut}const z=!0===f[D("forceDuplicateZoneCheck")];if(f.Zone){if(z||"function"!=typeof f.Zone.__symbol__)throw new Error("Zone already loaded.");return f.Zone}let V=(()=>{class ut{constructor(l,g){this._parent=l,this._name=g?g.name||"unnamed":"<root>",this._properties=g&&g.properties||{},this._zoneDelegate=new nt(this,this._parent&&this._parent._zoneDelegate,g)}static assertZonePatched(){if(f.Promise!==Xt.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let l=ut.current;for(;l.parent;)l=l.parent;return l}static get current(){return bt.zone}static get currentTask(){return Mt}static __load_patch(l,g,X=!1){if(Xt.hasOwnProperty(l)){if(!X&&z)throw Error("Already loaded patch: "+l)}else if(!f["__Zone_disable_"+l]){const ct="Zone:"+l;P(ct),Xt[l]=g(f,ut,jt),S(ct,ct)}}get parent(){return this._parent}get name(){return this._name}get(l){const g=this.getZoneWith(l);if(g)return g._properties[l]}getZoneWith(l){let g=this;for(;g;){if(g._properties.hasOwnProperty(l))return g;g=g._parent}return null}fork(l){if(!l)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,l)}wrap(l,g){if("function"!=typeof l)throw new Error("Expecting function got: "+l);const X=this._zoneDelegate.intercept(this,l,g),ct=this;return function(){return ct.runGuarded(X,this,arguments,g)}}run(l,g,X,ct){bt={parent:bt,zone:this};try{return this._zoneDelegate.invoke(this,l,g,X,ct)}finally{bt=bt.parent}}runGuarded(l,g=null,X,ct){bt={parent:bt,zone:this};try{try{return this._zoneDelegate.invoke(this,l,g,X,ct)}catch(Ft){if(this._zoneDelegate.handleError(this,Ft))throw Ft}}finally{bt=bt.parent}}runTask(l,g,X){if(l.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(l.zone||Et).name+"; Execution: "+this.name+")");if(l.state===at&&(l.type===Vt||l.type===st))return;const ct=l.state!=K;ct&&l._transitionTo(K,Tt),l.runCount++;const Ft=Mt;Mt=l,bt={parent:bt,zone:this};try{l.type==st&&l.data&&!l.data.isPeriodic&&(l.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,l,g,X)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{l.state!==at&&l.state!==G&&(l.type==Vt||l.data&&l.data.isPeriodic?ct&&l._transitionTo(Tt,K):(l.runCount=0,this._updateTaskCount(l,-1),ct&&l._transitionTo(at,K,at))),bt=bt.parent,Mt=Ft}}scheduleTask(l){if(l.zone&&l.zone!==this){let X=this;for(;X;){if(X===l.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${l.zone.name}`);X=X.parent}}l._transitionTo(xt,at);const g=[];l._zoneDelegates=g,l._zone=this;try{l=this._zoneDelegate.scheduleTask(this,l)}catch(X){throw l._transitionTo(G,xt,at),this._zoneDelegate.handleError(this,X),X}return l._zoneDelegates===g&&this._updateTaskCount(l,1),l.state==xt&&l._transitionTo(Tt,xt),l}scheduleMicroTask(l,g,X,ct){return this.scheduleTask(new $(pt,l,g,X,ct,void 0))}scheduleMacroTask(l,g,X,ct,Ft){return this.scheduleTask(new $(st,l,g,X,ct,Ft))}scheduleEventTask(l,g,X,ct,Ft){return this.scheduleTask(new $(Vt,l,g,X,ct,Ft))}cancelTask(l){if(l.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(l.zone||Et).name+"; Execution: "+this.name+")");l._transitionTo(Pt,Tt,K);try{this._zoneDelegate.cancelTask(this,l)}catch(g){throw l._transitionTo(G,Pt),this._zoneDelegate.handleError(this,g),g}return this._updateTaskCount(l,-1),l._transitionTo(at,Pt),l.runCount=0,l}_updateTaskCount(l,g){const X=l._zoneDelegates;-1==g&&(l._zoneDelegates=null);for(let ct=0;ct<X.length;ct++)X[ct]._updateTaskCount(l.type,g)}}return ut.__symbol__=D,ut})();const rt={name:"",onHasTask:(ut,Y,l,g)=>ut.hasTask(l,g),onScheduleTask:(ut,Y,l,g)=>ut.scheduleTask(l,g),onInvokeTask:(ut,Y,l,g,X,ct)=>ut.invokeTask(l,g,X,ct),onCancelTask:(ut,Y,l,g)=>ut.cancelTask(l,g)};class nt{constructor(Y,l,g){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=Y,this._parentDelegate=l,this._forkZS=g&&(g&&g.onFork?g:l._forkZS),this._forkDlgt=g&&(g.onFork?l:l._forkDlgt),this._forkCurrZone=g&&(g.onFork?this.zone:l._forkCurrZone),this._interceptZS=g&&(g.onIntercept?g:l._interceptZS),this._interceptDlgt=g&&(g.onIntercept?l:l._interceptDlgt),this._interceptCurrZone=g&&(g.onIntercept?this.zone:l._interceptCurrZone),this._invokeZS=g&&(g.onInvoke?g:l._invokeZS),this._invokeDlgt=g&&(g.onInvoke?l:l._invokeDlgt),this._invokeCurrZone=g&&(g.onInvoke?this.zone:l._invokeCurrZone),this._handleErrorZS=g&&(g.onHandleError?g:l._handleErrorZS),this._handleErrorDlgt=g&&(g.onHandleError?l:l._handleErrorDlgt),this._handleErrorCurrZone=g&&(g.onHandleError?this.zone:l._handleErrorCurrZone),this._scheduleTaskZS=g&&(g.onScheduleTask?g:l._scheduleTaskZS),this._scheduleTaskDlgt=g&&(g.onScheduleTask?l:l._scheduleTaskDlgt),this._scheduleTaskCurrZone=g&&(g.onScheduleTask?this.zone:l._scheduleTaskCurrZone),this._invokeTaskZS=g&&(g.onInvokeTask?g:l._invokeTaskZS),this._invokeTaskDlgt=g&&(g.onInvokeTask?l:l._invokeTaskDlgt),this._invokeTaskCurrZone=g&&(g.onInvokeTask?this.zone:l._invokeTaskCurrZone),this._cancelTaskZS=g&&(g.onCancelTask?g:l._cancelTaskZS),this._cancelTaskDlgt=g&&(g.onCancelTask?l:l._cancelTaskDlgt),this._cancelTaskCurrZone=g&&(g.onCancelTask?this.zone:l._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const X=g&&g.onHasTask;(X||l&&l._hasTaskZS)&&(this._hasTaskZS=X?g:rt,this._hasTaskDlgt=l,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=Y,g.onScheduleTask||(this._scheduleTaskZS=rt,this._scheduleTaskDlgt=l,this._scheduleTaskCurrZone=this.zone),g.onInvokeTask||(this._invokeTaskZS=rt,this._invokeTaskDlgt=l,this._invokeTaskCurrZone=this.zone),g.onCancelTask||(this._cancelTaskZS=rt,this._cancelTaskDlgt=l,this._cancelTaskCurrZone=this.zone))}fork(Y,l){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,Y,l):new V(Y,l)}intercept(Y,l,g){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,Y,l,g):l}invoke(Y,l,g,X,ct){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,Y,l,g,X,ct):l.apply(g,X)}handleError(Y,l){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,Y,l)}scheduleTask(Y,l){let g=l;if(this._scheduleTaskZS)this._hasTaskZS&&g._zoneDelegates.push(this._hasTaskDlgtOwner),g=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,Y,l),g||(g=l);else if(l.scheduleFn)l.scheduleFn(l);else{if(l.type!=pt)throw new Error("Task is missing scheduleFn.");Z(l)}return g}invokeTask(Y,l,g,X){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,Y,l,g,X):l.callback.apply(g,X)}cancelTask(Y,l){let g;if(this._cancelTaskZS)g=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,Y,l);else{if(!l.cancelFn)throw Error("Task is not cancelable");g=l.cancelFn(l)}return g}hasTask(Y,l){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,Y,l)}catch(g){this.handleError(Y,g)}}_updateTaskCount(Y,l){const g=this._taskCounts,X=g[Y],ct=g[Y]=X+l;if(ct<0)throw new Error("More tasks executed then were scheduled.");0!=X&&0!=ct||this.hasTask(this.zone,{microTask:g.microTask>0,macroTask:g.macroTask>0,eventTask:g.eventTask>0,change:Y})}}class ${constructor(Y,l,g,X,ct,Ft){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=Y,this.source=l,this.data=X,this.scheduleFn=ct,this.cancelFn=Ft,!g)throw new Error("callback is not defined");this.callback=g;const i=this;this.invoke=Y===Vt&&X&&X.useG?$.invokeTask:function(){return $.invokeTask.call(f,i,this,arguments)}}static invokeTask(Y,l,g){Y||(Y=this),zt++;try{return Y.runCount++,Y.zone.runTask(Y,l,g)}finally{1==zt&&U(),zt--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(at,xt)}_transitionTo(Y,l,g){if(this._state!==l&&this._state!==g)throw new Error(`${this.type} '${this.source}': can not transition to '${Y}', expecting state '${l}'${g?" or '"+g+"'":""}, was '${this._state}'.`);this._state=Y,Y==at&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const vt=D("setTimeout"),ot=D("Promise"),A=D("then");let et,H=[],M=!1;function q(ut){if(et||f[ot]&&(et=f[ot].resolve(0)),et){let Y=et[A];Y||(Y=et.then),Y.call(et,ut)}else f[vt](ut,0)}function Z(ut){0===zt&&0===H.length&&q(U),ut&&H.push(ut)}function U(){if(!M){for(M=!0;H.length;){const ut=H;H=[];for(let Y=0;Y<ut.length;Y++){const l=ut[Y];try{l.zone.runTask(l,null,null)}catch(g){jt.onUnhandledError(g)}}}jt.microtaskDrainDone(),M=!1}}const Et={name:"NO ZONE"},at="notScheduled",xt="scheduling",Tt="scheduled",K="running",Pt="canceling",G="unknown",pt="microTask",st="macroTask",Vt="eventTask",Xt={},jt={symbol:D,currentZoneFrame:()=>bt,onUnhandledError:It,microtaskDrainDone:It,scheduleMicroTask:Z,showUncaughtError:()=>!V[D("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:It,patchMethod:()=>It,bindArguments:()=>[],patchThen:()=>It,patchMacroTask:()=>It,patchEventPrototype:()=>It,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>It,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>It,wrapWithCurrentZone:()=>It,filterProperties:()=>[],attachOriginToPatched:()=>It,_redefineProperty:()=>It,patchCallbacks:()=>It,nativeScheduleMicroTask:q};let bt={parent:null,zone:new V(null,null)},Mt=null,zt=0;function It(){}S("Zone","Zone"),f.Zone=V}(typeof window<"u"&&window||typeof self<"u"&&self||global);const n=Object.getOwnPropertyDescriptor,m=Object.defineProperty,t=Object.getPrototypeOf,e=Object.create,o=Array.prototype.slice,a="addEventListener",u="removeEventListener",c=Zone.__symbol__(a),p=Zone.__symbol__(u),d="true",T="false",R=Zone.__symbol__("");function b(f,v){return Zone.current.wrap(f,v)}function x(f,v,P,S,L){return Zone.current.scheduleMacroTask(f,v,P,S,L)}const E=Zone.__symbol__,w=typeof window<"u",N=w?window:void 0,C=w&&N||"object"==typeof self&&self||global,B="removeAttribute";function tt(f,v){for(let P=f.length-1;P>=0;P--)"function"==typeof f[P]&&(f[P]=b(f[P],v+"_"+P));return f}function k(f){return!f||!1!==f.writable&&!("function"==typeof f.get&&typeof f.set>"u")}const W=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,F=!("nw"in C)&&typeof C.process<"u"&&"[object process]"==={}.toString.call(C.process),lt=!F&&!W&&!(!w||!N.HTMLElement),Ut=typeof C.process<"u"&&"[object process]"==={}.toString.call(C.process)&&!W&&!(!w||!N.HTMLElement),Nt={},wt=function(f){if(!(f=f||C.event))return;let v=Nt[f.type];v||(v=Nt[f.type]=E("ON_PROPERTY"+f.type));const P=this||f.target||C,S=P[v];let L;return lt&&P===N&&"error"===f.type?(L=S&&S.call(this,f.message,f.filename,f.lineno,f.colno,f.error),!0===L&&f.preventDefault()):(L=S&&S.apply(this,arguments),null!=L&&!L&&f.preventDefault()),L};function At(f,v,P){let S=n(f,v);if(!S&&P&&n(P,v)&&(S={enumerable:!0,configurable:!0}),!S||!S.configurable)return;const L=E("on"+v+"patched");if(f.hasOwnProperty(L)&&f[L])return;delete S.writable,delete S.value;const D=S.get,z=S.set,V=v.slice(2);let rt=Nt[V];rt||(rt=Nt[V]=E("ON_PROPERTY"+V)),S.set=function(nt){let $=this;!$&&f===C&&($=C),$&&("function"==typeof $[rt]&&$.removeEventListener(V,wt),z&&z.call($,null),$[rt]=nt,"function"==typeof nt&&$.addEventListener(V,wt,!1))},S.get=function(){let nt=this;if(!nt&&f===C&&(nt=C),!nt)return null;const $=nt[rt];if($)return $;if(D){let vt=D.call(this);if(vt)return S.set.call(this,vt),"function"==typeof nt[B]&&nt.removeAttribute(v),vt}return null},m(f,v,S),f[L]=!0}function $t(f,v,P){if(v)for(let S=0;S<v.length;S++)At(f,"on"+v[S],P);else{const S=[];for(const L in f)"on"==L.slice(0,2)&&S.push(L);for(let L=0;L<S.length;L++)At(f,S[L],P)}}const Dt=E("originalInstance");function ht(f){const v=C[f];if(!v)return;C[E(f)]=v,C[f]=function(){const L=tt(arguments,f);switch(L.length){case 0:this[Dt]=new v;break;case 1:this[Dt]=new v(L[0]);break;case 2:this[Dt]=new v(L[0],L[1]);break;case 3:this[Dt]=new v(L[0],L[1],L[2]);break;case 4:this[Dt]=new v(L[0],L[1],L[2],L[3]);break;default:throw new Error("Arg list too long.")}},dt(C[f],v);const P=new v(function(){});let S;for(S in P)"XMLHttpRequest"===f&&"responseBlob"===S||function(L){"function"==typeof P[L]?C[f].prototype[L]=function(){return this[Dt][L].apply(this[Dt],arguments)}:m(C[f].prototype,L,{set:function(D){"function"==typeof D?(this[Dt][L]=b(D,f+"."+L),dt(this[Dt][L],D)):this[Dt][L]=D},get:function(){return this[Dt][L]}})}(S);for(S in v)"prototype"!==S&&v.hasOwnProperty(S)&&(C[f][S]=v[S])}function it(f,v,P){let S=f;for(;S&&!S.hasOwnProperty(v);)S=t(S);!S&&f[v]&&(S=f);const L=E(v);let D=null;if(S&&(!(D=S[L])||!S.hasOwnProperty(L))&&(D=S[L]=S[v],k(S&&n(S,v)))){const V=P(D,L,v);S[v]=function(){return V(this,arguments)},dt(S[v],D)}return D}function yt(f,v,P){let S=null;function L(D){const z=D.data;return z.args[z.cbIdx]=function(){D.invoke.apply(this,arguments)},S.apply(z.target,z.args),D}S=it(f,v,D=>function(z,V){const rt=P(z,V);return rt.cbIdx>=0&&"function"==typeof V[rt.cbIdx]?x(rt.name,V[rt.cbIdx],rt,L):D.apply(z,V)})}function dt(f,v){f[E("OriginalDelegate")]=v}let Rt=!1,mt=!1;function Lt(){if(Rt)return mt;Rt=!0;try{const f=N.navigator.userAgent;(-1!==f.indexOf("MSIE ")||-1!==f.indexOf("Trident/")||-1!==f.indexOf("Edge/"))&&(mt=!0)}catch{}return mt}Zone.__load_patch("ZoneAwarePromise",(f,v,P)=>{const S=Object.getOwnPropertyDescriptor,L=Object.defineProperty,z=P.symbol,V=[],rt=!0===f[z("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],nt=z("Promise"),$=z("then"),vt="__creationTrace__";P.onUnhandledError=i=>{if(P.showUncaughtError()){const h=i&&i.rejection;h?console.error("Unhandled Promise rejection:",h instanceof Error?h.message:h,"; Zone:",i.zone.name,"; Task:",i.task&&i.task.source,"; Value:",h,h instanceof Error?h.stack:void 0):console.error(i)}},P.microtaskDrainDone=()=>{for(;V.length;){const i=V.shift();try{i.zone.runGuarded(()=>{throw i.throwOriginal?i.rejection:i})}catch(h){A(h)}}};const ot=z("unhandledPromiseRejectionHandler");function A(i){P.onUnhandledError(i);try{const h=v[ot];"function"==typeof h&&h.call(this,i)}catch{}}function H(i){return i&&i.then}function M(i){return i}function et(i){return l.reject(i)}const q=z("state"),Z=z("value"),U=z("finally"),Et=z("parentPromiseValue"),at=z("parentPromiseState"),xt="Promise.then",Tt=null,K=!0,Pt=!1,G=0;function pt(i,h){return r=>{try{jt(i,h,r)}catch(s){jt(i,!1,s)}}}const st=function(){let i=!1;return function(r){return function(){i||(i=!0,r.apply(null,arguments))}}},Vt="Promise resolved with itself",Xt=z("currentTaskTrace");function jt(i,h,r){const s=st();if(i===r)throw new TypeError(Vt);if(i[q]===Tt){let y=null;try{("object"==typeof r||"function"==typeof r)&&(y=r&&r.then)}catch(j){return s(()=>{jt(i,!1,j)})(),i}if(h!==Pt&&r instanceof l&&r.hasOwnProperty(q)&&r.hasOwnProperty(Z)&&r[q]!==Tt)Mt(r),jt(i,r[q],r[Z]);else if(h!==Pt&&"function"==typeof y)try{y.call(r,s(pt(i,h)),s(pt(i,!1)))}catch(j){s(()=>{jt(i,!1,j)})()}else{i[q]=h;const j=i[Z];if(i[Z]=r,i[U]===U&&h===K&&(i[q]=i[at],i[Z]=i[Et]),h===Pt&&r instanceof Error){const I=v.currentTask&&v.currentTask.data&&v.currentTask.data[vt];I&&L(r,Xt,{configurable:!0,enumerable:!1,writable:!0,value:I})}for(let I=0;I<j.length;)zt(i,j[I++],j[I++],j[I++],j[I++]);if(0==j.length&&h==Pt){i[q]=G;let I=r;try{throw new Error("Uncaught (in promise): "+function D(i){return i&&i.toString===Object.prototype.toString?(i.constructor&&i.constructor.name||"")+": "+JSON.stringify(i):i?i.toString():Object.prototype.toString.call(i)}(r)+(r&&r.stack?"\n"+r.stack:""))}catch(J){I=J}rt&&(I.throwOriginal=!0),I.rejection=r,I.promise=i,I.zone=v.current,I.task=v.currentTask,V.push(I),P.scheduleMicroTask()}}}return i}const bt=z("rejectionHandledHandler");function Mt(i){if(i[q]===G){try{const h=v[bt];h&&"function"==typeof h&&h.call(this,{rejection:i[Z],promise:i})}catch{}i[q]=Pt;for(let h=0;h<V.length;h++)i===V[h].promise&&V.splice(h,1)}}function zt(i,h,r,s,y){Mt(i);const j=i[q],I=j?"function"==typeof s?s:M:"function"==typeof y?y:et;h.scheduleMicroTask(xt,()=>{try{const J=i[Z],Q=!!r&&U===r[U];Q&&(r[Et]=J,r[at]=j);const _=h.run(I,void 0,Q&&I!==et&&I!==M?[]:[J]);jt(r,!0,_)}catch(J){jt(r,!1,J)}},r)}const ut=function(){},Y=f.AggregateError;class l{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(h){return jt(new this(null),K,h)}static reject(h){return jt(new this(null),Pt,h)}static any(h){if(!h||"function"!=typeof h[Symbol.iterator])return Promise.reject(new Y([],"All promises were rejected"));const r=[];let s=0;try{for(let I of h)s++,r.push(l.resolve(I))}catch{return Promise.reject(new Y([],"All promises were rejected"))}if(0===s)return Promise.reject(new Y([],"All promises were rejected"));let y=!1;const j=[];return new l((I,J)=>{for(let Q=0;Q<r.length;Q++)r[Q].then(_=>{y||(y=!0,I(_))},_=>{j.push(_),s--,0===s&&(y=!0,J(new Y(j,"All promises were rejected")))})})}static race(h){let r,s,y=new this((J,Q)=>{r=J,s=Q});function j(J){r(J)}function I(J){s(J)}for(let J of h)H(J)||(J=this.resolve(J)),J.then(j,I);return y}static all(h){return l.allWithCallback(h)}static allSettled(h){return(this&&this.prototype instanceof l?this:l).allWithCallback(h,{thenCallback:s=>({status:"fulfilled",value:s}),errorCallback:s=>({status:"rejected",reason:s})})}static allWithCallback(h,r){let s,y,j=new this((_,gt)=>{s=_,y=gt}),I=2,J=0;const Q=[];for(let _ of h){H(_)||(_=this.resolve(_));const gt=J;try{_.then(O=>{Q[gt]=r?r.thenCallback(O):O,I--,0===I&&s(Q)},O=>{r?(Q[gt]=r.errorCallback(O),I--,0===I&&s(Q)):y(O)})}catch(O){y(O)}I++,J++}return I-=2,0===I&&s(Q),j}constructor(h){const r=this;if(!(r instanceof l))throw new Error("Must be an instanceof Promise.");r[q]=Tt,r[Z]=[];try{const s=st();h&&h(s(pt(r,K)),s(pt(r,Pt)))}catch(s){jt(r,!1,s)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return l}then(h,r){var s;let y=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!y||"function"!=typeof y)&&(y=this.constructor||l);const j=new y(ut),I=v.current;return this[q]==Tt?this[Z].push(I,j,h,r):zt(this,I,j,h,r),j}catch(h){return this.then(null,h)}finally(h){var r;let s=null===(r=this.constructor)||void 0===r?void 0:r[Symbol.species];(!s||"function"!=typeof s)&&(s=l);const y=new s(ut);y[U]=U;const j=v.current;return this[q]==Tt?this[Z].push(j,y,h,h):zt(this,j,y,h,h),y}}l.resolve=l.resolve,l.reject=l.reject,l.race=l.race,l.all=l.all;const g=f[nt]=f.Promise;f.Promise=l;const X=z("thenPatched");function ct(i){const h=i.prototype,r=S(h,"then");if(r&&(!1===r.writable||!r.configurable))return;const s=h.then;h[$]=s,i.prototype.then=function(y,j){return new l((J,Q)=>{s.call(this,J,Q)}).then(y,j)},i[X]=!0}return P.patchThen=ct,g&&(ct(g),it(f,"fetch",i=>function Ft(i){return function(h,r){let s=i.apply(h,r);if(s instanceof l)return s;let y=s.constructor;return y[X]||ct(y),s}}(i))),Promise[v.__symbol__("uncaughtPromiseErrors")]=V,l}),Zone.__load_patch("toString",f=>{const v=Function.prototype.toString,P=E("OriginalDelegate"),S=E("Promise"),L=E("Error"),D=function(){if("function"==typeof this){const nt=this[P];if(nt)return"function"==typeof nt?v.call(nt):Object.prototype.toString.call(nt);if(this===Promise){const $=f[S];if($)return v.call($)}if(this===Error){const $=f[L];if($)return v.call($)}}return v.call(this)};D[P]=v,Function.prototype.toString=D;const z=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":z.call(this)}});let Ht=!1;if(typeof window<"u")try{const f=Object.defineProperty({},"passive",{get:function(){Ht=!0}});window.addEventListener("test",f,f),window.removeEventListener("test",f,f)}catch{Ht=!1}const kt={useG:!0},St={},Gt={},Bt=new RegExp("^"+R+"(\\w+)(true|false)$"),Wt=E("propagationStopped");function Kt(f,v){const P=(v?v(f):f)+T,S=(v?v(f):f)+d,L=R+P,D=R+S;St[f]={},St[f][T]=L,St[f][d]=D}function Yt(f,v,P,S){const L=S&&S.add||a,D=S&&S.rm||u,z=S&&S.listeners||"eventListeners",V=S&&S.rmAll||"removeAllListeners",rt=E(L),nt="."+L+":",$="prependListener",vt="."+$+":",ot=function(Z,U,Et){if(Z.isRemoved)return;const at=Z.callback;let xt;"object"==typeof at&&at.handleEvent&&(Z.callback=K=>at.handleEvent(K),Z.originalDelegate=at);try{Z.invoke(Z,U,[Et])}catch(K){xt=K}const Tt=Z.options;return Tt&&"object"==typeof Tt&&Tt.once&&U[D].call(U,Et.type,Z.originalDelegate?Z.originalDelegate:Z.callback,Tt),xt};function A(Z,U,Et){if(!(U=U||f.event))return;const at=Z||U.target||f,xt=at[St[U.type][Et?d:T]];if(xt){const Tt=[];if(1===xt.length){const K=ot(xt[0],at,U);K&&Tt.push(K)}else{const K=xt.slice();for(let Pt=0;Pt<K.length&&(!U||!0!==U[Wt]);Pt++){const G=ot(K[Pt],at,U);G&&Tt.push(G)}}if(1===Tt.length)throw Tt[0];for(let K=0;K<Tt.length;K++){const Pt=Tt[K];v.nativeScheduleMicroTask(()=>{throw Pt})}}}const H=function(Z){return A(this,Z,!1)},M=function(Z){return A(this,Z,!0)};function et(Z,U){if(!Z)return!1;let Et=!0;U&&void 0!==U.useG&&(Et=U.useG);const at=U&&U.vh;let xt=!0;U&&void 0!==U.chkDup&&(xt=U.chkDup);let Tt=!1;U&&void 0!==U.rt&&(Tt=U.rt);let K=Z;for(;K&&!K.hasOwnProperty(L);)K=t(K);if(!K&&Z[L]&&(K=Z),!K||K[rt])return!1;const Pt=U&&U.eventNameToString,G={},pt=K[rt]=K[L],st=K[E(D)]=K[D],Vt=K[E(z)]=K[z],Xt=K[E(V)]=K[V];let jt;U&&U.prepend&&(jt=K[E(U.prepend)]=K[U.prepend]);const l=Et?function(r){if(!G.isExisting)return pt.call(G.target,G.eventName,G.capture?M:H,G.options)}:function(r){return pt.call(G.target,G.eventName,r.invoke,G.options)},g=Et?function(r){if(!r.isRemoved){const s=St[r.eventName];let y;s&&(y=s[r.capture?d:T]);const j=y&&r.target[y];if(j)for(let I=0;I<j.length;I++)if(j[I]===r){j.splice(I,1),r.isRemoved=!0,0===j.length&&(r.allRemoved=!0,r.target[y]=null);break}}if(r.allRemoved)return st.call(r.target,r.eventName,r.capture?M:H,r.options)}:function(r){return st.call(r.target,r.eventName,r.invoke,r.options)},ct=U&&U.diff?U.diff:function(r,s){const y=typeof s;return"function"===y&&r.callback===s||"object"===y&&r.originalDelegate===s},Ft=Zone[E("UNPATCHED_EVENTS")],i=f[E("PASSIVE_EVENTS")],h=function(r,s,y,j,I=!1,J=!1){return function(){const Q=this||f;let _=arguments[0];U&&U.transferEventName&&(_=U.transferEventName(_));let gt=arguments[1];if(!gt)return r.apply(this,arguments);if(F&&"uncaughtException"===_)return r.apply(this,arguments);let O=!1;if("function"!=typeof gt){if(!gt.handleEvent)return r.apply(this,arguments);O=!0}if(at&&!at(r,gt,Q,arguments))return;const Ct=Ht&&!!i&&-1!==i.indexOf(_),Zt=function bt(r,s){return!Ht&&"object"==typeof r&&r?!!r.capture:Ht&&s?"boolean"==typeof r?{capture:r,passive:!0}:r?"object"==typeof r&&!1!==r.passive?Object.assign(Object.assign({},r),{passive:!0}):r:{passive:!0}:r}(arguments[2],Ct);if(Ft)for(let ae=0;ae<Ft.length;ae++)if(_===Ft[ae])return Ct?r.call(Q,_,gt,Zt):r.apply(this,arguments);const se=!!Zt&&("boolean"==typeof Zt||Zt.capture),ve=!(!Zt||"object"!=typeof Zt)&&Zt.once,pe=Zone.current;let oe=St[_];oe||(Kt(_,Pt),oe=St[_]);const ye=oe[se?d:T];let ge,le=Q[ye],me=!1;if(le){if(me=!0,xt)for(let ae=0;ae<le.length;ae++)if(ct(le[ae],gt))return}else le=Q[ye]=[];const Te=Q.constructor.name,Ee=Gt[Te];Ee&&(ge=Ee[_]),ge||(ge=Te+s+(Pt?Pt(_):_)),G.options=Zt,ve&&(G.options.once=!1),G.target=Q,G.capture=se,G.eventName=_,G.isExisting=me;const de=Et?kt:void 0;de&&(de.taskData=G);const re=pe.scheduleEventTask(ge,gt,de,y,j);return G.target=null,de&&(de.taskData=null),ve&&(Zt.once=!0),!Ht&&"boolean"==typeof re.options||(re.options=Zt),re.target=Q,re.capture=se,re.eventName=_,O&&(re.originalDelegate=gt),J?le.unshift(re):le.push(re),I?Q:void 0}};return K[L]=h(pt,nt,l,g,Tt),jt&&(K[$]=h(jt,vt,function(r){return jt.call(G.target,G.eventName,r.invoke,G.options)},g,Tt,!0)),K[D]=function(){const r=this||f;let s=arguments[0];U&&U.transferEventName&&(s=U.transferEventName(s));const y=arguments[2],j=!!y&&("boolean"==typeof y||y.capture),I=arguments[1];if(!I)return st.apply(this,arguments);if(at&&!at(st,I,r,arguments))return;const J=St[s];let Q;J&&(Q=J[j?d:T]);const _=Q&&r[Q];if(_)for(let gt=0;gt<_.length;gt++){const O=_[gt];if(ct(O,I))return _.splice(gt,1),O.isRemoved=!0,0===_.length&&(O.allRemoved=!0,r[Q]=null,"string"==typeof s)&&(r[R+"ON_PROPERTY"+s]=null),O.zone.cancelTask(O),Tt?r:void 0}return st.apply(this,arguments)},K[z]=function(){const r=this||f;let s=arguments[0];U&&U.transferEventName&&(s=U.transferEventName(s));const y=[],j=Qt(r,Pt?Pt(s):s);for(let I=0;I<j.length;I++){const J=j[I];y.push(J.originalDelegate?J.originalDelegate:J.callback)}return y},K[V]=function(){const r=this||f;let s=arguments[0];if(s){U&&U.transferEventName&&(s=U.transferEventName(s));const y=St[s];if(y){const J=r[y[T]],Q=r[y[d]];if(J){const _=J.slice();for(let gt=0;gt<_.length;gt++){const O=_[gt];this[D].call(this,s,O.originalDelegate?O.originalDelegate:O.callback,O.options)}}if(Q){const _=Q.slice();for(let gt=0;gt<_.length;gt++){const O=_[gt];this[D].call(this,s,O.originalDelegate?O.originalDelegate:O.callback,O.options)}}}}else{const y=Object.keys(r);for(let j=0;j<y.length;j++){const J=Bt.exec(y[j]);let Q=J&&J[1];Q&&"removeListener"!==Q&&this[V].call(this,Q)}this[V].call(this,"removeListener")}if(Tt)return this},dt(K[L],pt),dt(K[D],st),Xt&&dt(K[V],Xt),Vt&&dt(K[z],Vt),!0}let q=[];for(let Z=0;Z<P.length;Z++)q[Z]=et(P[Z],S);return q}function Qt(f,v){if(!v){const D=[];for(let z in f){const V=Bt.exec(z);let rt=V&&V[1];if(rt&&(!v||rt===v)){const nt=f[z];if(nt)for(let $=0;$<nt.length;$++)D.push(nt[$])}}return D}let P=St[v];P||(Kt(v),P=St[v]);const S=f[P[T]],L=f[P[d]];return S?L?S.concat(L):S.slice():L?L.slice():[]}function ne(f,v){const P=f.Event;P&&P.prototype&&v.patchMethod(P.prototype,"stopImmediatePropagation",S=>function(L,D){L[Wt]=!0,S&&S.apply(L,D)})}function Jt(f,v,P,S,L){const D=Zone.__symbol__(S);if(v[D])return;const z=v[D]=v[S];v[S]=function(V,rt,nt){return rt&&rt.prototype&&L.forEach(function($){const vt=`${P}.${S}::`+$,ot=rt.prototype;try{if(ot.hasOwnProperty($)){const A=f.ObjectGetOwnPropertyDescriptor(ot,$);A&&A.value?(A.value=f.wrapWithCurrentZone(A.value,vt),f._redefineProperty(rt.prototype,$,A)):ot[$]&&(ot[$]=f.wrapWithCurrentZone(ot[$],vt))}else ot[$]&&(ot[$]=f.wrapWithCurrentZone(ot[$],vt))}catch{}}),z.call(v,V,rt,nt)},f.attachOriginToPatched(v[S],z)}function qt(f,v,P){if(!P||0===P.length)return v;const S=P.filter(D=>D.target===f);if(!S||0===S.length)return v;const L=S[0].ignoreProperties;return v.filter(D=>-1===L.indexOf(D))}function ie(f,v,P,S){f&&$t(f,qt(f,v,P),S)}function ee(f){return Object.getOwnPropertyNames(f).filter(v=>v.startsWith("on")&&v.length>2).map(v=>v.substring(2))}Zone.__load_patch("util",(f,v,P)=>{const S=ee(f);P.patchOnProperties=$t,P.patchMethod=it,P.bindArguments=tt,P.patchMacroTask=yt;const L=v.__symbol__("BLACK_LISTED_EVENTS"),D=v.__symbol__("UNPATCHED_EVENTS");f[D]&&(f[L]=f[D]),f[L]&&(v[L]=v[D]=f[L]),P.patchEventPrototype=ne,P.patchEventTarget=Yt,P.isIEOrEdge=Lt,P.ObjectDefineProperty=m,P.ObjectGetOwnPropertyDescriptor=n,P.ObjectCreate=e,P.ArraySlice=o,P.patchClass=ht,P.wrapWithCurrentZone=b,P.filterProperties=qt,P.attachOriginToPatched=dt,P._redefineProperty=Object.defineProperty,P.patchCallbacks=Jt,P.getGlobalObjects=()=>({globalSources:Gt,zoneSymbolEventNames:St,eventNames:S,isBrowser:lt,isMix:Ut,isNode:F,TRUE_STR:d,FALSE_STR:T,ZONE_SYMBOL_PREFIX:R,ADD_EVENT_LISTENER_STR:a,REMOVE_EVENT_LISTENER_STR:u})});const te=E("zoneTask");function _t(f,v,P,S){let L=null,D=null;P+=S;const z={};function V(nt){const $=nt.data;return $.args[0]=function(){return nt.invoke.apply(this,arguments)},$.handleId=L.apply(f,$.args),nt}function rt(nt){return D.call(f,nt.data.handleId)}L=it(f,v+=S,nt=>function($,vt){if("function"==typeof vt[0]){const ot={isPeriodic:"Interval"===S,delay:"Timeout"===S||"Interval"===S?vt[1]||0:void 0,args:vt},A=vt[0];vt[0]=function(){try{return A.apply(this,arguments)}finally{ot.isPeriodic||("number"==typeof ot.handleId?delete z[ot.handleId]:ot.handleId&&(ot.handleId[te]=null))}};const H=x(v,vt[0],ot,V,rt);if(!H)return H;const M=H.data.handleId;return"number"==typeof M?z[M]=H:M&&(M[te]=H),M&&M.ref&&M.unref&&"function"==typeof M.ref&&"function"==typeof M.unref&&(H.ref=M.ref.bind(M),H.unref=M.unref.bind(M)),"number"==typeof M||M?M:H}return nt.apply(f,vt)}),D=it(f,P,nt=>function($,vt){const ot=vt[0];let A;"number"==typeof ot?A=z[ot]:(A=ot&&ot[te],A||(A=ot)),A&&"string"==typeof A.type?"notScheduled"!==A.state&&(A.cancelFn&&A.data.isPeriodic||0===A.runCount)&&("number"==typeof ot?delete z[ot]:ot&&(ot[te]=null),A.zone.cancelTask(A)):nt.apply(f,vt)})}Zone.__load_patch("legacy",f=>{const v=f[Zone.__symbol__("legacyPatch")];v&&v()}),Zone.__load_patch("queueMicrotask",(f,v,P)=>{P.patchMethod(f,"queueMicrotask",S=>function(L,D){v.current.scheduleMicroTask("queueMicrotask",D[0])})}),Zone.__load_patch("timers",f=>{const v="set",P="clear";_t(f,v,P,"Timeout"),_t(f,v,P,"Interval"),_t(f,v,P,"Immediate")}),Zone.__load_patch("requestAnimationFrame",f=>{_t(f,"request","cancel","AnimationFrame"),_t(f,"mozRequest","mozCancel","AnimationFrame"),_t(f,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(f,v)=>{const P=["alert","prompt","confirm"];for(let S=0;S<P.length;S++)it(f,P[S],(D,z,V)=>function(rt,nt){return v.current.run(D,f,nt,V)})}),Zone.__load_patch("EventTarget",(f,v,P)=>{(function he(f,v){v.patchEventPrototype(f,v)})(f,P),function fe(f,v){if(Zone[v.symbol("patchEventTarget")])return;const{eventNames:P,zoneSymbolEventNames:S,TRUE_STR:L,FALSE_STR:D,ZONE_SYMBOL_PREFIX:z}=v.getGlobalObjects();for(let rt=0;rt<P.length;rt++){const nt=P[rt],ot=z+(nt+D),A=z+(nt+L);S[nt]={},S[nt][D]=ot,S[nt][L]=A}const V=f.EventTarget;V&&V.prototype&&v.patchEventTarget(f,v,[V&&V.prototype])}(f,P);const S=f.XMLHttpRequestEventTarget;S&&S.prototype&&P.patchEventTarget(f,P,[S.prototype])}),Zone.__load_patch("MutationObserver",(f,v,P)=>{ht("MutationObserver"),ht("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(f,v,P)=>{ht("IntersectionObserver")}),Zone.__load_patch("FileReader",(f,v,P)=>{ht("FileReader")}),Zone.__load_patch("on_property",(f,v,P)=>{!function ue(f,v){if(F&&!Ut||Zone[f.symbol("patchEvents")])return;const P=v.__Zone_ignore_on_properties;let S=[];if(lt){const L=window;S=S.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const D=function Ot(){try{const f=N.navigator.userAgent;if(-1!==f.indexOf("MSIE ")||-1!==f.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:L,ignoreProperties:["error"]}]:[];ie(L,ee(L),P&&P.concat(D),t(L))}S=S.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let L=0;L<S.length;L++){const D=v[S[L]];D&&D.prototype&&ie(D.prototype,ee(D.prototype),P)}}(P,f)}),Zone.__load_patch("customElements",(f,v,P)=>{!function ce(f,v){const{isBrowser:P,isMix:S}=v.getGlobalObjects();(P||S)&&f.customElements&&"customElements"in f&&v.patchCallbacks(v,f.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(f,P)}),Zone.__load_patch("XHR",(f,v)=>{!function rt(nt){const $=nt.XMLHttpRequest;if(!$)return;const vt=$.prototype;let A=vt[c],H=vt[p];if(!A){const G=nt.XMLHttpRequestEventTarget;if(G){const pt=G.prototype;A=pt[c],H=pt[p]}}const M="readystatechange",et="scheduled";function q(G){const pt=G.data,st=pt.target;st[D]=!1,st[V]=!1;const Vt=st[L];A||(A=st[c],H=st[p]),Vt&&H.call(st,M,Vt);const Xt=st[L]=()=>{if(st.readyState===st.DONE)if(!pt.aborted&&st[D]&&G.state===et){const bt=st[v.__symbol__("loadfalse")];if(0!==st.status&&bt&&bt.length>0){const Mt=G.invoke;G.invoke=function(){const zt=st[v.__symbol__("loadfalse")];for(let It=0;It<zt.length;It++)zt[It]===G&&zt.splice(It,1);!pt.aborted&&G.state===et&&Mt.call(G)},bt.push(G)}else G.invoke()}else!pt.aborted&&!1===st[D]&&(st[V]=!0)};return A.call(st,M,Xt),st[P]||(st[P]=G),K.apply(st,pt.args),st[D]=!0,G}function Z(){}function U(G){const pt=G.data;return pt.aborted=!0,Pt.apply(pt.target,pt.args)}const Et=it(vt,"open",()=>function(G,pt){return G[S]=0==pt[2],G[z]=pt[1],Et.apply(G,pt)}),xt=E("fetchTaskAborting"),Tt=E("fetchTaskScheduling"),K=it(vt,"send",()=>function(G,pt){if(!0===v.current[Tt]||G[S])return K.apply(G,pt);{const st={target:G,url:G[z],isPeriodic:!1,args:pt,aborted:!1},Vt=x("XMLHttpRequest.send",Z,st,q,U);G&&!0===G[V]&&!st.aborted&&Vt.state===et&&Vt.invoke()}}),Pt=it(vt,"abort",()=>function(G,pt){const st=function ot(G){return G[P]}(G);if(st&&"string"==typeof st.type){if(null==st.cancelFn||st.data&&st.data.aborted)return;st.zone.cancelTask(st)}else if(!0===v.current[xt])return Pt.apply(G,pt)})}(f);const P=E("xhrTask"),S=E("xhrSync"),L=E("xhrListener"),D=E("xhrScheduled"),z=E("xhrURL"),V=E("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",f=>{f.navigator&&f.navigator.geolocation&&function ft(f,v){const P=f.constructor.name;for(let S=0;S<v.length;S++){const L=v[S],D=f[L];if(D){if(!k(n(f,L)))continue;f[L]=(V=>{const rt=function(){return V.apply(this,tt(arguments,P+"."+L))};return dt(rt,V),rt})(D)}}}(f.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(f,v)=>{function P(S){return function(L){Qt(f,S).forEach(z=>{const V=f.PromiseRejectionEvent;if(V){const rt=new V(S,{promise:L.promise,reason:L.rejection});z.invoke(rt)}})}}f.PromiseRejectionEvent&&(v[E("unhandledPromiseRejectionHandler")]=P("unhandledrejection"),v[E("rejectionHandledHandler")]=P("rejectionhandled"))})},5971:()=>{},1767:(n,m,t)=>{"use strict";var e=t(4303);n.exports=e},7460:(n,m,t)=>{"use strict";var e=t(7237);n.exports=e},8502:(n,m,t)=>{"use strict";t(982)},593:(n,m,t)=>{"use strict";t(5389)},982:(n,m,t)=>{"use strict";var e=t(1767);n.exports=e},5389:(n,m,t)=>{"use strict";var e=t(7460);n.exports=e},6022:(n,m,t)=>{"use strict";var e=t(337),o=t(8393),a=TypeError;n.exports=function(u){if(e(u))return u;throw new a(o(u)+" is not a function")}},1610:(n,m,t)=>{"use strict";var e=t(4221),o=String,a=TypeError;n.exports=function(u){if(e(u))return u;throw new a("Can't set "+o(u)+" as a prototype")}},2822:(n,m,t)=>{"use strict";var e=t(8713),o=t(5798),a=t(5909).f,u=e("unscopables"),c=Array.prototype;void 0===c[u]&&a(c,u,{configurable:!0,value:o(null)}),n.exports=function(p){c[u][p]=!0}},9899:(n,m,t)=>{"use strict";var e=t(9807),o=TypeError;n.exports=function(a,u){if(e(u,a))return a;throw new o("Incorrect invocation")}},858:(n,m,t)=>{"use strict";var e=t(6833),o=String,a=TypeError;n.exports=function(u){if(e(u))return u;throw new a(o(u)+" is not an object")}},2649:(n,m,t)=>{"use strict";var e=t(7761),o=t(1935),a=t(8274),u=t(8046),c=t(4047),p=t(2623),d=t(83),T=t(2894),R=t(2632),b=t(6628),x=Array;n.exports=function(w){var N=a(w),C=p(this),B=arguments.length,tt=B>1?arguments[1]:void 0,ft=void 0!==tt;ft&&(tt=e(tt,B>2?arguments[2]:void 0));var F,lt,Ut,Nt,wt,At,k=b(N),W=0;if(!k||this===x&&c(k))for(F=d(N),lt=C?new this(F):x(F);F>W;W++)At=ft?tt(N[W],W):N[W],T(lt,W,At);else for(wt=(Nt=R(N,k)).next,lt=C?new this:[];!(Ut=o(wt,Nt)).done;W++)At=ft?u(Nt,tt,[Ut.value,W],!0):Ut.value,T(lt,W,At);return lt.length=W,lt}},9639:(n,m,t)=>{"use strict";var e=t(6050),o=t(9090),a=t(83),u=function(c){return function(p,d,T){var E,R=e(p),b=a(R),x=o(T,b);if(c&&d!=d){for(;b>x;)if((E=R[x++])!=E)return!0}else for(;b>x;x++)if((c||x in R)&&R[x]===d)return c||x||0;return!c&&-1}};n.exports={includes:u(!0),indexOf:u(!1)}},7031:(n,m,t)=>{"use strict";var e=t(4450);n.exports=e([].slice)},4714:(n,m,t)=>{"use strict";var e=t(7031),o=Math.floor,a=function(u,c){var p=u.length;if(p<8)for(var T,R,d=1;d<p;){for(R=d,T=u[d];R&&c(u[R-1],T)>0;)u[R]=u[--R];R!==d++&&(u[R]=T)}else for(var b=o(p/2),x=a(e(u,0,b),c),E=a(e(u,b),c),w=x.length,N=E.length,C=0,B=0;C<w||B<N;)u[C+B]=C<w&&B<N?c(x[C],E[B])<=0?x[C++]:E[B++]:C<w?x[C++]:E[B++];return u};n.exports=a},8046:(n,m,t)=>{"use strict";var e=t(858),o=t(1031);n.exports=function(a,u,c,p){try{return p?u(e(c)[0],c[1]):u(c)}catch(d){o(a,"throw",d)}}},4705:(n,m,t)=>{"use strict";var e=t(4450),o=e({}.toString),a=e("".slice);n.exports=function(u){return a(o(u),8,-1)}},5587:(n,m,t)=>{"use strict";var e=t(6760),o=t(337),a=t(4705),c=t(8713)("toStringTag"),p=Object,d="Arguments"===a(function(){return arguments}());n.exports=e?a:function(R){var b,x,E;return void 0===R?"Undefined":null===R?"Null":"string"==typeof(x=function(R,b){try{return R[b]}catch{}}(b=p(R),c))?x:d?a(b):"Object"===(E=a(b))&&o(b.callee)?"Arguments":E}},7289:(n,m,t)=>{"use strict";var e=t(780),o=t(2244),a=t(1200),u=t(5909);n.exports=function(c,p,d){for(var T=o(p),R=u.f,b=a.f,x=0;x<T.length;x++){var E=T[x];!e(c,E)&&(!d||!e(d,E))&&R(c,E,b(p,E))}}},6701:(n,m,t)=>{"use strict";var e=t(2325);n.exports=!e(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},72:n=>{"use strict";n.exports=function(m,t){return{value:m,done:t}}},2257:(n,m,t)=>{"use strict";var e=t(740),o=t(5909),a=t(2016);n.exports=e?function(u,c,p){return o.f(u,c,a(1,p))}:function(u,c,p){return u[c]=p,u}},2016:n=>{"use strict";n.exports=function(m,t){return{enumerable:!(1&m),configurable:!(2&m),writable:!(4&m),value:t}}},2894:(n,m,t)=>{"use strict";var e=t(865),o=t(5909),a=t(2016);n.exports=function(u,c,p){var d=e(c);d in u?o.f(u,d,a(0,p)):u[d]=p}},5345:(n,m,t)=>{"use strict";var e=t(6891),o=t(5909);n.exports=function(a,u,c){return c.get&&e(c.get,u,{getter:!0}),c.set&&e(c.set,u,{setter:!0}),o.f(a,u,c)}},5548:(n,m,t)=>{"use strict";var e=t(337),o=t(5909),a=t(6891),u=t(189);n.exports=function(c,p,d,T){T||(T={});var R=T.enumerable,b=void 0!==T.name?T.name:p;if(e(d)&&a(d,b,T),T.global)R?c[p]=d:u(p,d);else{try{T.unsafe?c[p]&&(R=!0):delete c[p]}catch{}R?c[p]=d:o.f(c,p,{value:d,enumerable:!1,configurable:!T.nonConfigurable,writable:!T.nonWritable})}return c}},1719:(n,m,t)=>{"use strict";var e=t(5548);n.exports=function(o,a,u){for(var c in a)e(o,c,a[c],u);return o}},189:(n,m,t)=>{"use strict";var e=t(6308),o=Object.defineProperty;n.exports=function(a,u){try{o(e,a,{value:u,configurable:!0,writable:!0})}catch{e[a]=u}return u}},740:(n,m,t)=>{"use strict";var e=t(2325);n.exports=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3082:(n,m,t)=>{"use strict";var e=t(6308),o=t(6833),a=e.document,u=o(a)&&o(a.createElement);n.exports=function(c){return u?a.createElement(c):{}}},4988:n=>{"use strict";n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},5677:(n,m,t)=>{"use strict";var o=t(3082)("span").classList,a=o&&o.constructor&&o.constructor.prototype;n.exports=a===Object.prototype?void 0:a},3519:n=>{"use strict";n.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},5521:(n,m,t)=>{"use strict";var d,T,e=t(6308),o=t(3519),a=e.process,u=e.Deno,c=a&&a.versions||u&&u.version,p=c&&c.v8;p&&(T=(d=p.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!T&&o&&(!(d=o.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=o.match(/Chrome\/(\d+)/))&&(T=+d[1]),n.exports=T},5142:n=>{"use strict";n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3514:(n,m,t)=>{"use strict";var e=t(6308),o=t(1200).f,a=t(2257),u=t(5548),c=t(189),p=t(7289),d=t(9814);n.exports=function(T,R){var N,C,B,tt,ft,b=T.target,x=T.global,E=T.stat;if(N=x?e:E?e[b]||c(b,{}):(e[b]||{}).prototype)for(C in R){if(tt=R[C],B=T.dontCallGetSet?(ft=o(N,C))&&ft.value:N[C],!d(x?C:b+(E?".":"#")+C,T.forced)&&void 0!==B){if(typeof tt==typeof B)continue;p(tt,B)}(T.sham||B&&B.sham)&&a(tt,"sham",!0),u(N,C,tt,T)}}},2325:n=>{"use strict";n.exports=function(m){try{return!!m()}catch{return!0}}},7761:(n,m,t)=>{"use strict";var e=t(9222),o=t(6022),a=t(8665),u=e(e.bind);n.exports=function(c,p){return o(c),void 0===p?c:a?u(c,p):function(){return c.apply(p,arguments)}}},8665:(n,m,t)=>{"use strict";var e=t(2325);n.exports=!e(function(){var o=function(){}.bind();return"function"!=typeof o||o.hasOwnProperty("prototype")})},1935:(n,m,t)=>{"use strict";var e=t(8665),o=Function.prototype.call;n.exports=e?o.bind(o):function(){return o.apply(o,arguments)}},8822:(n,m,t)=>{"use strict";var e=t(740),o=t(780),a=Function.prototype,u=e&&Object.getOwnPropertyDescriptor,c=o(a,"name"),p=c&&"something"===function(){}.name,d=c&&(!e||e&&u(a,"name").configurable);n.exports={EXISTS:c,PROPER:p,CONFIGURABLE:d}},541:(n,m,t)=>{"use strict";var e=t(4450),o=t(6022);n.exports=function(a,u,c){try{return e(o(Object.getOwnPropertyDescriptor(a,u)[c]))}catch{}}},9222:(n,m,t)=>{"use strict";var e=t(4705),o=t(4450);n.exports=function(a){if("Function"===e(a))return o(a)}},4450:(n,m,t)=>{"use strict";var e=t(8665),o=Function.prototype,a=o.call,u=e&&o.bind.bind(a,a);n.exports=e?u:function(c){return function(){return a.apply(c,arguments)}}},4642:(n,m,t)=>{"use strict";var e=t(6308),o=t(337),a=function(u){return o(u)?u:void 0};n.exports=function(u,c){return arguments.length<2?a(e[u]):e[u]&&e[u][c]}},6628:(n,m,t)=>{"use strict";var e=t(5587),o=t(8081),a=t(6710),u=t(2248),p=t(8713)("iterator");n.exports=function(d){if(!a(d))return o(d,p)||o(d,"@@iterator")||u[e(d)]}},2632:(n,m,t)=>{"use strict";var e=t(1935),o=t(6022),a=t(858),u=t(8393),c=t(6628),p=TypeError;n.exports=function(d,T){var R=arguments.length<2?c(d):T;if(o(R))return a(e(R,d));throw new p(u(d)+" is not iterable")}},8081:(n,m,t)=>{"use strict";var e=t(6022),o=t(6710);n.exports=function(a,u){var c=a[u];return o(c)?void 0:e(c)}},6308:function(n){"use strict";var m=function(t){return t&&t.Math===Math&&t};n.exports=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof global&&global)||m("object"==typeof this&&this)||function(){return this}()||Function("return this")()},780:(n,m,t)=>{"use strict";var e=t(4450),o=t(8274),a=e({}.hasOwnProperty);n.exports=Object.hasOwn||function(c,p){return a(o(c),p)}},2561:n=>{"use strict";n.exports={}},9390:(n,m,t)=>{"use strict";var e=t(4642);n.exports=e("document","documentElement")},1734:(n,m,t)=>{"use strict";var e=t(740),o=t(2325),a=t(3082);n.exports=!e&&!o(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},4555:(n,m,t)=>{"use strict";var e=t(4450),o=t(2325),a=t(4705),u=Object,c=e("".split);n.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(p){return"String"===a(p)?c(p,""):u(p)}:u},3480:(n,m,t)=>{"use strict";var e=t(4450),o=t(337),a=t(5111),u=e(Function.toString);o(a.inspectSource)||(a.inspectSource=function(c){return u(c)}),n.exports=a.inspectSource},2267:(n,m,t)=>{"use strict";var E,w,N,e=t(359),o=t(6308),a=t(6833),u=t(2257),c=t(780),p=t(5111),d=t(2351),T=t(2561),R="Object already initialized",b=o.TypeError;if(e||p.state){var tt=p.state||(p.state=new(0,o.WeakMap));tt.get=tt.get,tt.has=tt.has,tt.set=tt.set,E=function(k,W){if(tt.has(k))throw new b(R);return W.facade=k,tt.set(k,W),W},w=function(k){return tt.get(k)||{}},N=function(k){return tt.has(k)}}else{var ft=d("state");T[ft]=!0,E=function(k,W){if(c(k,ft))throw new b(R);return W.facade=k,u(k,ft,W),W},w=function(k){return c(k,ft)?k[ft]:{}},N=function(k){return c(k,ft)}}n.exports={set:E,get:w,has:N,enforce:function(k){return N(k)?w(k):E(k,{})},getterFor:function(k){return function(W){var F;if(!a(W)||(F=w(W)).type!==k)throw new b("Incompatible receiver, "+k+" required");return F}}}},4047:(n,m,t)=>{"use strict";var e=t(8713),o=t(2248),a=e("iterator"),u=Array.prototype;n.exports=function(c){return void 0!==c&&(o.Array===c||u[a]===c)}},337:n=>{"use strict";var m="object"==typeof document&&document.all;n.exports=typeof m>"u"&&void 0!==m?function(t){return"function"==typeof t||t===m}:function(t){return"function"==typeof t}},2623:(n,m,t)=>{"use strict";var e=t(4450),o=t(2325),a=t(337),u=t(5587),c=t(4642),p=t(3480),d=function(){},T=[],R=c("Reflect","construct"),b=/^\s*(?:class|function)\b/,x=e(b.exec),E=!b.test(d),w=function(B){if(!a(B))return!1;try{return R(d,T,B),!0}catch{return!1}},N=function(B){if(!a(B))return!1;switch(u(B)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return E||!!x(b,p(B))}catch{return!0}};N.sham=!0,n.exports=!R||o(function(){var C;return w(w.call)||!w(Object)||!w(function(){C=!0})||C})?N:w},9814:(n,m,t)=>{"use strict";var e=t(2325),o=t(337),a=/#|\.prototype\./,u=function(R,b){var x=p[c(R)];return x===T||x!==d&&(o(b)?e(b):!!b)},c=u.normalize=function(R){return String(R).replace(a,".").toLowerCase()},p=u.data={},d=u.NATIVE="N",T=u.POLYFILL="P";n.exports=u},6710:n=>{"use strict";n.exports=function(m){return null==m}},6833:(n,m,t)=>{"use strict";var e=t(337);n.exports=function(o){return"object"==typeof o?null!==o:e(o)}},4221:(n,m,t)=>{"use strict";var e=t(6833);n.exports=function(o){return e(o)||null===o}},777:n=>{"use strict";n.exports=!1},4152:(n,m,t)=>{"use strict";var e=t(4642),o=t(337),a=t(9807),u=t(1896),c=Object;n.exports=u?function(p){return"symbol"==typeof p}:function(p){var d=e("Symbol");return o(d)&&a(d.prototype,c(p))}},1031:(n,m,t)=>{"use strict";var e=t(1935),o=t(858),a=t(8081);n.exports=function(u,c,p){var d,T;o(u);try{if(!(d=a(u,"return"))){if("throw"===c)throw p;return p}d=e(d,u)}catch(R){T=!0,d=R}if("throw"===c)throw p;if(T)throw d;return o(d),p}},9210:(n,m,t)=>{"use strict";var e=t(8098).IteratorPrototype,o=t(5798),a=t(2016),u=t(2801),c=t(2248),p=function(){return this};n.exports=function(d,T,R,b){var x=T+" Iterator";return d.prototype=o(e,{next:a(+!b,R)}),u(d,x,!1,!0),c[x]=p,d}},321:(n,m,t)=>{"use strict";var e=t(3514),o=t(1935),a=t(777),u=t(8822),c=t(337),p=t(9210),d=t(3184),T=t(1819),R=t(2801),b=t(2257),x=t(5548),E=t(8713),w=t(2248),N=t(8098),C=u.PROPER,B=u.CONFIGURABLE,tt=N.IteratorPrototype,ft=N.BUGGY_SAFARI_ITERATORS,k=E("iterator"),W="keys",F="values",lt="entries",Ut=function(){return this};n.exports=function(Nt,wt,At,$t,Dt,ht,it){p(At,wt,$t);var kt,St,Gt,yt=function(Bt){if(Bt===Dt&&Lt)return Lt;if(!ft&&Bt&&Bt in mt)return mt[Bt];switch(Bt){case W:case F:case lt:return function(){return new At(this,Bt)}}return function(){return new At(this)}},dt=wt+" Iterator",Rt=!1,mt=Nt.prototype,Ot=mt[k]||mt["@@iterator"]||Dt&&mt[Dt],Lt=!ft&&Ot||yt(Dt),Ht="Array"===wt&&mt.entries||Ot;if(Ht&&(kt=d(Ht.call(new Nt)))!==Object.prototype&&kt.next&&(!a&&d(kt)!==tt&&(T?T(kt,tt):c(kt[k])||x(kt,k,Ut)),R(kt,dt,!0,!0),a&&(w[dt]=Ut)),C&&Dt===F&&Ot&&Ot.name!==F&&(!a&&B?b(mt,"name",F):(Rt=!0,Lt=function(){return o(Ot,this)})),Dt)if(St={values:yt(F),keys:ht?Lt:yt(W),entries:yt(lt)},it)for(Gt in St)(ft||Rt||!(Gt in mt))&&x(mt,Gt,St[Gt]);else e({target:wt,proto:!0,forced:ft||Rt},St);return(!a||it)&&mt[k]!==Lt&&x(mt,k,Lt,{name:Dt}),w[wt]=Lt,St}},8098:(n,m,t)=>{"use strict";var x,E,w,e=t(2325),o=t(337),a=t(6833),u=t(5798),c=t(3184),p=t(5548),d=t(8713),T=t(777),R=d("iterator"),b=!1;[].keys&&("next"in(w=[].keys())?(E=c(c(w)))!==Object.prototype&&(x=E):b=!0),!a(x)||e(function(){var C={};return x[R].call(C)!==C})?x={}:T&&(x=u(x)),o(x[R])||p(x,R,function(){return this}),n.exports={IteratorPrototype:x,BUGGY_SAFARI_ITERATORS:b}},2248:n=>{"use strict";n.exports={}},83:(n,m,t)=>{"use strict";var e=t(2631);n.exports=function(o){return e(o.length)}},6891:(n,m,t)=>{"use strict";var e=t(4450),o=t(2325),a=t(337),u=t(780),c=t(740),p=t(8822).CONFIGURABLE,d=t(3480),T=t(2267),R=T.enforce,b=T.get,x=String,E=Object.defineProperty,w=e("".slice),N=e("".replace),C=e([].join),B=c&&!o(function(){return 8!==E(function(){},"length",{value:8}).length}),tt=String(String).split("String"),ft=n.exports=function(k,W,F){"Symbol("===w(x(W),0,7)&&(W="["+N(x(W),/^Symbol\(([^)]*)\)/,"$1")+"]"),F&&F.getter&&(W="get "+W),F&&F.setter&&(W="set "+W),(!u(k,"name")||p&&k.name!==W)&&(c?E(k,"name",{value:W,configurable:!0}):k.name=W),B&&F&&u(F,"arity")&&k.length!==F.arity&&E(k,"length",{value:F.arity});try{F&&u(F,"constructor")&&F.constructor?c&&E(k,"prototype",{writable:!1}):k.prototype&&(k.prototype=void 0)}catch{}var lt=R(k);return u(lt,"source")||(lt.source=C(tt,"string"==typeof W?W:"")),k};Function.prototype.toString=ft(function(){return a(this)&&b(this).source||d(this)},"toString")},3408:n=>{"use strict";var m=Math.ceil,t=Math.floor;n.exports=Math.trunc||function(o){var a=+o;return(a>0?t:m)(a)}},7370:(n,m,t)=>{"use strict";var e=t(740),o=t(4450),a=t(1935),u=t(2325),c=t(5354),p=t(3729),d=t(1349),T=t(8274),R=t(4555),b=Object.assign,x=Object.defineProperty,E=o([].concat);n.exports=!b||u(function(){if(e&&1!==b({b:1},b(x({},"a",{enumerable:!0,get:function(){x(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var w={},N={},C=Symbol("assign detection"),B="abcdefghijklmnopqrst";return w[C]=7,B.split("").forEach(function(tt){N[tt]=tt}),7!==b({},w)[C]||c(b({},N)).join("")!==B})?function(N,C){for(var B=T(N),tt=arguments.length,ft=1,k=p.f,W=d.f;tt>ft;)for(var wt,F=R(arguments[ft++]),lt=k?E(c(F),k(F)):c(F),Ut=lt.length,Nt=0;Ut>Nt;)wt=lt[Nt++],(!e||a(W,F,wt))&&(B[wt]=F[wt]);return B}:b},5798:(n,m,t)=>{"use strict";var tt,e=t(858),o=t(8324),a=t(5142),u=t(2561),c=t(9390),p=t(3082),d=t(2351),b="prototype",x="script",E=d("IE_PROTO"),w=function(){},N=function(k){return"<"+x+">"+k+"</"+x+">"},C=function(k){k.write(N("")),k.close();var W=k.parentWindow.Object;return k=null,W},ft=function(){try{tt=new ActiveXObject("htmlfile")}catch{}ft=typeof document<"u"?document.domain&&tt?C(tt):function(){var F,k=p("iframe"),W="java"+x+":";return k.style.display="none",c.appendChild(k),k.src=String(W),(F=k.contentWindow.document).open(),F.write(N("document.F=Object")),F.close(),F.F}():C(tt);for(var k=a.length;k--;)delete ft[b][a[k]];return ft()};u[E]=!0,n.exports=Object.create||function(W,F){var lt;return null!==W?(w[b]=e(W),lt=new w,w[b]=null,lt[E]=W):lt=ft(),void 0===F?lt:o.f(lt,F)}},8324:(n,m,t)=>{"use strict";var e=t(740),o=t(7903),a=t(5909),u=t(858),c=t(6050),p=t(5354);m.f=e&&!o?Object.defineProperties:function(T,R){u(T);for(var N,b=c(R),x=p(R),E=x.length,w=0;E>w;)a.f(T,N=x[w++],b[N]);return T}},5909:(n,m,t)=>{"use strict";var e=t(740),o=t(1734),a=t(7903),u=t(858),c=t(865),p=TypeError,d=Object.defineProperty,T=Object.getOwnPropertyDescriptor,R="enumerable",b="configurable",x="writable";m.f=e?a?function(w,N,C){if(u(w),N=c(N),u(C),"function"==typeof w&&"prototype"===N&&"value"in C&&x in C&&!C[x]){var B=T(w,N);B&&B[x]&&(w[N]=C.value,C={configurable:b in C?C[b]:B[b],enumerable:R in C?C[R]:B[R],writable:!1})}return d(w,N,C)}:d:function(w,N,C){if(u(w),N=c(N),u(C),o)try{return d(w,N,C)}catch{}if("get"in C||"set"in C)throw new p("Accessors not supported");return"value"in C&&(w[N]=C.value),w}},1200:(n,m,t)=>{"use strict";var e=t(740),o=t(1935),a=t(1349),u=t(2016),c=t(6050),p=t(865),d=t(780),T=t(1734),R=Object.getOwnPropertyDescriptor;m.f=e?R:function(x,E){if(x=c(x),E=p(E),T)try{return R(x,E)}catch{}if(d(x,E))return u(!o(a.f,x,E),x[E])}},5245:(n,m,t)=>{"use strict";var e=t(2637),a=t(5142).concat("length","prototype");m.f=Object.getOwnPropertyNames||function(c){return e(c,a)}},3729:(n,m)=>{"use strict";m.f=Object.getOwnPropertySymbols},3184:(n,m,t)=>{"use strict";var e=t(780),o=t(337),a=t(8274),u=t(2351),c=t(6701),p=u("IE_PROTO"),d=Object,T=d.prototype;n.exports=c?d.getPrototypeOf:function(R){var b=a(R);if(e(b,p))return b[p];var x=b.constructor;return o(x)&&b instanceof x?x.prototype:b instanceof d?T:null}},9807:(n,m,t)=>{"use strict";var e=t(4450);n.exports=e({}.isPrototypeOf)},2637:(n,m,t)=>{"use strict";var e=t(4450),o=t(780),a=t(6050),u=t(9639).indexOf,c=t(2561),p=e([].push);n.exports=function(d,T){var E,R=a(d),b=0,x=[];for(E in R)!o(c,E)&&o(R,E)&&p(x,E);for(;T.length>b;)o(R,E=T[b++])&&(~u(x,E)||p(x,E));return x}},5354:(n,m,t)=>{"use strict";var e=t(2637),o=t(5142);n.exports=Object.keys||function(u){return e(u,o)}},1349:(n,m)=>{"use strict";var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!t.call({1:2},1);m.f=o?function(u){var c=e(this,u);return!!c&&c.enumerable}:t},1819:(n,m,t)=>{"use strict";var e=t(541),o=t(858),a=t(1610);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p,u=!1,c={};try{(p=e(Object.prototype,"__proto__","set"))(c,[]),u=c instanceof Array}catch{}return function(T,R){return o(T),a(R),u?p(T,R):T.__proto__=R,T}}():void 0)},2617:(n,m,t)=>{"use strict";var e=t(1935),o=t(337),a=t(6833),u=TypeError;n.exports=function(c,p){var d,T;if("string"===p&&o(d=c.toString)&&!a(T=e(d,c))||o(d=c.valueOf)&&!a(T=e(d,c))||"string"!==p&&o(d=c.toString)&&!a(T=e(d,c)))return T;throw new u("Can't convert object to primitive value")}},2244:(n,m,t)=>{"use strict";var e=t(4642),o=t(4450),a=t(5245),u=t(3729),c=t(858),p=o([].concat);n.exports=e("Reflect","ownKeys")||function(T){var R=a.f(c(T)),b=u.f;return b?p(R,b(T)):R}},6281:(n,m,t)=>{"use strict";var e=t(6308);n.exports=e},5028:(n,m,t)=>{"use strict";var e=t(6710),o=TypeError;n.exports=function(a){if(e(a))throw new o("Can't call method on "+a);return a}},8166:(n,m,t)=>{"use strict";var e=t(6308),o=t(740),a=Object.getOwnPropertyDescriptor;n.exports=function(u){if(!o)return e[u];var c=a(e,u);return c&&c.value}},2801:(n,m,t)=>{"use strict";var e=t(5909).f,o=t(780),u=t(8713)("toStringTag");n.exports=function(c,p,d){c&&!d&&(c=c.prototype),c&&!o(c,u)&&e(c,u,{configurable:!0,value:p})}},2351:(n,m,t)=>{"use strict";var e=t(3576),o=t(1154),a=e("keys");n.exports=function(u){return a[u]||(a[u]=o(u))}},5111:(n,m,t)=>{"use strict";var e=t(6308),o=t(189),a="__core-js_shared__",u=e[a]||o(a,{});n.exports=u},3576:(n,m,t)=>{"use strict";var e=t(777),o=t(5111);(n.exports=function(a,u){return o[a]||(o[a]=void 0!==u?u:{})})("versions",[]).push({version:"3.35.0",mode:e?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8949:(n,m,t)=>{"use strict";var e=t(4450),o=t(2268),a=t(2839),u=t(5028),c=e("".charAt),p=e("".charCodeAt),d=e("".slice),T=function(R){return function(b,x){var C,B,E=a(u(b)),w=o(x),N=E.length;return w<0||w>=N?R?"":void 0:(C=p(E,w))<55296||C>56319||w+1===N||(B=p(E,w+1))<56320||B>57343?R?c(E,w):C:R?d(E,w,w+2):B-56320+(C-55296<<10)+65536}};n.exports={codeAt:T(!1),charAt:T(!0)}},9278:(n,m,t)=>{"use strict";var e=t(4450),o=2147483647,x=/[^\0-\u007E]/,E=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",C=RangeError,B=e(E.exec),tt=Math.floor,ft=String.fromCharCode,k=e("".charCodeAt),W=e([].join),F=e([].push),lt=e("".replace),Ut=e("".split),Nt=e("".toLowerCase),At=function(ht){return ht+22+75*(ht<26)},$t=function(ht,it,yt){var dt=0;for(ht=yt?tt(ht/700):ht>>1,ht+=tt(ht/it);ht>455;)ht=tt(ht/35),dt+=36;return tt(dt+36*ht/(ht+38))},Dt=function(ht){var it=[];ht=function(ht){for(var it=[],yt=0,dt=ht.length;yt<dt;){var Rt=k(ht,yt++);if(Rt>=55296&&Rt<=56319&&yt<dt){var mt=k(ht,yt++);56320==(64512&mt)?F(it,((1023&Rt)<<10)+(1023&mt)+65536):(F(it,Rt),yt--)}else F(it,Rt)}return it}(ht);var Ot,Lt,yt=ht.length,dt=128,Rt=0,mt=72;for(Ot=0;Ot<ht.length;Ot++)(Lt=ht[Ot])<128&&F(it,ft(Lt));var Ht=it.length,kt=Ht;for(Ht&&F(it,"-");kt<yt;){var St=o;for(Ot=0;Ot<ht.length;Ot++)(Lt=ht[Ot])>=dt&&Lt<St&&(St=Lt);var Gt=kt+1;if(St-dt>tt((o-Rt)/Gt))throw new C(w);for(Rt+=(St-dt)*Gt,dt=St,Ot=0;Ot<ht.length;Ot++){if((Lt=ht[Ot])<dt&&++Rt>o)throw new C(w);if(Lt===dt){for(var Bt=Rt,Wt=36;;){var Kt=Wt<=mt?1:Wt>=mt+26?26:Wt-mt;if(Bt<Kt)break;var Yt=Bt-Kt,Qt=36-Kt;F(it,ft(At(Kt+Yt%Qt))),Bt=tt(Yt/Qt),Wt+=36}F(it,ft(At(Bt))),mt=$t(Rt,Gt,kt===Ht),Rt=0,kt++}}Rt++,dt++}return W(it,"")};n.exports=function(ht){var dt,Rt,it=[],yt=Ut(lt(Nt(ht),E,"."),".");for(dt=0;dt<yt.length;dt++)F(it,B(x,Rt=yt[dt])?"xn--"+Dt(Rt):Rt);return W(it,".")}},6762:(n,m,t)=>{"use strict";var e=t(5521),o=t(2325),u=t(6308).String;n.exports=!!Object.getOwnPropertySymbols&&!o(function(){var c=Symbol("symbol detection");return!u(c)||!(Object(c)instanceof Symbol)||!Symbol.sham&&e&&e<41})},9090:(n,m,t)=>{"use strict";var e=t(2268),o=Math.max,a=Math.min;n.exports=function(u,c){var p=e(u);return p<0?o(p+c,0):a(p,c)}},6050:(n,m,t)=>{"use strict";var e=t(4555),o=t(5028);n.exports=function(a){return e(o(a))}},2268:(n,m,t)=>{"use strict";var e=t(3408);n.exports=function(o){var a=+o;return a!=a||0===a?0:e(a)}},2631:(n,m,t)=>{"use strict";var e=t(2268),o=Math.min;n.exports=function(a){return a>0?o(e(a),9007199254740991):0}},8274:(n,m,t)=>{"use strict";var e=t(5028),o=Object;n.exports=function(a){return o(e(a))}},8034:(n,m,t)=>{"use strict";var e=t(1935),o=t(6833),a=t(4152),u=t(8081),c=t(2617),p=t(8713),d=TypeError,T=p("toPrimitive");n.exports=function(R,b){if(!o(R)||a(R))return R;var E,x=u(R,T);if(x){if(void 0===b&&(b="default"),E=e(x,R,b),!o(E)||a(E))return E;throw new d("Can't convert object to primitive value")}return void 0===b&&(b="number"),c(R,b)}},865:(n,m,t)=>{"use strict";var e=t(8034),o=t(4152);n.exports=function(a){var u=e(a,"string");return o(u)?u:u+""}},6760:(n,m,t)=>{"use strict";var a={};a[t(8713)("toStringTag")]="z",n.exports="[object z]"===String(a)},2839:(n,m,t)=>{"use strict";var e=t(5587),o=String;n.exports=function(a){if("Symbol"===e(a))throw new TypeError("Cannot convert a Symbol value to a string");return o(a)}},8393:n=>{"use strict";var m=String;n.exports=function(t){try{return m(t)}catch{return"Object"}}},1154:(n,m,t)=>{"use strict";var e=t(4450),o=0,a=Math.random(),u=e(1..toString);n.exports=function(c){return"Symbol("+(void 0===c?"":c)+")_"+u(++o+a,36)}},3755:(n,m,t)=>{"use strict";var e=t(2325),o=t(8713),a=t(740),u=t(777),c=o("iterator");n.exports=!e(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),d=p.searchParams,T=new URLSearchParams("a=1&a=2&b=3"),R="";return p.pathname="c%20d",d.forEach(function(b,x){d.delete("b"),R+=x+b}),T.delete("a",2),T.delete("b",void 0),u&&(!p.toJSON||!T.has("a",1)||T.has("a",2)||!T.has("a",void 0)||T.has("b"))||!d.size&&(u||!a)||!d.sort||"http://a/c%20d?a=1&c=3"!==p.href||"3"!==d.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!d[c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==R||"x"!==new URL("http://x",void 0).host})},1896:(n,m,t)=>{"use strict";var e=t(6762);n.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7903:(n,m,t)=>{"use strict";var e=t(740),o=t(2325);n.exports=e&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},6127:n=>{"use strict";var m=TypeError;n.exports=function(t,e){if(t<e)throw new m("Not enough arguments");return t}},359:(n,m,t)=>{"use strict";var e=t(6308),o=t(337),a=e.WeakMap;n.exports=o(a)&&/native code/.test(String(a))},8713:(n,m,t)=>{"use strict";var e=t(6308),o=t(3576),a=t(780),u=t(1154),c=t(6762),p=t(1896),d=e.Symbol,T=o("wks"),R=p?d.for||d:d&&d.withoutSetter||u;n.exports=function(b){return a(T,b)||(T[b]=c&&a(d,b)?d[b]:R("Symbol."+b)),T[b]}},346:(n,m,t)=>{"use strict";var e=t(6050),o=t(2822),a=t(2248),u=t(2267),c=t(5909).f,p=t(321),d=t(72),T=t(777),R=t(740),b="Array Iterator",x=u.set,E=u.getterFor(b);n.exports=p(Array,"Array",function(N,C){x(this,{type:b,target:e(N),index:0,kind:C})},function(){var N=E(this),C=N.target,B=N.index++;if(!C||B>=C.length)return N.target=void 0,d(void 0,!0);switch(N.kind){case"keys":return d(B,!1);case"values":return d(C[B],!1)}return d([B,C[B]],!1)},"values");var w=a.Arguments=a.Array;if(o("keys"),o("values"),o("entries"),!T&&R&&"values"!==w.name)try{c(w,"name",{value:"values"})}catch{}},3119:(n,m,t)=>{"use strict";var e=t(8949).charAt,o=t(2839),a=t(2267),u=t(321),c=t(72),p="String Iterator",d=a.set,T=a.getterFor(p);u(String,"String",function(R){d(this,{type:p,string:o(R),index:0})},function(){var w,b=T(this),x=b.string,E=b.index;return E>=x.length?c(void 0,!0):(w=e(x,E),b.index+=w.length,c(w,!1))})},3217:(n,m,t)=>{"use strict";var e=t(6308),o=t(4988),a=t(5677),u=t(346),c=t(2257),p=t(2801),T=t(8713)("iterator"),R=u.values,b=function(E,w){if(E){if(E[T]!==R)try{c(E,T,R)}catch{E[T]=R}if(p(E,w,!0),o[w])for(var N in u)if(E[N]!==u[N])try{c(E,N,u[N])}catch{E[N]=u[N]}}};for(var x in o)b(e[x]&&e[x].prototype,x);b(a,"DOMTokenList")},3924:(n,m,t)=>{"use strict";t(346);var e=t(3514),o=t(6308),a=t(8166),u=t(1935),c=t(4450),p=t(740),d=t(3755),T=t(5548),R=t(5345),b=t(1719),x=t(2801),E=t(9210),w=t(2267),N=t(9899),C=t(337),B=t(780),tt=t(7761),ft=t(5587),k=t(858),W=t(6833),F=t(2839),lt=t(5798),Ut=t(2016),Nt=t(2632),wt=t(6628),At=t(72),$t=t(6127),Dt=t(8713),ht=t(4714),it=Dt("iterator"),yt="URLSearchParams",dt=yt+"Iterator",Rt=w.set,mt=w.getterFor(yt),Ot=w.getterFor(dt),Lt=a("fetch"),Ht=a("Request"),kt=a("Headers"),St=Ht&&Ht.prototype,Gt=kt&&kt.prototype,Bt=o.RegExp,Wt=o.TypeError,Kt=o.decodeURIComponent,Yt=o.encodeURIComponent,Qt=c("".charAt),ne=c([].join),Jt=c([].push),qt=c("".replace),ie=c([].shift),ee=c([].splice),ue=c("".split),te=c("".slice),_t=/\+/g,ce=Array(4),fe=function(A){return ce[A-1]||(ce[A-1]=Bt("((?:%[\\da-f]{2}){"+A+"})","gi"))},he=function(A){try{return Kt(A)}catch{return A}},f=function(A){var H=qt(A,_t," "),M=4;try{return Kt(H)}catch{for(;M;)H=qt(H,fe(M--),he);return H}},v=/[!'()~]|%20/g,P={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},S=function(A){return P[A]},L=function(A){return qt(Yt(A),v,S)},D=E(function(H,M){Rt(this,{type:dt,target:mt(H).entries,index:0,kind:M})},yt,function(){var H=Ot(this),M=H.target,et=H.index++;if(!M||et>=M.length)return H.target=void 0,At(void 0,!0);var q=M[et];switch(H.kind){case"keys":return At(q.key,!1);case"values":return At(q.value,!1)}return At([q.key,q.value],!1)},!0),z=function(A){this.entries=[],this.url=null,void 0!==A&&(W(A)?this.parseObject(A):this.parseQuery("string"==typeof A?"?"===Qt(A,0)?te(A,1):A:F(A)))};z.prototype={type:yt,bindURL:function(A){this.url=A,this.update()},parseObject:function(A){var et,q,Z,U,Et,at,xt,H=this.entries,M=wt(A);if(M)for(q=(et=Nt(A,M)).next;!(Z=u(q,et)).done;){if(U=Nt(k(Z.value)),(at=u(Et=U.next,U)).done||(xt=u(Et,U)).done||!u(Et,U).done)throw new Wt("Expected sequence with length 2");Jt(H,{key:F(at.value),value:F(xt.value)})}else for(var Tt in A)B(A,Tt)&&Jt(H,{key:Tt,value:F(A[Tt])})},parseQuery:function(A){if(A)for(var q,Z,H=this.entries,M=ue(A,"&"),et=0;et<M.length;)(q=M[et++]).length&&(Z=ue(q,"="),Jt(H,{key:f(ie(Z)),value:f(ne(Z,"="))}))},serialize:function(){for(var et,A=this.entries,H=[],M=0;M<A.length;)et=A[M++],Jt(H,L(et.key)+"="+L(et.value));return ne(H,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var V=function(){N(this,rt);var M=Rt(this,new z(arguments.length>0?arguments[0]:void 0));p||(this.size=M.entries.length)},rt=V.prototype;if(b(rt,{append:function(H,M){var et=mt(this);$t(arguments.length,2),Jt(et.entries,{key:F(H),value:F(M)}),p||this.length++,et.updateURL()},delete:function(A){for(var H=mt(this),M=$t(arguments.length,1),et=H.entries,q=F(A),Z=M<2?void 0:arguments[1],U=void 0===Z?Z:F(Z),Et=0;Et<et.length;){var at=et[Et];if(at.key!==q||void 0!==U&&at.value!==U)Et++;else if(ee(et,Et,1),void 0!==U)break}p||(this.size=et.length),H.updateURL()},get:function(H){var M=mt(this).entries;$t(arguments.length,1);for(var et=F(H),q=0;q<M.length;q++)if(M[q].key===et)return M[q].value;return null},getAll:function(H){var M=mt(this).entries;$t(arguments.length,1);for(var et=F(H),q=[],Z=0;Z<M.length;Z++)M[Z].key===et&&Jt(q,M[Z].value);return q},has:function(H){for(var M=mt(this).entries,et=$t(arguments.length,1),q=F(H),Z=et<2?void 0:arguments[1],U=void 0===Z?Z:F(Z),Et=0;Et<M.length;){var at=M[Et++];if(at.key===q&&(void 0===U||at.value===U))return!0}return!1},set:function(H,M){var et=mt(this);$t(arguments.length,1);for(var xt,q=et.entries,Z=!1,U=F(H),Et=F(M),at=0;at<q.length;at++)(xt=q[at]).key===U&&(Z?ee(q,at--,1):(Z=!0,xt.value=Et));Z||Jt(q,{key:U,value:Et}),p||(this.size=q.length),et.updateURL()},sort:function(){var H=mt(this);ht(H.entries,function(M,et){return M.key>et.key?1:-1}),H.updateURL()},forEach:function(H){for(var Z,M=mt(this).entries,et=tt(H,arguments.length>1?arguments[1]:void 0),q=0;q<M.length;)et((Z=M[q++]).value,Z.key,this)},keys:function(){return new D(this,"keys")},values:function(){return new D(this,"values")},entries:function(){return new D(this,"entries")}},{enumerable:!0}),T(rt,it,rt.entries,{name:"entries"}),T(rt,"toString",function(){return mt(this).serialize()},{enumerable:!0}),p&&R(rt,"size",{get:function(){return mt(this).entries.length},configurable:!0,enumerable:!0}),x(V,yt),e({global:!0,constructor:!0,forced:!d},{URLSearchParams:V}),!d&&C(kt)){var nt=c(Gt.has),$=c(Gt.set),vt=function(A){if(W(A)){var M,H=A.body;if(ft(H)===yt)return M=A.headers?new kt(A.headers):new kt,nt(M,"content-type")||$(M,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),lt(A,{body:Ut(0,F(H)),headers:Ut(0,M)})}return A};if(C(Lt)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(H){return Lt(H,arguments.length>1?vt(arguments[1]):{})}}),C(Ht)){var ot=function(H){return N(this,St),new Ht(H,arguments.length>1?vt(arguments[1]):{})};St.constructor=ot,ot.prototype=St,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ot})}}n.exports={URLSearchParams:V,getState:mt}},5946:(n,m,t)=>{"use strict";var e=t(5548),o=t(4450),a=t(2839),u=t(6127),c=URLSearchParams,p=c.prototype,d=o(p.append),T=o(p.delete),R=o(p.forEach),b=o([].push),x=new c("a=1&a=2&b=3");x.delete("a",1),x.delete("b",void 0),x+""!="a=2"&&e(p,"delete",function(E){var w=arguments.length,N=w<2?void 0:arguments[1];if(w&&void 0===N)return T(this,E);var C=[];R(this,function(Ut,Nt){b(C,{key:Nt,value:Ut})}),u(w,1);for(var lt,B=a(E),tt=a(N),ft=0,k=0,W=!1,F=C.length;ft<F;)lt=C[ft++],W||lt.key===B?(W=!0,T(this,lt.key)):k++;for(;k<F;)(lt=C[k++]).key===B&&lt.value===tt||d(this,lt.key,lt.value)},{enumerable:!0,unsafe:!0})},173:(n,m,t)=>{"use strict";var e=t(5548),o=t(4450),a=t(2839),u=t(6127),c=URLSearchParams,p=c.prototype,d=o(p.getAll),T=o(p.has),R=new c("a=1");(R.has("a",2)||!R.has("a",void 0))&&e(p,"has",function(x){var E=arguments.length,w=E<2?void 0:arguments[1];if(E&&void 0===w)return T(this,x);var N=d(this,x);u(E,1);for(var C=a(w),B=0;B<N.length;)if(N[B++]===C)return!0;return!1},{enumerable:!0,unsafe:!0})},9409:(n,m,t)=>{"use strict";t(3924)},6731:(n,m,t)=>{"use strict";var e=t(740),o=t(4450),a=t(5345),u=URLSearchParams.prototype,c=o(u.forEach);e&&!("size"in u)&&a(u,"size",{get:function(){var d=0;return c(this,function(){d++}),d},configurable:!0,enumerable:!0})},3818:(n,m,t)=>{"use strict";var e=t(3514),o=t(4642),a=t(2325),u=t(6127),c=t(2839),p=t(3755),d=o("URL");e({target:"URL",stat:!0,forced:!(p&&a(function(){d.canParse()}))},{canParse:function(b){var x=u(arguments.length,1),E=c(b),w=x<2||void 0===arguments[1]?void 0:c(arguments[1]);try{return!!new d(E,w)}catch{return!1}}})},8195:(n,m,t)=>{"use strict";t(3119);var v,e=t(3514),o=t(740),a=t(3755),u=t(6308),c=t(7761),p=t(4450),d=t(5548),T=t(5345),R=t(9899),b=t(780),x=t(7370),E=t(2649),w=t(7031),N=t(8949).codeAt,C=t(9278),B=t(2839),tt=t(2801),ft=t(6127),k=t(3924),W=t(2267),F=W.set,lt=W.getterFor("URL"),Ut=k.URLSearchParams,Nt=k.getState,wt=u.URL,At=u.TypeError,$t=u.parseInt,Dt=Math.floor,ht=Math.pow,it=p("".charAt),yt=p(/./.exec),dt=p([].join),Rt=p(1..toString),mt=p([].pop),Ot=p([].push),Lt=p("".replace),Ht=p([].shift),kt=p("".split),St=p("".slice),Gt=p("".toLowerCase),Bt=p([].unshift),Kt="Invalid scheme",Yt="Invalid host",Qt="Invalid port",ne=/[a-z]/i,Jt=/[\d+-.a-z]/i,qt=/\d/,ie=/^0x/i,ee=/^[0-7]+$/,ue=/^\d+$/,te=/^[\da-f]+$/i,_t=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ce=/[\0\t\n\r #/:<>?@[\\\]^|]/,fe=/^[\u0000-\u0020]+/,he=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,f=/[\t\n\r]/g,D=function(i){var h,r,s,y;if("number"==typeof i){for(h=[],r=0;r<4;r++)Bt(h,i%256),i=Dt(i/256);return dt(h,".")}if("object"==typeof i){for(h="",s=function(i){for(var h=null,r=1,s=null,y=0,j=0;j<8;j++)0!==i[j]?(y>r&&(h=s,r=y),s=null,y=0):(null===s&&(s=j),++y);return y>r&&(h=s,r=y),h}(i),r=0;r<8;r++)y&&0===i[r]||(y&&(y=!1),s===r?(h+=r?":":"::",y=!0):(h+=Rt(i[r],16),r<7&&(h+=":")));return"["+h+"]"}return i},z={},V=x({},z,{" ":1,'"':1,"<":1,">":1,"`":1}),rt=x({},V,{"#":1,"?":1,"{":1,"}":1}),nt=x({},rt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$=function(i,h){var r=N(i,0);return r>32&&r<127&&!b(h,i)?i:encodeURIComponent(i)},vt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ot=function(i,h){var r;return 2===i.length&&yt(ne,it(i,0))&&(":"===(r=it(i,1))||!h&&"|"===r)},A=function(i){var h;return i.length>1&&ot(St(i,0,2))&&(2===i.length||"/"===(h=it(i,2))||"\\"===h||"?"===h||"#"===h)},H=function(i){return"."===i||"%2e"===Gt(i)},M=function(i){return".."===(i=Gt(i))||"%2e."===i||".%2e"===i||"%2e%2e"===i},et={},q={},Z={},U={},Et={},at={},xt={},Tt={},K={},Pt={},G={},pt={},st={},Vt={},Xt={},jt={},bt={},Mt={},zt={},It={},ut={},Y=function(i,h,r){var y,j,I,s=B(i);if(h){if(j=this.parse(s))throw new At(j);this.searchParams=null}else{if(void 0!==r&&(y=new Y(r,!0)),j=this.parse(s,null,y))throw new At(j);(I=Nt(new Ut)).bindURL(this),this.searchParams=I}};Y.prototype={type:"URL",parse:function(i,h,r){var gt,O,Ct,Zt,s=this,y=h||et,j=0,I="",J=!1,Q=!1,_=!1;for(i=B(i),h||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,i=Lt(i,fe,""),i=Lt(i,he,"$1")),i=Lt(i,f,""),gt=E(i);j<=gt.length;){switch(O=gt[j],y){case et:if(!O||!yt(ne,O)){if(h)return Kt;y=Z;continue}I+=Gt(O),y=q;break;case q:if(O&&(yt(Jt,O)||"+"===O||"-"===O||"."===O))I+=Gt(O);else{if(":"!==O){if(h)return Kt;I="",y=Z,j=0;continue}if(h&&(s.isSpecial()!==b(vt,I)||"file"===I&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=I,h)return void(s.isSpecial()&&vt[s.scheme]===s.port&&(s.port=null));I="","file"===s.scheme?y=Vt:s.isSpecial()&&r&&r.scheme===s.scheme?y=U:s.isSpecial()?y=Tt:"/"===gt[j+1]?(y=Et,j++):(s.cannotBeABaseURL=!0,Ot(s.path,""),y=zt)}break;case Z:if(!r||r.cannotBeABaseURL&&"#"!==O)return Kt;if(r.cannotBeABaseURL&&"#"===O){s.scheme=r.scheme,s.path=w(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,y=ut;break}y="file"===r.scheme?Vt:at;continue;case U:if("/"!==O||"/"!==gt[j+1]){y=at;continue}y=K,j++;break;case Et:if("/"===O){y=Pt;break}y=Mt;continue;case at:if(s.scheme=r.scheme,O===v)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=w(r.path),s.query=r.query;else if("/"===O||"\\"===O&&s.isSpecial())y=xt;else if("?"===O)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=w(r.path),s.query="",y=It;else{if("#"!==O){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=w(r.path),s.path.length--,y=Mt;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=w(r.path),s.query=r.query,s.fragment="",y=ut}break;case xt:if(!s.isSpecial()||"/"!==O&&"\\"!==O){if("/"!==O){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,y=Mt;continue}y=Pt}else y=K;break;case Tt:if(y=K,"/"!==O||"/"!==it(I,j+1))continue;j++;break;case K:if("/"!==O&&"\\"!==O){y=Pt;continue}break;case Pt:if("@"===O){J&&(I="%40"+I),J=!0,Ct=E(I);for(var se=0;se<Ct.length;se++){var ve=Ct[se];if(":"!==ve||_){var pe=$(ve,nt);_?s.password+=pe:s.username+=pe}else _=!0}I=""}else if(O===v||"/"===O||"?"===O||"#"===O||"\\"===O&&s.isSpecial()){if(J&&""===I)return"Invalid authority";j-=E(I).length+1,I="",y=G}else I+=O;break;case G:case pt:if(h&&"file"===s.scheme){y=jt;continue}if(":"!==O||Q){if(O===v||"/"===O||"?"===O||"#"===O||"\\"===O&&s.isSpecial()){if(s.isSpecial()&&""===I)return Yt;if(h&&""===I&&(s.includesCredentials()||null!==s.port))return;if(Zt=s.parseHost(I))return Zt;if(I="",y=bt,h)return;continue}"["===O?Q=!0:"]"===O&&(Q=!1),I+=O}else{if(""===I)return Yt;if(Zt=s.parseHost(I))return Zt;if(I="",y=st,h===pt)return}break;case st:if(!yt(qt,O)){if(O===v||"/"===O||"?"===O||"#"===O||"\\"===O&&s.isSpecial()||h){if(""!==I){var oe=$t(I,10);if(oe>65535)return Qt;s.port=s.isSpecial()&&oe===vt[s.scheme]?null:oe,I=""}if(h)return;y=bt;continue}return Qt}I+=O;break;case Vt:if(s.scheme="file","/"===O||"\\"===O)y=Xt;else{if(!r||"file"!==r.scheme){y=Mt;continue}switch(O){case v:s.host=r.host,s.path=w(r.path),s.query=r.query;break;case"?":s.host=r.host,s.path=w(r.path),s.query="",y=It;break;case"#":s.host=r.host,s.path=w(r.path),s.query=r.query,s.fragment="",y=ut;break;default:A(dt(w(gt,j),""))||(s.host=r.host,s.path=w(r.path),s.shortenPath()),y=Mt;continue}}break;case Xt:if("/"===O||"\\"===O){y=jt;break}r&&"file"===r.scheme&&!A(dt(w(gt,j),""))&&(ot(r.path[0],!0)?Ot(s.path,r.path[0]):s.host=r.host),y=Mt;continue;case jt:if(O===v||"/"===O||"\\"===O||"?"===O||"#"===O){if(!h&&ot(I))y=Mt;else if(""===I){if(s.host="",h)return;y=bt}else{if(Zt=s.parseHost(I))return Zt;if("localhost"===s.host&&(s.host=""),h)return;I="",y=bt}continue}I+=O;break;case bt:if(s.isSpecial()){if(y=Mt,"/"!==O&&"\\"!==O)continue}else if(h||"?"!==O)if(h||"#"!==O){if(O!==v&&(y=Mt,"/"!==O))continue}else s.fragment="",y=ut;else s.query="",y=It;break;case Mt:if(O===v||"/"===O||"\\"===O&&s.isSpecial()||!h&&("?"===O||"#"===O)){if(M(I)?(s.shortenPath(),"/"!==O&&!("\\"===O&&s.isSpecial())&&Ot(s.path,"")):H(I)?"/"!==O&&!("\\"===O&&s.isSpecial())&&Ot(s.path,""):("file"===s.scheme&&!s.path.length&&ot(I)&&(s.host&&(s.host=""),I=it(I,0)+":"),Ot(s.path,I)),I="","file"===s.scheme&&(O===v||"?"===O||"#"===O))for(;s.path.length>1&&""===s.path[0];)Ht(s.path);"?"===O?(s.query="",y=It):"#"===O&&(s.fragment="",y=ut)}else I+=$(O,rt);break;case zt:"?"===O?(s.query="",y=It):"#"===O?(s.fragment="",y=ut):O!==v&&(s.path[0]+=$(O,z));break;case It:h||"#"!==O?O!==v&&("'"===O&&s.isSpecial()?s.query+="%27":s.query+="#"===O?"%23":$(O,z)):(s.fragment="",y=ut);break;case ut:O!==v&&(s.fragment+=$(O,V))}j++}},parseHost:function(i){var h,r,s;if("["===it(i,0)){if("]"!==it(i,i.length-1)||(h=function(i){var j,I,J,Q,_,gt,O,h=[0,0,0,0,0,0,0,0],r=0,s=null,y=0,Ct=function(){return it(i,y)};if(":"===Ct()){if(":"!==it(i,1))return;y+=2,s=++r}for(;Ct();){if(8===r)return;if(":"!==Ct()){for(j=I=0;I<4&&yt(te,Ct());)j=16*j+$t(Ct(),16),y++,I++;if("."===Ct()){if(0===I||(y-=I,r>6))return;for(J=0;Ct();){if(Q=null,J>0){if(!("."===Ct()&&J<4))return;y++}if(!yt(qt,Ct()))return;for(;yt(qt,Ct());){if(_=$t(Ct(),10),null===Q)Q=_;else{if(0===Q)return;Q=10*Q+_}if(Q>255)return;y++}h[r]=256*h[r]+Q,(2==++J||4===J)&&r++}if(4!==J)return;break}if(":"===Ct()){if(y++,!Ct())return}else if(Ct())return;h[r++]=j}else{if(null!==s)return;y++,s=++r}}if(null!==s)for(gt=r-s,r=7;0!==r&&gt>0;)O=h[r],h[r--]=h[s+gt-1],h[s+--gt]=O;else if(8!==r)return;return h}(St(i,1,-1)),!h))return Yt;this.host=h}else if(this.isSpecial()){if(i=C(i),yt(_t,i)||(h=function(i){var r,s,y,j,I,J,Q,h=kt(i,".");if(h.length&&""===h[h.length-1]&&h.length--,(r=h.length)>4)return i;for(s=[],y=0;y<r;y++){if(""===(j=h[y]))return i;if(I=10,j.length>1&&"0"===it(j,0)&&(I=yt(ie,j)?16:8,j=St(j,8===I?1:2)),""===j)J=0;else{if(!yt(10===I?ue:8===I?ee:te,j))return i;J=$t(j,I)}Ot(s,J)}for(y=0;y<r;y++)if(J=s[y],y===r-1){if(J>=ht(256,5-r))return null}else if(J>255)return null;for(Q=mt(s),y=0;y<s.length;y++)Q+=s[y]*ht(256,3-y);return Q}(i),null===h))return Yt;this.host=h}else{if(yt(ce,i))return Yt;for(h="",r=E(i),s=0;s<r.length;s++)h+=$(r[s],z);this.host=h}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return b(vt,this.scheme)},shortenPath:function(){var i=this.path,h=i.length;h&&("file"!==this.scheme||1!==h||!ot(i[0],!0))&&i.length--},serialize:function(){var i=this,h=i.scheme,r=i.username,s=i.password,y=i.host,j=i.port,I=i.path,J=i.query,Q=i.fragment,_=h+":";return null!==y?(_+="//",i.includesCredentials()&&(_+=r+(s?":"+s:"")+"@"),_+=D(y),null!==j&&(_+=":"+j)):"file"===h&&(_+="//"),_+=i.cannotBeABaseURL?I[0]:I.length?"/"+dt(I,"/"):"",null!==J&&(_+="?"+J),null!==Q&&(_+="#"+Q),_},setHref:function(i){var h=this.parse(i);if(h)throw new At(h);this.searchParams.update()},getOrigin:function(){var i=this.scheme,h=this.port;if("blob"===i)try{return new l(i.path[0]).origin}catch{return"null"}return"file"!==i&&this.isSpecial()?i+"://"+D(this.host)+(null!==h?":"+h:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(i){this.parse(B(i)+":",et)},getUsername:function(){return this.username},setUsername:function(i){var h=E(B(i));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<h.length;r++)this.username+=$(h[r],nt)}},getPassword:function(){return this.password},setPassword:function(i){var h=E(B(i));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<h.length;r++)this.password+=$(h[r],nt)}},getHost:function(){var i=this.host,h=this.port;return null===i?"":null===h?D(i):D(i)+":"+h},setHost:function(i){this.cannotBeABaseURL||this.parse(i,G)},getHostname:function(){var i=this.host;return null===i?"":D(i)},setHostname:function(i){this.cannotBeABaseURL||this.parse(i,pt)},getPort:function(){var i=this.port;return null===i?"":B(i)},setPort:function(i){this.cannotHaveUsernamePasswordPort()||(""===(i=B(i))?this.port=null:this.parse(i,st))},getPathname:function(){var i=this.path;return this.cannotBeABaseURL?i[0]:i.length?"/"+dt(i,"/"):""},setPathname:function(i){this.cannotBeABaseURL||(this.path=[],this.parse(i,bt))},getSearch:function(){var i=this.query;return i?"?"+i:""},setSearch:function(i){""===(i=B(i))?this.query=null:("?"===it(i,0)&&(i=St(i,1)),this.query="",this.parse(i,It)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var i=this.fragment;return i?"#"+i:""},setHash:function(i){""!==(i=B(i))?("#"===it(i,0)&&(i=St(i,1)),this.fragment="",this.parse(i,ut)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var l=function(h){var r=R(this,g),s=ft(arguments.length,1)>1?arguments[1]:void 0,y=F(r,new Y(h,!1,s));o||(r.href=y.serialize(),r.origin=y.getOrigin(),r.protocol=y.getProtocol(),r.username=y.getUsername(),r.password=y.getPassword(),r.host=y.getHost(),r.hostname=y.getHostname(),r.port=y.getPort(),r.pathname=y.getPathname(),r.search=y.getSearch(),r.searchParams=y.getSearchParams(),r.hash=y.getHash())},g=l.prototype,X=function(i,h){return{get:function(){return lt(this)[i]()},set:h&&function(r){return lt(this)[h](r)},configurable:!0,enumerable:!0}};if(o&&(T(g,"href",X("serialize","setHref")),T(g,"origin",X("getOrigin")),T(g,"protocol",X("getProtocol","setProtocol")),T(g,"username",X("getUsername","setUsername")),T(g,"password",X("getPassword","setPassword")),T(g,"host",X("getHost","setHost")),T(g,"hostname",X("getHostname","setHostname")),T(g,"port",X("getPort","setPort")),T(g,"pathname",X("getPathname","setPathname")),T(g,"search",X("getSearch","setSearch")),T(g,"searchParams",X("getSearchParams")),T(g,"hash",X("getHash","setHash"))),d(g,"toJSON",function(){return lt(this).serialize()},{enumerable:!0}),d(g,"toString",function(){return lt(this).serialize()},{enumerable:!0}),wt){var ct=wt.createObjectURL,Ft=wt.revokeObjectURL;ct&&d(l,"createObjectURL",c(ct,wt)),Ft&&d(l,"revokeObjectURL",c(Ft,wt))}tt(l,"URL"),e({global:!0,constructor:!0,forced:!a,sham:!o},{URL:l})},6849:(n,m,t)=>{"use strict";t(8195)},1688:(n,m,t)=>{"use strict";var e=t(3514),o=t(1935);e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},4303:(n,m,t)=>{"use strict";var e=t(1557);t(3217),n.exports=e},7237:(n,m,t)=>{"use strict";var e=t(9715);n.exports=e},1557:(n,m,t)=>{"use strict";t(9409),t(5946),t(173),t(6731);var e=t(6281);n.exports=e.URLSearchParams},9715:(n,m,t)=>{"use strict";t(1557),t(6849),t(3818),t(1688);var e=t(6281);n.exports=e.URL}},n=>{n(n.s=9193)}]);
//# sourceMappingURL=polyfills.a46ae1a39d277070.js.map
(()=>{"use strict";var e,v={},d={};function a(e){var n=d[e];if(void 0!==n)return n.exports;var r=d[e]={exports:{}};return v[e].call(r.exports,r,r.exports,a),r.exports}a.m=v,e=[],a.O=(n,r,u,l)=>{if(!r){var c=1/0;for(t=0;t<e.length;t++){for(var[r,u,l]=e[t],i=!0,o=0;o<r.length;o++)(!1&l||c>=l)&&Object.keys(a.O).every(p=>a.O[p](r[o]))?r.splice(o--,1):(i=!1,l<c&&(c=l));if(i){e.splice(t--,1);var f=u();void 0!==f&&(n=f)}}return n}l=l||0;for(var t=e.length;t>0&&e[t-1][2]>l;t--)e[t]=e[t-1];e[t]=[r,u,l]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={666:0};a.O.j=u=>0===e[u];var n=(u,l)=>{var o,f,[t,c,i]=l,s=0;if(t.some(_=>0!==e[_])){for(o in c)a.o(c,o)&&(a.m[o]=c[o]);if(i)var b=i(a)}for(u&&u(l);s<t.length;s++)a.o(e,f=t[s])&&e[f]&&e[f][0](),e[f]=0;return a.O(b)},r=self.webpackChunkCommunityView=self.webpackChunkCommunityView||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})()})();
//# sourceMappingURL=runtime.a1b2aea884085634.js.map
!function(_,v){"object"==typeof exports&&"object"==typeof module?module.exports=v():"function"==typeof define&&define.amd?define([],v):"object"==typeof exports?exports.Quill=v():_.Quill=v()}(typeof self<"u"?self:this,function(){return function(B){var _={};function v(P){if(_[P])return _[P].exports;var N=_[P]={i:P,l:!1,exports:{}};return B[P].call(N.exports,N,N.exports,v),N.l=!0,N.exports}return v.m=B,v.c=_,v.d=function(P,N,k){v.o(P,N)||Object.defineProperty(P,N,{configurable:!1,enumerable:!0,get:k})},v.n=function(P){var N=P&&P.__esModule?function(){return P.default}:function(){return P};return v.d(N,"a",N),N},v.o=function(P,N){return Object.prototype.hasOwnProperty.call(P,N)},v.p="",v(v.s=109)}([function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=v(17),N=v(18),k=v(19),m=v(45),y=v(46),c=v(47),o=v(48),t=v(49),e=v(12),u=v(32),l=v(33),a=v(31),r=v(1);_.default={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:P.default,Format:N.default,Leaf:k.default,Embed:o.default,Scroll:m.default,Block:c.default,Inline:y.default,Text:t.default,Attributor:{Attribute:e.default,Class:u.default,Style:l.default,Store:a.default}}},function(B,_,v){"use strict";var a,P=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])},function(r,i){function f(){this.constructor=r}a(r,i),r.prototype=null===i?Object.create(i):(f.prototype=i.prototype,new f)});Object.defineProperty(_,"__esModule",{value:!0});var N=function(a){function r(i){var f=this;return(f=a.call(this,i="[Parchment] "+i)||this).message=i,f.name=f.constructor.name,f}return P(r,a),r}(Error);_.ParchmentError=N;var o,k={},m={},y={},c={};function u(a,r){var i;if(void 0===r&&(r=o.ANY),"string"==typeof a)i=c[a]||k[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)i=c.text;else if("number"==typeof a)a&o.LEVEL&o.BLOCK?i=c.block:a&o.LEVEL&o.INLINE&&(i=c.inline);else if(a instanceof HTMLElement){var f=(a.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=m[f[n]])break;i=i||y[a.tagName]}return null==i?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}_.DATA_KEY="__blot",function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"}(o=_.Scope||(_.Scope={})),_.create=function t(a,r){var i=u(a);if(null==i)throw new N("Unable to create "+a+" blot");var f=i,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:f.create(r);return new f(n,r)},_.find=function e(a,r){return void 0===r&&(r=!1),null==a?null:null!=a[_.DATA_KEY]?a[_.DATA_KEY].blot:r?e(a.parentNode,r):null},_.query=u,_.register=function l(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];if(a.length>1)return a.map(function(n){return l(n)});var i=a[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new N("Invalid definition");if("abstract"===i.blotName)throw new N("Cannot register abstract class");return c[i.blotName||i.attrName]=i,"string"==typeof i.keyName?k[i.keyName]=i:(null!=i.className&&(m[i.className]=i),null!=i.tagName&&(i.tagName=Array.isArray(i.tagName)?i.tagName.map(function(n){return n.toUpperCase()}):i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach(function(n){(null==y[n]||null==i.className)&&(y[n]=i)}))),i}},function(B,_,v){var P=v(51),N=v(11),k=v(3),m=v(20),y=String.fromCharCode(0),c=function(o){this.ops=Array.isArray(o)?o:null!=o&&Array.isArray(o.ops)?o.ops:[]};c.prototype.insert=function(o,t){var e={};return 0===o.length?this:(e.insert=o,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},c.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},c.prototype.retain=function(o,t){if(o<=0)return this;var e={retain:o};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},c.prototype.push=function(o){var t=this.ops.length,e=this.ops[t-1];if(o=k(!0,{},o),"object"==typeof e){if("number"==typeof o.delete&&"number"==typeof e.delete)return this.ops[t-1]={delete:e.delete+o.delete},this;if("number"==typeof e.delete&&null!=o.insert&&"object"!=typeof(e=this.ops[(t-=1)-1]))return this.ops.unshift(o),this;if(N(o.attributes,e.attributes)){if("string"==typeof o.insert&&"string"==typeof e.insert)return this.ops[t-1]={insert:e.insert+o.insert},"object"==typeof o.attributes&&(this.ops[t-1].attributes=o.attributes),this;if("number"==typeof o.retain&&"number"==typeof e.retain)return this.ops[t-1]={retain:e.retain+o.retain},"object"==typeof o.attributes&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this},c.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},c.prototype.filter=function(o){return this.ops.filter(o)},c.prototype.forEach=function(o){this.ops.forEach(o)},c.prototype.map=function(o){return this.ops.map(o)},c.prototype.partition=function(o){var t=[],e=[];return this.forEach(function(u){(o(u)?t:e).push(u)}),[t,e]},c.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},c.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+m.length(t):t.delete?o-t.delete:o},0)},c.prototype.length=function(){return this.reduce(function(o,t){return o+m.length(t)},0)},c.prototype.slice=function(o,t){o=o||0,"number"!=typeof t&&(t=1/0);for(var e=[],u=m.iterator(this.ops),l=0;l<t&&u.hasNext();){var a;l<o?a=u.next(o-l):(a=u.next(t-l),e.push(a)),l+=m.length(a)}return new c(e)},c.prototype.compose=function(o){var t=m.iterator(this.ops),e=m.iterator(o.ops),u=[],l=e.peek();if(null!=l&&"number"==typeof l.retain&&null==l.attributes){for(var a=l.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),u.push(t.next());l.retain-a>0&&e.next(l.retain-a)}for(var r=new c(u);t.hasNext()||e.hasNext();)if("insert"===e.peekType())r.push(e.next());else if("delete"===t.peekType())r.push(t.next());else{var i=Math.min(t.peekLength(),e.peekLength()),f=t.next(i),n=e.next(i);if("number"==typeof n.retain){var s={};"number"==typeof f.retain?s.retain=i:s.insert=f.insert;var A=m.attributes.compose(f.attributes,n.attributes,"number"==typeof f.retain);if(A&&(s.attributes=A),r.push(s),!e.hasNext()&&N(r.ops[r.ops.length-1],s)){var g=new c(t.rest());return r.concat(g).chop()}}else"number"==typeof n.delete&&"number"==typeof f.retain&&r.push(n)}return r.chop()},c.prototype.concat=function(o){var t=new c(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},c.prototype.diff=function(o,t){if(this.ops===o.ops)return new c;var e=[this,o].map(function(i){return i.map(function(f){if(null!=f.insert)return"string"==typeof f.insert?f.insert:y;throw new Error("diff() called "+(i===o?"on":"with")+" non-document")}).join("")}),u=new c,l=P(e[0],e[1],t),a=m.iterator(this.ops),r=m.iterator(o.ops);return l.forEach(function(i){for(var f=i[1].length;f>0;){var n=0;switch(i[0]){case P.INSERT:n=Math.min(r.peekLength(),f),u.push(r.next(n));break;case P.DELETE:n=Math.min(f,a.peekLength()),a.next(n),u.delete(n);break;case P.EQUAL:n=Math.min(a.peekLength(),r.peekLength(),f);var s=a.next(n),A=r.next(n);N(s.insert,A.insert)?u.retain(n,m.attributes.diff(s.attributes,A.attributes)):u.push(A).delete(n)}f-=n}}),u.chop()},c.prototype.eachLine=function(o,t){t=t||"\n";for(var e=m.iterator(this.ops),u=new c,l=0;e.hasNext();){if("insert"!==e.peekType())return;var a=e.peek(),r=m.length(a)-e.peekLength(),i="string"==typeof a.insert?a.insert.indexOf(t,r)-r:-1;if(i<0)u.push(e.next());else if(i>0)u.push(e.next(i));else{if(!1===o(u,e.next(1).attributes||{},l))return;l+=1,u=new c}}u.length()>0&&o(u,{},l)},c.prototype.transform=function(o,t){if(t=!!t,"number"==typeof o)return this.transformPosition(o,t);for(var e=m.iterator(this.ops),u=m.iterator(o.ops),l=new c;e.hasNext()||u.hasNext();)if("insert"!==e.peekType()||!t&&"insert"===u.peekType())if("insert"===u.peekType())l.push(u.next());else{var a=Math.min(e.peekLength(),u.peekLength()),r=e.next(a),i=u.next(a);if(r.delete)continue;i.delete?l.push(i):l.retain(a,m.attributes.transform(r.attributes,i.attributes,t))}else l.retain(m.length(e.next()));return l.chop()},c.prototype.transformPosition=function(o,t){t=!!t;for(var e=m.iterator(this.ops),u=0;e.hasNext()&&u<=o;){var l=e.peekLength(),a=e.peekType();e.next(),"delete"!==a?("insert"===a&&(u<o||!t)&&(o+=l),u+=l):o-=Math.min(l,o-u)}return o},B.exports=c},function(B,_){"use strict";var v=Object.prototype.hasOwnProperty,P=Object.prototype.toString,N=Object.defineProperty,k=Object.getOwnPropertyDescriptor,m=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===P.call(e)},y=function(e){if(!e||"[object Object]"!==P.call(e))return!1;var a,u=v.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&v.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!u&&!l)return!1;for(a in e);return typeof a>"u"||v.call(e,a)},c=function(e,u){N&&"__proto__"===u.name?N(e,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):e[u.name]=u.newValue},o=function(e,u){if("__proto__"===u){if(!v.call(e,u))return;if(k)return k(e,u).value}return e[u]};B.exports=function t(){var e,u,l,a,r,i,f=arguments[0],n=1,s=arguments.length,A=!1;for("boolean"==typeof f&&(A=f,f=arguments[1]||{},n=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});n<s;++n)if(null!=(e=arguments[n]))for(u in e)l=o(f,u),f!==(a=o(e,u))&&(A&&a&&(y(a)||(r=m(a)))?(r?(r=!1,i=l&&m(l)?l:[]):i=l&&y(l)?l:{},c(f,{name:u,newValue:t(A,i,a)})):typeof a<"u"&&c(f,{name:u,newValue:a}));return f}},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BlockEmbed=_.bubbleFormats=void 0;var P=function(){function h(d,E){for(var T=0;T<E.length;T++){var q=E[T];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}return function(d,E,T){return E&&h(d.prototype,E),T&&h(d,T),d}}(),N=function h(d,E,T){null===d&&(d=Function.prototype);var q=Object.getOwnPropertyDescriptor(d,E);if(void 0===q){var D=Object.getPrototypeOf(d);return null===D?void 0:h(D,E,T)}if("value"in q)return q.value;var C=q.get;return void 0===C?void 0:C.call(T)},m=f(v(3)),c=f(v(2)),t=f(v(0)),u=f(v(16)),a=f(v(6)),i=f(v(7));function f(h){return h&&h.__esModule?h:{default:h}}function n(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function s(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?h:d}function A(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var g=1,b=function(h){function d(){return n(this,d),s(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return A(d,h),P(d,[{key:"attach",value:function(){N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new c.default).insert(this.value(),(0,m.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(T,q){var D=t.default.query(T,t.default.Scope.BLOCK_ATTRIBUTE);null!=D&&this.attributes.attribute(D,q)}},{key:"formatAt",value:function(T,q,D,C){this.format(D,C)}},{key:"insertAt",value:function(T,q,D){if("string"==typeof q&&q.endsWith("\n")){var C=t.default.create(w.blotName);this.parent.insertBefore(C,0===T?this:this.next),C.insertAt(0,q.slice(0,-1))}else N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,T,q,D)}}]),d}(t.default.Embed);b.scope=t.default.Scope.BLOCK_BLOT;var w=function(h){function d(E){n(this,d);var T=s(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,E));return T.cache={},T}return A(d,h),P(d,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(T,q){return 0===q.length()?T:T.insert(q.value(),p(q))},new c.default).insert("\n",p(this))),this.cache.delta}},{key:"deleteAt",value:function(T,q){N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"deleteAt",this).call(this,T,q),this.cache={}}},{key:"formatAt",value:function(T,q,D,C){q<=0||(t.default.query(D,t.default.Scope.BLOCK)?T+q===this.length()&&this.format(D,C):N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,T,Math.min(q,this.length()-T-1),D,C),this.cache={})}},{key:"insertAt",value:function(T,q,D){if(null!=D)return N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,T,q,D);if(0!==q.length){var C=q.split("\n"),Z=C.shift();Z.length>0&&(T<this.length()-1||null==this.children.tail?N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,Math.min(T,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var I=this;C.reduce(function(R,O){return(I=I.split(R,!0)).insertAt(0,O),O.length},T+Z.length)}}},{key:"insertBefore",value:function(T,q){var D=this.children.head;N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,T,q),D instanceof u.default&&D.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(T,q){N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"moveChildren",this).call(this,T,q),this.cache={}}},{key:"optimize",value:function(T){N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,T),this.cache={}}},{key:"path",value:function(T){return N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"path",this).call(this,T,!0)}},{key:"removeChild",value:function(T){N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"removeChild",this).call(this,T),this.cache={}}},{key:"split",value:function(T){var q=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(q&&(0===T||T>=this.length()-g)){var D=this.clone();return 0===T?(this.parent.insertBefore(D,this),this):(this.parent.insertBefore(D,this.next),D)}var C=N(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"split",this).call(this,T,q);return this.cache={},C}}]),d}(t.default.Block);function p(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==h||("function"==typeof h.formats&&(d=(0,m.default)(d,h.formats())),null==h.parent||"scroll"==h.parent.blotName||h.parent.statics.scope!==h.statics.scope)?d:p(h.parent,d)}w.blotName="block",w.tagName="P",w.defaultChild="break",w.allowedChildren=[a.default,t.default.Embed,i.default],_.bubbleFormats=p,_.BlockEmbed=b,_.default=w},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.overload=_.expandConfig=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},N=function(R,O){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function I(R,O){var S=[],L=!0,F=!1,M=void 0;try{for(var j,x=R[Symbol.iterator]();!(L=(j=x.next()).done)&&(S.push(j.value),!O||S.length!==O);L=!0);}catch(U){F=!0,M=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw M}}return S}(R,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")},k=function(){function I(R,O){for(var S=0;S<O.length;S++){var L=O[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,O,S){return O&&I(R.prototype,O),S&&I(R,S),R}}();v(50);var y=p(v(2)),o=p(v(14)),e=p(v(8)),l=p(v(9)),r=p(v(0)),i=v(15),f=p(i),s=p(v(3)),g=p(v(10)),w=p(v(34));function p(I){return I&&I.__esModule?I:{default:I}}function h(I,R,O){return R in I?Object.defineProperty(I,R,{value:O,enumerable:!0,configurable:!0,writable:!0}):I[R]=O,I}var E=(0,g.default)("quill"),T=function(){function I(R){var O=this,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function d(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}(this,I),this.options=q(R,S),this.container=this.options.container,null==this.container)return E.error("Invalid Quill container",R);this.options.debug&&I.debug(this.options.debug);var L=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new e.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(e.default.events.EDITOR_CHANGE,function(M){M===e.default.events.TEXT_CHANGE&&O.root.classList.toggle("ql-blank",O.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(M,x){var j=O.selection.lastRange,U=j&&0===j.length?j.index:void 0;D.call(O,function(){return O.editor.update(null,x,U)},M)});var F=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+L+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return k(I,null,[{key:"debug",value:function(O){!0===O&&(O="log"),g.default.level(O)}},{key:"find",value:function(O){return O.__quill||r.default.find(O)}},{key:"import",value:function(O){return null==this.imports[O]&&E.error("Cannot import "+O+". Are you sure it was registered?"),this.imports[O]}},{key:"register",value:function(O,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof O){var M=O.attrName||O.blotName;"string"==typeof M?this.register("formats/"+M,O,S):Object.keys(O).forEach(function(x){L.register(x,O[x],S)})}else null!=this.imports[O]&&!F&&E.warn("Overwriting "+O+" with",S),this.imports[O]=S,(O.startsWith("blots/")||O.startsWith("formats/"))&&"abstract"!==S.blotName?r.default.register(S):O.startsWith("modules")&&"function"==typeof S.register&&S.register()}}]),k(I,[{key:"addContainer",value:function(O){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof O){var L=O;(O=document.createElement("div")).classList.add(L)}return this.container.insertBefore(O,S),O}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(O,S,L){var F=this,M=C(O,S,L),x=N(M,4);return D.call(this,function(){return F.editor.deleteText(O,S)},L=x[3],O=x[0],-1*(S=x[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var O=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(O),this.container.classList.toggle("ql-disabled",!O)}},{key:"focus",value:function(){var O=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=O,this.scrollIntoView()}},{key:"format",value:function(O,S){var L=this;return D.call(this,function(){var M=L.getSelection(!0),x=new y.default;if(null==M)return x;if(r.default.query(O,r.default.Scope.BLOCK))x=L.editor.formatLine(M.index,M.length,h({},O,S));else{if(0===M.length)return L.selection.format(O,S),x;x=L.editor.formatText(M.index,M.length,h({},O,S))}return L.setSelection(M,e.default.sources.SILENT),x},arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.default.sources.API)}},{key:"formatLine",value:function(O,S,L,F,M){var j,x=this,U=C(O,S,L,F,M),H=N(U,4);return S=H[1],j=H[2],D.call(this,function(){return x.editor.formatLine(O,S,j)},M=H[3],O=H[0],0)}},{key:"formatText",value:function(O,S,L,F,M){var j,x=this,U=C(O,S,L,F,M),H=N(U,4);return S=H[1],j=H[2],D.call(this,function(){return x.editor.formatText(O,S,j)},M=H[3],O=H[0],0)}},{key:"getBounds",value:function(O){var L;L="number"==typeof O?this.selection.getBounds(O,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(O.index,O.length);var F=this.container.getBoundingClientRect();return{bottom:L.bottom-F.top,height:L.height,left:L.left-F.left,right:L.right-F.left,top:L.top-F.top,width:L.width}}},{key:"getContents",value:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-O,L=C(O,S),F=N(L,2);return this.editor.getContents(O=F[0],S=F[1])}},{key:"getFormat",value:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof O?this.editor.getFormat(O,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(O.index,O.length)}},{key:"getIndex",value:function(O){return O.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(O){return this.scroll.leaf(O)}},{key:"getLine",value:function(O){return this.scroll.line(O)}},{key:"getLines",value:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof O?this.scroll.lines(O.index,O.length):this.scroll.lines(O,S)}},{key:"getModule",value:function(O){return this.theme.modules[O]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-O,L=C(O,S),F=N(L,2);return this.editor.getText(O=F[0],S=F[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(O,S,L){var F=this;return D.call(this,function(){return F.editor.insertEmbed(O,S,L)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:I.sources.API,O)}},{key:"insertText",value:function(O,S,L,F,M){var j,x=this,U=C(O,0,L,F,M),H=N(U,4);return j=H[2],D.call(this,function(){return x.editor.insertText(O,S,j)},M=H[3],O=H[0],S.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(O,S,L){this.clipboard.dangerouslyPasteHTML(O,S,L)}},{key:"removeFormat",value:function(O,S,L){var F=this,M=C(O,S,L),x=N(M,4);return S=x[1],D.call(this,function(){return F.editor.removeFormat(O,S)},L=x[3],O=x[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(O){var S=this;return D.call(this,function(){O=new y.default(O);var F=S.getLength(),M=S.editor.deleteText(0,F),x=S.editor.applyDelta(O),j=x.ops[x.ops.length-1];return null!=j&&"string"==typeof j.insert&&"\n"===j.insert[j.insert.length-1]&&(S.editor.deleteText(S.getLength()-1,1),x.delete(1)),M.compose(x)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.default.sources.API)}},{key:"setSelection",value:function(O,S,L){if(null==O)this.selection.setRange(null,S||I.sources.API);else{var F=C(O,S,L),M=N(F,4);L=M[3],this.selection.setRange(new i.Range(O=M[0],S=M[1]),L),L!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(O){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.default.sources.API,L=(new y.default).insert(O);return this.setContents(L,S)}},{key:"update",value:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.default.sources.USER,S=this.scroll.update(O);return this.selection.update(O),S}},{key:"updateContents",value:function(O){var S=this,L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.default.sources.API;return D.call(this,function(){return O=new y.default(O),S.editor.applyDelta(O,L)},L,!0)}}]),I}();function q(I,R){if((R=(0,s.default)(!0,{container:I,modules:{clipboard:!0,keyboard:!0,history:!0}},R)).theme&&R.theme!==T.DEFAULTS.theme){if(R.theme=T.import("themes/"+R.theme),null==R.theme)throw new Error("Invalid theme "+R.theme+". Did you register it?")}else R.theme=w.default;var O=(0,s.default)(!0,{},R.theme.DEFAULTS);[O,R].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(M){!0===F.modules[M]&&(F.modules[M]={})})});var L=Object.keys(O.modules).concat(Object.keys(R.modules)).reduce(function(F,M){var x=T.import("modules/"+M);return null==x?E.error("Cannot load "+M+" module. Are you sure you registered it?"):F[M]=x.DEFAULTS||{},F},{});return null!=R.modules&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,s.default)(!0,{},T.DEFAULTS,{modules:L},O,R),["bounds","container","scrollingContainer"].forEach(function(F){"string"==typeof R[F]&&(R[F]=document.querySelector(R[F]))}),R.modules=Object.keys(R.modules).reduce(function(F,M){return R.modules[M]&&(F[M]=R.modules[M]),F},{}),R}function D(I,R,O,S){if(this.options.strict&&!this.isEnabled()&&R===e.default.sources.USER)return new y.default;var L=null==O?null:this.getSelection(),F=this.editor.delta,M=I();if(null!=L&&(!0===O&&(O=L.index),null==S?L=Z(L,M,R):0!==S&&(L=Z(L,O,S,R)),this.setSelection(L,e.default.sources.SILENT)),M.length()>0){var x,U,j=[e.default.events.TEXT_CHANGE,M,F,R];(x=this.emitter).emit.apply(x,[e.default.events.EDITOR_CHANGE].concat(j)),R!==e.default.sources.SILENT&&(U=this.emitter).emit.apply(U,j)}return M}function C(I,R,O,S,L){var F={};return"number"==typeof I.index&&"number"==typeof I.length?"number"!=typeof R?(L=S,S=O,O=R,R=I.length,I=I.index):(R=I.length,I=I.index):"number"!=typeof R&&(L=S,S=O,O=R,R=0),"object"===(typeof O>"u"?"undefined":P(O))?(F=O,L=S):"string"==typeof O&&(null!=S?F[O]=S:L=O),[I,R,F,L=L||e.default.sources.API]}function Z(I,R,O,S){if(null==I)return null;var L=void 0,F=void 0;if(R instanceof y.default){var M=[I.index,I.index+I.length].map(function(H){return R.transformPosition(H,S!==e.default.sources.USER)}),x=N(M,2);L=x[0],F=x[1]}else{var j=[I.index,I.index+I.length].map(function(H){return H<R||H===R&&S===e.default.sources.USER?H:O>=0?H+O:Math.max(R,H+O)}),U=N(j,2);L=U[0],F=U[1]}return new i.Range(L,F-L)}T.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},T.events=e.default.events,T.sources=e.default.sources,T.version="1.3.7",T.imports={delta:y.default,parchment:r.default,"core/module":l.default,"core/theme":w.default},_.expandConfig=q,_.overload=C,_.default=T},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),N=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},m=o(v(7)),c=o(v(0));function o(a){return a&&a.__esModule?a:{default:a}}var l=function(a){function r(){return function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function e(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function u(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"formatAt",value:function(f,n,s,A){if(r.compare(this.statics.blotName,s)<0&&c.default.query(s,c.default.Scope.BLOT)){var g=this.isolate(f,n);A&&g.wrap(s,A)}else N(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,s,A)}},{key:"optimize",value:function(f){if(N(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(f,n){var s=r.order.indexOf(f),A=r.order.indexOf(n);return s>=0||A>=0?s-A:f===n?0:f<n?-1:1}}]),r}(c.default.Inline);l.allowedChildren=[l,c.default.Embed,m.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],_.default=l},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function k(t){return t&&t.__esModule?t:{default:t}}(v(0)).default.Text);_.default=o},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function i(f,n){for(var s=0;s<n.length;s++){var A=n[s];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,n,s){return n&&i(f.prototype,n),s&&i(f,s),f}}(),N=function i(f,n,s){null===f&&(f=Function.prototype);var A=Object.getOwnPropertyDescriptor(f,n);if(void 0===A){var g=Object.getPrototypeOf(f);return null===g?void 0:i(g,n,s)}if("value"in A)return A.value;var b=A.get;return void 0===b?void 0:b.call(s)},m=o(v(54));function o(i){return i&&i.__esModule?i:{default:i}}var l=(0,o(v(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),s=0;s<f;s++)n[s]=arguments[s];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){var g;A.__quill&&A.__quill.emitter&&(g=A.__quill.emitter).handleDOM.apply(g,n)})})});var r=function(i){function f(){!function t(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}(this,f);var n=function e(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?i:f}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",l.error),n}return function u(i,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}(f,i),P(f,[{key:"emit",value:function(){l.log.apply(l,arguments),N(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(s){for(var A=arguments.length,g=Array(A>1?A-1:0),b=1;b<A;b++)g[b-1]=arguments[b];(this.listeners[s.type]||[]).forEach(function(w){var p=w.node,h=w.handler;(s.target===p||p.contains(s.target))&&h.apply(void 0,[s].concat(g))})}},{key:"listenDOM",value:function(s,A,g){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push({node:A,handler:g})}}]),f}(m.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},_.default=r},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var N=function k(m){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function P(k,m){if(!(k instanceof m))throw new TypeError("Cannot call a class as a function")})(this,k),this.quill=m,this.options=y};N.DEFAULTS={},_.default=N},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=["error","warn","log","info"],N="warn";function k(y){if(P.indexOf(y)<=P.indexOf(N)){for(var c,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(c=console)[y].apply(c,t)}}function m(y){return P.reduce(function(c,o){return c[o]=k.bind(console,o,y),c},{})}k.level=m.level=function(y){N=y},_.default=m},function(B,_,v){var P=Array.prototype.slice,N=v(52),k=v(53),m=B.exports=function(t,e,u){return u||(u={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?u.strict?t===e:t==e:function o(t,e,u){var l,a;if(y(t)||y(e)||t.prototype!==e.prototype)return!1;if(k(t))return!!k(e)&&(t=P.call(t),e=P.call(e),m(t,e,u));if(c(t)){if(!c(e)||t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var r=N(t),i=N(e)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),l=r.length-1;l>=0;l--)if(r[l]!=i[l])return!1;for(l=r.length-1;l>=0;l--)if(!m(t[a=r[l]],e[a],u))return!1;return typeof t==typeof e}(t,e,u))};function y(t){return null==t}function c(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=v(1),N=function(){function k(m,y,c){void 0===c&&(c={}),this.attrName=m,this.keyName=y,this.scope=null!=c.scope?c.scope&P.Scope.LEVEL|P.Scope.TYPE&P.Scope.ATTRIBUTE:P.Scope.ATTRIBUTE,null!=c.whitelist&&(this.whitelist=c.whitelist)}return k.keys=function(m){return[].map.call(m.attributes,function(y){return y.name})},k.prototype.add=function(m,y){return!!this.canAdd(m,y)&&(m.setAttribute(this.keyName,y),!0)},k.prototype.canAdd=function(m,y){return null!=P.query(m,P.Scope.BLOT&(this.scope|P.Scope.TYPE))&&(null==this.whitelist||("string"==typeof y?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1))},k.prototype.remove=function(m){m.removeAttribute(this.keyName)},k.prototype.value=function(m){var y=m.getAttribute(this.keyName);return this.canAdd(m,y)&&y?y:""},k}();_.default=N},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.Code=void 0;var P=function(w,p){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return function b(w,p){var h=[],d=!0,E=!1,T=void 0;try{for(var D,q=w[Symbol.iterator]();!(d=(D=q.next()).done)&&(h.push(D.value),!p||h.length!==p);d=!0);}catch(C){E=!0,T=C}finally{try{!d&&q.return&&q.return()}finally{if(E)throw T}}return h}(w,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")},N=function(){function b(w,p){for(var h=0;h<p.length;h++){var d=p[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(w,d.key,d)}}return function(w,p,h){return p&&b(w.prototype,p),h&&b(w,h),w}}(),k=function b(w,p,h){null===w&&(w=Function.prototype);var d=Object.getOwnPropertyDescriptor(w,p);if(void 0===d){var E=Object.getPrototypeOf(w);return null===E?void 0:b(E,p,h)}if("value"in d)return d.value;var T=d.get;return void 0===T?void 0:T.call(h)},y=i(v(2)),o=i(v(0)),e=i(v(4)),l=i(v(6)),r=i(v(7));function i(b){return b&&b.__esModule?b:{default:b}}function f(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function n(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!=typeof w&&"function"!=typeof w?b:w}function s(b,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}var A=function(b){function w(){return f(this,w),n(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return s(w,b),w}(l.default);A.blotName="code",A.tagName="CODE";var g=function(b){function w(){return f(this,w),n(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return s(w,b),N(w,[{key:"delta",value:function(){var h=this,d=this.domNode.textContent;return d.endsWith("\n")&&(d=d.slice(0,-1)),d.split("\n").reduce(function(E,T){return E.insert(T).insert("\n",h.formats())},new y.default)}},{key:"format",value:function(h,d){if(h!==this.statics.blotName||!d){var E=this.descendant(r.default,this.length()-1),q=P(E,1)[0];q?.deleteAt(q.length()-1,1),k(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,h,d)}}},{key:"formatAt",value:function(h,d,E,T){if(0!==d&&null!=o.default.query(E,o.default.Scope.BLOCK)&&(E!==this.statics.blotName||T!==this.statics.formats(this.domNode))){var q=this.newlineIndex(h);if(!(q<0||q>=h+d)){var D=this.newlineIndex(h,!0)+1,C=q-D+1,Z=this.isolate(D,C),I=Z.next;Z.format(E,T),I instanceof w&&I.formatAt(0,h-D+d-C,E,T)}}}},{key:"insertAt",value:function(h,d,E){if(null==E){var T=this.descendant(r.default,h),q=P(T,2);q[0].insertAt(q[1],d)}}},{key:"length",value:function(){var h=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?h:h+1}},{key:"newlineIndex",value:function(h){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,h).lastIndexOf("\n");var E=this.domNode.textContent.slice(h).indexOf("\n");return E>-1?h+E:-1}},{key:"optimize",value:function(h){this.domNode.textContent.endsWith("\n")||this.appendChild(o.default.create("text","\n")),k(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,h);var d=this.next;null!=d&&d.prev===this&&d.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===d.statics.formats(d.domNode)&&(d.optimize(h),d.moveChildren(this),d.remove())}},{key:"replace",value:function(h){k(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,h),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(d){var E=o.default.find(d);null==E?d.parentNode.removeChild(d):E instanceof o.default.Embed?E.remove():E.unwrap()})}}],[{key:"create",value:function(h){var d=k(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,h);return d.setAttribute("spellcheck",!1),d}},{key:"formats",value:function(){return!0}}]),w}(e.default);g.blotName="code-block",g.tagName="PRE",g.TAB="  ",_.Code=A,_.default=g},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},N=function(R,O){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function I(R,O){var S=[],L=!0,F=!1,M=void 0;try{for(var j,x=R[Symbol.iterator]();!(L=(j=x.next()).done)&&(S.push(j.value),!O||S.length!==O);L=!0);}catch(U){F=!0,M=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw M}}return S}(R,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")},k=function(){function I(R,O){for(var S=0;S<O.length;S++){var L=O[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,O,S){return O&&I(R.prototype,O),S&&I(R,S),R}}(),y=d(v(2)),o=d(v(20)),e=d(v(0)),l=d(v(13)),r=d(v(24)),i=v(4),f=d(i),s=d(v(16)),g=d(v(21)),w=d(v(11)),h=d(v(3));function d(I){return I&&I.__esModule?I:{default:I}}var q=/^[ -~]*$/,D=function(){function I(R){(function T(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")})(this,I),this.scroll=R,this.delta=this.getDelta()}return k(I,[{key:"applyDelta",value:function(O){var S=this,L=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),O=function Z(I){return I.reduce(function(R,O){if(1===O.insert){var S=(0,g.default)(O.attributes);return delete S.image,R.insert({image:O.attributes.image},S)}if(null!=O.attributes&&(!0===O.attributes.list||!0===O.attributes.bullet)&&((O=(0,g.default)(O)).attributes.list?O.attributes.list="ordered":(O.attributes.list="bullet",delete O.attributes.bullet)),"string"==typeof O.insert){var L=O.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return R.insert(L,O.attributes)}return R.push(O)},new y.default)}(O),O.reduce(function(M,x){var j=x.retain||x.delete||x.insert.length||1,U=x.attributes||{};if(null!=x.insert){if("string"==typeof x.insert){var H=x.insert;H.endsWith("\n")&&L&&(L=!1,H=H.slice(0,-1)),M>=F&&!H.endsWith("\n")&&(L=!0),S.scroll.insertAt(M,H);var V=S.scroll.line(M),Y=N(V,2),X=Y[0],Q=Y[1],nt=(0,h.default)({},(0,i.bubbleFormats)(X));if(X instanceof f.default){var rt=X.descendant(e.default.Leaf,Q),at=N(rt,1);nt=(0,h.default)(nt,(0,i.bubbleFormats)(at[0]))}U=o.default.attributes.diff(nt,U)||{}}else if("object"===P(x.insert)){var z=Object.keys(x.insert)[0];if(null==z)return M;S.scroll.insertAt(M,z,x.insert[z])}F+=j}return Object.keys(U).forEach(function(K){S.scroll.formatAt(M,j,K,U[K])}),M+j},0),O.reduce(function(M,x){return"number"==typeof x.delete?(S.scroll.deleteAt(M,x.delete),M):M+(x.retain||x.insert.length||1)},0),this.scroll.batchEnd(),this.update(O)}},{key:"deleteText",value:function(O,S){return this.scroll.deleteAt(O,S),this.update((new y.default).retain(O).delete(S))}},{key:"formatLine",value:function(O,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(M){if(null==L.scroll.whitelist||L.scroll.whitelist[M]){var x=L.scroll.lines(O,Math.max(S,1)),j=S;x.forEach(function(U){var H=U.length();if(U instanceof l.default){var V=O-U.offset(L.scroll),Y=U.newlineIndex(V+j)-V+1;U.formatAt(V,Y,M,F[M])}else U.format(M,F[M]);j-=H})}}),this.scroll.optimize(),this.update((new y.default).retain(O).retain(S,(0,g.default)(F)))}},{key:"formatText",value:function(O,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(F).forEach(function(M){L.scroll.formatAt(O,S,M,F[M])}),this.update((new y.default).retain(O).retain(S,(0,g.default)(F)))}},{key:"getContents",value:function(O,S){return this.delta.slice(O,O+S)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(O,S){return O.concat(S.delta())},new y.default)}},{key:"getFormat",value:function(O){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,L=[],F=[];0===S?this.scroll.path(O).forEach(function(x){var U=N(x,1)[0];U instanceof f.default?L.push(U):U instanceof e.default.Leaf&&F.push(U)}):(L=this.scroll.lines(O,S),F=this.scroll.descendants(e.default.Leaf,O,S));var M=[L,F].map(function(x){if(0===x.length)return{};for(var j=(0,i.bubbleFormats)(x.shift());Object.keys(j).length>0;){var U=x.shift();if(null==U)return j;j=C((0,i.bubbleFormats)(U),j)}return j});return h.default.apply(h.default,M)}},{key:"getText",value:function(O,S){return this.getContents(O,S).filter(function(L){return"string"==typeof L.insert}).map(function(L){return L.insert}).join("")}},{key:"insertEmbed",value:function(O,S,L){return this.scroll.insertAt(O,S,L),this.update((new y.default).retain(O).insert(function E(I,R,O){return R in I?Object.defineProperty(I,R,{value:O,enumerable:!0,configurable:!0,writable:!0}):I[R]=O,I}({},S,L)))}},{key:"insertText",value:function(O,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return S=S.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(O,S),Object.keys(F).forEach(function(M){L.scroll.formatAt(O,S.length,M,F[M])}),this.update((new y.default).retain(O).insert(S,(0,g.default)(F)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var O=this.scroll.children.head;return!(O.statics.blotName!==f.default.blotName||O.children.length>1)&&O.children.head instanceof s.default}},{key:"removeFormat",value:function(O,S){var L=this.getText(O,S),F=this.scroll.line(O+S),M=N(F,2),x=M[0],j=M[1],U=0,H=new y.default;null!=x&&(U=x instanceof l.default?x.newlineIndex(j)-j+1:x.length()-j,H=x.delta().slice(j,j+U-1).insert("\n"));var Y=this.getContents(O,S+U).diff((new y.default).insert(L).concat(H)),X=(new y.default).retain(O).concat(Y);return this.applyDelta(X)}},{key:"update",value:function(O){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],L=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,F=this.delta;if(1===S.length&&"characterData"===S[0].type&&S[0].target.data.match(q)&&e.default.find(S[0].target)){var M=e.default.find(S[0].target),x=(0,i.bubbleFormats)(M),j=M.offset(this.scroll),U=S[0].oldValue.replace(r.default.CONTENTS,""),H=(new y.default).insert(U),V=(new y.default).insert(M.value());O=(new y.default).retain(j).concat(H.diff(V,L)).reduce(function(X,Q){return Q.insert?X.insert(Q.insert,x):X.push(Q)},new y.default),this.delta=F.compose(O)}else this.delta=this.getDelta(),(!O||!(0,w.default)(F.compose(O),this.delta))&&(O=F.diff(this.delta,L));return O}}]),I}();function C(I,R){return Object.keys(R).reduce(function(O,S){return null==I[S]||(R[S]===I[S]?O[S]=R[S]:Array.isArray(R[S])?R[S].indexOf(I[S])<0&&(O[S]=R[S].concat([I[S]])):O[S]=[R[S],I[S]]),O},{})}_.default=D},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.Range=void 0;var P=function(w,p){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return function b(w,p){var h=[],d=!0,E=!1,T=void 0;try{for(var D,q=w[Symbol.iterator]();!(d=(D=q.next()).done)&&(h.push(D.value),!p||h.length!==p);d=!0);}catch(C){E=!0,T=C}finally{try{!d&&q.return&&q.return()}finally{if(E)throw T}}return h}(w,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")},N=function(){function b(w,p){for(var h=0;h<p.length;h++){var d=p[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(w,d.key,d)}}return function(w,p,h){return p&&b(w.prototype,p),h&&b(w,h),w}}(),m=r(v(0)),c=r(v(21)),t=r(v(11)),u=r(v(8));function r(b){return b&&b.__esModule?b:{default:b}}function i(b){if(Array.isArray(b)){for(var w=0,p=Array(b.length);w<b.length;w++)p[w]=b[w];return p}return Array.from(b)}function f(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}var n=(0,r(v(10)).default)("quill:selection"),s=function b(w){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,b),this.index=w,this.length=p},A=function(){function b(w,p){var h=this;f(this,b),this.emitter=p,this.scroll=w,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=m.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){h.mouseDown||setTimeout(h.update.bind(h,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(d,E){d===u.default.events.TEXT_CHANGE&&E.length()>0&&h.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(h.hasFocus()){var d=h.getNativeRange();null!=d&&d.start.node!==h.cursor.textNode&&h.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(d.start.node,d.start.offset,d.end.node,d.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(d,E){if(E.range){var T=E.range;h.setNativeRange(T.startNode,T.startOffset,T.endNode,T.endOffset)}}),this.update(u.default.sources.SILENT)}return N(b,[{key:"handleComposition",value:function(){var p=this;this.root.addEventListener("compositionstart",function(){p.composing=!0}),this.root.addEventListener("compositionend",function(){if(p.composing=!1,p.cursor.parent){var h=p.cursor.restore();if(!h)return;setTimeout(function(){p.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var p=this;this.emitter.listenDOM("mousedown",document.body,function(){p.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){p.mouseDown=!1,p.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(p,h){if(null==this.scroll.whitelist||this.scroll.whitelist[p]){this.scroll.update();var d=this.getNativeRange();if(null!=d&&d.native.collapsed&&!m.default.query(p,m.default.Scope.BLOCK)){if(d.start.node!==this.cursor.textNode){var E=m.default.find(d.start.node,!1);if(null==E)return;if(E instanceof m.default.Leaf){var T=E.split(d.start.offset);E.parent.insertBefore(this.cursor,T)}else E.insertBefore(this.cursor,d.start.node);this.cursor.attach()}this.cursor.format(p,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(p){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,d=this.scroll.length();p=Math.min(p,d-1),h=Math.min(p+h,d-1)-p;var E=void 0,T=this.scroll.leaf(p),q=P(T,2),D=q[0],C=q[1];if(null==D)return null;var Z=D.position(C,!0),I=P(Z,2);E=I[0],C=I[1];var R=document.createRange();if(h>0){R.setStart(E,C);var O=this.scroll.leaf(p+h),S=P(O,2);if(null==(D=S[0]))return null;var L=D.position(C=S[1],!0),F=P(L,2);return R.setEnd(E=F[0],C=F[1]),R.getBoundingClientRect()}var M="left",x=void 0;return E instanceof Text?(C<E.data.length?(R.setStart(E,C),R.setEnd(E,C+1)):(R.setStart(E,C-1),R.setEnd(E,C),M="right"),x=R.getBoundingClientRect()):(x=D.domNode.getBoundingClientRect(),C>0&&(M="right")),{bottom:x.top+x.height,height:x.height,left:x[M],right:x[M],top:x.top,width:0}}},{key:"getNativeRange",value:function(){var p=document.getSelection();if(null==p||p.rangeCount<=0)return null;var h=p.getRangeAt(0);if(null==h)return null;var d=this.normalizeNative(h);return n.info("getNativeRange",d),d}},{key:"getRange",value:function(){var p=this.getNativeRange();return null==p?[null,null]:[this.normalizedToRange(p),p]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(p){var h=this,d=[[p.start.node,p.start.offset]];p.native.collapsed||d.push([p.end.node,p.end.offset]);var E=d.map(function(D){var C=P(D,2),Z=C[0],I=C[1],R=m.default.find(Z,!0),O=R.offset(h.scroll);return 0===I?O:R instanceof m.default.Container?O+R.length():O+R.index(Z,I)}),T=Math.min(Math.max.apply(Math,i(E)),this.scroll.length()-1),q=Math.min.apply(Math,[T].concat(i(E)));return new s(q,T-q)}},{key:"normalizeNative",value:function(p){if(!g(this.root,p.startContainer)||!p.collapsed&&!g(this.root,p.endContainer))return null;var h={start:{node:p.startContainer,offset:p.startOffset},end:{node:p.endContainer,offset:p.endOffset},native:p};return[h.start,h.end].forEach(function(d){for(var E=d.node,T=d.offset;!(E instanceof Text)&&E.childNodes.length>0;)if(E.childNodes.length>T)E=E.childNodes[T],T=0;else{if(E.childNodes.length!==T)break;T=(E=E.lastChild)instanceof Text?E.data.length:E.childNodes.length+1}d.node=E,d.offset=T}),h}},{key:"rangeToNative",value:function(p){var h=this,d=p.collapsed?[p.index]:[p.index,p.index+p.length],E=[],T=this.scroll.length();return d.forEach(function(q,D){q=Math.min(T-1,q);var Z=h.scroll.leaf(q),I=P(Z,2),O=I[1],S=I[0].position(O,0!==D),L=P(S,2);E.push(L[0],O=L[1])}),E.length<2&&(E=E.concat(E)),E}},{key:"scrollIntoView",value:function(p){var h=this.lastRange;if(null!=h){var d=this.getBounds(h.index,h.length);if(null!=d){var E=this.scroll.length()-1,T=this.scroll.line(Math.min(h.index,E)),D=P(T,1)[0],C=D;if(h.length>0){var Z=this.scroll.line(Math.min(h.index+h.length,E));C=P(Z,1)[0]}if(null!=D&&null!=C){var R=p.getBoundingClientRect();d.top<R.top?p.scrollTop-=R.top-d.top:d.bottom>R.bottom&&(p.scrollTop+=d.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(p,h){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p,E=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h,T=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(n.info("setNativeRange",p,h,d,E),null==p||null!=this.root.parentNode&&null!=p.parentNode&&null!=d.parentNode){var q=document.getSelection();if(null!=q)if(null!=p){this.hasFocus()||this.root.focus();var D=(this.getNativeRange()||{}).native;if(null==D||T||p!==D.startContainer||h!==D.startOffset||d!==D.endContainer||E!==D.endOffset){"BR"==p.tagName&&(h=[].indexOf.call(p.parentNode.childNodes,p),p=p.parentNode),"BR"==d.tagName&&(E=[].indexOf.call(d.parentNode.childNodes,d),d=d.parentNode);var C=document.createRange();C.setStart(p,h),C.setEnd(d,E),q.removeAllRanges(),q.addRange(C)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(p){var h=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof h&&(d=h,h=!1),n.info("setRange",p),null!=p){var E=this.rangeToNative(p);this.setNativeRange.apply(this,i(E).concat([h]))}else this.setNativeRange(null);this.update(d)}},{key:"update",value:function(){var p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,h=this.lastRange,d=this.getRange(),E=P(d,2),q=E[1];if(this.lastRange=E[0],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,t.default)(h,this.lastRange)){var D;!this.composing&&null!=q&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var Z,C=[u.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),p];(D=this.emitter).emit.apply(D,[u.default.events.EDITOR_CHANGE].concat(C)),p!==u.default.sources.SILENT&&(Z=this.emitter).emit.apply(Z,C)}}}]),b}();function g(b,w){return w instanceof Text&&(w=w.parentNode),b.contains(w)}_.Range=s,_.default=A},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),N=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)},e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"insertInto",value:function(r,i){0===r.children.length?N(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(v(0)).default.Embed);e.blotName="break",e.tagName="BR",_.default=e},function(B,_,v){"use strict";var o,P=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])},function(t,e){function u(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(_,"__esModule",{value:!0});var N=v(44),k=v(30),m=v(1),y=function(o){function t(e){var u=o.call(this,e)||this;return u.build(),u}return P(t,o),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new N.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=c(u);e.insertBefore(l,e.children.head||void 0)}catch(a){if(a instanceof m.ParchmentError)return;throw a}})},t.prototype.deleteAt=function(e,u){if(0===e&&u===this.length())return this.remove();this.children.forEachAt(e,u,function(l,a,r){l.deleteAt(a,r)})},t.prototype.descendant=function(e,u){var l=this.children.find(u),a=l[0],r=l[1];return null==e.blotName&&e(a)||null!=e.blotName&&a instanceof e?[a,r]:a instanceof t?a.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,u,l){void 0===u&&(u=0),void 0===l&&(l=Number.MAX_VALUE);var a=[],r=l;return this.children.forEachAt(u,l,function(i,f,n){(null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e)&&a.push(i),i instanceof t&&(a=a.concat(i.descendants(e,f,r))),r-=n}),a},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,u,l,a){this.children.forEachAt(e,u,function(r,i,f){r.formatAt(i,f,l,a)})},t.prototype.insertAt=function(e,u,l){var a=this.children.find(e),r=a[0];if(r)r.insertAt(a[1],u,l);else{var f=null==l?m.create("text",u):m.create(u,l);this.appendChild(f)}},t.prototype.insertBefore=function(e,u){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(l){return e instanceof l}))throw new m.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,u)},t.prototype.length=function(){return this.children.reduce(function(e,u){return e+u.length()},0)},t.prototype.moveChildren=function(e,u){this.children.forEach(function(l){e.insertBefore(l,u)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var u=m.create(this.statics.defaultChild);this.appendChild(u),u.optimize(e)}else this.remove()},t.prototype.path=function(e,u){void 0===u&&(u=!1);var l=this.children.find(e,u),a=l[0],r=l[1],i=[[this,e]];return a instanceof t?i.concat(a.path(r,u)):(null!=a&&i.push([a,r]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),o.prototype.replace.call(this,e)},t.prototype.split=function(e,u){if(void 0===u&&(u=!1),!u){if(0===e)return this;if(e===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(e,this.length(),function(a,r,i){a=a.split(r,u),l.appendChild(a)}),l},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,u){var l=this,a=[],r=[];e.forEach(function(i){i.target===l.domNode&&"childList"===i.type&&(a.push.apply(a,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(null!=i.parentNode&&"IFRAME"!==i.tagName&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=m.find(i);null!=f&&(null==f.domNode.parentNode||f.domNode.parentNode===l.domNode)&&f.detach()}}),a.filter(function(i){return i.parentNode==l.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;null!=i.nextSibling&&(f=m.find(i.nextSibling));var n=c(i);(n.next!=f||null==n.next)&&(null!=n.parent&&n.parent.removeChild(l),l.insertBefore(n,f||void 0))})},t}(k.default);function c(o){var t=m.find(o);if(null==t)try{t=m.create(o)}catch{t=m.create(m.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){t.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}_.default=y},function(B,_,v){"use strict";var o,P=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])},function(t,e){function u(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(_,"__esModule",{value:!0});var N=v(12),k=v(31),m=v(17),y=v(1),c=function(o){function t(e){var u=o.call(this,e)||this;return u.attributes=new k.default(u.domNode),u}return P(t,o),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,u){var l=y.query(e);l instanceof N.default?this.attributes.attribute(l,u):u&&null!=l&&(e!==this.statics.blotName||this.formats()[e]!==u)&&this.replaceWith(e,u)},t.prototype.formats=function(){var e=this.attributes.values(),u=this.statics.formats(this.domNode);return null!=u&&(e[this.statics.blotName]=u),e},t.prototype.replaceWith=function(e,u){var l=o.prototype.replaceWith.call(this,e,u);return this.attributes.copy(l),l},t.prototype.update=function(e,u){var l=this;o.prototype.update.call(this,e,u),e.some(function(a){return a.target===l.domNode&&"attributes"===a.type})&&this.attributes.build()},t.prototype.wrap=function(e,u){var l=o.prototype.wrap.call(this,e,u);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(m.default);_.default=c},function(B,_,v){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});Object.defineProperty(_,"__esModule",{value:!0});var N=v(30),k=v(1),m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.value=function(o){return!0},c.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},c.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},c.prototype.value=function(){var o;return(o={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},c.scope=k.Scope.INLINE_BLOT,c}(N.default);_.default=m},function(B,_,v){var P=v(11),N=v(3),k={attributes:{compose:function(y,c,o){"object"!=typeof y&&(y={}),"object"!=typeof c&&(c={});var t=N(!0,{},c);for(var e in o||(t=Object.keys(t).reduce(function(u,l){return null!=t[l]&&(u[l]=t[l]),u},{})),y)void 0!==y[e]&&void 0===c[e]&&(t[e]=y[e]);return Object.keys(t).length>0?t:void 0},diff:function(y,c){"object"!=typeof y&&(y={}),"object"!=typeof c&&(c={});var o=Object.keys(y).concat(Object.keys(c)).reduce(function(t,e){return P(y[e],c[e])||(t[e]=void 0===c[e]?null:c[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(y,c,o){if("object"!=typeof y)return c;if("object"==typeof c){if(!o)return c;var t=Object.keys(c).reduce(function(e,u){return void 0===y[u]&&(e[u]=c[u]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(y){return new m(y)},length:function(y){return"number"==typeof y.delete?y.delete:"number"==typeof y.retain?y.retain:"string"==typeof y.insert?y.insert.length:1}};function m(y){this.ops=y,this.index=0,this.offset=0}m.prototype.hasNext=function(){return this.peekLength()<1/0},m.prototype.next=function(y){y||(y=1/0);var c=this.ops[this.index];if(c){var o=this.offset,t=k.length(c);if(y>=t-o?(y=t-o,this.index+=1,this.offset=0):this.offset+=y,"number"==typeof c.delete)return{delete:y};var e={};return c.attributes&&(e.attributes=c.attributes),"number"==typeof c.retain?e.retain=y:e.insert="string"==typeof c.insert?c.insert.substr(o,y):c.insert,e}return{retain:1/0}},m.prototype.peek=function(){return this.ops[this.index]},m.prototype.peekLength=function(){return this.ops[this.index]?k.length(this.ops[this.index])-this.offset:1/0},m.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},m.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var y=this.offset,c=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=y,this.index=c,[o].concat(t)}return[]},B.exports=k},function(B,_){var v=function(){"use strict";function P(l,a){return null!=a&&l instanceof a}var N,k,m;try{N=Map}catch{N=function(){}}try{k=Set}catch{k=function(){}}try{m=Promise}catch{m=function(){}}function y(l,a,r,i,f){"object"==typeof a&&(r=a.depth,i=a.prototype,f=a.includeNonEnumerable,a=a.circular);var n=[],s=[],A=typeof Buffer<"u";return typeof a>"u"&&(a=!0),typeof r>"u"&&(r=1/0),function g(b,w){if(null===b)return null;if(0===w)return b;var p,h;if("object"!=typeof b)return b;if(P(b,N))p=new N;else if(P(b,k))p=new k;else if(P(b,m))p=new m(function(R,O){b.then(function(S){R(g(S,w-1))},function(S){O(g(S,w-1))})});else if(y.__isArray(b))p=[];else if(y.__isRegExp(b))p=new RegExp(b.source,u(b)),b.lastIndex&&(p.lastIndex=b.lastIndex);else if(y.__isDate(b))p=new Date(b.getTime());else{if(A&&Buffer.isBuffer(b))return p=Buffer.allocUnsafe?Buffer.allocUnsafe(b.length):new Buffer(b.length),b.copy(p),p;P(b,Error)?p=Object.create(b):typeof i>"u"?(h=Object.getPrototypeOf(b),p=Object.create(h)):(p=Object.create(i),h=i)}if(a){var d=n.indexOf(b);if(-1!=d)return s[d];n.push(b),s.push(p)}for(var E in P(b,N)&&b.forEach(function(R,O){var S=g(O,w-1),L=g(R,w-1);p.set(S,L)}),P(b,k)&&b.forEach(function(R){var O=g(R,w-1);p.add(O)}),b){var T;h&&(T=Object.getOwnPropertyDescriptor(h,E)),(!T||null!=T.set)&&(p[E]=g(b[E],w-1))}if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(b);for(E=0;E<q.length;E++){var D=q[E];(C=Object.getOwnPropertyDescriptor(b,D))&&!C.enumerable&&!f||(p[D]=g(b[D],w-1),C.enumerable||Object.defineProperty(p,D,{enumerable:!1}))}}if(f){var Z=Object.getOwnPropertyNames(b);for(E=0;E<Z.length;E++){var C,I=Z[E];(C=Object.getOwnPropertyDescriptor(b,I))&&C.enumerable||(p[I]=g(b[I],w-1),Object.defineProperty(p,I,{enumerable:!1}))}}return p}(l,r)}function c(l){return Object.prototype.toString.call(l)}function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return y.clonePrototype=function(a){if(null===a)return null;var r=function(){};return r.prototype=a,new r},y.__objToStr=c,y.__isDate=function o(l){return"object"==typeof l&&"[object Date]"===c(l)},y.__isArray=function t(l){return"object"==typeof l&&"[object Array]"===c(l)},y.__isRegExp=function e(l){return"object"==typeof l&&"[object RegExp]"===c(l)},y.__getRegExpFlags=u,y}();"object"==typeof B&&B.exports&&(B.exports=v)},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return function p(h,d){var E=[],T=!0,q=!1,D=void 0;try{for(var Z,C=h[Symbol.iterator]();!(T=(Z=C.next()).done)&&(E.push(Z.value),!d||E.length!==d);T=!0);}catch(I){q=!0,D=I}finally{try{!T&&C.return&&C.return()}finally{if(q)throw D}}return E}(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")},N=function(){function p(h,d){for(var E=0;E<d.length;E++){var T=d[E];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}return function(h,d,E){return d&&p(h.prototype,d),E&&p(h,E),h}}(),k=function p(h,d,E){null===h&&(h=Function.prototype);var T=Object.getOwnPropertyDescriptor(h,d);if(void 0===T){var q=Object.getPrototypeOf(h);return null===q?void 0:p(q,d,E)}if("value"in T)return T.value;var D=T.get;return void 0===D?void 0:D.call(E)},y=n(v(0)),o=n(v(8)),t=v(4),e=n(t),l=n(v(16)),r=n(v(13)),f=n(v(25));function n(p){return p&&p.__esModule?p:{default:p}}function b(p){return p instanceof e.default||p instanceof t.BlockEmbed}var w=function(p){function h(d,E){!function s(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}(this,h);var T=function A(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?p:h}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d));return T.emitter=E.emitter,Array.isArray(E.whitelist)&&(T.whitelist=E.whitelist.reduce(function(q,D){return q[D]=!0,q},{})),T.domNode.addEventListener("DOMNodeInserted",function(){}),T.optimize(),T.enable(),T}return function g(p,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}(h,p),N(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(E,T){var q=this.line(E),D=P(q,2),C=D[0],Z=D[1],I=this.line(E+T),O=P(I,1)[0];if(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,E,T),null!=O&&C!==O&&Z>0){if(C instanceof t.BlockEmbed||O instanceof t.BlockEmbed)return void this.optimize();if(C instanceof r.default){var S=C.newlineIndex(C.length(),!0);if(S>-1&&(C=C.split(S+1))===O)return void this.optimize()}else if(O instanceof r.default){var L=O.newlineIndex(0);L>-1&&O.split(L+1)}C.moveChildren(O,O.children.head instanceof l.default?null:O.children.head),C.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(E,T,q,D){null!=this.whitelist&&!this.whitelist[q]||(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,E,T,q,D),this.optimize())}},{key:"insertAt",value:function(E,T,q){if(null==q||null==this.whitelist||this.whitelist[T]){if(E>=this.length())if(null==q||null==y.default.query(T,y.default.Scope.BLOCK)){var D=y.default.create(this.statics.defaultChild);this.appendChild(D),null==q&&T.endsWith("\n")&&(T=T.slice(0,-1)),D.insertAt(0,T,q)}else{var C=y.default.create(T,q);this.appendChild(C)}else k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,E,T,q);this.optimize()}}},{key:"insertBefore",value:function(E,T){if(E.statics.scope===y.default.Scope.INLINE_BLOT){var q=y.default.create(this.statics.defaultChild);q.appendChild(E),E=q}k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,E,T)}},{key:"leaf",value:function(E){return this.path(E).pop()||[null,-1]}},{key:"line",value:function(E){return E===this.length()?this.line(E-1):this.descendant(b,E)}},{key:"lines",value:function(){return function D(C,Z,I){var R=[],O=I;return C.children.forEachAt(Z,I,function(S,L,F){b(S)?R.push(S):S instanceof y.default.Container&&(R=R.concat(D(S,L,O))),O-=F}),R}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,E,T),E.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,E,T))}},{key:"path",value:function(E){return k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,E).slice(1)}},{key:"update",value:function(E){if(!0!==this.batch){var T=o.default.sources.USER;"string"==typeof E&&(T=E),Array.isArray(E)||(E=this.observer.takeRecords()),E.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,T,E),k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,E.concat([])),E.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,T,E)}}}]),h}(y.default.Scroll);w.blotName="scroll",w.className="ql-editor",w.tagName="DIV",w.defaultChild="block",w.allowedChildren=[e.default,t.BlockEmbed,f.default],_.default=w},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SHORTKEY=_.default=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},N=function(j,U){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return function x(j,U){var H=[],V=!0,Y=!1,X=void 0;try{for(var nt,Q=j[Symbol.iterator]();!(V=(nt=Q.next()).done)&&(H.push(nt.value),!U||H.length!==U);V=!0);}catch(rt){Y=!0,X=rt}finally{try{!V&&Q.return&&Q.return()}finally{if(Y)throw X}}return H}(j,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")},k=function(){function x(j,U){for(var H=0;H<U.length;H++){var V=U[H];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(j,V.key,V)}}return function(j,U,H){return U&&x(j.prototype,U),H&&x(j,H),j}}(),y=p(v(21)),o=p(v(11)),e=p(v(3)),l=p(v(2)),r=p(v(20)),f=p(v(0)),s=p(v(5)),g=p(v(10)),w=p(v(9));function p(x){return x&&x.__esModule?x:{default:x}}function h(x,j,U){return j in x?Object.defineProperty(x,j,{value:U,enumerable:!0,configurable:!0,writable:!0}):x[j]=U,x}var q=(0,g.default)("quill:keyboard"),D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(x){function j(U,H){!function d(x,j){if(!(x instanceof j))throw new TypeError("Cannot call a class as a function")}(this,j);var V=function E(x,j){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!j||"object"!=typeof j&&"function"!=typeof j?x:j}(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,U,H));return V.bindings={},Object.keys(V.options.bindings).forEach(function(Y){"list autofill"===Y&&null!=U.scroll.whitelist&&!U.scroll.whitelist.list||V.options.bindings[Y]&&V.addBinding(V.options.bindings[Y])}),V.addBinding({key:j.keys.ENTER,shiftKey:null},S),V.addBinding({key:j.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0},I),V.addBinding({key:j.keys.DELETE},{collapsed:!0},R)):(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},I),V.addBinding({key:j.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),V.addBinding({key:j.keys.BACKSPACE},{collapsed:!1},O),V.addBinding({key:j.keys.DELETE},{collapsed:!1},O),V.addBinding({key:j.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},I),V.listen(),V}return function T(x,j){if("function"!=typeof j&&null!==j)throw new TypeError("Super expression must either be null or a function, not "+typeof j);x.prototype=Object.create(j&&j.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(x,j):x.__proto__=j)}(j,x),k(j,null,[{key:"match",value:function(H,V){return V=M(V),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(Y){return!!V[Y]!==H[Y]&&null!==V[Y]})&&V.key===(H.which||H.keyCode)}}]),k(j,[{key:"addBinding",value:function(H){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},X=M(H);if(null==X||null==X.key)return q.warn("Attempted to add invalid keyboard binding",X);"function"==typeof V&&(V={handler:V}),"function"==typeof Y&&(Y={handler:Y}),X=(0,e.default)(X,V,Y),this.bindings[X.key]=this.bindings[X.key]||[],this.bindings[X.key].push(X)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var X=(H.bindings[V.which||V.keyCode]||[]).filter(function(ot){return j.match(V,ot)});if(0!==X.length){var Q=H.quill.getSelection();if(null!=Q&&H.quill.hasFocus()){var nt=H.quill.getLine(Q.index),rt=N(nt,2),at=rt[0],lt=rt[1],z=H.quill.getLeaf(Q.index),K=N(z,2),$=K[0],G=K[1],W=0===Q.length?[$,G]:H.quill.getLeaf(Q.index+Q.length),J=N(W,2),tt=J[0],et=J[1],ut=$ instanceof f.default.Text?$.value().slice(0,G):"",ft=tt instanceof f.default.Text?tt.value().slice(et):"",it={collapsed:0===Q.length,empty:0===Q.length&&at.length()<=1,format:H.quill.getFormat(Q),offset:lt,prefix:ut,suffix:ft};X.some(function(ot){if(null!=ot.collapsed&&ot.collapsed!==it.collapsed||null!=ot.empty&&ot.empty!==it.empty||null!=ot.offset&&ot.offset!==it.offset)return!1;if(Array.isArray(ot.format)){if(ot.format.every(function(st){return null==it.format[st]}))return!1}else if("object"===P(ot.format)&&!Object.keys(ot.format).every(function(st){return!0===ot.format[st]?null!=it.format[st]:!1===ot.format[st]?null==it.format[st]:(0,o.default)(ot.format[st],it.format[st])}))return!1;return!(null!=ot.prefix&&!ot.prefix.test(it.prefix)||null!=ot.suffix&&!ot.suffix.test(it.suffix))&&!0!==ot.handler.call(H,Q,it)})&&V.preventDefault()}}}})}}]),j}(w.default);function Z(x,j){var U;return h(U={key:x,shiftKey:j,altKey:null},x===C.keys.LEFT?"prefix":"suffix",/^$/),h(U,"handler",function(Y){var X=Y.index;x===C.keys.RIGHT&&(X+=Y.length+1);var Q=this.quill.getLeaf(X);return!(N(Q,1)[0]instanceof f.default.Embed&&(x===C.keys.LEFT?j?this.quill.setSelection(Y.index-1,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index-1,s.default.sources.USER):j?this.quill.setSelection(Y.index,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index+Y.length+1,s.default.sources.USER),1))}),U}function I(x,j){if(!(0===x.index||this.quill.getLength()<=1)){var U=this.quill.getLine(x.index),V=N(U,1)[0],Y={};if(0===j.offset){var X=this.quill.getLine(x.index-1),nt=N(X,1)[0];if(null!=nt&&nt.length()>1){var rt=V.formats(),at=this.quill.getFormat(x.index-1,1);Y=r.default.attributes.diff(rt,at)||{}}}var lt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(j.prefix)?2:1;this.quill.deleteText(x.index-lt,lt,s.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(x.index-lt,lt,Y,s.default.sources.USER),this.quill.focus()}}function R(x,j){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(j.suffix)?2:1;if(!(x.index>=this.quill.getLength()-U)){var H={},V=0,Y=this.quill.getLine(x.index),Q=N(Y,1)[0];if(j.offset>=Q.length()-1){var nt=this.quill.getLine(x.index+1),at=N(nt,1)[0];if(at){var lt=Q.formats(),z=this.quill.getFormat(x.index,1);H=r.default.attributes.diff(lt,z)||{},V=at.length()}}this.quill.deleteText(x.index,U,s.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(x.index+V-1,U,H,s.default.sources.USER)}}function O(x){var j=this.quill.getLines(x),U={};if(j.length>1){var H=j[0].formats(),V=j[j.length-1].formats();U=r.default.attributes.diff(V,H)||{}}this.quill.deleteText(x,s.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(x.index,1,U,s.default.sources.USER),this.quill.setSelection(x.index,s.default.sources.SILENT),this.quill.focus()}function S(x,j){var U=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var H=Object.keys(j.format).reduce(function(V,Y){return f.default.query(Y,f.default.Scope.BLOCK)&&!Array.isArray(j.format[Y])&&(V[Y]=j.format[Y]),V},{});this.quill.insertText(x.index,"\n",H,s.default.sources.USER),this.quill.setSelection(x.index+1,s.default.sources.SILENT),this.quill.focus(),Object.keys(j.format).forEach(function(V){null==H[V]&&(Array.isArray(j.format[V])||"link"!==V&&U.quill.format(V,j.format[V],s.default.sources.USER))})}function L(x){return{key:C.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(U){var H=f.default.query("code-block"),V=U.index,Y=U.length,X=this.quill.scroll.descendant(H,V),Q=N(X,2),nt=Q[0],rt=Q[1];if(null!=nt){var at=this.quill.getIndex(nt),lt=nt.newlineIndex(rt,!0)+1,z=nt.newlineIndex(at+rt+Y),K=nt.domNode.textContent.slice(lt,z).split("\n");rt=0,K.forEach(function($,G){x?(nt.insertAt(lt+rt,H.TAB),rt+=H.TAB.length,0===G?V+=H.TAB.length:Y+=H.TAB.length):$.startsWith(H.TAB)&&(nt.deleteAt(lt+rt,H.TAB.length),rt-=H.TAB.length,0===G?V-=H.TAB.length:Y-=H.TAB.length),rt+=$.length+1}),this.quill.update(s.default.sources.USER),this.quill.setSelection(V,Y,s.default.sources.SILENT)}}}}function F(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],s.default.sources.USER)}}}function M(x){if("string"==typeof x||"number"==typeof x)return M({key:x});if("object"===(typeof x>"u"?"undefined":P(x))&&(x=(0,y.default)(x,!1)),"string"==typeof x.key)if(null!=C.keys[x.key.toUpperCase()])x.key=C.keys[x.key.toUpperCase()];else{if(1!==x.key.length)return null;x.key=x.key.toUpperCase().charCodeAt(0)}return x.shortKey&&(x[D]=x.shortKey,delete x.shortKey),x}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&0!==U.offset)return!0;this.quill.format("indent","+1",s.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&0!==U.offset)return!0;this.quill.format("indent","-1",s.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(j,U){null!=U.format.indent?this.quill.format("indent","-1",s.default.sources.USER):null!=U.format.list&&this.quill.format("list",!1,s.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(j){this.quill.deleteText(j.index-1,1,s.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(j){this.quill.history.cutoff();var U=(new l.default).retain(j.index).delete(j.length).insert("\t");this.quill.updateContents(U,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index+1,s.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(j,U){this.quill.format("list",!1,s.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,s.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(j){var U=this.quill.getLine(j.index),H=N(U,2),V=H[0],Y=H[1],X=(0,e.default)({},V.formats(),{list:"checked"}),Q=(new l.default).retain(j.index).insert("\n",X).retain(V.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(j,U){var H=this.quill.getLine(j.index),V=N(H,2),Y=V[0],X=V[1],Q=(new l.default).retain(j.index).insert("\n",U.format).retain(Y.length()-X-1).retain(1,{header:null});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(j,U){var H=U.prefix.length,V=this.quill.getLine(j.index),Y=N(V,2),X=Y[0],Q=Y[1];if(Q>H)return!0;var nt=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":nt="unchecked";break;case"[x]":nt="checked";break;case"-":case"*":nt="bullet";break;default:nt="ordered"}this.quill.insertText(j.index," ",s.default.sources.USER),this.quill.history.cutoff();var rt=(new l.default).retain(j.index-Q).delete(H+1).retain(X.length()-2-Q).retain(1,{list:nt});this.quill.updateContents(rt,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index-H,s.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(j){var U=this.quill.getLine(j.index),H=N(U,2),V=H[0],Y=H[1],X=(new l.default).retain(j.index+V.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(X,s.default.sources.USER)}},"embed left":Z(C.keys.LEFT,!1),"embed left shift":Z(C.keys.LEFT,!0),"embed right":Z(C.keys.RIGHT,!1),"embed right shift":Z(C.keys.RIGHT,!0)}},_.default=C,_.SHORTKEY=D},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var N=function r(i,f,n){null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(void 0===s){var A=Object.getPrototypeOf(i);return null===A?void 0:r(A,f,n)}if("value"in s)return s.value;var g=s.get;return void 0===g?void 0:g.call(n)},k=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),y=t(v(0)),o=t(v(7));function t(r){return r&&r.__esModule?r:{default:r}}var a=function(r){function i(f,n){!function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i);var s=function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?r:i}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return s.selection=n,s.textNode=document.createTextNode(i.CONTENTS),s.domNode.appendChild(s.textNode),s._length=0,s}return function l(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}(i,r),k(i,null,[{key:"value",value:function(){}}]),k(i,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(n,s){if(0!==this._length)return N(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,s);for(var A=this,g=0;null!=A&&A.statics.scope!==y.default.Scope.BLOCK_BLOT;)g+=A.offset(A.parent),A=A.parent;null!=A&&(this._length=i.CONTENTS.length,A.optimize(),A.formatAt(g,i.CONTENTS.length,n,s),this._length=0)}},{key:"index",value:function(n,s){return n===this.textNode?0:N(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){N(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var n=this.textNode,s=this.selection.getNativeRange(),A=void 0,g=void 0,b=void 0;if(null!=s&&s.start.node===n&&s.end.node===n){var w=[n,s.start.offset,s.end.offset];A=w[0],g=w[1],b=w[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var p=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(A=this.next.domNode,this.next.insertAt(0,p),this.textNode.data=i.CONTENTS):(this.textNode.data=p,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=g){var d=function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return function r(i,f){var n=[],s=!0,A=!1,g=void 0;try{for(var w,b=i[Symbol.iterator]();!(s=(w=b.next()).done)&&(n.push(w.value),!f||n.length!==f);s=!0);}catch(p){A=!0,g=p}finally{try{!s&&b.return&&b.return()}finally{if(A)throw g}}return n}(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([g,b].map(function(E){return Math.max(0,Math.min(A.data.length,E-1))}),2);return{startNode:A,startOffset:g=d[0],endNode:A,endOffset:b=d[1]}}}}},{key:"update",value:function(n,s){var A=this;if(n.some(function(b){return"characterData"===b.type&&b.target===A.textNode})){var g=this.restore();g&&(s.range=g)}}},{key:"value",value:function(){return""}}]),i}(y.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\ufeff",_.default=a},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var N=y(v(0)),k=v(4),m=y(k);function y(u){return u&&u.__esModule?u:{default:u}}var e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),l}(N.default.Container);e.allowedChildren=[m.default,k.BlockEmbed,e],_.default=e},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ColorStyle=_.ColorClass=_.ColorAttributor=void 0;var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),N=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},m=function y(a){return a&&a.__esModule?a:{default:a}}(v(0)),e=function(a){function r(){return function c(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function o(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function t(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"value",value:function(f){var n=N(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(s){return("00"+parseInt(s).toString(16)).slice(-2)}).join(""):n}}]),r}(m.default.Attributor.Style),u=new m.default.Attributor.Class("color","ql-color",{scope:m.default.Scope.INLINE}),l=new e("color","color",{scope:m.default.Scope.INLINE});_.ColorAttributor=e,_.ColorClass=u,_.ColorStyle=l},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.sanitize=_.default=void 0;var P=function(){function l(a,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),N=function l(a,r,i){null===a&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(void 0===f){var n=Object.getPrototypeOf(a);return null===n?void 0:l(n,r,i)}if("value"in f)return f.value;var s=f.get;return void 0===s?void 0:s.call(i)},e=function(l){function a(){return function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a),function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?l:a}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return function t(l,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}(a,l),P(a,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return N(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=N(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),a}(function y(l){return l&&l.__esModule?l:{default:l}}(v(6)).default);function u(l,a){var r=document.createElement("a");r.href=l;var i=r.href.slice(0,r.href.indexOf(":"));return a.indexOf(i)>-1}e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"],_.default=e,_.sanitize=u},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},N=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),m=o(v(23)),c=o(v(107));function o(a){return a&&a.__esModule?a:{default:a}}var e=0;function u(a,r){a.setAttribute(r,"true"!==a.getAttribute(r))}var l=function(){function a(r){var i=this;(function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")})(this,a),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case m.default.keys.ENTER:i.togglePicker();break;case m.default.keys.ESCAPE:i.escape(),f.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return N(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(s){switch(s.keyCode){case m.default.keys.ENTER:f.selectItem(n,!0),s.preventDefault();break;case m.default.keys.ESCAPE:f.escape(),s.preventDefault()}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=c.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var s=i.buildItem(n);f.appendChild(s),!0===n.selected&&i.selectItem(s)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var f=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(i!==n&&(n?.classList.remove("ql-selected"),null!=i&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":P(Event))){var s=document.createEvent("Event");s.initEvent("change",!0,!0),this.select.dispatchEvent(s)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=null!=i&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();_.default=l},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var N=q(v(0)),m=q(v(5)),y=v(4),c=q(y),t=q(v(16)),u=q(v(25)),a=q(v(24)),i=q(v(35)),n=q(v(6)),A=q(v(22)),b=q(v(7)),p=q(v(55)),d=q(v(42)),T=q(v(23));function q(D){return D&&D.__esModule?D:{default:D}}m.default.register({"blots/block":c.default,"blots/block/embed":y.BlockEmbed,"blots/break":t.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":b.default,"modules/clipboard":p.default,"modules/history":d.default,"modules/keyboard":T.default}),N.default.register(c.default,t.default,a.default,n.default,A.default,b.default),_.default=m.default},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=v(1),N=function(){function k(m){this.domNode=m,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(k.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),k.create=function(m){if(null==this.tagName)throw new P.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?("string"==typeof m&&(m=m.toUpperCase(),parseInt(m).toString()===m&&(m=parseInt(m))),y="number"==typeof m?document.createElement(this.tagName[m-1]):this.tagName.indexOf(m)>-1?document.createElement(m):document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},k.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},k.prototype.clone=function(){var m=this.domNode.cloneNode(!1);return P.create(m)},k.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},k.prototype.deleteAt=function(m,y){this.isolate(m,y).remove()},k.prototype.formatAt=function(m,y,c,o){var t=this.isolate(m,y);if(null!=P.query(c,P.Scope.BLOT)&&o)t.wrap(c,o);else if(null!=P.query(c,P.Scope.ATTRIBUTE)){var e=P.create(this.statics.scope);t.wrap(e),e.format(c,o)}},k.prototype.insertAt=function(m,y,c){var o=null==c?P.create("text",y):P.create(y,c),t=this.split(m);this.parent.insertBefore(o,t)},k.prototype.insertInto=function(m,y){void 0===y&&(y=null),null!=this.parent&&this.parent.children.remove(this);var c=null;m.children.insertBefore(this,y),null!=y&&(c=y.domNode),(this.domNode.parentNode!=m.domNode||this.domNode.nextSibling!=c)&&m.domNode.insertBefore(this.domNode,c),this.parent=m,this.attach()},k.prototype.isolate=function(m,y){var c=this.split(m);return c.split(y),c},k.prototype.length=function(){return 1},k.prototype.offset=function(m){return void 0===m&&(m=this.parent),null==this.parent||this==m?0:this.parent.children.offset(this)+this.parent.offset(m)},k.prototype.optimize=function(m){null!=this.domNode[P.DATA_KEY]&&delete this.domNode[P.DATA_KEY].mutations},k.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},k.prototype.replace=function(m){null!=m.parent&&(m.parent.insertBefore(this,m.next),m.remove())},k.prototype.replaceWith=function(m,y){var c="string"==typeof m?P.create(m,y):m;return c.replace(this),c},k.prototype.split=function(m,y){return 0===m?this:this.next},k.prototype.update=function(m,y){},k.prototype.wrap=function(m,y){var c="string"==typeof m?P.create(m,y):m;return null!=this.parent&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},k.blotName="abstract",k}();_.default=N},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=v(12),N=v(32),k=v(33),m=v(1),y=function(){function c(o){this.attributes={},this.domNode=o,this.build()}return c.prototype.attribute=function(o,t){t?o.add(this.domNode,t)&&(null!=o.value(this.domNode)?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},c.prototype.build=function(){var o=this;this.attributes={};var t=P.default.keys(this.domNode),e=N.default.keys(this.domNode),u=k.default.keys(this.domNode);t.concat(e).concat(u).forEach(function(l){var a=m.query(l,m.Scope.ATTRIBUTE);a instanceof P.default&&(o.attributes[a.attrName]=a)})},c.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var u=t.attributes[e].value(t.domNode);o.format(e,u)})},c.prototype.move=function(o){var t=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},c.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=o.attributes[e].value(o.domNode),t},{})},c}();_.default=y},function(B,_,v){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});function k(y,c){return(y.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(c+"-")})}Object.defineProperty(_,"__esModule",{value:!0});var m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},c.prototype.add=function(o,t){return!!this.canAdd(o,t)&&(this.remove(o),o.classList.add(this.keyName+"-"+t),!0)},c.prototype.remove=function(o){k(o,this.keyName).forEach(function(e){o.classList.remove(e)}),0===o.classList.length&&o.removeAttribute("class")},c.prototype.value=function(o){var e=(k(o,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},c}(v(12).default);_.default=m},function(B,_,v){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});function k(y){var c=y.split("-"),o=c.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return c[0]+o}Object.defineProperty(_,"__esModule",{value:!0});var m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},c.prototype.add=function(o,t){return!!this.canAdd(o,t)&&(o.style[k(this.keyName)]=t,!0)},c.prototype.remove=function(o){o.style[k(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},c.prototype.value=function(o){var t=o.style[k(this.keyName)];return this.canAdd(o,t)?t:""},c}(v(12).default);_.default=m},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function m(y,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,c,o){return c&&m(y.prototype,c),o&&m(y,o),y}}(),k=function(){function m(y,c){(function N(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,m),this.quill=y,this.options=c,this.modules={}}return P(m,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(o){null==c.modules[o]&&c.addModule(o)})}},{key:"addModule",value:function(c){var o=this.quill.constructor.import("modules/"+c);return this.modules[c]=new o(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),m}();k.DEFAULTS={modules:{}},k.themes={default:k},_.default=k},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),N=function r(i,f,n){null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(void 0===s){var A=Object.getPrototypeOf(i);return null===A?void 0:r(A,f,n)}if("value"in s)return s.value;var g=s.get;return void 0===g?void 0:g.call(n)},m=o(v(0)),c=o(v(7));function o(r){return r&&r.__esModule?r:{default:r}}var l="\ufeff",a=function(r){function i(f){!function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i);var n=function e(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?r:i}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(s){n.contentNode.appendChild(s)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function u(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}(i,r),P(i,[{key:"index",value:function(n,s){return n===this.leftGuard?0:n===this.rightGuard?1:N(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"restore",value:function(n){var s=void 0,A=void 0,g=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var b=this.prev.length();this.prev.insertAt(b,g),s={startNode:this.prev.domNode,startOffset:b+g.length}}else A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this),s={startNode:A,startOffset:g.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,g),s={startNode:this.next.domNode,startOffset:g.length}):(A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this.next),s={startNode:A,startOffset:g.length}));return n.data=l,s}},{key:"update",value:function(n,s){var A=this;n.forEach(function(g){if("characterData"===g.type&&(g.target===A.leftGuard||g.target===A.rightGuard)){var b=A.restore(g.target);b&&(s.range=b)}})}}]),i}(m.default.Embed);_.default=a},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AlignStyle=_.AlignClass=_.AlignAttribute=void 0;var N=function k(t){return t&&t.__esModule?t:{default:t}}(v(0)),m={scope:N.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new N.default.Attributor.Attribute("align","align",m),c=new N.default.Attributor.Class("align","ql-align",m),o=new N.default.Attributor.Style("align","text-align",m);_.AlignAttribute=y,_.AlignClass=c,_.AlignStyle=o},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.BackgroundStyle=_.BackgroundClass=void 0;var N=function m(o){return o&&o.__esModule?o:{default:o}}(v(0)),k=v(26),y=new N.default.Attributor.Class("background","ql-bg",{scope:N.default.Scope.INLINE}),c=new k.ColorAttributor("background","background-color",{scope:N.default.Scope.INLINE});_.BackgroundClass=y,_.BackgroundStyle=c},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.DirectionStyle=_.DirectionClass=_.DirectionAttribute=void 0;var N=function k(t){return t&&t.__esModule?t:{default:t}}(v(0)),m={scope:N.default.Scope.BLOCK,whitelist:["rtl"]},y=new N.default.Attributor.Attribute("direction","dir",m),c=new N.default.Attributor.Class("direction","ql-direction",m),o=new N.default.Attributor.Style("direction","direction",m);_.DirectionAttribute=y,_.DirectionClass=c,_.DirectionStyle=o},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.FontClass=_.FontStyle=void 0;var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),N=function r(i,f,n){null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(void 0===s){var A=Object.getPrototypeOf(i);return null===A?void 0:r(A,f,n)}if("value"in s)return s.value;var g=s.get;return void 0===g?void 0:g.call(n)},m=function y(r){return r&&r.__esModule?r:{default:r}}(v(0)),e={scope:m.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new m.default.Attributor.Class("font","ql-font",e),l=function(r){function i(){return function c(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i),function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?r:i}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function t(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}(i,r),P(i,[{key:"value",value:function(n){return N(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(m.default.Attributor.Style),a=new l("font","font-family",e);_.FontStyle=a,_.FontClass=u},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SizeStyle=_.SizeClass=void 0;var N=function k(c){return c&&c.__esModule?c:{default:c}}(v(0)),m=new N.default.Attributor.Class("size","ql-size",{scope:N.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new N.default.Attributor.Style("size","font-size",{scope:N.default.Scope.INLINE,whitelist:["10px","18px","32px"]});_.SizeClass=m,_.SizeStyle=y},function(B,_,v){"use strict";B.exports={align:{"":v(76),center:v(77),right:v(78),justify:v(79)},background:v(80),blockquote:v(81),bold:v(82),clean:v(83),code:v(58),"code-block":v(58),color:v(84),direction:{"":v(85),rtl:v(86)},float:{center:v(87),full:v(88),left:v(89),right:v(90)},formula:v(91),header:{1:v(92),2:v(93)},italic:v(94),image:v(95),indent:{"+1":v(96),"-1":v(97)},link:v(98),list:{ordered:v(99),bullet:v(100),check:v(101)},script:{sub:v(102),super:v(103)},strike:v(104),underline:v(105),video:v(106)}},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.getLastChangeIndex=_.default=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),k=t(v(0)),y=t(v(5));function t(f){return f&&f.__esModule?f:{default:f}}var a=function(f){function n(s,A){!function e(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n);var g=function u(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?f:n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,s,A));return g.lastRecorded=0,g.ignoreChange=!1,g.clear(),g.quill.on(y.default.events.EDITOR_CHANGE,function(b,w,p,h){b!==y.default.events.TEXT_CHANGE||g.ignoreChange||(g.options.userOnly&&h!==y.default.sources.USER?g.transform(w):g.record(w,p))}),g.quill.keyboard.addBinding({key:"Z",shortKey:!0},g.undo.bind(g)),g.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},g.redo.bind(g)),/Win/i.test(navigator.platform)&&g.quill.keyboard.addBinding({key:"Y",shortKey:!0},g.redo.bind(g)),g}return function l(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}(n,f),P(n,[{key:"change",value:function(A,g){if(0!==this.stack[A].length){var b=this.stack[A].pop();this.stack[g].push(b),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(b[A],y.default.sources.USER),this.ignoreChange=!1;var w=i(b[A]);this.quill.setSelection(w)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,g){if(0!==A.ops.length){this.stack.redo=[];var b=this.quill.getContents().diff(g),w=Date.now();if(this.lastRecorded+this.options.delay>w&&this.stack.undo.length>0){var p=this.stack.undo.pop();b=b.compose(p.undo),A=p.redo.compose(A)}else this.lastRecorded=w;this.stack.undo.push({redo:A,undo:b}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)}),this.stack.redo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(t(v(9)).default);function i(f){var n=f.reduce(function(A,g){return A+(g.delete||0)},0),s=f.length()-n;return function r(f){var n=f.ops[f.ops.length-1];return null!=n&&(null!=n.insert?"string"==typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes&&Object.keys(n.attributes).some(function(s){return null!=k.default.query(s,k.default.Scope.BLOCK)}))}(f)&&(s-=1),s}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},_.default=a,_.getLastChangeIndex=i},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BaseTooltip=void 0;var P=function(){function S(L,F){for(var M=0;M<F.length;M++){var x=F[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(L,x.key,x)}}return function(L,F,M){return F&&S(L.prototype,F),M&&S(L,M),L}}(),N=function S(L,F,M){null===L&&(L=Function.prototype);var x=Object.getOwnPropertyDescriptor(L,F);if(void 0===x){var j=Object.getPrototypeOf(L);return null===j?void 0:S(j,F,M)}if("value"in x)return x.value;var U=x.get;return void 0===U?void 0:U.call(M)},m=w(v(3)),c=w(v(2)),t=w(v(8)),u=w(v(23)),a=w(v(34)),i=w(v(59)),n=w(v(60)),A=w(v(28)),b=w(v(61));function w(S){return S&&S.__esModule?S:{default:S}}function p(S,L){if(!(S instanceof L))throw new TypeError("Cannot call a class as a function")}function h(S,L){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!L||"object"!=typeof L&&"function"!=typeof L?S:L}function d(S,L){if("function"!=typeof L&&null!==L)throw new TypeError("Super expression must either be null or a function, not "+typeof L);S.prototype=Object.create(L&&L.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(S,L):S.__proto__=L)}var E=[!1,"center","right","justify"],T=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],q=[!1,"serif","monospace"],D=["1","2","3",!1],C=["small",!1,"large","huge"],Z=function(S){function L(F,M){p(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M));return F.emitter.listenDOM("click",document.body,function U(H){if(!document.body.contains(F.root))return document.body.removeEventListener("click",U);null!=x.tooltip&&!x.tooltip.root.contains(H.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),null!=x.pickers&&x.pickers.forEach(function(V){V.container.contains(H.target)||V.close()})}),x}return d(L,S),P(L,[{key:"addModule",value:function(M){var x=N(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"addModule",this).call(this,M);return"toolbar"===M&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(M,x){M.forEach(function(j){(j.getAttribute("class")||"").split(/\s+/).forEach(function(H){if(H.startsWith("ql-")&&(H=H.slice(3),null!=x[H]))if("direction"===H)j.innerHTML=x[H][""]+x[H].rtl;else if("string"==typeof x[H])j.innerHTML=x[H];else{var V=j.value||"";null!=V&&x[H][V]&&(j.innerHTML=x[H][V])}})})}},{key:"buildPickers",value:function(M,x){var j=this;this.pickers=M.map(function(H){if(H.classList.contains("ql-align"))return null==H.querySelector("option")&&O(H,E),new n.default(H,x.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var V=H.classList.contains("ql-background")?"background":"color";return null==H.querySelector("option")&&O(H,T,"background"===V?"#ffffff":"#000000"),new i.default(H,x[V])}return null==H.querySelector("option")&&(H.classList.contains("ql-font")?O(H,q):H.classList.contains("ql-header")?O(H,D):H.classList.contains("ql-size")&&O(H,C)),new A.default(H)}),this.quill.on(t.default.events.EDITOR_CHANGE,function(){j.pickers.forEach(function(V){V.update()})})}}]),L}(a.default);Z.DEFAULTS=(0,m.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var L=this,F=this.container.querySelector("input.ql-image[type=file]");null==F&&((F=document.createElement("input")).setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(null!=F.files&&null!=F.files[0]){var M=new FileReader;M.onload=function(x){var j=L.quill.getSelection(!0);L.quill.updateContents((new c.default).retain(j.index).delete(j.length).insert({image:x.target.result}),t.default.sources.USER),L.quill.setSelection(j.index+1,t.default.sources.SILENT),F.value=""},M.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(S){function L(F,M){p(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}return d(L,S),P(L,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(x){u.default.match(x,"enter")?(M.save(),x.preventDefault()):u.default.match(x,"escape")&&(M.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=x?this.textbox.value=x:M!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var x=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",M,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,t.default.sources.USER)),this.quill.root.scrollTop=x;break;case"video":M=function R(S){var L=S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=S.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":S}(M);case"formula":if(!M)break;var j=this.quill.getSelection(!0);if(null!=j){var U=j.index+j.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),M,t.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(U+1," ",t.default.sources.USER),this.quill.setSelection(U+2,t.default.sources.USER)}}this.textbox.value="",this.hide()}}]),L}(b.default);function O(S,L){var F=arguments.length>2&&void 0!==arguments[2]&&arguments[2];L.forEach(function(M){var x=document.createElement("option");M===F?x.setAttribute("selected","selected"):x.setAttribute("value",M),S.appendChild(x)})}_.BaseTooltip=I,_.default=Z},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function N(){this.head=this.tail=null,this.length=0}return N.prototype.append=function(){for(var k=[],m=0;m<arguments.length;m++)k[m]=arguments[m];this.insertBefore(k[0],null),k.length>1&&this.append.apply(this,k.slice(1))},N.prototype.contains=function(k){for(var m,y=this.iterator();m=y();)if(m===k)return!0;return!1},N.prototype.insertBefore=function(k,m){k&&(k.next=m,null!=m?(k.prev=m.prev,null!=m.prev&&(m.prev.next=k),m.prev=k,m===this.head&&(this.head=k)):null!=this.tail?(this.tail.next=k,k.prev=this.tail,this.tail=k):(k.prev=null,this.head=this.tail=k),this.length+=1)},N.prototype.offset=function(k){for(var m=0,y=this.head;null!=y;){if(y===k)return m;m+=y.length(),y=y.next}return-1},N.prototype.remove=function(k){this.contains(k)&&(null!=k.prev&&(k.prev.next=k.next),null!=k.next&&(k.next.prev=k.prev),k===this.head&&(this.head=k.next),k===this.tail&&(this.tail=k.prev),this.length-=1)},N.prototype.iterator=function(k){return void 0===k&&(k=this.head),function(){var m=k;return null!=k&&(k=k.next),m}},N.prototype.find=function(k,m){void 0===m&&(m=!1);for(var y,c=this.iterator();y=c();){var o=y.length();if(k<o||m&&k===o&&(null==y.next||0!==y.next.length()))return[y,k];k-=o}return[null,0]},N.prototype.forEach=function(k){for(var m,y=this.iterator();m=y();)k(m)},N.prototype.forEachAt=function(k,m,y){if(!(m<=0))for(var e,c=this.find(k),u=k-c[1],l=this.iterator(c[0]);(e=l())&&u<k+m;){var a=e.length();k>u?y(e,k-u,Math.min(m,u+a-k)):y(e,0,Math.min(a,k+m-u)),u+=a}},N.prototype.map=function(k){return this.reduce(function(m,y){return m.push(k(y)),m},[])},N.prototype.reduce=function(k,m){for(var y,c=this.iterator();y=c();)m=k(m,y);return m},N}();_.default=P},function(B,_,v){"use strict";var o,P=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])},function(t,e){function u(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(_,"__esModule",{value:!0});var N=v(17),k=v(1),m={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=function(o){function t(e){var u=o.call(this,e)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,m),u.attach(),u}return P(t,o),t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,u){this.update(),0===e&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,e,u)},t.prototype.formatAt=function(e,u,l,a){this.update(),o.prototype.formatAt.call(this,e,u,l,a)},t.prototype.insertAt=function(e,u,l){this.update(),o.prototype.insertAt.call(this,e,u,l)},t.prototype.optimize=function(e,u){var l=this;void 0===e&&(e=[]),void 0===u&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var r=function(s,A){void 0===A&&(A=!0),null!=s&&s!==l&&null!=s.domNode.parentNode&&(null==s.domNode[k.DATA_KEY].mutations&&(s.domNode[k.DATA_KEY].mutations=[]),A&&r(s.parent))},i=function(s){null==s.domNode[k.DATA_KEY]||null==s.domNode[k.DATA_KEY].mutations||(s instanceof N.default&&s.children.forEach(i),s.optimize(u))},f=e,n=0;f.length>0;n+=1){if(n>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(s){var A=k.find(s.target,!0);null!=A&&(A.domNode===s.target&&("childList"===s.type?(r(k.find(s.previousSibling,!1)),[].forEach.call(s.addedNodes,function(g){var b=k.find(g,!1);r(b,!1),b instanceof N.default&&b.children.forEach(function(w){r(w,!1)})})):"attributes"===s.type&&r(A.prev)),r(A))}),this.children.forEach(i),a=(f=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)e.push(a.pop())}},t.prototype.update=function(e,u){var l=this;void 0===u&&(u={}),(e=e||this.observer.takeRecords()).map(function(a){var r=k.find(a.target,!0);return null==r?null:null==r.domNode[k.DATA_KEY].mutations?(r.domNode[k.DATA_KEY].mutations=[a],r):(r.domNode[k.DATA_KEY].mutations.push(a),null)}).forEach(function(a){null==a||a===l||null==a.domNode[k.DATA_KEY]||a.update(a.domNode[k.DATA_KEY].mutations||[],u)}),null!=this.domNode[k.DATA_KEY].mutations&&o.prototype.update.call(this,this.domNode[k.DATA_KEY].mutations,u),this.optimize(e,u)},t.blotName="scroll",t.defaultChild="block",t.scope=k.Scope.BLOCK_BLOT,t.tagName="DIV",t}(N.default);_.default=c},function(B,_,v){"use strict";var c,P=this&&this.__extends||(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])},function(o,t){function e(){this.constructor=o}c(o,t),o.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)});Object.defineProperty(_,"__esModule",{value:!0});var N=v(18),k=v(1),y=function(c){function o(){return null!==c&&c.apply(this,arguments)||this}return P(o,c),o.formats=function(t){if(t.tagName!==o.tagName)return c.formats.call(this,t)},o.prototype.format=function(t,e){var u=this;t!==this.statics.blotName||e?c.prototype.format.call(this,t,e):(this.children.forEach(function(l){l instanceof N.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap())},o.prototype.formatAt=function(t,e,u,l){null!=this.formats()[u]||k.query(u,k.Scope.ATTRIBUTE)?this.isolate(t,e).format(u,l):c.prototype.formatAt.call(this,t,e,u,l)},o.prototype.optimize=function(t){c.prototype.optimize.call(this,t);var e=this.formats();if(0===Object.keys(e).length)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&function m(c,o){if(Object.keys(c).length!==Object.keys(o).length)return!1;for(var t in c)if(c[t]!==o[t])return!1;return!0}(e,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=k.Scope.INLINE_BLOT,o.tagName="SPAN",o}(N.default);_.default=y},function(B,_,v){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});Object.defineProperty(_,"__esModule",{value:!0});var N=v(18),k=v(1),m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.formats=function(o){var t=k.query(c.blotName).tagName;if(o.tagName!==t)return y.formats.call(this,o)},c.prototype.format=function(o,t){null!=k.query(o,k.Scope.BLOCK)&&(o!==this.statics.blotName||t?y.prototype.format.call(this,o,t):this.replaceWith(c.blotName))},c.prototype.formatAt=function(o,t,e,u){null!=k.query(e,k.Scope.BLOCK)?this.format(e,u):y.prototype.formatAt.call(this,o,t,e,u)},c.prototype.insertAt=function(o,t,e){if(null==e||null!=k.query(t,k.Scope.INLINE))y.prototype.insertAt.call(this,o,t,e);else{var u=this.split(o),l=k.create(t,e);u.parent.insertBefore(l,u)}},c.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,t)},c.blotName="block",c.scope=k.Scope.BLOCK_BLOT,c.tagName="P",c}(N.default);_.default=m},function(B,_,v){"use strict";var m,P=this&&this.__extends||(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var o in c)c.hasOwnProperty(o)&&(y[o]=c[o])},function(y,c){function o(){this.constructor=y}m(y,c),y.prototype=null===c?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(_,"__esModule",{value:!0});var k=function(m){function y(){return null!==m&&m.apply(this,arguments)||this}return P(y,m),y.formats=function(c){},y.prototype.format=function(c,o){m.prototype.formatAt.call(this,0,this.length(),c,o)},y.prototype.formatAt=function(c,o,t,e){0===c&&o===this.length()?this.format(t,e):m.prototype.formatAt.call(this,c,o,t,e)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(v(19).default);_.default=k},function(B,_,v){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});Object.defineProperty(_,"__esModule",{value:!0});var N=v(19),k=v(1),m=function(y){function c(o){var t=y.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return P(c,y),c.create=function(o){return document.createTextNode(o)},c.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},c.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},c.prototype.index=function(o,t){return this.domNode===o?t:-1},c.prototype.insertAt=function(o,t,e){null==e?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,t,e)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(o){y.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(o,t){return void 0===t&&(t=!1),[this.domNode,o]},c.prototype.split=function(o,t){if(void 0===t&&(t=!1),!t){if(0===o)return this;if(o===this.length())return this.next}var e=k.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},c.prototype.update=function(o,t){var e=this;o.some(function(u){return"characterData"===u.type&&u.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=k.Scope.INLINE_BLOT,c}(N.default);_.default=m},function(B,_,v){"use strict";var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var N=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(k,m){return arguments.length>1&&!this.contains(k)==!m?m:N.call(this,k)}}String.prototype.startsWith||(String.prototype.startsWith=function(k,m){return this.substr(m=m||0,k.length)===k}),String.prototype.endsWith||(String.prototype.endsWith=function(k,m){var y=this.toString();("number"!=typeof m||!isFinite(m)||Math.floor(m)!==m||m>y.length)&&(m=y.length);var c=y.indexOf(k,m-=k.length);return-1!==c&&c===m}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(m){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof m)throw new TypeError("predicate must be a function");for(var t,y=Object(this),c=y.length>>>0,o=arguments[1],e=0;e<c;e++)if(m.call(o,t=y[e],e,y))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(B,_){var v=-1,P=1,N=0;function k(n,s,A){if(n==s)return n?[[N,n]]:[];(A<0||n.length<A)&&(A=null);var g=o(n,s),b=n.substring(0,g);g=t(n=n.substring(g),s=s.substring(g));var w=n.substring(n.length-g),p=function m(n,s){var A;if(!n)return[[P,s]];if(!s)return[[v,n]];var g=n.length>s.length?n:s,b=n.length>s.length?s:n,w=g.indexOf(b);if(-1!=w)return A=[[P,g.substring(0,w)],[N,b],[P,g.substring(w+b.length)]],n.length>s.length&&(A[0][0]=A[2][0]=v),A;if(1==b.length)return[[v,n],[P,s]];var p=function e(n,s){var A=n.length>s.length?n:s,g=n.length>s.length?s:n;if(A.length<4||2*g.length<A.length)return null;function b(C,Z,I){for(var L,F,M,x,R=C.substring(I,I+Math.floor(C.length/4)),O=-1,S="";-1!=(O=Z.indexOf(R,O+1));){var j=o(C.substring(I),Z.substring(O)),U=t(C.substring(0,I),Z.substring(0,O));S.length<U+j&&(S=Z.substring(O-U,O)+Z.substring(O,O+j),L=C.substring(0,I-U),F=C.substring(I+j),M=Z.substring(0,O-U),x=Z.substring(O+j))}return 2*S.length>=C.length?[L,F,M,x,S]:null}var h,d,E,T,q,w=b(A,g,Math.ceil(A.length/4)),p=b(A,g,Math.ceil(A.length/2));return w||p?(h=p?w&&w[4].length>p[4].length?w:p:w,n.length>s.length?(d=h[0],E=h[1],T=h[2],q=h[3]):(T=h[0],q=h[1],d=h[2],E=h[3]),[d,E,T,q,h[4]]):null}(n,s);if(p){var d=p[1],T=p[3],q=p[4],D=k(p[0],p[2]),C=k(d,T);return D.concat([[N,q]],C)}return function y(n,s){for(var A=n.length,g=s.length,b=Math.ceil((A+g)/2),w=b,p=2*b,h=new Array(p),d=new Array(p),E=0;E<p;E++)h[E]=-1,d[E]=-1;h[w+1]=0,d[w+1]=0;for(var T=A-g,q=T%2!=0,D=0,C=0,Z=0,I=0,R=0;R<b;R++){for(var O=-R+D;O<=R-C;O+=2){for(var S=w+O,F=(L=O==-R||O!=R&&h[S-1]<h[S+1]?h[S+1]:h[S-1]+1)-O;L<A&&F<g&&n.charAt(L)==s.charAt(F);)L++,F++;if(h[S]=L,L>A)C+=2;else if(F>g)D+=2;else if(q&&(M=w+T-O)>=0&&M<p&&-1!=d[M]&&L>=(x=A-d[M]))return c(n,s,L,F)}for(var j=-R+Z;j<=R-I;j+=2){for(var x,M=w+j,U=(x=j==-R||j!=R&&d[M-1]<d[M+1]?d[M+1]:d[M-1]+1)-j;x<A&&U<g&&n.charAt(A-x-1)==s.charAt(g-U-1);)x++,U++;if(d[M]=x,x>A)I+=2;else if(U>g)Z+=2;else if(!q){var L;if((S=w+T-j)>=0&&S<p&&-1!=h[S])if(F=w+(L=h[S])-S,L>=(x=A-x))return c(n,s,L,F)}}}return[[v,n],[P,s]]}(n,s)}(n=n.substring(0,n.length-g),s=s.substring(0,s.length-g));return b&&p.unshift([N,b]),w&&p.push([N,w]),u(p),null!=A&&(p=function r(n,s){var A=function a(n,s){if(0===s)return[N,n];for(var A=0,g=0;g<n.length;g++){var b=n[g];if(b[0]===v||b[0]===N){var w=A+b[1].length;if(s===w)return[g+1,n];if(s<w){n=n.slice();var p=s-A,h=[b[0],b[1].slice(0,p)],d=[b[0],b[1].slice(p)];return n.splice(g,1,h,d),[g+1,n]}A=w}}throw new Error("cursor_pos is out of bounds!")}(n,s),g=A[1],b=A[0],w=g[b],p=g[b+1];if(null==w)return n;if(w[0]!==N)return n;if(null!=p&&w[1]+p[1]===p[1]+w[1])return g.splice(b,2,p,w),f(g,b,2);if(null!=p&&0===p[1].indexOf(w[1])){g.splice(b,2,[p[0],w[1]],[0,w[1]]);var h=p[1].slice(w[1].length);return h.length>0&&g.splice(b+2,0,[p[0],h]),f(g,b,3)}return n}(p,A)),p=function i(n){for(var s=!1,A=function(p){return p.charCodeAt(0)>=56320&&p.charCodeAt(0)<=57343},g=function(p){return p.charCodeAt(p.length-1)>=55296&&p.charCodeAt(p.length-1)<=56319},b=2;b<n.length;b+=1)n[b-2][0]===N&&g(n[b-2][1])&&n[b-1][0]===v&&A(n[b-1][1])&&n[b][0]===P&&A(n[b][1])&&(s=!0,n[b-1][1]=n[b-2][1].slice(-1)+n[b-1][1],n[b][1]=n[b-2][1].slice(-1)+n[b][1],n[b-2][1]=n[b-2][1].slice(0,-1));if(!s)return n;var w=[];for(b=0;b<n.length;b+=1)n[b][1].length>0&&w.push(n[b]);return w}(p),p}function c(n,s,A,g){var b=n.substring(0,A),w=s.substring(0,g),p=n.substring(A),h=s.substring(g),d=k(b,w),E=k(p,h);return d.concat(E)}function o(n,s){if(!n||!s||n.charAt(0)!=s.charAt(0))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,w=0;A<b;)n.substring(w,b)==s.substring(w,b)?w=A=b:g=b,b=Math.floor((g-A)/2+A);return b}function t(n,s){if(!n||!s||n.charAt(n.length-1)!=s.charAt(s.length-1))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,w=0;A<b;)n.substring(n.length-b,n.length-w)==s.substring(s.length-b,s.length-w)?w=A=b:g=b,b=Math.floor((g-A)/2+A);return b}function u(n){n.push([N,""]);for(var p,s=0,A=0,g=0,b="",w="";s<n.length;)switch(n[s][0]){case P:g++,w+=n[s][1],s++;break;case v:A++,b+=n[s][1],s++;break;case N:A+g>1?(0!==A&&0!==g&&(0!==(p=o(w,b))&&(s-A-g>0&&n[s-A-g-1][0]==N?n[s-A-g-1][1]+=w.substring(0,p):(n.splice(0,0,[N,w.substring(0,p)]),s++),w=w.substring(p),b=b.substring(p)),0!==(p=t(w,b))&&(n[s][1]=w.substring(w.length-p)+n[s][1],w=w.substring(0,w.length-p),b=b.substring(0,b.length-p))),0===A?n.splice(s-g,A+g,[P,w]):0===g?n.splice(s-A,A+g,[v,b]):n.splice(s-A-g,A+g,[v,b],[P,w]),s=s-A-g+(A?1:0)+(g?1:0)+1):0!==s&&n[s-1][0]==N?(n[s-1][1]+=n[s][1],n.splice(s,1)):s++,g=0,A=0,b="",w=""}""===n[n.length-1][1]&&n.pop();var h=!1;for(s=1;s<n.length-1;)n[s-1][0]==N&&n[s+1][0]==N&&(n[s][1].substring(n[s][1].length-n[s-1][1].length)==n[s-1][1]?(n[s][1]=n[s-1][1]+n[s][1].substring(0,n[s][1].length-n[s-1][1].length),n[s+1][1]=n[s-1][1]+n[s+1][1],n.splice(s-1,1),h=!0):n[s][1].substring(0,n[s+1][1].length)==n[s+1][1]&&(n[s-1][1]+=n[s+1][1],n[s][1]=n[s][1].substring(n[s+1][1].length)+n[s+1][1],n.splice(s+1,1),h=!0)),s++;h&&u(n)}var l=k;function f(n,s,A){for(var g=s+A-1;g>=0&&g>=s-1;g--)if(g+1<n.length){var b=n[g],w=n[g+1];b[0]===w[1]&&n.splice(g,2,[b[0],b[1]+w[1]])}return n}l.INSERT=P,l.DELETE=v,l.EQUAL=N,B.exports=l},function(B,_){function v(P){var N=[];for(var k in P)N.push(k);return N}(B.exports="function"==typeof Object.keys?Object.keys:v).shim=v},function(B,_){var v="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function P(k){return"[object Arguments]"==Object.prototype.toString.call(k)}function N(k){return k&&"object"==typeof k&&"number"==typeof k.length&&Object.prototype.hasOwnProperty.call(k,"callee")&&!Object.prototype.propertyIsEnumerable.call(k,"callee")||!1}(_=B.exports=v?P:N).supported=P,_.unsupported=N},function(B,_){"use strict";var v=Object.prototype.hasOwnProperty,P="~";function N(){}function k(y,c,o){this.fn=y,this.context=c,this.once=o||!1}function m(){this._events=new N,this._eventsCount=0}Object.create&&(N.prototype=Object.create(null),(new N).__proto__||(P=!1)),m.prototype.eventNames=function(){var o,t,c=[];if(0===this._eventsCount)return c;for(t in o=this._events)v.call(o,t)&&c.push(P?t.slice(1):t);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(o)):c},m.prototype.listeners=function(c,o){var e=this._events[P?P+c:c];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var u=0,l=e.length,a=new Array(l);u<l;u++)a[u]=e[u].fn;return a},m.prototype.emit=function(c,o,t,e,u,l){var a=P?P+c:c;if(!this._events[a])return!1;var f,n,r=this._events[a],i=arguments.length;if(r.fn){switch(r.once&&this.removeListener(c,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,t),!0;case 4:return r.fn.call(r.context,o,t,e),!0;case 5:return r.fn.call(r.context,o,t,e,u),!0;case 6:return r.fn.call(r.context,o,t,e,u,l),!0}for(n=1,f=new Array(i-1);n<i;n++)f[n-1]=arguments[n];r.fn.apply(r.context,f)}else{var A,s=r.length;for(n=0;n<s;n++)switch(r[n].once&&this.removeListener(c,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,t);break;case 4:r[n].fn.call(r[n].context,o,t,e);break;default:if(!f)for(A=1,f=new Array(i-1);A<i;A++)f[A-1]=arguments[A];r[n].fn.apply(r[n].context,f)}}return!0},m.prototype.on=function(c,o,t){var e=new k(o,t||this),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.once=function(c,o,t){var e=new k(o,t||this,!0),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.removeListener=function(c,o,t,e){var u=P?P+c:c;if(!this._events[u])return this;if(!o)return 0==--this._eventsCount?this._events=new N:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!e||l.once)&&(!t||l.context===t)&&(0==--this._eventsCount?this._events=new N:delete this._events[u]);else{for(var a=0,r=[],i=l.length;a<i;a++)(l[a].fn!==o||e&&!l[a].once||t&&l[a].context!==t)&&r.push(l[a]);r.length?this._events[u]=1===r.length?r[0]:r:0==--this._eventsCount?this._events=new N:delete this._events[u]}return this},m.prototype.removeAllListeners=function(c){var o;return c?this._events[o=P?P+c:c]&&(0==--this._eventsCount?this._events=new N:delete this._events[o]):(this._events=new N,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prototype.setMaxListeners=function(){return this},m.prefixed=P,m.EventEmitter=m,typeof B<"u"&&(B.exports=m)},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.matchText=_.matchSpacing=_.matchNewline=_.matchBlot=_.matchAttributor=_.default=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(z){return typeof z}:function(z){return z&&"function"==typeof Symbol&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},N=function(K,$){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return function z(K,$){var G=[],W=!0,J=!1,tt=void 0;try{for(var ut,et=K[Symbol.iterator]();!(W=(ut=et.next()).done)&&(G.push(ut.value),!$||G.length!==$);W=!0);}catch(ft){J=!0,tt=ft}finally{try{!W&&et.return&&et.return()}finally{if(J)throw tt}}return G}(K,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")},k=function(){function z(K,$){for(var G=0;G<$.length;G++){var W=$[G];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(K,W.key,W)}}return function(K,$,G){return $&&z(K.prototype,$),G&&z(K,G),K}}(),y=d(v(3)),o=d(v(2)),e=d(v(0)),l=d(v(5)),r=d(v(10)),f=d(v(9)),n=v(36),s=v(37),g=d(v(13)),b=v(26),w=v(38),p=v(39),h=v(40);function d(z){return z&&z.__esModule?z:{default:z}}function E(z,K,$){return K in z?Object.defineProperty(z,K,{value:$,enumerable:!0,configurable:!0,writable:!0}):z[K]=$,z}var C=(0,r.default)("quill:clipboard"),Z="__ql-matcher",I=[[Node.TEXT_NODE,lt],[Node.TEXT_NODE,nt],["br",function Y(z,K){return M(K,"\n")||K.insert("\n"),K}],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,function at(z,K){var $={},G=z.style||{};return G.fontStyle&&"italic"===F(z).fontStyle&&($.italic=!0),G.fontWeight&&(F(z).fontWeight.startsWith("bold")||parseInt(F(z).fontWeight)>=700)&&($.bold=!0),Object.keys($).length>0&&(K=L(K,$)),parseFloat(G.textIndent||0)>0&&(K=(new o.default).insert("\t").concat(K)),K}],["li",function Q(z,K){var $=e.default.query(z);if(null==$||"list-item"!==$.blotName||!M(K,"\n"))return K;for(var G=-1,W=z.parentNode;!W.classList.contains("ql-clipboard");)"list"===(e.default.query(W)||{}).blotName&&(G+=1),W=W.parentNode;return G<=0?K:K.compose((new o.default).retain(K.length()-1).retain(1,{indent:G}))}],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",function X(){return new o.default}]],R=[n.AlignAttribute,w.DirectionAttribute].reduce(function(z,K){return z[K.keyName]=K,z},{}),O=[n.AlignStyle,s.BackgroundStyle,b.ColorStyle,w.DirectionStyle,p.FontStyle,h.SizeStyle].reduce(function(z,K){return z[K.keyName]=K,z},{}),S=function(z){function K($,G){!function T(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}(this,K);var W=function q(z,K){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!K||"object"!=typeof K&&"function"!=typeof K?z:K}(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,$,G));return W.quill.root.addEventListener("paste",W.onPaste.bind(W)),W.container=W.quill.addContainer("ql-clipboard"),W.container.setAttribute("contenteditable",!0),W.container.setAttribute("tabindex",-1),W.matchers=[],I.concat(W.options.matchers).forEach(function(J){var tt=N(J,2),ut=tt[1];!G.matchVisual&&ut===rt||W.addMatcher(tt[0],ut)}),W}return function D(z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function, not "+typeof K);z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(z,K):z.__proto__=K)}(K,z),k(K,[{key:"addMatcher",value:function(G,W){this.matchers.push([G,W])}},{key:"convert",value:function(G){if("string"==typeof G)return this.container.innerHTML=G.replace(/\>\r?\n +\</g,"><"),this.convert();var W=this.quill.getFormat(this.quill.selection.savedRange.index);if(W[g.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",(new o.default).insert(J,E({},g.default.blotName,W[g.default.blotName]))}var tt=this.prepareMatching(),et=N(tt,2),it=j(this.container,et[0],et[1]);return M(it,"\n")&&null==it.ops[it.ops.length-1].attributes&&(it=it.compose((new o.default).retain(it.length()-1).delete(1))),C.log("convert",this.container.innerHTML,it),this.container.innerHTML="",it}},{key:"dangerouslyPasteHTML",value:function(G,W){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof G)this.quill.setContents(this.convert(G),W),this.quill.setSelection(0,l.default.sources.SILENT);else{var tt=this.convert(W);this.quill.updateContents((new o.default).retain(G).concat(tt),J),this.quill.setSelection(G+tt.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(G){var W=this;if(!G.defaultPrevented&&this.quill.isEnabled()){var J=this.quill.getSelection(),tt=(new o.default).retain(J.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){tt=tt.concat(W.convert()).delete(J.length),W.quill.updateContents(tt,l.default.sources.USER),W.quill.setSelection(tt.length()-J.length,l.default.sources.SILENT),W.quill.scrollingContainer.scrollTop=et,W.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,W=[],J=[];return this.matchers.forEach(function(tt){var et=N(tt,2),ut=et[0],ft=et[1];switch(ut){case Node.TEXT_NODE:J.push(ft);break;case Node.ELEMENT_NODE:W.push(ft);break;default:[].forEach.call(G.container.querySelectorAll(ut),function(it){it[Z]=it[Z]||[],it[Z].push(ft)})}}),[W,J]}}]),K}(f.default);function L(z,K,$){return"object"===(typeof K>"u"?"undefined":P(K))?Object.keys(K).reduce(function(G,W){return L(G,W,K[W])},z):z.reduce(function(G,W){return W.attributes&&W.attributes[K]?G.push(W):G.insert(W.insert,(0,y.default)({},E({},K,$),W.attributes))},new o.default)}function F(z){if(z.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return z[K]||(z[K]=window.getComputedStyle(z))}function M(z,K){for(var $="",G=z.ops.length-1;G>=0&&$.length<K.length;--G){var W=z.ops[G];if("string"!=typeof W.insert)break;$=W.insert+$}return $.slice(-1*K.length)===K}function x(z){if(0===z.childNodes.length)return!1;var K=F(z);return["block","list-item"].indexOf(K.display)>-1}function j(z,K,$){return z.nodeType===z.TEXT_NODE?$.reduce(function(G,W){return W(z,G)},new o.default):z.nodeType===z.ELEMENT_NODE?[].reduce.call(z.childNodes||[],function(G,W){var J=j(W,K,$);return W.nodeType===z.ELEMENT_NODE&&(J=K.reduce(function(tt,et){return et(W,tt)},J),J=(W[Z]||[]).reduce(function(tt,et){return et(W,tt)},J)),G.concat(J)},new o.default):new o.default}function U(z,K,$){return L($,z,!0)}function H(z,K){var $=e.default.Attributor.Attribute.keys(z),G=e.default.Attributor.Class.keys(z),W=e.default.Attributor.Style.keys(z),J={};return $.concat(G).concat(W).forEach(function(tt){var et=e.default.query(tt,e.default.Scope.ATTRIBUTE);null!=et&&(J[et.attrName]=et.value(z),J[et.attrName])||(null!=(et=R[tt])&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(z)||void 0),null!=(et=O[tt])&&(et.attrName===tt||et.keyName===tt)&&(J[(et=O[tt]).attrName]=et.value(z)||void 0))}),Object.keys(J).length>0&&(K=L(K,J)),K}function V(z,K){var $=e.default.query(z);if(null==$)return K;if($.prototype instanceof e.default.Embed){var G={},W=$.value(z);null!=W&&(G[$.blotName]=W,K=(new o.default).insert(G,$.formats(z)))}else"function"==typeof $.formats&&(K=L(K,$.blotName,$.formats(z)));return K}function nt(z,K){return M(K,"\n")||(x(z)||K.length()>0&&z.nextSibling&&x(z.nextSibling))&&K.insert("\n"),K}function rt(z,K){if(x(z)&&null!=z.nextElementSibling&&!M(K,"\n\n")){var $=z.offsetHeight+parseFloat(F(z).marginTop)+parseFloat(F(z).marginBottom);z.nextElementSibling.offsetTop>z.offsetTop+1.5*$&&K.insert("\n")}return K}function lt(z,K){var $=z.data;if("O:P"===z.parentNode.tagName)return K.insert($.trim());if(0===$.trim().length&&z.parentNode.classList.contains("ql-clipboard"))return K;if(!F(z.parentNode).whiteSpace.startsWith("pre")){var G=function(J,tt){return(tt=tt.replace(/[^\u00a0]/g,"")).length<1&&J?" ":tt};$=($=$.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,G.bind(G,!0)),(null==z.previousSibling&&x(z.parentNode)||null!=z.previousSibling&&x(z.previousSibling))&&($=$.replace(/^\s+/,G.bind(G,!1))),(null==z.nextSibling&&x(z.parentNode)||null!=z.nextSibling&&x(z.nextSibling))&&($=$.replace(/\s+$/,G.bind(G,!1)))}return K.insert($)}S.DEFAULTS={matchers:[],matchVisual:!0},_.default=S,_.matchAttributor=H,_.matchBlot=V,_.matchNewline=nt,_.matchSpacing=rt,_.matchText=lt},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),N=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)},e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"optimize",value:function(r){N(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return N(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(v(6)).default);e.blotName="bold",e.tagName=["STRONG","B"],_.default=e},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.addControls=_.default=void 0;var P=function(d,E){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return function h(d,E){var T=[],q=!0,D=!1,C=void 0;try{for(var I,Z=d[Symbol.iterator]();!(q=(I=Z.next()).done)&&(T.push(I.value),!E||T.length!==E);q=!0);}catch(R){D=!0,C=R}finally{try{!q&&Z.return&&Z.return()}finally{if(D)throw C}}return T}(d,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")},N=function(){function h(d,E){for(var T=0;T<E.length;T++){var q=E[T];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}return function(d,E,T){return E&&h(d.prototype,E),T&&h(d,T),d}}(),m=r(v(2)),c=r(v(0)),t=r(v(5)),u=r(v(10)),a=r(v(9));function r(h){return h&&h.__esModule?h:{default:h}}function n(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?h:d}var A=(0,u.default)("quill:toolbar"),g=function(h){function d(E,T){!function f(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d);var C,q=n(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,E,T));if(Array.isArray(q.options.container)){var D=document.createElement("div");w(D,q.options.container),E.container.parentNode.insertBefore(D,E.container),q.container=D}else q.container="string"==typeof q.options.container?document.querySelector(q.options.container):q.options.container;return q.container instanceof HTMLElement?(q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(Z){q.addHandler(Z,q.options.handlers[Z])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(Z){q.attach(Z)}),q.quill.on(t.default.events.EDITOR_CHANGE,function(Z,I){Z===t.default.events.SELECTION_CHANGE&&q.update(I)}),q.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var Z=q.quill.selection.getRange(),I=P(Z,1);q.update(I[0])}),q):(C=A.error("Container required for toolbar",q.options),n(q,C))}return function s(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}(d,h),N(d,[{key:"addHandler",value:function(T,q){this.handlers[T]=q}},{key:"attach",value:function(T){var q=this,D=[].find.call(T.classList,function(Z){return 0===Z.indexOf("ql-")});if(D){if(D=D.slice(3),"BUTTON"===T.tagName&&T.setAttribute("type","button"),null==this.handlers[D]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[D])return void A.warn("ignoring attaching to disabled format",D,T);if(null==c.default.query(D))return void A.warn("ignoring attaching to nonexistent format",D,T)}T.addEventListener("SELECT"===T.tagName?"change":"click",function(Z){var I=void 0;if("SELECT"===T.tagName){if(T.selectedIndex<0)return;var R=T.options[T.selectedIndex];I=!R.hasAttribute("selected")&&(R.value||!1)}else I=!T.classList.contains("ql-active")&&(T.value||!T.hasAttribute("value")),Z.preventDefault();q.quill.focus();var O=q.quill.selection.getRange(),L=P(O,1)[0];if(null!=q.handlers[D])q.handlers[D].call(q,I);else if(c.default.query(D).prototype instanceof c.default.Embed){if(!(I=prompt("Enter "+D)))return;q.quill.updateContents((new m.default).retain(L.index).delete(L.length).insert(function i(h,d,E){return d in h?Object.defineProperty(h,d,{value:E,enumerable:!0,configurable:!0,writable:!0}):h[d]=E,h}({},D,I)),t.default.sources.USER)}else q.quill.format(D,I,t.default.sources.USER);q.update(L)}),this.controls.push([D,T])}}},{key:"update",value:function(T){var q=null==T?{}:this.quill.getFormat(T);this.controls.forEach(function(D){var C=P(D,2),Z=C[0],I=C[1];if("SELECT"===I.tagName){var R=void 0;if(null==T)R=null;else if(null==q[Z])R=I.querySelector("option[selected]");else if(!Array.isArray(q[Z])){var O=q[Z];"string"==typeof O&&(O=O.replace(/\"/g,'\\"')),R=I.querySelector('option[value="'+O+'"]')}null==R?(I.value="",I.selectedIndex=-1):R.selected=!0}else if(null==T)I.classList.remove("ql-active");else if(I.hasAttribute("value")){var S=q[Z]===I.getAttribute("value")||null!=q[Z]&&q[Z].toString()===I.getAttribute("value")||null==q[Z]&&!I.getAttribute("value");I.classList.toggle("ql-active",S)}else I.classList.toggle("ql-active",null!=q[Z])})}}]),d}(a.default);function b(h,d,E){var T=document.createElement("button");T.setAttribute("type","button"),T.classList.add("ql-"+d),null!=E&&(T.value=E),h.appendChild(T)}function w(h,d){Array.isArray(d[0])||(d=[d]),d.forEach(function(E){var T=document.createElement("span");T.classList.add("ql-formats"),E.forEach(function(q){if("string"==typeof q)b(T,q);else{var D=Object.keys(q)[0],C=q[D];Array.isArray(C)?function p(h,d,E){var T=document.createElement("select");T.classList.add("ql-"+d),E.forEach(function(q){var D=document.createElement("option");!1!==q?D.setAttribute("value",q):D.setAttribute("selected","selected"),T.appendChild(D)}),h.appendChild(T)}(T,D,C):b(T,D,C)}}),h.appendChild(T)})}g.DEFAULTS={},g.DEFAULTS={container:null,handlers:{clean:function(){var d=this,E=this.quill.getSelection();if(null!=E)if(0==E.length){var T=this.quill.getFormat();Object.keys(T).forEach(function(q){null!=c.default.query(q,c.default.Scope.INLINE)&&d.quill.format(q,!1)})}else this.quill.removeFormat(E,t.default.sources.USER)},direction:function(d){var E=this.quill.getFormat().align;"rtl"===d&&null==E?this.quill.format("align","right",t.default.sources.USER):!d&&"right"===E&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",d,t.default.sources.USER)},indent:function(d){var E=this.quill.getSelection(),T=this.quill.getFormat(E),q=parseInt(T.indent||0);if("+1"===d||"-1"===d){var D="+1"===d?1:-1;"rtl"===T.direction&&(D*=-1),this.quill.format("indent",q+D,t.default.sources.USER)}},link:function(d){!0===d&&(d=prompt("Enter link URL:")),this.quill.format("link",d,t.default.sources.USER)},list:function(d){var E=this.quill.getSelection(),T=this.quill.getFormat(E);this.quill.format("list","check"===d?"checked"!==T.list&&"unchecked"!==T.list&&"unchecked":d,t.default.sources.USER)}}},_.default=g,_.addControls=w},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),N=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)},e=function(u){function l(a,r){!function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var i=function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")}),i}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"buildItem",value:function(r){var i=N(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){N(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i);var f=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";f&&("line"===f.tagName?f.style.stroke=n:f.style.fill=n)}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(v(28)).default);_.default=e},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),N=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)},e=function(u){function l(a,r){!function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var i=function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=r[f.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"selectItem",value:function(r,i){N(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i),this.label.innerHTML=(r=r||this.defaultItem).innerHTML}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(v(28)).default);_.default=e},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function m(y,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,c,o){return c&&m(y.prototype,c),o&&m(y,o),y}}(),k=function(){function m(y,c){var o=this;(function N(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,m),this.quill=y,this.boundsContainer=c||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return P(m,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var o=c.left+c.width/2-this.root.offsetWidth/2,t=c.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),l=0;return u.right>e.right&&(this.root.style.left=o+(l=e.right-u.right)+"px"),u.left<e.left&&(this.root.style.left=o+(l=e.left-u.left)+"px"),u.bottom>e.bottom&&(this.root.style.top=t-(c.bottom-c.top+(u.bottom-u.top))+"px",this.root.classList.add("ql-flip")),l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),m}();_.default=k},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var N=function p(h,d,E){null===h&&(h=Function.prototype);var T=Object.getOwnPropertyDescriptor(h,d);if(void 0===T){var q=Object.getPrototypeOf(h);return null===q?void 0:p(q,d,E)}if("value"in T)return T.value;var D=T.get;return void 0===D?void 0:D.call(E)},k=function(){function p(h,d){for(var E=0;E<d.length;E++){var T=d[E];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}return function(h,d,E){return d&&p(h.prototype,d),E&&p(h,E),h}}(),y=f(v(3)),o=f(v(8)),t=v(43),e=f(t),l=f(v(27)),a=v(15),i=f(v(41));function f(p){return p&&p.__esModule?p:{default:p}}function n(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function s(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?p:h}function A(p,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(p){function h(d,E){n(this,h),null!=E.modules.toolbar&&null==E.modules.toolbar.container&&(E.modules.toolbar.container=g);var T=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d,E));return T.quill.container.classList.add("ql-snow"),T}return A(h,p),k(h,[{key:"extendToolbar",value:function(E){E.container.classList.add("ql-snow"),this.buildButtons([].slice.call(E.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),i.default),this.tooltip=new w(this.quill,this.options.bounds),E.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(T,q){E.handlers.link.call(E,!q.format.link)})}}]),h}(e.default);b.DEFAULTS=(0,y.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(h){if(h){var d=this.quill.getSelection();if(null==d||0==d.length)return;var E=this.quill.getText(d);/^\S+@\S+\.\S+$/.test(E)&&0!==E.indexOf("mailto:")&&(E="mailto:"+E),this.quill.theme.tooltip.edit("link",E)}else this.quill.format("link",!1)}}}}});var w=function(p){function h(d,E){n(this,h);var T=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d,E));return T.preview=T.root.querySelector("a.ql-preview"),T}return A(h,p),k(h,[{key:"listen",value:function(){var E=this;N(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(T){E.root.classList.contains("ql-editing")?E.save():E.edit("link",E.preview.textContent),T.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(T){if(null!=E.linkRange){var q=E.linkRange;E.restoreFocus(),E.quill.formatText(q,"link",!1,o.default.sources.USER),delete E.linkRange}T.preventDefault(),E.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(T,q,D){if(null!=T){if(0===T.length&&D===o.default.sources.USER){var Z=function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return function p(h,d){var E=[],T=!0,q=!1,D=void 0;try{for(var Z,C=h[Symbol.iterator]();!(T=(Z=C.next()).done)&&(E.push(Z.value),!d||E.length!==d);T=!0);}catch(I){q=!0,D=I}finally{try{!T&&C.return&&C.return()}finally{if(q)throw D}}return E}(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(E.quill.scroll.descendant(l.default,T.index),2),I=Z[0];if(null!=I){E.linkRange=new a.Range(T.index-Z[1],I.length());var O=l.default.formats(I.domNode);return E.preview.textContent=O,E.preview.setAttribute("href",O),E.show(),void E.position(E.quill.getBounds(E.linkRange))}}else delete E.linkRange;E.hide()}})}},{key:"show",value:function(){N(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),h}(t.BaseTooltip);w.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),_.default=b},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var N=W(v(29)),k=v(36),m=v(38),y=v(64),o=W(v(65)),e=W(v(66)),u=v(67),l=W(u),a=v(37),r=v(26),i=v(39),f=v(40),s=W(v(56)),g=W(v(68)),w=W(v(27)),h=W(v(69)),E=W(v(70)),q=W(v(71)),C=W(v(72)),I=W(v(73)),R=v(13),O=W(R),L=W(v(74)),M=W(v(75)),j=W(v(57)),H=W(v(41)),Y=W(v(28)),Q=W(v(59)),rt=W(v(60)),lt=W(v(61)),K=W(v(108)),G=W(v(62));function W(J){return J&&J.__esModule?J:{default:J}}N.default.register({"attributors/attribute/direction":m.DirectionAttribute,"attributors/class/align":k.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":m.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":k.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":m.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":f.SizeStyle},!0),N.default.register({"formats/align":k.AlignClass,"formats/direction":m.DirectionClass,"formats/indent":y.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":f.SizeClass,"formats/blockquote":o.default,"formats/code-block":O.default,"formats/header":e.default,"formats/list":l.default,"formats/bold":s.default,"formats/code":R.Code,"formats/italic":g.default,"formats/link":w.default,"formats/script":h.default,"formats/strike":E.default,"formats/underline":q.default,"formats/image":C.default,"formats/video":I.default,"formats/list/item":u.ListItem,"modules/formula":L.default,"modules/syntax":M.default,"modules/toolbar":j.default,"themes/bubble":K.default,"themes/snow":G.default,"ui/icons":H.default,"ui/picker":Y.default,"ui/icon-picker":rt.default,"ui/color-picker":Q.default,"ui/tooltip":lt.default},!0),_.default=N.default},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.IndentClass=void 0;var P=function(){function l(a,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),N=function l(a,r,i){null===a&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(void 0===f){var n=Object.getPrototypeOf(a);return null===n?void 0:l(n,r,i)}if("value"in f)return f.value;var s=f.get;return void 0===s?void 0:s.call(i)},m=function y(l){return l&&l.__esModule?l:{default:l}}(v(0)),e=function(l){function a(){return function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a),function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?l:a}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return function t(l,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}(a,l),P(a,[{key:"add",value:function(i,f){if("+1"===f||"-1"===f){var n=this.value(i)||0;f="+1"===f?n+1:n-1}return 0===f?(this.remove(i),!0):N(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return N(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,f)||N(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(N(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,i))||void 0}}]),a}(m.default.Attributor.Class),u=new e("indent","ql-indent",{scope:m.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});_.IndentClass=u},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function k(t){return t&&t.__esModule?t:{default:t}}(v(4)).default);o.blotName="blockquote",o.tagName="blockquote",_.default=o},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function e(u,l){for(var a=0;a<l.length;a++){var r=l[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,l,a){return l&&e(u.prototype,l),a&&e(u,a),u}}(),t=function(e){function u(){return function y(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function c(e,u){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?e:u}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function o(e,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(e,u):e.__proto__=u)}(u,e),P(u,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),u}(function m(e){return e&&e.__esModule?e:{default:e}}(v(4)).default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],_.default=t},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.ListItem=void 0;var P=function(){function n(s,A){for(var g=0;g<A.length;g++){var b=A[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(s,b.key,b)}}return function(s,A,g){return A&&n(s.prototype,A),g&&n(s,g),s}}(),N=function n(s,A,g){null===s&&(s=Function.prototype);var b=Object.getOwnPropertyDescriptor(s,A);if(void 0===b){var w=Object.getPrototypeOf(s);return null===w?void 0:n(w,A,g)}if("value"in b)return b.value;var p=b.get;return void 0===p?void 0:p.call(g)},m=e(v(0)),c=e(v(4)),t=e(v(25));function e(n){return n&&n.__esModule?n:{default:n}}function l(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")}function a(n,s){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?n:s}function r(n,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(n,s):n.__proto__=s)}var i=function(n){function s(){return l(this,s),a(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return r(s,n),P(s,[{key:"format",value:function(g,b){g!==f.blotName||b?N(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,g,b):this.replaceWith(m.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():N(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(g,b){return this.parent.isolate(this.offset(this.parent),this.length()),g===this.parent.statics.blotName?(this.parent.replaceWith(g,b),this):(this.parent.unwrap(),N(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replaceWith",this).call(this,g,b))}}],[{key:"formats",value:function(g){return g.tagName===this.tagName?void 0:N(s.__proto__||Object.getPrototypeOf(s),"formats",this).call(this,g)}}]),s}(c.default);i.blotName="list-item",i.tagName="LI";var f=function(n){function s(A){l(this,s);var g=a(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,A)),b=function(p){if(p.target.parentNode===A){var h=g.statics.formats(A),d=m.default.find(p.target);"checked"===h?d.format("list","unchecked"):"unchecked"===h&&d.format("list","checked")}};return A.addEventListener("touchstart",b),A.addEventListener("mousedown",b),g}return r(s,n),P(s,null,[{key:"create",value:function(g){var b="ordered"===g?"OL":"UL",w=N(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,b);return("checked"===g||"unchecked"===g)&&w.setAttribute("data-checked","checked"===g),w}},{key:"formats",value:function(g){return"OL"===g.tagName?"ordered":"UL"===g.tagName?g.hasAttribute("data-checked")?"true"===g.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),P(s,[{key:"format",value:function(g,b){this.children.length>0&&this.children.tail.format(g,b)}},{key:"formats",value:function(){return function u(n,s,A){return s in n?Object.defineProperty(n,s,{value:A,enumerable:!0,configurable:!0,writable:!0}):n[s]=A,n}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(g,b){if(g instanceof i)N(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertBefore",this).call(this,g,b);else{var w=null==b?this.length():b.offset(this),p=this.split(w);p.parent.insertBefore(g,p)}}},{key:"optimize",value:function(g){N(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,g);var b=this.next;null!=b&&b.prev===this&&b.statics.blotName===this.statics.blotName&&b.domNode.tagName===this.domNode.tagName&&b.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(b.moveChildren(this),b.remove())}},{key:"replace",value:function(g){if(g.statics.blotName!==this.statics.blotName){var b=m.default.create(this.statics.defaultChild);g.moveChildren(b),this.appendChild(b)}N(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replace",this).call(this,g)}}]),s}(t.default);f.blotName="list",f.scope=m.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[i],_.ListItem=i,_.default=f},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function k(t){return t&&t.__esModule?t:{default:t}}(v(56)).default);o.blotName="italic",o.tagName=["EM","I"],_.default=o},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),N=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)},e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,null,[{key:"create",value:function(r){return"super"===r?document.createElement("sup"):"sub"===r?document.createElement("sub"):N(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,r)}},{key:"formats",value:function(r){return"SUB"===r.tagName?"sub":"SUP"===r.tagName?"super":void 0}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(v(6)).default);e.blotName="script",e.tagName=["SUB","SUP"],_.default=e},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function k(t){return t&&t.__esModule?t:{default:t}}(v(6)).default);o.blotName="strike",o.tagName="S",_.default=o},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function k(t){return t&&t.__esModule?t:{default:t}}(v(6)).default);o.blotName="underline",o.tagName="U",_.default=o},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),N=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},m=function c(a){return a&&a.__esModule?a:{default:a}}(v(0)),y=v(27),u=["alt","height","width"],l=function(a){function r(){return function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function e(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):N(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=N(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return"string"==typeof f&&n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),n},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,y.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(m.default.Embed);l.blotName="image",l.tagName="IMG",_.default=l},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),N=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},k=v(4),y=function c(a){return a&&a.__esModule?a:{default:a}}(v(27)),u=["height","width"],l=function(a){function r(){return function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function e(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):N(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=N(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),n},{})}},{key:"sanitize",value:function(f){return y.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(k.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",_.default=l},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.FormulaBlot=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),N=function f(n,s,A){null===n&&(n=Function.prototype);var g=Object.getOwnPropertyDescriptor(n,s);if(void 0===g){var b=Object.getPrototypeOf(n);return null===b?void 0:f(b,s,A)}if("value"in g)return g.value;var w=g.get;return void 0===w?void 0:w.call(A)},m=e(v(35)),c=e(v(5)),t=e(v(9));function e(f){return f&&f.__esModule?f:{default:f}}function u(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function l(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?f:n}function a(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var r=function(f){function n(){return u(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,f),P(n,null,[{key:"create",value:function(A){var g=N(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,A);return"string"==typeof A&&(window.katex.render(A,g,{throwOnError:!1,errorColor:"#f00"}),g.setAttribute("data-value",A)),g}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),n}(m.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){function n(){u(this,n);var s=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return s}return a(n,f),P(n,null,[{key:"register",value:function(){c.default.register(r,!0)}}]),n}(t.default);_.FormulaBlot=r,_.default=i},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.CodeToken=_.CodeBlock=void 0;var P=function(){function A(g,b){for(var w=0;w<b.length;w++){var p=b[w];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(g,p.key,p)}}return function(g,b,w){return b&&A(g.prototype,b),w&&A(g,w),g}}(),N=function A(g,b,w){null===g&&(g=Function.prototype);var p=Object.getOwnPropertyDescriptor(g,b);if(void 0===p){var h=Object.getPrototypeOf(g);return null===h?void 0:A(h,b,w)}if("value"in p)return p.value;var d=p.get;return void 0===d?void 0:d.call(w)},m=l(v(0)),c=l(v(5)),t=l(v(9));function l(A){return A&&A.__esModule?A:{default:A}}function a(A,g){if(!(A instanceof g))throw new TypeError("Cannot call a class as a function")}function r(A,g){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?A:g}function i(A,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);A.prototype=Object.create(g&&g.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(A,g):A.__proto__=g)}var f=function(A){function g(){return a(this,g),r(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,A),P(g,[{key:"replaceWith",value:function(w){this.domNode.textContent=this.domNode.textContent,this.attach(),N(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replaceWith",this).call(this,w)}},{key:"highlight",value:function(w){var p=this.domNode.textContent;this.cachedText!==p&&((p.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=w(p),this.domNode.normalize(),this.attach()),this.cachedText=p)}}]),g}(l(v(13)).default);f.className="ql-syntax";var n=new m.default.Attributor.Class("token","hljs",{scope:m.default.Scope.INLINE}),s=function(A){function g(b,w){a(this,g);var p=r(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,b,w));if("function"!=typeof p.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var h=null;return p.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(h),h=setTimeout(function(){p.highlight(),h=null},p.options.interval)}),p.highlight(),p}return i(g,A),P(g,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(f,!0)}}]),P(g,[{key:"highlight",value:function(){var w=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var p=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(h){h.highlight(w.options.highlight)}),this.quill.update(c.default.sources.SILENT),null!=p&&this.quill.setSelection(p,c.default.sources.SILENT)}}}]),g}(t.default);s.DEFAULTS={highlight:null==window.hljs?null:function(A){return window.hljs.highlightAuto(A).value},interval:1e3},_.CodeBlock=f,_.CodeToken=n,_.default=s},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(B,_){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(B,_){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(B,_){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(B,_){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(B,_){B.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(B,_,v){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BubbleTooltip=void 0;var P=function g(b,w,p){null===b&&(b=Function.prototype);var h=Object.getOwnPropertyDescriptor(b,w);if(void 0===h){var d=Object.getPrototypeOf(b);return null===d?void 0:g(d,w,p)}if("value"in h)return h.value;var E=h.get;return void 0===E?void 0:E.call(p)},N=function(){function g(b,w){for(var p=0;p<w.length;p++){var h=w[p];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(b,h.key,h)}}return function(b,w,p){return w&&g(b.prototype,w),p&&g(b,p),b}}(),m=a(v(3)),c=a(v(8)),o=v(43),t=a(o),e=v(15),l=a(v(41));function a(g){return g&&g.__esModule?g:{default:g}}function r(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function i(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?g:b}function f(g,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],s=function(g){function b(w,p){r(this,b),null!=p.modules.toolbar&&null==p.modules.toolbar.container&&(p.modules.toolbar.container=n);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,w,p));return h.quill.container.classList.add("ql-bubble"),h}return f(b,g),N(b,[{key:"extendToolbar",value:function(p){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(p.container),this.buildButtons([].slice.call(p.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(p.container.querySelectorAll("select")),l.default)}}]),b}(t.default);s.DEFAULTS=(0,m.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(b){b?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(g){function b(w,p){r(this,b);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,w,p));return h.quill.on(c.default.events.EDITOR_CHANGE,function(d,E,T,q){if(d===c.default.events.SELECTION_CHANGE)if(null!=E&&E.length>0&&q===c.default.sources.USER){h.show(),h.root.style.left="0px",h.root.style.width="",h.root.style.width=h.root.offsetWidth+"px";var D=h.quill.getLines(E.index,E.length);if(1===D.length)h.position(h.quill.getBounds(E));else{var C=D[D.length-1],Z=h.quill.getIndex(C),I=Math.min(C.length()-1,E.index+E.length-Z),R=h.quill.getBounds(new e.Range(Z,I));h.position(R)}}else document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide()}),h}return f(b,g),N(b,[{key:"listen",value:function(){var p=this;P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){p.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!p.root.classList.contains("ql-hidden")){var h=p.quill.getSelection();null!=h&&p.position(p.quill.getBounds(h))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(p){var h=P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"position",this).call(this,p),d=this.root.querySelector(".ql-tooltip-arrow");if(d.style.marginLeft="",0===h)return h;d.style.marginLeft=-1*h-d.offsetWidth/2+"px"}}]),b}(o.BaseTooltip);A.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),_.BubbleTooltip=A,_.default=s},function(B,_,v){B.exports=v(63)}]).default});
//# sourceMappingURL=scripts.80e4550ab9c7e120.js.map
