PageSourceSearch

https://www.mybridger.com/710.798c020c7447a269.js

js mybridger.com collected 2026-09-30 15:40:39 UTC 649,487 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmybridger=self.webpackChunkmybridger||[]).push([[710],{38710:(dc,on,ge)=>{ge.r(on),ge.d(on,{EngagementsModule:()=>mb});var ke=ge(60177),Ne=ge(74710),Te=ge(19967),ue=ge(89417),Hn=ge(48032),fe=ge.n(Hn),e=ge(54438),Ve=ge(88715),gt=ge(75553),_t=ge(59152),at=ge(48531),ot=ge(85956),Ue=ge(44613),ln=ge(5408);function uc(i,n){1&i&&(e.j41(0,"div"),e.EFF(1," This field is required. "),e.k0s())}function pc(i,n){if(1&i&&(e.j41(0,"mat-error"),e.DNE(1,uc,2,0,"div",11),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.f.decline_note.touched&&(null==t.f.decline_note.errors?null:t.f.decline_note.errors.required))}}let hc=(()=>{class i{constructor(t,s,r,a,l,o){this.dialogRef=t,this.data=s,this.commonService=r,this.helperService=a,this.spinner=l,this.fb=o,this.config={},this.advisorFormData=this.fb.group({decline_note:new ue.MJ("",[ue.k0.required])})}get f(){return this.advisorFormData.controls}onSubmitDeclineNotes(){if(this.advisorFormData.valid){this.spinner.show();let t={};t={cancelNote:this.advisorFormData.value.decline_note,engagementID:this.data.id},this.commonService.putAPICallForNode({url:"/api/engagement/client-bridger-request-canclled-engagement",data:t}).subscribe(s=>{this.spinner.hide(),200==s.status?(fe().fire("Success",s.msg,"success"),this.dialogRef.close()):fe().fire("OOPS!",s.msg,"error")},s=>{fe().fire("OOPS!",s.error.message,"error")})}}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(Te.RN),e.rXU(Te.xh),e.rXU(Ve.h),e.rXU(gt.w),e.rXU(_t.ex),e.rXU(ue.ok))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-note-dialog"]],decls:16,vars:4,consts:[[3,"ngSubmit","formGroup"],["mat-dialog-title","",1,"flex","justify-between"],[1,"titleText"],["type","button","mat-icon-button","",3,"click"],["name","close","label","Close",3,"size"],["mat-dialog-content",""],[3,"config"],[1,"content-body"],[1,"comn-form"],[1,"form-group"],["placeholder","Type...","formControlName","decline_note",1,"form-control"],[4,"ngIf"],["mat-dialog-actions","",1,"justify-end"],["type","submit","mat-flat-button","","color","primary"]],template:function(s,r){1&s&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return r.onSubmitDeclineNotes()}),e.j41(1,"div",1)(2,"h1",2),e.EFF(3,"Add Note "),e.k0s(),e.j41(4,"button",3),e.bIt("click",function(){return r.dialogRef.close()}),e.nrm(5,"ui-icon",4),e.k0s()(),e.j41(6,"div",5)(7,"perfect-scrollbar",6)(8,"div",7)(9,"div",8)(10,"div",9),e.nrm(11,"textarea",10),e.DNE(12,pc,2,1,"mat-error",11),e.k0s()()()()(),e.j41(13,"div",12)(14,"button",13),e.EFF(15,"Save"),e.k0s()()()),2&s&&(e.Y8G("formGroup",r.advisorFormData),e.R7$(5),e.Y8G("size",20),e.R7$(2),e.Y8G("config",r.config),e.R7$(5),e.Y8G("ngIf",r.f.decline_note.errors))},dependencies:[at.H,ke.bT,ot.iV,Te.KI,Te.PQ,Te.$t,Ue.k5,ue.qT,ue.me,ue.BC,ue.cb,ue.j4,ue.JD,ln.ZF]})}}return i})();var vs=ge(67336),Pe=ge(45312),fc=ge(19892),mc=ge(97586),ve=ge.n(mc),gc=ge(31038),cn=ge(43913),ws=ge(82484),dn=ge(60914),Vn=ge(45725);function _c(i,n){if(1&i){const t=e.RV6();e.j41(0,"img",8),e.bIt("error",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.handleImageError())}),e.k0s()}if(2&i){const t=e.XpG();e.Y8G("src",t.imageUrl,e.B4B)}}function vc(i,n){if(1&i&&(e.j41(0,"div",9),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.JRh(t.initial)}}function wc(i,n){1&i&&(e.j41(0,"P",12),e.nrm(1,"br"),e.EFF(2," Germany:- +49 0800 4697567 "),e.nrm(3,"br"),e.EFF(4," Portugal: +351 800 181 698 "),e.k0s())}function bc(i,n){if(1&i&&(e.j41(0,"div",10)(1,"p",11),e.EFF(2,"Dial-in Number :"),e.k0s(),e.j41(3,"p",12),e.EFF(4),e.nrm(5,"br"),e.EFF(6),e.k0s(),e.DNE(7,wc,5,0,"P",13),e.k0s()),2&i){const t=e.XpG();e.R7$(4),e.SpI(" USA:- ",t.dialno,""),e.R7$(2),e.SpI(" UK:- ",t.dialnouk," "),e.R7$(),e.Y8G("ngIf",28==t.company_id)}}function yc(i,n){if(1&i&&(e.j41(0,"div",10)(1,"p",11),e.EFF(2,"Passcode:"),e.k0s(),e.j41(3,"p",12),e.EFF(4),e.k0s()()),2&i){const t=e.XpG();e.R7$(4),e.SpI(" ",t.passcode," ")}}function xc(i,n){if(1&i&&(e.j41(0,"div",10)(1,"p",11),e.EFF(2,"Passcode:"),e.k0s(),e.j41(3,"p",12),e.EFF(4),e.k0s()()),2&i){const t=e.XpG();e.R7$(4),e.SpI(" ",t.passcode," ")}}let un=(()=>{class i{constructor(){this.phoneno="",this.email="",this.advisorData=null,this.hasImage=!0,this.advisorName="",this.initial="",this.imageUrl="",this.formattedTime="",this.engagement_id="",this.advisor_id="",this.dialno="",this.dialnouk="",this.passcode="",this.activeLink="",this.user_type="",this.company_id=0}agInit(t){this._params=t,this.advisorData=t.value||{};const s=this._params?.data?.actions?.item_data?.advisor_details||{};this.phoneno=s?.phoneno||"",this.email=s?.email||"",this.advisorName=this.advisorData?.advisor_name||"",this.initial=this.advisorName?.charAt(0)||"";const r=this.advisorData?.profileimage;this.hasImage=!!r,this.imageUrl=r?`${Pe.c.media_url}advisor_image/${r}`:"assets/default-profile.png",this.engagement_id=this.advisorData?.engagement_id||"",this.advisor_id=this.advisorData?.advisor_id||"",this.dialno=this.advisorData?.dialn
1o||"",this.dialnouk=this.advisorData?.dialnouk||"",this.passcode=this.advisorData?.passcode||"",this.activeLink=this.advisorData?.activeLink||"",this.user_type=this.advisorData?.user_type||"",this.company_id=this.advisorData?.company_id||0}refresh(){return!1}handleImageError(){this.hasImage=!1}static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-advisor-cell-renderer"]],decls:11,vars:6,consts:[[1,"profile-container"],[1,"profile-image"],["alt","profile",3,"src","error",4,"ngIf"],["class","initial",4,"ngIf"],[1,"profile-info"],[1,"name",2,"white-space","normal","word-wrap","break-word","overflow-wrap","break-word"],[1,"time"],["class","smInfoText",4,"ngIf"],["alt","profile",3,"error","src"],[1,"initial"],[1,"smInfoText"],[1,"mb-0"],[1,"mb-0","darkText"],["class","mb-0 darkText",4,"ngIf"]],template:function(s,r){1&s&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,_c,1,1,"img",2)(3,vc,2,1,"div",3),e.k0s(),e.j41(4,"div",4)(5,"div",5),e.EFF(6),e.k0s(),e.j41(7,"div",6),e.DNE(8,bc,8,3,"div",7)(9,yc,5,1,"div",7)(10,xc,5,1,"div",7),e.k0s()()()),2&s&&(e.R7$(2),e.Y8G("ngIf",r.hasImage&&r.imageUrl),e.R7$(),e.Y8G("ngIf",!r.hasImage),e.R7$(3),e.SpI(" ",r.advisorName," "),e.R7$(2),e.Y8G("ngIf","UPCOMING"==r.activeLink||"LIVE"==r.activeLink||"ALLUPCOMING"==r.activeLink||"ALLLIVE"==r.activeLink),e.R7$(),e.Y8G("ngIf",("UPCOMING"==r.activeLink||"LIVE"==r.activeLink||"ALLUPCOMING"==r.activeLink||"ALLLIVE"==r.activeLink)&&"2"!=r.user_type),e.R7$(),e.Y8G("ngIf",("UPCOMING"==r.activeLink||"ALLUPCOMING"==r.activeLink)&&"2"==r.user_type))},dependencies:[ke.bT],styles:[".profile-container[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;overflow:hidden;gap:10px;line-height:1;padding:4px 8px}.profile-image[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:50%;background-color:#fc0;display:flex;align-items:center;justify-content:center;flex-shrink:0}.profile-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:50%}.initial[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#555}.profile-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.name[_ngcontent-%COMP%]{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}.time[_ngcontent-%COMP%]{font-size:12px;color:#888;white-space:nowrap;margin-top:4px}.smInfoText[_ngcontent-%COMP%]{font-size:12px;color:#888;margin:0}.darkText[_ngcontent-%COMP%]{color:#333;font-weight:500}"]})}}return i})();var Pt=ge(48309),je=ge(13918);function kc(i,n){if(1&i&&(e.j41(0,"a",8),e.nI1(1,"customIdEncode"),e.j41(2,"span"),e.EFF(3,"Details"),e.k0s()()),2&i){const t=e.XpG();e.Mz_("routerLink","/user/engagements/appointment-details/",e.bMT(1,2,t.engagementData.id),"")}}function Cc(i,n){if(1&i&&(e.j41(0,"a",8),e.nI1(1,"customIdEncode"),e.j41(2,"span"),e.EFF(3,"Live Details"),e.k0s()()),2&i){const t=e.XpG();e.Mz_("routerLink","/user/engagements/live-details/",e.bMT(1,2,t.engagementData.id),"")}}function Ec(i,n){if(1&i&&(e.j41(0,"a",8),e.nI1(1,"customIdEncode"),e.j41(2,"span"),e.EFF(3,"Call Logs"),e.k0s()()),2&i){const t=e.XpG();e.Mz_("routerLink","/user/engagements/live-details/",e.bMT(1,2,t.engagementData.id),"")}}function Tc(i,n){if(1&i){const t=e.RV6();e.j41(0,"a",9),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.approveEngagement(r.engagementData.id))}),e.j41(1,"span"),e.EFF(2,"Approve"),e.k0s()()}}function Ac(i,n){if(1&i){const t=e.RV6();e.j41(0,"a",9),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.approveCancelledEngagement(r.engagementData.id))}),e.j41(1,"span"),e.EFF(2,"Approve"),e.k0s()()}}function Ic(i,n){if(1&i){const t=e.RV6();e.j41(0,"a",9),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.declineEngagement(r.engagementData.id))}),e.j41(1,"span"),e.EFF(2,"Decline"),e.k0s()()}}function Sc(i,n){if(1&i){const t=e.RV6();e.j41(0,"a",9),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.reschedule_engagement(r.engagementData.project_id,r.engagementData.advisor_id,r.engagementData.id))}),e.j41(1,"span"),e.EFF(2,"Reschedule"),e.k0s()()}}function Dc(i,n){if(1&i){const t=e.RV6();e.j41(0,"a",9),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.cancelAddNoteModalOpen(r.engagementData.id,3))}),e.j41(1,"span"),e.EFF(2,"Cancel"),e.k0s()()}}let pn=(()=>{class i{constructor(t,s,r){this.commonService=t,this.spinner=s,this.helperService=r,this.activeLink="",this.engagementData=[],this.user_type=""}agInit(t){this.params=t,this.showNotesPopup=t.showNotesPopup,this.openNoteDialog=t.openNoteDialog,this.approveEngagement=t.approveEngagement,this.approveCancelledEngagement=t.approveCancelledEngagement,this.declineEngagement=t.declineEngagement,this.reschedule_engagement=t.reschedule_engagement,this.cancelAddNoteModalOpen=t.cancelAddNoteModalOpen,this.activeLink=t.value?.activeLink||"",this.engagementData=t.value?.engagementData||[],this.user_type=t.value?.user_type||""}refresh(t){return this.params=t,!0}callShowNotesPopup(t){this.showNotesPopup?this.showNotesPopup(t):console.error("showNotesPopup method is not defined")}calLOpenNoteDialog(t,s,r){this.openNoteDialog?this.openNoteDialog(t,s,r):console.error("openNoteDialog method is not defined")}callApproveEngagement(t){this.approveEngagement?this.approveEngagement(t):console.error("approveEngagement method is not defined")}callApproveCancelledEngagement(t){this.approveCancelledEngagement?this.approveCancelledEngagement(t):console.error("approveCancelledEngagement method is not defined")}callDeclineEngagement(t){this.declineEngagement?this.declineEngagement(t):console.error("declineEngagement method is not defined")}callRescheduleEngagement(t,s,r){this.reschedule_engagement?this.reschedule_engagement(t,s,r):console.error("reschedule_engagement method is not defined")}callCancelAddNoteModalOpen(t,s){this.cancelAddNoteModalOpen?this.cancelAddNoteModalOpen(t,s):console.error("cancelAddNoteModalOpen method is not defined")}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(Ve.h),e.rXU(_t.ex),e.rXU(gt.w))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-engagement-action-menu-renderer"]],decls:15,vars:9,consts:[["menu","matMenu"],[1,"menu-cell",2,"display","flex","align-items","center","justify-content","center","height","100%",3,"click"],["type","button",1,"note-link",3,"click"],["name","book","label","Note"],["mat-icon-button","",3,"click","matMenuTriggerFor"],["name","more","label","More actions"],["mat-menu-item","",3,"routerLink",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(s,r){if(1&s){const a=e.RV6();e.j41(0,"div",1),e.bIt("click",function(o){return e.eBV(a),e.Njj(o.stopPropagation())}),e.j41(1,"button",2),e.bIt("click",function(){return e.eBV(a),e.Njj(r.calLOpenNoteDialog(r.engagementData.note,r.engagementData.cancel_note,r.engagementData.status))}),e.nrm(2,"ui-icon",3),e.k0s(),e.j41(3,"button",4),e.bIt("click",function(o){return e.eBV(a),e.Njj(o.stopPropagation())}),e.nrm(4,"ui-icon",5),e.k0s(),e.j41(5,"mat-menu",null,0),e.DNE(7,kc,4,4,"a",6)(8,Cc,4,4,"a",6)(9,Ec,4,4,"a",6)(10,Tc,3,0,"a",7)(11,Ac,3,0,"a",7)(12,Ic,3,0,"a",7)(13,Sc,3,0,"a",7)(14,Dc,3,0,"a",7),e.k0s()()}if(2&s){const a=e.sdS(6);e.R7$(3),e.Y8G("matMenuTriggerFor",a),e.R7$(4),e.Y8G("ngIf","LIVE"!=r.activeLink),e.R7$(),e.Y8G("ngIf","LIVE"==r.activeLink),e.R7$(),e.Y8G("ngIf","PREVIOUS"==r.activeLink&&"2"!=r.user_type),e.R7$(),e.Y8G("ngIf","PENDING"==r.activeLink&&0==r.engagementData.status&&"2"!=r.user_type),e.R7$(),e.Y8G("ngIf","PENDING"==r.activeLink&&4==r.engagementData.status&&"2"!=r.user_type),e.R7$(),e.Y8G("ngIf","PENDING"==r.activeLink&&0==r.engagementData.status&&"2"!=r.user_type&&"3"!=r.user_type),e.R7$(),e.Y8G("ngIf",!("UPCOMING"!=r.activeLink&&"ALLUPCOMING"!=r.activeLink&&"PREVIOUS"!=r.activeLink||"2"
1==r.user_type||"3"==r.user_type||1==r.engagementData.status&&1==r.engagementData.after_engagement_status)),e.R7$(),e.Y8G("ngIf",("UPCOMING"==r.activeLink||"ALLUPCOMING"==r.activeLink)&&"2"!=r.user_type)}},dependencies:[at.H,ke.bT,Ne.Wk,ot.iV,Pt.pI,Pt.gy,Pt.fS,je.DH],styles:[".circle-button[_ngcontent-%COMP%]{border:none;background:none;cursor:pointer;font-size:1.5em;color:var(--text-primary)}.outline-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:transparent;-webkit-text-stroke:1px var(--text-primary)}.active-green[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#30a930;-webkit-text-stroke:0}.active-red[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#d52b2b;-webkit-text-stroke:0}.circle-button[_ngcontent-%COMP%], .more-dropdown-btn[_ngcontent-%COMP%]{position:relative;z-index:2}.small-btn[_ngcontent-%COMP%]{position:absolute;right:60px;font-size:12px;padding:4px 8px;height:28px;min-width:auto;display:flex;align-items:center;justify-content:center;text-align:center}.rag-green-outer[_ngcontent-%COMP%]{color:#3c34!important}.question-mark-link[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:22px;margin-left:15px;z-index:2;cursor:pointer}.question-mark-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--text-secondary)}.question-mark-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--accent-400)}.question-mark-link.color-green[_ngcontent-%COMP%]{color:var(--success)}.fa-clock-link[_ngcontent-%COMP%]{color:var(--info);font-size:22px;margin-left:15px;z-index:2;cursor:pointer}.fa-clock-link[_ngcontent-%COMP%]:hover{color:var(--accent-400)}.undo-icon[_ngcontent-%COMP%]{color:var(--info);font-size:22px;margin-left:15px;z-index:2;cursor:pointer}.undo-icon[_ngcontent-%COMP%]:hover{color:var(--accent-400)}.hold-unhold-button[_ngcontent-%COMP%]{font-size:22px;margin-left:15px;z-index:2;cursor:pointer}.hold-unhold-button[_ngcontent-%COMP%]:hover{color:var(--accent-400)}.redText[_ngcontent-%COMP%]{color:var(--danger);font-weight:900}.blueTextx-2[_ngcontent-%COMP%]{color:var(--info);font-weight:900}.grid-with-pager[_ngcontent-%COMP%]{display:flex;flex-direction:column}.pager[_ngcontent-%COMP%]   .form-select-sm[_ngcontent-%COMP%]{padding:.25rem .5rem;font-size:.875rem}.pager[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:2rem;text-align:center;padding:0;line-height:1.75}.note-link[_ngcontent-%COMP%]{font-size:21px;background:none;border:none;padding:0;margin:0;box-shadow:none;outline:none;z-index:2}.note-link[_ngcontent-%COMP%]:hover{color:var(--accent-400)}"]})}}return i})();var Rc=ge(86221),Xn=ge(46899),bs=ge(83269),Pc=ge(43684),hn=ge(87297),fn=ge(25084),Wn=ge(224),ys=ge(88588),Oc=ge(75130),qn=ge(52688);const Fc=["fruitInput"],Nc=["auto"],Mc=["chipList"],mn=()=>[1,2];function Lc(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.filterBoxToggle())}),e.nrm(1,"ui-icon",18),e.k0s()}if(2&i){const t=e.XpG();e.Y8G("ngClass",1==t.filterToggle?"open":""),e.R7$(),e.Y8G("size",20)}}function jc(i,n){1&i&&(e.j41(0,"button",53),e.nrm(1,"ui-icon",54),e.k0s()),2&i&&(e.R7$(),e.Y8G("size",16))}function Gc(i,n){if(1&i){const t=e.RV6();e.j41(0,"mat-chip",51),e.bIt("removed",function(){const r=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.remove(r))}),e.EFF(1),e.DNE(2,jc,2,1,"button",52),e.k0s()}if(2&i){const t=n.$implicit,s=e.XpG(2);e.Y8G("selectable",s.selectable)("removable",s.removable),e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",s.removable)}}function Bc(i,n){1&i&&(e.j41(0,"mat-hint",55),e.EFF(1," Choose at least one option "),e.k0s())}function Uc(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",19)(1,"div",20)(2,"div",21)(3,"h2",22),e.EFF(4,"Search & Filter"),e.k0s()(),e.j41(5,"div",23)(6,"form",24),e.bIt("ngSubmit",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onSubmit())}),e.j41(7,"div",25)(8,"div",26)(9,"mat-form-field",27)(10,"mat-label"),e.EFF(11,"Keyword search"),e.k0s(),e.j41(12,"mat-chip-list",28,0),e.DNE(14,Gc,3,4,"mat-chip",29),e.j41(15,"input",30,1),e.bIt("matChipInputTokenEnd",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.add(r))}),e.k0s()()()(),e.j41(17,"div",26)(18,"label",31),e.EFF(19,"Search by"),e.k0s(),e.j41(20,"div",32)(21,"mat-checkbox",33),e.EFF(22,"Project Title "),e.k0s(),e.j41(23,"mat-checkbox",34),e.EFF(24,"Advisor "),e.k0s(),e.j41(25,"mat-checkbox",35),e.EFF(26,"Organization "),e.k0s(),e.j41(27,"mat-checkbox",36),e.EFF(28,"Client "),e.k0s(),e.j41(29,"mat-checkbox",37),e.EFF(30,"Failed Engagement "),e.k0s(),e.j41(31,"mat-checkbox",38),e.EFF(32,"Engagement ID "),e.k0s(),e.nrm(33,"br"),e.DNE(34,Bc,2,0,"mat-hint",39),e.k0s()(),e.j41(35,"div",26)(36,"div",40)(37,"div",26)(38,"mat-form-field",27)(39,"mat-label"),e.EFF(40,"Project From Date"),e.k0s(),e.j41(41,"input",41,2),e.bIt("click",function(){e.eBV(t);const r=e.sdS(47);return e.Njj(r.open())}),e.k0s(),e.j41(43,"mat-datepicker-toggle",42),e.bIt("click",function(){e.eBV(t);const r=e.sdS(42),a=e.XpG();return e.Njj(a.clearDate(r,"from_date"))}),e.nrm(44,"ui-icon",43),e.k0s(),e.nrm(45,"mat-datepicker-toggle",44)(46,"mat-datepicker",null,3),e.k0s()(),e.j41(48,"div",26)(49,"mat-form-field",27)(50,"mat-label"),e.EFF(51,"Project To Date"),e.k0s(),e.j41(52,"input",45,4),e.bIt("click",function(){e.eBV(t);const r=e.sdS(58);return e.Njj(r.open())}),e.k0s(),e.j41(54,"mat-datepicker-toggle",42),e.bIt("click",function(){e.eBV(t);const r=e.sdS(53),a=e.XpG();return e.Njj(a.clearDate(r,"to_date"))}),e.nrm(55,"ui-icon",43),e.k0s(),e.nrm(56,"mat-datepicker-toggle",44)(57,"mat-datepicker",null,5),e.k0s()()()()(),e.j41(59,"div",46),e.nrm(60,"div",47),e.j41(61,"div",48)(62,"button",49),e.EFF(63," Apply Search "),e.k0s(),e.j41(64,"button",50),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.clearFilters())}),e.EFF(65," Clear Search "),e.k0s()()()()()()()}if(2&i){const t=e.sdS(13),s=e.sdS(47),r=e.sdS(58),a=e.XpG();e.Y8G("ngClass",1==a.filterToggle?"open":""),e.R7$(6),e.Y8G("formGroup",a.filterForm),e.R7$(8),e.Y8G("ngForOf",a.keywords),e.R7$(),e.Y8G("formControl",a.fruitCtrl)("matChipInputFor",t)("matChipInputSeparatorKeyCodes",a.separatorKeysCodes)("matChipInputAddOnBlur",a.addOn
1Blur),e.R7$(19),e.Y8G("ngIf",!(a.filterForm.value.p_title||a.filterForm.value.advisor||a.filterForm.value.organization||a.filterForm.value.client||a.filterForm.value.failed_engagement||a.filterForm.value.enagagement_id)),e.R7$(7),e.Y8G("max",a.todayDate)("matDatepicker",s),e.R7$(4),e.Y8G("for",s),e.R7$(7),e.Y8G("max",a.todayDate)("matDatepicker",r),e.R7$(4),e.Y8G("for",r)}}function $c(i,n){if(1&i&&(e.j41(0,"mat-option",60),e.EFF(1),e.k0s()),2&i){const t=n.$implicit;e.Y8G("value",t.type),e.R7$(),e.SpI(" ",t.label," ")}}function zc(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",56)(1,"mat-form-field",57)(2,"mat-label"),e.EFF(3,"Select"),e.k0s(),e.j41(4,"mat-select",58),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.activeLink,r)||(a.activeLink=r),e.Njj(r)}),e.bIt("selectionChange",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.saveDataInLocal(r.value))}),e.DNE(5,$c,2,2,"mat-option",59),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(4),e.R50("ngModel",t.activeLink),e.R7$(),e.Y8G("ngForOf",t.links)}}function Yc(i,n){if(1&i&&(e.j41(0,"mat-option",60),e.EFF(1),e.k0s()),2&i){const t=n.$implicit;e.Y8G("value",t.type),e.R7$(),e.SpI(" ",t.label," ")}}function Hc(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",56)(1,"mat-form-field",57)(2,"mat-label"),e.EFF(3,"Select"),e.k0s(),e.j41(4,"mat-select",58),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.activeLink,r)||(a.activeLink=r),e.Njj(r)}),e.bIt("selectionChange",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.saveDataInLocal(r.value))}),e.DNE(5,Yc,2,2,"mat-option",59),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(4),e.R50("ngModel",t.activeLink),e.R7$(),e.Y8G("ngForOf",t.natLinks)}}function Vc(i,n){if(1&i&&(e.j41(0,"mat-option",60),e.EFF(1),e.k0s()),2&i){const t=n.$implicit;e.Y8G("value",t.type),e.R7$(),e.SpI(" ",t.label," ")}}function Xc(i,n){if(1&i){const t=e.RV6();e.j41(0,"mat-option",64),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.statusChangeFilter("pending"))}),e.EFF(1,"Pending"),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("ngClass","pending"==t.engageStatusFilter?"active":"")("value","pending")}}function Wc(i,n){if(1&i){const t=e.RV6();e.j41(0,"mat-option",64),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.statusChangeFilter("scheduled"))}),e.EFF(1,"Scheduled"),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("ngClass","scheduled"==t.engageStatusFilter?"active":"")("value","scheduled")}}function qc(i,n){if(1&i){const t=e.RV6();e.j41(0,"mat-option",64),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.statusChangeFilter("completed"))}),e.EFF(1,"Completed"),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("ngClass","completed"==t.engageStatusFilter?"active":"")("value","completed")}}function Kc(i,n){if(1&i){const t=e.RV6();e.j41(0,"mat-option",64),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.statusChangeFilter("canceled"))}),e.EFF(1,"Canceled"),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("ngClass","canceled"==t.engageStatusFilter?"active":"")("value","canceled")}}function Zc(i,n){if(1&i){const t=e.RV6();e.j41(0,"mat-option",64),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.statusChangeFilter("failed"))}),e.EFF(1," Failed"),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("ngClass","failed"==t.engageStatusFilter?"active":"")("value","declined")}}function Jc(i,n){if(1&i){const t=e.RV6();e.j41(0,"mat-option",64),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.statusChangeFilter("declined"))}),e.EFF(1,"Declined"),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("ngClass","declined"==t.engageStatusFilter?"active":"")("value","declined")}}function Qc(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",56)(1,"div",61)(2,"mat-form-field",57)(3,"mat-label"),e.EFF(4,"Select"),e.k0s(),e.j41(5,"mat-select",58),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.activeLink,r)||(a.activeLink=r),e.Njj(r)}),e.bIt("selectionChange",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.saveDataInLocal(r.value))}),e.DNE(6,Vc,2,2,"mat-option",59),e.k0s()(),e.j41(7,"mat-form-field",62)(8,"mat-label"),e.EFF(9,"Sort By"),e.k0s(),e.j41(10,"mat-select",63,6),e.mxI("valueChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.selectedSortOptions,r)||(a.selectedSortOptions=r),e.Njj(r)}),e.j41(12,"mat-option",64),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.statusChangeFilter("all"))}),e.EFF(13,"All"),e.k0s(),e.DNE(14,Xc,2,2,"mat-option",65)(15,Wc,2,2,"mat-option",65)(16,qc,2,2,"mat-option",65)(17,Kc,2,2,"mat-option",65)(18,Zc,2,2,"mat-option",65)(19,Jc,2,2,"mat-option",65),e.k0s()()()()}if(2&i){const t=e.XpG();e.R7$(5),e.R50("ngModel",t.activeLink),e.R7$(),e.Y8G("ngForOf",t.clientLinks),e.R7$(4),e.R50("value",t.selectedSortOptions),e.R7$(2),e.Y8G("ngClass","all"==t.engageStatusFilter?"active":"")("value","declined"),e.R7$(2),e.Y8G("ngIf","PREVIOUS"==t.activeLink),e.R7$(),e.Y8G("ngIf","PREVIOUS"==t.activeLink),e.R7$(),e.Y8G("ngIf","PREVIOUS"==t.activeLink),e.R7$(),e.Y8G("ngIf","PREVIOUS"==t.activeLink),e.R7$(),e.Y8G("ngIf","PREVIOUS"==t.activeLink),e.R7$(),e.Y8G("ngIf","PREVIOUS"==t.activeLink)}}function ed(i,n){1&i&&(e.j41(0,"div",83)(1,"div",84),e.nrm(2,"div",85),e.k0s(),e.j41(3,"div",86),e.nrm(4,"div",85),e.k0s(),e.j41(5,"div",87),e.nrm(6,"div",85),e.k0s(),e.j41(7,"div",88),e.nrm(8,"div",85),e.k0s(),e.j41(9,"div",88),e.nrm(10,"div",85),e.k0s(),e.j41(11,"div",89),e.nrm(12,"div",85),e.k0s(),e.j41(13,"div",88),e.nrm(14,"div",85),e.k0s(),e.j41(15,"div",90),e.nrm(16,"div",85),e.k0s()())}function td(i,n){1&i&&(e.j41(0,"div",80)(1,"div",81),e.DNE(2,ed,17,0,"div",82),e.k0s()()),2&i&&(e.R7$(2),e.Y8G("ngForOf",e.lJ4(1,mn)))}
1function nd(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",77),e.DNE(1,td,3,2,"div",78),e.j41(2,"ag-grid-angular",79),e.bIt("gridReady",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onGridReady(r))})("columnMoved",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onColumnMoved())})("rowClicked",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onRowClicked(r))}),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.isPendingLoading||t.isUpcomingLoading||t.isAllUpcomingLoading||t.isPreviousLoading),e.R7$(),e.Y8G("theme",t.theme)("rowData",t.engagementListData)("columnDefs",t.engagementListColumn)("defaultColDef",t.defaultColDef)("suppressExcelExport",!0)("pagination",!1)("paginationPageSize",10)("suppressDragLeaveHidesColumns",!0)}}function id(i,n){1&i&&(e.j41(0,"div",83)(1,"div",84),e.nrm(2,"div",85),e.k0s(),e.j41(3,"div",86),e.nrm(4,"div",85),e.k0s(),e.j41(5,"div",87),e.nrm(6,"div",85),e.k0s(),e.j41(7,"div",88),e.nrm(8,"div",85),e.k0s(),e.j41(9,"div",88),e.nrm(10,"div",85),e.k0s(),e.j41(11,"div",89),e.nrm(12,"div",85),e.k0s(),e.j41(13,"div",86),e.nrm(14,"div",85),e.k0s(),e.j41(15,"div",90),e.nrm(16,"div",85),e.k0s()())}function rd(i,n){1&i&&(e.j41(0,"div",80)(1,"div",81),e.DNE(2,id,17,0,"div",82),e.k0s()()),2&i&&(e.R7$(2),e.Y8G("ngForOf",e.lJ4(1,mn)))}function sd(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",77),e.DNE(1,rd,3,2,"div",78),e.j41(2,"ag-grid-angular",79),e.bIt("gridReady",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onGridReady(r))})("columnMoved",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onColumnMoved())})("rowClicked",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onRowClicked(r))}),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.isLiveLoading||t.isAllLiveLoading),e.R7$(),e.Y8G("theme",t.theme)("rowData",t.liveEngagementListData)("columnDefs",t.liveEngagementListColumn)("defaultColDef",t.defaultColDef)("suppressExcelExport",!0)("pagination",!1)("paginationPageSize",10)("suppressDragLeaveHidesColumns",!0)}}function ad(i,n){if(1&i&&(e.j41(0,"option",60),e.EFF(1),e.k0s()),2&i){const t=n.$implicit;e.Y8G("value",t),e.R7$(),e.JRh(t)}}function od(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",66),e.DNE(1,nd,3,9,"div",67)(2,sd,3,9,"div",67),e.j41(3,"div",68)(4,"div",69)(5,"label",70),e.EFF(6,"Page Size:"),e.k0s(),e.j41(7,"select",71),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.pageSize,r)||(a.pageSize=r),e.Njj(r)}),e.bIt("ngModelChange",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onPageSizeChanged())}),e.DNE(8,ad,2,2,"option",59),e.k0s()(),e.j41(9,"div",72),e.EFF(10),e.k0s(),e.j41(11,"button",73),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.prevPage())}),e.nrm(12,"ui-icon",74),e.k0s(),e.j41(13,"button",75),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.nextPage())}),e.nrm(14,"ui-icon",76),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf","LIVE"!=t.activeLink&&"ALLLIVE"!=t.activeLink),e.R7$(),e.Y8G("ngIf","LIVE"==t.activeLink||"ALLLIVE"==t.activeLink),e.R7$(5),e.R50("ngModel",t.pageSize),e.R7$(),e.Y8G("ngForOf",t.pageSizeOptions),e.R7$(2),e.E5c(" ",t.startRecord," to ",t.endRecord," of ",t.totalRecords," "),e.R7$(),e.Y8G("disabled",1===t.currentPage),e.R7$(2),e.Y8G("disabled",t.currentPage===t.totalPages)}}function ld(i,n){1&i&&(e.j41(0,"div",83)(1,"div",84),e.nrm(2,"div",85),e.k0s(),e.j41(3,"div",86),e.nrm(4,"div",85),e.k0s(),e.j41(5,"div",88),e.nrm(6,"div",85),e.k0s(),e.j41(7,"div",87),e.nrm(8,"div",85),e.k0s(),e.j41(9,"div",89),e.nrm(10,"div",85),e.k0s(),e.j41(11,"div",90),e.nrm(12,"div",85),e.k0s()())}function cd(i,n){1&i&&(e.j41(0,"div",80)(1,"div",81),e.DNE(2,ld,13,0,"div",82),e.k0s()()),2&i&&(e.R7$(2),e.Y8G("ngForOf",e.lJ4(1,mn)))}function dd(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",77),e.DNE(1,cd,3,2,"div",78),e.j41(2,"ag-grid-angular",79),e.bIt("gridReady",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onGridReady(r))})("columnMoved",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onColumnMoved())})("rowClicked",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onRowClicked(r))}),e.k0s()()}if(2&i){const t=e.XpG(2);
1e.R7$(),e.Y8G("ngIf",t.isUpcomingLoading),e.R7$(),e.Y8G("theme",t.theme)("rowData",t.clientUpcomingEngagementListData)("columnDefs",t.clientUpcomingEngagementListColumn)("defaultColDef",t.defaultColDef)("suppressExcelExport",!0)("pagination",!1)("paginationPageSize",10)("suppressDragLeaveHidesColumns",!0)}}function ud(i,n){1&i&&(e.j41(0,"div",83)(1,"div",84),e.nrm(2,"div",85),e.k0s(),e.j41(3,"div",86),e.nrm(4,"div",85),e.k0s(),e.j41(5,"div",88),e.nrm(6,"div",85),e.k0s(),e.j41(7,"div",87),e.nrm(8,"div",85),e.k0s()())}function pd(i,n){1&i&&(e.j41(0,"div",80)(1,"div",81),e.DNE(2,ud,9,0,"div",82),e.k0s()()),2&i&&(e.R7$(2),e.Y8G("ngForOf",e.lJ4(1,mn)))}function hd(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",77),e.DNE(1,pd,3,2,"div",78),e.j41(2,"ag-grid-angular",79),e.bIt("gridReady",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onGridReady(r))})("columnMoved",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onColumnMoved())})("rowClicked",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onRowClicked(r))}),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.isPreviousLoading),e.R7$(),e.Y8G("theme",t.theme)("rowData",t.clientPreviousEngagementListData)("columnDefs",t.clientPreviousEngagementListColumn)("defaultColDef",t.defaultColDef)("suppressExcelExport",!0)("pagination",!1)("paginationPageSize",10)("suppressDragLeaveHidesColumns",!0)}}function fd(i,n){if(1&i&&(e.j41(0,"option",60),e.EFF(1),e.k0s()),2&i){const t=n.$implicit;e.Y8G("value",t),e.R7$(),e.JRh(t)}}function md(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",66),e.DNE(1,dd,3,9,"div",67)(2,hd,3,9,"div",67),e.j41(3,"div",68)(4,"div",69)(5,"label",70),e.EFF(6,"Page Size:"),e.k0s(),e.j41(7,"select",71),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.pageSize,r)||(a.pageSize=r),e.Njj(r)}),e.bIt("ngModelChange",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onPageSizeChanged())}),e.DNE(8,fd,2,2,"option",59),e.k0s()(),e.j41(9,"div",72),e.EFF(10),e.k0s(),e.j41(11,"button",73),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.prevPage())}),e.nrm(12,"ui-icon",74),e.k0s(),e.j41(13,"button",75),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.nextPage())}),e.nrm(14,"ui-icon",76),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf","UPCOMING"==t.activeLink),e.R7$(),e.Y8G("ngIf","PREVIOUS"==t.activeLink),e.R7$(5),e.R50("ngModel",t.pageSize),e.R7$(),e.Y8G("ngForOf",t.pageSizeOptions),e.R7$(2),e.E5c(" ",t.startRecord," to ",t.endRecord," of ",t.totalRecords," "),e.R7$(),e.Y8G("disabled",1===t.currentPage),e.R7$(2),e.Y8G("disabled",t.currentPage===t.totalPages)}}cn.syG.registerModules([cn.JKr,cn.n76,cn.XG7]);const gn={interested:"accent","interested on hold":"warning","time slot requested":"info","new request":"warning","not approved":"warning","cancel request":"danger",cancel:"danger","pending em/associate review":"warning","completed - offline":"success","in-progress":"info"};let gd=(()=>{class i{constructor(t,s,r,a,l,o,u,p,_){this.hostRef=t,this.dialog=s,this.commonService=r,this.datePipe=a,this.fb=l,this.helperService=o,this.spinner=u,this.router=p,this.activatedRoute=_,this.currentTime=(new Date).toLocaleString(),this.activeLink="",this.formSubmitted=!1,this.filterToggle=!1,this.todayDate=new Date,this.advisor_details=[],this.addOnBlur=!0,this.selectable=!0,this.removable=!0,this.separatorKeysCodes=[vs.Fm,vs.KE],this.fruitCtrl=new ue.MJ,this.keywords=[],this.timeIntervalStatus=!0,this.durationTickers=[],this.search_by_keyword="",this.csvData=[],this.engageStatusFilter="all",this.pendingPage=1,this.upcomingPage=1,this.allUpcomingPage=1,this.livePage=1,this.allLivePage=1,this.previousPage=1,this.showProgressSpinner=!1,this.links=[{type:"PENDING",label:"Pending",totalCount:0},{type:"UPCOMING",label:"Upcoming",totalCount:0},{type:"LIVE",label:"Live",totalCount:0},{type:"PREVIOUS",label:"Previous",totalCount:0}],this.natLinks=[{type:"PENDING",label:"Pending",totalCount:0},{type:"UPCOMING",label:"Upcoming",totalCount:0},{type:"ALLUPCOMING",label:"All Upcoming",totalCount:0},{type:"LIVE",label:"Live",totalCount:0},{type:"ALLLIVE",label:"All Live",totalCount:0},{type:"PREVIOUS",label:"Previous",totalCount:0}],this.clientLinks=[{type:"UPCOMING",label:"Upcoming",totalCount:0},{type:"LIVE",label:"Live",totalCount:0},{type:"PREVIOUS",label:"Previous",totalCount:0}],this.pageSizeOptions=[10,20,50,100],this.pageSize=20,this.isPendingLoading=!1,this.isUpcomingLo
1ading=!1,this.isAllUpcomingLoading=!1,this.isLiveLoading=!1,this.isAllLiveLoading=!1,this.isPreviousLoading=!1,this.totalRecords=0,this.currentPage=1,this.theme=ws.z6,this.defaultColDef={...ws.IA,filter:!0,cellStyle:{cursor:"pointer"}},this.engagementListData=[],this.engagementListColumn=[{headerName:"ID",field:"id",minWidth:100,cellRenderer:g=>g.data?.isSkeleton?'<div class="skeleton-bar shimmer" style="width: 80px; height: 20px;"></div>':g.value},{headerName:"Date",field:"date.created_at",autoHeight:!0,wrapText:!0,width:100,valueFormatter:g=>ve().utc(g.data?.date?.created_at).local().format("hh:mm A MMM DD YYYY")||"--",cellRenderer:g=>{if(g.data?.isSkeleton)return'<div class="skeleton-bar shimmer" style="width: 90px; height: 30px;"></div>';const C=g.data?.date?.created_at,f=ve().utc(C).toDate(),x=ve()(f).local().format("hh:mm A");return`<div style="word-break: break-word;"><p class="">${ve()(f).local().format("MMM DD YYYY")}\n                          <br>${x}\n                        </p></div>`}},{headerName:"Advisor",field:"advisorData",cellRenderer:un,valueFormatter:g=>g.value?.advisor_name||"",minWidth:250,autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1,cellStyle:{"white-space":"normal","word-wrap":"break-word","line-height":"1.4",padding:"8px","text-align":"left"}},{headerName:"Organization",field:"organization",autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1},{headerName:"Client",field:"client",autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1},{headerName:"Project",field:"project",autoHeight:!0,wrapText:!0},{headerName:"Status",field:"status",headerTooltip:"Status",minWidth:200,cellRenderer:dn.a,cellRendererParams:{toneMap:gn}},{headerName:"Actions",field:"actions",width:50,pinned:"right",cellRenderer:pn,cellRendererParams:{openNoteDialog:(g,C,f)=>this.openNoteDialog(g,C,f),approveEngagement:g=>this.approveEngagement(g),approveCancelledEngagement:g=>this.approveCancelledEngagement(g),declineEngagement:g=>this.declineEngagement(g),reschedule_engagement:(g,C,f)=>this.reschedule_engagement(g,C,f),cancelAddNoteModalOpen:(g,C)=>this.cancelAddNoteModalOpen(g,C)},suppressSizeToFit:!0,sortable:!1,filter:!1}],this.liveEngagementListData=[],this.liveEngagementListColumn=[{headerName:"ID",field:"id",minWidth:100},{headerName:"Date",field:"date.created_at",autoHeight:!0,wrapText:!0,width:100,valueFormatter:g=>ve().utc(g.data?.date?.created_at).local().format("hh:mm A MMM DD YYYY")||"--",cellRenderer:g=>{const C=g.data?.date?.created_at,f=ve().utc(C).toDate();return`<div style="word-break: break-word;"><p class="">${ve()(f).local().format("hh:mm A")}\n                          <br>${ve()(f).local().format("MMM DD YYYY")}\n                        </p></div>`}},{headerName:"Advisor",field:"advisorData",cellRenderer:un,valueFormatter:g=>g.value?.advisor_name||"",minWidth:250,autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1,cellStyle:{"white-space":"normal","word-wrap":"break-word","line-height":"1.4",padding:"8px","text-align":"left"}},{headerName:"Organization",field:"organization",autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1},{headerName:"Client",field:"client_name",autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1},{headerName:"Project",field:"project",autoHeight:!0,wrapText:!0},{headerName:"Status",field:"status",headerTooltip:"Status",minWidth:200,cellRenderer:dn.a,cellRendererParams:{toneMap:gn}},{headerName:"Duration",field:"duration",autoHeight:!0,wrapText:!0},{headerName:"Actions",field:"actions",width:50,pinned:"right",cellRenderer:pn,cellRendererParams:{},suppressSizeToFit:!0,sortable:!1,filter:!1}],this.clientUpcomingEngagementListData=[],this.clientUpcomingEngagementListColumn=[{headerName:"ID",field:"id",minWidth:100},{headerName:"Date",field:"date.created_at",autoHeight:!0,wrapText:!0,width:100,valueFormatter:g=>ve().utc(g.data?.date?.created_at).local().format("hh:mm A MMM DD YYYY")||"--",cellRenderer:g=>{const C=g.data?.date?.created_at,f=ve().utc(C).toDate(),x=ve()(f).local().format("hh:mm A");return`<div style="word-break: break-word;"><p class="">${ve()(f).local().format("MMM DD YYYY")}\n                          <br>${x}\n                        </p></div>`}},{headerName:"Company",field:"company",autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1}
1,{headerName:"Advisor",field:"advisorData",cellRenderer:un,valueFormatter:g=>g.value?.advisor_name||"",minWidth:250,autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1,cellStyle:{"white-space":"normal","word-wrap":"break-word","line-height":"1.4",padding:"8px","text-align":"left"}},{headerName:"Project",field:"project",autoHeight:!0,wrapText:!0},{headerName:"Status",field:"status",headerTooltip:"Status",minWidth:200,cellRenderer:dn.a,cellRendererParams:{toneMap:gn}},{headerName:"Actions",field:"actions",width:50,pinned:"right",cellRenderer:pn,cellRendererParams:{openNoteDialog:(g,C,f)=>this.openNoteDialog(g,C,f),approveEngagement:g=>this.approveEngagement(g),approveCancelledEngagement:g=>this.approveCancelledEngagement(g),declineEngagement:g=>this.declineEngagement(g),reschedule_engagement:(g,C,f)=>this.reschedule_engagement(g,C,f),cancelAddNoteModalOpen:(g,C)=>this.cancelAddNoteModalOpen(g,C)},suppressSizeToFit:!0,sortable:!1,filter:!1}],this.clientPreviousEngagementListData=[],this.clientPreviousEngagementListColumn=[{headerName:"ID",field:"id",minWidth:100},{headerName:"Date",field:"date.created_at",autoHeight:!0,wrapText:!0,width:100,valueFormatter:g=>ve().utc(g.data?.date?.created_at).local().format("hh:mm A MMM DD YYYY")||"--",cellRenderer:g=>{const C=g.data?.date?.created_at,f=ve().utc(C).toDate(),x=ve()(f).local().format("hh:mm A");return`<div style="word-break: break-word;"><p class="">${ve()(f).local().format("MMM DD YYYY")}\n                          <br>${x}\n                        </p></div>`}},{headerName:"Company",field:"company",autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1},{headerName:"Advisor",field:"advisorData",cellRenderer:un,valueFormatter:g=>g.value?.advisor_name||"",minWidth:250,autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1,cellStyle:{"white-space":"normal","word-wrap":"break-word","line-height":"1.4",padding:"8px","text-align":"left"}},{headerName:"Project",field:"project",autoHeight:!0,wrapText:!0},{headerName:"Credits",field:"credits",autoHeight:!0,resizable:!0,wrapText:!0,suppressSizeToFit:!1},{headerName:"Status",field:"status",headerTooltip:"Status",minWidth:200,cellRenderer:dn.a,cellRendererParams:{toneMap:gn}},{headerName:"Actions",field:"actions",width:50,pinned:"right",cellRenderer:pn,cellRendererParams:{openNoteDialog:(g,C,f)=>this.openNoteDialog(g,C,f),approveEngagement:g=>this.approveEngagement(g),approveCancelledEngagement:g=>this.approveCancelledEngagement(g),declineEngagement:g=>this.declineEngagement(g),reschedule_engagement:(g,C,f)=>this.reschedule_engagement(g,C,f),cancelAddNoteModalOpen:(g,C)=>this.cancelAddNoteModalOpen(g,C)},suppressSizeToFit:!0,sortable:!1,filter:!1}],localStorage.setItem("page_title","MY ENGAGEMENTS"),this.commonService.changePageTitleFunction(1),this.timeIntervalStatus=!0,this.filterForm=this.fb.group({keyword:new ue.MJ(""),allkeyword:new ue.MJ(this.keywords),p_title:new ue.MJ(!0),advisor:new ue.MJ(!1),organization:new ue.MJ(!1),client:new ue.MJ(!1),failed_engagement:new ue.MJ(!1),enagagement_id:new ue.MJ(!1),from_date:new ue.MJ(""),to_date:new ue.MJ(""),save_search:new ue.MJ(!1)})}ngOnInit(){this.user_id=localStorage.getItem("user_id"),this.user_type=localStorage.getItem("user_type"),this.url=Pe.c.media_url;const t=localStorage.getItem("appointment_list");this.advisor_details=[],""==t||null==t?2==this.user_type||4==this.user_type||5==this.user_type?(this.activeLink="UPCOMING",this.upcomingPage=1,localStorage.setItem("appointment_list","UPCOMING"),this.getUpcomingData()):(this.activeLink="PENDING",this.pendingPage=1,localStorage.setItem("appointment_list","PENDING"),this.getPendingData()):(this.activeLink=t,this.updateUserData(t))}addRoute(t){this.router.navigate([],{replaceUrl:!0,relativeTo:this.activatedRoute,queryParams:t,queryParamsHandling:"merge"})}filterBoxToggle(){this.filterToggle=!this.filterToggle}updateUserData(t){return"PENDING"===t&&"2"!==this.user_type?(this.filterToggle=!1,this.pendingPage=1,void this.getPendingData()):"UPCOMING"===t?(this.filterToggle=!1,this.upcomingPage=1,void this.getUpcomingData()):"ALLUPCOMING"===t&&426==this.user_id?(this.filterToggle=!1,this.allUpcomingPage=1,void this.getAllUpcomingData()):"LIVE"===t?(this.filterToggle=!1,this.livePage=1,void this.getLiveData()):"ALLLIVE"===t&&426==this.user_id?(this.filterToggle=!1,this.allLivePage=1,void this.getAllLiveData()):"PREVIOUS"===t?(this.filterToggle=!0,this.previousPage=1,this.activatedRoute.queryParams.subscribe(s=>{if(Object.keys(s).length){const r=JSON.parse(JSON.stringify(s));if(["p_title","advisor","organization","client","failed_engagement","enagagement_id"].forEach(l=>{r[l]="true"===r[l]}),Array.isArray(r.allkeyword)){const{allkeyword:l,...o}=r;this.filterForm.patchValue(o),this.keywords=l}else r.allkeyword?(r.allkeyword=[...r.allkeyword],this.filterForm.patchValue(r)):this.filterForm.patchValue(r)}}).unsubscribe(),void this.getPreviousData()):void(this.filterToggle=!1)}saveDataInLocal(t){this.activeLink=t,localStorage.setItem("appointment_list",t),this.updateUserData(t)}onScroll(){"PENDING"==this.activeLink?(this.pendingPage=this.pendingPage
1+1,this.getPendingData(!0)):"UPCOMING"==this.activeLink?(this.upcomingPage=this.upcomingPage+1,this.getUpcomingData(!0)):"ALLUPCOMING"==this.activeLink?(this.allUpcomingPage=this.allUpcomingPage+1,this.getAllUpcomingData(!0)):"LIVE"==this.activeLink?(this.livePage=this.livePage+1,this.getLiveData(!0)):"ALLLIVE"==this.activeLink?(this.allLivePage=this.livePage+1,this.getAllLiveData(!0)):"PREVIOUS"==this.activeLink&&(this.previousPage=this.previousPage+1,this.getPreviousData(!0))}onGridReady(t){this.gridApi=t.api;let s="";"PENDING"==this.activeLink?s=localStorage.getItem("agGridPendingListColumnState"):"UPCOMING"==this.activeLink?s=localStorage.getItem("agGridUpcomingListColumnState"):"ALLUPCOMING"==this.activeLink?s=localStorage.getItem("agGridAllUpcomingListColumnState"):"LIVE"==this.activeLink?s=localStorage.getItem("agGridLiveListColumnState"):"ALLLIVE"==this.activeLink?s=localStorage.getItem("agGridAllLiveListColumnState"):"PREVIOUS"==this.activeLink&&(s=localStorage.getItem("agGridPreviousListColumnState")),s&&this.gridApi.applyColumnState({state:JSON.parse(s),applyOrder:!0})}onColumnMoved(){const t=this.gridApi.getColumnState();"PENDING"==this.activeLink?localStorage.setItem("agGridPendingListColumnState",JSON.stringify(t)):"UPCOMING"==this.activeLink?localStorage.setItem("agGridUpcomingListColumnState",JSON.stringify(t)):"ALLUPCOMING"==this.activeLink?localStorage.setItem("agGridAllUpcomingListColumnState",JSON.stringify(t)):"LIVE"==this.activeLink?localStorage.setItem("agGridLiveListColumnState",JSON.stringify(t)):"ALLLIVE"==this.activeLink?localStorage.setItem("agGridAllLiveListColumnState",JSON.stringify(t)):"PREVIOUS"==this.activeLink&&localStorage.setItem("agGridPreviousListColumnState",JSON.stringify(t))}onRowClicked(t){const s=t.event.ctrlKey||t.event.metaKey,r=t?.data?.advisorData?.engagement_id,a=btoa(r);s?window.open("LIVE"!==this.activeLink&&"ALLLIVE"!==this.activeLink||"2"===this.user_type?`/user/engagements/appointment-details/${a}`:`/user/engagements/live-details/${a}`,"_blank"):("LIVE"!=this.activeLink&&"ALLLIVE"!=this.activeLink&&this.router.navigate(["/user/engagements/appointment-details/",a]),("LIVE"==this.activeLink||"ALLLIVE"==this.activeLink)&&this.router.navigate(["2"===this.user_type?"/user/engagements/appointment-details/":"/user/engagements/live-details/",a]))}ngOnDestroy(){for(const t of this.durationTickers)clearInterval(t);this.durationTickers=[]}onBtnExport(){const s=(new Date).toISOString().split("T")[0];let r="";"PENDING"==this.activeLink?r=`engagement-pending-profile-${s}.csv`:"UPCOMING"==this.activeLink?r=`engagement-upcoming-profile-${s}.csv`:"ALLUPCOMING"==this.activeLink?r=`engagement-all-upcoming-profile-${s}.csv`:"LIVE"==this.activeLink?r=`engagement-live-profile-${s}.csv`:"ALLLIVE"==this.activeLink?r=`engagement-all-live-profile-${s}.csv`:"PREVIOUS"==this.activeLink&&(r=`engagement-previous-profile-${s}.csv`);const l=this.gridApi.getColumnState().filter(o=>"actions"!==o.colId&&!0!==o.hide).map(o=>o.colId);this.gridApi.exportDataAsCsv({fileName:r,columnKeys:l})}get totalPages(){return Math.ceil(this.totalRecords/this.pageSize)||1}get startRecord(){return this.totalRecords?(this.currentPage-1)*this.pageSize+1:0}get endRecord(){return Math.min(this.currentPage*this.pageSize,this.totalRecords)}onPageSizeChanged(){this.currentPage=1,this.advisor_details=[],"PENDING"==this.activeLink?(this.pendingPage=1,this.getPendingData()):"UPCOMING"==this.activeLink?(this.upcomingPage=1,this.getUpcomingData()):"ALLUPCOMING"==this.activeLink?(this.allUpcomingPage=1,this.getAllUpcomingData()):"LIVE"==this.activeLink?(this.livePage=1,this.getLiveData()):"ALLLIVE"==this.activeLink?(this.allLivePage=1,this.getAllLiveData()):"PREVIOUS"==this.activeLink&&(this.previousPage=1,this.getPreviousData())}prevPage(){this.advisor_details=[],this.currentPage>1&&(this.currentPage=this.currentPage-1,"PENDING"==this.activeLink?(this.pendingPage=this.pendingPage-1,this.getPendingData()):"UPCOMING"==this.activeLink?(this.upcomingPage=this.upcomingPage-1,this.getUpcomingData()):"ALLUPCOMING"==this.activeLink?(this.allUpcomingPage=this.allUpcomingPage-1,this.getAllUpcomingData()):"LIVE"==this.activeLink?(this.livePage=this.livePage-1,this.getLiveData()):"ALLLIVE"==this.activeLink?(this.allLivePage=this.allLivePage-1,this.getAllLiveData()):"PREVIOUS"==this.activeLink&&(this.previousPage=this.previousPage-1,this.getPreviousData()))}nextPage(){this.advisor_details=[],this.currentPage<this.totalPages&&(this.currentPage=this.currentPage+1,"PENDING"==this.activeLink?(this.pendingPage=this.pendingPage-1,this.getPendingData()):"UPCOMING"==this.activeLink?(this.upcomingPage=this.upcomingPage-1,this.getUpcomingData()):"ALLUPCOMING"==this.activeLink?(this.allUpcomingPage=this.allUpcomingPage-1,this.getAllUpcomingData()):"LIVE"==this.activeLink?(this.livePage=this.livePage-1,this.getLiveData()):"ALLLIVE"==this.activeLink?(this.allLivePage=this.allLivePage-1,this.getAllLiveData()):"PREVIOUS"==this.activeLink&&(this.previousPage=this.previousPage-1,this.getPreviousData()))}getPendingData(t=!1){this.isPendingLoading=!0,this.engagementListData=[],this.commonService.getAPICallForNode({url:"/api/engagement/pending",data:{page:this.currentPage,limit:this.pageSize}}).subscribe({next:s=>{this.advisor_details=[...s.rows],this.totalRecords=s.total,this.engagementListData=this.advisor_details.map(r=>({id:r?.unique_id,date:{created_at:r.from_date_time,cancelled_status:r.cancelled_status},advisorData:{advisor_name:r.advisor_name,profileimage:r.profileimage,engagement_id:r.id,dialno:r.dialno,dialnouk:r.dialnouk,advisor_id:r.advisor_id,passcode:r.passcode,activeLink:this.activeLink},organization:r?.company,client_name:r?.client_name,project:r?.project_title,status:0==r.status?"New Request":4==r.status?"Cancel Requested":"--",actions:{activeLink:this.activeLink,engagementData:r,user_type:this.user_type}})),this.isPendingLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide()},error:s=>{this.isPendingLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide(),this.helperService.showError(s.error.message)}})}
1getUpcomingData(t=!1){this.isUpcomingLoading=!0,2==this.user_type||4==this.user_type||5==this.user_type?this.clientUpcomingEngagementListData=[]:this.engagementListData=[],this.commonService.getAPICallForNode({url:"/api/engagement/upcoming",data:{page:this.currentPage,limit:this.pageSize}}).subscribe({next:s=>{this.advisor_details=[...s.rows],this.totalRecords=s.total,2==this.user_type||4==this.user_type||5==this.user_type?this.clientUpcomingEngagementListData=this.advisor_details.map(r=>({id:r?.unique_id,date:{created_at:r.from_date_time,cancelled_status:r.cancelled_status},company:r?.company,advisorData:{advisor_name:r.advisor_name,profileimage:r.profileimage,engagement_id:r.id,dialno:r.dialno,dialnouk:r.dialnouk,advisor_id:r.advisor_id,passcode:r.passcode,activeLink:this.activeLink,user_type:this.user_type,company_id:r.company_id},project:r?.project_title,status:1==r.status?"Scheduled":"--",actions:{activeLink:this.activeLink,engagementData:r,user_type:this.user_type}})):this.engagementListData=this.advisor_details.map(r=>({id:r?.unique_id,date:{created_at:r.from_date_time,cancelled_status:r.cancelled_status},advisorData:{advisor_name:r.advisor_name,profileimage:r.profileimage,engagement_id:r.id,dialno:r.dialno,dialnouk:r.dialnouk,advisor_id:r.advisor_id,passcode:r.passcode,activeLink:this.activeLink,user_type:this.user_type,company_id:r.company_id},organization:r?.company,client:r?.client_name,project:r?.project_title,status:1==r.status?"Scheduled":"--",actions:{activeLink:this.activeLink,engagementData:r,user_type:this.user_type}})),this.isUpcomingLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide()},error:s=>{this.isUpcomingLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide(),this.helperService.showError(s.message)}})}getAllUpcomingData(t=!1){this.isAllUpcomingLoading=!0,this.engagementListData=[],this.commonService.getAPICallForNode({url:"/api/engagement/all-upcoming",data:{page:this.currentPage,limit:this.pageSize}}).subscribe({next:s=>{this.advisor_details=[...s.rows],this.totalRecords=s.total,this.engagementListData=this.advisor_details.map(r=>({id:r?.unique_id,date:{created_at:r.from_date_time,cancelled_status:r.cancelled_status},advisorData:{advisor_name:r.advisor_name,profileimage:r.profileimage,engagement_id:r.id,dialno:r.dialno,dialnouk:r.dialnouk,advisor_id:r.advisor_id,passcode:r.passcode,activeLink:this.activeLink,user_type:this.user_type,company_id:r.company_id},organization:r?.company,client:r?.client_name,project:r?.project_title,status:1==r.status?"Scheduled":"--",actions:{activeLink:this.activeLink,engagementData:r,user_type:this.user_type}})),this.isAllUpcomingLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide()},error:s=>{this.isAllUpcomingLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide(),this.helperService.showError(s.message)}})}getLiveData(t=!1){this.isLiveLoading=!0,this.liveEngagementListData=[],this.commonService.getAPICallForNode({url:"/api/engagement/live",data:{page:this.currentPage,limit:this.pageSize}}).subscribe({next:s=>{this.advisor_details=[...s.rows],1==this.timeIntervalStatus&&this.durationTickers.push(setInterval(()=>{if((0,Vn.M)(this.hostRef)){for(let r=0;r<this.advisor_details.length;r++)if("1"==this.advisor_details[r].live_status){this.advisor_details[r].live_duration=this.advisor_details[r].live_duration+1;const a=Math.floor(this.advisor_details[r].live_duration/3600),l=Math.floor(this.advisor_details[r].live_duration/60%60),o=this.advisor_details[r].live_duration%60;this.advisor_details[r].live_logic_duration=0!=a?a+" hr "+l+" min "+o+" sec":0!=l?l+" min "+o+" sec":o+" sec"}this.liveEngagementListData=this.advisor_details.map(r=>({id:r?.unique_id,date:{created_at:r.from_date_time,cancelled_status:r.cancelled_status},advisorData:{advisor_name:r.advisor_name,profileimage:r.profileimage,engagement_id:r.id,dialno:r.dialno,dialnouk:r.dialnouk,advisor_id:r.advisor_id,passcode:r.passcode,activeLink:this.activeLink,user_type:this.user_type,company_id:r.company_id},organization:r?.company,client:r?.client_name,project:r?.project_title,status:1==r.live_status?"In-Progress":2==r.live_status?"Completed":"--",duration:1==r.live_status?r?.live_logic_duration:2==r.live_status?r?.completed_duration:ve().duration(r.live_duration,"seconds").humanize(),actions:{activeLink:this.activeLink,engagementData:r,user_type:this.user_type}}))}},1e3)),this.timeIntervalStatus=!1,this.totalRecords=s.total,this.isLiveLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide()},error:s=>{this.isLiveLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide(),this.helperService.showError(s.error.message)}})}getAllLiveData(t=!1){this.isAllLiveLoading=!0,this.liveEngagementListData=[],this.commonService.getAPICallForNode({url:"/api/engagement/all-live",data:{page:this.currentPage,limit:this.pageSize}}).subscribe({next:s=>{this.advisor_details=[...s.rows],1==this.timeIntervalStatus&&(this.durationTickers.push(setInterval(()=>{if((0,Vn.M)(this.hostRef))for(let r=0;r<this.advisor_details.length;r++)if("1"==this.advisor_details[r].live_status){this.advisor_details[r].live_duration=this.advisor_details[r].live_duration+1;const a=Math.floor(this.advisor_details[r].live_duration/3600),l=Math.floor(this.advisor_details[r].live_duration/60%60),o=this.advisor_details[r].live_duration%60;this.advisor_details[r].live_logic_duration=0!=a?a+" hr "+l+" min "+o+" sec":0!=l?l+" min "+o+" sec":o+" sec"}},1e3)),this.liveEngagementListData=this.advisor_details.map(r=>({id:r?.unique_id,date:{created_at:r.from_date_time,cancelled_status:r.cancelled_status},advisorData:{advisor_name:r.advisor_name,profileimage:r.profileimage,engagement_id:r.id,dialno:r.dialno,dialnouk:r.dialnouk,advisor_id:r.advisor_id,passcode:r.passcode,activeLink:this.activeLink,user_type:this.user_type,company_id:r.company_id},organization:r?.company,client:r?.client_name,project:r?.project_title,status:1==r.live_status?"In-Progress":2==r.live_status?"Completed":"--",duration:1==r.live_status?r?.live_logic_duration:2==r.live_status?r?.completed_duration:ve().duration(r.live_duration,"seconds").humanize(),actions:{activeLink:this.activeLink,engagementData:r,user_type:this.user_type}}))),this.timeIntervalStatus=!1,this.totalRecords=s.total,this.isAllLiveLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide()},error:s=>{this.isAllLiveLoading=!1,t?this.showProgressSpinner=!1:this.spinner.hide(),this.helperService.showError(s.error.message)}})}onSubmit(){this.formSubmitted=!0,this.filterForm.markAllAsTouched(),this.fruitCtrl.markAsTouched();const{p_title:t,advisor:s,organization:r,client:a,failed_engagement:l,from_date:o,to_date:u,enagagement_id:p}=this.filterForm.value;if(!(t||s||r||a||l||p))return;if(this.dateStringTransformation(o)>this.dateStringTransformation(u))return fe().fire("Oops!","Please select valid From and To range","error");this.chipList.errorState=!1,this.previousPage=1,this.advisor_details=[],this.getPreviousData();const{save_search:C,...f}=this.filterForm.value;this.addRoute(f)}clearFilters(){this.filterForm.reset(),this.filterForm.patchValue({p_title:!0,advisor:!1,organization:!1,client:!1,failed_engagement:!1,enagagement_id:!1}),this.keywords=[],this.previousPage=1,this.advisor_details=[],this.getPreviousData()}getPreviousData(t=!1){this.isPreviousLoading=!0,2==this.user_type||4==this.user_type||5==this.user_type?this.clientPreviousEngagementListData=[]:this.engagementListData=[];let s={},r="",a="";r=this.datePipe.transform(this.filterForm.value?.to_date,"yyyy-MM-dd"),a=this.datePipe.transform(this.filterForm.value?.from_date,"yyyy-MM-dd"),null===r&&(r=""),null===a&&(a="");const l=new Date(a);l.setHours(0,0,0,0);const o=new Date(r);o.setHours(23,59,59,999),this.search_by_keyword=this.keywords.toString(),s={page:this.currentPage,limit:this.pageSize,keyword:this.search_by_keyword,p_title:this.filterForm.value.p_title,advisor:this.filterForm.value.advisor,client:this.filterForm.value.client,organization:this.filterForm.value.organization,failed_engagement:this.filterForm.value.failed_engagement,enagagement_id:this.filterForm.value.enagagement_id,from_date:a?l.toISOString():"",to_date:r?o.toISOString():"",filter_status:this.engageStatusFilter},this.commonService.getAPICallForNode({url:"/api/engagement/previous",data:s}).subscribe({next:u=>{this.advisor_details=[...u.rows],this.totalRecords=u.total,2==this.user_type||4==this.user_type||5==this.user_type?this.clientPreviousEngagementListData=this.advisor_details.map(p=>({id:p?.unique_id,date:{created_at:p.from_date_time,cancelled_status:p.cancelled_status}
1,company:p?.company,advisorData:{advisor_name:p.advisor_name,profileimage:p.profileimage,engagement_id:p.id,dialno:p.dialno,dialnouk:p.dialnouk,advisor_id:p.advisor_id,passcode:p.passcode,activeLink:this.activeLink,user_type:this.user_type,company_id:p.company_id},project:p?.project_title,credits:p?.credits+" CR",status:"2"==this.user_type?0==p.status?"Pending":1==p.status&&0==p.after_engagement_status?"Scheduled":1==p.status&&1==p.after_engagement_status?"Completed":1==p.status&&2==p.after_engagement_status?"Failed":2==p.status?"Declined":3==p.status?"Cancel":4==p.status?"Cancel Request":"--":0==p.status?"Not Approved":1==p.status&&0==p.after_engagement_status?"Failed":1==p.status&&1==p.after_engagement_status?"Completed":1==p.status&&2==p.after_engagement_status||2==p.status&&2==p.after_engagement_status?"Failed":2==p.status&&0==p.after_engagement_status?"Declined":3==p.status?"Cancel":4==p.status?"Cancel Request":"--",actions:{activeLink:this.activeLink,engagementData:p,user_type:this.user_type}})):this.engagementListData=this.advisor_details.map(p=>({id:p?.unique_id,date:{created_at:p.from_date_time,cancelled_status:p.cancelled_status},advisorData:{advisor_name:p.advisor_name,profileimage:p.profileimage,engagement_id:p.id,dialno:p.dialno,dialnouk:p.dialnouk,advisor_id:p.advisor_id,passcode:p.passcode,activeLink:this.activeLink,user_type:this.user_type,company_id:p.company_id},organization:p?.company,client:p?.client_name,project:p?.project_title,status:"2"==this.user_type?0==p.status?"Pending":1==p.status&&0==p.after_engagement_status?"Scheduled":1==p.status&&1==p.after_engagement_status?"Completed"+(1==p.offline_status?" - Offline":""):1==p.status&&2==p.after_engagement_status?"Failed":2==p.status?"Declined":3==p.status?"Cancel":4==p.status?"Cancel Request":"--":0==p.status?"Not Approved":1==p.status&&0==p.after_engagement_status?"Failed":1==p.status&&1==p.after_engagement_status?"Completed"+(1==p.offline_status?" - Offline":""):1==p.status&&2==p.after_engagement_status||2==p.status&&2==p.after_engagement_status?"Failed":2==p.status&&0==p.after_engagement_status?"Declined":3==p.status?"Cancel":4==p.status?"Cancel Request":"--",actions:{activeLink:this.activeLink,engagementData:p,user_type:this.user_type}})),t?this.showProgressSpinner=!1:this.spinner.hide(),this.isPreviousLoading=!1},error:u=>{t?this.showProgressSpinner=!1:this.spinner.hide(),this.helperService.showError(u.message),this.isPreviousLoading=!1}})}clearDate(t,s){t.value="","from_date"==s?this.filterForm.patchValue({from_date:""}):"to_date"==s&&this.filterForm.patchValue({to_date:""})}add(t){const s=t.input,r=t.value;(r||"").trim()&&this.keywords.push(r.trim()),s&&(s.value=""),this.fruitCtrl.setValue(null)}remove(t){const s=this.keywords.indexOf(t);s>=0&&this.keywords.splice(s,1)}openNoteDialog(t,s,r){let a;a=4==r||3==r?s:"",this.dialog.open(fc.I,{width:"500px",data:{notecontent:t,cancelnotecontent:a},panelClass:"comn-dialog"})}cancelAddNoteModalOpen(t,s){this.dialog.open(hc,{width:"500px",data:{id:t,status:s},panelClass:"comn-dialog"}).afterClosed().subscribe(()=>{this.advisor_details=[],"PENDING"==this.activeLink?(this.pendingPage=1,this.getPendingData()):"UPCOMING"==this.activeLink?(this.upcomingPage=1,this.getUpcomingData()):"AllUPCOMING"==this.activeLink?(this.allUpcomingPage=1,this.getAllUpcomingData()):"PREVIOUS"==this.activeLink&&(this.previousPage=1,this.getPreviousData())})}statusChangeFilter(t){this.engageStatusFilter=t,this.selectedSortOptions=t,window.scrollTo(0,0),this.advisor_details=[],"PREVIOUS"==this.activeLink&&"2"==this.user_type?(this.previousPage=1,this.getPreviousData()):"UPCOMING"==this.activeLink&&"2"==this.user_type&&(this.upcomingPage=1,this.getUpcomingData())}errorHandler(t){this.advisor_details[t].profileimage=""}approveEngagement(t){fe().fire({title:"",text:"Do You Want To Approve This Appointment?",showCancelButton:!0,cancelButtonText:"No",icon:"warning"}).then(s=>{if(s.isConfirmed){this.spinner.show();let r={};r={engagementID:t},this.commonService.putAPICallForNode({url:"/api/engagement/bridger-member-approve-engagement-request",data:r}).subscribe({next:a=>{this.spinner.hide(),fe().fire("Success",a.msg,"success"),this.pendingPage=1,this.advisor_details=[],this.getPendingData()},error:a=>{this.spinner.hide(),this.helperService.showError(a.error.message||"Something went wrong")}})}})}approveCancelledEngagement(t){fe().fire({title:"",text:"Do you want to accept the canceled engagement?",showCancelButton:!0,cancelButtonText:"No",icon:"warning"}).then(s=>{if(s.isConfirmed){this.spinner.show();let r={};r={engagementID:t},this.commonService.putAPICallForNode({url:"/api/engagement/bridger-member-approve-cancelled-engagement-request",data:r}).subscribe(a=>{this.spinner.hide(),200==a.status?(fe().fire("Success",a.msg,"success"),this.pendingPage=1,this.advisor_details=[],this.getPendingData()):fe().fire("Error",a.msg,"error")})}})}declineEngagement(t){fe().fire({title:"",text:"Do you want to decline the engagement?",showCancelButton:!0,cancelButtonText:"No",icon:"warning"}).then(s=>{if(s.isConfirmed){this.spinner.show();let r={};r={engagementID:t},this.commonService.putAPICallForNode({url:"/api/engagement/bridger-member-decline-engagement-request",data:r}).subscribe(a=>{this.spinner.hide(),200==a.status?(fe().fire("Success",a.msg,"success"),this.pendingPage=1,this.advisor_details=[],this.getPendingData()):fe().fire("Error",a.msg,"error")})}})}changestatus(t,s,r,a,l,o,u,p,_){let g="";1==s||4==s?g="Approve":2==s&&(g="Decline"),2!=s?fe().fire({title:"",text:"Are you sure you want to "+g+" this appointment?",showCancelButton:!0,icon:"warning"}).then(C=>{if(C.isConfirmed){this.spinner.show();let f={};f={id:t,status:s},this.commonService.postAPICallForNode({url:"/schedule/em-change-engagements-status",data:f}).subscribe({next:x=>{if(this.spinner.hide(),1==s){const y=localStorage.getItem("user_type"),D=localStorage.getItem("user_id");let h="";"1"==y&&(h="EM"),"7"==y&&(h="Associate");let k=0;k=_==D?p:+_}fe().fire("Success",x.message,"success"),this.advisor_details=[],"PENDING"==this.activeLink?(this.pendingPage=1,this.getPendingData()):"UPCOMING"==this.activeLink?(this.upcomingPage=1,this.getUpcomingData()):"ALLUPCOMING"==this.activeLink?(this.allUpcomingPage=1,this.getAllUpcomingData()):"PREVIOUS"==this.activeLink&&(this.previousPage=1,this.getPreviousData())},error:x=>{this.spinner.hide(),this.helperService.showError(x.error.message||"Something went wrong")}})}}):fe().fire({title:"",text:"Cancel Appointment",showCancelButton:!0,icon:"warning",confirmButtonText:"Reschedule",cancelButtonText:"Cancel"}).then(C=>{this.router.navigate(C.isConfirmed?["/user/engagements/appointment-schedule/"+btoa(r)+"/"+btoa(a)+"/"+btoa(l)]:["/user/engagements/appointment-details/"+btoa(t)])})}reschedule_engagement(t,s,r){this.router.navigate(["/user/engagements/appointment-schedule/"+btoa(t)+"/"+btoa(s)+"/"+btoa(r)])}onClickDownloadCSV(){this.spinner.show(),this.commonService.getAPICallForNode({url:"/api/engagement/previous-engagements-csv"}).subscribe(t=>{this.spinner.hide();for(let l=0;l<t.data.length;l++){let u,o="";t.data[l].advisor_availability&&(o=ve()(new Date(t.data[l].advisor_availability.fromTime)).local().format("MMM DD YYYY hh:mm A")),u=t.data[l].advisor.advisorcareers?t.data[l].advisor.advisorcareers.organization:"--";let p="";0==t.data[l].status?p="Pending":1==t.data[l].status&&0==t.data[l].after_engagement_status?p="Scheduled":1==t.data[l].status&&1==t.data[l].after_engagement_status?p="Completed":1==t.data[l].status&&2==t.data[l].after_engagement_status?p="Failed":2==t.data[l].status?p="Declined":3==t.data[l].status?p="Cancel":4==t.data[l].status&&(p="Cancel Request"),this.csvData.push({Date:o,Company:u,Advisor:t.data[l].advisor.name,Project_Title:t.data[l].project.title,Status:p,Credits:t.data[l].credits})}const r={fieldSeparator:",",quoteStrings:'"',decimalSeparator:".",showLabels:!0,showTitle:!0,title:"previous_engagements_"+Date.now()+".csv",useTextFile:!1,useBom:!0,useKeysAsHeaders:!1,headers:["Date","Company","Advisor","Project Title","Status","Credit"]};new gc.ExportToCsv(r).generateCsv(this.csvData),fe().fire("Success",t.message,"success")},t=>{this.spinner.hide(),fe().fire("OOPS!",t.message??"Something went wrong","error")})}dateStringTransformation(t){const s=new Date(t),r=("0"+(s.getMonth()+1)).slice(-2),a=("0"+s.getDate()).slice(-2);return[s.getFullYear(),r,a].join("-")}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(e.aKT),e.rXU(Te.ef),e.rXU(Ve.h),e.rXU(ke.vh),e.rXU(ue.ok),e.rXU(gt.w),e.rXU(_t.ex),e.rXU(Ne.Ix),e.rXU(Ne.nX))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-appointment-list"]],viewQuery:function(s,r){if(1&s&&(e.GBs(Fc,5),e.GBs(Nc,5),e.GBs(Mc,5)),2&s){let a;e.mGM(a=e.lsd())&&(r.fruitInput=a.first),e.mGM(a=e.lsd())&&(r.matAutocomplete=a.first),e.mGM(a=e.lsd())&&(r.chipList=a.first)}},decls:15,vars:8,consts:[["chipList",""],["fruitInput",""],["fromInput",""],["fromDatePicker",""],["toInput",""],["toDatePicker",""],["sortByselect",""],[1,"main-content-wrap"],[1,"main-content-container"],[1,"main-heading-wrap","w-full","flex","items-center","justify-end","gap-3","pb-4"],[1,"rightSide-btn-holder","shrink-0","flex","items-center","justify-end","gap-2"],["mat-mini-fab","","matTooltipPosition","above","matTooltip","Download this view (CSV)",1,"filter-btn","btn-download",3,"click"],["name","download","label","Download CSV",3,"size"],["mat-mini-fab","","class","filter-btn","matTooltipPosition","above","matTooltip","Search & filter",3,"ngClass","click",4,"ngIf"],["class","filterBox-wrap",3,"ngClass",4,"ngIf"],["class","form-row comn_table-filter-sec items-center justify-between mb-4",4,"ngIf"],["class","grid-with-pager",4,"ngIf"],["mat-mini-fab","","matTooltipPosition","above","matTooltip","Search & filter",1,"filter-btn",3,"click","ngClass"],["name","filter","label","Toggle filters",3,"size"],[1,"filterBox-wrap",3,"ngClass"],[1,"filterBox-body"],[1,"heading"],[1,"headingText"],[1,"filterBox-form","comn-form"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col-md-6"],["appearance","outline"],["aria-label","Fruit selection"],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["placeholder","Enter Keyword...",3,"matChipInputTokenEnd","formControl","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[1,"comn-form-control-label"],[1,"inline-checkbox-holder"],["formControlName","p_title"],["formControlName","advisor"],["formControlName","organization"],["formControlName","client"],["formControlName","failed_engagement"],["formControlName","enagagement_id"],["style","color: red",4,"ngIf"],[1,"form-row"],["autocomplete","off","matInput","","formControlName","from_date","readonly","",3,"click","max","matDatepicker"],["matSuffix","",3,"click"],["name","close","matDatepickerToggleIcon",""],["matSuffix","",3,"for"],["autocomplete","off","matInput","","formControlName","to_date","readonly","",3,"click","max","matDatepicker"],[1,"md:flex","justify-between","items-center","mt-2"],[1,"checkbox-holder"],[1,"btn-holder","md:text-right","mt-2","md:mt-0"],["mat-flat-button","","color","primary","type","submit",1,"mr-1","submit-search"],["mat-stroked-button","",1,"clear-search",3,"click"],[3,"removed","selectable","removable"],["matChipRemove","","class","mat-chip-remove",4,"ngIf"],["matChipRemove","",1,"mat-chip-remove"],["name","close",3,"size"],[2,"color","red"],[1,"form-row","comn_table-filter-sec","items-center","justify-between","mb-4"],["appearance","outline",1,"engagement-filter-select"],["disableOptionCentering","true",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"flex","flex-wrap","items-center","gap-3"],["appearance","outline",1,"engagement-sort-select"],[3,"valueChange","value"],[3,"click","ngClass","value"],[3,"ngClass","value","click",4,"ngIf"],[1,"grid-with-pager"],["style","position: relative;",4,"ngIf"],[1,"pager","flex","items-center","justify-end","mt-2"],[1,"page-size","me-4","flex","items-center"],[1,"me-1","mb-0"],[1,"form-select","form-select-sm","engagement-page-size",3,"ngModelChange","ngModel"],[1,"me-4","mb-0"],["mat-icon-button","","size","sm",1,"me-1",3,"click","disabled"],["name","chevron-left","label","Previous page",1,"engagement-pager-icon"],["mat-icon-button","","size","sm",3,"click","disabled"],["name","chevron-right","label","Next page",1,"engagement-pager-icon"],[2,"position","relative"],["class","grid-skeleton-overlay",4,"ngIf"],["domLayout","autoHeight",3,"gridReady","columnMoved","rowClicked","theme","rowData","columnDefs","defaultColDef","suppressExcelExport","pagination","paginationPageSize","suppressDragLeaveHidesColumns"],[1,"grid-skeleton-overlay"],[1,"skeleton-table"],["class","skeleton-row",4,"ngFor","ngForOf"],[1,"skeleton-row"],[1,"skeleton-cell",2,"width","100px"],[1,"skeleton-bar","shimmer"],[1,"skeleton-cell",2,"width","120px"],[1,"skeleton-cell",2,"width","250px"],[1,"skeleton-cell",2,"width","150px"],[1,"skeleton-cell",2,"width","200px"],[1,"skeleton-cell",2,"width","60px"]],template:function(s,r){1&s&&(e.j41(0,"div")(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10)(5,"button",11),e.bIt("click",function(){return r.onBtnExport()}),e.nrm(6,"ui-icon",12),e.k0s(),e.DNE(7,Lc,2,2,"button",13),e.k0s()(),e.DNE(8,Uc,66,14,"div",14),e.j41(9,"ui-card"),e.DNE(10,zc,6,2,"div",15)(11,Hc,6,2,"div",15)(12,Qc,20,11,"div",15)(13,od,15,9,"div",16)(14,md,15,9,"div",16),e.k0s()()()()),2&s&&(e.R7$(6),e.Y8G("size",20),e.R7$(),e.Y8G("ngIf","2"!=r.user_type),e.R7$(),e.Y8G("ngIf","2"!=r.user_type),e.R7$(2),e.Y8G("ngIf","2"!=r.user_type&&426!=r.user_id),e.R7$(),e.Y8G("ngIf","10"==r.user_type&&426==r.user_id),e.R7$(),e.Y8G("ngIf","2"==r.user_type),e.R7$(),e.Y8G("ngIf","2"!=r.user_type),e.R7$(),e.Y8G("ngIf","2"==r.user_type))},dependencies:[Rc.G,Xn.O,at.H,ke.YU,ke.Sq,ke.bT,bs.d1,ot.iV,Pc.NZ,hn.O_,hn.Id,hn.Qr,hn.Wg,fn.Vh,fn.bZ,fn.bU,fn.Wl,Ue.Ky,Ue.V3,Ue.aw,Ue.xZ,Wn.aL,ys.cu,Oc.PD,ue.qT,ue.xH,ue.y7,ue.me,ue.wz,ue.BC,ue.cb,ue.vS,ue.l_,ue.j4,ue.JD,qn.xs],styles:[".grid-skeleton-overlay[_ngcontent-%COMP%]{position:absolute;inset:75px 0 0;background:color-mix(in srgb,var(--bg-card) 90%,transparent);z-index:10;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--border-color)}.skeleton-table[_ngcontent-%COMP%]{width:100%;padding:16px}.skeleton-header[_ngcontent-%COMP%]{display:flex;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border-color)}.skeleton-row[_ngcontent-%COMP%]{display:flex;gap:8px;margin-bottom:8px;padding:12px 0;border-bottom:1px solid var(--border-color)}.skeleton-row[_ngcontent-%COMP%]:last-child{border-bottom:none;margin-bottom:0}.engagement-filter-select[_ngcontent-%COMP%], .engagement-sort-select[_ngcontent-%COMP%]{min-width:210px}@media (max-width: 767px){.engagement-filter-select[_ngcontent-%COMP%], .engagement-sort-select[_ngcontent-%COMP%]{width:100%}}.engagement-page-size[_ngcontent-%COMP%]{width:65px}.engagement-pager-icon[_ngcontent-%COMP%]{font-weight:bolder}@media only screen and (max-width: 575px){  .comn_table .comn_table-row .comn_table-cell .pProfile-smInfo-block .dataText{width:100%}}"]})}}return i})();var xs=ge(10467),_d=ge(99172),vd=ge(96354);function wd(i,n){1&i&&(e.j41(0,"span",23),e.EFF(1,"Pending"),e.k0s())}function bd(i,n){1&i&&(e.j41(0,"span",24),e.EFF(1,"Scheduled"),e.k0s())}function yd(i,n){1&i&&(e.j41(0,"span",27),e.EFF(1," - "),e.k0s())}function xd(i,n){1&i&&(e.j41(0,"span",28),e.EFF(1,"Offline"),e.k0s())}function kd(i,n){if(1&i&&(e.j41(0,"span",24),e.EFF(1,"Completed "),e.DNE(2,yd,2,0,"span",25)(3,xd,2,0,"span",26),e.k0s()),2&i){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",1==(null==t.engagementsinfo?null:t.engagementsinfo.offline_status)&&("1"==t.user_type||"7"==t.user_type||"8"==t.user_type||"9"==t.user_type||"10"==t.user_type)),e.R7$(),e.Y8G("ngIf",1==(null==t.engagementsinfo?null:t.engagementsinfo.offline_status)&&("1"==t.user_type||"7"==t.user_type||"8"==t.user_type||"9"==t.user_type||"10"==t.user_type))}}function Cd(i,n){1&i&&(e.j41(0,"span",29),e.EFF(1,"Failed"),e.k0s())}function Ed(i,n){1&i&&(e.j41(0,"span",29),e.EFF(1,"Declined"),e.k0s())}function Td(i,n){1&i&&(e.j41(0,"span",29),e.EFF(1,"Cancel"),e.k0s())}function Ad(i,n){1&i&&(e.j41(0,"span",29),e.EFF(1,"Cancel Request"),e.k0s())}function Id(i,n){if(1&i&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"customDateFormat"),e.nrm(3,"br"),e.EFF(4),e.nI1(5
1,"customTimeFormat"),e.nI1(6,"customTimeFormat"),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,3,t.engagementsinfo.advisoravailability.date)," "),e.R7$(3),e.Lme("",e.bMT(5,5,t.engagementsinfo.advisoravailability.from_time)," - ",e.bMT(6,7,t.engagementsinfo.advisoravailability.to_time)," ")}}function Sd(i,n){1&i&&(e.j41(0,"p",28),e.EFF(1," Cancelled "),e.k0s())}function Dd(i,n){if(1&i&&(e.j41(0,"div",18)(1,"p"),e.EFF(2),e.k0s()()),2&i){const t=e.XpG();e.R7$(2),e.SpI(" ",t.engagementsinfo.passcode," ")}}let Rd=(()=>{class i{constructor(t,s,r,a,l){this.dialogRef=t,this.commonService=s,this.spinner=r,this.fb=a,this.sharedData=l,this.engagementsinfo=[],this.config={}}ngOnInit(){this.engagementsinfo=this.sharedData.data}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(Te.RN),e.rXU(Ve.h),e.rXU(_t.ex),e.rXU(ue.ok),e.rXU(Te.xh))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-back-up-conference-dialog"]],decls:50,vars:16,consts:[["mat-dialog-title","",1,"flex","justify-between"],[1,"titleText"],["type","button","mat-icon-button","",3,"mat-dialog-close"],["name","close","label","Close",3,"size"],["mat-dialog-content",""],[3,"config"],[1,"col-sm-12"],[1,"advisorInfo-card","mb-0"],[1,"advisorInfo-card-content","w-full"],[1,"advisorInfo-block"],[1,"status-box","p-4","status-green-box"],["class","statusText ylwText uppercase",4,"ngIf"],["class","statusText greenText uppercase",4,"ngIf"],["class","statusText redText uppercase",4,"ngIf"],[1,"px-4","w-full"],[1,"advisorInfo-block","mt-4"],[1,"heading-holder"],[1,"headingText","mb-2"],[1,"infoText"],[4,"ngIf"],["style","color: red",4,"ngIf"],["href","tel:13467839845"],["class","infoText",4,"ngIf"],[1,"statusText","ylwText","uppercase"],[1,"statusText","greenText","uppercase"],["style","color:black;",4,"ngIf"],["style","color:red",4,"ngIf"],[2,"color","black"],[2,"color","red"],[1,"statusText","redText","uppercase"]],template:function(s,r){1&s&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2," Back Up - Conference Line "),e.k0s(),e.j41(3,"button",2),e.nrm(4,"ui-icon",3),e.k0s()(),e.j41(5,"div",4)(6,"perfect-scrollbar",5)(7,"div",6)(8,"ui-card",7)(9,"div",8)(10,"div",9)(11,"div",10),e.DNE(12,wd,2,0,"span",11)(13,bd,2,0,"span",12)(14,kd,4,2,"span",12)(15,Cd,2,0,"span",13)(16,Ed,2,0,"span",13)(17,Td,2,0,"span",13)(18,Ad,2,0,"span",13),e.j41(19,"p"),e.EFF(20),e.k0s()()(),e.j41(21,"div",14)(22,"div",15)(23,"div",16)(24,"h3",17),e.EFF(25,"Date & Time"),e.k0s()(),e.j41(26,"div",18)(27,"p"),e.EFF(28),e.nI1(29,"customDateTimeFormat"),e.k0s()()(),e.j41(30,"div",15)(31,"div",16)(32,"h3",17),e.EFF(33,"Booking Information"),e.k0s()(),e.j41(34,"div",18),e.DNE(35,Id,7,9,"p",19)(36,Sd,2,0,"p",20),e.k0s()(),e.j41(37,"div",15)(38,"div",16)(39,"h3",17),e.EFF(40,"Dial-in Number"),e.k0s()(),e.j41(41,"div",18)(42,"p")(43,"a",21),e.EFF(44," USA:- +1 866-399-0906 "),e.k0s()()()(),e.j41(45,"div",15)(46,"div",16)(47,"h3",17),e.EFF(48,"Passcode"),e.k0s()(),e.DNE(49,Dd,3,1,"div",22),e.k0s()()()()()()()),2&s&&(e.R7$(4),e.Y8G("size",20),e.R7$(2),e.Y8G("config",r.config),e.R7$(6),e.Y8G("ngIf",0==(null==r.engagementsinfo?null:r.engagementsinfo.status)),e.R7$(),e.Y8G("ngIf",1==(null==r.engagementsinfo?null:r.engagementsinfo.status)&&0==(null==r.engagementsinfo?null:r.engagementsinfo.after_engagement_status)),e.R7$(),e.Y8G("ngIf",1==(null==r.engagementsinfo?null:r.engagementsinfo.status)&&1==(null==r.engagementsinfo?null:r.engagementsinfo.after_engagement_status)),e.R7$(),e.Y8G("ngIf",1==(null==r.engagementsinfo?null:r.engagementsinfo.status)&&2==(null==r.engagementsinfo?null:r.engagementsinfo.after_engagement_status)),e.R7$(),e.Y8G("ngIf",2==(null==r.engagementsinfo?null:r.engagementsinfo.status)),e.R7$(),e.Y8G("ngIf",3==(null==r.engagementsinfo?null:r.engagementsinfo.status)),e.R7$(),e.Y8G("ngIf",4==(null==r.engagementsinfo?null:r.engagementsinfo.status)),e.R7$(2),e.SpI("Engagement ID - ",null==r.engagementsinfo?null:r.engagementsinfo.unique_id,""),e.R7$(8),e.SpI(" ",e.bMT(29,14,null==r.engagementsinfo?null:r.engagementsinfo.created_at)," "),e.R7$(7),e.Y8G("ngIf",null==r.engagementsinfo?null:r.engagementsinfo.advisoravailability),e.R7$(),e.Y8G("ngIf",!(null!=r.engagementsinfo&&r.engagementsinfo.advisoravailability)),e.R7$(13),e.Y8G("ngIf",2!=r.user_type))},dependencies:[Xn.O,at.H,ke.bT,ot.iV,Te.kQ,Te.KI,Te.PQ,ln.ZF,je.bF,je.g3,je.aQ],styles:[".card.custom-card.advisorInfo-card[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 1px #00000014}"]})}}return i})();function Pd(i,n){1&i&&(e.j41(0,"h1",14),e.EFF(1,"Cancel Note"),e.k0s())}function Od(i,n){1&i&&(e.j41(0,"h1",14),e.EFF(1," Offline Engagement Note (Internal) "),e.k0s())}function Fd(i,n){1&i&&(e.j41(0,"div"),e.EFF(1," This Field is Required "),e.k0s())}function Nd(i,n){if(1&i&&(e.j41(0,"mat-error"),e.DNE(1,Fd,2,0,"div",11),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf",(t.f.cancelnote.touched||t.submitted)&&(null==t.f.cancelnote.errors?null:t.f.cancelnote.errors.required))}}let ks=(()=>{class i{constructor(t,s,r,a,l,o){this.dialogRef=t,this.commonService=s,this.spinner=r,this.fb=a,this.sharedData=l,this.helperService=o,this.submitted=!1,this.engagementsinfo="",this.advisor="",this.config={},this.appointmentcancelnote=this.fb.group({cancelnote:new ue.MJ("",[ue.k0.required])})}get f(){return this.appointmentcancelnote.controls}ngOnInit(){this.firedType=this.sharedData.firedType,this.engagementsinfo=this.sharedData.engagementsinfo,this.advisor=this.sharedData.advisor}onSubmit(){if(this.submitted=!0,this.appointmentcancelnote.valid){if(0==this.firedType){const t=this.appointmentcancelnote.value.cancelnote;this.spinner.show(),this.commonService.putAPICallForNode({url:"/api/engagement/client-bridger-request-canclled-engagement",data:{cancelNote:t,engagementID:this.sharedData.id}}).subscribe(r=>{this.spinner.hide(),200==r.status?(fe().fire("Success",r.msg,"success"),this.appointmentcancelnote.reset(),this.dialogRef.close("done")):(fe().fire("OOPS!!",r.msg,"error"),this.dialogRef.close("error"))},r=>{fe().fire("OOPS!!",r.message,"error"),this.dialogRef.close("error")})}if(1==this.firedType){const t=this.appointmentcancelnote.value.cancelnote;this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/engagement/add-offline-schedule-note",data:{offline_note:t,id:this.sharedData.id}}).subscribe({next:r=>{this.spinner.hide(),this.helperService.showSuccess(r.message),this.appointmentcancelnote.reset(),this.dialogRef.close("done")},error:r=>{this.spinner.hide(),this.helperService.showError(r.error.message||"Something went wrong"),this.dialogRef.close("error")}})}}}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(Te.RN),e.rXU(Ve.h),e.rXU(_t.ex),e.rXU(ue.ok),e.rXU(Te.xh),e.rXU(gt.w))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-cancel-note-dialog"]],decls:16,vars:7,consts:[[3,"ngSubmit","formGroup"],["mat-dialog-title","",1,"flex","justify-between"],["class","titleText",4,"ngIf"],["type","button","mat-icon-button","",3,"click"],["name","close","label","Close",3,"size"],["mat-dialog-content",""],[3,"config"],[1,"col-sm-12"],[1,"comn-form"],[1,"form-group"],["placeholder","Type...","formControlName","cancelnote",1,"form-control"],[4,"ngIf"],["mat-dialog-actions","",1,"justify-end"],["mat-flat-button","","color","primary","type","submit",3,"disabled"],[1,"titleText"]],template:function(s,r){1&s&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return r.onSubmit()}),e.j41(1,"div",1),e.DNE(2,Pd,2,0,"h1",2)(3,Od,2,0,"h1",2),e.j41(4,"button",3),e.bIt("click",function(){return r.dialogRef.close("close")}),e.nrm(5,"ui-icon",4),e.k0s()(),e.j41(6,"div",5)(7,"perfect-scrollbar",6)(8,"div",7)(9,"div",8)(10,"div",9),e.nrm(11,"textarea",10),e.DNE(12,Nd,2,1,"mat-error",11),e.k0s()()()()(),e.j41(13,"div",12)(14,"button",13),e.EFF(15," Save "),e.k0s()()()),2&s&&(e.Y8G("formGroup",r.appointmentcancelnote),e.R7$(2),e.Y8G("ngIf",0==r.firedType),e.R7$(),e.Y8G("ngIf",1==r.firedType),e.R7$(2),e.Y8G("size",20),e.R7$(2),e.Y8G("config",r.config),e.R7$(5),e.Y8G("ngIf",r.f.cancelnote.errors),e.R7$(2),e.Y8G("disabled",!!r.f.cancelnote.errors))}
1,dependencies:[at.H,ke.bT,ot.iV,Te.KI,Te.PQ,Te.$t,Ue.k5,ue.qT,ue.me,ue.BC,ue.cb,ue.j4,ue.JD,ln.ZF]})}}return i})();var Ze=ge(21626),Md=Object.defineProperty,Ld=Object.defineProperties,jd=Object.getOwnPropertyDescriptors,_n=Object.getOwnPropertySymbols,Cs=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Kn=(i,n,t)=>n in i?Md(i,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[n]=t,be=(i,n)=>{for(var t in n||(n={}))Cs.call(n,t)&&Kn(i,t,n[t]);if(_n)for(var t of _n(n))Es.call(n,t)&&Kn(i,t,n[t]);return i},Me=(i,n)=>Ld(i,jd(n)),te=(i,n,t)=>Kn(i,"symbol"!=typeof n?n+"":n,t);class vn{constructor(n){te(this,"rootKey"),this.rootKey=n}}const Bd=Object.seal({});class K extends vn{constructor(n){super(n),te(this,"root"),this.root=new Array}prepForXml(n){var t;n.stack.push(this);const s=this.root.map(r=>r instanceof vn?r.prepForXml(n):r).filter(r=>void 0!==r);return n.stack.pop(),{[this.rootKey]:s.length?1===s.length&&null!=(t=s[0])&&t._attr?s[0]:s:Bd}}addChildElement(n){return this.root.push(n),this}}class lt extends K{prepForXml(n){const t=super.prepForXml(n);if(t&&("object"!=typeof t[this.rootKey]||Object.keys(t[this.rootKey]).length))return t}}class me extends vn{constructor(n){super("_attr"),te(this,"xmlKeys"),this.root=n}prepForXml(n){const t={};return Object.entries(this.root).forEach(([s,r])=>{void 0!==r&&(t[this.xmlKeys&&this.xmlKeys[s]||s]=r)}),{_attr:t}}}class We extends vn{constructor(n){super("_attr"),this.root=n}prepForXml(n){return{_attr:Object.values(this.root).filter(({value:s})=>void 0!==s).reduce((s,{key:r,value:a})=>Me(be({},s),{[r]:a}),{})}}}class Ie extends me{constructor(){super(...arguments),te(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jn(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ts,Qn={},wn={exports:{}};function ei(){if(Ts)return wn.exports;Ts=1;var t,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(S,M,L){return Function.prototype.apply.call(S,M,L)};t=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(S){return Object.getOwnPropertyNames(S).concat(Object.getOwnPropertySymbols(S))}:function(S){return Object.getOwnPropertyNames(S)};var r=Number.isNaN||function(S){return S!=S};function a(){a.init.call(this)}wn.exports=a,wn.exports.once=function h(m,S){return new Promise(function(M,L){function $(Z){m.removeListener(S,R),L(Z)}function R(){"function"==typeof m.removeListener&&m.removeListener("error",$),M([].slice.call(arguments))}v(m,S,R,{once:!0}),"error"!==S&&function k(m,S,M){"function"==typeof m.on&&v(m,"error",S,M)}(m,$,{once:!0})})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var l=10;function o(m){if("function"!=typeof m)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof m)}function u(m){return void 0===m._maxListeners?a.defaultMaxListeners:m._maxListeners}function p(m,S,M,L){var $,R,Z;if(o(M),void 0===(R=m._events)?(R=m._events=Object.create(null),m._eventsCount=0):(void 0!==R.newListener&&(m.emit("newListener",S,M.listener?M.listener:M),R=m._events),Z=R[S]),void 0===Z)Z=R[S]=M,++m._eventsCount;else if("function"==typeof Z?Z=R[S]=L?[M,Z]:[Z,M]:L?Z.unshift(M):Z.push(M),($=u(m))>0&&Z.length>$&&!Z.warned){Z.warned=!0;var ce=new Error("Possible EventEmitter memory leak detected. "+Z.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");ce.name="MaxListenersExceededWarning",ce.emitter=m,ce.type=S,ce.count=Z.length,function s(m){console&&console.warn&&console.warn(m)}(ce)}return m}function _(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(m,S,M){var L={fired:!1,wrapFn:void 0,target:m,type:S,listener:M},$=_.bind(L);return $.listener=M,L.wrapFn=$,$}function C(m,S,M){var L=m._events;if(void 0===L)return[];var $=L[S];return void 0===$?[]:"function"==typeof $?M?[$.listener||$]:[$]:M?function D(m){for(var S=new Array(m.length),M=0;M<S.length;++M)S[M]=m[M].listener||m[M];return S}($):x($,$.length)}function f(m){var S=this._events;if(void 0!==S){var M=S[m];if("function"==typeof M)return 1;if(void 0!==M)return M.length}return 0}function x(m,S){for(var M=new Array(S),L=0;L<S;++L)M[L]=m[L];return M}
vendor: 9,837 bytes, line 1
1function v(m,S,M,L){if("function"==typeof m.on)L.once?m.once(S,M):m.on(S,M);else{if("function"!=typeof m.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof m);m.addEventListener(S,function $(R){L.once&&m.removeEventListener(S,$),M(R)})}}return Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(m){if("number"!=typeof m||m<0||r(m))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+m+".");l=m}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(S){if("number"!=typeof S||S<0||r(S))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+S+".");return this._maxListeners=S,this},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(S){for(var M=[],L=1;L<arguments.length;L++)M.push(arguments[L]);var $="error"===S,R=this._events;if(void 0!==R)$=$&&void 0===R.error;else if(!$)return!1;if($){var Z;if(M.length>0&&(Z=M[0]),Z instanceof Error)throw Z;var ce=new Error("Unhandled error."+(Z?" ("+Z.message+")":""));throw ce.context=Z,ce}var P=R[S];if(void 0===P)return!1;if("function"==typeof P)n(P,this,M);else{var B=P.length,E=x(P,B);for(L=0;L<B;++L)n(E[L],this,M)}return!0},a.prototype.on=a.prototype.addListener=function(S,M){return p(this,S,M,!1)},a.prototype.prependListener=function(S,M){return p(this,S,M,!0)},a.prototype.once=function(S,M){return o(M),this.on(S,g(this,S,M)),this},a.prototype.prependOnceListener=function(S,M){return o(M),this.prependListener(S,g(this,S,M)),this},a.prototype.off=a.prototype.removeListener=function(S,M){var L,$,R,Z,ce;if(o(M),void 0===($=this._events))return this;if(void 0===(L=$[S]))return this;if(L===M||L.listener===M)0==--this._eventsCount?this._events=Object.create(null):(delete $[S],$.removeListener&&this.emit("removeListener",S,L.listener||M));else if("function"!=typeof L){for(R=-1,Z=L.length-1;Z>=0;Z--)if(L[Z]===M||L[Z].listener===M){ce=L[Z].listener,R=Z;break}if(R<0)return this;0===R?L.shift():function y(m,S){for(;S+1<m.length;S++)m[S]=m[S+1];m.pop()}(L,R),1===L.length&&($[S]=L[0]),void 0!==$.removeListener&&this.emit("removeListener",S,ce||M)}return this},a.prototype.removeAllListeners=function(S){var M,L,$;if(void 0===(L=this._events))return this;if(void 0===L.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==L[S]&&(0==--this._eventsCount?this._events=Object.create(null):delete L[S]),this;if(0===arguments.length){var Z,R=Object.keys(L);for($=0;$<R.length;++$)"removeListener"!==(Z=R[$])&&this.removeAllListeners(Z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(M=L[S]))this.removeListener(S,M);else if(void 0!==M)for($=M.length-1;$>=0;$--)this.removeListener(S,M[$]);return this},a.prototype.listeners=function(S){return C(this,S,!0)},a.prototype.rawListeners=function(S){return C(this,S,!1)},a.listenerCount=function(m,S){return"function"==typeof m.listenerCount?m.listenerCount(S):f.call(m,S)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]},wn.exports}var As,bn={exports:{}};function vt(){return As||(As=1,bn.exports="function"==typeof Object.create?function(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:function(n,t){if(t){n.super_=t;var s=function(){};s.prototype=t.prototype,n.prototype=new s,n.prototype.constructor=n}}),bn.exports}function Ud(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Qe,et,Is={exports:{}},Se=Is.exports={};function ti(){throw new Error("setTimeout has not been defined")}function ni(){throw new Error("clearTimeout has not been defined")}function Ss(i){if(Qe===setTimeout)return setTimeout(i,0);if((Qe===ti||!Qe)&&setTimeout)return Qe=setTimeout,setTimeout(i,0);try{return Qe(i,0)}catch{try{return Qe.call(null,i,0)}catch{return Qe.call(this,i,0)}}}!function(){try{Qe="function"==typeof setTimeout?setTimeout:ti}catch{Qe=ti}try{et="function"==typeof clearTimeout?clearTimeout:ni}catch{et=ni}}();var kt,ct=[],Ot=!1,yn=-1;function zd(){!Ot||!kt||(Ot=!1,kt.length?ct=kt.concat(ct):yn=-1,ct.length&&Ds())}function Ds(){if(!Ot){var i=Ss(zd);Ot=!0;for(var n=ct.length;n;){for(kt=ct,ct=[];++yn<n;)kt&&kt[yn].run();yn=-1,n=ct.length}kt=null,Ot=!1,function $d(i){if(et===clearTimeout)return clearTimeout(i);if((et===ni||!et)&&clearTimeout)return et=clearTimeout,clearTimeout(i);try{return et(i)}catch{try{return et.call(null,i)}catch{return et.call(this,i)}}}(i)}}function Rs(i,n){this.fun=i,this.array=n}function dt(){}Se.nextTick=function(i){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];ct.push(new Rs(i,n)),1===ct.length&&!Ot&&Ss(Ds)},Rs.prototype.run=function(){this.fun.apply(null,this.array)},Se.title="browser",Se.browser=!0,Se.env={},Se.argv=[],Se.version="",Se.versions={},Se.on=dt,Se.addListener=dt,Se.once=dt,Se.off=dt,Se.removeListener=dt,Se.removeAllListeners=dt,Se.emit=dt,Se.prependListener=dt,Se.prependOnceListener=dt,Se.listeners=function(i){return[]},Se.binding=function(i){throw new Error("process.binding is not supported")},Se.cwd=function(){return"/"},Se.chdir=function(i){throw new Error("process.chdir is not supported")},Se.umask=function(){return 0};const xe=Ud(Is.exports);var ii,Ps;function Os(){return Ps||(Ps=1,ii=ei().EventEmitter),ii}var Fs,Ns,Ms,ri={},zt={},xn={};function kn(){return Ms||(Ms=1,function(i){var n=function Hd(){if(Fs)return zt;Fs=1,zt.byteLength=function o(f){var x=l(f),D=x[1];return 3*(x[0]+D)/4-D},zt.toByteArray=function p(f){var x,S,y=l(f),D=y[0],h=y[1],k=new t(function u(f,x,y){return 3*(x+y)/4-y}(0,D,h)),v=0,m=h>0?D-4:D;for(S=0;S<m;S+=4)x=n[f.charCodeAt(S)]<<18|n[f.charCodeAt(S+1)]<<12|n[f.charCodeAt(S+2)]<<6|n[f.charCodeAt(S+3)],k[v++]=x>>16&255,k[v++]=x>>8&255,k[v++]=255&x;return 2===h&&(x=n[f.charCodeAt(S)]<<2|n[f.charCodeAt(S+1)]>>4,k[v++]=255&x),1===h&&(x=n[f.charCodeAt(S)]<<10|n[f.charCodeAt(S+1)]<<4|n[f.charCodeAt(S+2)]>>2,k[v++]=x>>8&255,k[v++]=255&x),k},zt.fromByteArray=function C(f){for(var x,y=f.length,D=y%3,h=[],k=16383,v=0,m=y-D;v<m;v+=k)h.push(g(f,v,v+k>m?m:v+k));return 1===D?h.push(i[(x=f[y-1])>>2]+i[x<<4&63]+"=="):2===D&&h.push(i[(x=(f[y-2]<<8)+f[y-1])>>10]+i[x>>4&63]+i[x<<2&63]+"="),h.join("")};for(var i=[],n=[],t=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0;r<64;++r)i[r]=s[r],n[s.charCodeAt(r)]=r;function l(f){var x=f.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=f.indexOf("=");return-1===y&&(y=x),[y,y===x?0:4-y%4]}function _(f){return i[f>>18&63]+i[f>>12&63]+i[f>>6&63]+i[63&f]}function g(f,x,y){for(var h=[],k=x;k<y;k+=3)h.push(_((f[k]<<16&16711680)+(f[k+1]<<8&65280)+(255&f[k+2])));return h.join("")}return n[45]=62,n[95]=63,zt}(),t=function Vd(){return Ns||(Ns=1,xn.read=function(i,n,t,s,r){var a,l,o=8*r-s-1,u=(1<<o)-1,p=u>>1,_=-7,g=t?r-1:0,C=t?-1:1,f=i[n+g];for(g+=C,a=f&(1<<-_)-1,f>>=-_,_+=o;_>0;a=256*a+i[n+g],g+=C,_-=8);for(l=a&(1<<-_)-1,a>>=-_,_+=s;_>0;l=256*l+i[n+g],g+=C,_-=8);if(0===a)a=1-p;else{if(a===u)return l?NaN:1/0*(f?-1:1);l+=Math.pow(2,s),a-=p}return(f?-1:1)*l*Math.pow(2,a-s)},xn.write=function(i,n,t,s,r,a){var l,o,u,p=8*a-r-1,_=(1<<p)-1,g=_>>1,C=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=s?0:a-1,x=s?1:-1,y=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(o=isNaN(n)?1:0,l=_):(l=Math.floor(Math.log(n)/Math.LN2),n*(u=Math.pow(2,-l))<1&&(l--,u*=2),(n+=l+g>=1?C/u:C*Math.pow(2,1-g))*u>=2&&(l++,u/=2),l+g>=_?(o=0,l=_):l+g>=1?(o=(n*u-1)*Math.pow(2,r),l+=g):(o=n*Math.pow(2,g-1)*Math.pow(2,r),l=0));r>=8;i[t+f]=255&o,f+=x,o/=256,r-=8);for(l=l<<r|o,p+=r;p>0;i[t+f]=255&l,f+=x,l/=256,p-=8);i[t+f-x]|=128*y}),xn}(),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;i.Buffer=o,i.SlowBuffer=function k(I){return+I!=I&&(I=0),o.alloc(+I)},i.INSPECT_MAX_BYTES=50;var r=2147483647;function l(I){if(I>r)throw new RangeError('The value "'+I+'" is invalid for option "size"');var c=new Uint8Array(I);return Object.setPrototypeOf(c,o.prototype),c}function o(I,c,d){if("number"==typeof I){if("string"==typeof c)throw new TypeError('The "string" argument must be of type string. Received type number');return g(I)}return u(I,c,d)}function u(I,c,d){if("string"==typeof I)return function C(I,c){if(("string"!=typeof c||""===c)&&(c="utf8"),!o.isEncoding(c))throw new TypeError("Unknown encoding: "+c);var d=0|v(I,c),b=l(d),j=b.write(I,c);return j!==d&&(b=b.slice(0,j)),b}(I,c);if(ArrayBuffer.isView(I))return function x(I){if(ee(I,Uint8Array)){var c=new Uint8Array(I);return y(c.buffer,c.byteOffset,c.byteLength)}return f(I)}(I);if(null==I)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(ee(I,ArrayBuffer)||I&&ee(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ee(I,SharedArrayBuffer)||I&&ee(I.buffer,SharedArrayBuffer)))return y(I,c,d);if("number"==typeof I)throw new TypeError('The "value" argument must not be of type number. Received type number');var b=I.valueOf&&I.valueOf();if(null!=b&&b!==I)return o.from(b,c,d);var j=function D(I){if(o.isBuffer(I)){var c=0|h(I.length),d=l(c);return 0===d.length||I.copy(d,0,0,c),d}return void 0!==I.length?"number"!=typeof I.length||w(I.length)?l(0):f(I):"Buffer"===I.type&&Array.isArray(I.data)?f(
vendor: 4,291 bytes, line 1
1I.data):void 0}(I);if(j)return j;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof I[Symbol.toPrimitive])return o.from(I[Symbol.toPrimitive]("string"),c,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}function p(I){if("number"!=typeof I)throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function g(I){return p(I),l(I<0?0:0|h(I))}function f(I){for(var c=I.length<0?0:0|h(I.length),d=l(c),b=0;b<c;b+=1)d[b]=255&I[b];return d}function y(I,c,d){if(c<0||I.byteLength<c)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<c+(d||0))throw new RangeError('"length" is outside of buffer bounds');var b;return b=void 0===c&&void 0===d?new Uint8Array(I):void 0===d?new Uint8Array(I,c):new Uint8Array(I,c,d),Object.setPrototypeOf(b,o.prototype),b}function h(I){if(I>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|I}function v(I,c){if(o.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||ee(I,ArrayBuffer))return I.byteLength;if("string"!=typeof I)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var d=I.length,b=arguments.length>2&&!0===arguments[2];if(!b&&0===d)return 0;for(var j=!1;;)switch(c){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return T(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*d;case"hex":return d>>>1;case"base64":return O(I).length;default:if(j)return b?-1:T(I).length;c=(""+c).toLowerCase(),j=!0}}function m(I,c,d){var b=!1;if((void 0===c||c<0)&&(c=0),c>this.length||((void 0===d||d>this.length)&&(d=this.length),d<=0)||(d>>>=0)<=(c>>>=0))return"";for(I||(I="utf8");;)switch(I){case"hex":return ie(this,c,d);case"utf8":case"utf-8":return E(this,c,d);case"ascii":return Y(this,c,d);case"latin1":case"binary":return ae(this,c,d);case"base64":return B(this,c,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,c,d);default:if(b)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),b=!0}}function S(I,c,d){var b=I[c];I[c]=I[d],I[d]=b}function M(I,c,d,b,j){if(0===I.length)return-1;if("string"==typeof d?(b=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),w(d=+d)&&(d=j?0:I.length-1),d<0&&(d=I.length+d),d>=I.length){if(j)return-1;d=I.length-1}else if(d<0){if(!j)return-1;d=0}if("string"==typeof c&&(c=o.from(c,b)),o.isBuffer(c))return 0===c.length?-1:L(I,c,d,b,j);if("number"==typeof c)return c&=255,"function"==typeof Uint8Array.prototype.indexOf?j?Uint8Array.prototype.indexOf.call(I,c,d):Uint8Array.prototype.lastIndexOf.call(I,c,d):L(I,[c],d,b,j);throw new TypeError("val must be string, number or Buffer")}function L(I,c,d,b,j){var oe,H=1,U=I.length,se=c.length;if(void 0!==b&&("ucs2"===(b=String(b).toLowerCase())||"ucs-2"===b||"utf16le"===b||"utf-16le"===b)){if(I.length<2||c.length<2)return-1;H=2,U/=2,se/=2,d/=2}function le(Le,xt){return 1===H?Le[xt]:Le.readUInt16BE(xt*H)}if(j){var he=-1;for(oe=d;oe<U;oe++)if(le(I,oe)===le(c,-1===he?0:oe-he)){if(-1===he&&(he=oe),oe-he+1===se)return he*H}else-1!==he&&(oe-=oe-he),he=-1}else for(d+se>U&&(d=U-se),oe=d;oe>=0;oe--){for(var _e=!0,ye=0;ye<se;ye++)if(le(I,oe+ye)!==le(c,ye)){_e=!1;break}if(_e)return oe}return-1}function $(I,c,d,b){d=Number(d)||0;var j=I.length-d;b?(b=Number(b))>j&&(b=j):b=j;var H=c.length;b>H/2&&(b=H/2);for(var U=0;U<b;++U){var se=parseInt(c.substr(2*U,2),16);if(w(se))return U;I[d+U]=se}return U}function R(I,c,d,b){return N(T(c,I.length-d),I,d,b)}function Z(I,c,d,b){return N(function z(I){for(var c=[],d=0;d<I.length;++d)c.push(255&I.charCodeAt(d));return c}(c),I,d,b)}function ce(I,c,d,b){return N(O(c),I,d,b)}function P(I,c,d,b){return N(function G(I,c){for(var d,b,H=[],U=0;U<I.length&&!((c-=2)<0);++U)b=(d=I.charCodeAt(U))>>8,H.push(d%256),H.push(b);return H}(c,I.length-d),I,d,b)}function B(I,c,d){return n.fromByteArray(0===c&&d===I.length?I:I.slice(c,d))}function E(I,c,d){d=Math.min(I.length,d);for(var b=[],j=c;j<d;){var le,oe,he,_e,H=I[j],U=null,se=H>239?4:H>223?3:H>191?2:1;if(j+se<=d)switch(se){case 1:H<128&&(U=H);break;
vendor: 5,209 bytes, line 1
1case 2:128==(192&(le=I[j+1]))&&(_e=(31&H)<<6|63&le)>127&&(U=_e);break;case 3:oe=I[j+2],128==(192&(le=I[j+1]))&&128==(192&oe)&&(_e=(15&H)<<12|(63&le)<<6|63&oe)>2047&&(_e<55296||_e>57343)&&(U=_e);break;case 4:oe=I[j+2],he=I[j+3],128==(192&(le=I[j+1]))&&128==(192&oe)&&128==(192&he)&&(_e=(15&H)<<18|(63&le)<<12|(63&oe)<<6|63&he)>65535&&_e<1114112&&(U=_e)}null===U?(U=65533,se=1):U>65535&&(b.push((U-=65536)>>>10&1023|55296),U=56320|1023&U),b.push(U),j+=se}return function ne(I){var c=I.length;if(c<=V)return String.fromCharCode.apply(String,I);for(var d="",b=0;b<c;)d+=String.fromCharCode.apply(String,I.slice(b,b+=V));return d}(b)}i.kMaxLength=r,!(o.TYPED_ARRAY_SUPPORT=function a(){try{var I=new Uint8Array(1),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(I,c),42===I.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(I,c,d){return u(I,c,d)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(I,c,d){return function _(I,c,d){return p(I),I<=0?l(I):void 0!==c?"string"==typeof d?l(I).fill(c,d):l(I).fill(c):l(I)}(I,c,d)},o.allocUnsafe=function(I){return g(I)},o.allocUnsafeSlow=function(I){return g(I)},o.isBuffer=function(c){return null!=c&&!0===c._isBuffer&&c!==o.prototype},o.compare=function(c,d){if(ee(c,Uint8Array)&&(c=o.from(c,c.offset,c.byteLength)),ee(d,Uint8Array)&&(d=o.from(d,d.offset,d.byteLength)),!o.isBuffer(c)||!o.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===d)return 0;for(var b=c.length,j=d.length,H=0,U=Math.min(b,j);H<U;++H)if(c[H]!==d[H]){b=c[H],j=d[H];break}return b<j?-1:j<b?1:0},o.isEncoding=function(c){switch(String(c).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(c,d){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(0===c.length)return o.alloc(0);var b;if(void 0===d)for(d=0,b=0;b<c.length;++b)d+=c[b].length;var j=o.allocUnsafe(d),H=0;for(b=0;b<c.length;++b){var U=c[b];if(ee(U,Uint8Array))H+U.length>j.length?o.from(U).copy(j,H):Uint8Array.prototype.set.call(j,U,H);else{if(!o.isBuffer(U))throw new TypeError('"list" argument must be an Array of Buffers');U.copy(j,H)}H+=U.length}return j},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var c=this.length;if(c%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<c;d+=2)S(this,d,d+1);return this},o.prototype.swap32=function(){var c=this.length;if(c%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<c;d+=4)S(this,d,d+3),S(this,d+1,d+2);return this},o.prototype.swap64=function(){var c=this.length;if(c%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<c;d+=8)S(this,d,d+7),S(this,d+1,d+6),S(this,d+2,d+5),S(this,d+3,d+4);return this},o.prototype.toString=function(){var c=this.length;return 0===c?"":0===arguments.length?E(this,0,c):m.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(c){if(!o.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c||0===o.compare(this,c)},o.prototype.inspect=function(){var c="",d=i.INSPECT_MAX_BYTES;return c=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(c+=" ... "),"<Buffer "+c+">"},s&&(o.prototype[s]=o.prototype.inspect),o.prototype.compare=function(c,d,b,j,H){if(ee(c,Uint8Array)&&(c=o.from(c,c.offset,c.byteLength)),!o.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(void 0===d&&(d=0),void 0===b&&(b=c?c.length:0),void 0===j&&(j=0),void 0===H&&(H=this.length),d<0||b>c.length||j<0||H>this.length)throw new RangeError("out of range index");if(j>=H&&d>=b)return 0;if(j>=H)return-1;if(d>=b)return 1;if(this===c)return 0;for(var U=(H>>>=0)-(j>>>=0),se=(b>>>=0)-(d>>>=0),le=Math.min(U,se),oe=this.slice(j,H),he=c.slice(d,b),_e=0;_e<le;++_e)if(oe[_e]!==he[_e]){U=oe[_e],se=he[_e];break}return U<se?-1:se<U?1:0},o.prototype.includes=function(c,d,b){return-1!==this.indexOf(c,d,b)},o.prototype.indexOf=function(c,d,b){return M(this,c,d,b,!0)},o.prototype.lastIndexOf=function(c,d,b){return M(this,c,d,b,!1)},o.prototype.write=function(c,d,b,j){if(void 0===d)j="utf8",b=this.length,d=0;else if(void 0===b&&"string"==typeof d)j=d,b=this.length,d=0;else{if(!isFinite(d))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");d>>>=0,isFinite(b)?(b>>>=0,void 0===j&&(j="utf8")):(j=b,b=void 0)}var H=this.length-d;if((void 0===b||b>
vendor: 6,570 bytes, line 1
1H)&&(b=H),c.length>0&&(b<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");for(var U=!1;;)switch(j){case"hex":return $(this,c,d,b);case"utf8":case"utf-8":return R(this,c,d,b);case"ascii":case"latin1":case"binary":return Z(this,c,d,b);case"base64":return ce(this,c,d,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,c,d,b);default:if(U)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),U=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;function Y(I,c,d){var b="";d=Math.min(I.length,d);for(var j=c;j<d;++j)b+=String.fromCharCode(127&I[j]);return b}function ae(I,c,d){var b="";d=Math.min(I.length,d);for(var j=c;j<d;++j)b+=String.fromCharCode(I[j]);return b}function ie(I,c,d){var b=I.length;(!c||c<0)&&(c=0),(!d||d<0||d>b)&&(d=b);for(var j="",H=c;H<d;++H)j+=Q[I[H]];return j}function pe(I,c,d){for(var b=I.slice(c,d),j="",H=0;H<b.length-1;H+=2)j+=String.fromCharCode(b[H]+256*b[H+1]);return j}function W(I,c,d){if(I%1!=0||I<0)throw new RangeError("offset is not uint");if(I+c>d)throw new RangeError("Trying to access beyond buffer length")}function F(I,c,d,b,j,H){if(!o.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>j||c<H)throw new RangeError('"value" argument is out of bounds');if(d+b>I.length)throw new RangeError("Index out of range")}function q(I,c,d,b,j,H){if(d+b>I.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function J(I,c,d,b,j){return c=+c,d>>>=0,j||q(I,0,d,4),t.write(I,c,d,b,23,4),d+4}function re(I,c,d,b,j){return c=+c,d>>>=0,j||q(I,0,d,8),t.write(I,c,d,b,52,8),d+8}o.prototype.slice=function(c,d){var b=this.length;(c=~~c)<0?(c+=b)<0&&(c=0):c>b&&(c=b),(d=void 0===d?b:~~d)<0?(d+=b)<0&&(d=0):d>b&&(d=b),d<c&&(d=c);var j=this.subarray(c,d);return Object.setPrototypeOf(j,o.prototype),j},o.prototype.readUintLE=o.prototype.readUIntLE=function(c,d,b){c>>>=0,d>>>=0,b||W(c,d,this.length);for(var j=this[c],H=1,U=0;++U<d&&(H*=256);)j+=this[c+U]*H;return j},o.prototype.readUintBE=o.prototype.readUIntBE=function(c,d,b){c>>>=0,d>>>=0,b||W(c,d,this.length);for(var j=this[c+--d],H=1;d>0&&(H*=256);)j+=this[c+--d]*H;return j},o.prototype.readUint8=o.prototype.readUInt8=function(c,d){return c>>>=0,d||W(c,1,this.length),this[c]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(c,d){return c>>>=0,d||W(c,2,this.length),this[c]|this[c+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(c,d){return c>>>=0,d||W(c,2,this.length),this[c]<<8|this[c+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(c,d){return c>>>=0,d||W(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+16777216*this[c+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(c,d){return c>>>=0,d||W(c,4,this.length),16777216*this[c]+(this[c+1]<<16|this[c+2]<<8|this[c+3])},o.prototype.readIntLE=function(c,d,b){c>>>=0,d>>>=0,b||W(c,d,this.length);for(var j=this[c],H=1,U=0;++U<d&&(H*=256);)j+=this[c+U]*H;return j>=(H*=128)&&(j-=Math.pow(2,8*d)),j},o.prototype.readIntBE=function(c,d,b){c>>>=0,d>>>=0,b||W(c,d,this.length);for(var j=d,H=1,U=this[c+--j];j>0&&(H*=256);)U+=this[c+--j]*H;return U>=(H*=128)&&(U-=Math.pow(2,8*d)),U},o.prototype.readInt8=function(c,d){return c>>>=0,d||W(c,1,this.length),128&this[c]?-1*(255-this[c]+1):this[c]},o.prototype.readInt16LE=function(c,d){c>>>=0,d||W(c,2,this.length);var b=this[c]|this[c+1]<<8;return 32768&b?4294901760|b:b},o.prototype.readInt16BE=function(c,d){c>>>=0,d||W(c,2,this.length);var b=this[c+1]|this[c]<<8;return 32768&b?4294901760|b:b},o.prototype.readInt32LE=function(c,d){return c>>>=0,d||W(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},o.prototype.readInt32BE=function(c,d){return c>>>=0,d||W(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},o.prototype.readFloatLE=function(c,d){return c>>>=0,d||W(c,4,this.length),t.read(this,c,!0,23,4)},o.prototype.readFloatBE=function(c,d){return c>>>=0,d||W(c,4,this.length),t.read(this,c,!1,23,4)},o.prototype.readDoubleLE=function(c,d){return c>>>=0,d||W(c,8,this.length),t.read(this,c,!0,52,8)},o.prototype.readDoubleBE=function(c,d){return c>>>=0,d||W(c,8,this.length),t.read(this,c,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(c,d,b,j){c=+c,d>>>=0,b>>>=0,j||F(this,c,d,b,Math.pow(2,8*b)-1,0);var U=1,se=0;for(this[d]=255&c;++se<b&&(U*=256);)this[d+se]=c/U&255;return d+b},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(c,d,b,j){c=+c,d>>>=0,b>>>=0,j||F(this,c,d,b,Math.pow(2,8*b)-1,0);var U=b-1,se=1;for(this[d+U]=255&c;--U>=0&&(se*=256);)this[d+U]=c/se&255;return d+b},o.prototype.writeUint8=o.prototype.writeUInt8=function(c,d,b){return c=+c,d>>>=0,b||F(this,c,d,1,255,0),this[d]=255&c,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(c,d,b){return c=+c,d>>>=0,b||F(this,c,d,2,65535,0),this[d]=255&c,this[d+1]=c>>>8,d+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(c,d,b){return c=+c,d>>>=0,b||F(this,c,d,2,65535,0),this[d]=c>>>8,this[d+1]=255&c,d+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(c,d,b){return c=+c,d>>>=0,b||F(this,c,d,4,4294967295,0),this[d+3]=c>>>24,this[d+2]=c>>>16,this[d+1]=c>>>8,this[d]=255&c,d+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(c,d,b){return c=+c,d>>>=0,b||F(this,c,d,4,4294967295,0),this[d]=c>>>24,this[d+1]=c>>>16,this[d+2]=c>>>8,this[d+3]=255&c,d+4},o.prototype.writeIntLE=function(c,d,b,j){if(c=+c,d>>>=0,!j){var H=Math.pow(2,8*b-1);F(this,c,d,b,H-1,-H)}var U=0,se=1,le=0;for(this[d]=255&c;++U<b&&(se*=256);)c<0&&0===le&&0!==this[d+U-1]&&(le=1),this[d+U]=(c/se|0)-le&255;return d+b},o.prototype.writeIntBE=function(c,d,b,j){if(c=+c,d>>>=0,!j){var H=Math.pow(2,8*b-1);F(this,c,d,b,H-1,-H)}var U=b-1,se=1,le=0;for(this[d+U]=255&c;--U>=0&&(se*=256);)c<0&&0===le&&0!==this[d+U+1]&&(le=1),this[d+U]=(c/se|0)-le&255;return d+b},o.prototype.writeInt8=function(c,d,b){return c=+c,d>>>=0,b||F(this,c,d,1,127,-128),c<0&&(c=255+c+1),this[d]=255&c,d+1},o.prototype.writeInt16LE=function(c,d,b){return c=+c,d>>>=0,b||F(this,c,d,2,32767,-32768),this[d]=255&c,this[d+1]=c>>>8,d+2},o.prototype.writeInt16BE=function(c,d,b){return c=+c,d>>>=0,b||F(this,c,d,2,32767,-32768),this[d]=c>>>8,this[d+1]=255&c,d+2},o.prototype.writeInt32LE=function(c,d,b){return c=+c,d>>>=0,b||F(this,c,d,4,2147483647,-2147483648),this[d]=255&c,this[d+1]=c>>>8,this[d+2]=c>>>16,this[d+3]=c>>>24,d+4},o.prototype.writeInt32BE=function(c,d,b){return c=+c,d>>>
vendor: 2,005 bytes, line 1
1=0,b||F(this,c,d,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[d]=c>>>24,this[d+1]=c>>>16,this[d+2]=c>>>8,this[d+3]=255&c,d+4},o.prototype.writeFloatLE=function(c,d,b){return J(this,c,d,!0,b)},o.prototype.writeFloatBE=function(c,d,b){return J(this,c,d,!1,b)},o.prototype.writeDoubleLE=function(c,d,b){return re(this,c,d,!0,b)},o.prototype.writeDoubleBE=function(c,d,b){return re(this,c,d,!1,b)},o.prototype.copy=function(c,d,b,j){if(!o.isBuffer(c))throw new TypeError("argument should be a Buffer");if(b||(b=0),!j&&0!==j&&(j=this.length),d>=c.length&&(d=c.length),d||(d=0),j>0&&j<b&&(j=b),j===b||0===c.length||0===this.length)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),c.length-d<j-b&&(j=c.length-d+b);var H=j-b;return this===c&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(d,b,j):Uint8Array.prototype.set.call(c,this.subarray(b,j),d),H},o.prototype.fill=function(c,d,b,j){if("string"==typeof c){if("string"==typeof d?(j=d,d=0,b=this.length):"string"==typeof b&&(j=b,b=this.length),void 0!==j&&"string"!=typeof j)throw new TypeError("encoding must be a string");if("string"==typeof j&&!o.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(1===c.length){var H=c.charCodeAt(0);("utf8"===j&&H<128||"latin1"===j)&&(c=H)}}else"number"==typeof c?c&=255:"boolean"==typeof c&&(c=Number(c));if(d<0||this.length<d||this.length<b)throw new RangeError("Out of range index");if(b<=d)return this;var U;if(d>>>=0,b=void 0===b?this.length:b>>>0,c||(c=0),"number"==typeof c)for(U=d;U<b;++U)this[U]=c;else{var se=o.isBuffer(c)?c:o.from(c,j),le=se.length;if(0===le)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(U=0;U<b-d;++U)this[U+d]=se[U%le]}return this};var X=/[^+/0-9A-Za-z-_]/g;function T(I,c){c=c||1/0;for(var d,b=I.length,j=null,H=[],U=0;U<b;++U){if((d=I.charCodeAt(U))>
155295&&d<57344){if(!j){if(d>56319){(c-=3)>-1&&H.push(239,191,189);continue}if(U+1===b){(c-=3)>-1&&H.push(239,191,189);continue}j=d;continue}if(d<56320){(c-=3)>-1&&H.push(239,191,189),j=d;continue}d=65536+(j-55296<<10|d-56320)}else j&&(c-=3)>-1&&H.push(239,191,189);if(j=null,d<128){if((c-=1)<0)break;H.push(d)}else if(d<2048){if((c-=2)<0)break;H.push(d>>6|192,63&d|128)}else if(d<65536){if((c-=3)<0)break;H.push(d>>12|224,d>>6&63|128,63&d|128)}else{if(!(d<1114112))throw new Error("Invalid code point");if((c-=4)<0)break;H.push(d>>18|240,d>>12&63|128,d>>6&63|128,63&d|128)}}return H}function O(I){return n.toByteArray(function A(I){if((I=(I=I.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;I.length%4!=0;)I+="=";return I}(I))}function N(I,c,d,b){for(var j=0;j<b&&!(j+d>=c.length||j>=I.length);++j)c[j+d]=I[j];return j}function ee(I,c){return I instanceof c||null!=I&&null!=I.constructor&&null!=I.constructor.name&&I.constructor.name===c.name}function w(I){return I!=I}var Q=function(){for(var I="0123456789abcdef",c=new Array(256),d=0;d<16;++d)for(var b=16*d,j=0;j<16;++j)c[b+j]=I[d]+I[j];return c}()}(ri)),ri}var oi,Ls,li,Gs,di,Bs,ui,$s,pi,zs,hi,Ys,fi,Hs,mi,Vs,gi,Ws,_i,qs,vi,Ks,wi,Zs,bi,Js,yi,Qs,xi,ea,ki,ta,Ci,na,Ei,ia,Ti,ra,Ai,sa,Ii,aa,Si,oa,Di,la,Ri,da,Pi,pa,Oi,ha,Fi,fa,Mi,ma,Li,_a,ji,va,Gi,wa,Bi,ba,Ui,ya,$i,xa,zi,ka,si={},ai={};function js(){return Ls||(Ls=1,oi=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var n={},t=Symbol("test"),s=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(s))return!1;for(var a in n[t]=42,n)return!1;if("function"==typeof Object.keys&&0!==Object.keys(n).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length)return!1;var l=Object.getOwnPropertySymbols(n);if(1!==l.length||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(n,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(n,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}),oi}function ci(){if(Gs)return li;Gs=1;var i=js();return li=function(){return i()&&!!Symbol.toStringTag}}function Us(){return Bs||(Bs=1,di=Object),di}function Xd(){return $s||($s=1,ui=Error),ui}function Wd(){return zs||(zs=1,pi=EvalError),pi}function qd(){return Ys||(Ys=1,hi=RangeError),hi}function Kd(){return Hs||(Hs=1,fi=ReferenceError),fi}function Xs(){return Vs||(Vs=1,mi=SyntaxError),mi}function Yt(){return Ws||(Ws=1,gi=TypeError),gi}function Zd(){return qs||(qs=1,_i=URIError),_i}function Jd(){return Ks||(Ks=1,vi=Math.abs),vi}function Qd(){return Zs||(Zs=1,wi=Math.floor),wi}function eu(){return Js||(Js=1,bi=Math.max),bi}function tu(){return Qs||(Qs=1,yi=Math.min),yi}function nu(){return ea||(ea=1,xi=Math.pow),xi}function iu(){return ta||(ta=1,ki=Math.round),ki}function ru(){return na||(na=1,Ci=Number.isNaN||function(n){return n!=n}),Ci}function su(){if(ia)return Ei;ia=1;var i=ru();return Ei=function(t){return i(t)||0===t?t:t<0?-1:1}}function au(){return ra||(ra=1,Ti=Object.getOwnPropertyDescriptor),Ti}function Ht(){if(sa)return Ai;sa=1;var i=au();if(i)try{i([],"length")}catch{i=null}return Ai=i}function Cn(){if(aa)return Ii;aa=1;var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return Ii=i}function ca(){return la||(la=1,Di=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Di}function ua(){return da?Ri:(da=1,Ri=Us().getPrototypeOf||null)}function Vt(){if(ha)return Oi;ha=1;var i=function lu(){if(pa)return Pi;pa=1;var n=Object.prototype.toString,t=Math.max,r=function(u,p){for(var _=[],g=0;g<u.length;g+=1)_[g]=u[g];for(var C=0;C<p.length;C+=1)_[C+u.length]=p[C];return _};return Pi=function(u){var p=this;if("function"!=typeof p||"[object Function]"!==n.apply(p))throw new TypeError("Function.prototype.bind called on incompatible "+p);for(var g,_=function(u,p){for(var _=[],g=1,C=0;g<u.length;g+=1,C+=1)_[C]=u[g];return _}(arguments),f=t(0,p.length-_.length),x=[],y=0;y<f;y++)x[y]="$"+y;if(g=Function("binder","return function ("+function(o,u){for(var p="",_=0;_<o.length;_+=1)p+=o[_],_+1<o.length&&(p+=",");return p}(x)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof g){var h=p.apply(this,r(_,arguments));return Object(h)===h?h:this}return p.apply(u,r(_,arguments))}),p.prototype){var D=function(){};D.prototype=p.prototype,g.prototype=new D,D.prototype=null}return g},Pi}();return Oi=Function.prototype.bind||i}function Ni(){return fa||(fa=1,Fi=Function.prototype.call),Fi}function ga(){return ma||(ma=1,Mi=Function.prototype.apply),Mi}function pu(){if(ba)return Bi;ba=1;var t,i=function uu(){if(wa)return Gi;wa=1;var i=Vt(),n=Yt(),t=Ni(),s=function du(){if(va)return ji;va=1;var i=Vt(),n=ga(),t=Ni(),s=function cu(){return _a||(_a=1,Li=typeof Reflect<"u"&&Reflect&&Reflect.apply),Li}();return ji=s||i.call(t,n)}();
1return Gi=function(a){if(a.length<1||"function"!=typeof a[0])throw new n("a function is required");return s(i,t,a)}}(),n=Ht();try{t=[].__proto__===Array.prototype}catch(l){if(!l||"object"!=typeof l||!("code"in l)||"ERR_PROTO_ACCESS"!==l.code)throw l}var s=!!t&&n&&n(Object.prototype,"__proto__"),r=Object,a=r.getPrototypeOf;return Bi=s&&"function"==typeof s.get?i([s.get]):"function"==typeof a&&function(o){return a(null==o?o:r(o))}}function fu(){if(xa)return $i;xa=1;var i=Function.prototype.call,n=Object.prototype.hasOwnProperty,t=Vt();return $i=t.call(i,n)}function Yi(){if(ka)return zi;ka=1;var i,n=Us(),t=Xd(),s=Wd(),r=qd(),a=Kd(),l=Xs(),o=Yt(),u=Zd(),p=Jd(),_=Qd(),g=eu(),C=tu(),f=nu(),x=iu(),y=su(),D=Function,h=function(z){try{return D('"use strict"; return ('+z+").constructor;")()}catch{}},k=Ht(),v=Cn(),m=function(){throw new o},S=k?function(){try{return m}catch{try{return k(arguments,"callee").get}catch{return m}}}():m,M=function ou(){if(oa)return Si;oa=1;var i=typeof Symbol<"u"&&Symbol,n=js();return Si=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}}()(),L=function hu(){if(ya)return Ui;ya=1;var i=ca(),n=ua(),t=pu();return Ui=i?function(r){return i(r)}:n?function(r){if(!r||"object"!=typeof r&&"function"!=typeof r)throw new TypeError("getProto: not an object");return n(r)}:t?function(r){return t(r)}:null}(),$=ua(),R=ca(),Z=ga(),ce=Ni(),P={},B=typeof Uint8Array>"u"||!L?i:L(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?i:ArrayBuffer,"%ArrayIteratorPrototype%":M&&L?L([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":typeof Atomics>"u"?i:Atomics,"%BigInt%":typeof BigInt>"u"?i:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?i:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?i:Float16Array,"%Float32Array%":typeof Float32Array>"u"?i:Float32Array,"%Float64Array%":typeof Float64Array>"u"?i:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?i:FinalizationRegistry,"%Function%":D,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array>"u"?i:Int8Array,"%Int16Array%":typeof Int16Array>"u"?i:Int16Array,"%Int32Array%":typeof Int32Array>
1"u"?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&L?L(L([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":typeof Map>"u"?i:Map,"%MapIteratorPrototype%":typeof Map>"u"||!M||!L?i:L((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?i:Promise,"%Proxy%":typeof Proxy>"u"?i:Proxy,"%RangeError%":r,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?i:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?i:Set,"%SetIteratorPrototype%":typeof Set>"u"||!M||!L?i:L((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&L?L(""[Symbol.iterator]()):i,"%Symbol%":M?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":B,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?i:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?i:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?i:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?i:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?i:WeakMap,"%WeakRef%":typeof WeakRef>"u"?i:WeakRef,"%WeakSet%":typeof WeakSet>"u"?i:WeakSet,"%Function.prototype.call%":ce,"%Function.prototype.apply%":Z,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":$,"%Math.abs%":p,"%Math.floor%":_,"%Math.max%":g,"%Math.min%":C,"%Math.pow%":f,"%Math.round%":x,"%Math.sign%":y,"%Reflect.getPrototypeOf%":R};if(L)try{null.error}catch(z){var V=L(L(z));E["%Error.prototype%"]=V}var ne=function z(G){var O;if("%AsyncFunction%"===G)O=h("async function () {}");else if("%GeneratorFunction%"===G)O=h("function* () {}");else if("%AsyncGeneratorFunction%"===G)O=h("async function* () {}");else if("%AsyncGenerator%"===G){var N=z("%AsyncGeneratorFunction%");N&&(O=N.prototype)}else if("%AsyncIteratorPrototype%"===G){var ee=z("%AsyncGenerator%");ee&&L&&(O=L(ee.prototype))}return E[G]=O,O},Y={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ae=Vt(),ie=fu(),pe=ae.call(ce,Array.prototype.concat),W=ae.call(Z,Array.prototype.splice),F=ae.call(ce,String.prototype.replace),q=ae.call(ce,String.prototype.slice),J=ae.call(ce,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,T=function(G,O){var ee,N=G;
1if(ie(Y,N)&&(N="%"+(ee=Y[N])[0]+"%"),ie(E,N)){var w=E[N];if(w===P&&(w=ne(N)),typeof w>"u"&&!O)throw new o("intrinsic "+G+" exists, but is not available. Please file an issue!");return{alias:ee,name:N,value:w}}throw new l("intrinsic "+G+" does not exist!")};return zi=function(G,O){if("string"!=typeof G||0===G.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof O)throw new o('"allowMissing" argument must be a boolean');if(null===J(/^%?[^%]*%?$/,G))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=function(G){var O=q(G,0,1),N=q(G,-1);if("%"===O&&"%"!==N)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===N&&"%"!==O)throw new l("invalid intrinsic syntax, expected opening `%`");var ee=[];return F(G,re,function(w,Q,I,c){ee[ee.length]=I?F(c,X,"$1"):Q||w}),ee}(G),ee=N.length>0?N[0]:"",w=T("%"+ee+"%",O),Q=w.name,I=w.value,c=!1,d=w.alias;d&&(ee=d[0],W(N,pe([0,1],d)));for(var b=1,j=!0;b<N.length;b+=1){var H=N[b],U=q(H,0,1),se=q(H,-1);if(('"'===U||"'"===U||"`"===U||'"'===se||"'"===se||"`"===se)&&U!==se)throw new l("property names with quotes must have matching quotes");if(("constructor"===H||!j)&&(c=!0),ie(E,Q="%"+(ee+="."+H)+"%"))I=E[Q];else if(null!=I){if(!(H in I)){if(!O)throw new o("base intrinsic for "+G+" exists, but the property is not available.");return}if(k&&b+1>=N.length){var le=k(I,H);I=(j=!!le)&&"get"in le&&!("originalValue"in le.get)?le.get:I[H]}else j=ie(I,H),I=I[H];j&&!c&&(E[Q]=I)}}return I},zi}var Vi,Ca,Xi,Ea,Wi,Ta,Aa,qi,Sa,Ki,Ra,Zi,Pa,Ji,Oa,Qi,Fa,er,Na,tr,Ma,nr,La,ir,Ga,Ba,rr,Ua,$a,sr,Ya,ar,Ha,Hi={exports:{}};function mu(){if(Ca)return Vi;Ca=1;var i=Cn(),n=Xs(),t=Yt(),s=Ht();return Vi=function(a,l,o){if(!a||"object"!=typeof a&&"function"!=typeof a)throw new t("`obj` must be an object or a function`");if("string"!=typeof l&&"symbol"!=typeof l)throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new t("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,_=arguments.length>5?arguments[5]:null,g=arguments.length>6&&arguments[6],C=!!s&&s(a,l);if(i)i(a,l,{configurable:null===_&&C?C.configurable:!_,enumerable:null===u&&C?C.enumerable:!u,value:o,writable:null===p&&C?C.writable:!p});else{if(!g&&(u||p||_))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");a[l]=o}},Vi}function gu(){if(Ea)return Xi;Ea=1;var i=Cn(),n=function(){return!!i};return n.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch{return!0}},Xi=n}function _u(){if(Ta)return Wi;Ta=1;var i=Yi(),n=mu(),t=gu()(),s=Ht(),r=Yt(),a=i("%Math.floor%");return Wi=function(o,u){if("function"!=typeof o)throw new r("`fn` is not a function");if("number"!=typeof u||u<0||u>4294967295||a(u)!==u)throw new r("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],_=!0,g=!0;if("length"in o&&s){var C=s(o,"length");C&&!C.configurable&&(_=!1),C&&!C.writable&&(g=!1)}return(_||g||!p)&&(t?n(o,"length",u,!0,!0):n(o,"length",u)),o},Wi}function Ia(){return Aa||(Aa=1,function(i){var n=Vt(),t=Yi(),s=_u(),r=Yt(),a=t("%Function.prototype.apply%"),l=t("%Function.prototype.call%"),o=t("%Reflect.apply%",!0)||n.call(l,a),u=Cn(),p=t("%Math.max%");i.exports=function(C){if("function"!=typeof C)throw new r("a function is required");var f=o(n,l,arguments);return s(f,1+p(0,C.length-(arguments.length-1)),!0)};var _=function(){return o(n,a,arguments)};u?u(i.exports,"apply",{value:_}):i.exports.apply=_}(Hi)),Hi.exports}function Da(){if(Sa)return qi;Sa=1;var i=Yi(),n=Ia(),t=n(i("String.prototype.indexOf"));return qi=function(r,a){var l=i(r,!!a);return"function"==typeof l&&t(r,".prototype.")>-1?n(l):l}}function xu(){return Na||(Na=1,er=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),er}function ku(){if(Ma)return tr;Ma=1;var i=xu(),n=typeof globalThis>"u"?Je:globalThis;return tr=function(){for(var s=[],r=0;r<i.length;r++)"function"==typeof n[i[r]]&&(s[s.length]=i[r]);return s}}function ja(){if(La)return nr;La=1;
1var i=function yu(){if(Fa)return Qi;Fa=1;var i=function bu(){if(Oa)return Ji;Oa=1;var t,s,i=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw s}}),s={},n(function(){throw 42},null,t)}catch(k){k!==s&&(n=null)}else n=null;var r=/^\s*class\b/,a=function(v){try{var m=i.call(v);return r.test(m)}catch{return!1}},l=function(v){try{return!a(v)&&(i.call(v),!0)}catch{return!1}},o=Object.prototype.toString,x="function"==typeof Symbol&&!!Symbol.toStringTag,y=!(0 in[,]),D=function(){return!1};if("object"==typeof document){var h=document.all;o.call(h)===o.call(document.all)&&(D=function(v){if((y||!v)&&(typeof v>"u"||"object"==typeof v))try{var m=o.call(v);return("[object HTMLAllCollection]"===m||"[object HTML document.all class]"===m||"[object HTMLCollection]"===m||"[object Object]"===m)&&null==v("")}catch{}return!1})}return Ji=n?function(v){if(D(v))return!0;if(!v||"function"!=typeof v&&"object"!=typeof v)return!1;try{n(v,null,t)}catch(m){if(m!==s)return!1}return!a(v)&&l(v)}:function(v){if(D(v))return!0;if(!v||"function"!=typeof v&&"object"!=typeof v)return!1;if(x)return l(v);
1if(a(v))return!1;var m=o.call(v);return!("[object Function]"!==m&&"[object GeneratorFunction]"!==m&&!/^\[object HTML/.test(m))&&l(v)}}(),n=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return Qi=function(u,p,_){if(!i(p))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=_),"[object Array]"===n.call(u)?function(u,p,_){for(var g=0,C=u.length;g<C;g++)t.call(u,g)&&(null==_?p(u[g],g,u):p.call(_,u[g],g,u))}(u,p,g):"string"==typeof u?function(u,p,_){for(var g=0,C=u.length;g<C;g++)null==_?p(u.charAt(g),g,u):p.call(_,u.charAt(g),g,u)}(u,p,g):function(u,p,_){for(var g in u)t.call(u,g)&&(null==_?p(u[g],g,u):p.call(_,u[g],g,u))}(u,p,g)},Qi}(),n=ku(),t=Ia(),s=Da(),r=Ht(),a=s("Object.prototype.toString"),l=ci()(),o=typeof globalThis>"u"?Je:globalThis,u=n(),p=s("String.prototype.slice"),_=Object.getPrototypeOf,g=s("Array.prototype.indexOf",!0)||function(D,h){for(var k=0;k<D.length;k+=1)if(D[k]===h)return k;return-1},C={__proto__:null};return i(u,l&&r&&_?function(y){var D=new o[y];if(Symbol.toStringTag in D){var h=_(D),k=r(h,Symbol.toStringTag);if(!k){var v=_(h);k=r(v,Symbol.toStringTag)}C["$"+y]=t(k.get)}}:function(y){var D=new o[y],h=D.slice||D.set;h&&(C["$"+y]=t(h))}),nr=function(D){if(!D||"object"!=typeof D)return!1;if(!l){var h=p(a(D),8,-1);return g(u,h)>-1?h:"Object"===h&&function(D){var h=!1;return i(C,function(k,v){if(!h)try{k(D),h=p(v,1)}catch{}}),h}(D)}return r?function(D){var h=!1;return i(C,function(k,v){if(!h)try{"$"+k(D)===v&&(h=p(v,1))}catch{}}),h}(D):null}}function Cu(){if(Ga)return ir;Ga=1;var i=ja();return ir=function(t){return!!i(t)}}function Eu(){return Ba||(Ba=1,function(i){var n=function vu(){if(Ra)return Ki;Ra=1;var i=ci()(),t=Da()("Object.prototype.toString"),s=function(o){return!(i&&o&&"object"==typeof o&&Symbol.toStringTag in o)&&"[object Arguments]"===t(o)},r=function(o){return!!s(o)||null!==o&&"object"==typeof o&&"number"==typeof o.length&&o.length>=0&&"[object Array]"!==t(o)&&"[object Function]"===t(o.callee)},a=function(){return s(arguments)}();return s.isLegacyArguments=r,Ki=a?s:r}(),t=function wu(){if(Pa)return Zi;Pa=1;var l,i=Object.prototype.toString,n=Function.prototype.toString,t=/^\s*(?:function)?\*/,s=ci()(),r=Object.getPrototypeOf;return Zi=function(u){if("function"!=typeof u)return!1;if(t.test(n.call(u)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(u);if(!r)return!1;if(typeof l>"u"){var _=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!_&&r(_)}return r(u)===l}}(),s=ja(),r=Cu();function a(b){return b.call.bind(b)}var l=typeof BigInt<"u",o=typeof Symbol<"u",u=a(Object.prototype.toString),p=a(Number.prototype.valueOf),_=a(String.prototype.valueOf),g=a(Boolean.prototype.valueOf);if(l)var C=a(BigInt.prototype.valueOf);if(o)var f=a(Symbol.prototype.valueOf);function x(b,j){if("object"!=typeof b)return!1;try{return j(b),!0}catch{return!1}}function P(b){return"[object Map]"===u(b)}function E(b){return"[object Set]"===u(b)}function ne(b){return"[object WeakMap]"===u(b)}function ae(b){return"[object WeakSet]"===u(b)}function pe(b){return"[object ArrayBuffer]"===u(b)}function W(b){return!(typeof ArrayBuffer>"u")&&(pe.working?pe(b):b instanceof ArrayBuffer)}function F(b){return"[object DataView]"===u(b)}function q(b){return!(typeof DataView>"u")&&(F.working?F(b):b instanceof DataView)}i.isArgumentsObject=n,i.isGeneratorFunction=t,i.isTypedArray=r,i.isPromise=function y(b){return typeof Promise<"u"&&b instanceof Promise||null!==b&&"object"==typeof b&&"function"==typeof b.then&&"function"==typeof b.catch},i.isArrayBufferView=function D(b){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(b):r(b)||q(b)},i.isUint8Array=function h(b){return"Uint8Array"===s(b)},i.isUint8ClampedArray=function k(b){return"Uint8ClampedArray"===s(b)},i.isUint16Array=function v(b){return"Uint16Array"===s(b)},i.isUint32Array=function m(b){return"Uint32Array"===s(b)},i.isInt8Array=function S(b){return"Int8Array"===s(b)},i.isInt16Array=function M(b){return"Int16Array"===s(b)},i.isInt32Array=function L(b){return"Int32Array"===s(b)},i.isFloat32Array=function $(b){return"Float32Array"===s(b)},i.isFloat64Array=function R(b){return"Float64Array"===s(b)},i.isBigInt64Array=function Z(b){return"BigInt64Array"===s(b)},i.isBigUint64Array=function ce(b){return"BigUint64Array"===s(b)}
vendor: 9,260 bytes, line 1
1,P.working=typeof Map<"u"&&P(new Map),i.isMap=function B(b){return!(typeof Map>"u")&&(P.working?P(b):b instanceof Map)},E.working=typeof Set<"u"&&E(new Set),i.isSet=function V(b){return!(typeof Set>"u")&&(E.working?E(b):b instanceof Set)},ne.working=typeof WeakMap<"u"&&ne(new WeakMap),i.isWeakMap=function Y(b){return!(typeof WeakMap>"u")&&(ne.working?ne(b):b instanceof WeakMap)},ae.working=typeof WeakSet<"u"&&ae(new WeakSet),i.isWeakSet=function ie(b){return ae(b)},pe.working=typeof ArrayBuffer<"u"&&pe(new ArrayBuffer),i.isArrayBuffer=W,F.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&F(new DataView(new ArrayBuffer(1),0,1)),i.isDataView=q;var J=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function re(b){return"[object SharedArrayBuffer]"===u(b)}function X(b){return!(typeof J>"u")&&(typeof re.working>"u"&&(re.working=re(new J)),re.working?re(b):b instanceof J)}function N(b){return x(b,p)}function ee(b){return x(b,_)}function w(b){return x(b,g)}function Q(b){return l&&x(b,C)}function I(b){return o&&x(b,f)}i.isSharedArrayBuffer=X,i.isAsyncFunction=function A(b){return"[object AsyncFunction]"===u(b)},i.isMapIterator=function T(b){return"[object Map Iterator]"===u(b)},i.isSetIterator=function z(b){return"[object Set Iterator]"===u(b)},i.isGeneratorObject=function G(b){return"[object Generator]"===u(b)},i.isWebAssemblyCompiledModule=function O(b){return"[object WebAssembly.Module]"===u(b)},i.isNumberObject=N,i.isStringObject=ee,i.isBooleanObject=w,i.isBigIntObject=Q,i.isSymbolObject=I,i.isBoxedPrimitive=function c(b){return N(b)||ee(b)||w(b)||Q(b)||I(b)},i.isAnyArrayBuffer=function d(b){return typeof Uint8Array<"u"&&(W(b)||X(b))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(b){Object.defineProperty(i,b,{enumerable:!1,value:function(){throw new Error(b+" is not supported in userland")}})})}(ai)),ai}function za(){return $a||($a=1,function(i){var n=Object.getOwnPropertyDescriptors||function(q){for(var J=Object.keys(q),re={},X=0;X<J.length;X++)re[J[X]]=Object.getOwnPropertyDescriptor(q,J[X]);return re},t=/%[sdj%]/g;i.format=function(F){if(!S(F)){for(var q=[],J=0;J<arguments.length;J++)q.push(l(arguments[J]));return q.join(" ")}J=1;for(var re=arguments,X=re.length,A=String(F).replace(t,function(z){if("%%"===z)return"%";if(J>=X)return z;switch(z){case"%s":return String(re[J++]);case"%d":return Number(re[J++]);case"%j":try{return JSON.stringify(re[J++])}catch{return"[Circular]"}default:return z}}),T=re[J];J<X;T=re[++J])k(T)||!R(T)?A+=" "+T:A+=" "+l(T);return A},i.deprecate=function(F,q){if(typeof xe<"u"&&!0===xe.noDeprecation)return F;if(typeof xe>"u")return function(){return i.deprecate(F,q).apply(this,arguments)};var J=!1;return function re(){if(!J){if(xe.throwDeprecation)throw new Error(q);xe.traceDeprecation?console.trace(q):console.error(q),J=!0}return F.apply(this,arguments)}};var s={},r=/^$/;if(xe.env.NODE_DEBUG){var a=xe.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),r=new RegExp("^"+a+"$","i")}function l(F,q){var J={seen:[],stylize:u};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),h(q)?J.showHidden=q:q&&i._extend(J,q),L(J.showHidden)&&(J.showHidden=!1),L(J.depth)&&(J.depth=2),L(J.colors)&&(J.colors=!1),L(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=o),_(J,F,J.depth)}function o(F,q){var J=l.styles[q];return J?"\x1b["+l.colors[J][0]+"m"+F+"\x1b["+l.colors[J][1]+"m":F}function u(F,q){return F}function _(F,q,J){if(F.customInspect&&q&&P(q.inspect)&&q.inspect!==i.inspect&&(!q.constructor||q.constructor.prototype!==q)){var re=q.inspect(J,F);return S(re)||(re=_(F,re,J)),re}var X=function g(F,q){if(L(q))return F.stylize("undefined","undefined");if(S(q)){var J="'"+JSON.stringify(q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(J,"string")}return m(q)?F.stylize(""+q,"number"):h(q)?F.stylize(""+q,"boolean"):k(q)?F.stylize("null","null"):void 0}(F,q);if(X)return X;var A=Object.keys(q),T=function p(F){var q={};return F.forEach(function(J,re){q[J]=!0}),q}(A);if(F.showHidden&&(A=Object.getOwnPropertyNames(q)),ce(q)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return C(q);if(0===A.length){if(P(q))return F.stylize("[Function"+(q.name?": "+q.name:"")+"]","special");if($(q))return F.stylize(RegExp.prototype.toString.call(q),"regexp");if(Z(q))return F.stylize(Date.prototype.toString.call(q),"date");if(ce(q))return C(q)}var w,G="",O=!1,N=["{","}"];return D(q)&&(O=!0,N=["[","]"]),P(q)&&(G=" [Function"+(q.name?": "+q.name:"")+"]"),$(q)&&(G=" "+RegExp.prototype.toString.call(q)),Z(q)&&(G=" "+Date.prototype.toUTCString.call(q)),ce(q)&&(G=" "+C(q)),0!==A.length||O&&0!=q.length?J<0?$(q)?F.stylize(RegExp.prototype.toString.call(q),"regexp"):F.stylize("[Object]","special"):(F.seen.push(q),w=O?function f(F,q,J,re,X){for(var A=[],T=0,z=q.length;T<z;++T)ae(q,String(T))?A.push(x(F,q,J,re,String(T),!0)):A.push("");return X.forEach(function(G){G.match(/^\d+$/)||A.push(x(F,q,J,re,G,!0))}),A}(F,q,J,T,A):A.map(function(Q){return x(F,q,J,T,Q,O)}),F.seen.pop(),function y(F,q,J){var re=F.reduce(function(X,A){return A.indexOf("\n"),X+A.replace(/\u001b\[\d\d?m/g,"").length+1},0);return re>60?J[0]+(""===q?"":q+"\n ")+" "+F.join(",\n  ")+" "+J[1]:J[0]+q+" "+F.join(", ")+" "+J[1]}(w,G,N)):N[0]+G+N[1]}function C(F){return"["+Error.prototype.toString.call(F)+"]"}function x(F,q,J,re,X,A){var T,z,G;if((G=Object.getOwnPropertyDescriptor(q,X)||{value:q[X]}).get?z=F.stylize(G.set?"[Getter/Setter]":"[Getter]","special"):G.set&&(z=F.stylize("[Setter]","special")),ae(re,X)||(T="["+X+"]"),z||(F.seen.indexOf(G.value)<0?(z=k(J)?_(F,G.value,null):_(F,G.value,J-1)).indexOf("\n")>-1&&(z=A?z.split("\n").map(function(O){return"  "+O}).join("\n").slice(2):"\n"+z.split("\n").map(function(O){return"   "+O}).join("\n")):z=F.stylize("[Circular]","special")),L(T)){if(A&&X.match(/^\d+$/))return z;(T=JSON.stringify(""+X)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(T=T.slice(1,-1),T=F.stylize(T,"name")):(T=T.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),T=F.stylize(T,"string"))}return T+": "+z}function D(F){return Array.isArray(F)}function h(F){return"boolean"==typeof F}function k(F){return null===F}function m(F){return"number"==typeof F}function S(F){return"string"==typeof F}function L(F){return void 0===F}function $(F){return R(F)&&"[object RegExp]"===E(F)}function R(F){return"object"==typeof F&&null!==F}function Z(F){return R(F)&&"[object Date]"===E(F)}function ce(F){return R(F)&&("[object Error]"===E(F)||F instanceof Error)}function P(F){return"function"==typeof F}function E(F){return Object.prototype.toString.call(F)}function V(F){return F<10?"0"+F.toString(10):F.toString(10)}i.debuglog=function(F){if(F=F.toUpperCase(),!s[F])if(r.test(F)){var q=xe.pid;s[F]=function(){var J=i.format.apply(i,arguments);console.error("%s %d: %s",F,q,J)}}else s[F]=function(){};return s[F]},i.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.types=Eu(),i.isArray=D,i.isBoolean=h,i.isNull=k,i.isNullOrUndefined=function v(F){return null==F},i.isNumber=m,i.isString=S,i.isSymbol=function M(F){return"symbol"==typeof F},i.isUndefined=L,i.isRegExp=$,i.types.isRegExp=$,i.isObject=R,i.isDate=Z,i.types.isDate=Z,i.isError=ce,i.types.isNativeError=ce,i.isFunction=P,i.isPrimitive=function B(F){return null===F||"boolean"==typeof F||"number"==typeof F||"string"==typeof F||"symbol"==typeof F||typeof F>"u"},i.isBuffer=function Tu(){return Ua||(Ua=1,rr=function(n){return n&&"object"==typeof n&&"function"==typeof n.copy&&"function"==typeof n.fill&&"function"==typeof n.readUInt8}),rr}();var ne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ae(F,q){return Object.prototype.hasOwnProperty.call(F,q)}i.log=function(){console.log("%s - %s",function Y(){var F=new Date,q=[V(F.getHours()),V(F.getMinutes()),V(F.getSeconds())].join(":");return[F.getDate(),ne[F.getMonth()],q].join(" ")}(),i.format.apply(i,arguments))},i.inherits=vt(),i._extend=function(F,q){if(!q||!R(q))return F;for(var J=Object.keys(q),re=J.length;re--;)F[J[re]]=q[J[re]];return F};var ie=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function pe(F,q){if(!F){var J=new Error("Promise was rejected with a falsy value");J.reason=F,F=J}return q(F)}i.promisify=function(q){if("function"!=typeof q)throw new TypeError('The "original" argument must be of type Function');if(ie&&q[ie]){var J;if("function"!=typeof(J=q[ie]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,ie,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var re,X,A=new Promise(function(G,O){re=G,X=O}),T=[],z=0;z<arguments.length;z++)T.push(arguments[z]);T.push(function(G,O){G?X(G):re(O)});try{q.apply(this,T)}catch(G){X(G)}return A}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),ie&&Object.defineProperty(J,ie,{value:J,enumerable:!1,writable:!1,
1configurable:!0}),Object.defineProperties(J,n(q))},i.promisify.custom=ie,i.callbackify=function W(F){if("function"!=typeof F)throw new TypeError('The "original" argument must be of type Function');function q(){for(var J=[],re=0;re<arguments.length;re++)J.push(arguments[re]);var X=J.pop();if("function"!=typeof X)throw new TypeError("The last argument must be of type Function");var A=this,T=function(){return X.apply(A,arguments)};F.apply(this,J).then(function(z){xe.nextTick(T.bind(null,null,z))},function(z){xe.nextTick(pe.bind(null,z,T))})}return Object.setPrototypeOf(q,Object.getPrototypeOf(F)),Object.defineProperties(q,n(F)),q}}(si)),si}function Au(){if(Ya)return sr;function i(C,f){var x=Object.keys(C);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(C);f&&(y=y.filter(function(D){return Object.getOwnPropertyDescriptor(C,D).enumerable})),x.push.apply(x,y)}return x}function t(C,f,x){return f in C?Object.defineProperty(C,f,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[f]=x,C}Ya=1;var o=kn().Buffer,p=za().inspect,_=p&&p.custom||"inspect";function g(C,f,x){o.prototype.copy.call(C,f,x)}return sr=function(){function C(){(function s(C,f){if(!(C instanceof f))throw new TypeError("Cannot call a class as a function")})(this,C),this.head=null,this.tail=null,this.length=0}return function a(C,f,x){return f&&function r(C,f){for(var x=0;x<f.length;x++){var y=f[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(C,y.key,y)}}(C.prototype,f),C}(C,[{key:"push",value:function(x){var y={data:x,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(x){var y={data:x,next:this.head};0===this.length&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(0!==this.length){var x=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(0===this.length)return"";for(var y=this.head,D=""+y.data;y=y.next;)D+=x+y.data;return D}},{key:"concat",value:function(x){if(0===this.length)return o.alloc(0);for(var y=o.allocUnsafe(x>>>0),D=this.head,h=0;D;)g(D.data,y,h),h+=D.data.length,D=D.next;return y}},{key:"consume",value:function(x,y){var D;return x<this.head.data.length?(D=this.head.data.slice(0,x),this.head.data=this.head.data.slice(x)):D=x===this.head.data.length?this.shift():y?this._getString(x):this._getBuffer(x),D}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(x){var y=this.head,D=1,h=y.data;for(x-=h.length;y=y.next;){var k=y.data,v=x>k.length?k.length:x;if(h+=v===k.length?k:k.slice(0,x),0==(x-=v)){v===k.length?(++D,this.head=y.next?y.next:this.tail=null):(this.head=y,y.data=k.slice(v));break}++D}return this.length-=D,h}},{key:"_getBuffer",value:function(x){var y=o.allocUnsafe(x),D=this.head,h=1;for(D.data.copy(y),x-=D.data.length;D=D.next;){var k=D.data,v=x>k.length?k.length:x;if(k.copy(y,y.length-x,0,v),0==(x-=v)){v===k.length?(++h,this.head=D.next?D.next:this.tail=null):(this.head=D,D.data=k.slice(v));break}++h}return this.length-=h,y}},{key:_,value:function(x,y){return p(this,function n(C){for(var f=1;f<arguments.length;f++){var x=null!=arguments[f]?arguments[f]:{};f%2?i(Object(x),!0).forEach(function(y){t(C,y,x[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(x)):i(Object(x)).forEach(function(y){Object.defineProperty(C,y,Object.getOwnPropertyDescriptor(x,y))})}return C}({},y,{depth:0,customInspect:!1}))}}]),C}(),sr}function Va(){if(Ha)return ar;function n(l,o){r(l,o),t(l)}function t(l){l._writableState&&!l._writableState.emitClose||l._readableState&&!l._readableState.emitClose||l.emit("close")}function r(l,o){l.emit("error",o)}return Ha=1,ar={destroy:function i(l,o){var u=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(o?o(l):l&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,xe.nextTick(r,this,l)):xe.nextTick(r,this,l)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(l||null,function(g){!o&&g?u._writableState?u._writableState.errorEmitted?xe.nextTick(t,u):(u._writableState.errorEmitted=!0,xe.nextTick(n,u,g)):xe.nextTick(n,u,g):o?(xe.nextTick(t,u),o(g)):xe.nextTick(t,u)}),this)},undestroy:function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function a(l,o){var u=l._readableState,p=l._writableState;u&&u.autoDestroy||p&&p.autoDestroy?l.destroy(o):l.emit("error",o)}}}var Xa,lr,Wa,cr,Ka,dr,Za,ur,Qa,or={};function Ft(){if(Xa)return or;Xa=1;var n={};function t(o,u,p){p||(p=Error);var g=function(C){function f(x,y,D){return C.call(this,function _(C,f,x){return"string"==typeof u?u:u(C,f,x)}(x,y,D))||this}return function i(o,u){o.prototype=Object.create(u.prototype),o.prototype.constructor=o,o.__proto__=u}(f,C),f}(p);g.prototype.name=p.name,g.prototype.code=o,n[o]=g}function s(o,u){if(Array.isArray(o)){var p=o.length;return o=o.map(function(_){return String(_)}),p>2?"one of ".concat(u," ").concat(o.slice(0,p-1).join(", "),", or ")+o[p-1]:2===p?"one of ".concat(u," ").concat(o[0]," or ").concat(o[1]):"of ".concat(u," ").concat(o[0])}return"of ".concat(u," ").concat(String(o))}return t("ERR_INVALID_OPT_VALUE",function(o,u){return'The value "'+u+'" is invali
1d for option "'+o+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(o,u,p){var _,g;if("string"==typeof u&&function r(o,u,p){return o.substr(0,u.length)===u}(u,"not ")?(_="must not be",u=u.replace(/^not /,"")):_="must be",function a(o,u,p){return(void 0===p||p>o.length)&&(p=o.length),o.substring(p-u.length,p)===u}(o," argument"))g="The ".concat(o," ").concat(_," ").concat(s(u,"type"));else{var C=function l(o,u,p){return"number"!=typeof p&&(p=0),!(p+u.length>o.length)&&-1!==o.indexOf(u,p)}(o,".")?"property":"argument";g='The "'.concat(o,'" ').concat(C," ").concat(_," ").concat(s(u,"type"))}return g+". Received type ".concat(typeof p)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(o){return"The "+o+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(o){return"Cannot call "+o+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(o){return"Unknown encoding: "+o},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),or.codes=n,or}function qa(){if(Wa)return lr;Wa=1;var i=Ft().codes.ERR_INVALID_OPT_VALUE;return lr={getHighWaterMark:function t(s,r,a,l){var o=function n(s,r,a){return null!=s.highWaterMark?s.highWaterMark:r?s[a]:null}(r,l,a);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new i(l?a:"highWaterMark",o);return Math.floor(o)}return s.objectMode?16:16384}}}function Iu(){if(Ka)return cr;function n(t){try{if(!Je.localStorage)return!1}catch{return!1}var s=Je.localStorage[t];return null!=s&&"true"===String(s).toLowerCase()}return Ka=1,cr=function i(t,s){if(n("noDeprecation"))return t;var r=!1;return function a(){if(!r){if(n("throwDeprecation"))throw new Error(s);n("traceDeprecation")?console.trace(s):console.warn(s),r=!0}return t.apply(this,arguments)}},cr}function Ja(){if(Za)return dr;function i(X){var A=this;this.next=null,this.entry=null,this.finish=function(){!function re(X,A,T){var z=X.entry;for(X.entry=null;z;){var G=z.callback;A.pendingcb--,G(T),z=z.next}A.corkedRequestsFree.next=X}(A,X)}}var n;Za=1,dr=$,$.WritableState=M;var L,t={deprecate:Iu()},s=Os(),r=kn().Buffer,a=Je.Uint8Array||function(){},u=Va(),_=qa().getHighWaterMark,g=Ft().codes,C=g.ERR_INVALID_ARG_TYPE,f=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_MULTIPLE_CALLBACK,y=g.ERR_STREAM_CANNOT_PIPE,D=g.ERR_STREAM_DESTROYED,h=g.ERR_STREAM_NULL_VALUES,k=g.ERR_STREAM_WRITE_AFTER_END,v=g.ERR_UNKNOWN_ENCODING,m=u.errorOrDestroy;function S(){}function M(X,A,T){n=n||Nt(),"boolean"!=typeof T&&(T=A instanceof n),this.objectMode=!!(X=X||{}).objectMode,T&&(this.objectMode=this.objectMode||!!X.writableObjectMode),this.highWaterMark=_(this,X,"writableHighWaterMark",T),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===X.decodeStrings),this.defaultEncoding=X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(G){!function ne(X,A){var T=X._writableState,z=T.sync,G=T.writecb;if("function"!=typeof G)throw new x;if(function V(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0}(T),A)!function E(X,A,T,z,G){--A.pendingcb,T?(xe.nextTick(G,z),xe.nextTick(q,X,A),X._writableState.errorEmitted=!0,m(X,z)):(G(z),X._writableState.errorEmitted=!0,m(X,z),q(X,A))}(X,T,z,A,G);else{var O=pe(T)||X.destroyed;!O&&!T.corked&&!T.bufferProcessing&&T.bufferedRequest&&ie(X,T),z?xe.nextTick(Y,X,T,O,G):Y(X,T,O,G)}}(A,G)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==X.emitClose,this.autoDestroy=!!X.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function $(X){var A=this instanceof(n=n||Nt());if(!A&&!L.call($,this))return new $(X);this._writableState=new M(X,this,A),this.writable=!0,X&&("function"==typeof X.write&&(this._write=X.write),"function"==typeof X.writev&&(this._writev=X.writev),"function"==typeof X.destroy&&(this._destroy=X.destroy),"function"==typeof X.final&&(this._final=X.final)),s.call(this)}function B(X,A,T,z,G,O,N){A.writelen=z,A.writecb=N,A.writing=!0,A.sync=!0,A.destroyed?A.onwrite(new D("write")):T?X._writev(G,A.onwrite):X._write(G,O,A.onwrite),A.sync=!1}function Y(X,A,T,z){T||function ae(X,A){0===A.length&&A.needDrain&&(A.needDrain=!1,X.emit("drain"))}(X,A),A.pendingcb--,z(),q(X,A)}function ie(X,A){A.bufferProcessing=!0;var T=A.bufferedRequest;if(X._writev&&T&&T.next){var G=new Array(A.bufferedRequestCount),O=A.corkedRequestsFree;O.entry=T;for(var N=0,ee=!0;T;)G[N]=T,T.isBuf||(ee=!1),T=T.next,N+=1;G.allBuffers=ee,B(X,A,!0,A.length,G,"",O.finish),A.pendingcb++,A.lastBufferedRequest=null,O.next?(A.corkedRequestsFree=O.next,O.next=null):A.corkedRequestsFree=new i(A),A.bufferedRequestCount=0}else{for(;T;){var w=T.chunk;
vendor: 22,103 bytes, line 1
1if(B(X,A,!1,A.objectMode?1:w.length,w,T.encoding,T.callback),T=T.next,A.bufferedRequestCount--,A.writing)break}null===T&&(A.lastBufferedRequest=null)}A.bufferedRequest=T,A.bufferProcessing=!1}function pe(X){return X.ending&&0===X.length&&null===X.bufferedRequest&&!X.finished&&!X.writing}function W(X,A){X._final(function(T){A.pendingcb--,T&&m(X,T),A.prefinished=!0,X.emit("prefinish"),q(X,A)})}function q(X,A){var T=pe(A);if(T&&(function F(X,A){!A.prefinished&&!A.finalCalled&&("function"!=typeof X._final||A.destroyed?(A.prefinished=!0,X.emit("prefinish")):(A.pendingcb++,A.finalCalled=!0,xe.nextTick(W,X,A)))}(X,A),0===A.pendingcb&&(A.finished=!0,X.emit("finish"),A.autoDestroy))){var z=X._readableState;(!z||z.autoDestroy&&z.endEmitted)&&X.destroy()}return T}return vt()($,s),M.prototype.getBuffer=function(){for(var A=this.bufferedRequest,T=[];A;)T.push(A),A=A.next;return T},function(){try{Object.defineProperty(M.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty($,Symbol.hasInstance,{value:function(A){return!!L.call(this,A)||this===$&&A&&A._writableState instanceof M}})):L=function(A){return A instanceof this},$.prototype.pipe=function(){m(this,new y)},$.prototype.write=function(X,A,T){var z=this._writableState,G=!1,O=!z.objectMode&&function o(X){return r.isBuffer(X)||X instanceof a}(X);return O&&!r.isBuffer(X)&&(X=function l(X){return r.from(X)}(X)),"function"==typeof A&&(T=A,A=null),O?A="buffer":A||(A=z.defaultEncoding),"function"!=typeof T&&(T=S),z.ending?function R(X,A){var T=new k;m(X,T),xe.nextTick(A,T)}(this,T):(O||function Z(X,A,T,z){var G;return null===T?G=new h:"string"!=typeof T&&!A.objectMode&&(G=new C("chunk",["string","Buffer"],T)),!G||(m(X,G),xe.nextTick(z,G),!1)}(this,z,X,T))&&(z.pendingcb++,G=function P(X,A,T,z,G,O){if(!T){var N=function ce(X,A,T){return!X.objectMode&&!1!==X.decodeStrings&&"string"==typeof A&&(A=r.from(A,T)),A}(A,z,G);z!==N&&(T=!0,G="buffer",z=N)}var ee=A.objectMode?1:z.length;A.length+=ee;var w=A.length<A.highWaterMark;if(w||(A.needDrain=!0),A.writing||A.corked){var Q=A.lastBufferedRequest;A.lastBufferedRequest={chunk:z,encoding:G,isBuf:T,callback:O,next:null},Q?Q.next=A.lastBufferedRequest:A.bufferedRequest=A.lastBufferedRequest,A.bufferedRequestCount+=1}else B(X,A,!1,ee,z,G,O);return w}(this,z,O,X,A,T)),G},$.prototype.cork=function(){this._writableState.corked++},$.prototype.uncork=function(){var X=this._writableState;X.corked&&(X.corked--,!X.writing&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&ie(this,X))},$.prototype.setDefaultEncoding=function(A){if("string"==typeof A&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new v(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty($.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty($.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),$.prototype._write=function(X,A,T){T(new f("_write()"))},$.prototype._writev=null,$.prototype.end=function(X,A,T){var z=this._writableState;return"function"==typeof X?(T=X,X=null,A=null):"function"==typeof A&&(T=A,A=null),null!=X&&this.write(X,A),z.corked&&(z.corked=1,this.uncork()),z.ending||function J(X,A,T){A.ending=!0,q(X,A),T&&(A.finished?xe.nextTick(T):X.once("finish",T)),A.ended=!0,X.writable=!1}(this,z,T),this},Object.defineProperty($.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),$.prototype.destroy=u.destroy,$.prototype._undestroy=u.undestroy,$.prototype._destroy=function(X,A){A(X)},dr}function Nt(){if(Qa)return ur;Qa=1;var i=Object.keys||function(p){var _=[];for(var g in p)_.push(g);return _};ur=l;var n=ao(),t=Ja();vt()(l,n);for(var s=i(t.prototype),r=0;r<s.length;r++){var a=s[r];l.prototype[a]||(l.prototype[a]=t.prototype[a])}function l(p){if(!(this instanceof l))return new l(p);n.call(this,p),t.call(this,p),this.allowHalfOpen=!0,p&&(!1===p.readable&&(this.readable=!1),!1===p.writable&&(this.writable=!1),!1===p.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",o)))}function o(){this._writableState.ended||xe.nextTick(u,this)}function u(p){p.end()}return Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(_){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=_,this._writableState.destroyed=_)}}),ur}var eo,to,fr,no,gr,io,_r,ro,vr,so,wr,oo,br,co,yr,uo,xr,po,ho,Cr,fo,Tr,mo,Ir,go,Sr,vo,Dr,wo,Rr,yo,Pr,xo,pr={},En={exports:{}};function hr(){if(to)return pr;to=1;var i=function Su(){return eo||(eo=1,function(i,n){var t=kn(),s=t.Buffer;function r(l,o){for(var u in l)o[u]=l[u]}function a(l,o,u){return s(l,o,u)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?i.exports=t:(r(t,n),n.Buffer=a),r(s,a),a.from=function(l,o,u){if("number"==typeof l)throw new TypeError("Argument must not be a number");return s(l,o,u)},a.alloc=function(l,o,u){if("number"!=typeof l)throw new TypeError("Argument must be a number");var p=s(l);return void 0!==o?"string"==typeof u?p.fill(o,u):p.fill(o):p.fill(0),p},a.allocUnsafe=function(l){if("number"!=typeof l)throw new TypeError("Argument must be a number");return s(l)},a.allocUnsafeSlow=function(l){if("number"!=typeof l)throw new TypeError("Argument must be a number");return t.SlowBuffer(l)}}(En,En.exports)),En.exports}().Buffer,n=i.isEncoding||function(h){switch((h=""+h)&&h.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(h){var k;switch(this.encoding=function s(h){var k=function t(h){if(!h)return"utf8";for(var k;;)switch(h){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return h;default:if(k)return;h=(""+h).toLowerCase(),k=!0}}(h);if("string"!=typeof k&&(i.isEncoding===n||!n(h)))throw new Error("Unknown encoding: "+h);return k||h}(h),this.encoding){case"utf16le":this.text=g,this.end=C,k=4;break;case"utf8":this.fillLast=u,k=4;break;case"base64":this.text=f,this.end=x,k=3;break;default:return this.write=y,void(this.end=D)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(k)}function a(h){return h<=127?0:h>>5==6?2:h>>4==14?3:h>>3==30?4:h>>6==2?-1:-2}function u(h){var k=this.lastTotal-this.lastNeed,v=function o(h,k,v){if(128!=(192&k[0]))return h.lastNeed=0,"\ufffd";if(h.lastNeed>1&&k.length>1){if(128!=(192&k[1]))return h.lastNeed=1,"\ufffd";if(h.lastNeed>2&&k.length>2&&128!=(192&k[2]))return h.lastNeed=2,"\ufffd"}}(this,h);return void 0!==v?v:this.lastNeed<=h.length?(h.copy(this.lastChar,k,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(h.copy(this.lastChar,k,0,h.length),void(this.lastNeed-=h.length))}function g(h,k){if((h.length-k)%2==0){var v=h.toString("utf16le",k);if(v){var m=v.charCodeAt(v.length-1);if(m>=55296&&m<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",k,h.length-1)}function C(h){var k=h&&h.length?this.write(h):"";return this.lastNeed?k+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):k}function f(h,k){var v=(h.length-k)%3;return 0===v?h.toString("base64",k):(this.lastNeed=3-v,this.lastTotal=3,1===v?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",k,h.length-v))}function x(h){var k=h&&h.length?this.write(h):"";return this.lastNeed?k+this.lastChar.toString("base64",0,3-this.lastNeed):k}function y(h){return h.toString(this.encoding)}function D(h){return h&&h.length?this.write(h):""}return pr.StringDecoder=r,r.prototype.write=function(h){if(0===h.length)return"";var k,v;if(this.lastNeed){if(void 0===(k=this.fillLast(h)))return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<h.length?k?k+this.text(h,v):this.text(h,v):k||""},r.prototype.end=function _(h){var k=h&&h.length?this.write(h):"";return this.lastNeed?k+"\ufffd":k},r.prototype.text=function p(h,k){var v=function l(h,k,v){var m=k.length-1;if(m<v)return 0;var S=a(k[m]);return S>=0?(S>0&&(h.lastNeed=S-1),S):--m<v||-2===S?0:(S=a(k[m]))>=0?(S>0&&(h.lastNeed=S-2),S):--m<v||-2===S?0:(S=a(k[m]))>=0?(S>0&&(2===S?S=0:h.lastNeed=S-3),S):0}(this,h,k);if(!this.lastNeed)return h.toString("utf8",k);this.lastTotal=v;var m=h.length-(v-this.lastNeed);return h.copy(this.lastChar,0,m),h.toString("utf8",k,m)},r.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length},pr}function mr(){if(no)return fr;no=1;var i=Ft().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return fr=function r(a,l,o){if("function"==typeof l)return r(a,null,l);l||(l={}),o=function n(a){var l=!1;return function(){if(!l){l=!0;for(var o=arguments.length,u=new Array(o),p=0;p<o;p++)u[p]=arguments[p];a.apply(this,u)}}}(o||t);var u=l.readable||!1!==l.readable&&a.readable,p=l.writable||!1!==l.writable&&a.writable,_=function(){a.writable||C()},g=a._writableState&&a._writableState.finished,C=function(){p=!1,g=!0,u||o.call(a)},f=a._readableState&&a._readableState.endEmitted,x=function(){u=!1,f=!0,p||o.call(a)},y=function(v){o.call(a,v)},D=function(){var v;return u&&!f?((!a._readableState||!a._readableState.ended)&&(v=new i),o.call(a,v)):p&&!g?((!a._writableState||!a._writableState.ended)&&(v=new i),o.call(a,v)):void 0},h=function(){a.req.on("finish",C)};return function s(a){return a.setHeader&&"function"==typeof a.abort}(a)?(a.on("complete",C),a.on("abort",D),a.req?h():a.on("request",h)):p&&!a._writableState&&(a.on("end",_),a.on("close",_)),a.on("end",x),a.on("finish",C),!1!==l.error&&a.on("error",y),a.on("close",D),function(){a.removeListener("complete",C),a.removeListener("abort",D),a.removeListener("request",h),a.req&&a.req.removeListener("finish",C),a.removeListener("end",_),a.removeListener("close",_),a.removeListener("finish",C),a.removeListener("end",x),a.removeListener("error",y),a.removeListener("close",D)}},fr}function Du(){if(io)return gr;var i;function n(h,k,v){return k in h?Object.defineProperty(h,k,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[k]=v,h}io=1;var t=mr(),s=Symbol("lastResolve"),r=Symbol("lastReject"),a=Symbol("error"),l=Symbol("ended"),o=Symbol("lastPromise"),u=Symbol("handlePromise"),p=Symbol("stream");function _(h,k){return{value:h,done:k}}function g(h){var k=h[s];if(null!==k){var v=h[p].read();null!==v&&(h[o]=null,h[s]=null,h[r]=null,k(_(v,!1)))}}function C(h){xe.nextTick(g,h)}var x=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n(i={get stream(){return this[p]},next:function(){var k=this,v=this[a];if(null!==v)return Promise.reject(v);if(this[l])return Promise.resolve(_(void 0,!0));if(this[p].destroyed)return new Promise(function(L,$){xe.nextTick(function(){k[a]?$(k[a]):L(_(void 0,!0))})});var S,m=this[o];if(m)S=new Promise(function f(h,k){return function(v,m){h.then(function(){k[l]?v(_(void 0,!0)):k[u](v,m)},m)}}(m,this));else{var M=this[p].read();if(null!==M)return Promise.resolve(_(M,!1));S=new Promise(this[u])}return this[o]=S,S}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var k=this;return new Promise(function(v,m){k[p].destroy(null,function(S){S?m(S):v(_(void 0,!0))})})}),i),x);return gr=function(k){var v,m=Object.create(y,(n(v={},p,{value:k,writable:!0}),n(v,s,{value:null,writable:!0}),n(v,r,{value:null,writable:!0}),n(v,a,{value:null,writable:!0}),n(v,l,{value:k._readableState.endEmitted,writable:!0}),n(v,u,{value:function(M,L){var $=m[p].read();$?(m[o]=null,m[s]=null,m[r]=null,M(_($,!1))):(m[s]=M,m[r]=L)},writable:!0}),v));return m[o]=null,t(k,function(S){if(S&&"ERR_STREAM_PREMATURE_CLOSE"!==S.code){var M=m[r];return null!==M&&(m[o]=null,m[s]=null,m[r]=null,M(S)),void(m[a]=S)}var L=m[s];null!==L&&(m[o]=null,m[s]=null,m[r]=null,L(_(void 0,!0))),m[l]=!0}),k.on("readable",C.bind(null,m)),m}}function ao(){if(so)return vr;var i;so=1,vr=R,R.ReadableState=$,ei();var u,n=function(N,ee){return N.listeners(ee).length},t=Os(),s=kn().Buffer,r=Je.Uint8Array||function(){},o=za();u=o&&o.debuglog?o.debuglog("stream"):function(){};var k,v,m,p=Au(),_=Va(),C=qa().getHighWaterMark,f=Ft().codes,x=f.ERR_INVALID_ARG_TYPE,y=f.ERR_STREAM_PUSH_AFTER_EOF,D=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;vt()(R,t);var S=_.errorOrDestroy,M=["error","close","destroy","pause","resume"];function $(O,N,ee){i=i||Nt(),"boolean"!=typeof ee&&(ee=N instanceof i),this.objectMode=!!(O=O||{}).objectMode,ee&&(this.objectMode=this.objectMode||!!O.readableObjectMode),this.highWaterMark=C(this,O,"readableHighWaterMark",ee),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==O.emitClose,this.autoDestroy=!!O.autoDestroy,this.destroyed=!1,this.defaultEncoding=O.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,O.encoding&&(k||(k=hr().StringDecoder),this.decoder=new k(O.encoding),this.encoding=O.encoding)}function R(O){if(i=i||Nt(),!(this instanceof R))return new R(O);this._readableState=new $(O,this,this instanceof i),this.readable=!0,O&&("function"==typeof O.read&&(this._read=O.read),"function"==typeof O.destroy&&(this._destroy=O.destroy)),t.call(this)}function Z(O,N,ee,w,Q){u("readableAddChunk",N);var c,I=O._readableState;if(null===N)I.reading=!1,function ne(O,N){if(u("onEofChunk"),!N.ended){if(N.decoder){var ee=N.decoder.end();ee&&ee.length&&(N.buffer.push(ee),N.length+=N.objectMode?1:ee.length)}N.ended=!0,N.sync?Y(O):(N.needReadable=!1,N.emittedReadable||(N.emittedReadable=!0,ae(O)))}}(O,I);else if(Q||(c=function P(O,N){var ee;return!function l(O){return s.isBuffer(O)||O instanceof r}(N)&&"string"!=typeof N&&void 0!==N&&!O.objectMode&&(ee=new x("chunk",["string","Buffer","Uint8Array"],N)),ee}(I,N)),c)S(O,c);else if(I.objectMode||N&&N.length>0)if("string"!=typeof N&&!I.objectMode&&Object.getPrototypeOf(N)!==s.prototype&&(N=function a(O){return s.from(O)}(N)),w)I.endEmitted?S(O,new h):ce(O,I,N,!0);else if(I.ended)S(O,new y);else{if(I.destroyed)return!1;I.reading=!1,I.decoder&&!ee?(N=I.decoder.write(N),I.objectMode||0!==N.length?ce(O,I,N,!1):ie(O,I)):ce(O,I,N,!1)}else w||(I.reading=!1,ie(O,I));return!I.ended&&(I.length<I.highWaterMark||0===I.length)}function ce(O,N,ee,w){N.flowing&&0===N.length&&!N.sync?(N.awaitDrain=0,O.emit("data",ee)):(N.length+=N.objectMode?1:ee.length,w?N.buffer.unshift(ee):N.buffer.push(ee),N.needReadable&&Y(O)),ie(O,N)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),R.prototype.destroy=_.destroy,R.prototype._undestroy=_.undestroy,R.prototype._destroy=function(O,N){N(O)},R.prototype.push=function(O,N){var w,ee=this._readableState;return ee.objectMode?w=!0:"string"==typeof O&&((N=N||ee.defaultEncoding)!==ee.encoding&&(O=s.from(O,N),N=""),w=!0),Z(this,O,N,!1,w)},R.prototype.unshift=function(O){return Z(this,O,null,!0,!1)},R.prototype.isPaused=function(){return!1===this._readableState.flowing},R.prototype.setEncoding=function(O){k||(k=hr().StringDecoder);var N=new k(O);this._readableState.decoder=N,this._readableState.encoding=this._readableState.decoder.encoding;for(var ee=this._readableState.buffer.head,w="";null!==ee;)w+=N.write(ee.data),ee=ee.next;return this._readableState.buffer.clear(),""!==w&&this._readableState.buffer.push(w),this._readableState.length=w.length,this};var B=1073741824;function V(O,N){return O<=0||0===N.length&&N.ended?0:N.objectMode?1:O!=O?N.flowing&&N.length?N.buffer.head.data.length:N.length:(O>N.highWaterMark&&(N.highWaterMark=function E(O){return O>=B?O=B:(O--,O|=O>>>1,O|=O>>>2,O|=O>>>4,O|=O>>>8,O|=O>>>16,O++),O}(O)),O<=N.length?O:N.ended?N.length:(N.needReadable=!0,0))}function Y(O){var N=O._readableState;u("emitReadable",N.needReadable,N.emittedReadable),N.needReadable=!1,N.emittedReadable||(u("emitReadable",N.flowing),N.emittedReadable=!0,xe.nextTick(ae,O))}function ae(O){var N=O._readableState;u("emitReadable_",N.destroyed,N.length,N.ended),!N.destroyed&&(N.length||N.ended)&&(O.emit("readable"),N.emittedReadable=!1),N.needReadable=!N.flowing&&!N.ended&&N.length<=N.highWaterMark,X(O)}function ie(O,N){N.readingMore||(N.readingMore=!0,xe.nextTick(pe,O,N))}function pe(O,N){for(;!N.reading&&!N.ended&&(N.length<N.highWaterMark||N.flowing&&0===N.length);){var ee=N.length;if(u("maybeReadMore read 0"),O.read(0),ee===N.length)break}N.readingMore=!1}function F(O){var N=O._readableState;N.readableListening=O.listenerCount("readable")>0,N.resumeScheduled&&!N.paused?N.flowing=!0:O.listenerCount("data")>0&&O.resume()}function q(O){u("readable nexttick read 0"),O.read(0)}function re(O,N){u("resume",N.reading),N.reading||O.read(0),N.resumeScheduled=!1,O.emit("resume"),X(O),N.flowing&&!N.reading&&O.read(0)}function X(O){var N=O._readableState;for(u("flow",N.flowing);N.flowing&&null!==O.read(););}function A(O,N){return 0===N.length?null:(N.objectMode?ee=N.buffer.shift():!O||O>=N.length?(ee=N.decoder?N.buffer.join(""):1===N.buffer.length?N.buffer.first():N.buffer.concat(N.length),N.buffer.clear()):ee=N.buffer.consume(O,N.decoder),ee);var ee}function T(O){var N=O._readableState;u("endReadable",N.endEmitted),N.endEmitted||(N.ended=!0,xe.nextTick(z,N,O))}function z(O,N){if(u("endReadableNT",O.endEmitted,O.length),!O.endEmitted&&0===O.length&&(O.endEmitted=!0,N.readable=!1,N.emit("end"),O.autoDestroy)){var ee=N._writableState;(!ee||ee.autoDestroy&&ee.finished)&&N.destroy()}}function G(O,N){for(var ee=0,w=O.length;ee<w;ee++)if(O[ee]===N)return ee;return-1}return R.prototype.read=function(O){u("read",O),O=parseInt(O,10);var N=this._readableState,ee=O;if(0!==O&&(N.emittedReadable=!1),0===O&&N.needReadable&&((0!==N.highWaterMark?N.length>=N.highWaterMark:N.length>0)||N.ended))return u("read: emitReadable",N.length,N.ended),0===N.length&&N.ended?T(this):Y(this),null;if(0===(O=V(O,N))&&N.ended)return 0===N.length&&T(this),null;var Q,w=N.needReadable;return u("need readable",w),(0===N.length||N.length-O<N.highWaterMark)&&u("length less than watermark",w=!0),N.ended||N.reading?u("reading or ended",w=!1):w&&(u("do read"),N.reading=!0,N.sync=!0,0===N.length&&(N.needReadable=!0),this._read(N.highWaterMark),N.sync=!1,N.reading||(O=V(ee,N))),null===(Q=O>0?A(O,N):null)?(N.needReadable=N.length<=N.highWaterMark,O=0):(N.length-=O,N.awaitDrain=0),0===N.length&&(N.ended||(N.needReadable=!0),ee!==O&&N.ended&&T(this)),null!==Q&&this.emit("data",Q),Q},R.prototype._read=function(O){S(this,new D("_read()"))},R.prototype.pipe=function(O,N){var ee=this,w=this._readableState;switch(w.pipesCount){case 0:w.pipes=O;break;case 1:w.pipes=[w.pipes,O];break;default:w.pipes.push(O)}w.pipesCount+=1,u("pipe count=%d opts=%j",w.pipesCount,N);var I=N&&!1===N.end||O===xe.stdout||O===xe.stderr?he:d;function d(){u("onend"),O.end()}w.endEmitted?xe.nextTick(I):ee.once("end",I),O.on("unpipe",function c(_e,ye){u("onunpipe"),_e===ee&&ye&&!1===ye.hasUnpiped&&(ye.hasUnpiped=!0,function H(){u("cleanup"),O.removeListener("close",le),O.removeListener("finish",oe),O.removeListener("drain",b),O.removeListener("error",se),O.removeListener("unpipe",c),ee.removeListener("end",d),ee.removeListener("end",he),ee.removeListener("data",U),j=!0,w.awaitDrain&&(!O._writableState||O._writableState.needDrain)&&b()}())});var b=function W(O){return function(){var ee=O._readableState;u("pipeOnDrain",ee.awaitDrain),ee.awaitDrain&&ee.awaitDrain--,0===ee.awaitDrain&&n(O,"data")&&(ee.flowing=!0,X(O))}}(ee);O.on("drain",b);var j=!1;function U(_e){u("ondata");var ye=O.write(_e);u("dest.write",ye),!1===ye&&((1===w.pipesCount&&w.pipes===O||w.pipesCount>1&&-1!==G(w.pipes,O))&&!j&&(u("false write response, pause",w.awaitDrain),w.awaitDrain++),ee.pause())}function se(_e){u("onerror",_e),he(),O.removeListener("error",se),0===n(O,"error")&&S(O,_e)}function le(){O.removeListener("finish",oe),he()}function oe(){u("onfinish"),O.removeListener("close",le),he()}function he(){u("unpipe"),ee.unpipe(O)}return ee.on("data",U),function L(O,N,ee){if("function"==typeof O.prependListener)return O.prependListener(N,ee);O._events&&O._events[N]?Array.isArray(O._events[N])?O._events[N].unshift(ee):O._events[N]=[ee,O._events[N]]:O.on(N,ee)}(O,"error",se),O.once("close",le),O.once("finish",oe),O.emit("pipe",ee),w.flowing||(u("pipe resume"),ee.resume()),O},R.prototype.unpipe=function(O){var N=this._readableState,ee={hasUnpiped:!1};
1if(0===N.pipesCount)return this;if(1===N.pipesCount)return O&&O!==N.pipes||(O||(O=N.pipes),N.pipes=null,N.pipesCount=0,N.flowing=!1,O&&O.emit("unpipe",this,ee)),this;if(!O){var w=N.pipes,Q=N.pipesCount;N.pipes=null,N.pipesCount=0,N.flowing=!1;for(var I=0;I<Q;I++)w[I].emit("unpipe",this,{hasUnpiped:!1});return this}var c=G(N.pipes,O);return-1===c||(N.pipes.splice(c,1),N.pipesCount-=1,1===N.pipesCount&&(N.pipes=N.pipes[0]),O.emit("unpipe",this,ee)),this},R.prototype.addListener=R.prototype.on=function(O,N){var ee=t.prototype.on.call(this,O,N),w=this._readableState;return"data"===O?(w.readableListening=this.listenerCount("readable")>0,!1!==w.flowing&&this.resume()):"readable"===O&&!w.endEmitted&&!w.readableListening&&(w.readableListening=w.needReadable=!0,w.flowing=!1,w.emittedReadable=!1,u("on readable",w.length,w.reading),w.length?Y(this):w.reading||xe.nextTick(q,this)),ee},R.prototype.removeListener=function(O,N){var ee=t.prototype.removeListener.call(this,O,N);return"readable"===O&&xe.nextTick(F,this),ee},R.prototype.removeAllListeners=function(O){var N=t.prototype.removeAllListeners.apply(this,arguments);return("readable"===O||void 0===O)&&xe.nextTick(F,this),N},R.prototype.resume=function(){var O=this._readableState;return O.flowing||(u("resume"),O.flowing=!O.readableListening,function J(O,N){N.resumeScheduled||(N.resumeScheduled=!0,xe.nextTick(re,O,N))}(this,O)),O.paused=!1,this},R.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(O){var N=this,ee=this._readableState,w=!1;for(var Q in O.on("end",function(){if(u("wrapped end"),ee.decoder&&!ee.ended){var c=ee.decoder.end();c&&c.length&&N.push(c)}N.push(null)}),O.on("data",function(c){u("wrapped data"),ee.decoder&&(c=ee.decoder.write(c)),ee.objectMode&&null==c||!(ee.objectMode||c&&c.length)||N.push(c)||(w=!0,O.pause())}),O)void 0===this[Q]&&"function"==typeof O[Q]&&(this[Q]=function(d){return function(){return O[d].apply(O,arguments)}}(Q));for(var I=0;I<M.length;I++)O.on(M[I],this.emit.bind(this,M[I]));return this._read=function(c){u("wrapped _read",c),w&&(w=!1,O.resume())},this},"function"==typeof Symbol&&(R.prototype[Symbol.asyncIterator]=function(){return void 0===v&&(v=Du()),v(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(N){this._readableState&&(this._readableState.flowing=N)}}),R._fromList=A,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(R.from=function(O,N){return void 0===m&&(m=function Ru(){return ro||(ro=1,_r=function(){throw new Error("Readable.from is not available in the browser")}),_r}()),m(R,O,N)}),vr}function lo(){if(oo)return wr;oo=1,wr=o;var i=Ft().codes,n=i.ERR_METHOD_NOT_IMPLEMENTED,t=i.ERR_MULTIPLE_CALLBACK,s=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,r=i.ERR_TRANSFORM_WITH_LENGTH_0,a=Nt();function l(_,g){var C=this._transformState;C.transforming=!1;var f=C.writecb;if(null===f)return this.emit("error",new t);C.writechunk=null,C.writecb=null,null!=g&&this.push(g),f(_);var x=this._readableState;x.reading=!1,(x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}function o(_){if(!(this instanceof o))return new o(_);a.call(this,_),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,_&&("function"==typeof _.transform&&(this._transform=_.transform),"function"==typeof _.flush&&(this._flush=_.flush)),this.on("prefinish",u)}function u(){var _=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(g,C){p(_,g,C)})}function p(_,g,C){if(g)return _.emit("error",g);if(null!=C&&_.push(C),_._writableState.length)throw new r;if(_._transformState.transforming)throw new s;return _.push(null)}return vt()(o,a),o.prototype.push=function(_,g){return this._transformState.needTransform=!1,a.prototype.push.call(this,_,g)},o.prototype._transform=function(_,g,C){C(new n("_transform()"))},o.prototype._write=function(_,g,C){var f=this._transformState;if(f.writecb=C,f.writechunk=_,f.writeencoding=g,!f.transforming){var x=this._readableState;(f.needTransform||x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}},o.prototype._read=function(_){var g=this._transformState;null===g.writechunk||g.transforming?g.needTransform=!0:(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform))},o.prototype._destroy=function(_,g){a.prototype._destroy.call(this,_,function(C){g(C)})},wr}function kr(){if(po)return xr;po=1,xr=t;var i=ei().EventEmitter;function t(){i.call(this)}return vt()(t,i),t.Readable=ao(),t.Writable=Ja(),t.Duplex=Nt(),t.Transform=lo(),t.PassThrough=function Pu(){if(co)return br;co=1,br=n;var i=lo();function n(t){if(!(this instanceof n))return new n(t);i.call(this,t)}return vt()(n,i),n.prototype._transform=function(t,s,r){r(null,t)},br}(),t.finished=mr(),t.pipeline=function Ou(){if(uo)return yr;var i;uo=1;var t=Ft().codes,s=t.ERR_MISSING_ARGS,r=t.ERR_STREAM_DESTROYED;function a(C){if(C)throw C}function u(C){C()}function p(C,f){return C.pipe(f)}return yr=function g(){for(var C=arguments.length,f=new Array(C),x=0;x<C;x++)f[x]=arguments[x];var y=function _(C){return C.length&&"function"==typeof C[C.length-1]?C.pop():a}(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new s("streams");var D,h=f.map(function(k,v){var m=v<f.length-1;return function o(C,f,x,y){y=function n(C){var f=!1;return function(){f||(f=!0,C.apply(void 0,arguments))}}(y);var D=!1;C.on("close",function(){D=!0}),void 0===i&&(i=mr()),i(C,{readable:f,writable:x},function(k){if(k)return y(k);D=!0,y()});var h=!1;return function(k){if(!D&&!h){if(h=!0,function l(C){return C.setHeader&&"function"==typeof C.abort}(C))return C.abort();if("function"==typeof C.destroy)return C.destroy();y(k||new r("pipe"))}}}(k,m,v>
10,function(M){D||(D=M),M&&h.forEach(u),!m&&(h.forEach(u),y(D))})});return f.reduce(p)},yr}(),t.Stream=t,t.prototype.pipe=function(s,r){var a=this;function l(f){s.writable&&!1===s.write(f)&&a.pause&&a.pause()}function o(){a.readable&&a.resume&&a.resume()}a.on("data",l),s.on("drain",o),!s._isStdio&&(!r||!1!==r.end)&&(a.on("end",p),a.on("close",_));var u=!1;function p(){u||(u=!0,s.end())}function _(){u||(u=!0,"function"==typeof s.destroy&&s.destroy())}function g(f){if(C(),0===i.listenerCount(this,"error"))throw f}function C(){a.removeListener("data",l),s.removeListener("drain",o),a.removeListener("end",p),a.removeListener("close",_),a.removeListener("error",g),s.removeListener("error",g),a.removeListener("end",C),a.removeListener("close",C),s.removeListener("close",C)}return a.on("error",g),s.on("error",g),a.on("end",C),a.on("close",C),s.on("close",C),s.emit("pipe",a),s},xr}function Er(){return fo||(fo=1,Cr={isArray:function(i){return Array.isArray?Array.isArray(i):"[object Array]"===Object.prototype.toString.call(i)}}),Cr}function Ar(){if(mo)return Tr;mo=1;var i=Er().isArray;return Tr={copyOptions:function(n){var t,s={};for(t in n)n.hasOwnProperty(t)&&(s[t]=n[t]);return s},ensureFlagExists:function(n,t){(!(n in t)||"boolean"!=typeof t[n])&&(t[n]=!1)},ensureSpacesExists:function(n){(!("spaces"in n)||"number"!=typeof n.spaces&&"string"!=typeof n.spaces)&&(n.spaces=0)},ensureAlwaysArrayExists:function(n){(!("alwaysArray"in n)||"boolean"!=typeof n.alwaysArray&&!i(n.alwaysArray))&&(n.alwaysArray=!1)},ensureKeyExists:function(n,t){(!(n+"Key"in t)||"string"!=typeof t[n+"Key"])&&(t[n+"Key"]=t.compact?"_"+n:n)},checkFnExists:function(n,t){return n+"Fn"in t}}}function _o(){if(go)return Ir;go=1;var s,r,i=function Fu(){return ho||(ho=1,function(n){n.parser=function(A,T){return new s(A,T)},n.SAXParser=s,n.SAXStream=_,n.createStream=function p(A,T){return new _(A,T)},n.MAX_BUFFER_LENGTH=65536;var o,t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(A,T){if(!(this instanceof s))return new s(A,T);var z=this;(function a(A){for(var T=0,z=t.length;T<z;T++)A[t[T]]=""})(z),z.q=z.c="",z.bufferCheckPosition=n.MAX_BUFFER_LENGTH,z.opt=T||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!A,z.noscript=!(!A&&!z.opt.noscript),z.state=R.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=Object.create(z.strictEntities?n.XML_ENTITIES:n.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(y)),z.trackPosition=!1!==z.opt.position,z.trackPosition&&(z.position=z.line=z.column=0),ce(z,"onready")}n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(A){function T(){}return T.prototype=A,new T}),Object.keys||(Object.keys=function(A){var T=[];for(var z in A)A.hasOwnProperty(z)&&T.push(z);return T}),s.prototype={end:function(){ne(this)},write:function X(A){var T=this;if(this.error)throw this.error;if(T.closed)return V(T,"Cannot write after close. Assign an onready handler.");if(null===A)return ne(T);"object"==typeof A&&(A=A.toString());for(var z=0,G="";G=re(A,z++),T.c=G,G;)switch(T.trackPosition&&(T.position++,"\n"===G?(T.line++,T.column=0):T.column++),T.state){case R.BEGIN:if(T.state=R.BEGIN_WHITESPACE,"\ufeff"===G)continue;J(T,G);continue;case R.BEGIN_WHITESPACE:J(T,G);continue;case R.TEXT:if(T.sawRoot&&!T.closedRoot){for(var O=z-1;G&&"<"!==G&&"&"!==G;)(G=re(A,z++))&&T.trackPosition&&(T.position++,"\n"===G?(T.line++,T.column=0):T.column++);T.textNode+=A.substring(O,z-1)}"<"!==G||T.sawRoot&&T.closedRoot&&!T.strict?(!m(G)&&(!T.sawRoot||T.closedRoot)&&Y(T,"Text data outside of root node."),"&"===G?T.state=R.TEXT_ENTITY:T.textNode+=G):(T.state=R.OPEN_WAKA,T.startTagPosition=T.position);continue;case R.SCRIPT:"<"===G?T.state=R.SCRIPT_ENDING:T.script+=G;continue;case R.SCRIPT_ENDING:"/"===G?T.state=R.CLOSE_TAG:(T.script+="<"+G,T.state=R.SCRIPT);continue;case R.OPEN_WAKA:"!"===G?(T.state=R.SGML_DECL,T.sgmlDecl=""):m(G)||(L(D,G)?(T.state=R.OPEN_TAG,T.tagName=G):"/"===G?(T.state=R.CLOSE_TAG,T.tagName=""):"?"===G?(T.state=R.PROC_INST,T.procInstName=T.procInstBody=""):(Y(T,"Unencoded <"),T.startTagPosition+1<T.position&&(G=new Array(T.position-T.startTagPosition).join(" ")+G),T.textNode+="<"+G,T.state=R.TEXT));continue;case R.SGML_DECL:(T.sgmlDecl+G).toUpperCase()===g?(P(T,"onopencdata"),T.state=R.CDATA,T.sgmlDecl="",T.cdata=""):T.sgmlDecl+G==="--"?(T.state=R.COMMENT,T.comment="",T.sgmlDecl=""):(T.sgmlDecl+G).toUpperCase()===C?(T.state=R.DOCTYPE,(T.doctype||T.sawRoot)&&Y(T,"Inappropriately located doctype declaration"),T.doctype="",T.sgmlDecl=""):">"===G?(P(T,"onsgmldeclaration",T.sgmlDecl),T.sgmlDecl="",T.state=R.TEXT):(S(G)&&(T.state=R.SGML_DECL_QUOTED),T.sgmlDecl+=G);continue;case R.SGML_DECL_QUOTED:G===T.q&&(T.state=R.SGML_DECL,T.q=""),T.sgmlDecl+=G;continue;case R.DOCTYPE:">"===G?(T.state=R.TEXT,P(T,"ondoctype",T.doctype),T.doctype=!0):(T.doctype+=G,"["===G?T.state=R.DOCTYPE_DTD:S(G)&&(T.state=R.DOCTYPE_QUOTED,T.q=G));continue;case R.DOCTYPE_QUOTED:T.doctype+=G,G===T.q&&(T.q="",T.state=R.DOCTYPE);continue;case R.DOCTYPE_DTD:T.doctype+=G,"]"===G?T.state=R.DOCTYPE:S(G)&&(T.state=R.DOCTYPE_DTD_QUOTED,T.q=G);continue;case R.DOCTYPE_DTD_QUOTED:T.doctype+=G,G===T.q&&(T.state=R.DOCTYPE_DTD,T.q="");continue;case R.COMMENT:"-"===G?T.state=R.COMMENT_ENDING:T.comment+=G;continue;case R.COMMENT_ENDING:"-"===G?(T.state=R.COMMENT_ENDED,T.comment=E(T.opt,T.comment),T.comment&&P(T,"oncomment",T.comment),T.comment=""):(T.comment+="-"+G,T.state=R.COMMENT);continue;case R.COMMENT_ENDED:">"!==G?(Y(T,"Malformed comment"),T.comment+="--"+G,T.state=R.COMMENT):T.state=R.TEXT;continue;case R.CDATA:"]"===G?T.state=R.CDATA_ENDING:T.cdata+=G;continue;case R.CDATA_ENDING:"]"===G?T.state=R.CDATA_ENDING_2:(T.cdata+="]"
vendor: 11,895 bytes, line 1
1+G,T.state=R.CDATA);continue;case R.CDATA_ENDING_2:">"===G?(T.cdata&&P(T,"oncdata",T.cdata),P(T,"onclosecdata"),T.cdata="",T.state=R.TEXT):"]"===G?T.cdata+="]":(T.cdata+="]]"+G,T.state=R.CDATA);continue;case R.PROC_INST:"?"===G?T.state=R.PROC_INST_ENDING:m(G)?T.state=R.PROC_INST_BODY:T.procInstName+=G;continue;case R.PROC_INST_BODY:if(!T.procInstBody&&m(G))continue;"?"===G?T.state=R.PROC_INST_ENDING:T.procInstBody+=G;continue;case R.PROC_INST_ENDING:">"===G?(P(T,"onprocessinginstruction",{name:T.procInstName,body:T.procInstBody}),T.procInstName=T.procInstBody="",T.state=R.TEXT):(T.procInstBody+="?"+G,T.state=R.PROC_INST_BODY);continue;case R.OPEN_TAG:L(h,G)?T.tagName+=G:(ae(T),">"===G?W(T):"/"===G?T.state=R.OPEN_TAG_SLASH:(m(G)||Y(T,"Invalid character in tag name"),T.state=R.ATTRIB));continue;case R.OPEN_TAG_SLASH:">"===G?(W(T,!0),F(T)):(Y(T,"Forward-slash in opening tag not followed by >"),T.state=R.ATTRIB);continue;case R.ATTRIB:if(m(G))continue;">"===G?W(T):"/"===G?T.state=R.OPEN_TAG_SLASH:L(D,G)?(T.attribName=G,T.attribValue="",T.state=R.ATTRIB_NAME):Y(T,"Invalid attribute name");continue;case R.ATTRIB_NAME:"="===G?T.state=R.ATTRIB_VALUE:">"===G?(Y(T,"Attribute without value"),T.attribValue=T.attribName,pe(T),W(T)):m(G)?T.state=R.ATTRIB_NAME_SAW_WHITE:L(h,G)?T.attribName+=G:Y(T,"Invalid attribute name");continue;case R.ATTRIB_NAME_SAW_WHITE:if("="===G)T.state=R.ATTRIB_VALUE;else{if(m(G))continue;Y(T,"Attribute without value"),T.tag.attributes[T.attribName]="",T.attribValue="",P(T,"onattribute",{name:T.attribName,value:""}),T.attribName="",">"===G?W(T):L(D,G)?(T.attribName=G,T.state=R.ATTRIB_NAME):(Y(T,"Invalid attribute name"),T.state=R.ATTRIB)}continue;case R.ATTRIB_VALUE:if(m(G))continue;S(G)?(T.q=G,T.state=R.ATTRIB_VALUE_QUOTED):(Y(T,"Unquoted attribute value"),T.state=R.ATTRIB_VALUE_UNQUOTED,T.attribValue=G);continue;case R.ATTRIB_VALUE_QUOTED:if(G!==T.q){"&"===G?T.state=R.ATTRIB_VALUE_ENTITY_Q:T.attribValue+=G;continue}pe(T),T.q="",T.state=R.ATTRIB_VALUE_CLOSED;continue;case R.ATTRIB_VALUE_CLOSED:m(G)?T.state=R.ATTRIB:">"===G?W(T):"/"===G?T.state=R.OPEN_TAG_SLASH:L(D,G)?(Y(T,"No whitespace between attributes"),T.attribName=G,T.attribValue="",T.state=R.ATTRIB_NAME):Y(T,"Invalid attribute name");continue;case R.ATTRIB_VALUE_UNQUOTED:if(!M(G)){"&"===G?T.state=R.ATTRIB_VALUE_ENTITY_U:T.attribValue+=G;continue}pe(T),">"===G?W(T):T.state=R.ATTRIB;continue;case R.CLOSE_TAG:if(T.tagName)">"===G?F(T):L(h,G)?T.tagName+=G:T.script?(T.script+="</"+T.tagName,T.tagName="",T.state=R.SCRIPT):(m(G)||Y(T,"Invalid tagname in closing tag"),T.state=R.CLOSE_TAG_SAW_WHITE);else{if(m(G))continue;$(D,G)?T.script?(T.script+="</"+G,T.state=R.SCRIPT):Y(T,"Invalid tagname in closing tag."):T.tagName=G}continue;case R.CLOSE_TAG_SAW_WHITE:if(m(G))continue;">"===G?F(T):Y(T,"Invalid characters in closing tag");continue;case R.TEXT_ENTITY:case R.ATTRIB_VALUE_ENTITY_Q:case R.ATTRIB_VALUE_ENTITY_U:var ee,w;switch(T.state){case R.TEXT_ENTITY:ee=R.TEXT,w="textNode";break;case R.ATTRIB_VALUE_ENTITY_Q:ee=R.ATTRIB_VALUE_QUOTED,w="attribValue";break;case R.ATTRIB_VALUE_ENTITY_U:ee=R.ATTRIB_VALUE_UNQUOTED,w="attribValue"}";"===G?(T[w]+=q(T),T.entity="",T.state=ee):L(T.entity.length?v:k,G)?T.entity+=G:(Y(T,"Invalid character in entity name"),T[w]+="&"+T.entity+G,T.entity="",T.state=ee);continue;default:throw new Error(T,"Unknown state: "+T.state)}return T.position>=T.bufferCheckPosition&&function r(A){for(var T=Math.max(n.MAX_BUFFER_LENGTH,10),z=0,G=0,O=t.length;G<O;G++){var N=A[t[G]].length;if(N>T)switch(t[G]){case"textNode":B(A);break;case"cdata":P(A,"oncdata",A.cdata),A.cdata="";break;case"script":P(A,"onscript",A.script),A.script="";break;default:V(A,"Max buffer length exceeded: "+t[G])}z=Math.max(z,N)}A.bufferCheckPosition=n.MAX_BUFFER_LENGTH-z+A.position}(T),T},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function l(A){B(A),""!==A.cdata&&(P(A,"oncdata",A.cdata),A.cdata=""),""!==A.script&&(P(A,"onscript",A.script),A.script="")}(this)}};try{o=kr().Stream}catch{o=function(){}}var u=n.EVENTS.filter(function(A){return"error"!==A&&"end"!==A});function _(A,T){if(!(this instanceof _))return new _(A,T);o.apply(this),this._parser=new s(A,T),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(G){z.emit("error",G),z._parser.error=null},this._decoder=null,u.forEach(function(G){Object.defineProperty(z,"on"+G,{get:function(){return z._parser["on"+G]},set:function(O){if(!O)return z.removeAllListeners(G),z._parser["on"+G]=O,O;z.on(G,O)},enumerable:!0,configurable:!1})})}(_.prototype=Object.create(o.prototype,{constructor:{value:_}})).write=function(A){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(A)){if(!this._decoder){var T=hr().StringDecoder;this._decoder=new T("utf8")}A=this._decoder.write(A)}return this._parser.write(A.toString()),this.emit("data",A),!0},_.prototype.end=function(A){return A&&A.length&&this.write(A),this._parser.end(),!0},_.prototype.on=function(A,T){var z=this;return!z._parser["on"+A]&&-1!==u.indexOf(A)&&(z._parser["on"+A]=function(){var G=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);G.splice(0,0,A),z.emit.apply(z,G)}),o.prototype.on.call(z,A,T)};var g="[CDATA[",C="DOCTYPE",f="http://www.w3.org/XML/1998/namespace",x="http://www.w3.org/2000/xmlns/",y={xml:f,xmlns:x},D=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,k=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(A){return" "===A||"\n"===A||"\r"===A||"\t"===A}function S(A){return'"'===A||"'"===A}function M(A){return">"===A||m(A)}function L(A,T){return A.test(T)}function $(A,T){return!L(A,T)}var A,T,z,R=0;for(var Z in n.STATE={BEGIN:R++,BEGIN_WHITESPACE:R++,TEXT:R++,TEXT_ENTITY:R++,OPEN_WAKA:R++,SGML_DECL:R++,SGML_DECL_QUOTED:R++,DOCTYPE:R++,DOCTYPE_QUOTED:R++,DOCTYPE_DTD:R++,DOCTYPE_DTD_QUOTED:R++,COMMENT_STARTING:R++,COMMENT:R++,COMMENT_ENDING:R++,COMMENT_ENDED:R++,CDATA:R++,CDATA_ENDING:R++,CDATA_ENDING_2:R++,PROC_INST:R++,PROC_INST_BODY:R++,PROC_INST_ENDING:R++,OPEN_TAG:R++,OPEN_TAG_SLASH:R++,ATTRIB:R++,ATTRIB_NAME:R++,ATTRIB_NAME_SAW_WHITE:R++,ATTRIB_VALUE:R++,ATTRIB_VALUE_QUOTED:R++,ATTRIB_VALUE_CLOSED:R++,ATTRIB_VALUE_UNQUOTED:R++,ATTRIB_VALUE_ENTITY_Q:R++,ATTRIB_VALUE_ENTITY_U:R++,CLOSE_TAG:R++,CLOSE_TAG_SAW_WHITE:R++,SCRIPT:R++,SCRIPT_ENDING:R++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(n.ENTITIES).forEach(function(A){var T=n.ENTITIES[A],z="number"==typeof T?String.fromCharCode(T):T;n.ENTITIES[A]=z}),n.STATE)n.STATE[n.STATE[Z]]=Z;function ce(A,T,z){A[T]&&A[T](z)}function P(A,T,z){A.textNode&&B(A),ce(A,T,z)}function B(A){A.textNode=E(A.opt,A.textNode),A.textNode&&ce(A,"ontext",A.textNode),A.textNode=""}function E(A,T){return A.trim&&(T=T.trim()),A.normalize&&(T=T.replace(/\s+/g," ")),T}function V(A,T){return B(A),A.trackPosition&&(T+="\nLine: "+A.line+"\nColumn: "+A.column+"\nChar: "+A.c),T=new Error(T),A.error=T,ce(A,"onerror",T),A}function ne(A){return A.sawRoot&&!A.closedRoot&&Y(A,"Unclosed root tag"),A.state!==R.BEGIN&&A.state!==R.BEGIN_WHITESPACE&&A.state!==R.TEXT&&V(A,"Unexpected end"),B(A),A.c="",A.closed=!0,ce(A,"onend"),s.call(A,A.strict,A.opt),A}function Y(A,T){if("object"!=typeof A||!(A instanceof s))throw new Error("bad call to strictFail");A.strict&&V(A,T)}function ae(A){A.strict||(A.tagName=A.tagName[A.looseCase]());var T=A.tags[A.tags.length-1]||A,z=A.tag={name:A.tagName,attributes:{}};A.opt.xmlns&&(z.ns=T.ns),A.attribList.length=0,P(A,"onopentagstart",z)}function ie(A,T){var G=A.indexOf(":")<0?["",A]:A.split(":"),O=G[0],N=G[1];return T&&"xmlns"===A&&(O="xmlns",N=""),{prefix:O,local:N}}function pe(A){if(A.strict||(A.attribName=A.attribName[A.looseCase]()),-1!==A.attribList.indexOf(A.attribName)||A.tag.attributes.hasOwnProperty(A.attribName))A.attribName=A.attribValue="";else{if(A.opt.xmlns){var T=ie(A.attribName,!0),G=T.local;if("xmlns"===T.prefix)if("xml"===G&&A.attribValue!==f)Y(A,"xml: prefix must be bound to "+f+"\nActual: "+A.attribValue);else if("xmlns"===G&&A.attribValue!==x)Y(A,"xmlns: prefix must be bound to "+x+"\nActual: "+A.attribValue);else{var O=A.tag,N=A.tags[A.tags.length-1]||A;O.ns===N.ns&&(O.ns=Object.create(N.ns)),O.ns[G]=A.attribValue}A.attribList.push([A.attribName,A.attribValue])}else A.tag.attributes[A.attribName]=A.attribValue,P(A,"onattribute",{name:A.attribName,value:A.attribValue});A.attribName=A.attribValue=""}}function W(A,T){if(A.opt.xmlns){var z=A.tag,G=ie(A.tagName);z.prefix=G.prefix,z.local=G.local,z.uri=z.ns[G.prefix]||"",z.prefix&&!z.uri&&(Y(A,"Unbound namespace prefix: "+JSON.stringify(A.tagName)),z.uri=G.prefix),z.ns&&(A.tags[A.tags.length-1]||A).ns!==z.ns&&Object.keys(z.ns).forEac
1h(function(U){P(A,"onopennamespace",{prefix:U,uri:z.ns[U]})});for(var N=0,ee=A.attribList.length;N<ee;N++){var w=A.attribList[N],Q=w[0],I=w[1],c=ie(Q,!0),d=c.prefix,j=""===d?"":z.ns[d]||"",H={name:Q,value:I,prefix:d,local:c.local,uri:j};d&&"xmlns"!==d&&!j&&(Y(A,"Unbound namespace prefix: "+JSON.stringify(d)),H.uri=d),A.tag.attributes[Q]=H,P(A,"onattribute",H)}A.attribList.length=0}A.tag.isSelfClosing=!!T,A.sawRoot=!0,A.tags.push(A.tag),P(A,"onopentag",A.tag),T||(A.state=A.noscript||"script"!==A.tagName.toLowerCase()?R.TEXT:R.SCRIPT,A.tag=null,A.tagName=""),A.attribName=A.attribValue="",A.attribList.length=0}function F(A){if(!A.tagName)return Y(A,"Weird empty close tag."),A.textNode+="</>",void(A.state=R.TEXT);if(A.script){if("script"!==A.tagName)return A.script+="</"+A.tagName+">",A.tagName="",void(A.state=R.SCRIPT);P(A,"onscript",A.script),A.script=""}var T=A.tags.length,z=A.tagName;A.strict||(z=z[A.looseCase]());for(var G=z;T--&&A.tags[T].name!==G;)Y(A,"Unexpected close tag");if(T<0)return Y(A,"Unmatched closing tag: "+A.tagName),A.textNode+="</"+A.tagName+">",void(A.state=R.TEXT);A.tagName=z;for(var N=A.tags.length;N-- >T;){var ee=A.tag=A.tags.pop();A.tagName=A.tag.name,P(A,"onclosetag",A.tagName);var w={};for(var Q in ee.ns)w[Q]=ee.ns[Q];A.opt.xmlns&&ee.ns!==(A.tags[A.tags.length-1]||A).ns&&Object.keys(ee.ns).forEach(function(c){P(A,"onclosenamespace",{prefix:c,uri:ee.ns[c]})})}0===T&&(A.closedRoot=!0),A.tagName=A.attribValue=A.attribName="",A.attribList.length=0,A.state=R.TEXT}function q(A){var G,T=A.entity,z=T.toLowerCase(),O="";return A.ENTITIES[T]?A.ENTITIES[T]:A.ENTITIES[z]?A.ENTITIES[z]:("#"===(T=z).charAt(0)&&("x"===T.charAt(1)?(T=T.slice(2),O=(G=parseInt(T,16)).toString(16)):(T=T.slice(1),O=(G=parseInt(T,10)).toString(10))),T=T.replace(/^0+/,""),isNaN(G)||O.toLowerCase()!==T?(Y(A,"Invalid character entity"),"&"+A.entity+";"):String.fromCodePoint(G))}function J(A,T){"<"===T?(A.state=R.OPEN_WAKA,A.startTagPosition=A.position):m(T)||(Y(A,"Non-whitespace before first tag."),A.textNode=T,A.state=R.TEXT)}function re(A,T){var z="";return T<A.length&&(z=A.charAt(T)),z}R=n.STATE,String.fromCodePoint||(A=String.fromCharCode,T=Math.floor,z=function(){var O=[],w=-1,Q=arguments.length;if(!Q)return"";for(var I="";++w<Q;){var c=Number(arguments[w]);if(!isFinite(c)||c<0||c>1114111||T(c)!==c)throw RangeError("Invalid code point: "+c);c<=65535?O.push(c):O.push(55296+((c-=65536)>>10),c%1024+56320),(w+1===Q||O.length>16384)&&(I+=A.apply(null,O),O.length=0)}return I},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z)}(Qn)),Qn}(),n=Ar(),t=Er().isArray;function l(h){var k=Number(h);if(!isNaN(k))return k;var v=h.toLowerCase();return"true"===v||"false"!==v&&h}function o(h,k){var v;if(s.compact){if(!r[s[h+"Key"]]&&(t(s.alwaysArray)?-1!==s.alwaysArray.indexOf(s[h+"Key"]):s.alwaysArray)&&(r[s[h+"Key"]]=[]),r[s[h+"Key"]]&&!t(r[s[h+"Key"]])&&(r[s[h+"Key"]]=[r[s[h+"Key"]]]),h+"Fn"in s&&"string"==typeof k&&(k=s[h+"Fn"](k,r)),"instruction"===h&&("instructionFn"in s||"instructionNameFn"in s))for(v in k)if(k.hasOwnProperty(v))if("instructionFn"in s)k[v]=s.instructionFn(k[v],v,r);else{var m=k[v];delete k[v],k[s.instructionNameFn(v,m,r)]=m}t(r[s[h+"Key"]])?r[s[h+"Key"]].push(k):r[s[h+"Key"]]=k}else{r[s.elementsKey]||(r[s.elementsKey]=[]);var S={};if(S[s.typeKey]=h,"instruction"===h){for(v in k)if(k.hasOwnProperty(v))break;S[s.nameKey]="instructionNameFn"in s?s.instructionNameFn(v,k,r):v,s.instructionHasAttributes?(S[s.attributesKey]=k[v][s.attributesKey],"instructionFn"in s&&(S[s.attributesKey]=s.instructionFn(S[s.attributesKey],v,r))):("instructionFn"in s&&(k[v]=s.instructionFn(k[v],v,r)),S[s.instructionKey]=k[v])}
1else h+"Fn"in s&&(k=s[h+"Fn"](k,r)),S[s[h+"Key"]]=k;s.addParent&&(S[s.parentKey]=r),r[s.elementsKey].push(S)}}function u(h){var k;if("attributesFn"in s&&h&&(h=s.attributesFn(h,r)),(s.trim||"attributeValueFn"in s||"attributeNameFn"in s||s.nativeTypeAttributes)&&h)for(k in h)if(h.hasOwnProperty(k)&&(s.trim&&(h[k]=h[k].trim()),s.nativeTypeAttributes&&(h[k]=l(h[k])),"attributeValueFn"in s&&(h[k]=s.attributeValueFn(h[k],k,r)),"attributeNameFn"in s)){var v=h[k];delete h[k],h[s.attributeNameFn(k,h[k],r)]=v}return h}function p(h){var k={};if(h.body&&("xml"===h.name.toLowerCase()||s.instructionHasAttributes)){for(var m,v=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(m=v.exec(h.body));)k[m[1]]=m[2]||m[3]||m[4];k=u(k)}if("xml"===h.name.toLowerCase()){if(s.ignoreDeclaration)return;r[s.declarationKey]={},Object.keys(k).length&&(r[s.declarationKey][s.attributesKey]=k),s.addParent&&(r[s.declarationKey][s.parentKey]=r)}else{if(s.ignoreInstruction)return;s.trim&&(h.body=h.body.trim());var S={};s.instructionHasAttributes&&Object.keys(k).length?(S[h.name]={},S[h.name][s.attributesKey]=k):S[h.name]=h.body,o("instruction",S)}}function _(h,k){var v;if("object"==typeof h&&(k=h.attributes,h=h.name),k=u(k),"elementNameFn"in s&&(h=s.elementNameFn(h,r)),s.compact){var m;if(v={},!s.ignoreAttributes&&k&&Object.keys(k).length)for(m in v[s.attributesKey]={},k)k.hasOwnProperty(m)&&(v[s.attributesKey][m]=k[m]);!(h in r)&&(t(s.alwaysArray)?-1!==s.alwaysArray.indexOf(h):s.alwaysArray)&&(r[h]=[]),r[h]&&!t(r[h])&&(r[h]=[r[h]]),t(r[h])?r[h].push(v):r[h]=v}else r[s.elementsKey]||(r[s.elementsKey]=[]),(v={})[s.typeKey]="element",v[s.nameKey]=h,!s.ignoreAttributes&&k&&Object.keys(k).length&&(v[s.attributesKey]=k),s.alwaysChildren&&(v[s.elementsKey]=[]),r[s.elementsKey].push(v);v[s.parentKey]=r,r=v}function g(h){s.ignoreText||!h.trim()&&!s.captureSpacesBetweenElements||(s.trim&&(h=h.trim()),s.nativeType&&(h=l(h)),s.sanitize&&(h=h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),o("text",h))}function C(h){s.ignoreComment||(s.trim&&(h=h.trim()),o("comment",h))}function f(h){var k=r[s.parentKey];s.addParent||delete r[s.parentKey],r=k}function x(h){s.ignoreCdata||(s.trim&&(h=h.trim()),o("cdata",h))}function y(h){s.ignoreDoctype||(h=h.replace(/^ /,""),s.trim&&(h=h.trim()),o("doctype",h))}function D(h){h.note=h}return Ir=function(h,k){var v=i.parser(!0,{}),m={};if(r=m,s=function a(h){return s=n.copyOptions(h),n.ensureFlagExists("ignoreDeclaration",s),n.ensureFlagExists("ignoreInstruction",s),n.ensureFlagExists("ignoreAttributes",s),n.ensureFlagExists("ignoreText",s),n.ensureFlagExists("ignoreComment",s),n.ensureFlagExists("ignoreCdata",s),n.ensureFlagExists("ignoreDoctype",s),n.ensureFlagExists("compact",s),n.ensureFlagExists("alwaysChildren",s),n.ensureFlagExists("addParent",s),n.ensureFlagExists("trim",s),n.ensureFlagExists("nativeType",s),n.ensureFlagExists("nativeTypeAttributes",s),n.ensureFlagExists("sanitize",s),n.ensureFlagExists("instructionHasAttributes",s),n.ensureFlagExists("captureSpacesBetweenElements",s),n.ensureAlwaysArrayExists(s),n.ensureKeyExists("declaration",s),n.ensureKeyExists("instruction",s),n.ensureKeyExists("attributes",s),n.ensureKeyExists("text",s),n.ensureKeyExists("comment",s),n.ensureKeyExists("cdata",s),n.ensureKeyExists("doctype",s),n.ensureKeyExists("type",s),n.ensureKeyExists("name",s),n.ensureKeyExists("elements",s),n.ensureKeyExists("parent",s),n.checkFnExists("doctype",s),n.checkFnExists("instruction",s),n.checkFnExists("cdata",s),n.checkFnExists("comment",s),n.checkFnExists("text",s),n.checkFnExists("instructionName",s),n.checkFnExists("elementName",s),n.checkFnExists("attributeName",s),n.checkFnExists("attributeValue",s),n.checkFnExists("attributes",s),s}(k),v.opt={strictEntities:!0},v.onopentag=_,v.ontext=g,v.oncomment=C,v.onclosetag=f,v.onerror=D,v.oncdata=x,v.ondoctype=y,v.onprocessinginstruction=p,v.write(h).close(),m[s.elementsKey]){var S=m[s.elementsKey];delete m[s.elementsKey],m[s.elementsKey]=S,delete m.text}return m}}function bo(){if(wo)return Dr;wo=1;var t,s,i=Ar(),n=Er().isArray;function a(v,m,S){return(!S&&v.spaces?"\n":"")+Array(m+1).join(v.spaces)}function l(v,m,S){if(m.ignoreAttributes)return"";"attributesFn"in m&&(v=m.attributesFn(v,s,t));var M,L,$,R,Z=[];for(M in v)v.hasOwnProperty(M)&&null!=v[M]&&(R=m.noQuotesForNativeAttributes&&"string"!=typeof v[M]?"":'"',L=(L=""+v[M]).replace(/"/g,"&quot;"),$="attributeNameFn"in m?m.attributeNameFn(M,L,s,t):M,Z.push(m.spaces&&m.indentAttributes?a(m,S+1,!1):" "),Z.push($+"="+R+("attributeValueFn"in m?m.attributeValueFn(L,M,s,t):L)+R));return v&&Object.keys(v).length&&m.spaces&&m.indentAttributes&&Z.push(a(m,S,!1)),Z.join("")}function o(v,m,S){return t=v,s="xml",m.ignoreDeclaration?"":"<?xml"+l(v[m.attributesKey],m,S)+"?>"}function u(v,m,S){if(m.ignoreInstruction)return"";var M;for(M in v)if(v.hasOwnProperty(M))break;var L="instructionNameFn"in m?m.instructionNameFn(M,v[M],s,t):M;if("object"==typeof v[M])return t=v,s=L,"<?"+L+l(v[M][m.attributesKey],m,S)+"?>";var $=v[M]?v[M]:"";return"instructionFn"in m&&($=m.instructionFn($,M,s,t)),"<?"+L+($?" "+$:"")+"?>"}function p(v,m){return m.ignoreComment?"":"\x3c!--"+("commentFn"in m?m.commentFn(v,s,t):v)+"--\x3e"}function _(v,m){return m.ignoreCdata?"":"<![CDATA["+("cdataFn"in m?m.cdataFn(v,s,t):v.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function g(v,m){return m.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in m?m.doctypeFn(v,s,t):v)+">"}function C(v,m){return m.ignoreText?"":(v=(v=(v=""+v).replace(/&amp;/g,"&")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in m?m.textFn(v,s,t):v)}function y(v,m,S,M){return v.reduce(function(L,$){var R=a(m,S,M&&!L);switch($.type){case"element":return L+R+function x(v,m,S){t=v,s=v.name;var M=[],L="elementNameFn"in m?m.elementNameFn(v.name,v):v.name;M.push("<"+L),v[m.attributesKey]&&M.push(l(v[m.attributesKey],m,S));var $=v[m.elementsKey]&&v[m.elementsKey].length||v[m.attributesKey]&&"preserve"===v[m.attributesKey]["xml:space"];return $||($="fullTagEmptyElementFn"in m?m.fullTagEmptyElementFn(v.name,v):m.fullTagEmptyElement),$?(M.push(">"),v[m.elementsKey]&&v[m.elementsKey].length&&(M.push(y(v[m.elementsKey],m,S+1)),t=v,s=v.name),M.push(m.spaces&&function f(v,m){var S;if(v.elements&&v.elements.length)for(S=0;S<v.elements.length;++S)switch(v.elements[S][m.typeKey]){case"text":if(m.indentText)return!0;break;case"cdata":if(m.indentCdata)return!0;break;case"instruction":if(m.indentInstruction)return!0;break;default:return!0}return!1}(v,m)?"\n"+Array(S+1).join(m.spaces):""),M.push("</"+L+">")):M.push("/>"),M.join("")}($,m,S);case"comment":return L+R+p($[m.commentKey],m);case"doctype":return L+R+g($[m.doctypeKey],m);case"cdata":return L+(m.indentCdata?R:"")+_($[m.cdataKey],m);case"text":return L+(m.indentText?R:"")+C($[m.textKey],m);case"instruction":var Z={};return Z[$[m.nameKey]]=$[m.attributesKey]?$:$[m.instructionKey],L+(m.indentInstruction?R:"")+u(Z,m,S)}},"")}function D(v,m,S){var M;for(M in v)if(v.hasOwnProperty(M))switch(M){case m.parentKey:case m.attributesKey:break;case m.textKey:if(m.indentText||S)return!0;break;case m.cdataKey:if(m.indentCdata||S)return!0;break;case m.instructionKey:if(m.indentInstruction||S)return!0;break;default:return!0}return!1}function h(v,m,S,M,L){t=v,s=m;var $="elementNameFn"in S?S.elementNameFn(m,v):m;if(typeof v>"u"||null===v||""===v)return"fullTagEmptyElementFn"in S&&S.fullTagEmptyElementFn(m,v)||S.fullTagEmptyElement?"<"+$+"></"+$+">":"<"+$+"/>";var R=[];if(m){if(R.push("<"+$),"object"!=typeof v)return R.push(">"+C(v,S)+"</"+$+">"),R.join("");v[S.attributesKey]&&R.push(l(v[S.attributesKey],S,M));var Z=D(v,S,!0)||v[S.attributesKey]&&"preserve"===v[S.attributesKey]["xml:space"];if(Z||(Z="fullTagEmptyElementFn"in S?S.fullTagEmptyElementFn(m,v):S.fullTagEmptyElement),!Z)return R.push("/>"),R.join("");R.push(">")}return R.push(k(v,S,M+1,!1)),t=v,s=m,m&&R.push((L?a(S,M,!1):"")+"</"+$+">"),R.join("")}function k(v,m,S,M){var L,$,R,Z=[];for($ in v)if(v.hasOwnProperty($))for(R=n(v[$])?v[$]:[v[$]],L=0;L<R.length;++L){switch($){case m.declarationKey:Z.push(o(R[L],m,S));break;case m.instructionKey:Z.push((m.indentInstruction?a(m,S,M):"")+u(R[L],m,S));break;case m.attributesKey:case m.parentKey:break;case m.textKey:Z.push((m.indentText?a(m,S,M):"")+C(R[L],m));break;case m.cdataKey:Z.push((m.indentCdata?a(m,S,M):"")+_(R[L],m));break;case m.doctypeKey:Z.push(a(m,S,M)+g(R[L],m));break;case m.commentKey:Z.push(a(m,S,M)+p(R[L],m));break;default:Z.push(a(m,S,M)+h(R[L],$,m,S,D(R[L],m)))}M=M&&!Z.length}return Z.join("")}return Dr=function(v,m){m=function r(v){var m=i.copyOptions(v);return i.ensureFlagExists("ignoreDeclaration",m),i.ensureFlagExists("ignoreInstruction",m),i.ensureFlagExists("ignoreAttributes",m),i.ensureFlagExists("ignoreText",m),i.ensureFlagExists("ignoreComment",m),i.ensureFlagExists("ignoreCdata",m),i.ensureFlagExists("ignoreDoctype",m),i.ensureFlagExists("compact",m),i.ensureFlagExists("indentText",m),i.ensureFlagExists("indentCdata",m),i.ensureFlagExists("indentAttributes",m),i.ensureFlagExists("indentInstruction",m),i.ensureFlagExists("fullTagEmptyElement",m),i.ensureFlagExists("noQuotesForNativeAttributes",m),i.ensureSpace
1sExists(m),"number"==typeof m.spaces&&(m.spaces=Array(m.spaces+1).join(" ")),i.ensureKeyExists("declaration",m),i.ensureKeyExists("instruction",m),i.ensureKeyExists("attributes",m),i.ensureKeyExists("text",m),i.ensureKeyExists("comment",m),i.ensureKeyExists("cdata",m),i.ensureKeyExists("doctype",m),i.ensureKeyExists("type",m),i.ensureKeyExists("name",m),i.ensureKeyExists("elements",m),i.checkFnExists("doctype",m),i.checkFnExists("instruction",m),i.checkFnExists("cdata",m),i.checkFnExists("comment",m),i.checkFnExists("text",m),i.checkFnExists("instructionName",m),i.checkFnExists("elementName",m),i.checkFnExists("attributeName",m),i.checkFnExists("attributeValue",m),i.checkFnExists("attributes",m),i.checkFnExists("fullTagEmptyElement",m),m}(m);var S=[];return t=v,s="_root_",m.compact?S.push(k(v,m,0,!0)):(v[m.declarationKey]&&S.push(o(v[m.declarationKey],m,0)),v[m.elementsKey]&&v[m.elementsKey].length&&S.push(y(v[m.elementsKey],m,0,!S.length))),S.join("")}}var Tn=function Lu(){if(xo)return Pr;xo=1;var i=_o(),n=function Nu(){if(vo)return Sr;vo=1;var i=Ar(),n=_o();return Sr=function(s,r){var a,l,u;return a=function t(s){var r=i.copyOptions(s);return i.ensureSpacesExists(r),r}(r),l=n(s,a),u="compact"in a&&a.compact?"_parent":"parent",("addParent"in a&&a.addParent?JSON.stringify(l,function(p,_){return p===u?"_":_},a.spaces):JSON.stringify(l,null,a.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}(),t=bo(),s=function Mu(){if(yo)return Rr;yo=1;var i=bo();return Rr=function(n,t){n instanceof Buffer&&(n=n.toString());var s=null;if("string"==typeof n)try{s=JSON.parse(n)}catch{throw new Error("The JSON structure is invalid")}else s=n;return i(s,t)}}();return Pr={xml2js:i,xml2json:n,js2xml:t,json2xml:s}}();const Or=i=>{switch(i.type){case void 0:case"element":const n=new Gu(i.name,i.attributes),t=i.elements||[];for(const s of t){const r=Or(s);void 0!==r&&n.push(r)}return n;case"text":return i.text;default:return}};class ju extends me{}class Gu extends K{static fromXmlString(n){const t=Tn.xml2js(n,{compact:!1});return Or(t)}constructor(n,t){super(n),t&&this.root.push(new ju(t))}push(n){this.root.push(n)}}class Bu extends K{constructor(n){super(""),this._attr=n}prepForXml(n){return{_attr:this._attr}}}class ko extends K{constructor(n,t){super(n),t&&(this.root=t.root)}}const Oe=i=>{if(isNaN(i))throw new Error(`Invalid value '${i}' specified. Must be an integer.`);return Math.floor(i)},An=i=>{const n=Oe(i);if(n<0)throw new Error(`Invalid value '${i}' specified. Must be a positive integer.`);return n},In=(i,n)=>{const t=2*n;if(i.length!==t||isNaN(+`0x${i}`))throw new Error(`Invalid hex value '${i}'. Expected ${t} digit hex value`);return i},Co=i=>In(i,1),Sn=i=>{const n=i.slice(-2),t=i.substring(0,i.length-2);return`${Number(t)}${n}`},Eo=i=>{const n=Sn(i);if(parseFloat(n)<0)throw new Error(`Invalid value '${n}' specified. Expected a positive number.`);return n},Mt=i=>{if("auto"===i)return i;const n="#"===i.charAt(0)?i.substring(1):i;return In(n,3)},ut=i=>"string"==typeof i?Sn(i):Oe(i),Re=i=>"string"==typeof i?Eo(i):An(i),Yu=An,Hu=An;class de extends K{constructor(n,t=!0){super(n),!0!==t&&this.root.push(new Ie({val:t}))}}class Fr extends K{constructor(n,t){var i;super(n),this.root.push(new Ie({val:(i=t,"string"==typeof i?Eo(i):An(i))}))}}class wt extends K{constructor(n,t){super(n),this.root.push(new Ie({val:t}))}}const Xt=(i,n)=>new we({name:i,attributes:{value:{key:"w:val",value:n}}});class Wt extends K{constructor(n,t){super(n),this.root.push(new Ie({val:t}))}}class Ct extends K{constructor(n,t){super(n),this.root.push(t)}}class we extends K{constructor({name:n,attributes:t,children:s}){super(n),t&&this.root.push(new We(t)),s&&this.root.push(...s)}}class Wu extends me{constructor(){super(...arguments),te(this,"xmlKeys",{val:"w:val"})}}class Ao extends K{constructor(n){super("w:jc"),this.root.push(new Wu({val:n}))}}class Ce extends K{constructor(n,{color:t,size:s,space:r,style:a}){super(n),this.root.push(new qu({style:a,color:void 0===t?void 0:Mt(t),size:void 0===s?void 0:Yu(s),space:void 0===r?void 0:Hu(r)}))}}class qu extends me{constructor(){super(...arguments),te(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}class Ku extends lt{constructor(n){super("w:pBdr"),n.top&&this.root.push(new Ce("w:top",n.top)),n.bottom&&this.root.push(new Ce("w:bottom",n.bottom)),n.left&&this.root.push(new Ce("w:left",n.left)),n.right&&this.root.push(new Ce("w:right",n.right))}}class Zu extends K{constructor(){super("w:pBdr");
1const n=new Ce("w:bottom",{color:"auto",space:1,style:"single",size:6});this.root.push(n)}}class Ju extends K{constructor({start:n,end:t,left:s,right:r,hanging:a,firstLine:l}){super("w:ind"),this.root.push(new We({start:{key:"w:start",value:void 0===n?void 0:ut(n)},end:{key:"w:end",value:void 0===t?void 0:ut(t)},left:{key:"w:left",value:void 0===s?void 0:ut(s)},right:{key:"w:right",value:void 0===r?void 0:ut(r)},hanging:{key:"w:hanging",value:void 0===a?void 0:Re(a)},firstLine:{key:"w:firstLine",value:void 0===l?void 0:Re(l)}}))}}let Io=class extends K{constructor(){super("w:br")}};class Lr extends me{constructor(){super(...arguments),te(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class tt extends K{constructor(n){super("w:fldChar"),this.root.push(new Lr({type:"begin",dirty:n}))}}class pt extends K{constructor(n){super("w:fldChar"),this.root.push(new Lr({type:"separate",dirty:n}))}}class nt extends K{constructor(n){super("w:fldChar"),this.root.push(new Lr({type:"end",dirty:n}))}}class Ye extends me{constructor(){super(...arguments),te(this,"xmlKeys",{space:"xml:space"})}}class Qu extends K{constructor(){super("w:instrText"),this.root.push(new Ye({space:"preserve"})),this.root.push("PAGE")}}class ep extends K{constructor(){super("w:instrText"),this.root.push(new Ye({space:"preserve"})),this.root.push("NUMPAGES")}}class tp extends K{constructor(){super("w:instrText"),this.root.push(new Ye({space:"preserve"})),this.root.push("SECTIONPAGES")}}class np extends K{constructor(){super("w:instrText"),this.root.push(new Ye({space:"preserve"})),this.root.push("SECTION")}}class ip extends me{constructor(){super(...arguments),te(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class Dn extends K{constructor({fill:n,color:t,type:s}){super("w:shd"),this.root.push(new ip({fill:void 0===n?void 0:Mt(n),color:void 0===t?void 0:Mt(t),type:s}))}}class jr extends me{constructor(){super(...arguments),te(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}class Do extends K{constructor(n){super("w:em"),this.root.push(new Ie({val:n}))}}class rp extends Do{constructor(n="dot"){super(n)}}class sp extends K{constructor(n){super("w:spacing"),this.root.push(new Ie({val:ut(n)}))}}class ap extends K{constructor(n){super("w:color"),this.root.push(new Ie({val:Mt(n)}))}}class op extends K{constructor(n){super("w:highlight"),this.root.push(new Ie({val:n}))}}class lp extends K{constructor(n){super("w:highlightCs"),this.root.push(new Ie({val:n}))}}class Ro extends me{constructor(){super(...arguments),te(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Gr extends K{constructor(n,t){super("w:rFonts"),this.root.push(new Ro("string"==typeof n?{ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:t}:n))}}let Po=class extends K{constructor(n){super("w:vertAlign"),this.root.push(new Ie({val:n}))}};class dp extends Po{constructor(){super("superscript")}}class up extends Po{constructor(){super("subscript")}}class pp extends K{constructor(n="single",t){super("w:u"),this.root.push(new Ie({val:n,color:void 0===t?void 0:Mt(t)}))}}class bt extends lt{constructor(n){var t,s;if(super("w:rPr"),!n)return;n.style&&this.push(new wt("w:rStyle",n.style)),n.font&&this.push("string"==typeof n.font?new Gr(n.font):"name"in n.font?new Gr(n.font.name,n.font.hint):new Gr(n.font)),void 0!==n.bold&&this.push(new de("w:b",n.bold)),(void 0===n.boldComplexScript&&void 0!==n.bold||n.boldComplexScript)&&this.push(new de("w:bCs",null!=(t=n.boldComplexScript)?t:n.bold)),void 0!==n.italics&&this.push(new de("w:i",n.italics)),(void 0===n.italicsComplexScript&&void 0!==n.italics||n.italicsComplexScript)&&this.push(new de("w:iCs",null!=(s=n.italicsComplexScript)?s:n.italics)),void 0!==n.smallCaps?this.push(new de("w:smallCaps",n.smallCaps)):void 0!==n.allCaps&&this.push(new de("w:caps",n.allCaps)),void 0!==n.strike&&this.push(new de("w:strike",n.strike)),void 0!==n.doubleStrike&&this.push(new de("w:dstrike",n.doubleStrike)),void 0!==n.emboss&&this.push(new de("w:emboss",n.emboss)),void 0!==n.imprint&&this.push(new de("w:imprint",n.imprint)),void 0!==n.noProof&&this.push(new de("w:noProof",n.noProof)),void 0!==n.snapToGri
1d&&this.push(new de("w:snapToGrid",n.snapToGrid)),n.vanish&&this.push(new de("w:vanish",n.vanish)),n.color&&this.push(new ap(n.color)),n.characterSpacing&&this.push(new sp(n.characterSpacing)),void 0!==n.scale&&this.push(new Wt("w:w",n.scale)),n.kern&&this.push(new Fr("w:kern",n.kern)),n.position&&this.push(new wt("w:position",n.position)),void 0!==n.size&&this.push(new Fr("w:sz",n.size));const r=void 0===n.sizeComplexScript||!0===n.sizeComplexScript?n.size:n.sizeComplexScript;r&&this.push(new Fr("w:szCs",r)),n.highlight&&this.push(new op(n.highlight));const a=void 0===n.highlightComplexScript||!0===n.highlightComplexScript?n.highlight:n.highlightComplexScript;var i;a&&this.push(new lp(a)),n.underline&&this.push(new pp(n.underline.type,n.underline.color)),n.effect&&this.push(new wt("w:effect",n.effect)),n.border&&this.push(new Ce("w:bdr",n.border)),n.shading&&this.push(new Dn(n.shading)),n.subScript&&this.push(new up),n.superScript&&this.push(new dp),void 0!==n.rightToLeft&&this.push(new de("w:rtl",n.rightToLeft)),n.emphasisMark&&this.push(new rp(n.emphasisMark.type)),n.language&&this.push(new we({name:"w:lang",attributes:{value:{key:"w:val",value:(i=n.language).value},eastAsia:{key:"w:eastAsia",value:i.eastAsia},bidirectional:{key:"w:bidi",value:i.bidirectional}}})),n.specVanish&&this.push(new de("w:specVanish",n.vanish)),n.math&&this.push(new de("w:oMath",n.math)),n.revision&&this.push(new hp(n.revision))}push(n){this.root.push(n)}}class hp extends K{constructor(n){super("w:rPrChange"),this.root.push(new jr({id:n.id,author:n.author,date:n.date})),this.addChildElement(new bt(n))}}class Br extends K{constructor(n){var t;super("w:t"),"string"==typeof n?(this.root.push(new Ye({space:"preserve"})),this.root.push(n)):(this.root.push(new Ye({space:null!=(t=n.space)?t:"default"})),this.root.push(n.text))}}class He extends K{constructor(n){if(super("w:r"),te(this,"properties"),this.properties=new bt(n),this.root.push(this.properties),n.break)for(let t=0;t<n.break;t++)this.root.push(new Io);if(n.children)for(const t of n.children)if("string"!=typeof t)this.root.push(t);else switch(t){case"CURRENT":this.root.push(new tt),this.root.push(new Qu),this.root.push(new pt),this.root.push(new nt);break;case"TOTAL_PAGES":this.root.push(new tt),this.root.push(new ep),this.root.push(new pt),this.root.push(new nt);break;case"TOTAL_PAGES_IN_SECTION":this.root.push(new tt),this.root.push(new tp),this.root.push(new pt),this.root.push(new nt);break;case"SECTION":this.root.push(new tt),this.root.push(new np),this.root.push(new pt),this.root.push(new nt);break;default:this.root.push(new Br(t))}else void 0!==n.text&&this.root.push(new Br(n.text))}}class qe extends He{constructor(n){super("string"==typeof n?{text:n}:n)}}var $r,No,Mo,Ur={},Ee={};function qt(){if(No)return $r;function i(n,t){if(!n)throw new Error(t||"Assertion failed")}return No=1,$r=i,i.equal=function(t,s,r){if(t!=s)throw new Error(r||"Assertion failed: "+t+" != "+s)},$r}function it(){if(Mo)return Ee;Mo=1;var i=qt(),n=vt();function t(P,B){return!(55296!=(64512&P.charCodeAt(B))||B<0||B+1>=P.length)&&56320==(64512&P.charCodeAt(B+1))}function a(P){return(P>>>24|P>>>8&65280|P<<8&16711680|(255&P)<<24)>>>0}function o(P){return 1===P.length?"0"+P:P}function u(P){return 7===P.length?"0"+P:6===P.length?"00"+P:5===P.length?"000"+P:4===P.length?"0000"+P:3===P.length?"00000"+P:2===P.length?"000000"+P:1===P.length?"0000000"+P:P}return Ee.inherits=n,Ee.toArray=function s(P,B){if(Array.isArray(P))return P.slice();if(!P)return[];var E=[];if("string"==typeof P)if(B){if("hex"===B)for((P=P.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(P="0"+P),ne=0;ne<P.length;ne+=2)E.push(parseInt(P[ne]+P[ne+1],16))}else for(var V=0,ne=0;ne<P.length;ne++){var Y=P.charCodeAt(ne);Y<128?E[V++]=Y:Y<2048?(E[V++]=Y>>6|192,E[V++]=63&Y|128):t(P,ne)?(Y=65536+((1023&Y)<<10)+(1023&P.charCodeAt(++ne)),E[V++]=Y>>18|240,E[V++]=Y>>12&63|128,E[V++]=Y>>6&63|128,E[V++]=63&Y|128):(E[V++]=Y>>12|224,E[V++]=Y>>6&63|128,E[V++]=63&Y|128)}else for(ne=0;ne<P.length;ne++)E[ne]=0|P[ne];return E},Ee.toHex=function r(P){for(var B="",E=0;E<P.length;E++)B+=o(P[E].toString(16));return B},Ee.htonl=a,Ee.toHex32=function l(P,B){for(var E="",V=0;V<P.length;V++){var ne=P[V];"little"===B&&(ne=a(ne)),E+=u(ne.toString(16))}return E},Ee.zero2=o,Ee.zero8=u,Ee.join32=function p(P,B,E,V){var ne=E-B;i(ne%4==0);for(var Y=new Array(ne/4),ae=0,ie=B;ae<Y.length;ae++,ie+=4)Y[ae]=("big"===V?P[ie]<<24|P[ie+1]<<16|P[ie+2]<<8|P[ie+3]:P[ie+3]<<24|P[ie+2]<<16|P[ie+1]<<8|P[ie])>>>0;return Y},Ee.split32=function _(P,B){for(var E=new Array(4*P.length),V=0,ne=0;V<P.length;V++,ne+=4){var Y=P[V];"big"===B?(E[ne]=Y>>>24,E[ne+1]=Y>>>16&255,E[ne+2]=Y>>>8&255,E[ne+3]=255&Y):(E[ne+3]=Y>>>24,E[ne+2]=Y>>>16&255,E[ne+1]=Y>>>8&255,E[ne]=255&Y)}return E},Ee.rotr32=function g(P,B){return P>>>B|P<<32-B},Ee.rotl32=function C(P,B){return P<<B|P>>>32-B},Ee.sum32=function f(P,B){return P+B>>>0},Ee.sum32_3=function x(P,B,E){return P+B+E>>>0},Ee.sum32_4=function y(P,B,E,V){return P+B+E+V>>>0},Ee.sum32_5=function D(P,B,E,V,ne){return P+B+E+V+ne>>>0},Ee.sum64=function h(P,B,E,V){var ae=V+P[B+1]>>>0;P[B]=(ae<V?1:0)+E+P[B]>>>0,P[B+1]=ae},Ee.sum64_hi=function k(P,B,E,V){return(B+V>>>0<B?1:0)+P+E>>>0},Ee.sum64_lo=function v(P,B,E,V){return B+V>>>0},Ee.sum64_4_hi=function m(P,B,E,V,ne,Y,ae,ie){var pe=0,W=B;return pe+=(W=W+V>>>0)<B?1:0,pe+=(W=W+Y>>>0)<Y?1:0,P+E+ne+ae+(pe+=(W=W+ie>>>0)<ie?1:0)>>>0},Ee.sum64_4_lo=function S(P,B,E,V,ne,Y,ae,ie){return B+V+Y+ie>>>0},Ee.sum64_5_hi=function M(P,B,E,V,ne,Y,ae,ie,pe,W){var F=0,q=B;return F+=(q=q+V>>>0)<B?1:0,F+=(q=q+Y>>>0)<Y?1:0,F+=(q=q+ie>>>0)<ie?1:0,P+E+ne+ae+pe+(F+=(q=q+W>>>0)<W?1:0)>>>0},Ee.sum64_5_lo=function L(P,B,E,V,ne,Y,ae,ie,pe,W){return B+V+Y+ie+W>>>0},Ee.rotr64_hi=function $(P,B,E){return(B<<32-E|P>>>E)>>>0},Ee.rotr64_lo=function R(P,B,E){return(P<<32-E|B>>>E)>>>0},Ee.shr64_hi=function Z(P,B,E){return P>>>E},Ee.shr64_lo=function ce(P,B,E){return(P<<32-E|B>>>E)>>>0},Ee}var Lo,zr={};function Kt(){if(Lo)return zr;Lo=1;var i=it(),n=qt();function t(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}
1return zr.BlockHash=t,t.prototype.update=function(r,a){if(r=i.toArray(r,a),this.pending=this.pending?this.pending.concat(r):r,this.pendingTotal+=r.length,this.pending.length>=this._delta8){var l=(r=this.pending).length%this._delta8;this.pending=r.slice(r.length-l,r.length),0===this.pending.length&&(this.pending=null),r=i.join32(r,0,r.length-l,this.endian);for(var o=0;o<r.length;o+=this._delta32)this._update(r,o,o+this._delta32)}return this},t.prototype.digest=function(r){return this.update(this._pad()),n(null===this.pending),this._digest(r)},t.prototype._pad=function(){var r=this.pendingTotal,a=this._delta8,l=a-(r+this.padLength)%a,o=new Array(l+this.padLength);o[0]=128;for(var u=1;u<l;u++)o[u]=0;if(r<<=3,"big"===this.endian){for(var p=8;p<this.padLength;p++)o[u++]=0;o[u++]=0,o[u++]=0,o[u++]=0,o[u++]=0,o[u++]=r>>>24&255,o[u++]=r>>>16&255,o[u++]=r>>>8&255,o[u++]=255&r}else for(o[u++]=255&r,o[u++]=r>>>8&255,o[u++]=r>>>16&255,o[u++]=r>>>24&255,o[u++]=0,o[u++]=0,o[u++]=0,o[u++]=0,p=8;p<this.padLength;p++)o[u++]=0;return o},zr}var jo,Yr,Bo,Hr,Uo,Vr,zo,Xr,Yo,Wr,Vo,Xo,Tt={},rt={};function Go(){if(jo)return rt;jo=1;var n=it().rotr32;function s(_,g,C){return _&g^~_&C}function r(_,g,C){return _&g^_&C^g&C}function a(_,g,C){return _^g^C}return rt.ft_1=function t(_,g,C,f){return 0===_?s(g,C,f):1===_||3===_?a(g,C,f):2===_?r(g,C,f):void 0},rt.ch32=s,rt.maj32=r,rt.p32=a,rt.s0_256=function l(_){return n(_,2)^n(_,13)^n(_,22)},rt.s1_256=function o(_){return n(_,6)^n(_,11)^n(_,25)},rt.g0_256=function u(_){return n(_,7)^n(_,18)^_>>>3},rt.g1_256=function p(_){return n(_,17)^n(_,19)^_>>>10},rt}function $o(){if(Uo)return Hr;Uo=1;var i=it(),n=Kt(),t=Go(),s=qt(),r=i.sum32,a=i.sum32_4,l=i.sum32_5,o=t.ch32,u=t.maj32,p=t.s0_256,_=t.s1_256,g=t.g0_256,C=t.g1_256,f=n.BlockHash,x=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;f.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=x,this.W=new Array(64)}return i.inherits(y,f),Hr=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(h,k){for(var v=this.W,m=0;m<16;m++)v[m]=h[k+m];for(;m<v.length;m++)v[m]=a(C(v[m-2]),v[m-7],g(v[m-15]),v[m-16]);var S=this.h[0],M=this.h[1],L=this.h[2],$=this.h[3],R=this.h[4],Z=this.h[5],ce=this.h[6],P=this.h[7];for(s(this.k.length===v.length),m=0;m<v.length;m++){var B=l(P,_(R),o(R,Z,ce),this.k[m],v[m]),E=r(p(S),u(S,M,L));P=ce,ce=Z,Z=R,R=r($,B),$=L,L=M,M=S,S=r(B,E)}this.h[0]=r(this.h[0],S),this.h[1]=r(this.h[1],M),this.h[2]=r(this.h[2],L),this.h[3]=r(this.h[3],$),this.h[4]=r(this.h[4],R),this.h[5]=r(this.h[5],Z),this.h[6]=r(this.h[6],ce),this.h[7]=r(this.h[7],P)},y.prototype._digest=function(h){return"hex"===h?i.toHex32(this.h,"big"):i.split32(this.h,"big")},Hr}function Ho(){if(Yo)return Xr;Yo=1;var i=it(),n=Kt(),t=qt(),s=i.rotr64_hi,r=i.rotr64_lo,a=i.shr64_hi,l=i.shr64_lo,o=i.sum64,u=i.sum64_hi,p=i.sum64_lo,_=i.sum64_4_hi,g=i.sum64_4_lo,C=i.sum64_5_hi,f=i.sum64_5_lo,x=n.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
11322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function D(){if(!(this instanceof D))return new D;x.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function h(B,E,V,ne,Y){var ae=B&V^~B&Y;return ae<0&&(ae+=4294967296),ae}function k(B,E,V,ne,Y,ae){var ie=E&ne^~E&ae;return ie<0&&(ie+=4294967296),ie}function v(B,E,V,ne,Y){var ae=B&V^B&Y^V&Y;return ae<0&&(ae+=4294967296),ae}function m(B,E,V,ne,Y,ae){var ie=E&ne^E&ae^ne&ae;return ie<0&&(ie+=4294967296),ie}function S(B,E){var ae=s(B,E,28)^s(E,B,2)^s(E,B,7);return ae<0&&(ae+=4294967296),ae}function M(B,E){var ae=r(B,E,28)^r(E,B,2)^r(E,B,7);return ae<0&&(ae+=4294967296),ae}function L(B,E){var ae=s(B,E,14)^s(B,E,18)^s(E,B,9);return ae<0&&(ae+=4294967296),ae}function $(B,E){var ae=r(B,E,14)^r(B,E,18)^r(E,B,9);return ae<0&&(ae+=4294967296),ae}function R(B,E){var ae=s(B,E,1)^s(B,E,8)^a(B,E,7);return ae<0&&(ae+=4294967296),ae}function Z(B,E){var ae=r(B,E,1)^r(B,E,8)^l(B,E,7);return ae<0&&(ae+=4294967296),ae}function ce(B,E){var ae=s(B,E,19)^s(E,B,29)^a(B,E,6);return ae<0&&(ae+=4294967296),ae}function P(B,E){var ae=r(B,E,19)^r(E,B,29)^l(B,E,6);return ae<0&&(ae+=4294967296),ae}return i.inherits(D,x),Xr=D,D.blockSize=1024,D.outSize=512,D.hmacStrength=192,D.padLength=128,D.prototype._prepareBlock=function(E,V){for(var ne=this.W,Y=0;Y<32;Y++)ne[Y]=E[V+Y];for(;Y<ne.length;Y+=2){var ae=ce(ne[Y-4],ne[Y-3]),ie=P(ne[Y-4],ne[Y-3]),pe=ne[Y-14],W=ne[Y-13],F=R(ne[Y-30],ne[Y-29]),q=Z(ne[Y-30],ne[Y-29]),J=ne[Y-32],re=ne[Y-31];ne[Y]=_(ae,ie,pe,W,F,q,J,re),ne[Y+1]=g(ae,ie,pe,W,F,q,J,re)}},D.prototype._update=function(E,V){this._prepareBlock(E,V);var ne=this.W,Y=this.h[0],ae=this.h[1],ie=this.h[2],pe=this.h[3],W=this.h[4],F=this.h[5],q=this.h[6],J=this.h[7],re=this.h[8],X=this.h[9],A=this.h[10],T=this.h[11],z=this.h[12],G=this.h[13],O=this.h[14],N=this.h[15];t(this.k.length===ne.length);for(var ee=0;ee<ne.length;ee+=2){var w=O,Q=N,I=L(re,X),c=$(re,X),d=h(re,0,A,0,z),b=k(0,X,0,T,0,G),j=this.k[ee],H=this.k[ee+1],U=ne[ee],se=ne[ee+1],le=C(w,Q,I,c,d,b,j,H,U,se),oe=f(w,Q,I,c,d,b,j,H,U,se);w=S(Y,ae),Q=M(Y,ae),I=v(Y,0,ie,0,W),c=m(0,ae,0,pe,0,F);var he=u(w,Q,I,c),_e=p(w,Q,I,c);O=z,N=G,z=A,G=T,A=re,T=X,re=u(q,J,le,oe),X=p(J,J,le,oe),q=W,J=F,W=ie,F=pe,ie=Y,pe=ae,Y=u(le,oe,he,_e),ae=p(le,oe,he,_e)}o(this.h,0,Y,ae),o(this.h,2,ie,pe),o(this.h,4,W,F),o(this.h,6,q,J),o(this.h,8,re,X),o(this.h,10,A,T),o(this.h,12,z,G),o(this.h,14,O,N)},D.prototype._digest=function(E){return"hex"===E?i.toHex32(this.h,"big"):i.split32(this.h,"big")},Xr}var Wo,Kr,qo,Ko,qr={};const Cp=Jn(function xp(){return Ko||(Ko=1,(n=Ur).utils=it(),n.common=Kt(),n.sha=function wp(){return Xo||(Xo=1,Tt.sha1=function gp(){if(Bo)return Yr;Bo=1;var i=it(),n=Kt(),t=Go(),s=i.rotl32,r=i.sum32,a=i.sum32_5,l=t.ft_1,o=n.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return i.inherits(p,o),Yr=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(g,C){for(var f=this.W,x=0;x<16;x++)f[x]=g[C+x];for(;x<f.length;x++)f[x]=s(f[x-3]^f[x-8]^f[x-14]^f[x-16],1);var y=this.h[0],D=this.h[1],h=this.h[2],k=this.h[3],v=this.h[4];for(x=0;x<f.length;x++){var m=~~(x/20),S=a(s(y,5),l(m,D,h,k),v,f[x],u[m]);v=k,k=h,h=s(D,30),D=y,y=S}this.h[0]=r(this.h[0],y),this.h[1]=r(this.h[1],D),this.h[2]=r(this.h[2],h),this.h[3]=r(this.h[3],k),this.h[4]=r(this.h[4],v)},p.prototype._digest=function(g){return"hex"===g?i.toHex32(this.h,"big"):i.split32(this.h,"big")},Yr}(),Tt.sha224=function _p(){if(zo)return Vr;zo=1;var i=it(),n=$o();function t(){if(!(this instanceof t))return new t;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return i.inherits(t,n),Vr=t,t.blockSize=512,t.outSize=224,t.hmacStrength=192,t.padLength=64,t.prototype._digest=function(r){return"hex"===r?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")},Vr}(),Tt.sha256=$o(),Tt.sha384=function vp(){if(Vo)return Wr;Vo=1;var i=it(),n=Ho();function t(){if(!(this instanceof t))return new t;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return i.inherits(t,n),Wr=t,t.blockSize=1024,t.outSize=384,t.hmacStrength=192,t.padLength=128,t.prototype._digest=function(r){return"hex"===r?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")},Wr}(),Tt.sha512=Ho()),Tt}(),n.ripemd=function bp(){if(Wo)return qr;Wo=1;var i=it(),n=Kt(),t=i.rotl32,s=i.sum32,r=i.sum32_3,a=i.sum32_4,l=n.BlockHash;function o(){if(!(this instanceof o))return new o;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(y,D,h,k){return y<=15?D^h^k:y<=31?D&h|~D&k:y<=47?(D|~h)^k:y<=63?D&k|h&~k:D^(h|~k)}function _(y){return y<=15?1352829926:y<=31?1548603684:y<=47?1836072691:y<=63?2053994217:0}i.inherits(o,l),qr.ripemd160=o,o.blockSize=512,o.outSize=160,o.hmacStrength=192,o.padLength=64,o.prototype._update=function(D,h){for(var k=this.h[0],v=this.h[1],m=this.h[2],S=this.h[3],M=this.h[4],L=k,$=v,R=m,Z=S,ce=M,P=0;P<80;P++){var B=s(t(a(k,u(P,v,m,S),D[g[P]+h],(y=P)<=15?0:y<=31?1518500249:y<=47?1859775393:y<=63?2400959708:2840853838),f[P]),M);k=M,M=S,S=t(m,10),m=v,v=B,B=s(t(a(L,u(79-P,$,R,Z),D[C[P]+h],_(P)),x[P]),ce),L=ce,ce=Z,Z=t(R,10),R=$,$=B}var y;B=r(this.h[1],m,Z),this.h[1]=r(this.h[2],S,ce),this.h[2]=r(this.h[3],M,L),this.h[3]=r(this.h[4],k,$),this.h[4]=r(this.h[0],v,R),this.h[0]=B},o.prototype._digest=function(D){return"hex"===D?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var g=[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],C=[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],f=[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],x=[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];return qr}(),n.hmac=function yp(){if(qo)return Kr;qo=1;var i=it(),n=qt();function t(s,r,a){if(!(this instanceof t))return new t(s,r,a);this.Hash=s,this.blockSize=s.blockSize/8,this.outSize=s.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(r,a))}return Kr=t,t.prototype._init=function(r){r.length>this.blockSize&&(r=(new this.Hash).update(r).digest()),n(r.length<=this.blockSize);for(var a=r.length;a<this.blockSize;a++)r.push(0);for(a=0;a<r.length;a++)r[a]^=54;for(this.inner=(new this.Hash).update(r),a=0;a<r.length;a++)r[a]^=106;this.outer=(new this.Hash).update(r)},t.prototype.update=function(r,a){return this.inner.update(r,a),this},t.prototype.digest=function(r){return this.outer.update(this.inner.digest()),this.outer.digest(r)},Kr}(),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160),Ur;var n}()),Ke=i=>Math.floor(72*i*20),Rn=(i=0)=>{let n=i;return()=>++n},Zo=i=>Cp.sha1().update(i instanceof ArrayBuffer?new Uint8Array(i):i).digest("hex"),Zt=i=>((i,n=21)=>(t=n)=>{let s="",r=0|t;for(;r--;)s+=i[Math.random()*i.length|0];return s})("1234567890abcdef",i)(),Jo=i=>new we({name:"wp:align",children:[i]}),Qo=i=>new we({name:"wp:posOffset",children:[i.toString()]});
1class jp extends me{constructor(){super(...arguments),te(this,"xmlKeys",{uri:"uri"})}}const Gp=i=>new we({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${i.fileName}}`}}}),Bp=i=>new we({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[Gp(i)]}),Up=i=>new we({name:"a:extLst",children:[Bp(i)]});class zp extends K{constructor(){super("a:srcRect")}}class Yp extends K{constructor(){super("a:fillRect")}}class Hp extends K{constructor(){super("a:stretch"),this.root.push(new Yp)}}class Vp extends K{constructor(n){var i;super("pic:blipFill"),this.root.push(new we({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${"svg"===(i=n).type?i.fallback.fileName:i.fileName}}`},cstate:{key:"cstate",value:"none"}},children:"svg"===i.type?[Up(i)]:[]})),this.root.push(new zp),this.root.push(new Hp)}}class Xp extends me{constructor(){super(...arguments),te(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class Wp extends K{constructor(){super("a:picLocks"),this.root.push(new Xp({noChangeAspect:1,noChangeArrowheads:1}))}}class qp extends K{constructor(){super("pic:cNvPicPr"),this.root.push(new Wp)}}const el=(i,n)=>new we({name:"a:hlinkClick",attributes:Me(be({},n?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${i}`}})});class Kp extends me{constructor(){super(...arguments),te(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class Zp extends K{constructor(){super("pic:cNvPr"),this.root.push(new Kp({id:0,name:"",descr:""}))}prepForXml(n){for(let t=n.stack.length-1;t>=0;t--){const s=n.stack[t];if(s instanceof Jt){this.root.push(el(s.linkId,!1));break}}return super.prepForXml(n)}}class Jp extends K{constructor(){super("pic:nvPicPr"),this.root.push(new Zp),this.root.push(new qp)}}class Qp extends me{constructor(){super(...arguments),te(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class eh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class th extends K{constructor(n,t){super("a:ext"),te(this,"attributes"),this.attributes=new eh({cx:n,cy:t}),this.root.push(this.attributes)}}class nh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{x:"x",y:"y"})}}class ih extends K{constructor(){super("a:off"),this.root.push(new nh({x:0,y:0}))}}class rh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class sh extends K{constructor(n){var t,s;super("a:xfrm"),te(this,"extents"),this.root.push(new rh({flipVertical:null==(t=n.flip)?void 0:t.vertical,flipHorizontal:null==(s=n.flip)?void 0:s.horizontal,rotation:n.rotation})),this.extents=new th(n.emus.x,n.emus.y),this.root.push(new ih),this.root.push(this.extents)}}const tl=()=>new we({name:"a:noFill"}),ah=i=>new we({name:"a:srgbClr",attributes:{value:{key:"val",value:i.value}}}),oh=i=>new we({name:"a:schemeClr",attributes:{value:{key:"val",value:i.value}}}),nl=i=>new we({name:"a:solidFill",children:["rgb"===i.type?ah(i):oh(i)]});class ch extends K{constructor(){super("a:avLst")}}class dh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{prst:"prst"})}}class uh extends K{constructor(){super("a:prstGeom"),this.root.push(new dh({prst:"rect"})),this.root.push(new ch)}}class ph extends me{constructor(){super(...arguments),te(this,"xmlKeys",{bwMode:"bwMode"})}}class hh extends K{constructor({outline:n,transform:t}){var i;super("pic:spPr"),te(this,"form"),this.root.push(new ph({bwMode:"auto"})),this.form=new sh(t),this.root.push(this.form),this.root.push(new uh),n&&(this.root.push(tl()),this.root.push(new we({name:"a:ln",attributes:{width:{key:"w",value:(i=n).width},cap:{key:"cap",value:i.cap},compoundLine:{key:"cmpd",value:i.compoundLine},align:{key:"algn",value:i.align}},children:["noFill"===i.type?tl():nl("rgb"===i.solidFillType?{type:"rgb",value:i.value}:{type:"scheme",value:i.value})]})))}}class fh extends K{constructor({mediaData:n,transform:t,outline:s}){super("pic:pic"),this.root.push(new Qp({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new Jp),this.root.push(new Vp(n)),this.root.push(new hh({transform:t,outline:s}))}}class mh extends K{constructor({mediaData:n,transform:t,outline:s}){super("a:graphicData"),te(this,"pic"),this.root.push(new jp({ur
1i:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new fh({mediaData:n,transform:t,outline:s}),this.root.push(this.pic)}}class gh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{a:"xmlns:a"})}}class il extends K{constructor({mediaData:n,transform:t,outline:s}){super("a:graphic"),te(this,"data"),this.root.push(new gh({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new mh({mediaData:n,transform:t,outline:s}),this.root.push(this.data)}}class rl extends K{constructor(){super("wp:wrapNone")}}class vh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class wh extends K{constructor(n,t={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new vh({wrapText:n.side||"bothSides",distT:t.top,distB:t.bottom,distL:t.left,distR:t.right}))}}class bh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class yh extends K{constructor(n={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new bh({distT:n.top,distB:n.bottom}))}}class xh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class kh extends K{constructor(n={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new xh({distT:n.top,distB:n.bottom}))}}class sl extends K{constructor({name:n,description:t,title:s}={name:"",description:"",title:""}){super("wp:docPr"),te(this,"docPropertiesUniqueNumericId",Rn());const r={id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:n}};null!=t&&(r.description={key:"descr",value:t}),null!=s&&(r.title={key:"title",value:s}),this.root.push(new We(r))}prepForXml(n){for(let t=n.stack.length-1;t>=0;t--){const s=n.stack[t];if(s instanceof Jt){this.root.push(el(s.linkId,!0));break}}return super.prepForXml(n)}}const al=({top:i,right:n,bottom:t,left:s})=>new we({name:"wp:effectExtent",attributes:{top:{key:"t",value:i},right:{key:"r",value:n},bottom:{key:"b",value:t},left:{key:"l",value:s}}}),ol=({x:i,y:n})=>new we({name:"wp:extent",attributes:{x:{key:"cx",value:i},y:{key:"cy",value:n}}});class Ch extends me{constructor(){super(...arguments),te(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class Eh extends K{constructor(){super("a:graphicFrameLocks"),this.root.push(new Ch({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}const ll=()=>new we({name:"wp:cNvGraphicFramePr",children:[new Eh]});class Th extends me{constructor(){super(...arguments),te(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class Ah extends K{constructor({mediaData:n,transform:t,drawingOptions:s}){super("wp:anchor");const r=be({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},s.floating);if(this.root.push(new Th({distT:r.margins&&r.margins.top||0,distB:r.margins&&r.margins.bottom||0,distL:r.margins&&r.margins.left||0,distR:r.margins&&r.margins.right||0,simplePos:"0",allowOverlap:!0===r.allowOverlap?"1":"0",behindDoc:!0===r.behindDocument?"1":"0",locked:!0===r.lockAnchor?"1":"0",layoutInCell:!0===r.layoutInCell?"1":"0",relativeHeight:r.zIndex?r.zIndex:t.emus.y})),this.root.push(new we({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}})),this.root.push((({relative:i,align:n,offset:t})=>new we({name:"wp:positionH",attributes:{relativeFrom:{key:"relativeFrom",value:i??"page"}},children:[(()=>{if(n)return Jo(n);if(void 0!==t)return Qo(t);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]}))(r.horizontalPosition)),this.root.push((({relative:i,align:n,offset:t})=>new we({name:"wp:positionV",attributes:{relativeFrom:{key:"relativeFrom",value:i??"page"}},children:[(()=>{if(n)return Jo(n);if(void 0!==t)return Qo(t);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]}))(r.verticalPosition)),this.root.push(ol({x:t.emus.x,y:t.emus.y}
1)),this.root.push(al({top:0,right:0,bottom:0,left:0})),void 0!==s.floating&&void 0!==s.floating.wrap)switch(s.floating.wrap.type){case 1:this.root.push(new wh(s.floating.wrap,s.floating.margins));break;case 2:this.root.push(new yh(s.floating.margins));break;case 3:this.root.push(new kh(s.floating.margins));break;default:this.root.push(new rl)}else this.root.push(new rl);this.root.push(new sl(s.docProperties)),this.root.push(ll()),this.root.push(new il({mediaData:n,transform:t,outline:s.outline}))}}class Sh extends K{constructor(n,t={}){super("w:drawing"),this.root.push(t.floating?new Ah({mediaData:n,transform:n.transformation,drawingOptions:t}):(({mediaData:i,transform:n,docProperties:t,outline:s})=>{var r,a,l,o;return new we({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[ol({x:n.emus.x,y:n.emus.y}),al(s?{top:2*(null!=(r=s.width)?r:9525),right:2*(null!=(a=s.width)?a:9525),bottom:2*(null!=(l=s.width)?l:9525),left:2*(null!=(o=s.width)?o:9525)}:{top:0,right:0,bottom:0,left:0}),new sl(t),ll(),new il({mediaData:i,transform:n,outline:s})]})})({mediaData:n,transform:n.transformation,docProperties:t.docProperties,outline:t.outline}))}}const Rh=i=>"string"==typeof i?(i=>{if("function"==typeof atob){const n=";base64,",t=i.indexOf(n);return new Uint8Array(atob(i.substring(-1===t?0:t+n.length)).split("").map(r=>r.charCodeAt(0)))}return new(require("buffer").Buffer)(i,"base64")})(i):i,Zr=(i,n)=>({data:Rh(i.data),fileName:n,transformation:{pixels:{x:Math.round(i.transformation.width),y:Math.round(i.transformation.height)},emus:{x:Math.round(9525*i.transformation.width),y:Math.round(9525*i.transformation.height)},flip:i.transformation.flip,rotation:i.transformation.rotation?6e4*i.transformation.rotation:void 0}});class Ph extends He{constructor(n){super({}),te(this,"imageData");const s=`${Zo(n.data)}.${n.type}`;this.imageData="svg"===n.type?Me(be({type:n.type},Zr(n,s)),{fallback:be({type:n.fallback.type},Zr(Me(be({},n.fallback),{transformation:n.transformation}),`${Zo(n.fallback.data)}.${n.fallback.type}`))}):be({type:n.type},Zr(n,s));const r=new Sh(this.imageData,{floating:n.floating,docProperties:n.altText,outline:n.outline});this.root.push(r)}prepForXml(n){return n.file.Media.addImage(this.imageData.fileName,this.imageData),"svg"===this.imageData.type&&n.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(n)}}class Mh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{xmlns:"xmlns"})}}class Lh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}class jh extends K{constructor(n,t,s,r){super("Relationship"),this.root.push(new Lh({id:n,type:t,target:s,targetMode:r}))}}class At extends K{constructor(){super("Relationships"),this.root.push(new Mh({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(n,t,s,r){const a=new jh(`rId${n}`,t,s,r);return this.root.push(a),a}get RelationshipCount(){return this.root.length-1}}class Gh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class Bh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class Uh extends K{constructor({id:n,initials:t,author:s,date:r=new Date,children:a}){super("w:comment"),this.root.push(new Gh({id:n,initials:t,author:s,date:r.toISOString()}));for(const l of a)this.root.push(l)}}class $h extends K{constructor({children:n}){super("w:comments"),te(this,"relationships"),this.root.push(new Bh({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const t of n)this.root.push(new Uh(t));this.relationships=new At}get Relationships(){return this.relationships}}class zh extends K{constructor(){super("w:pageBreakBefore")}}class Yh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutospacing"})}}class Hh extends K{constructor(n){super("w:spacing"),this.root.push(new Yh(n))}}let Fn=class extends K{constructor(n){super("w:pStyle"),this.root.push(new Ie({val:n}))}};class Vh extends K{constructor(n){super("w:tabs");for(const t of n)this.root.push(new Wh(t))}}class Xh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class Wh extends K{constructor({type:n,position:t,leader:s}){super("w:tab"),this.root.push(new Xh({val:n,pos:t,leader:s}))}}class es extends K{constructor(n,t){super("w:numPr"),this.root.push(new qh(t)),this.root.push(new Kh(n))}}class qh extends K{constructor(n){if(super("w:ilvl"),n>
19)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ie({val:n}))}}class Kh extends K{constructor(n){super("w:numId"),this.root.push(new Ie({val:"string"==typeof n?`{${n}}`:n}))}}class Nn extends K{constructor(){super(...arguments),te(this,"fileChild",Symbol())}}class Zh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class Jt extends K{constructor(n,t,s){super("w:hyperlink"),te(this,"linkId"),this.linkId=t;const a=new Zh({history:1,anchor:s||void 0,id:s?void 0:`rId${this.linkId}`});this.root.push(a),n.forEach(l=>{this.root.push(l)})}}class hl extends K{constructor(n){super("w:externalHyperlink"),this.options=n}}class Jh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class Qh extends me{constructor(){super(...arguments),te(this,"xmlKeys",{id:"w:id"})}}class ef{constructor(n){te(this,"bookmarkUniqueNumericId",Rn()),te(this,"start"),te(this,"children"),te(this,"end");const t=this.bookmarkUniqueNumericId();this.start=new tf(n.id,t),this.children=n.children,this.end=new nf(t)}}class tf extends K{constructor(n,t){super("w:bookmarkStart");const s=new Jh({name:n,id:t});this.root.push(s)}}class nf extends K{constructor(n){super("w:bookmarkEnd");const t=new Qh({id:n});this.root.push(t)}}class rf extends K{constructor(n){super("w:outlineLvl"),this.level=n,this.root.push(new Ie({val:n}))}}Me(be({},{TOP:"top",CENTER:"center",BOTTOM:"bottom"}),{BOTH:"both"});class af extends me{constructor(){super(...arguments),te(this,"xmlKeys",{verticalAlign:"w:val"})}}class fl extends K{constructor(n){super("w:vAlign"),this.root.push(new af({verticalAlign:n}))}}class of extends K{constructor({space:n,count:t,separate:s,equalWidth:r,children:a}){super("w:cols"),this.root.push(new We({space:{key:"w:space",value:void 0===n?void 0:Re(n)},count:{key:"w:num",value:void 0===t?void 0:Oe(t)},separate:{key:"w:sep",value:s},equalWidth:{key:"w:equalWidth",value:r}})),!r&&a&&a.forEach(l=>this.addChildElement(l))}}class cf extends me{constructor(){super(...arguments),te(this,"xmlKeys",{type:"w:type",id:"r:id"})}}class ts extends K{constructor(n,t){super(n),this.root.push(new cf({type:t.type||"default",id:`rId${t.id}`}))}}class gl extends me{constructor(){super(...arguments),te(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class uf extends lt{constructor(n){if(super("w:pgBorders"),!n)return this;this.root.push(new gl(n.pageBorders?{display:n.pageBorders.display,offsetFrom:n.pageBorders.offsetFrom,zOrder:n.pageBorders.zOrder}:{})),n.pageBorderTop&&this.root.push(new Ce("w:top",n.pageBorderTop)),n.pageBorderLeft&&this.root.push(new Ce("w:left",n.pageBorderLeft)),n.pageBorderBottom&&this.root.push(new Ce("w:bottom",n.pageBorderBottom)),n.pageBorderRight&&this.root.push(new Ce("w:right",n.pageBorderRight))}}class pf extends K{constructor(n,t,s,r,a,l,o){super("w:pgMar"),this.root.push(new We({top:{key:"w:top",value:ut(n)},right:{key:"w:right",value:Re(t)},bottom:{key:"w:bottom",value:ut(s)},left:{key:"w:left",value:Re(r)},header:{key:"w:header",value:Re(a)},footer:{key:"w:footer",value:Re(l)},gutter:{key:"w:gutter",value:Re(o)}}))}}class hf extends me{constructor(){super(...arguments),te(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class ff extends K{constructor({start:n,formatType:t,separator:s}){super("w:pgNumType"),this.root.push(new hf({start:void 0===n?void 0:Oe(n),formatType:t,separator:s}))}}class gf extends me{constructor(){super(...arguments),te(this,"xmlKeys",{val:"w:val"})}}class _f extends K{constructor(n){super("w:textDirection"),this.root.push(new gf({val:n}))}}class vf extends me{constructor(){super(...arguments),te(this,"xmlKeys",{val:"w:val"})}}class wf extends K{constructor(n){super("w:type"),this.root.push(new vf({val:n}))}}class bf extends K{constructor({page:{size:{width:n=11906,height:t=16838,orientation:s="portrait"}={},margin:{top:r=1440,right:a=1440,bottom:l=1440,left:o=1440,header:u=708,footer:p=708,gutter:_=0}={},pageNumbers:g={},borders:C,textDirection:f}={},grid:{linePitch:x=360,charSpace:y,type:D}={},headerWrapperGroup:h={},footerWrapperGroup:k={},lineNumbers:v,titlePage:m,verticalAlign:S,column:M,type:L}={}){super("w:sectPr"),this.addHeaderFooterGroup("w:headerReference",h),this.addHeaderFooterGroup("w:footerReference",k),L&&this.root.push(new wf(L)),this.root.push((({width:i,height:n,orientation:t,code:s})=>{const r=Re(i),a=Re(n);return new we({name:"w:pgSz",attributes:{width:{key:"w:w",value:"landscape"===t?a:r},height:{key:"w:h",value:"landscape"===t?r:a},orientation:{key:"w:orient",value:t},code:{key:"w:code",value:s}}})})({width:n,height:t,orientation:s})),this.root.push(new pf(r,a,l,o,u,p,_)),C&&this.root.push(new uf(C)),v&&this.root.push((({countBy:i,start:n,restart:t,distance:s})=>new we({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:void 0===i?void 0:Oe(i)},start:{key:"w:start",value:void 0===n?void 0:Oe(n)},restart:{key:"w:restart",value:t},distance:{key:"w:distance",value:void 0===s?void 0:Re(s)}}}))(v)),this.root.push(new ff(g)),M&&this.root.push(new of(M)),S&&this.root.push(new fl(S)),void 0!==m&&this.root.push(new de("w:titlePg",m)),f&&this.root.push(new _f(f)),this.root.push((({type:i,linePitch:n,charSpace:t})=>new we({name:"w:docGrid",attributes:{type:{key:"w:type",value:i},linePitch:{key:"w:linePitch",value:Oe(n)},charSpace:{key:"w:charSpace",value:t?Oe(t):void 0}}}))({linePitch:x,charSpace:y,type:D}))}addHeaderFooterGroup(n,t){t.default&&this.root.push(new ts(n,{type:"default",id:t.default.View.ReferenceId})),t.first&&this.root.push(new ts(n,{type:"first",id:t.first.View.ReferenceId})),t.even&&this.root.push(new ts(n,{type:"even",id:t.even.View.ReferenceId}))}}class yf extends K{constructor(){super("w:body"),te(this,"sections",[])}addSection(n){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new bf(n))}
1prepForXml(n){return 1===this.sections.length&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(n)}push(n){this.root.push(n)}createSectionParagraph(n){const t=new Ge({}),s=new St({});return s.push(n),t.addChildElement(s),t}}const rs={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"};class Mn extends me{constructor(n,t){super(be({Ignorable:t},Object.fromEntries(n.map(s=>[s,rs[s]])))),te(this,"xmlKeys",be({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(rs).map(s=>[s,`xmlns:${s}`]))))}}class xf extends me{constructor(){super(...arguments),te(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class kf extends K{constructor(n){super("w:background"),this.root.push(new xf({color:void 0===n.color?void 0:Mt(n.color),themeColor:n.themeColor,themeShade:void 0===n.themeShade?void 0:Co(n.themeShade),themeTint:void 0===n.themeTint?void 0:Co(n.themeTint)}))}}class Cf extends K{constructor(n){super("w:document"),te(this,"body"),this.root.push(new Mn(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new yf,n.background&&this.root.push(new kf(n.background)),this.root.push(this.body)}add(n){return this.body.push(n),this}get Body(){return this.body}}class _l{constructor(n){te(this,"document"),te(this,"relationships"),this.document=new Cf(n),this.relationships=new At}get View(){return this.document}get Relationships(){return this.relationships}}class Ef extends me{constructor(){super(...arguments),te(this,"xmlKeys",{val:"w:val"})}}class Tf extends K{constructor(){super("w:wordWrap"),this.root.push(new Ef({val:0}))}}class St extends lt{constructor(n){var t,s;if(super("w:pPr"),te(this,"numberingReferences",[]),!n)return this;n.heading&&this.push(new Fn(n.heading)),n.bullet&&this.push(new Fn("ListParagraph")),n.numbering&&!n.style&&!n.heading&&(n.numbering.custom||this.push(new Fn("ListParagraph"))),n.style&&this.push(new Fn(n.style)),void 0!==n.keepNext&&this.push(new de("w:keepNext",n.keepNext)),void 0!==n.keepLines&&this.push(new de("w:keepLines",n.keepLines)),n.pageBreakBefore&&this.push(new zh),n.frame&&this.push((i=>{var n,t;return new we({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:i.anch
1orLock},dropCap:{key:"w:dropCap",value:i.dropCap},width:{key:"w:w",value:i.width},height:{key:"w:h",value:i.height},x:{key:"w:x",value:i.position?i.position.x:void 0},y:{key:"w:y",value:i.position?i.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:i.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:i.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:null==(n=i.space)?void 0:n.horizontal},spaceVertical:{key:"w:vSpace",value:null==(t=i.space)?void 0:t.vertical},rule:{key:"w:hRule",value:i.rule},alignmentX:{key:"w:xAlign",value:i.alignment?i.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:i.alignment?i.alignment.y:void 0},lines:{key:"w:lines",value:i.lines},wrap:{key:"w:wrap",value:i.wrap}}})})(n.frame)),void 0!==n.widowControl&&this.push(new de("w:widowControl",n.widowControl)),n.bullet&&this.push(new es(1,n.bullet.level)),n.numbering?(this.numberingReferences.push({reference:n.numbering.reference,instance:null!=(t=n.numbering.instance)?t:0}),this.push(new es(`${n.numbering.reference}-${null!=(s=n.numbering.instance)?s:0}`,n.numbering.level))):!1===n.numbering&&this.push(new es(0,0)),n.border&&this.push(new Ku(n.border)),n.thematicBreak&&this.push(new Zu),n.shading&&this.push(new Dn(n.shading)),n.wordWrap&&this.push(new Tf),n.overflowPunctuation&&this.push(new de("w:overflowPunct",n.overflowPunctuation));const r=[...void 0!==n.rightTabStop?[{type:"right",position:n.rightTabStop}]:[],...n.tabStops?n.tabStops:[],...void 0!==n.leftTabStop?[{type:"left",position:n.leftTabStop}]:[]];r.length>0&&this.push(new Vh(r)),void 0!==n.bidirectional&&this.push(new de("w:bidi",n.bidirectional)),n.spacing&&this.push(new Hh(n.spacing)),n.indent&&this.push(new Ju(n.indent)),void 0!==n.contextualSpacing&&this.push(new de("w:contextualSpacing",n.contextualSpacing)),n.alignment&&this.push(new Ao(n.alignment)),void 0!==n.outlineLevel&&this.push(new rf(n.outlineLevel)),void 0!==n.suppressLineNumbers&&this.push(new de("w:suppressLineNumbers",n.suppressLineNumbers)),void 0!==n.autoSpaceEastAsianText&&this.push(new de("w:autoSpaceDN",n.autoSpaceEastAsianText)),n.run&&this.push(new bt(n.run))}push(n){this.root.push(n)}prepForXml(n){if(n.viewWrapper instanceof _l)for(const t of this.numberingReferences)n.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(n)}}class Ge extends Nn{constructor(n){if(super("w:p"),te(this,"properties"),"string"==typeof n)return this.properties=new St({}),this.root.push(this.properties),this.root.push(new qe(n)),this;if(this.properties=new St(n),this.root.push(this.properties),n.text&&this.root.push(new qe(n.text)),n.children)for(const t of n.children)if(t instanceof ef){this.root.push(t.start);for(const s of t.children)this.root.push(s);this.root.push(t.end)}else this.root.push(t)}prepForXml(n){for(const t of this.root)if(t instanceof hl){const s=this.root.indexOf(t),r=new Jt(t.options.children,((i=21)=>{let n="",t=0|i;for(;t--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return n})().toLowerCase());n.viewWrapper.Relationships.createRelationship(r.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,"External"),this.root[s]=r}return super.prepForXml(n)}addRunToFront(n){return this.root.splice(1,0,n),this}}const jt={style:"none",size:0,color:"auto"},Gt={style:"single",size:4,color:"auto"};te(class El extends K{constructor(n){super("w:tblBorders"),this.root.push(new Ce("w:top",n.top?n.top:Gt)),this.root.push(new Ce("w:left",n.left?n.left:Gt)),this.root.push(new Ce("w:bottom",n.bottom?n.bottom:Gt)),this.root.push(new Ce("w:right",n.right?n.right:Gt)),this.root.push(new Ce("w:insideH",n.insideHorizontal?n.insideHorizontal:Gt)),this.root.push(new Ce("w:insideV",n.insideVertical?n.insideVertical:Gt))}},"NONE",{top:jt,bottom:jt,left:jt,right:jt,insideHorizontal:jt,insideVertical:jt});class dm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class um extends K{constructor(){super("Properties"),this.root.push(new dm({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class pm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{xmlns:"xmlns"})}}class hm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class ht extends K{constructor(n,t){super("Default"),this.root.push(new hm({contentType:n,extension:t}))}}class fm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class Xe extends K{constructor(n,t){super("Override"),this.root.push(new fm({contentType:n,partName:t}))}}class mm extends K{constructor(){super("Types"),this.root.push(new pm({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new ht("image/png","png")),this.root.push(new ht("image/jpeg","jpeg")),this.root.push(new ht("image/jpeg","jpg")),this.root.push(new ht("image/bmp","bmp")),this.root.push(new ht("image/gif","gif")),this.root.push(new ht("image/svg+xml","svg")),this.root.push(new ht("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new ht("application/xml","xml")),this.root.push(new ht("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new Xe("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Xe("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Xe("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Xe("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Xe("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Xe("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Xe("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Xe("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Xe("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new Xe("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(n){this.root.push(new Xe("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${n}.xml`))}addHeader(n){this.root.push(new Xe("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${n}.xml`))}}class gm extends K{constructor(n){super("cp:coreProperties"),this.root.push(new Mn(["cp","dc","dcterms","dcmitype","xsi"])),n.title&&this.root.push(new Ct("dc:title",n.title)),n.subject&&this.root.push(new Ct("dc:subject",n.subject)),n.creator&&this.root.push(new Ct("dc:creator",n.creator)),n.keywords&&this.root.push(new Ct("cp:keywords",n.keywords)),n.description&&this.root.push(new Ct("dc:description",n.description)),n.lastModifiedBy&&this.root.push(new Ct("cp:lastModifiedBy",n.lastModifiedBy)),n.revision&&this.root.push(new Ct("cp:revision",String(n.revision))),this.root.push(new Al("dcterms:created")),this.root.push(new Al("dcterms:modified"))}}class _m extends me{constructor(){super(...arguments),te(this,"xmlKeys",{type:"xsi:type"})}}class Al extends K{constructor(n){super(n),this.root.push(new _m({type:"dcterms:W3CDTF"})),this.root.push((new Date).toISOString())}}class vm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class wm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class bm extends K{constructor(n,t){super("property"),this.root.push(new wm({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n.toString(),name:t.name})),this.root.push(new ym(t.value))}}class ym extends K{constructor(n){super("vt:lpwstr"),this.root.push(n)}}class xm extends K{constructor(n){super("Properties"),te(this,"nextId"),te(this,"properties",[]),this.root.push(new vm({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;
1for(const t of n)this.addCustomProperty(t)}prepForXml(n){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(n)}addCustomProperty(n){this.properties.push(new bm(this.nextId++,n))}}const jn=({id:i,fontKey:n,subsetted:t},s)=>new we({name:s,attributes:be({id:{key:"r:id",value:i}},n?{fontKey:{key:"w:fontKey",value:`{${n}}`}}:{}),children:[...t?[new de("w:subsetted",t)]:[]]});class Tm{constructor(n){te(this,"fontTable"),te(this,"relationships"),te(this,"fontOptionsWithKey",[]),this.options=n,this.fontOptionsWithKey=n.map(t=>Me(be({},t),{fontKey:`${Zt(8)}-${Zt(4)}-${Zt(4)}-${Zt(4)}-${Zt(12)}`})),this.fontTable=new we({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:this.fontOptionsWithKey.map((n,t)=>(({name:i,index:n,fontKey:t,characterSet:s})=>(({name:i,altName:n,panose1:t,charset:s,family:r,notTrueType:a,pitch:l,sig:o,embedRegular:u,embedBold:p,embedItalic:_,embedBoldItalic:g})=>new we({name:"w:font",attributes:{name:{key:"w:name",value:i}},children:[...n?[Xt("w:altName",n)]:[],...t?[Xt("w:panose1",t)]:[],...s?[Xt("w:charset",s)]:[],Xt("w:family",r),...a?[new de("w:notTrueType",a)]:[],Xt("w:pitch",l),...o?[new we({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:o.usb0},usb1:{key:"w:usb1",value:o.usb1},usb2:{key:"w:usb2",value:o.usb2},usb3:{key:"w:usb3",value:o.usb3},csb0:{key:"w:csb0",value:o.csb0},csb1:{key:"w:csb1",value:o.csb1}}})]:[],...u?[jn(u,"w:embedRegular")]:[],...p?[jn(p,"w:embedBold")]:[],..._?[jn(_,"w:embedItalic")]:[],...g?[jn(g,"w:embedBoldItalic")]:[]]}))({name:i,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:s,family:"auto",pitch:"variable",embedRegular:{fontKey:t,id:`rId${n}`}}))({name:n.name,index:t+1,fontKey:n.fontKey}))}),this.relationships=new At;for(let t=0;t<n.length;t++)this.relationships.createRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${n[t].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class Am extends me{constructor(){super(...arguments),te(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let Im=class extends ko{constructor(n,t){super("w:ftr",t),te(this,"refId"),this.refId=n,t||this.root.push(new Am({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(n){this.root.push(n)}};class Sm{constructor(n,t,s){te(this,"footer"),te(this,"relationships"),this.media=n,this.footer=new Im(t,s),this.relationships=new At}add(n){this.footer.add(n)}addChildElement(n){this.footer.addChildElement(n)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class Dm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class Rm extends K{constructor(){super("w:footnoteRef")}}class Pm extends He{constructor(){super({style:"FootnoteReference"}),this.root.push(new Rm)}}class as extends K{constructor(n){super("w:footnote"),this.root.push(new Dm({type:n.type,id:n.id}));for(let t=0;t<n.children.length;t++){const s=n.children[t];0===t&&s.addRunToFront(new Pm),this.root.push(s)}}}class Om extends K{constructor(){super("w:continuationSeparator")}}class Fm extends He{constructor(){super({}),this.root.push(new Om)}}class Nm extends K{constructor(){super("w:separator")}}class Mm extends He{constructor(){super({}),this.root.push(new Nm)}}class Lm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class jm extends K{constructor(){super("w:footnotes"),this.root.push(new Lm({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const n=new as({id:-1,type:"separator",children:[new Ge({spacing:{after:0,line:240,lineRule:"auto"},children:[new Mm]})]});this.root.push(n);
1const t=new as({id:0,type:"continuationSeparator",children:[new Ge({spacing:{after:0,line:240,lineRule:"auto"},children:[new Fm]})]});this.root.push(t)}createFootNote(n,t){const s=new as({id:n,children:t});this.root.push(s)}}class Gm{constructor(){te(this,"footnotess"),te(this,"relationships"),this.footnotess=new jm,this.relationships=new At}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Bm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let Um=class extends ko{constructor(n,t){super("w:hdr",t),te(this,"refId"),this.refId=n,t||this.root.push(new Bm({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(n){this.root.push(n)}};class $m{constructor(n,t,s){te(this,"header"),te(this,"relationships"),this.media=n,this.header=new Um(t,s),this.relationships=new At}add(n){return this.header.add(n),this}addChildElement(n){this.header.addChildElement(n)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class Sl{constructor(){te(this,"map"),this.map=new Map}addImage(n,t){this.map.set(n,t)}get Array(){return Array.from(this.map.values())}}class zm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class Ym extends K{constructor(n){super("w:numFmt"),this.root.push(new Ie({val:n}))}}class Hm extends K{constructor(n){super("w:lvlText"),this.root.push(new Ie({val:n}))}}class Vm extends K{constructor(n){super("w:lvlJc"),this.root.push(new Ie({val:n}))}}class Xm extends K{constructor(n){super("w:suff"),this.root.push(new Ie({val:n}))}}class Wm extends K{constructor(){super("w:isLgl")}}class qm extends K{constructor({level:n,format:t,text:s,alignment:r="start",start:a=1,style:l,suffix:o,isLegalNumberingStyle:u}){if(super("w:lvl"),te(this,"paragraphProperties"),te(this,"runProperties"),this.root.push(new Wt("w:start",Oe(a))),t&&this.root.push(new Ym(t)),o&&this.root.push(new Xm(o)),u&&this.root.push(new Wm),s&&this.root.push(new Hm(s)),this.root.push(new Vm(r)),this.paragraphProperties=new St(l&&l.paragraph),this.runProperties=new bt(l&&l.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),n>
19)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new zm({ilvl:Oe(n),tentative:1}))}}class Km extends qm{}class Zm extends K{constructor(n){super("w:multiLevelType"),this.root.push(new Ie({val:n}))}}class Jm extends me{constructor(){super(...arguments),te(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class Dl extends K{constructor(n,t){super("w:abstractNum"),te(this,"id"),this.root.push(new Jm({abstractNumId:Oe(n),restartNumberingAfterBreak:0})),this.root.push(new Zm("hybridMultilevel")),this.id=n;for(const s of t)this.root.push(new Km(s))}}class Qm extends K{constructor(n){super("w:abstractNumId"),this.root.push(new Ie({val:n}))}}class eg extends me{constructor(){super(...arguments),te(this,"xmlKeys",{numId:"w:numId"})}}class Rl extends K{constructor(n){if(super("w:num"),te(this,"numId"),te(this,"reference"),te(this,"instance"),this.numId=n.numId,this.reference=n.reference,this.instance=n.instance,this.root.push(new eg({numId:Oe(n.numId)})),this.root.push(new Qm(Oe(n.abstractNumId))),n.overrideLevels&&n.overrideLevels.length)for(const t of n.overrideLevels)this.root.push(new ng(t.num,t.start))}}class tg extends me{constructor(){super(...arguments),te(this,"xmlKeys",{ilvl:"w:ilvl"})}}class ng extends K{constructor(n,t){super("w:lvlOverride"),this.root.push(new tg({ilvl:n})),void 0!==t&&this.root.push(new rg(t))}}class ig extends me{constructor(){super(...arguments),te(this,"xmlKeys",{val:"w:val"})}}class rg extends K{constructor(n){super("w:startOverride"),this.root.push(new ig({val:n}))}}class sg extends K{constructor(n){super("w:numbering"),te(this,"abstractNumberingMap",new Map),te(this,"concreteNumberingMap",new Map),te(this,"referenceConfigMap",new Map),te(this,"abstractNumUniqueNumericId",Rn()),te(this,"concreteNumUniqueNumericId",Rn(1)),this.root.push(new Mn(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const t=new Dl(this.abstractNumUniqueNumericId(),[{level:0,format:"bullet",text:"\u25cf",alignment:"left",style:{paragraph:{indent:{left:Ke(.5),hanging:Ke(.25)}}}},{level:1,format:"bullet",text:"\u25cb",alignment:"left",style:{paragraph:{indent:{left:Ke(1),hanging:Ke(.25)}}}},{level:2,format:"bullet",text:"\u25a0",alignment:"left",style:{paragraph:{indent:{left:2160,hanging:Ke(.25)}}}},{level:3,format:"bullet",text:"\u25cf",alignment:"left",style:{paragraph:{indent:{left:2880,hanging:Ke(.25)}}}},{level:4,format:"bullet",text:"\u25cb",alignment:"left",style:{paragraph:{indent:{left:3600,hanging:Ke(.25)}}}},{level:5,format:"bullet",text:"\u25a0",alignment:"left",style:{paragraph:{indent:{left:4320,hanging:Ke(.25)}}}},{level:6,format:"bullet",text:"\u25cf",alignment:"left",style:{paragraph:{indent:{left:5040,hanging:Ke(.25)}}}},{level:7,format:"bullet",text:"\u25cf",alignment:"left",style:{paragraph:{indent:{left:5760,hanging:Ke(.25)}}}},{level:8,format:"bullet",text:"\u25cf",alignment:"left",style:{paragraph:{indent:{left:6480,hanging:Ke(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Rl({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(const s of n.config)this.abstractNumberingMap.set(s.reference,new Dl(this.abstractNumUniqueNumericId(),s.levels)),this.referenceConfigMap.set(s.reference,s.levels)}prepForXml(n){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(n)}createConcreteNumberingInstance(n,t){const s=this.abstractNumberingMap.get(n);if(!s)return;const r=`${n}-${t}`;if(this.concreteNumberingMap.has(r))return;const a=this.referenceConfigMap.get(n),l=a&&a[0].start,o={numId:this.concreteNumUniqueNumericId(),abstractNumId:s.id,reference:n,instance:t,overrideLevels:[l&&Number.isInteger(l)?{num:0,start:l}:{num:0,start:1}]};this.concreteNumberingMap.set(r,new Rl(o))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class ag extends me{constructor(){super(...arguments),te(this,"xmlKeys",{version:"w:val",n
1ame:"w:name",uri:"w:uri"})}}class og extends K{constructor(n){super("w:compatSetting"),this.root.push(new ag({version:n,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class lg extends K{constructor(n){super("w:compat"),n.version&&this.root.push(new og(n.version)),n.useSingleBorderforContiguousCells&&this.root.push(new de("w:useSingleBorderforContiguousCells",n.useSingleBorderforContiguousCells)),n.wordPerfectJustification&&this.root.push(new de("w:wpJustification",n.wordPerfectJustification)),n.noTabStopForHangingIndent&&this.root.push(new de("w:noTabHangInd",n.noTabStopForHangingIndent)),n.noLeading&&this.root.push(new de("w:noLeading",n.noLeading)),n.spaceForUnderline&&this.root.push(new de("w:spaceForUL",n.spaceForUnderline)),n.noColumnBalance&&this.root.push(new de("w:noColumnBalance",n.noColumnBalance)),n.balanceSingleByteDoubleByteWidth&&this.root.push(new de("w:balanceSingleByteDoubleByteWidth",n.balanceSingleByteDoubleByteWidth)),n.noExtraLineSpacing&&this.root.push(new de("w:noExtraLineSpacing",n.noExtraLineSpacing)),n.doNotLeaveBackslashAlone&&this.root.push(new de("w:doNotLeaveBackslashAlone",n.doNotLeaveBackslashAlone)),n.underlineTrailingSpaces&&this.root.push(new de("w:ulTrailSpace",n.underlineTrailingSpaces)),n.doNotExpandShiftReturn&&this.root.push(new de("w:doNotExpandShiftReturn",n.doNotExpandShiftReturn)),n.spacingInWholePoints&&this.root.push(new de("w:spacingInWholePoints",n.spacingInWholePoints)),n.lineWrapLikeWord6&&this.root.push(new de("w:lineWrapLikeWord6",n.lineWrapLikeWord6)),n.printBodyTextBeforeHeader&&this.root.push(new de("w:printBodyTextBeforeHeader",n.printBodyTextBeforeHeader)),n.printColorsBlack&&this.root.push(new de("w:printColBlack",n.printColorsBlack)),n.spaceWidth&&this.root.push(new de("w:wpSpaceWidth",n.spaceWidth)),n.showBreaksInFrames&&this.root.push(new de("w:showBreaksInFrames",n.showBreaksInFrames)),n.subFontBySize&&this.root.push(new de("w:subFontBySize",n.subFontBySize)),n.suppressBottomSpacing&&this.root.push(new de("w:suppressBottomSpacing",n.suppressBottomSpacing)),n.suppressTopSpacing&&this.root.push(new de("w:suppressTopSpacing",n.suppressTopSpacing)),n.suppressSpacingAtTopOfPage&&this.root.push(new de("w:suppressSpacingAtTopOfPage",n.suppressSpacingAtTopOfPage)),n.suppressTopSpacingWP&&this.root.push(new de("w:suppressTopSpacingWP",n.suppressTopSpacingWP)),n.suppressSpBfAfterPgBrk&&this.root.push(new de("w:suppressSpBfAfterPgBrk",n.suppressSpBfAfterPgBrk)),n.swapBordersFacingPages&&this.root.push(new de("w:swapBordersFacingPages",n.swapBordersFacingPages)),n.convertMailMergeEsc&&this.root.push(new de("w:convMailMergeEsc",n.convertMailMergeEsc)),n.truncateFontHeightsLikeWP6&&this.root.push(new de("w:truncateFontHeightsLikeWP6",n.truncateFontHeightsLikeWP6)),n.macWordSmallCaps&&this.root.push(new de("w:mwSmallCaps",n.macWordSmallCaps)),n.usePrinterMetrics&&this.root.push(new de("w:usePrinterMetrics",n.usePrinterMetrics)),n.doNotSuppressParagraphBorders&&this.root.push(new de("w:doNotSuppressParagraphBorders",n.doNotSuppressParagraphBorders)),n.wrapTrailSpaces&&this.root.push(new de("w:wrapTrailSpaces",n.wrapTrailSpaces)),n.footnoteLayoutLikeWW8&&this.root.push(new de("w:footnoteLayoutLikeWW8",n.footnoteLayoutLikeWW8)),n.shapeLayoutLikeWW8&&this.root.push(new de("w:shapeLayoutLikeWW8",n.shapeLayoutLikeWW8)),n.alignTablesRowByRow&&this.root.push(new de("w:alignTablesRowByRow",n.alignTablesRowByRow)),n.forgetLastTabAlignment&&this.root.push(new de("w:forgetLastTabAlignment",n.forgetLastTabAlignment)),n.adjustLineHeightInTable&&this.root.push(new de("w:adjustLineHeightInTable",n.adjustLineHeightInTable)),n.autoSpaceLikeWord95&&this.root.push(new de("w:autoSpaceLikeWord95",n.autoSpaceLikeWord95)),n.noSpaceRaiseLower&&this.root.push(new de("w:noSpaceRaiseLower",n.noSpaceRaiseLower)),n.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new de("w:doNotUseHTMLParagraphAutoSpacing",n.doNotUseHTMLParagraphAutoSpacing)),n.layoutRawTableWidth&&this.root.push(new de("w:layoutRawTableWidth",n.layoutRawTableWidth)),n.layoutTableRowsApart&&this.root.push(new de("w:layoutTableRowsApart",n.layoutTableRowsApart)),n.useWord97LineBreakRules&&this.root.push(new de("w:useWord97LineBreakRules",n.useWord97LineBreakRules)),n.doNotBreakWrappedTables&&this.root.push(new de("w:doNotBreakWrappedTables",n.doNotBreakWrappedTables)),n.doNotSnapToGri
1dInCell&&this.root.push(new de("w:doNotSnapToGridInCell",n.doNotSnapToGridInCell)),n.selectFieldWithFirstOrLastCharacter&&this.root.push(new de("w:selectFldWithFirstOrLastChar",n.selectFieldWithFirstOrLastCharacter)),n.applyBreakingRules&&this.root.push(new de("w:applyBreakingRules",n.applyBreakingRules)),n.doNotWrapTextWithPunctuation&&this.root.push(new de("w:doNotWrapTextWithPunct",n.doNotWrapTextWithPunctuation)),n.doNotUseEastAsianBreakRules&&this.root.push(new de("w:doNotUseEastAsianBreakRules",n.doNotUseEastAsianBreakRules)),n.useWord2002TableStyleRules&&this.root.push(new de("w:useWord2002TableStyleRules",n.useWord2002TableStyleRules)),n.growAutofit&&this.root.push(new de("w:growAutofit",n.growAutofit)),n.useFELayout&&this.root.push(new de("w:useFELayout",n.useFELayout)),n.useNormalStyleForList&&this.root.push(new de("w:useNormalStyleForList",n.useNormalStyleForList)),n.doNotUseIndentAsNumberingTabStop&&this.root.push(new de("w:doNotUseIndentAsNumberingTabStop",n.doNotUseIndentAsNumberingTabStop)),n.useAlternateEastAsianLineBreakRules&&this.root.push(new de("w:useAltKinsokuLineBreakRules",n.useAlternateEastAsianLineBreakRules)),n.allowSpaceOfSameStyleInTable&&this.root.push(new de("w:allowSpaceOfSameStyleInTable",n.allowSpaceOfSameStyleInTable)),n.doNotSuppressIndentation&&this.root.push(new de("w:doNotSuppressIndentation",n.doNotSuppressIndentation)),n.doNotAutofitConstrainedTables&&this.root.push(new de("w:doNotAutofitConstrainedTables",n.doNotAutofitConstrainedTables)),n.autofitToFirstFixedWidthCell&&this.root.push(new de("w:autofitToFirstFixedWidthCell",n.autofitToFirstFixedWidthCell)),n.underlineTabInNumberingList&&this.root.push(new de("w:underlineTabInNumList",n.underlineTabInNumberingList)),n.displayHangulFixedWidth&&this.root.push(new de("w:displayHangulFixedWidth",n.displayHangulFixedWidth)),n.splitPgBreakAndParaMark&&this.root.push(new de("w:splitPgBreakAndParaMark",n.splitPgBreakAndParaMark)),n.doNotVerticallyAlignCellWithSp&&this.root.push(new de("w:doNotVertAlignCellWithSp",n.doNotVerticallyAlignCellWithSp)),n.doNotBreakConstrainedForcedTable&&this.root.push(new de("w:doNotBreakConstrainedForcedTable",n.doNotBreakConstrainedForcedTable)),n.ignoreVerticalAlignmentInTextboxes&&this.root.push(new de("w:doNotVertAlignInTxbx",n.ignoreVerticalAlignmentInTextboxes)),n.useAnsiKerningPairs&&this.root.push(new de("w:useAnsiKerningPairs",n.useAnsiKerningPairs)),n.cachedColumnBalance&&this.root.push(new de("w:cachedColBalance",n.cachedColumnBalance))}}class cg extends me{constructor(){super(...arguments),te(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class dg extends K{constructor(n){var t,s,r,a,l,o,u,p;super("w:settings"),this.root.push(new cg({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new de("w:displayBackgroundShape",!0)),void 0!==n.trackRevisions&&this.root.push(new de("w:trackRevisions",n.trackRevisions)),void 0!==n.evenAndOddHeaders&&this.root.push(new de("w:evenAndOddHeaders",n.evenAndOddHeaders)),void 0!==n.updateFields&&this.root.push(new de("w:updateFields",n.updateFields)),void 0!==n.defaultTabStop&&this.root.push(new Wt("w:defaultTabStop",n.defaultTabStop)),void 0!==(null==(t=n.hyphenation)?void 0:t.autoHyphenation)&&this.root.push(new de("w:autoHyphenation",n.hyphenation.autoHyphenation)),void 0!==(null==(s=n.hyphenation)?void 0:s.hyphenationZone)&&this.root.push(new Wt("w:hyphenationZone",n.hyphenation.hyphenationZone)),void 0!==(null==(r=n.hyphenation)?void 0:r.consecutiveHyphenLimit)&&this.root.push(new Wt("w:consecutiveHyphenLimit",n.hyphenation.consecutiveHyphenLimit)),void 0!==(null==(a=n.hyphenation)?void 0:a.doNotHyphenate
1Caps)&&this.root.push(new de("w:doNotHyphenateCaps",n.hyphenation.doNotHyphenateCaps)),this.root.push(new lg(Me(be({},null!=(l=n.compatibility)?l:{}),{version:null!=(p=null!=(u=null==(o=n.compatibility)?void 0:o.version)?u:n.compatibilityModeVersion)?p:15})))}}class Pl extends me{constructor(){super(...arguments),te(this,"xmlKeys",{val:"w:val"})}}class ug extends K{constructor(n){super("w:name"),this.root.push(new Pl({val:n}))}}class pg extends K{constructor(n){super("w:uiPriority"),this.root.push(new Pl({val:Oe(n)}))}}class hg extends me{constructor(){super(...arguments),te(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Ol extends K{constructor(n,t){super("w:style"),this.root.push(new hg(n)),t.name&&this.root.push(new ug(t.name)),t.basedOn&&this.root.push(new wt("w:basedOn",t.basedOn)),t.next&&this.root.push(new wt("w:next",t.next)),t.link&&this.root.push(new wt("w:link",t.link)),void 0!==t.uiPriority&&this.root.push(new pg(t.uiPriority)),void 0!==t.semiHidden&&this.root.push(new de("w:semiHidden",t.semiHidden)),void 0!==t.unhideWhenUsed&&this.root.push(new de("w:unhideWhenUsed",t.unhideWhenUsed)),void 0!==t.quickFormat&&this.root.push(new de("w:qFormat",t.quickFormat))}}class Gn extends Ol{constructor(n){super({type:"paragraph",styleId:n.id},n),te(this,"paragraphProperties"),te(this,"runProperties"),this.paragraphProperties=new St(n.paragraph),this.runProperties=new bt(n.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Bn extends Ol{constructor(n){super({type:"character",styleId:n.id},be({uiPriority:99,unhideWhenUsed:!0},n)),te(this,"runProperties"),this.runProperties=new bt(n.run),this.root.push(this.runProperties)}}class yt extends Gn{constructor(n){super(be({basedOn:"Normal",next:"Normal",quickFormat:!0},n))}}class fg extends yt{constructor(n){super(be({id:"Title",name:"Title"},n))}}class mg extends yt{constructor(n){super(be({id:"Heading1",name:"Heading 1"},n))}}class gg extends yt{constructor(n){super(be({id:"Heading2",name:"Heading 2"},n))}}class _g extends yt{constructor(n){super(be({id:"Heading3",name:"Heading 3"},n))}}class vg extends yt{constructor(n){super(be({id:"Heading4",name:"Heading 4"},n))}}class wg extends yt{constructor(n){super(be({id:"Heading5",name:"Heading 5"},n))}}class bg extends yt{constructor(n){super(be({id:"Heading6",name:"Heading 6"},n))}}class yg extends yt{constructor(n){super(be({id:"Strong",name:"Strong"},n))}}class xg extends Gn{constructor(n){super(be({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},n))}}class kg extends Gn{constructor(n){super(be({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:"auto"}},run:{size:20}},n))}}class Cg extends Bn{constructor(n){super(be({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},n))}}class Eg extends Bn{constructor(n){super(be({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},n))}}class Tg extends Bn{constructor(n){super(be({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:"single"}}},n))}}class os extends K{constructor(n){if(super("w:styles"),n.initialStyles&&this.root.push(n.initialStyles),n.importedStyles)for(const t of n.importedStyles)this.root.push(t);if(n.paragraphStyles)for(const t of n.paragraphStyles)this.root.push(new Gn(t));if(n.characterStyles)for(const t of n.characterStyles)this.root.push(new Bn(t))}}class Ag extends K{constructor(n){super("w:pPrDefault"),this.root.push(new St(n))}}class Ig extends K{constructor(n){super("w:rPrDefault"),this.root.push(new bt(n))}}class Sg extends K{constructor(n){super("w:docDefaults"),te(this,"runPropertiesDefaults"),te(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new Ig(n.run),this.paragraphPropertiesDefaults=new Ag(n.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class Dg{newInstance(n){const t=Tn.xml2js(n,{compact:!1});let s;for(const l of t.elements||[])"w:styles"===l.name&&(s=l);if(void 0===s)throw new Error("can not find styles element");const r=s.elements||[];return new os({initialStyles:new Bu(s.attributes),importedStyles:r.map(l=>Or(l))})}}class Fl{newInstance(n={}){var t;return{initialStyles:new Mn(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new Sg(null!=(t=n.document)?t:{}),new fg(be({run:{size:56}},n.title)),new mg(be({run:{color:"2E74B5",size:32}},n.heading1)),new gg(be({run:{color:"2E74B5",size:26}}
1,n.heading2)),new _g(be({run:{color:"1F4D78",size:24}},n.heading3)),new vg(be({run:{color:"2E74B5",italics:!0}},n.heading4)),new wg(be({run:{color:"2E74B5"}},n.heading5)),new bg(be({run:{color:"1F4D78"}},n.heading6)),new yg(be({run:{bold:!0}},n.strong)),new xg(n.listParagraph||{}),new Tg(n.hyperlink||{}),new Cg(n.footnoteReference||{}),new kg(n.footnoteText||{}),new Eg(n.footnoteTextChar||{})]}}}class Rg{constructor(n){var t,s,r,a,l,o,u,p,_,g,C,f;if(te(this,"currentRelationshipId",1),te(this,"documentWrapper"),te(this,"headers",[]),te(this,"footers",[]),te(this,"coreProperties"),te(this,"numbering"),te(this,"media"),te(this,"fileRelationships"),te(this,"footnotesWrapper"),te(this,"settings"),te(this,"contentTypes"),te(this,"customProperties"),te(this,"appProperties"),te(this,"styles"),te(this,"comments"),te(this,"fontWrapper"),this.coreProperties=new gm(Me(be({},n),{creator:null!=(t=n.creator)?t:"Un-named",revision:null!=(s=n.revision)?s:1,lastModifiedBy:null!=(r=n.lastModifiedBy)?r:"Un-named"})),this.numbering=new sg(n.numbering?n.numbering:{config:[]}),this.comments=new $h(null!=(a=n.comments)?a:{children:[]}),this.fileRelationships=new At,this.customProperties=new xm(null!=(l=n.customProperties)?l:[]),this.appProperties=new um,this.footnotesWrapper=new Gm,this.contentTypes=new mm,this.documentWrapper=new _l({background:n.background}),this.settings=new dg({compatibilityModeVersion:n.compatabilityModeVersion,compatibility:n.compatibility,evenAndOddHeaders:!!n.evenAndOddHeaderAndFooters,trackRevisions:null==(o=n.features)?void 0:o.trackRevisions,updateFields:null==(u=n.features)?void 0:u.updateFields,defaultTabStop:n.defaultTabStop,hyphenation:{autoHyphenation:null==(p=n.hyphenation)?void 0:p.autoHyphenation,hyphenationZone:null==(_=n.hyphenation)?void 0:_.hyphenationZone,consecutiveHyphenLimit:null==(g=n.hyphenation)?void 0:g.consecutiveHyphenLimit,doNotHyphenateCaps:null==(C=n.hyphenation)?void 0:C.doNotHyphenateCaps}}),this.media=new Sl,void 0!==n.externalStyles){const x=new Dg;this.styles=x.newInstance(n.externalStyles)}else if(n.styles){const y=(new Fl).newInstance(n.styles.default);this.styles=new os(be(be({},y),n.styles))}else{const x=new Fl;this.styles=new os(x.newInstance())}this.addDefaultRelationships();for(const x of n.sections)this.addSection(x);if(n.footnotes)for(const x in n.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(x),n.footnotes[x].children);this.fontWrapper=new Tm(null!=(f=n.fonts)?f:[])}addSection({headers:n={},footers:t={},children:s,properties:r}){this.documentWrapper.View.Body.addSection(Me(be({},r),{headerWrapperGroup:{default:n.default?this.createHeader(n.default):void 0,first:n.first?this.createHeader(n.first):void 0,even:n.even?this.createHeader(n.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(const a of s)this.documentWrapper.View.add(a)}createHeader(n){const t=new $m(this.media,this.currentRelationshipId++);for(const s of n.options.children)t.add(s);return this.addHeaderToDocument(t),t}createFooter(n){const t=new Sm(this.media,this.currentRelationshipId++);for(const s of n.options.children)t.add(s);return this.addFooterToDocument(t),t}addHeaderToDocument(n,t="default"){this.headers.push({header:n,type:t}),this.documentWrapper.Relationships.createRelationship(n.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(n,t="default"){this.footers.push({footer:n,type:t}),this.documentWrapper.Relationships.createRelationship(n.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(n=>n.header)}get Footers(){return this.footers.map(n=>n.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}class Og{constructor(n={children:[]}){te(this,"options"),this.options=n}}class Fg{constructor(n={children:[]}){te(this,"options"),this.options=n}}var qg=kr();function Un(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gl,cs={exports:{}};const Bt=Jn(function Kg(){return Gl||(Gl=1,cs.exports=function t(s,r,a){function l(p,_){if(!r[p]){if(!s[p]){if(!_&&Un)return Un(p);if(o)return o(p,!0);
vendor: 3,026 bytes, line 1
1var C=new Error("Cannot find module '"+p+"'");throw C.code="MODULE_NOT_FOUND",C}var f=r[p]={exports:{}};s[p][0].call(f.exports,function(x){return l(s[p][1][x]||x)},f,f.exports,t,s,r,a)}return r[p].exports}for(var o=Un,u=0;u<a.length;u++)l(a[u]);return l}({1:[function(t,s,r){var a=t("./utils"),l=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(u){for(var p,_,g,f,x,y,D=[],h=0,k=u.length,v=k,m="string"!==a.getTypeOf(u);h<u.length;)v=k-h,g=m?(p=u[h++],_=h<k?u[h++]:0,h<k?u[h++]:0):(p=u.charCodeAt(h++),_=h<k?u.charCodeAt(h++):0,h<k?u.charCodeAt(h++):0),f=(3&p)<<4|_>>4,x=1<v?(15&_)<<2|g>>6:64,y=2<v?63&g:64,D.push(o.charAt(p>>2)+o.charAt(f)+o.charAt(x)+o.charAt(y));return D.join("")},r.decode=function(u){var p,_,g,C,f,x,y=0,D=0,h="data:";if(u.substr(0,5)===h)throw new Error("Invalid base64 input, it looks like a data url.");var k,v=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===o.charAt(64)&&v--,u.charAt(u.length-2)===o.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(k=l.uint8array?new Uint8Array(0|v):new Array(0|v);y<u.length;)p=o.indexOf(u.charAt(y++))<<2|(C=o.indexOf(u.charAt(y++)))>>4,_=(15&C)<<4|(f=o.indexOf(u.charAt(y++)))>>2,g=(3&f)<<6|(x=o.indexOf(u.charAt(y++))),k[D++]=p,64!==f&&(k[D++]=_),64!==x&&(k[D++]=g);return k}},{"./support":30,"./utils":32}],2:[function(t,s,r){var a=t("./external"),l=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),u=t("./stream/DataLengthProbe");function p(_,g,C,f,x){this.compressedSize=_,this.uncompressedSize=g,this.crc32=C,this.compression=f,this.compressedContent=x}p.prototype={getContentWorker:function(){var _=new l(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),g=this;return _.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),_},getCompressedWorker:function(){return new l(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(_,g,C){return _.pipe(new o).pipe(new u("uncompressedSize")).pipe(g.compressWorker(C)).pipe(new u("compressedSize")).withStreamInfo("compression",g)},s.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,s,r){var a=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,s,r){var a=t("./utils"),l=function(){for(var o,u=[],p=0;p<256;p++){o=p;for(var _=0;_<8;_++)o=1&o?3988292384^o>>>1:o>>>1;u[p]=o}return u}();s.exports=function(o,u){return void 0!==o&&o.length?"string"!==a.getTypeOf(o
vendor: 7,855 bytes, line 1
1)?function(p,_,g,C){var f=l,x=0+g;p^=-1;for(var y=0;y<x;y++)p=p>>>8^f[255&(p^_[y])];return~p}(0|u,o,o.length):function(p,_,g,C){var f=l,x=0+g;p^=-1;for(var y=0;y<x;y++)p=p>>>8^f[255&(p^_.charCodeAt(y))];return~p}(0|u,o,o.length):0}},{"./utils":32}],5:[function(t,s,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,s,r){var a;a=typeof Promise<"u"?Promise:t("lie"),s.exports={Promise:a}},{lie:37}],7:[function(t,s,r){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=t("pako"),o=t("./utils"),u=t("./stream/GenericWorker"),p=a?"uint8array":"array";function _(g,C){u.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=C,this.meta={}}r.magic="\b\0",o.inherits(_,u),_.prototype.processChunk=function(g){this.meta=g.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(p,g.data),!1)},_.prototype.flush=function(){u.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},_.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},_.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(C){g.push({data:C,meta:g.meta})}},r.compressWorker=function(g){return new _("Deflate",g)},r.uncompressWorker=function(){return new _("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,s,r){function a(f,x){var y,D="";for(y=0;y<x;y++)D+=String.fromCharCode(255&f),f>>>=8;return D}function l(f,x,y,D,h,k){var v,m,S=f.file,M=f.compression,L=k!==p.utf8encode,$=o.transformTo("string",k(S.name)),R=o.transformTo("string",p.utf8encode(S.name)),Z=S.comment,ce=o.transformTo("string",k(Z)),P=o.transformTo("string",p.utf8encode(Z)),B=R.length!==S.name.length,E=P.length!==Z.length,V="",ne="",Y="",ae=S.dir,ie=S.date,pe={crc32:0,compressedSize:0,uncompressedSize:0};x&&!y||(pe.crc32=f.crc32,pe.compressedSize=f.compressedSize,pe.uncompressedSize=f.uncompressedSize);var W=0;x&&(W|=8),L||!B&&!E||(W|=2048);var re,A,F=0,q=0;ae&&(F|=16),"UNIX"===h?(q=798,F|=(A=re=S.unixPermissions,re||(A=ae?16893:33204),(65535&A)<<16)):(q=20,F|=function(re){return 63&(re||0)}(S.dosPermissions)),v=ie.getUTCHours(),v<<=6,v|=ie.getUTCMinutes(),v<<=5,v|=ie.getUTCSeconds()/2,m=ie.getUTCFullYear()-1980,m<<=4,m|=ie.getUTCMonth()+1,m<<=5,m|=ie.getUTCDate(),B&&(ne=a(1,1)+a(_($),4)+R,V+="up"+a(ne.length,2)+ne),E&&(Y=a(1,1)+a(_(ce),4)+P,V+="uc"+a(Y.length,2)+Y);var J="";return J+="\n\0",J+=a(W,2),J+=M.magic,J+=a(v,2),J+=a(m,2),J+=a(pe.crc32,4),J+=a(pe.compressedSize,4),J+=a(pe.uncompressedSize,4),J+=a($.length,2),J+=a(V.length,2),{fileRecord:g.LOCAL_FILE_HEADER+J+$+V,dirRecord:g.CENTRAL_FILE_HEADER+a(q,2)+J+a(ce.length,2)+"\0\0\0\0"+a(F,4)+a(D,4)+$+V+ce}}var o=t("../utils"),u=t("../stream/GenericWorker"),p=t("../utf8"),_=t("../crc32"),g=t("../signature");function C(f,x,y,D){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=x,this.zipPlatform=y,this.encodeFileName=D,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(C,u),C.prototype.push=function(f){var x=f.meta.percent||0,y=this.entriesCount,D=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,u.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:y?(x+100*(y-D-1))/y:100}}))},C.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var x=this.streamFiles&&!f.file.dir;if(x){var y=l(f,x,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},C.prototype.closedSource=function(f){this.accumulate=!1;var D,x=this.streamFiles&&!f.file.dir,y=l(f,x,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),x)this.push({data:(D=f,g.DATA_DESCRIPTOR+a(D.crc32,4)+a(D.compressedSize,4)+a(D.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},C.prototype.flush=function(){for(var f=this.bytesWritten,x=0;x<this.dirRecords.length;x++)this.push({data:this.dirRecords[x],meta:{percent:100}});var h,k,v,M,D=(h=this.dirRecords.length,k=this.bytesWritten-f,v=f,M=o.transformTo("string",(0,this.encodeFileName)(this.zipComment)),g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(h,2)+a(h,2)+a(k,4)+a(v,4)+a(M.length,2)+M);this.push({data:D,meta:{percent:100}})},C.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},C.prototype.registerPrevious=function(f){this._sources.push(f);var x=this;return f.on("data",function(y){x.processChunk(y)}),f.on("end",function(){x.closedSource(x.previous.streamInfo),x._sources.length?x.prepareNextSource():x.end()}),f.on("error",function(y){x.error(y)}),this},C.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},C.prototype.error=function(f){var x=this._sources;if(!u.prototype.error.call(this,f))return!1;for(var y=0;y<x.length;y++)try{x[y].error(f)}catch{}return!0},C.prototype.lock=function(){u.prototype.lock.call(this);for(var f=this._sources,x=0;x<f.length;x++)f[x].lock()},s.exports=C},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,s,r){var a=t("../compressions"),l=t("./ZipFileWorker");r.generateWorker=function(o,u,p){var _=new l(u.streamFiles,p,u.platform,u.encodeFileName),g=0;try{o.forEach(function(C,f){g++;var x=function(k,v){var m=k||v,S=a[m];if(!S)throw new Error(m+" is not a valid compression method !");return S}(f.options.compression,u.compression),D=f.dir,h=f.date;f._compressWorker(x,f.options.compressionOptions||u.compressionOptions||{}).withStreamInfo("file",{name:C,dir:D,date:h,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(_)}),_.entriesCount=g}catch(C){_.error(C)}return _}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,s,r){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new a;for(var o in this)"function"!=typeof this[o]&&(l[o]=this[o]);return l}}(a.prototype=t("./object")).loadAsync=t("./load"),a.support=t("./support"),a.defaults=t("./defaults"),a.version="3.10.1",a.loadAsync=function(l,o){return(new a).loadAsync(l,o)},a.external=t("./external"),s.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,s,r){var a=t("./utils"),l=t("./external"),o=t("./utf8"),u=t("./zipEntries"),p=t("./stream/Crc32Probe"),_=t("./nodejsUtils");function g(C){return new l.Promise(function(f,x){var y=C.decompressed.getContentWorker().pipe(new p);y.on("error",function(D){x(D)}).on("end",function(){y.streamInfo.crc32!==C.decompressed.crc32?x(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}s.exports=function(C,f){var x=this;return f=a.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),_.isNode&&_.isStream(C)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip f
1ile",C,!0,f.optimizedBinaryString,f.base64).then(function(y){var D=new u(f);return D.load(y),D}).then(function(y){var D=[l.Promise.resolve(y)],h=y.files;if(f.checkCRC32)for(var k=0;k<h.length;k++)D.push(g(h[k]));return l.Promise.all(D)}).then(function(y){for(var D=y.shift(),h=D.files,k=0;k<h.length;k++){var v=h[k],m=v.fileNameStr,S=a.resolve(v.fileNameStr);x.file(S,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:f.createFolders}),v.dir||(x.file(S).unsafeOriginalName=m)}return D.zipComment.length&&(x.comment=D.zipComment),x})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,s,r){var a=t("../utils"),l=t("../stream/GenericWorker");function o(u,p){l.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(p)}a.inherits(o,l),o.prototype._bindStream=function(u){var p=this;(this._stream=u).pause(),u.on("data",function(_){p.push({data:_,meta:{percent:0}})}).on("error",function(_){p.isPaused?this.generatedError=_:p.error(_)}).on("end",function(){p.isPaused?p._upstreamEnded=!0:p.end()})},o.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,s,r){var a=t("readable-stream").Readable;function l(o,u,p){a.call(this,u),this._helper=o;var _=this;o.on("data",function(g,C){_.push(g)||_._helper.pause(),p&&p(C)}).on("error",function(g){_.emit("error",g)}).on("end",function(){_.push(null)})}t("../utils").inherits(l,a),l.prototype._read=function(){this._helper.resume()},s.exports=l},{"../utils":32,"readable-stream":16}],14:[function(t,s,r){s.exports={isNode:typeof Buffer<"u",newBufferFrom:function(a,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,l);if("number"==typeof a)throw new Error('The "data" argument must not be a number');return new Buffer(a,l)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var l=new Buffer(a);return l.fill(0),l},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&"function"==typeof a.on&&"function"==typeof a.pause&&"function"==typeof a.resume}}},{}],15:[function(t,s,r){function a(S,M,L){var $,R=o.getTypeOf(M),Z=o.extend(L||{},_);Z.date=Z.date||new Date,null!==Z.compression&&(Z.compression=Z.compression.toUpperCase()),"string"==typeof Z.unixPermissions&&(Z.unixPermissions=parseInt(Z.unixPermissions,8)),Z.unixPermissions&&16384&Z.unixPermissions&&(Z.dir=!0),Z.dosPermissions&&16&Z.dosPermissions&&(Z.dir=!0),Z.dir&&(S=h(S)),Z.createFolders&&($=D(S))&&k.call(this,$,!0),L&&void 0!==L.binary||(Z.binary=!("string"===R&&!1===Z.binary&&!1===Z.base64)),(M instanceof g&&0===M.uncompressedSize||Z.dir||!M||0===M.length)&&(Z.base64=!1,Z.binary=!0,M="",Z.compression="STORE",R="string");var P;P=M instanceof g||M instanceof u?M:x.isNode&&x.isStream(M)?new y(S,M):o.prepareContent(S,M,Z.binary,Z.optimizedBinaryString,Z.base64);var B=new C(S,P,Z);this.files[S]=B}var l=t("./utf8"),o=t("./utils"),u=t("./stream/GenericWorker"),p=t("./stream/StreamHelper"),_=t("./defaults"),g=t("./compressedObject"),C=t("./zipObject"),f=t("./generate"),x=t("./nodejsUtils"),y=t("./nodejs/NodejsStreamInputAdapter"),D=function(S){"/"===S.slice(-1)&&(S=S.substring(0,S.length-1));var M=S.lastIndexOf("/");return 0<M?S.substring(0,M):""},h=function(S){return"/"!==S.slice(-1)&&(S+="/"),S},k=function(S,M){return M=void 0!==M?M:_.createFolders,S=h(S),this.files[S]||a.call(this,S,null,{dir:!0,createFolders:M}),this.files[S]};function v(S){return"[object RegExp]"===Object.prototype.toString.call(S)}var m={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var M,L,$;for(M in this.files)$=this.files[M],(L=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&S(L,$)},filter:function(S){var M=[];return this.forEach(function(L,$){S(L,$)&&M.push($)}),M}
vendor: 4,688 bytes, line 1
1,file:function(S,M,L){if(1!==arguments.length)return a.call(this,S=this.root+S,M,L),this;if(v(S)){var $=S;return this.filter(function(Z,ce){return!ce.dir&&$.test(Z)})}var R=this.files[this.root+S];return R&&!R.dir?R:null},folder:function(S){if(!S)return this;if(v(S))return this.filter(function(R,Z){return Z.dir&&S.test(R)});var L=k.call(this,this.root+S),$=this.clone();return $.root=L.name,$},remove:function(S){var M=this.files[S=this.root+S];if(M||("/"!==S.slice(-1)&&(S+="/"),M=this.files[S]),M&&!M.dir)delete this.files[S];else for(var L=this.filter(function(R,Z){return Z.name.slice(0,S.length)===S}),$=0;$<L.length;$++)delete this.files[L[$].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var M,L={};try{if((L=o.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=L.type.toLowerCase(),L.compression=L.compression.toUpperCase(),"binarystring"===L.type&&(L.type="string"),!L.type)throw new Error("No output type specified.");o.checkSupport(L.type),"darwin"!==L.platform&&"freebsd"!==L.platform&&"linux"!==L.platform&&"sunos"!==L.platform||(L.platform="UNIX"),"win32"===L.platform&&(L.platform="DOS"),M=f.generateWorker(this,L,L.comment||this.comment||"")}catch(R){(M=new u("error")).error(R)}return new p(M,L.type||"string",L.mimeType)},generateAsync:function(S,M){return this.generateInternalStream(S).accumulate(M)},generateNodeStream:function(S,M){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(M)}};s.exports=m},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,s,r){s.exports=t("stream")},{stream:void 0}],17:[function(t,s,r){var a=t("./DataReader");function l(o){a.call(this,o);for(var u=0;u<this.data.length;u++)o[u]=255&o[u]}t("../utils").inherits(l,a),l.prototype.byteAt=function(o){return this.data[this.zero+o]},l.prototype.lastIndexOfSignature=function(o){for(var u=o.charCodeAt(0),p=o.charCodeAt(1),_=o.charCodeAt(2),g=o.charCodeAt(3),C=this.length-4;0<=C;--C)if(this.data[C]===u&&this.data[C+1]===p&&this.data[C+2]===_&&this.data[C+3]===g)return C-this.zero;return-1},l.prototype.readAndCheckSignature=function(o){var u=o.charCodeAt(0),p=o.charCodeAt(1),_=o.charCodeAt(2),g=o.charCodeAt(3),C=this.readData(4);return u===C[0]&&p===C[1]&&_===C[2]&&g===C[3]},l.prototype.readData=function(o){if(this.checkOffset(o),0===o)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,u},s.exports=l},{"../utils":32,"./DataReader":18}],18:[function(t,s,r){var a=t("../utils");function l(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var u,p=0;for(this.checkOffset(o),u=this.index+o-1;u>=this.index;u--)p=(p<<8)+this.byteAt(u);return this.index+=o,p},readString:function(o){return a.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},s.exports=l},{"../utils":32}],19:[function(t,s,r){var a=t("./Uint8ArrayReader");function l(o){a.call(this,o)}t("../utils").inherits(l,a),l.prototype.readData=function(o){this.checkOffset(o);var u=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,u},s.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,s,r){var a=t("./DataReader");function l(o){a.call(this,o)}t("../utils").inherits(l,a),l.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},l.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},l.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},l.prototype.readData=function(o){this.checkOffset(o);var u=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,u},s.exports=l},{"../utils":32,"./DataReader":18}],21:[function(t,s,r){var a=t("./ArrayReader");function l(o){a.call(this,o)}
vendor: 6,571 bytes, line 1
1t("../utils").inherits(l,a),l.prototype.readData=function(o){if(this.checkOffset(o),0===o)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,u},s.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(t,s,r){var a=t("../utils"),l=t("../support"),o=t("./ArrayReader"),u=t("./StringReader"),p=t("./NodeBufferReader"),_=t("./Uint8ArrayReader");s.exports=function(g){var C=a.getTypeOf(g);return a.checkSupport(C),"string"!==C||l.uint8array?"nodebuffer"===C?new p(g):l.uint8array?new _(a.transformTo("uint8array",g)):new o(a.transformTo("array",g)):new u(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,s,r){r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,s,r){var a=t("./GenericWorker"),l=t("../utils");function o(u){a.call(this,"ConvertWorker to "+u),this.destType=u}l.inherits(o,a),o.prototype.processChunk=function(u){this.push({data:l.transformTo(this.destType,u.data),meta:u.meta})},s.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,s,r){var a=t("./GenericWorker"),l=t("../crc32");function o(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,a),o.prototype.processChunk=function(u){this.streamInfo.crc32=l(u.data,this.streamInfo.crc32||0),this.push(u)},s.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,s,r){var a=t("../utils"),l=t("./GenericWorker");function o(u){l.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}a.inherits(o,l),o.prototype.processChunk=function(u){u&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+u.data.length),l.prototype.processChunk.call(this,u)},s.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,s,r){var a=t("../utils"),l=t("./GenericWorker");function o(u){l.call(this,"DataWorker");var p=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(_){p.dataIsReady=!0,p.data=_,p.max=_&&_.length||0,p.type=a.getTypeOf(_),p.isPaused||p._tickAndRepeat()},function(_){p.error(_)})}a.inherits(o,l),o.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,p=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,p);break;case"uint8array":u=this.data.subarray(this.index,p);break;case"array":case"nodebuffer":u=this.data.slice(this.index,p)}return this.index=p,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,s,r){function a(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}a.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,o){return this._listeners[l].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,o){if(this._listeners[l])for(var u=0;u<this._listeners[l].length;u++)this._listeners[l][u].call(this,o)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var o=this;return l.on("data",function(u){o.processChunk(u)}),l.on("end",function(){o.end()}),l.on("error",function(u){o.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,o){return this.extraStreamInfo[l]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},s.exports=a},{}],29:[function(t,s,r){var a=t("../utils"),l=t("./ConvertWorker"),o=t("./GenericWorker"),u=t("../base64"),p=t("../support"),_=t("../external"),g=null;if(p.nodestream)try{g=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(x,y,D){var h=y;switch(y){case"blob":case"arraybuffer":h="uint8array";break;case"base64":h="string"}try{this._internalType=h,this._outputType=y,this._mimeType=D,a.checkSupport(h),this._worker=x.pipe(new l(h)),x.lock()}catch(k){this._worker=new o("error"),this._worker.error(k)}}f.prototype={accumulate:function(x){return function C(x,y){return new _.Promise(function(D,h){var k=[],v=x._internalType,m=x._outputType,S=x._mimeType;x.on("data",function(M,L){k.push(M),y&&y(L)}).on("error",function(M){k=[],h(M)}).on("end",function(){try{var M=function(L,$,R){switch(L){case"blob":return a.newBlob(a.transformTo("arraybuffer",$),R);case"base64":return u.encode($);default:return a.transformTo(L,$)}}(m,function(L,$){var R,Z=0,ce=null,P=0;for(R=0;R<$.length;R++)P+=$[R].length;switch(L){case"string":return $.join("");case"array":return Array.prototype.concat.apply([],$);
1case"uint8array":for(ce=new Uint8Array(P),R=0;R<$.length;R++)ce.set($[R],Z),Z+=$[R].length;return ce;case"nodebuffer":return Buffer.concat($);default:throw new Error("concat : unsupported type '"+L+"'")}}(v,k),S);D(M)}catch(L){h(L)}k=[]}).resume()})}(this,x)},on:function(x,y){var D=this;return this._worker.on(x,"data"===x?function(h){y.call(D,h.data,h.meta)}:function(){a.delay(y,arguments,D)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(x){if(a.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new g(this,{objectMode:"nodebuffer"!==this._outputType},x)}},s.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,s,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",r.nodebuffer=typeof Buffer<"u",r.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")r.blob=!1;else{var a=new ArrayBuffer(0);try{r.blob=0===new Blob([a],{type:"application/zip"}).size}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(a),r.blob=0===l.getBlob("application/zip").size}catch{r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch{r.nodestream=!1}},{"readable-stream":16}],31:[function(t,s,r){for(var a=t("./utils"),l=t("./support"),o=t("./nodejsUtils"),u=t("./stream/GenericWorker"),p=new Array(256),_=0;_<256;_++)p[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;function g(){u.call(this,"utf-8 decode"),this.leftOver=null}function C(){u.call(this,"utf-8 encode")}p[254]=p[254]=1,r.utf8encode=function(f){return l.nodebuffer?o.newBufferFrom(f,"utf-8"):function(x){var y,D,h,k,v,m=x.length,S=0;for(k=0;k<m;k++)55296==(64512&(D=x.charCodeAt(k)))&&k+1<m&&56320==(64512&(h=x.charCodeAt(k+1)))&&(D=65536+(D-55296<<10)+(h-56320),k++),S+=D<128?1:D<2048?2:D<65536?3:4;for(y=l.uint8array?new Uint8Array(S):new Array(S),k=v=0;v<S;k++)55296==(64512&(D=x.charCodeAt(k)))&&k+1<m&&56320==(64512&(h=x.charCodeAt(k+1)))&&(D=65536+(D-55296<<10)+(h-56320),k++),D<128?y[v++]=D:(D<2048?y[v++]=192|D>>>6:(D<65536?y[v++]=224|D>>>12:(y[v++]=240|D>>>18,y[v++]=128|D>>>12&63),y[v++]=128|D>>>6&63),y[v++]=128|63&D);return y}(f)},r.utf8decode=function(f){return l.nodebuffer?a.transformTo("nodebuffer",f).toString("utf-8"):function(x){var y,D,h,k,v=x.length,m=new Array(2*v);for(y=D=0;y<v;)if((h=x[y++])<128)m[D++]=h;else if(4<(k=p[h]))m[D++]=65533,y+=k-1;else{for(h&=2===k?31:3===k?15:7;1<k&&y<v;)h=h<<6|63&x[y++],k--;1<k?m[D++]=65533:h<65536?m[D++]=h:(m[D++]=55296|(h-=65536)>>10&1023,m[D++]=56320|1023&h)}return m.length!==D&&(m.subarray?m=m.subarray(0,D):m.length=D),a.applyFromCharCode(m)}(f=a.transformTo(l.uint8array?"uint8array":"array",f))},a.inherits(g,u),g.prototype.processChunk=function(f){var x=a.transformTo(l.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var y=x;(x=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),x.set(y,this.leftOver.length)}else x=this.leftOver.concat(x);this.leftOver=null}var D=function(k,v){var m;for((v=v||k.length)>k.length&&(v=k.length),m=v-1;0<=m&&128==(192&k[m]);)m--;return m<0||0===m?v:m+p[k[m]]>v?m:v}(x),h=x;D!==x.length&&(l.uint8array?(h=x.subarray(0,D),this.leftOver=x.subarray(D,x.length)):(h=x.slice(0,D),this.leftOver=x.slice(D,x.length))),this.push({data:r.utf8decode(h),meta:f.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=g,a.inherits(C,u),C.prototype.processChunk=function(f){this.push({data:r.utf8encode(f.data),meta:f.meta})},r.Utf8EncodeWorker=C},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,s,r){var a=t("./support"),l=t("./base64"),o=t("./nodejsUtils"),u=t("./external");function p(y){return y}function _(y,D){for(var h=0;h<y.length;
1++h)D[h]=255&y.charCodeAt(h);return D}t("setimmediate"),r.newBlob=function(y,D){r.checkSupport("blob");try{return new Blob([y],{type:D})}catch{try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return h.append(y),h.getBlob(D)}catch{throw new Error("Bug : can't construct the Blob.")}}};var g={stringifyByChunk:function(y,D,h){var k=[],v=0,m=y.length;if(m<=h)return String.fromCharCode.apply(null,y);for(;v<m;)k.push(String.fromCharCode.apply(null,"array"===D||"nodebuffer"===D?y.slice(v,Math.min(v+h,m)):y.subarray(v,Math.min(v+h,m)))),v+=h;return k.join("")},stringifyByChar:function(y){for(var D="",h=0;h<y.length;h++)D+=String.fromCharCode(y[h]);return D},applyCanBeUsed:{uint8array:function(){try{return a.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{return!1}}(),nodebuffer:function(){try{return a.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch{return!1}}()}};function C(y){var D=65536,h=r.getTypeOf(y),k=!0;if("uint8array"===h?k=g.applyCanBeUsed.uint8array:"nodebuffer"===h&&(k=g.applyCanBeUsed.nodebuffer),k)for(;1<D;)try{return g.stringifyByChunk(y,h,D)}catch{D=Math.floor(D/2)}return g.stringifyByChar(y)}function f(y,D){for(var h=0;h<y.length;h++)D[h]=y[h];return D}r.applyFromCharCode=C;var x={};x.string={string:p,array:function(y){return _(y,new Array(y.length))},arraybuffer:function(y){return x.string.uint8array(y).buffer},uint8array:function(y){return _(y,new Uint8Array(y.length))},nodebuffer:function(y){return _(y,o.allocBuffer(y.length))}},x.array={string:C,array:p,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return o.newBufferFrom(y)}},x.arraybuffer={string:function(y){return C(new Uint8Array(y))},array:function(y){return f(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:p,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return o.newBufferFrom(new Uint8Array(y))}},x.uint8array={string:C,array:function(y){return f(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:p,nodebuffer:function(y){return o.newBufferFrom(y)}},x.nodebuffer={string:C,array:function(y){return f(y,new Array(y.length))},arraybuffer:function(y){return x.nodebuffer.uint8array(y).buffer},uint8array:function(y){return f(y,new Uint8Array(y.length))},nodebuffer:p},r.transformTo=function(y,D){if(D=D||"",!y)return D;r.checkSupport(y);var h=r.getTypeOf(D);return x[h][y](D)},r.resolve=function(y){for(var D=y.split("/"),h=[],k=0;k<D.length;k++){var v=D[k];"."===v||""===v&&0!==k&&k!==D.length-1||(".."===v?h.pop():h.push(v))}return h.join("/")},r.getTypeOf=function(y){return"string"==typeof y?"string":"[object Array]"===Object.prototype.toString.call(y)?"array":a.nodebuffer&&o.isBuffer(y)?"nodebuffer":a.uint8array&&y instanceof Uint8Array?"uint8array":a.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(y){if(!a[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(y){var D,h,k="";for(h=0;h<(y||"").length;h++)k+="\\x"+((D=y.charCodeAt(h))<16?"0":"")+D.toString(16).toUpperCase();return k},r.delay=function(y,D,h){setImmediate(function(){y.apply(h||null,D||[])})},r.inherits=function(y,D){function h(){}h.prototype=D.prototype,y.prototype=new h},r.extend=function(){var y,D,h={};for(y=0;y<arguments.length;y++)for(D in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],D)&&void 0===h[D]&&(h[D]=arguments[y][D]);return h},r.prepareContent=function(y,D,h,k,v){return u.Promise.resolve(D).then(function(m){return a.blob&&(m instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(m)))&&typeof FileReader<"u"?new u.Promise(function(S,M){var L=new FileReader;L.onload=function($){S($.target.result)},L.onerror=function($){M($.target.error)},L.readAsArrayBuffer(m)}):m}).then(function(m){var M,S=r.getTypeOf(m);return S?("arraybuffer"===S?m=r.transformTo("uint8array",m):"string"===S&&(v?m=l.decode(m):h&&!0!==k&&(m=_(M=m,a.uint8array?new Uint8Array(M.length):new Array(M.length)))),m):u.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,s,r){var a=t("./reader/readerFor"),l=t("./utils"),o=t("./signature"),u=t("./zipEntry"),p=t("./support");function _(g){this.files=[],this.loadOptions=g}_.prototype={checkSignature:function(g){if(!this.reader.readAndCheckSignature(g)){this.reader.index-=4;var C=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(C)+", expected "+l.pretty(g)+")")}},isSignature:function(g,C){var f=this.reader.index;this.reader.setIndex(g);var x=this.reader.readString(4)===C;return this.reader.setIndex(f),x},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var g=this.reader.readData(this.zipCommentLength),f=l.transformTo(p.uint8array?"uint8array":"array",g);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var g,C,f,x=this.zip64EndOfCentralSize-44;0<x;)g=this.reader.readInt(2),C=this.reader.readInt(4),f=this.reader.readData(C),this.zip64ExtensibleData[g]={id:g,length:C,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var g,C;for(g=0;g<this.files.length;g++)this.reader.setIndex((C=this.files[g]).localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),C.readLocalPart(this.reader),C.handleUTF8(),C.processAttributes()},readCentralDir:function(){var g;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(g=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(g);
vendor: 4,442 bytes, line 1
1if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var g=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(g<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(g);var C=g;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(g=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(g),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var x=C-f;if(0<x)this.isSignature(C,o.CENTRAL_FILE_HEADER)||(this.reader.zero=x);else if(x<0)throw new Error("Corrupted zip: missing "+Math.abs(x)+" bytes.")},prepareReader:function(g){this.reader=a(g)},load:function(g){this.prepareReader(g),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=_},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,s,r){var a=t("./reader/readerFor"),l=t("./utils"),o=t("./compressedObject"),u=t("./crc32"),p=t("./utf8"),_=t("./compressions"),g=t("./support");function C(f,x){this.options=f,this.loadOptions=x}C.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(f){var x,y;if(f.skip(22),this.fileNameLength=f.readInt(2),y=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(y),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(x=function(D){for(var h in _)if(Object.prototype.hasOwnProperty.call(_,h)&&_[h].magic===D)return _[h];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,x,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var x=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(x),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==f&&(this.dosPermissions=63&this.externalFileAttributes),3==f&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=a(this.extraFields[1].value);
vendor: 2,524 bytes, line 1
1this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var x,y,D,h=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<h;)x=f.readInt(2),y=f.readInt(2),D=f.readData(y),this.extraFields[x]={id:x,length:y,value:D};f.setIndex(h)},handleUTF8:function(){var f=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=p.utf8decode(this.fileName),this.fileCommentStr=p.utf8decode(this.fileComment);else{var x=this.findExtraFieldUnicodePath();if(null!==x)this.fileNameStr=x;else{var y=l.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var D=this.findExtraFieldUnicodeComment();if(null!==D)this.fileCommentStr=D;else{var h=l.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(h)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var x=a(f.value);return 1!==x.readInt(1)||u(this.fileName)!==x.readInt(4)?null:p.utf8decode(x.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var x=a(f.value);return 1!==x.readInt(1)||u(this.fileComment)!==x.readInt(4)?null:p.utf8decode(x.readData(f.length-5))}return null}},s.exports=C},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,s,r){function a(x,y,D){this.name=x,this.dir=D.dir,this.date=D.date,this.comment=D.comment,this.unixPermissions=D.unixPermissions,this.dosPermissions=D.dosPermissions,this._data=y,this._dataBinary=D.binary,this.options={compression:D.compression,compressionOptions:D.compressionOptions}}var l=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),u=t("./utf8"),p=t("./compressedObject"),_=t("./stream/GenericWorker");a.prototype={internalStream:function(x){var y=null,D="string";try{if(!x)throw new Error("No output type specified.");var h="string"===(D=x.toLowerCase())||"text"===D;"binarystring"!==D&&"text"!==D||(D="string"),y=this._decompressWorker();var k=!this._dataBinary;k&&!h&&(y=y.pipe(new u.Utf8EncodeWorker)),!k&&h&&(y=y.pipe(new u.Utf8DecodeWorker))}catch(v){(y=new _("error")).error(v)}return new l(y,D,"")},async:function(x,y){return this.internalStream(x).accumulate(y)}
vendor: 8,816 bytes, line 1
1,nodeStream:function(x,y){return this.internalStream(x||"nodebuffer").toNodejsStream(y)},_compressWorker:function(x,y){if(this._data instanceof p&&this._data.compression.magic===x.magic)return this._data.getCompressedWorker();var D=this._decompressWorker();return this._dataBinary||(D=D.pipe(new u.Utf8EncodeWorker)),p.createWorkerFrom(D,x,y)},_decompressWorker:function(){return this._data instanceof p?this._data.getContentWorker():this._data instanceof _?this._data:new o(this._data)}};for(var g=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],C=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<g.length;f++)a.prototype[g[f]]=C;s.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,s,r){(function(a){var l,o,u=a.MutationObserver||a.WebKitMutationObserver;if(u){var p=0,_=new u(x),g=a.document.createTextNode("");_.observe(g,{characterData:!0}),l=function(){g.data=p=++p%2}}else if(a.setImmediate||void 0===a.MessageChannel)l="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var y=a.document.createElement("script");y.onreadystatechange=function(){x(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},a.document.documentElement.appendChild(y)}:function(){setTimeout(x,0)};else{var C=new a.MessageChannel;C.port1.onmessage=x,l=function(){C.port2.postMessage(0)}}var f=[];function x(){var y,D;o=!0;for(var h=f.length;h;){for(D=f,f=[],y=-1;++y<h;)D[y]();h=f.length}o=!1}s.exports=function(y){1!==f.push(y)||o||l()}}).call(this,typeof Je<"u"?Je:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(t,s,r){var a=t("immediate");function l(){}var o={},u=["REJECTED"],p=["FULFILLED"],_=["PENDING"];function g(h){if("function"!=typeof h)throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,h!==l&&y(this,h)}function C(h,k,v){this.promise=h,"function"==typeof k&&(this.onFulfilled=k,this.callFulfilled=this.otherCallFulfilled),"function"==typeof v&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function f(h,k,v){a(function(){var m;try{m=k(v)}catch(S){return o.reject(h,S)}m===h?o.reject(h,new TypeError("Cannot resolve promise with itself")):o.resolve(h,m)})}function x(h){var k=h&&h.then;if(h&&("object"==typeof h||"function"==typeof h)&&"function"==typeof k)return function(){k.apply(h,arguments)}}function y(h,k){var v=!1;function m(L){v||(v=!0,o.reject(h,L))}function S(L){v||(v=!0,o.resolve(h,L))}var M=D(function(){k(S,m)});"error"===M.status&&m(M.value)}function D(h,k){var v={};try{v.value=h(k),v.status="success"}catch(m){v.status="error",v.value=m}return v}(s.exports=g).prototype.finally=function(h){if("function"!=typeof h)return this;var k=this.constructor;return this.then(function(v){return k.resolve(h()).then(function(){return v})},function(v){return k.resolve(h()).then(function(){throw v})})},g.prototype.catch=function(h){return this.then(null,h)},g.prototype.then=function(h,k){if("function"!=typeof h&&this.state===p||"function"!=typeof k&&this.state===u)return this;var v=new this.constructor(l);return this.state!==_?f(v,this.state===p?h:k,this.outcome):this.queue.push(new C(v,h,k)),v},C.prototype.callFulfilled=function(h){o.resolve(this.promise,h)},C.prototype.otherCallFulfilled=function(h){f(this.promise,this.onFulfilled,h)},C.prototype.callRejected=function(h){o.reject(this.promise,h)},C.prototype.otherCallRejected=function(h){f(this.promise,this.onRejected,h)},o.resolve=function(h,k){var v=D(x,k);if("error"===v.status)return o.reject(h,v.value);var m=v.value;if(m)y(h,m);else{h.state=p,h.outcome=k;for(var S=-1,M=h.queue.length;++S<M;)h.queue[S].callFulfilled(k)}return h},o.reject=function(h,k){h.state=u,h.outcome=k;for(var v=-1,m=h.queue.length;++v<m;)h.queue[v].callRejected(k);return h},g.resolve=function(h){return h instanceof this?h:o.resolve(new this(l),h)},g.reject=function(h){var k=new this(l);return o.reject(k,h)},g.all=function(h){var k=this;if("[object Array]"!==Object.prototype.toString.call(h))return this.reject(new TypeError("must be an array"));var v=h.length,m=!1;if(!v)return this.resolve([]);for(var S=new Array(v),M=0,L=-1,$=new this(l);++L<v;)R(h[L],L);return $;function R(Z,ce){k.resolve(Z).then(function(P){S[ce]=P,++M!==v||m||(m=!0,o.resolve($,S))},function(P){m||(m=!0,o.reject($,P))})}},g.race=function(h){if("[object Array]"!==Object.prototype.toString.call(h))return this.reject(new TypeError("must be an array"));var v=h.length,m=!1;if(!v)return this.resolve([]);for(var S=-1,M=new this(l);++S<v;)this.resolve(h[S]).then(function($){m||(m=!0,o.resolve(M,$))},function($){m||(m=!0,o.reject(M,$))});return M}},{immediate:36}],38:[function(t,s,r){var a={};(0,t("./lib/utils/common").assign)(a,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),s.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,s,r){var a=t("./zlib/deflate"),l=t("./utils/common"),o=t("./utils/strings"),u=t("./zlib/messages"),p=t("./zlib/zstream"),_=Object.prototype.toString,g=0,C=-1,f=0,x=8;function y(h){if(!(this instanceof y))return new y(h);this.options=l.assign({level:C,method:x,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},h||{});var k=this.options;k.raw&&0<k.windowBits?k.windowBits=-k.windowBits:k.gzip&&0<k.windowBits&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var v=a.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(v!==g)throw new Error(u[v]);if(k.header&&a.deflateSetHeader(this.strm,k.header),k.dictionary){var m;if(m="string"==typeof k.dictionary?o.string2buf(k.dictionary):"[object ArrayBuffer]"===_.call(k.dictionary)?new Uint8Array(k.dictionary):k.dictionary,(v=a.deflateSetDictionary(this.strm,m))!==g)throw new Error(u[v]);this._dict_set=!0}}function D(h,k){var v=new y(k);if(v.push(h,!0),v.err)throw v.msg||u[v.err];return v.result}y.prototype.push=function(h,k){var v,m,S=this.strm,M=this.options.chunkSize;if(this.ended)return!1;m=k===~~k?k:!0===k?4:0,S.input="string"==typeof h?o.string2buf(h):"[object ArrayBuffer]"===_.call(h)?new Uint8Array(h):h,S.next_in=0,S.avail_in=S.input.length;do{if(0===S.avail_out&&(S.output=new l.Buf8(M),S.next_out=0,S.avail_out=M),1!==(v=a.deflate(S,m))&&v!==g)return this.onEnd(v),!(this.ended=!0);0!==S.avail_out&&(0!==S.avail_in||4!==m&&2!==m)||this.onData("string"===this.options.to?o.buf2binstring(l.shrinkBuf(S.output,S.next_out)):l.shrinkBuf(S.output,S.next_out))}while((0<S.avail_in||0===S.avail_out)&&1!==v);return 4===m?(v=a.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===g):2!==m||(this.onEnd(g),!(S.avail_out=0))},y.prototype.onData=function(h){this.chunks.push(h)},y.prototype.onEnd=function(h){h===g&&(this.result="string"===this.options.to?this.chunks.join(""):l.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},r.Deflate=y,r.deflate=D,r.deflateRaw=function(h,k){return(k=k||{}).raw=!0,D(h,k)},r.gzip=function(h,k){return(k=k||{}).gzip=!0,D(h,k)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,s,r){var a=t("./zlib/inflate"),l=t("./utils/common"),o=t("./utils/strings"),u=t("./zlib/constants"),p=t("./zlib/messages"),_=t("./zlib/zstream"),g=t("./zlib/gzheader"),C=Object.prototype.toString;function f(y){if(!(this instanceof f))return new f(y);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},y||{});var D=this.options;D.raw&&0<=D.windowBits&&D.windowBits<16&&(D.windowBits=-D.windowBits,0===D.windowBits&&(D.windowBits=-15)),!(0<=D.windowBits&&D.windowBits<16)||y&&y.windowBits||(D.windowBits+=32),15<D.windowBits&&D.windowBits<48&&!(15&D.windowBits)&&(D.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var h=a.inflateInit2(this.strm,D.windowBits);if(h!==u.Z_OK)throw new Error(p[h]);this.header=new g,a.inflateGetHeader(this.strm,this.header)}function x(y,D){var h=new f(D);if(h.push(y,!0),h.err)throw h.msg||p[h.err];return h.result}f.prototype.push=function(y,D){var h,k,v,m,S,M,L=this.strm,$=this.options.chunkSize,R=this.options.dictionary,Z=!1;if(this.ended)return!1;k=D===~~D?D:!0===D?u.Z_FINISH:u.Z_NO_FLUSH,L.input="string"==typeof y?o.binstring2buf(y):"[object ArrayBuffer]"===C.call(y)?new Uint8Array(y):y,L.next_in=0,L.avail_in=L.input.length;do{if(0===L.avail_out&&(L.output=new l.Buf8($),L.next_out=0,L.avail_out=$),(h=a.inflate(L,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&R&&(M="string"==typeof R?o.string2buf(R):"[object ArrayBuffer]"===C.call(R)?new Uint8Array(R):R,h=a.inflateSetDictionary(this.strm,M)),h===u.Z_BUF_ER
vendor: 4,236 bytes, line 1
1ROR&&!0===Z&&(h=u.Z_OK,Z=!1),h!==u.Z_STREAM_END&&h!==u.Z_OK)return this.onEnd(h),!(this.ended=!0);L.next_out&&(0!==L.avail_out&&h!==u.Z_STREAM_END&&(0!==L.avail_in||k!==u.Z_FINISH&&k!==u.Z_SYNC_FLUSH)||("string"===this.options.to?(v=o.utf8border(L.output,L.next_out),m=L.next_out-v,S=o.buf2string(L.output,v),L.next_out=m,L.avail_out=$-m,m&&l.arraySet(L.output,L.output,v,m,0),this.onData(S)):this.onData(l.shrinkBuf(L.output,L.next_out)))),0===L.avail_in&&0===L.avail_out&&(Z=!0)}while((0<L.avail_in||0===L.avail_out)&&h!==u.Z_STREAM_END);return h===u.Z_STREAM_END&&(k=u.Z_FINISH),k===u.Z_FINISH?(h=a.inflateEnd(this.strm),this.onEnd(h),this.ended=!0,h===u.Z_OK):k!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(L.avail_out=0))},f.prototype.onData=function(y){this.chunks.push(y)},f.prototype.onEnd=function(y){y===u.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):l.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},r.Inflate=f,r.inflate=x,r.inflateRaw=function(y,D){return(D=D||{}).raw=!0,x(y,D)},r.ungzip=x},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,s,r){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";r.assign=function(u){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var _=p.shift();if(_){if("object"!=typeof _)throw new TypeError(_+"must be non-object");for(var g in _)_.hasOwnProperty(g)&&(u[g]=_[g])}}return u},r.shrinkBuf=function(u,p){return u.length===p?u:u.subarray?u.subarray(0,p):(u.length=p,u)};var l={arraySet:function(u,p,_,g,C){if(p.subarray&&u.subarray)u.set(p.subarray(_,_+g),C);else for(var f=0;f<g;f++)u[C+f]=p[_+f]},flattenChunks:function(u){var p,_,g,C,f,x;for(p=g=0,_=u.length;p<_;p++)g+=u[p].length;for(x=new Uint8Array(g),p=C=0,_=u.length;p<_;p++)x.set(f=u[p],C),C+=f.length;return x}},o={arraySet:function(u,p,_,g,C){for(var f=0;f<g;f++)u[C+f]=p[_+f]},flattenChunks:function(u){return[].concat.apply([],u)}};r.setTyped=function(u){u?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,l)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(a)},{}],42:[function(t,s,r){var a=t("./common"),l=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var u=new a.Buf8(256),p=0;p<256;p++)u[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function _(g,C){if(C<65537&&(g.subarray&&o||!g.subarray&&l))return String.fromCharCode.apply(null,a.shrinkBuf(g,C));for(var f="",x=0;x<C;x++)f+=String.fromCharCode(g[x]);return f}u[254]=u[254]=1,r.string2buf=function(g){var C,f,x,y,D,h=g.length,k=0;for(y=0;y<h;y++)55296==(64512&(f=g.charCodeAt(y)))&&y+1<h&&56320==(64512&(x=g.charCodeAt(y+1)))&&(f=65536+(f-55296<<10)+(x-56320),y++),k+=f<128?1:f<2048?2:f<65536?3:4;for(C=new a.Buf8(k),y=D=0;D<k;y++)55296==(64512&(f=g.charCodeAt(y)))&&y+1<h&&56320==(64512&(x=g.charCodeAt(y+1)))&&(f=65536+(f-55296<<10)+(x-56320),y++),f<128?C[D++]=f:(f<2048?C[D++]=192|f>>>6:(f<65536?C[D++]=224|f>>>12:(C[D++]=240|f>>>18,C[D++]=128|f>>>12&63),C[D++]=128|f>>>6&63),C[D++]=128|63&f);return C},r.buf2binstring=function(g){return _(g,g.length)},r.binstring2buf=function(g){for(var C=new a.Buf8(g.length),f=0,x=C.length;f<x;f++)C[f]=g.charCodeAt(f);return C},r.buf2string=function(g,C){var f,x,y,D,h=C||g.length,k=new Array(2*h);for(f=x=0;f<h;)if((y=g[f++])<128)k[x++]=y;else if(4<(D=u[y]))k[x++]=65533,f+=D-1;else{for(y&=2===D?31:3===D?15:7;1<D&&f<h;)y=y<<6|63&g[f++],D--;1<D?k[x++]=65533:y<65536?k[x++]=y:(k[x++]=55296|(y-=65536)>>10&1023,k[x++]=56320|1023&y)}return _(k,x)},r.utf8border=function(g,C){var f;for((C=C||g.length)>g.length&&(C=g.length),f=C-1;0<=f&&128==(192&g[f]);)f--;return f<0||0===f?C:f+u[g[f]]>C?f:C}},{"./common":41}],43:[function(t,s,r){s.exports=function(a,l,o,u){for(var p=65535&a,_=a>>>16&65535,g=0;0!==o;){for(o-=g=2e3<o?2e3:o;_=_+(p=p+l[u++]|0)|0,--g;);p%=65521,_%=65521}return p|_<<16}},{}],44:[function(t,s,r){s.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ER
vendor: 7,630 bytes, line 1
1ROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,s,r){var a=function(){for(var l,o=[],u=0;u<256;u++){l=u;for(var p=0;p<8;p++)l=1&l?3988292384^l>>>1:l>>>1;o[u]=l}return o}();s.exports=function(l,o,u,p){var _=a,g=p+u;l^=-1;for(var C=p;C<g;C++)l=l>>>8^_[255&(l^o[C])];return~l}},{}],46:[function(t,s,r){var a,l=t("../utils/common"),o=t("./trees"),u=t("./adler32"),p=t("./crc32"),_=t("./messages"),g=0,f=0,x=-2,h=2,k=8,m=286,S=30,M=19,L=2*m+1,$=15,R=3,Z=258,ce=Z+R+1,P=42,B=113;function ae(w,Q){return w.msg=_[Q],Q}function ie(w){return(w<<1)-(4<w?9:0)}function pe(w){for(var Q=w.length;0<=--Q;)w[Q]=0}function W(w){var Q=w.state,I=Q.pending;I>w.avail_out&&(I=w.avail_out),0!==I&&(l.arraySet(w.output,Q.pending_buf,Q.pending_out,I,w.next_out),w.next_out+=I,Q.pending_out+=I,w.total_out+=I,w.avail_out-=I,Q.pending-=I,0===Q.pending&&(Q.pending_out=0))}function F(w,Q){o._tr_flush_block(w,0<=w.block_start?w.block_start:-1,w.strstart-w.block_start,Q),w.block_start=w.strstart,W(w.strm)}function q(w,Q){w.pending_buf[w.pending++]=Q}function J(w,Q){w.pending_buf[w.pending++]=Q>>>8&255,w.pending_buf[w.pending++]=255&Q}function re(w,Q){var I,c,d=w.max_chain_length,b=w.strstart,j=w.prev_length,H=w.nice_match,U=w.strstart>w.w_size-ce?w.strstart-(w.w_size-ce):0,se=w.window,le=w.w_mask,oe=w.prev,he=w.strstart+Z,_e=se[b+j-1],ye=se[b+j];w.prev_length>=w.good_match&&(d>>=2),H>w.lookahead&&(H=w.lookahead);do{if(se[(I=Q)+j]===ye&&se[I+j-1]===_e&&se[I]===se[b]&&se[++I]===se[b+1]){b+=2,I++;do{}while(se[++b]===se[++I]&&se[++b]===se[++I]&&se[++b]===se[++I]&&se[++b]===se[++I]&&se[++b]===se[++I]&&se[++b]===se[++I]&&se[++b]===se[++I]&&se[++b]===se[++I]&&b<he);if(c=Z-(he-b),b=he-Z,j<c){if(w.match_start=Q,H<=(j=c))break;_e=se[b+j-1],ye=se[b+j]}}}while((Q=oe[Q&le])>U&&0!=--d);return j<=w.lookahead?j:w.lookahead}function X(w){var Q,I,c,d,b,j,H,U,se,le,oe=w.w_size;do{if(d=w.window_size-w.lookahead-w.strstart,w.strstart>=oe+(oe-ce)){for(l.arraySet(w.window,w.window,oe,oe,0),w.match_start-=oe,w.strstart-=oe,w.block_start-=oe,Q=I=w.hash_size;c=w.head[--Q],w.head[Q]=oe<=c?c-oe:0,--I;);for(Q=I=oe;c=w.prev[--Q],w.prev[Q]=oe<=c?c-oe:0,--I;);d+=oe}if(0===w.strm.avail_in)break;if(H=w.window,U=w.strstart+w.lookahead,le=void 0,(se=d)<(le=(j=w.strm).avail_in)&&(le=se),I=0===le?0:(j.avail_in-=le,l.arraySet(H,j.input,j.next_in,le,U),1===j.state.wrap?j.adler=u(j.adler,H,le,U):2===j.state.wrap&&(j.adler=p(j.adler,H,le,U)),j.next_in+=le,j.total_in+=le,le),w.lookahead+=I,w.lookahead+w.insert>=R)for(w.ins_h=w.window[b=w.strstart-w.insert],w.ins_h=(w.ins_h<<w.hash_shift^w.window[b+1])&w.hash_mask;w.insert&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[b+R-1])&w.hash_mask,w.prev[b&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=b,b++,w.insert--,!(w.lookahead+w.insert<R)););}while(w.lookahead<ce&&0!==w.strm.avail_in)}function A(w,Q){for(var I,c;;){if(w.lookahead<ce){if(X(w),w.lookahead<ce&&Q===g)return 1;if(0===w.lookahead)break}if(I=0,w.lookahead>=R&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+R-1])&w.hash_mask,I=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),0!==I&&w.strstart-I<=w.w_size-ce&&(w.match_length=re(w,I)),w.match_length>=R)if(c=o._tr_tally(w,w.strstart-w.match_start,w.match_length-R),w.lookahead-=w.match_length,w.match_length<=w.max_lazy_match&&w.lookahead>=R){for(w.match_length--;w.strstart++,w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+R-1])&w.hash_mask,I=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart,0!=--w.match_length;);w.strstart++}else w.strstart+=w.match_length,w.match_length=0,w.ins_h=w.window[w.strstart],w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+1])&w.hash_mask;else c=o._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,w.strstart++;if(c&&(F(w,!1),0===w.strm.avail_out))return 1}return w.insert=w.strstart<R-1?w.strstart:R-1,4===Q?(F(w,!0),0===w.strm.avail_out?3:4):w.last_lit&&(F(w,!1),0===w.strm.avail_out)?1:2}function T(w,Q){for(var I,c,d;;){if(w.lookahead<ce){if(X(w),w.lookahead<ce&&Q===g)return 1;if(0===w.lookahead)break}if(I=0,w.lookahead>=R&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+R-1])&w.hash_mask,I=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),w.prev_length=w.match_length,w.prev_match=w.match_start,w.match_length=R-1,0!==I&&w.prev_length<w.max_lazy_match&&w.strstart-I<=w.w_size-ce&&(w.match_length=re(w,I),w.match_length<=5&&(1===w.strategy||w.match_length===R&&4096<w.strstart-w.match_start)&&(w.match_length=R-1)),w.prev_length>=R&&w.match_length<=w.prev_length){for(d=w.strstart+w.lookahead-R,c=o._tr_tally(w,w.strstart-1-w.prev_match,w.prev_length-R),w.lookahead-=w.prev_length-1,w.prev_length-=2;++w.strstart<=d&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+R-1])&w.hash_mask,I=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),0!=--w.prev_length;);if(w.match_available=0,w.match_length=R-1,w.strstart++,c&&(F(w,!1),0===w.strm.avail_out))return 1}else if(w.match_available){if((c=o._tr_tally(w,0,w.window[w.strstart-1]))&&F(w,!1),w.strstart++,w.lookahead--,0===w.strm.avail_out)return 1}else w.match_available=1,w.strstart++,w.lookahead--}return w.match_available&&(c=o._tr_tally(w,0,w.window[w.strstart-1]),w.match_available=0),w.insert=w.strstart<R-1?w.strstart:R-1,4===Q?(F(w,!0),0===w.strm.avail_out?3:4):w.last_lit&&(F(w,!1),0===w.strm.avail_out)?1:2}function z(w,Q,I,c,d){this.good_length=w,this.max_lazy=Q,this.nice_length=I,this.max_chain=c,this.func=d}function G(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=k,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*L),this.dyn_dtree=new l.Buf16(2*(2*S+1)),this.bl_tree=new l.Buf16(2*(2*M+1)),pe(this.dyn_ltree),pe(this.dyn_dtree),pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16($+1),this.heap=new l.Buf16(2*m+1),pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*m+1),pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function O(w){var Q;return w&&w.state?(w.total_in=w.total_out=0,w.data_type=h,(Q=w.state).pending=0,Q.pending_out=0,Q.wrap<0&&(Q.wrap=-Q.wrap),Q.status=Q.wrap?P:B,w.adler=2===Q.wrap?0:1,Q.last_flush=g,o._tr_init(Q),f):ae(w,x)}function N(w){var I,Q=O(w);return Q===f&&((I=w.state).window_size=2*I.w_size,pe(I.head),I.max_lazy_match=a[I.level].max_lazy,I.good_match=a[I.level].good_length,I.nice_match=a[I.level].nice_length,I.max_chain_length=a[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=R-1,I.match_available=0,I.ins_h=0),Q}function ee(w,Q,I,c,d,b){if(!w)return x;var j=1;if(-1===Q&&(Q=6),c<0?(j=0,c=-c):15<c&&(j=2,c-=16),d<1||9<d||I!==k||c<8||15<c||Q<0||9<Q||b<0||4<b)return ae(w,x);8===c&&(c=9);var H=new G;return(w.state=H).strm=w,H.wrap=j,H.gzhead=null,H.w_bits=c,H.w_size=1<<H.w_bits,H.w_mask=
vendor: 8,467 bytes, line 1
1H.w_size-1,H.hash_bits=d+7,H.hash_size=1<<H.hash_bits,H.hash_mask=H.hash_size-1,H.hash_shift=~~((H.hash_bits+R-1)/R),H.window=new l.Buf8(2*H.w_size),H.head=new l.Buf16(H.hash_size),H.prev=new l.Buf16(H.w_size),H.lit_bufsize=1<<d+6,H.pending_buf_size=4*H.lit_bufsize,H.pending_buf=new l.Buf8(H.pending_buf_size),H.d_buf=1*H.lit_bufsize,H.l_buf=3*H.lit_bufsize,H.level=Q,H.strategy=b,H.method=I,N(w)}a=[new z(0,0,0,0,function(w,Q){var I=65535;for(I>w.pending_buf_size-5&&(I=w.pending_buf_size-5);;){if(w.lookahead<=1){if(X(w),0===w.lookahead&&Q===g)return 1;if(0===w.lookahead)break}w.strstart+=w.lookahead,w.lookahead=0;var c=w.block_start+I;if((0===w.strstart||w.strstart>=c)&&(w.lookahead=w.strstart-c,w.strstart=c,F(w,!1),0===w.strm.avail_out)||w.strstart-w.block_start>=w.w_size-ce&&(F(w,!1),0===w.strm.avail_out))return 1}return w.insert=0,4===Q?(F(w,!0),0===w.strm.avail_out?3:4):(w.strstart>w.block_start&&F(w,!1),1)}),new z(4,4,8,4,A),new z(4,5,16,8,A),new z(4,6,32,32,A),new z(4,4,16,16,T),new z(8,16,32,32,T),new z(8,16,128,128,T),new z(8,32,128,256,T),new z(32,128,258,1024,T),new z(32,258,258,4096,T)],r.deflateInit=function(w,Q){return ee(w,Q,k,15,8,0)},r.deflateInit2=ee,r.deflateReset=N,r.deflateResetKeep=O,r.deflateSetHeader=function(w,Q){return w&&w.state?2!==w.state.wrap?x:(w.state.gzhead=Q,f):x},r.deflate=function(w,Q){var I,c,d,b;if(!w||!w.state||5<Q||Q<0)return w?ae(w,x):x;if(c=w.state,!w.output||!w.input&&0!==w.avail_in||666===c.status&&4!==Q)return ae(w,0===w.avail_out?-5:x);if(c.strm=w,I=c.last_flush,c.last_flush=Q,c.status===P)if(2===c.wrap)w.adler=0,q(c,31),q(c,139),q(c,8),c.gzhead?(q(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),q(c,255&c.gzhead.time),q(c,c.gzhead.time>>8&255),q(c,c.gzhead.time>>16&255),q(c,c.gzhead.time>>24&255),q(c,9===c.level?2:2<=c.strategy||c.level<2?4:0),q(c,255&c.gzhead.os),c.gzhead.extra&&c.gzhead.extra.length&&(q(c,255&c.gzhead.extra.length),q(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(w.adler=p(w.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=69):(q(c,0),q(c,0),q(c,0),q(c,0),q(c,0),q(c,9===c.level?2:2<=c.strategy||c.level<2?4:0),q(c,3),c.status=B);else{var j=k+(c.w_bits-8<<4)<<8;j|=(2<=c.strategy||c.level<2?0:c.level<6?1:6===c.level?2:3)<<6,0!==c.strstart&&(j|=32),j+=31-j%31,c.status=B,J(c,j),0!==c.strstart&&(J(c,w.adler>>>16),J(c,65535&w.adler)),w.adler=1}if(69===c.status)if(c.gzhead.extra){for(d=c.pending;c.gzindex<(65535&c.gzhead.extra.length)&&(c.pending!==c.pending_buf_size||(c.gzhead.hcrc&&c.pending>d&&(w.adler=p(w.adler,c.pending_buf,c.pending-d,d)),W(w),d=c.pending,c.pending!==c.pending_buf_size));)q(c,255&c.gzhead.extra[c.gzindex]),c.gzindex++;c.gzhead.hcrc&&c.pending>d&&(w.adler=p(w.adler,c.pending_buf,c.pending-d,d)),c.gzindex===c.gzhead.extra.length&&(c.gzindex=0,c.status=73)}else c.status=73;if(73===c.status)if(c.gzhead.name){d=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>d&&(w.adler=p(w.adler,c.pending_buf,c.pending-d,d)),W(w),d=c.pending,c.pending===c.pending_buf_size)){b=1;break}b=c.gzindex<c.gzhead.name.length?255&c.gzhead.name.charCodeAt(c.gzindex++):0,q(c,b)}while(0!==b);c.gzhead.hcrc&&c.pending>d&&(w.adler=p(w.adler,c.pending_buf,c.pending-d,d)),0===b&&(c.gzindex=0,c.status=91)}else c.status=91;if(91===c.status)if(c.gzhead.comment){d=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>d&&(w.adler=p(w.adler,c.pending_buf,c.pending-d,d)),W(w),d=c.pending,c.pending===c.pending_buf_size)){b=1;break}b=c.gzindex<c.gzhead.comment.length?255&c.gzhead.comment.charCodeAt(c.gzindex++):0,q(c,b)}while(0!==b);c.gzhead.hcrc&&c.pending>d&&(w.adler=p(w.adler,c.pending_buf,c.pending-d,d)),0===b&&(c.status=103)}else c.status=103;if(103===c.status&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&W(w),c.pending+2<=c.pending_buf_size&&(q(c,255&w.adler),q(c,w.adler>>8&255),w.adler=0,c.status=B)):c.status=B),0!==c.pending){if(W(w),0===w.avail_out)return c.last_flush=-1,f}else if(0===w.avail_in&&ie(Q)<=ie(I)&&4!==Q)return ae(w,-5);if(666===c.status&&0!==w.avail_in)return ae(w,-5);if(0!==w.avail_in||0!==c.lookahead||Q!==g&&666!==c.status){var H=2===c.strategy?function(U,se){for(var le;;){if(0===U.lookahead&&(X(U),0===U.lookahead)){if(se===g)return 1;break}if(U.match_length=0,le=o._tr_tally(U,0,U.window[U.strstart]),U.lookahead--,U.strstart++,le&&(F(U,!1),0===U.strm.avail_out))return 1}return U.insert=0,4===se?(F(U,!0),0===U.strm.avail_out?3:4):U.last_lit&&(F(U,!1),0===U.strm.avail_out)?1:2}(c,Q):3===c.strategy?function(U,se){for(var le,oe,he,_e,ye=U.window;;){if(U.lookahead<=Z){if(X(U),U.lookahead<=Z&&se===g)return 1;if(0===U.lookahead)break}if(U.match_length=0,U.lookahead>=R&&0<U.strstart&&(oe=ye[he=U.strstart-1])===ye[++he]&&oe===ye[++he]&&oe===ye[++he]){_e=U.strstart+Z;do{}while(oe===ye[++he]&&oe===ye[++he]&&oe===ye[++he]&&oe===ye[++he]&&oe===ye[++he]&&oe===ye[++he]&&oe===ye[++he]&&oe===ye[++he]&&he<_e);U.match_length=Z-(_e-he),U.match_length>U.lookahead&&(U.match_length=U.lookahead)}if(U.match_length>=R?(le=o._tr_tally(U,1,U.match_length-R),U.lookahead-=U.match_length,U.strstart+=U.match_length,U.match_length=0):(le=o._tr_tally(U,0,U.window[U.strstart]),U.lookahead--,U.strstart++),le&&(F(U,!1),0===U.strm.avail_out))return 1}return U.insert=0,4===se?(F(U,!0),0===U.strm.avail_out?3:4):U.last_lit&&(F(U,!1),0===U.strm.avail_out)?1:2}(c,Q):a[c.level].func(c,Q);if(3!==H&&4!==H||(c.status=666),1===H||3===H)return 0===w.avail_out&&(c.last_flush=-1),f;if(2===H&&(1===Q?o._tr_align(c):5!==Q&&(o._tr_stored_block(c,0,0,!1),3===Q&&(pe(c.head),0===c.lookahead&&(c.strstart=0,c.block_start=0,c.insert=0))),W(w),0===w.avail_out))return c.last_flush=-1,f}return 4!==Q?f:c.wrap<=0?1:(2===c.wrap?(q(c,255&w.adler),q(c,w.adler>>8&255),q(c,w.adler>>16&255),q(c,w.adler>>24&255),q(c,255&w.total_in),q(c,w.total_in>>8&255),q(c,w.total_in>>16&255),q(c,w.total_in>>24&255)):(J(c,w.adler>>>16),J(c,65535&w.adler)),W(w),0<c.wrap&&(c.wrap=-c.wrap),0!==c.pending?f:1)},r.deflateEnd=function(w){var Q;return w&&w.state?(Q=w.state.status)!==P&&69!==Q&&73!==Q&&91!==Q&&103!==Q&&Q!==B&&666!==Q?ae(w,x):(w.state=null,Q===B?ae(w,-3):f):x},r.deflateSetDictionary=function(w,Q){var I,c,d,b,j,H,U,se,le=Q.length;if(!w||!w.state||2===(b=(I=w.state).wrap)||1===b&&I.status!==P||I.lookahead)return x;for(1===b&&(w.adler=u(w.adler,Q,le,0)),I.wrap=0,le>=I.w_size&&(0===b&&(pe(I.head),I.strstart=0,I.block_start=0,I.insert=0),se=new l.Buf8(I.w_size),l.arraySet(se,Q,le-I.w_size,I.w_size,0),Q=se,le=I.w_size),j=w.avail_in,H=w.next_in,U=w.input,w.avail_in=le,w.next_in=0,w.input=Q,X(I);I.lookahead>=R;){for(c=I.strstart,d=I.lookahead-(R-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[c+R-1])&I.hash_mask,I.prev[c&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=c,c++,--d;);I.strstart=c,I.lookahead=R-1,X(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=R-1,I.match_available=0,w.next_in=H,w.input=U,w.avail_in=j,I.wrap=b,f},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,s,r){s.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,s,r){s.exports=function(a,l){var o,u,p,_,g,C,f,x,y,D,h,k,v,m,S,M,L,$,R,Z,ce,P,B,E,V;E=a.input,p=(u=a.next_in)+(a.avail_in-5),V=a.output,g=(_=a.next_out)-(l-a.avail_out),C=_+(a.avail_out-257),f=(o=a.state).dmax,x=o.wsize,y=o.whave,D=o.wnext,h=o.window,k=o.hold,v=o.bits,m=o.lencode,S=o.distcode,M=(1<<o.lenbits)-1,L=(1<<o.distbits)-1;e:do{v<15&&(k+=E[u++]<<v,k+=E[u++]<<(v+=8),v+=8),$=m[k&M];t:for(;;){if(k>>>=R=$>>>24,v-=R,0==(R=$>>>16&255))V[_++]=65535&$;else{if(!(16&R)){if(!(64&R)){$=m[(65535&$)+(k&(1<<R)-1)];continue t}if(32&R){o.mode=12;break e}a.msg="invalid literal/length code",o.mode=30;break e}Z=65535&$,(R&=15)&&(v<R&&(k+=E[u++]<<v,v+=8),Z+=k&(1<<R)-1,k>>>=R,v-=R),v<15&&(k+=E[u++]<<v,k+=E[u++]<<(v+=8),v+=8),$=S[k&L];n:for(;;){if(k>>>=R=$>>>24,v-=R,!(16&(R=$>>>16&255))){if(!(64&R)){$=S[(65535&$)+(k&(1<<R)-1)];continue n}a.msg="invalid distance code",o.mode=30;break e}if(ce=65535&$,v<(R&=15)&&(k+=E[u++]<<v,(v+=8)<R&&(k+=E[u++]<<v,v+=8)),f<(ce+=k&(1<<R)-1)){a.msg="invalid distance too far back",o.mode=30;break e}if(k>>>=R,v-=R,(R=_-g)<ce){if(y<(R=ce-R)&&o.sane){a.msg="invalid distance too far back",o.mode=30;break e}
vendor: 4,303 bytes, line 1
1if(B=h,(P=0)===D){if(P+=x-R,R<Z){for(Z-=R;V[_++]=h[P++],--R;);P=_-ce,B=V}}else if(D<R){if(P+=x+D-R,(R-=D)<Z){for(Z-=R;V[_++]=h[P++],--R;);if(P=0,D<Z){for(Z-=R=D;V[_++]=h[P++],--R;);P=_-ce,B=V}}}else if(P+=D-R,R<Z){for(Z-=R;V[_++]=h[P++],--R;);P=_-ce,B=V}for(;2<Z;)V[_++]=B[P++],V[_++]=B[P++],V[_++]=B[P++],Z-=3;Z&&(V[_++]=B[P++],1<Z&&(V[_++]=B[P++]))}else{for(P=_-ce;V[_++]=V[P++],V[_++]=V[P++],V[_++]=V[P++],2<(Z-=3););Z&&(V[_++]=V[P++],1<Z&&(V[_++]=V[P++]))}break}}break}}while(u<p&&_<C);u-=Z=v>>3,k&=(1<<(v-=Z<<3))-1,a.next_in=u,a.next_out=_,a.avail_in=u<p?p-u+5:5-(u-p),a.avail_out=_<C?C-_+257:257-(_-C),o.hold=k,o.bits=v}},{}],49:[function(t,s,r){var a=t("../utils/common"),l=t("./adler32"),o=t("./crc32"),u=t("./inffast"),p=t("./inftrees"),C=0,f=-2,x=1,y=852,D=592;function h(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function k(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(P){var B;return P&&P.state?(P.total_in=P.total_out=(B=P.state).total=0,P.msg="",B.wrap&&(P.adler=1&B.wrap),B.mode=x,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new a.Buf32(y),B.distcode=B.distdyn=new a.Buf32(D),B.sane=1,B.back=-1,C):f}function m(P){var B;return P&&P.state?((B=P.state).wsize=0,B.whave=0,B.wnext=0,v(P)):f}function S(P,B){var E,V;return P&&P.state?(V=P.state,B<0?(E=0,B=-B):(E=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?f:(null!==V.window&&V.wbits!==B&&(V.window=null),V.wrap=E,V.wbits=B,m(P))):f}function M(P,B){var E,V;return P?(V=new k,(P.state=V).window=null,(E=S(P,B))!==C&&(P.state=null),E):f}var L,$,R=!0;function Z(P){if(R){var B;for(L=new a.Buf32(512),$=new a.Buf32(32),B=0;B<144;)P.lens[B++]=8;for(;B<256;)P.lens[B++]=9;for(;B<280;)P.lens[B++]=7;for(;B<288;)P.lens[B++]=8;for(p(1,P.lens,0,288,L,0,P.work,{bits:9}),B=0;B<32;)P.lens[B++]=5;p(2,P.lens,0,32,$,0,P.work,{bits:5}),R=!1}P.lencode=L,P.lenbits=9,P.distcode=$,P.distbits=5}function ce(P,B,E,V){var ne,Y=P.state;return null===Y.window&&(Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new a.Buf8(Y.wsize)),V>=Y.wsize?(a.arraySet(Y.window,B,E-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(V<(ne=Y.wsize-Y.wnext)&&(ne=V),a.arraySet(Y.window,B,E-V,ne,Y.wnext),(V-=ne)?(a.arraySet(Y.window,B,E-V,V,0),Y.wnext=V,Y.whave=Y.wsize):(Y.wnext+=ne,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave<Y.wsize&&(Y.whave+=ne))),0}r.inflateReset=m,r.inflateReset2=S,r.inflateResetKeep=v,r.inflateInit=function(P){return M(P,15)},r.inflateInit2=M,r.inflate=function(P,B){var E,V,ne,Y,ae,ie,pe,W,F,q,J,re,X,A,T,z,G,O,N,ee,w,Q,I,c,d=0,b=new a.Buf8(4),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&0!==P.avail_in)return f;12===(E=P.state).mode&&(E.mode=13),ae=P.next_out,ne=P.output,Y=P.next_in,V=P.input,W=E.hold,F=E.bits,q=ie=P.avail_in,J=pe=P.avail_out,Q=C;e:for(;;)switch(E.mode){case x:if(0===E.wrap){E.mode=13;break}for(;F<16;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if(2&E.wrap&&35615===W){b[E.check=0]=255&W,b[1]=W>>>8&255,E.check=o(E.check,b,2,0),F=W=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&W)<<8)+(W>>8))%31){P.msg="incorrect header check",E.mode=30;break}if(8!=(15&W)){P.msg="unknown compression method",E.mode=30;break}if(F-=4,w=8+(15&(W>>>=4)),0===E.wbits)E.wbits=w;else if(w>E.wbits){P.msg="invalid window size",E.mode=30;break}E.dmax=1<<w,P.adler=E.check=1,E.mode=512&W?10:12,F=W=0;break;case 2:for(;F<16;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if(E.flags=W,8!=(255&E.flags)){P.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){P.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=W>>8&1),512&E.flags&&(b[0]=255&W,b[1]=W>>>8&255,E.check=o(E.check,b,2,0)),F=W=0,E.mode=3;case 3:for(;F<32;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}E.head&&(E.head.time=W),512&E.flags&&(b[0]=255&W,b[1]=W>>>8&255,b[2]=W>>
vendor: 4,555 bytes, line 1
1>16&255,b[3]=W>>>24&255,E.check=o(E.check,b,4,0)),F=W=0,E.mode=4;case 4:for(;F<16;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}E.head&&(E.head.xflags=255&W,E.head.os=W>>8),512&E.flags&&(b[0]=255&W,b[1]=W>>>8&255,E.check=o(E.check,b,2,0)),F=W=0,E.mode=5;case 5:if(1024&E.flags){for(;F<16;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}E.length=W,E.head&&(E.head.extra_len=W),512&E.flags&&(b[0]=255&W,b[1]=W>>>8&255,E.check=o(E.check,b,2,0)),F=W=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(ie<(re=E.length)&&(re=ie),re&&(E.head&&(w=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),a.arraySet(E.head.extra,V,Y,re,w)),512&E.flags&&(E.check=o(E.check,V,re,Y)),ie-=re,Y+=re,E.length-=re),E.length))break e;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(0===ie)break e;for(re=0;w=V[Y+re++],E.head&&w&&E.length<65536&&(E.head.name+=String.fromCharCode(w)),w&&re<ie;);if(512&E.flags&&(E.check=o(E.check,V,re,Y)),ie-=re,Y+=re,w)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(0===ie)break e;for(re=0;w=V[Y+re++],E.head&&w&&E.length<65536&&(E.head.comment+=String.fromCharCode(w)),w&&re<ie;);if(512&E.flags&&(E.check=o(E.check,V,re,Y)),ie-=re,Y+=re,w)break e}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;F<16;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if(W!==(65535&E.check)){P.msg="header crc mismatch",E.mode=30;break}F=W=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),P.adler=E.check=0,E.mode=12;break;case 10:for(;F<32;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}P.adler=E.check=h(W),F=W=0,E.mode=11;case 11:if(0===E.havedict)return P.next_out=ae,P.avail_out=pe,P.next_in=Y,P.avail_in=ie,E.hold=W,E.bits=F,2;P.adler=E.check=1,E.mode=12;case 12:if(5===B||6===B)break e;case 13:if(E.last){W>>>=7&F,F-=7&F,E.mode=27;break}for(;F<3;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}switch(E.last=1&W,F-=1,3&(W>>>=1)){case 0:E.mode=14;break;case 1:if(Z(E),E.mode=20,6!==B)break;W>>>=2,F-=2;break e;case 2:E.mode=17;break;case 3:P.msg="invalid block type",E.mode=30}W>>>=2,F-=2;break;case 14:for(W>>>=7&F,F-=7&F;F<32;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if((65535&W)!=(W>>>16^65535)){P.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&W,F=W=0,E.mode=15,6===B)break e;case 15:E.mode=16;case 16:if(re=E.length){if(ie<re&&(re=ie),pe<re&&(re=pe),0===re)break e;a.arraySet(ne,V,Y,re,ae),ie-=re,Y+=re,pe-=re,ae+=re,E.length-=re;break}E.mode=12;break;case 17:for(;F<14;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if(E.nlen=257+(31&W),F-=5,E.ndist=1+(31&(W>>>=5)),F-=5,E.ncode=4+(15&(W>>>=5)),W>>>=4,F-=4,286<E.nlen||30<E.ndist){P.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;F<3;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}E.lens[j[E.have++]]=7&W,W>>>=3,F-=3}for(;E.have<19;)E.lens[j[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,Q=p(0,E.lens,0,19,E.lencode,0,E.work,I={bits:E.lenbits}),E.lenbits=I.bits,Q){P.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;z=(d=E.lencode[W&(1<<E.lenbits)-1])>>>16&255,G=65535&d,!((T=d>>>24)<=F);){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if(G<16)W>>>=T,F-=T,E.lens[E.have++]=G;else{if(16===G){for(c=T+2;F<c;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if(W>>>=T,F-=T,0===E.have){P.msg="invalid bit length repeat",E.mode=30;break}w=E.lens[E.have-1],re=3+(3&W),W>>>=2,F-=2}else if(17===G){for(c=T+3;F<c;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}F-=T,w=0,re=3+(7&(W>>>=T)),W>>>=3,F-=3}else{for(c=T+7;F<c;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}F-=T,w=0,re=11+(127&(W>>>=T)),W>>>=7,F-=7}if(E.have+re>E.nlen+E.ndist){P.msg="invalid bit length repeat",E.mode=30;break}for(;re--;)E.lens[E.have++]=w}}if(30===E.mode)break;if(0===E.lens[256]){P.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,Q=p(1,E.lens,0,E.nlen,E.lencode,0,E.work,I={bits:E.lenbits}),E.lenbits=I.bits,Q){P.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,Q=p(2,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,I={bits:E.distbits}),E.distbits=I.bits,Q){P.msg="invalid distances set",E.mode=30;break}if(E.mode=20,6===B)break e;case 20:E.mode=21;case 21:if(6<=ie&&258<=pe){P.next_out=ae,P.avail_out=pe,P.next_in=Y,P.avail_in=ie,E.hold=W,E.bits=F,u(P,J),ae=P.next_out,ne=P.output,pe=P.avail_out,Y=P.next_in,V=P.input,ie=P.avail_in,W=E.hold,F=E.bits,12===E.mode&&(E.back=-1);break}for(E.back=0;z=(d=E.lencode[W&(1<<E.lenbits)-1])>>>16&255,G=65535&d,!((T=d>>>
vendor: 4,195 bytes, line 1
124)<=F);){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if(z&&!(240&z)){for(O=T,N=z,ee=G;z=(d=E.lencode[ee+((W&(1<<O+N)-1)>>O)])>>>16&255,G=65535&d,!(O+(T=d>>>24)<=F);){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}W>>>=O,F-=O,E.back+=O}if(W>>>=T,F-=T,E.back+=T,E.length=G,0===z){E.mode=26;break}if(32&z){E.back=-1,E.mode=12;break}if(64&z){P.msg="invalid literal/length code",E.mode=30;break}E.extra=15&z,E.mode=22;case 22:if(E.extra){for(c=E.extra;F<c;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}E.length+=W&(1<<E.extra)-1,W>>>=E.extra,F-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;z=(d=E.distcode[W&(1<<E.distbits)-1])>>>16&255,G=65535&d,!((T=d>>>24)<=F);){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if(!(240&z)){for(O=T,N=z,ee=G;z=(d=E.distcode[ee+((W&(1<<O+N)-1)>>O)])>>>16&255,G=65535&d,!(O+(T=d>>>24)<=F);){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}W>>>=O,F-=O,E.back+=O}if(W>>>=T,F-=T,E.back+=T,64&z){P.msg="invalid distance code",E.mode=30;break}E.offset=G,E.extra=15&z,E.mode=24;case 24:if(E.extra){for(c=E.extra;F<c;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}E.offset+=W&(1<<E.extra)-1,W>>>=E.extra,F-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){P.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(0===pe)break e;if(E.offset>(re=J-pe)){if((re=E.offset-re)>E.whave&&E.sane){P.msg="invalid distance too far back",E.mode=30;break}X=re>E.wnext?E.wsize-(re-=E.wnext):E.wnext-re,re>E.length&&(re=E.length),A=E.window}else A=ne,X=ae-E.offset,re=E.length;for(pe<re&&(re=pe),pe-=re,E.length-=re;ne[ae++]=A[X++],--re;);0===E.length&&(E.mode=21);break;case 26:if(0===pe)break e;ne[ae++]=E.length,pe--,E.mode=21;break;case 27:if(E.wrap){for(;F<32;){if(0===ie)break e;ie--,W|=V[Y++]<<F,F+=8}if(P.total_out+=J-=pe,E.total+=J,J&&(P.adler=E.check=E.flags?o(E.check,ne,J,ae-J):l(E.check,ne,J,ae-J)),J=pe,(E.flags?W:h(W))!==E.check){P.msg="incorrect data check",E.mode=30;break}F=W=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;F<32;){if(0===ie)break e;ie--,W+=V[Y++]<<F,F+=8}if(W!==(4294967295&E.total)){P.msg="incorrect length check",E.mode=30;break}F=W=0}E.mode=29;case 29:Q=1;break e;case 30:Q=-3;break e;case 31:return-4;default:return f}return P.next_out=ae,P.avail_out=pe,P.next_in=Y,P.avail_in=ie,E.hold=W,E.bits=F,(E.wsize||J!==P.avail_out&&E.mode<30&&(E.mode<27||4!==B))&&ce(P,P.output,P.next_out,J-P.avail_out)?(E.mode=31,-4):(J-=P.avail_out,P.total_in+=q-=P.avail_in,P.total_out+=J,E.total+=J,E.wrap&&J&&(P.adler=E.check=E.flags?o(E.check,ne,J,P.next_out-J):l(E.check,ne,J,P.next_out-J)),P.data_type=E.bits+(E.last?64:0)+(12===E.mode?128:0)+(20===E.mode||15===E.mode?256:0),(0==q&&0===J||4===B)&&Q===C&&(Q=-5),Q)},r.inflateEnd=function(P){if(!P||!P.state)return f;var B=P.state;return B.window&&(B.window=null),P.state=null,C},r.inflateGetHeader=function(P,B){var E;return P&&P.state&&2&(E=P.state).wrap?((E.head=B).done=!1,C):f},r.inflateSetDictionary=function(P,B){var E,V=B.length;return P&&P.state?0!==(E=P.state).wrap&&11!==E.mode?f:11===E.mode&&l(1,B,V,0)!==E.check?-3:ce(P,B,V,V)?(E.mode=31,-4):(E.havedict=1,C):f},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,s,r){var a=t("../utils/common"),l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];s.exports=function(_,g,C,f,x,y,D,h){var k,v,m,S,M,L,$,R,Z,ce=h.bits,P=0,B=0,E=0,V=0,ne=0,Y=0,ae=0,ie=0,pe=0,W=0,F=null,q=0,J=new a.Buf16(16),re=new a.Buf16(16),X=null,A=0;for(P=0;P<=15;P++)J[P]=0;for(B=0;B<f;B++)J[g[C+B]]++;for(ne=ce,V=15;1<=V&&0===J[V];V--);if(V<ne&&(ne=V),0===V)return x[y++]=20971520,x[y++]=20971520,h.bits=1,0;for(E=1;E<V&&0===J[E];E++);for(ne<E&&(ne=E),P=ie=1;P<=15;P++)if(ie<<=1,(ie-=J[P])<0)return-1;if(0<ie&&(0===_||1!==V))return-1;for(re[1]=0,P=1;P<15;P++)re[P+1]=re[P]+J[P];for(B=0;B<f;B++)0!==g[C+B]&&(D[re[g[C+B]]++]=B);
vendor: 4,513 bytes, line 1
1if(L=0===_?(F=X=D,19):1===_?(F=l,q-=257,X=o,A-=257,256):(F=u,X=p,-1),P=E,M=y,ae=B=W=0,m=-1,S=(pe=1<<(Y=ne))-1,1===_&&852<pe||2===_&&592<pe)return 1;for(;;){for($=P-ae,Z=D[B]<L?(R=0,D[B]):D[B]>L?(R=X[A+D[B]],F[q+D[B]]):(R=96,0),k=1<<P-ae,E=v=1<<Y;x[M+(W>>ae)+(v-=k)]=$<<24|R<<16|Z,0!==v;);for(k=1<<P-1;W&k;)k>>=1;if(0!==k?(W&=k-1,W+=k):W=0,B++,0==--J[P]){if(P===V)break;P=g[C+D[B]]}if(ne<P&&(W&S)!==m){for(0===ae&&(ae=ne),M+=E,ie=1<<(Y=P-ae);Y+ae<V&&!((ie-=J[Y+ae])<=0);)Y++,ie<<=1;if(pe+=1<<Y,1===_&&852<pe||2===_&&592<pe)return 1;x[m=W&S]=ne<<24|Y<<16|M-y}}return 0!==W&&(x[M+W]=P-ae<<24|64<<16),h.bits=ne,0}},{"../utils/common":41}],51:[function(t,s,r){s.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,s,r){var a=t("../utils/common");function u(d){for(var b=d.length;0<=--b;)d[b]=0}var g=256,C=286,f=30,D=15,h=16,L=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],$=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ce=new Array(576);u(ce);var P=new Array(60);u(P);var B=new Array(512);u(B);var E=new Array(256);u(E);var V=new Array(29);u(V);var ne,Y,ae,ie=new Array(f);function pe(d,b,j,H,U){this.static_tree=d,this.extra_bits=b,this.extra_base=j,this.elems=H,this.max_length=U,this.has_stree=d&&d.length}function W(d,b){this.dyn_tree=d,this.max_code=0,this.stat_desc=b}function F(d){return d<256?B[d]:B[256+(d>>>7)]}function q(d,b){d.pending_buf[d.pending++]=255&b,d.pending_buf[d.pending++]=b>>>8&255}function J(d,b,j){d.bi_valid>h-j?(d.bi_buf|=b<<d.bi_valid&65535,q(d,d.bi_buf),d.bi_buf=b>>h-d.bi_valid,d.bi_valid+=j-h):(d.bi_buf|=b<<d.bi_valid&65535,d.bi_valid+=j)}function re(d,b,j){J(d,j[2*b],j[2*b+1])}function X(d,b){for(var j=0;j|=1&d,d>>>=1,j<<=1,0<--b;);return j>>>1}function A(d,b,j){var H,U,se=new Array(D+1),le=0;for(H=1;H<=D;H++)se[H]=le=le+j[H-1]<<1;for(U=0;U<=b;U++){var oe=d[2*U+1];0!==oe&&(d[2*U]=X(se[oe]++,oe))}}function T(d){var b;for(b=0;b<C;b++)d.dyn_ltree[2*b]=0;for(b=0;b<f;b++)d.dyn_dtree[2*b]=0;for(b=0;b<19;b++)d.bl_tree[2*b]=0;d.dyn_ltree[512]=1,d.opt_len=d.static_len=0,d.last_lit=d.matches=0}function z(d){8<d.bi_valid?q(d,d.bi_buf):0<d.bi_valid&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0}function G(d,b,j,H){var U=2*b,se=2*j;return d[U]<d[se]||d[U]===d[se]&&H[b]<=H[j]}function O(d,b,j){for(var H=d.heap[j],U=j<<1;U<=d.heap_len&&(U<d.heap_len&&G(b,d.heap[U+1],d.heap[U],d.depth)&&U++,!G(b,H,d.heap[U],d.depth));)d.heap[j]=d.heap[U],j=U,U<<=1;d.heap[j]=H}function N(d,b,j){var H,U,se,le,oe=0;if(0!==d.last_lit)for(;H=d.pending_buf[d.d_buf+2*oe]<<8|d.pending_buf[d.d_buf+2*oe+1],U=d.pending_buf[d.l_buf+oe],oe++,0===H?re(d,U,b):(re(d,(se=E[U])+g+1,b),0!==(le=L[se])&&J(d,U-=V[se],le),re(d,se=F(--H),j),0!==(le=$[se])&&J(d,H-=ie[se],le)),oe<d.last_lit;);re(d,256,b)}function ee(d,b){var j,H,U,se=b.dyn_tree,le=b.stat_desc.static_tree,oe=b.stat_desc.has_stree,he=b.stat_desc.elems,_e=-1;for(d.heap_len=0,d.heap_max=573,j=0;j<he;j++)0!==se[2*j]?(d.heap[++d.heap_len]=_e=j,d.depth[j]=0):se[2*j+1]=0;for(;d.heap_len<2;)se[2*(U=d.heap[++d.heap_len]=_e<2?++_e:0)]=1,d.depth[U]=0,d.opt_len--,oe&&(d.static_len-=le[2*U+1]);for(b.max_code=_e,j=d.heap_len>>1;1<=j;j--)O(d,se,j);for(U=he;j=d.heap[1],d.heap[1]=d.heap[d.heap_len--],O(d,se,1),H=d.heap[1],d.heap[--d.heap_max]=j,d.heap[--d.heap_max]=H,se[2*U]=se[2*j]+se[2*H],d.depth[U]=(d.depth[j]>=d.depth[H]?d.depth[j]:d.depth[H])+1,se[2*j+1]=se[2*H+1]=U,d.heap[1]=U++,O(d,se,1),2<=d.heap_len;);d.heap[--d.heap_max]=d.heap[1],function(ye,Le){var xt,st,sn,De,zn,_s,mt=Le.dyn_tree,lc=Le.max_code,gb=Le.stat_desc.static_tree,_b=Le.stat_desc.has_stree,vb=Le.stat_desc.extra_bits,cc=Le.stat_desc.extra_base,an=Le.stat_desc.max_length,Yn=0;for(De=0;De<=D;De++)ye.bl_count[De]=0;for(mt[2*ye.heap[ye.heap_max]+1]=0,xt=ye.heap_max+1;xt<573;xt++)an<(De=mt[2*mt[2*(st=ye.heap[xt])+1]+1]+1)&&(De=an,Yn++),mt[2*st+1]=De,lc<st||(ye.bl_count[De]++,zn=0,cc<=st&&(zn=vb[st-cc]),ye.opt_len+=(_s=mt[2*st])*(De+zn),_b&&(ye.static_len+=_s*(gb[2*st+1]+zn)));if(0!==Yn){do{for(De=an-1;0===ye.bl_count[De];)De--;ye.bl_count[De]--,ye.bl_count[De+1]+=2,ye.bl_count[an]--,Yn-=2}while(0<Yn);for(De=an;0!==De;De--)for(st=ye.bl_count[De];0!==st;)lc<(sn=ye.heap[--xt])||(mt[2*sn+1]!==De&&(ye.opt_len+=(De-mt[2*sn+1])*mt[2*sn],mt[2*sn+1]=De),st--)}}(d,b),A(se,_e,d.bl_count)}
1function w(d,b,j){var H,U,se=-1,le=b[1],oe=0,he=7,_e=4;for(0===le&&(he=138,_e=3),b[2*(j+1)+1]=65535,H=0;H<=j;H++)U=le,le=b[2*(H+1)+1],++oe<he&&U===le||(oe<_e?d.bl_tree[2*U]+=oe:0!==U?(U!==se&&d.bl_tree[2*U]++,d.bl_tree[32]++):oe<=10?d.bl_tree[34]++:d.bl_tree[36]++,se=U,_e=(oe=0)===le?(he=138,3):U===le?(he=6,3):(he=7,4))}function Q(d,b,j){var H,U,se=-1,le=b[1],oe=0,he=7,_e=4;for(0===le&&(he=138,_e=3),H=0;H<=j;H++)if(U=le,le=b[2*(H+1)+1],!(++oe<he&&U===le)){if(oe<_e)for(;re(d,U,d.bl_tree),0!=--oe;);else 0!==U?(U!==se&&(re(d,U,d.bl_tree),oe--),re(d,16,d.bl_tree),J(d,oe-3,2)):oe<=10?(re(d,17,d.bl_tree),J(d,oe-3,3)):(re(d,18,d.bl_tree),J(d,oe-11,7));se=U,_e=(oe=0)===le?(he=138,3):U===le?(he=6,3):(he=7,4)}}u(ie);var I=!1;function c(d,b,j,H){var U,se,le;J(d,0+(H?1:0),3),se=b,le=j,z(U=d),q(U,le),q(U,~le),a.arraySet(U.pending_buf,U.window,se,le,U.pending),U.pending+=le}r._tr_init=function(d){I||(function(){var b,j,H,U,se,le=new Array(D+1);for(U=H=0;U<28;U++)for(V[U]=H,b=0;b<1<<L[U];b++)E[H++]=U;for(E[H-1]=U,U=se=0;U<16;U++)for(ie[U]=se,b=0;b<1<<$[U];b++)B[se++]=U;for(se>>=7;U<f;U++)for(ie[U]=se<<7,b=0;b<1<<$[U]-7;b++)B[256+se++]=U;for(j=0;j<=D;j++)le[j]=0;for(b=0;b<=143;)ce[2*b+1]=8,b++,le[8]++;for(;b<=255;)ce[2*b+1]=9,b++,le[9]++;for(;b<=279;)ce[2*b+1]=7,b++,le[7]++;for(;b<=287;)ce[2*b+1]=8,b++,le[8]++;for(A(ce,287,le),b=0;b<f;b++)P[2*b+1]=5,P[2*b]=X(b,5);ne=new pe(ce,L,257,C,D),Y=new pe(P,$,0,f,D),ae=new pe(new Array(0),R,0,19,7)}(),I=!0),d.l_desc=new W(d.dyn_ltree,ne),d.d_desc=new W(d.dyn_dtree,Y),d.bl_desc=new W(d.bl_tree,ae),d.bi_buf=0,d.bi_valid=0,T(d)},r._tr_stored_block=c,r._tr_flush_block=function(d,b,j,H){var U,se,le=0;0<d.level?(2===d.strm.data_type&&(d.strm.data_type=function(oe){var he,_e=4093624447;for(he=0;he<=31;he++,_e>>>=1)if(1&_e&&0!==oe.dyn_ltree[2*he])return 0;if(0!==oe.dyn_ltree[18]||0!==oe.dyn_ltree[20]||0!==oe.dyn_ltree[26])return 1;for(he=32;he<g;he++)if(0!==oe.dyn_ltree[2*he])return 1;return 0}(d)),ee(d,d.l_desc),ee(d,d.d_desc),le=function(oe){var he;for(w(oe,oe.dyn_ltree,oe.l_desc.max_code),w(oe,oe.dyn_dtree,oe.d_desc.max_code),ee(oe,oe.bl_desc),he=18;3<=he&&0===oe.bl_tree[2*Z[he]+1];he--);return oe.opt_len+=3*(he+1)+5+5+4,he}(d),(se=d.static_len+3+7>>>3)<=(U=d.opt_len+3+7>>>3)&&(U=se)):U=se=j+5,j+4<=U&&-1!==b?c(d,b,j,H):4===d.strategy||se===U?(J(d,2+(H?1:0),3),N(d,ce,P)):(J(d,4+(H?1:0),3),function(oe,he,_e,ye){var Le;for(J(oe,he-257,5),J(oe,_e-1,5),J(oe,ye-4,4),Le=0;Le<ye;Le++)J(oe,oe.bl_tree[2*Z[Le]+1],3);Q(oe,oe.dyn_ltree,he-1),Q(oe,oe.dyn_dtree,_e-1)}(d,d.l_desc.max_code+1,d.d_desc.max_code+1,le+1),N(d,d.dyn_ltree,d.dyn_dtree)),T(d),H&&z(d)},r._tr_tally=function(d,b,j){return d.pending_buf[d.d_buf+2*d.last_lit]=b>>>8&255,d.pending_buf[d.d_buf+2*d.last_lit+1]=255&b,d.pending_buf[d.l_buf+d.last_lit]=255&j,d.last_lit++,0===b?d.dyn_ltree[2*j]++:(d.matches++,b--,d.dyn_ltree[2*(E[j]+g+1)]++,d.dyn_dtree[2*F(b)]++),d.last_lit===d.lit_bufsize-1},r._tr_align=function(d){var b;J(d,2,3),re(d,256,ce),16===(b=d).bi_valid?(q(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):8<=b.bi_valid&&(b.pending_buf[b.pending++]=255&b.bi_buf,b.bi_buf>>=8,b.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,s,r){s.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,s,r){(function(a){!function(l,o){if(!l.setImmediate){var u,p,_,g,C=1,f={},x=!1,y=l.document,D=Object.getPrototypeOf&&Object.getPrototypeOf(l);D=D&&D.setTimeout?D:l,u="[object process]"==={}.toString.call(l.process)?function(m){xe.nextTick(function(){k(m)})}:function(){if(l.postMessage&&!l.importScripts){var m=!0,S=l.onmessage;return l.onmessage=function(){m=!1},l.postMessage("","*"),l.onmessage=S,m}}()?(g="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",v,!1):l.attachEvent("onmessage",v),function(m){l.postMessage(g+m,"*")}):l.MessageChannel?((_=new MessageChannel).port1.onmessage=function(m){k(m.data)},function(m){_.port2.postMessage(m)}):y&&"onreadystatechange"in y.createElement("script")?(p=y.documentElement,function(m){var S=y.createElement("script");S.onreadystatechange=function(){k(m),S.onreadystatechange=null,p.removeChild(S),S=null},p.appendChild(S)}):function(m){setTimeout(k,0,m)},D.setImmediate=function(m){"function"!=typeof m&&(m=new Function(""+m));for(var S=new Array(arguments.length-1),M=0;M<S.length;M++)S[M]=arguments[M+1];return f[C]={callback:m,args:S},u(C),C++},D.clearImmediate=h}function h(m){delete f[m]}function k(m){if(x)setTimeout(k,0,m);else{var S=f[m];if(S){x=!0;try{!function(M){var L=M.callback,$=M.args;switch($.length){case 0:L();break;case 1:L($[0]);break;case 2:L($[0],$[1]);break;case 3:L($[0],$[1],$[2]);break;default:L.apply(o,$)}}(S)}finally{h(m),x=!1}}}}function v(m){m.source===l&&"string"==typeof m.data&&0===m.data.indexOf(g)&&k(+m.data.slice(g.length))}}(typeof self>"u"?void 0===a?this:a:self)}).call(this,typeof Je<"u"?Je:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)),cs.exports}());var ds,Bl,Ul,tn={exports:{}};const Ae=Jn(function Qg(){if(Ul)return tn.exports;Ul=1;var i=function Jg(){if(Bl)return ds;Bl=1;var i={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};return ds=function n(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(s,r){return i[r]}):t}}(),n=kr().Stream;function l(p,_,g){var f,C=function a(p,_){return new Array(_||0).join(p||"")}(_,g=g||0),x=p;if("object"==typeof p&&(x=p[f=Object.keys(p)[0]])&&x._elem)return x._elem.name=f,x._elem.icount=g,x._elem.indent=_,x._elem.indents=C,x._elem.interrupt=x,x._elem;var v,h=[],k=[];
1function m(S){Object.keys(S).forEach(function(L){h.push(function u(p,_){return p+'="'+i(_)+'"'}(L,S[L]))})}switch(typeof x){case"object":if(null===x)break;x._attr&&m(x._attr),x._cdata&&k.push(("<![CDATA["+x._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),x.forEach&&(v=!1,k.push(""),x.forEach(function(S){"object"==typeof S?"_attr"==Object.keys(S)[0]?m(S._attr):k.push(l(S,_,g+1)):(k.pop(),v=!0,k.push(i(S)))}),v||k.push(""));break;default:k.push(i(x))}return{name:f,interrupt:!1,attributes:h,content:k,icount:g,indents:C,indent:_}}function o(p,_,g){if("object"!=typeof _)return p(!1,_);var C=_.interrupt?1:_.content.length;function f(){for(;_.content.length;){var y=_.content.shift();if(void 0!==y){if(x(y))return;o(p,y)}}p(!1,(C>1?_.indents:"")+(_.name?"</"+_.name+">":"")+(_.indent&&!g?"\n":"")),g&&g()}function x(y){return!!y.interrupt&&(y.interrupt.append=p,y.interrupt.end=f,y.interrupt=!1,p(!0),!0)}if(p(!1,_.indents+(_.name?"<"+_.name:"")+(_.attributes.length?" "+_.attributes.join(" "):"")+(C?_.name?">":"":_.name?"/>":"")+(_.indent&&C>1?"\n":"")),!C)return p(!1,_.indent?"\n":"");x(_)||f()}return tn.exports=function s(p,_){"object"!=typeof _&&(_={indent:_});var g=_.stream?new n:null,C="",f=!1,x=_.indent?!0===_.indent?"    ":_.indent:"",y=!0;function D(S){y?xe.nextTick(S):S()}function h(S,M){if(void 0!==M&&(C+=M),S&&!f&&(g=g||new n,f=!0),S&&f){var L=C;D(function(){g.emit("data",L)}),C=""}}function k(S,M){o(h,l(S,x,x?1:0),M)}function v(){if(g){var S=C;D(function(){g.emit("data",S),g.emit("end"),g.readable=!1,g.emit("close")})}}return D(function(){y=!1}),_.declaration&&function m(S){var L={version:"1.0",encoding:S.encoding||"UTF-8"};S.standalone&&(L.standalone=S.standalone),k({"?xml":{_attr:L}}),C=C.replace("/>","?>")}(_.declaration),p&&p.forEach?p.forEach(function(S,M){var L;M+1===p.length&&(L=v),k(S,L)}):k(p,v),g?(g.readable=!0,g):C},tn.exports.element=tn.exports.Element=function r(){return{_elem:l(Array.prototype.slice.call(arguments)),push:function(g){if(!this.append)throw new Error("not assigned to a parent!");var C=this,f=this._elem.indent;o(this.append,l(g,f,this._elem.icount+(f?1:0)),function(){C.append(!0)})},close:function(g){void 0!==g&&this.push(g),this.end&&this.end()}}},tn.exports}()),n_=(i,n)=>{const t=n.replace(/-/g,"");if(32!==t.length)throw new Error(`Error: Cannot extract GUID from font filename: ${n}`);const r=t.replace(/(..)/g,"$1 ").trim().split(" ").map(u=>parseInt(u,16));r.reverse();const l=i.slice(0,32).map((u,p)=>u^r[p%r.length]),o=new Uint8Array(0+l.length+Math.max(0,i.length-32));return o.set(i.slice(0,0)),o.set(l,0),o.set(i.slice(32),0+l.length),o};class ps{format(n,t={stack:[]}){const s=n.prepForXml(t);if(s)return s;throw Error("XMLComponent did not format correctly")}}class $l{replace(n,t,s){let r=n;return t.forEach((a,l)=>{r=r.replace(new RegExp(`{${a.fileName}}`,"g"),(s+l).toString())}),r}getMediaData(n,t){return t.Array.filter(s=>n.search(`{${s.fileName}}`)>0)}}class i_{replace(n,t){let s=n;for(const r of t)s=s.replace(new RegExp(`{${r.reference}-${r.instance}}`,"g"),r.numId.toString());return s}}const zl=i=>!0===i?"  ":!1===i?void 0:i;te(class $t{static pack(n,t,s){return((i,n,t)=>new Promise((s,r)=>{var a=u=>{try{o(t.next(u))}catch(p){r(p)}},l=u=>{try{o(t.throw(u))}catch(p){r(p)}},o=u=>u.done?s(u.value):Promise.resolve(u.value).then(a,l);o((t=t.apply(i,n)).next())}))(this,arguments,function*(r,a,l,o=[]){return this.compiler.compile(r,zl(l),o).generateAsync({type:a,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(n,t,s=[]){return $t.pack(n,"string",t,s)}static toBuffer(n,t,s=[]){return $t.pack(n,"nodebuffer",t,s)}static toBase64String(n,t,s=[]){return $t.pack(n,"base64",t,s)}static toBlob(n,t,s=[]){return $t.pack(n,"blob",t,s)}static toArrayBuffer(n,t,s=[]){return $t.pack(n,"arraybuffer",t,s)}static toStream(n,t,s=[]){const r=new qg.Stream;return this.compiler.compile(n,zl(t),s).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(l=>{r.emit("data",l),r.emit("end")}),r}},"compiler",new class r_{constructor(){te(this,"formatter"),te(this,"imageReplacer"),te(this,"numberingReplacer"),this.formatter=new ps,this.imageReplacer=new $l,this.numberingReplacer=new i_}compile(n,t,s=[]){const r=new Bt,a=this.xmlifyFile(n,t),l=new Map(Object.entries(a));for(const[,o]of l)if(Array.isArray(o))for(const u of o)r.file(u.path,u.data);else r.file(o.path,o.data);for(const o of s)r.file(o.path,o.data);for(const o of n.Media.Array)"svg"!==o.type?r.file(`word/media/${o.fileName}`,o.data):(r.file(`word/media/${o.fileName}`,o.data),r.file(`word/media/${o.fallback.fileName}`,o.fallback.data));for(const{data:o,name:u,fontKey:p}of n.FontTable.fontOptionsWithKey){const[_]=u.split(".");r.file(`word/fonts/${_}.odttf`,n_(o,p))}return r}xmlifyFile(n,t){const s=n.Document.Relationships.RelationshipCount+1,r=Ae(this.formatter.format(n.Document.View,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),a=n.Comments.Relationships.RelationshipCount+1,l=Ae(this.formatter.format(n.Comments,{viewWrapper:{View:n.Comments,Relationships:n.Comments.Relationships},file:n,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(r,n.Media),u=this.imageReplacer.getMediaData(l,n.Media);
1return{Relationships:{data:(o.forEach((p,_)=>{n.Document.Relationships.createRelationship(s+_,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${p.fileName}`)}),n.Document.Relationships.createRelationship(n.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),Ae(this.formatter.format(n.Document.Relationships,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const p=this.imageReplacer.replace(r,o,s);return this.numberingReplacer.replace(p,n.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const p=Ae(this.formatter.format(n.Styles,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(p,n.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Ae(this.formatter.format(n.CoreProperties,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Ae(this.formatter.format(n.Numbering,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Ae(this.formatter.format(n.FileRelationships,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:n.Headers.map((p,_)=>{const g=Ae(this.formatter.format(p.View,{viewWrapper:p,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(g,n.Media).forEach((f,x)=>{p.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${f.fileName}`)}),{data:Ae(this.formatter.format(p.Relationships,{viewWrapper:p,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${_+1}.xml.rels`}}),FooterRelationships:n.Footers.map((p,_)=>{const g=Ae(this.formatter.format(p.View,{viewWrapper:p,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(g,n.Media).forEach((f,x)=>{p.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${f.fileName}`)}),{data:Ae(this.formatter.format(p.Relationships,{viewWrapper:p,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${_+1}.xml.rels`}}),Headers:n.Headers.map((p,_)=>{const g=Ae(this.formatter.format(p.View,{viewWrapper:p,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),C=this.imageReplacer.getMediaData(g,n.Media),f=this.imageReplacer.replace(g,C,0);return{data:this.numberingReplacer.replace(f,n.Numbering.ConcreteNumbering),path:`word/header${_+1}.xml`}}),Footers:n.Footers.map((p,_)=>{const g=Ae(this.formatter.format(p.View,{viewWrapper:p,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),C=this.imageReplacer.getMediaData(g,n.Media),f=this.imageReplacer.replace(g,C,0);return{data:this.numberingReplacer.replace(f,n.Numbering.ConcreteNumbering),path:`word/footer${_+1}.xml`}}),ContentTypes:{data:Ae(this.formatter.format(n.ContentTypes,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Ae(this.formatter.format(n.CustomProperties,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Ae(this.formatter.format(n.AppProperties,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Ae(this.formatter.format(n.FootNotes.View,{viewWrapper:n.FootNotes,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Ae(this.formatter.format(n.FootNotes.Relationships,{viewWrapper:n.FootNotes,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Ae(this.formatter.format(n.Settings,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const p=this.imageReplacer.replace(l,u,a);return this.numberingReplacer.replace(p,n.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(u.forEach((p,_)=>{n.Comments.Relationships.createRelationship(a+_,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${p.fileName}`)}),Ae(this.formatter.format(n.Comments.Relationships,{viewWrapper:{View:n.Comments,Relationships:n.Comments.Relationships},file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"},FontTable:{data:Ae(this.formatter.format(n.FontTable.View,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Ae(this.formatter.format(n.FontTable.Relationships,{viewWrapper:n.Document,file:n,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}),new ps,new ps,new $l,new Uint8Array([255,254]),new Uint8Array([254,255]);var gs=ge(18112);
1function k_(i,n){if(1&i&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" \xa0\xb7 Engagement #",t.data.engagementId," ")}}function C_(i,n){if(1&i&&(e.j41(0,"div",48),e.nrm(1,"ui-icon",49),e.j41(2,"strong"),e.EFF(3),e.k0s(),e.DNE(4,k_,2,1,"span",50),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("size",16),e.R7$(2),e.JRh(t.data.advisorName),e.R7$(),e.Y8G("ngIf",null==t.data?null:t.data.engagementId)}}function E_(i,n){if(1&i){const t=e.RV6();e.j41(0,"span",52),e.bIt("click",function(){const r=e.eBV(t).index,a=e.XpG();return e.Njj(a.setRating(r+1))})("mouseenter",function(){const r=e.eBV(t).index,a=e.XpG();return e.Njj(a.hoverRating=r+1)})("mouseleave",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.hoverRating=0)}),e.nrm(1,"ui-icon",4),e.k0s()}if(2&i){const t=n.index,s=e.XpG();e.AVh("active",t<(s.hoverRating||s.selectedRating))("hovered",t<s.hoverRating),e.R7$(),e.Y8G("size",38)}}function T_(i,n){if(1&i&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.selectedRating,"/5 ")}}function A_(i,n){1&i&&(e.j41(0,"small",54),e.nrm(1,"ui-icon",55),e.EFF(2," Please select an overall rating. "),e.k0s()),2&i&&(e.R7$(),e.Y8G("size",16))}function I_(i,n){if(1&i){const t=e.RV6();e.j41(0,"span",62),e.bIt("click",function(){const r=e.eBV(t).index,a=e.XpG().$implicit;return e.Njj(a.value=r+1)})("mouseenter",function(){const r=e.eBV(t).index,a=e.XpG().$implicit;return e.Njj(a.hover=r+1)})("mouseleave",function(){e.eBV(t);const r=e.XpG().$implicit;return e.Njj(r.hover=0)}),e.nrm(1,"ui-icon",4),e.k0s()}if(2&i){const t=n.index,s=e.XpG().$implicit;e.AVh("active",t<(s.hover||s.value)),e.R7$(),e.Y8G("size",19)}}function S_(i,n){if(1&i&&(e.j41(0,"span",63),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.value,"/5 ")}}function D_(i,n){1&i&&(e.j41(0,"span",64),e.EFF(1," \u2014 "),e.k0s())}function R_(i,n){if(1&i&&(e.j41(0,"div",56)(1,"span",57),e.EFF(2),e.k0s(),e.j41(3,"div",58),e.DNE(4,I_,2,3,"span",59),e.k0s(),e.DNE(5,S_,2,1,"span",60)(6,D_,2,0,"span",61),e.k0s()),2&i){const t=n.$implicit,s=e.XpG();e.R7$(2),e.JRh(t.label),e.R7$(2),e.Y8G("ngForOf",s.stars),e.R7$(),e.Y8G("ngIf",t.value>0),e.R7$(),e.Y8G("ngIf",0===t.value)}}function P_(i,n){1&i&&(e.j41(0,"mat-error"),e.EFF(1," Title is required. "),e.k0s())}function O_(i,n){1&i&&(e.j41(0,"mat-error"),e.EFF(1," Review text is required. "),e.k0s())}function F_(i,n){1&i&&(e.j41(0,"mat-error"),e.EFF(1," Please write at least 20 characters. "),e.k0s())}let N_=(()=>{class i{constructor(t,s,r,a,l){this.commonService=t,this.helperService=s,this.fb=r,this.dialogRef=a,this.data=l,this.submitted=!1,this.selectedRating=0,this.hoverRating=0,this.wouldRecommend=null,this.stars=Array(5),this.ratingLabels=["Poor","Fair","Good","Very Good","Excellent"],this.ratingIcons=["thumbs-down","minus","thumbs-up","thumbs-up","thumbs-up"],this.ratingColors=["pill-1","pill-2","pill-3","pill-4","pill-5"],this.categories=[{label:"Knowledge & Expertise",value:0,hover:0},{label:"Communication",value:0,hover:0},{label:"Responsiveness",value:0,hover:0},{label:"Overall Value",value:0,hover:0}],this.reviewForm=this.fb.group({title:["",ue.k0.required],reviewText:["",[ue.k0.required,ue.k0.minLength(20)]],isAnonymous:[!1]})}get f(){return this.reviewForm.controls}get ratingIcon(){return this.selectedRating>0?this.ratingIcons[this.selectedRating-1]:""}get ratingColorClass(){return this.selectedRating>0?this.ratingColors[this.selectedRating-1]:""}setRating(t){this.selectedRating=t}onSubmit(){this.submitted=!0,!this.reviewForm.invalid&&0!==this.selectedRating&&this.dialogRef.close({...this.reviewForm.value,rating:this.selectedRating,categoryRatings:this.categories.map(t=>({label:t.label,value:t.value})),wouldRecommend:this.wouldRecommend,engagementId:this.data?.engagementId,advisorId:this.data?.advisorId})}onClose(){this.dialogRef.close(null)}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(Ve.h),e.rXU(gt.w),e.rXU(ue.ok),e.rXU(Te.RN),e.rXU(Te.xh))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-write-review-dialog"]],decls:85,vars:23,consts:[[1,"review-dialog-wrap"],[1,"review-dialog-header"],[1,"header-left"],[1,"review-icon-circle"],["name","star",3,"size"],[1,"header-text"],[1,"dialog-title"],[1,"dialog-subtitle"],["type","button",1,"close-btn",3,"click"],["name","close","label","Close",3,"size"],["class","advisor-strip",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"review-dialog-body"],[1,"rating-section"],[1,"section-label"],[1,"required"],[1,"stars-wrapper"],[1,"stars-row"],["class","star-item",3,"active","hovered","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],[1,"rating-pill",3,"ngClass"],[1,"mr-1",3,"name","size"],["class","rating-fraction",4,"ngIf"],["class","error-text",4,"ngIf"],[1,"category-ratings"],["class","category-row",4,"ngFor","ngForOf"],[1,"form-section"],[1,"comn-form"],["appearance","outline",1,"w-full"],["matInput","","formControlName","title","maxlength","100"],["align","end"],[4,"ngIf"],["matInput","","formControlName","reviewText","rows","5","maxlength","1000"],[1,"form-section","recommend-section"],[1,"recommend-row"],[1,"recommend-text"],[1,"section-label","block"],[1,"text-muted"],[1,"recommend-buttons"],["type","button",1,"recommend-btn",3,"click"],["name","thumbs-up",1,"mr-1"],["name","thumbs-down",1,"mr-1"],[1,"form-section","anon-section",2,"display","none"],[1,"anon-row"],["formControlName","isAnonymous","color","primary"],[1,"review-dialog-footer"],["type","button",1,"btn-cancel",3,"click"],["type","submit",1,"btn-submit"],["name","send",1,"mr-2"],[1,"advisor-strip"],["name","user",1,"mr-2",3,"size"],["class","engagement-id",4,"ngIf"],[1,"engagement-id"],[1,"star-item",3,"click","mouseenter","mouseleave"],[1,"rating-fraction"],[1,"error-text"],["name","alert",1,"mr-1",3,"size"],[1,"category-row"],[1,"category-label"],[1,"category-stars"],["class","cat-star",3,"active","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["class","cat-score",4,"ngIf"],["class","cat-score text-muted",4,"ngIf"],[1,"cat-star",3,"click","mouseenter","mouseleave"],[1,"cat-score"],[1,"cat-score","text-muted"]],template:function(s,r){if(1&s&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"ui-icon",4),e.k0s(),e.j41(5,"div",5)(6,"h4",6),e.EFF(7,"Write a Review"),e.k0s(),e.j41(8,"small",7),e.EFF(9,"Share your experience with this advisor"),e.k0s()()(),e.j41(10,"button",8),e.bIt("click",function(){return r.onClose()}),e.nrm(11,"ui-icon",9),e.k0s()(),e.DNE(12,C_,5,3,"div",10),e.j41(13,"form",11),e.bIt("ngSubmit",function(){return r.onSubmit()}),e.j41(14,"div",12)(15,"div",13)(16,"label",14),e.EFF(17," Overall Rating "),e.j41(18,"span",15),e.EFF(19,"*"),e.k0s()(),e.j41(20,"div",16)(21,"div",17),e.DNE(22,E_,2,5,"span",18),e.k0s(),e.j41(23,"span",19),e.nrm(24,"ui-icon",20),e.EFF(25),e.DNE(26,T_,2,1,"span",21),e.k0s()(),e.DNE(27,A_,3,1,"small",22),e.j41(28,"div",23),e.DNE(29,R_,7,4,"div",24),e.k0s()(),e.j41(30,"div",25)(31,"label",14),e.EFF(32," Review Title "),e.j41(33,"span",15),e.EFF(34,"*"),e.k0s()(),e.j41(35,"div",26)(36,"mat-form-field",27)(37,"mat-label"),e.EFF(38,"Summarize your experience"),e.k0s(),e.nrm(39,"input",28),e.j41(40,"mat-hint",29),e.EFF(41),e.k0s(),e.DNE(42,P_,2,0,"mat-error",30),e.k0s()()(),e.j41(43,"div",25)(44,"label",14),e.EFF(45," Your Review "),e.j41(46,"span",15),e.EFF(47,"*"),e.k0s()(),e.j41(48,"div",26)(49,"mat-form-field",27)(50,"mat-label"),e.EFF(51,"Share details about your experience..."),e.k0s(),e.nrm(52,"textarea",31),e.j41(53,"mat-hint",29),e.EFF(54),e.k0s(),e.DNE(55,O_,2,0,"mat-error",30)(56,F_,2,0,"mat-error",30),e.k0s()()(),e.j41(57,"div",32)(58,"div",33)(59,"div",34)(60,"span",35),e.EFF(61,"Would you recommend this advisor?"),e.k0s(),e.j41(62,"small",36),e.EFF(63,"Your recommendation helps other clients"),e.k0s()(),e.j41(64,"div",37)(65,"button",38),e.bIt("click",function(){return r.wouldRecommend=!0}),e.nrm(66,"ui-icon",39),e.EFF(67," Yes "),e.k0s(),e.j41(68,"button",38),e.bIt("click",function(){return r.wouldRecommend=!1}),e.nrm(69,"ui-icon",40),e.EFF(70," No "),e.k0s()()()(),e.j41(71,"div",41)(72,"div",42)(73,"div")(74,"span",35),e.EFF(75,"Submit Anonymously"),e.k0s(),e.j41(76,"small",36),e.EFF(77,"Your name will not be shown with this review"),e.k0s()(),e.nrm(78,"mat-slide-toggle",43),e.k0s()()(),e.j41(79,"div",44)(80,"button",45),e.bIt("click",function(){return r.onClose()}),e.EFF(81," Cancel "),e.k0s(),e.j41(82,"button",46),e.nrm(83,"ui-icon",47),e.EFF(84," Submit Review "),e.k0s()()()()),2&s){let a,l;e.R7$(4),e.Y8G("size",20),e.R7$(7),e.Y8G("size",20),e.R7$(),e.Y8G("ngIf",null==r.data?null:r.data.advisorName),e.R7$(),e.Y8G("formGroup",r.reviewForm),e.R7$(9),e.Y8G("ngForOf",r.stars),e.R7$(),e.AVh("visible",r.selectedRating>0),e.Y8G("ngClass",r.ratingColorClass),e.R7$(),e.Y8G("name",r.ratingIcon)("size",16),e.R7$(),e.SpI(" ",r.selectedRating>0?r.ratingLabels[r.selectedRating-1]:""," "),e.R7$(),e.Y8G("ngIf",r.selectedRating>0),e.R7$(),e.Y8G("ngIf",r.submitted&&0===r.selectedRating),e.R7$(2),e.Y8G("ngForOf",r.categories),e.R7$(12),e.SpI(" ",(null==(a=r.reviewForm.get("title"))||null==a.value?null:a.value.length)||0,"/100 "),e.R7$(),e.Y8G("ngIf",(null==r.f.title.errors?null:r.f.title.errors.required)&&(r.f.title.touched||r.submitted)),e.R7$(12),e.SpI(" ",(null==(l=r.reviewForm.get("reviewText"))||null==l.value?null:l.value.length)||0,"/1000 "),e.R7$(),e.Y8G("ngIf",(null==r.f.reviewText.errors?null:r.f.reviewText.errors.required)&&(r.f.reviewText.touched||r.submitted)),e.R7$(),e.Y8G("ngIf",(null==r.f.reviewText.errors?null:r.f.reviewText.errors.minlength)&&(r.f.reviewText.touched||r.submitted)),e.R7$(9),e.AVh("yes-active",!0===r.wouldRecommend),e.R7$(3),e.AVh("no-active",!1===r.wouldRecommend)}},dependencies:[at.H,ke.YU,ke.Sq,ke.bT,Ue.k5,Ue.Ky,Ue.V3,Ue.aw,Wn.aL,gs.P2,ue.qT,ue.me,ue.BC,ue.cb,ue.tU,ue.j4,ue.JD],styles:[".review-dialog-wrap[_ngcontent-%COMP%]{border-radius:12px;overflow:hidden;font-family:inherit;min-width:520px}@media (max-width: 600px){.review-dialog-wrap[_ngcontent-%COMP%]{min-width:unset;width:100%}}.review-dialog-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;border-bottom:1px solid var(--border-color)}.review-dialog-header[_ngcontent-%COMP%]   .header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.review-dialog-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}
1.review-icon-circle[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#f5a623,#f76b1c);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;flex-shrink:0;box-shadow:0 3px 10px #f76b1c59}.dialog-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700;color:var(--text-primary);margin:0;line-height:1.3}.dialog-subtitle[_ngcontent-%COMP%]{font-size:12px;color:var(--text-secondary);margin-top:2px}.close-btn[_ngcontent-%COMP%]{background:none;border:none;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);font-size:15px;transition:background .2s,color .2s;flex-shrink:0}.close-btn[_ngcontent-%COMP%]:hover{background:var(--bg-input);color:var(--text-primary)}.advisor-strip[_ngcontent-%COMP%]{background:var(--bg-input);padding:10px 24px;font-size:13px;color:var(--text-secondary);border-bottom:1px solid var(--border-color)}.advisor-strip[_ngcontent-%COMP%]   .engagement-id[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:12px}.review-dialog-body[_ngcontent-%COMP%]{padding:20px 24px;max-height:62vh;max-height:62dvh;overflow-y:auto}.review-dialog-body[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}.review-dialog-body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:10px}.form-section[_ngcontent-%COMP%]{margin-bottom:22px}.section-label[_ngcontent-%COMP%]{font-weight:600;font-size:13px;color:var(--text-primary);margin-bottom:8px;display:block}.required[_ngcontent-%COMP%]{color:var(--danger);margin-left:2px}.error-text[_ngcontent-%COMP%]{color:var(--danger);font-size:12px;display:block;margin-top:6px}.rating-section[_ngcontent-%COMP%]{margin-bottom:24px}.stars-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:14px}.stars-row[_ngcontent-%COMP%]{display:flex;gap:6px}.star-item[_ngcontent-%COMP%]{font-size:38px;color:var(--text-muted);cursor:pointer;line-height:1;-webkit-user-select:none;user-select:none;transition:color .15s ease,transform .15s ease}.star-item.active[_ngcontent-%COMP%]{color:var(--accent-400)}.star-item.hovered[_ngcontent-%COMP%], .star-item[_ngcontent-%COMP%]:hover{color:var(--accent-400);transform:scale(1.2)}.rating-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:5px 14px;border-radius:20px;font-size:13px;font-weight:600;opacity:0;transform:translateY(5px);transition:opacity .25s ease,transform .25s ease;pointer-events:none}.rating-pill.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.rating-pill[_ngcontent-%COMP%]   .rating-fraction[_ngcontent-%COMP%]{font-weight:400;font-size:11px;opacity:.65;margin-left:2px}.rating-pill.pill-1[_ngcontent-%COMP%]{background:#ffe0e0;color:#c0392b}.rating-pill.pill-2[_ngcontent-%COMP%]{background:#ffebd0;color:#e67e22}.rating-pill.pill-3[_ngcontent-%COMP%]{background:#fff9d0;color:#b8860b}.rating-pill.pill-4[_ngcontent-%COMP%]{background:#e0f5e9;color:#27ae60}.rating-pill.pill-5[_ngcontent-%COMP%]{background:#d4edda;color:#155724}.category-ratings[_ngcontent-%COMP%]{background:var(--bg-input);border:1px solid var(--border-color);border-radius:10px;padding:4px 16px}.category-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--border-color)}.category-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.category-label[_ngcontent-%COMP%]{font-size:13px;color:var(--text-secondary);min-width:160px;flex-shrink:0}@media (max-width: 480px){.category-label[_ngcontent-%COMP%]{min-width:110px;font-size:12px}}.category-stars[_ngcontent-%COMP%]{display:flex;gap:4px}.cat-star[_ngcontent-%COMP%]{font-size:19px;color:var(--text-muted);cursor:pointer;transition:color .15s ease,transform .15s ease}.cat-star.active[_ngcontent-%COMP%]{color:var(--accent-400)}.cat-star[_ngcontent-%COMP%]:hover{color:var(--accent-400);transform:scale(1.18)}.cat-score[_ngcontent-%COMP%]{font-size:12px;color:var(--text-secondary);min-width:28px;text-align:right}.recommend-section[_ngcontent-%COMP%]{background:var(--bg-input);border:1px solid var(--border-color);border-radius:10px;padding:14px 16px}.recommend-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.recommend-text[_ngcontent-%COMP%]{flex:1}.recommend-buttons[_ngcontent-%COMP%]{display:flex;gap:8px}.recommend-btn[_ngcontent-%COMP%]{border:1.5px solid var(--border-color);background:var(--bg-card);border-radius:8px;padding:7px 18px;font-size:13px;
1cursor:pointer;color:var(--text-secondary);transition:all .2s ease;font-weight:500}.recommend-btn[_ngcontent-%COMP%]:hover{border-color:var(--border-color);background:var(--bg-input)}.recommend-btn.yes-active[_ngcontent-%COMP%]{border-color:var(--success);background:#eafaf1;color:var(--success);font-weight:600}.recommend-btn.no-active[_ngcontent-%COMP%]{border-color:var(--danger);background:#fdecea;color:var(--danger);font-weight:600}.anon-section[_ngcontent-%COMP%]{background:var(--bg-input);border:1px solid var(--border-color);border-radius:10px;padding:14px 16px}.anon-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.review-dialog-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 24px;border-top:1px solid var(--border-color);background:var(--bg-card)}.btn-cancel[_ngcontent-%COMP%]{border:1.5px solid var(--border-color);background:var(--bg-card);border-radius:8px;padding:9px 22px;font-size:13px;font-weight:500;cursor:pointer;color:var(--text-secondary);transition:background .2s ease,border-color .2s ease}.btn-cancel[_ngcontent-%COMP%]:hover{background:var(--bg-input);border-color:var(--border-color)}.btn-submit[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f5a623,#f76b1c);color:#fff;border:none;border-radius:8px;padding:9px 26px;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 3px 10px #f76b1c59;transition:opacity .2s ease,transform .15s ease}.btn-submit[_ngcontent-%COMP%]:hover{opacity:.92;transform:translateY(-1px)}.btn-submit[_ngcontent-%COMP%]:active{transform:translateY(0);opacity:1}  .review-dialog-wrap mat-form-field{width:100%}  .review-dialog-wrap .mat-form-field-wrapper{padding-bottom:0}"]})}}return i})();var M_=ge(37304),L_=ge(345),tc=ge(15311),j_=ge(1776),nc=ge(64742),G_=ge(47032),ic=ge(56776);const B_=()=>[1,2,3],Rt=(i,n)=>({"fa-chevron-down":i,"fa-chevron-up":n}),U_=()=>({height:"140px"});function $_(i,n){1&i&&(e.j41(0,"div",75),e.nrm(1,"span",76)(2,"span",67)(3,"span",35),e.k0s())}function z_(i,n){1&i&&(e.qex(0),e.j41(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9),e.nrm(6,"span",10),e.j41(7,"div",11),e.nrm(8,"span",12)(9,"span",13),e.k0s()()(),e.j41(10,"div",14)(11,"div",15)(12,"div",16)(13,"div",17)(14,"div",18)(15,"div",19),e.nrm(16,"span",20)(17,"span",21)(18,"span",22),e.k0s(),e.j41(19,"div",23)(20,"div",24),e.nrm(21,"span",25)(22,"span",26),e.k0s(),e.nrm(23,"span",27),e.k0s()()()()(),e.j41(24,"div",28)(25,"div",29)(26,"div",30),e.nrm(27,"div",31),e.j41(28,"div",32)(29,"div",33),e.nrm(30,"span",34)(31,"span",35),e.k0s(),e.j41(32,"div",33),e.nrm(33,"span",36)(34,"span",37)(35,"span",38),e.k0s(),e.j41(36,"div",33),e.nrm(37,"span",34)(38,"span",39)(39,"span",39),e.k0s(),e.j41(40,"div",33),e.nrm(41,"span",40)(42,"span",37),e.k0s(),e.j41(43,"div",33),e.nrm(44,"span",41),e.j41(45,"div",42),e.nrm(46,"span",43)(47,"span",44),e.k0s()()()(),e.j41(48,"div",45),e.nrm(49,"span",46)(50,"span",46),e.k0s()()(),e.j41(51,"div",47)(52,"div",48)(53,"div",49)(54,"div",50)(55,"div",51),e.nrm(56,"span",52)(57,"span",53),e.k0s(),e.j41(58,"div",54),e.nrm(59,"span",55)(60,"span",56),e.k0s()(),e.j41(61,"div",57),e.nrm(62,"span",58),e.j41(63,"div",59),e.nrm(64,"span",60)(65,"span",35)(66,"span",61),e.k0s()()(),e.j41(67,"div",30)(68,"div",50)(69,"div",51),e.nrm(70,"span",62)(71,"span",53),e.k0s(),e.j41(72,"div",54),e.nrm(73,"span",63)(74,"span",56),e.k0s()(),e.j41(75,"div",64),e.DNE(76,$_,4,0,"div",65),e.k0s()(),e.j41(77,"div",30)(78,"div",50)(79,"div",51),e.nrm(80,"span",52)(81,"span",53),e.k0s(),e.j41(82,"div",54),e.nrm(83,"span",66)(84,"span",56),e.k0s()(),e.nrm(85,"span",67)(86,"span",68),e.k0s(),e.j41(87,"div",30)(88,"div",50)(89,"div",51),e.nrm(90,"span",69)(91,"span",53),e.k0s(),e.j41(92,"div",54),e.nrm(93,"span",66)(94,"span",56),e.k0s()(),e.nrm(95,"span",67)(96,"span",70),e.k0s(),e.j41(97,"div",71),e.nrm(98,"span",72)(99,"span",73)(100,"span",74),e.k0s()()()()()()(),e.bVm()),2&i&&(e.R7$(76),e.Y8G("ngForOf",e.lJ4(1,B_)))}function Y_(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.openWriteReviewDialog())}),e.nrm(1,"ui-icon",133),e.EFF(2," Write a Review "),e.k0s()}}
1function H_(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.openReviewsModal())}),e.nrm(1,"ui-icon",133),e.EFF(2," See Reviews & Ratings "),e.k0s()}}function V_(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",123)(1,"div",124)(2,"button",125),e.nI1(3,"customIdEncode"),e.nI1(4,"customIdEncode"),e.nI1(5,"customIdEncode"),e.nrm(6,"ui-icon",126),e.EFF(7," Reschedule Engagement "),e.k0s(),e.DNE(8,Y_,3,0,"button",127)(9,H_,3,0,"button",127),e.k0s(),e.j41(10,"div",128)(11,"button",129),e.nrm(12,"ui-icon",130),e.k0s(),e.j41(13,"mat-menu",null,0)(15,"div",131)(16,"button",125),e.nI1(17,"customIdEncode"),e.nI1(18,"customIdEncode"),e.nI1(19,"customIdEncode"),e.nrm(20,"ui-icon",126),e.EFF(21," Reschedule Engagement "),e.k0s(),e.j41(22,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.openWriteReviewDialog())}),e.nrm(23,"ui-icon",133),e.EFF(24," Write a Review "),e.k0s()()()()()}if(2&i){const t=e.sdS(14),s=e.XpG(2);e.R7$(2),e.yjJ("routerLink","/user/engagements/appointment-schedule/",e.bMT(3,11,s.project.id),"/",e.bMT(4,13,s.advisor.id),"/",e.bMT(5,15,s.engagementsInfo.id),""),e.R7$(6),e.Y8G("ngIf",0==s.isReviewed),e.R7$(),e.Y8G("ngIf",1==s.isReviewed),e.R7$(2),e.Y8G("matMenuTriggerFor",t),e.R7$(5),e.yjJ("routerLink","/user/engagements/appointment-schedule/",e.bMT(17,17,s.project.id),"/",e.bMT(18,19,s.advisor.id),"/",e.bMT(19,21,s.engagementsInfo.id),"")}}function X_(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.openReviewsModal())}),e.nrm(1,"ui-icon",133),e.EFF(2," See Reviews & Ratings "),e.k0s()}}function W_(i,n){if(1&i&&(e.j41(0,"div",123)(1,"div",124),e.DNE(2,X_,3,0,"button",127),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.countReviewed>0)}}function q_(i,n){if(1&i&&(e.j41(0,"div",134),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.Y8G("ngClass",t.engagementStateClass),e.R7$(),e.SpI(" ",t.engagementState," ")}}function K_(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"customDateTimeFormat"),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.SpI(" \u2014 cleared on ",e.bMT(2,1,t.compliance.compliance_status_at)," ")}}function Z_(i,n){if(1&i&&(e.j41(0,"div",83)(1,"div",135)(2,"div",85)(3,"div",136),e.nrm(4,"ui-icon",137),e.j41(5,"p",138)(6,"strong"),e.EFF(7),e.k0s(),e.DNE(8,K_,3,3,"span",3),e.k0s()()()()()),2&i){const t=e.XpG(2);e.R7$(7),e.JRh(t.compliance.compliance_status_label),e.R7$(),e.Y8G("ngIf",t.compliance.compliance_status_at)}}function J_(i,n){if(1&i&&(e.j41(0,"p",139),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.project.angle," ")}}function Q_(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.clientcompany.name,"")}}function e1(i,n){if(1&i){const t=e.RV6();e.j41(0,"a",140),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.saveProject(r.project.id))}),e.nrm(1,"ui-icon",133),e.k0s()}}function t1(i,n){if(1&i){const t=e.RV6();e.j41(0,"a",140),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.removeSaveProject(r.project.id))}),e.nrm(1,"ui-icon",133),e.k0s()}}function n1(i,n){1&i&&(e.j41(0,"div",148)(1,"h4",149),e.EFF(2,"Email Add"),e.k0s()())}function i1(i,n){1&i&&(e.j41(0,"div",148)(1,"h4",149),e.EFF(2,"Added Email"),e.k0s()())}function r1(i,n){1&i&&(e.j41(0,"div"),e.EFF(1," Email Address is required "),e.k0s())}function s1(i,n){1&i&&(e.j41(0,"div"),e.EFF(1," Email Address is not Valid "),e.k0s())}function a1(i,n){if(1&i&&(e.j41(0,"mat-error"),e.DNE(1,r1,2,0,"div",3)(2,s1,2,0,"div",3),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",(t._f.ccEmail.touched||t.email_submitted)&&(null==t._f.ccEmail.errors?null:t._f.ccEmail.errors.required)),e.R7$(),e.Y8G("ngIf",(t._f.ccEmail.touched||t.email_submitted)&&(null==t._f.ccEmail.errors?null:t._f.ccEmail.errors.pattern))}}function o1(i,n){if(1&i&&(e.j41(0,"mat-option",159),e.EFF(1),e.k0s()),2&i){const t=n.$implicit;e.Y8G("value",t.email),e.R7$(),e.SpI(" ",t.email," ")}}function l1(i,n){if(1&i){const t=e.RV6();e.j41(0,"form",150)(1,"div",14)(2,"div",151)(3,"div",152)(4,"mat-form-field",153)(5,"mat-label"),e.EFF(6,"Email"),e.k0s(),e.nrm(7,"input",154),e.DNE(8,a1,3,2,"mat-error",3),e.j41(9,"mat-autocomplete",155,2),e.DNE(11,o1,2,2,"mat-option",156),e.nI1(12,"async"),e.k0s()(),e.j41(13,"div",157)(14,"button",158),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.onEngagementCCSubmit())}),e.nrm(15,"ui-icon",137),e.k0s()()()()()()}if(2&i){const t=e.sdS(10),s=e.XpG(3);e.Y8G("formGroup",s.engagement_cc),e.R7$(7),e.Y8G("matAutocomplete",t),e.R7$(),e.Y8G("ngIf",s._f.ccEmail.errors),e.R7$(3),e.Y8G("ngForOf",e.bMT(12,4,s.filteredOptions))}}function c1(i,n){if(1&i&&(e.j41(0,"span",160),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.JRh(t.added_cc_email.length)}}function d1(i,n){if(1&i&&(e.j41(0,"span",171),e.EFF(1),e.k0s()),2&i){const t=n.ngIf;e.R7$(),e.JRh(t)}}function u1(i,n){if(1&i){const t=e.RV6();e.j41(0,"span",172),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(4);return e.Njj(a.removeCC(r.id))}),e.nrm(1,"ui-icon",173),e.k0s()}2&i&&(e.R7$(),e.Y8G("size",14))}function p1(i,n){if(1&i&&(e.j41(0,"li",163)(1,"span",164),e.EFF(2),e.k0s(),e.j41(3,"div",165)(4,"div",166)(5,"span",167),e.EFF(6),e.k0s(),e.DNE(7,d1,2,1,"span",168),e.k0s(),e.j41(8,"span",169),e.EFF(9),e.k0s()(),e.DNE(10,u1,2,1,"span",170),e.k0s()),2&i){const t=n.$implicit,s=e.XpG(4);e.Y8G("ngClass",s.getUserTypeClass(null==t.cc_user?null:t.cc_user.type)),e.R7$(2),e.JRh(s.getInitials(null==t.cc_user?null:t.cc_user.name)),e.R7$(3),e.Y8G("title",null==t.cc_user?null:t.cc_user.name),e.R7$(),e.JRh((null==t.cc_user?null:t.cc_user.name)||"Unknown user"),e.R7$(),e.Y8G("ngIf",s.getUserTypeLabel(null==t.cc_user?null:t.cc_user.type)),e.R7$(),e.Y8G("title",t.email_id),e.R7$(),e.JRh(t.email_id),e.R7$(),e.Y8G("ngIf",0==(null==s.engagementsInfo?null:s.engagementsInfo.passcode_status))}}function h1(i,n){if(1&i&&(e.j41(0,"ul",161),e.DNE(1,p1,11,8,"li",162),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",t.added_cc_email)("ngForTrackBy",t.trackByCcId)}}function f1(i,n){1&i&&(e.j41(0,"div",174),e.EFF(1,"No CC recipients added yet."),e.k0s())}function m1(i,n){if(1&i&&(e.j41(0,"div",83)(1,"div",84)(2,"div",85),e.DNE(3,n1,3,0,"div",141)(4,i1,3,0,"div",141)(5,l1,16,6,"form",142),e.j41(6,"div",143)(7,"div",144),e.EFF(8," CC Recipients "),e.DNE(9,c1,2,1,"span",145),e.k0s(),e.j41(10,"div",146),e.DNE(11,h1,2,2,"ul",147)(12,f1,2,0,"ng-template",null,1,e.C5r),e.k0s()()()()()),2&i){const t=e.sdS(13),s=e.XpG(2);e.R7$(3),e.Y8G("ngIf",0==s.engagementsInfo.passcode_status),e.R7$(),e.Y8G("ngIf",1==s.engagementsInfo.passcode_status),e.R7$(),e.Y8G("ngIf",0==s.engagementsInfo.passcode_status),e.R7$(4),e.Y8G("ngIf",null==s.added_cc_email?null:s.added_cc_email.length),e.R7$(2),e.Y8G("ngIf",null==s.added_cc_email?null:s.added_cc_email.length)("ngIfElse",t)}}function g1(i,n){1&i&&(e.j41(0,"span",175),e.EFF(1,"Pending"),e.k0s())}function _1(i,n){1&i&&(e.j41(0,"span",176),e.EFF(1,"Scheduled"),e.k0s())}function v1(i,n){1&i&&(e.j41(0,"span",178),e.EFF(1," - "),e.k0s())}function w1(i,n){1&i&&(e.j41(0,"span",179),e.EFF(1,"Offline"),e.k0s())}function b1(i,n){if(1&i&&(e.j41(0,"span",176),e.EFF(1,"Completed "),e.DNE(2,v1,2,0,"span",177)(3,w1,2,0,"span",107),e.k0s()),2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",1==(null==t.engagementsInfo?null:t.engagementsInfo.offline_status)&&("1"==t.user_type||"7"==t.user_type||"8"==t.user_type||"9"==t.user_type||"10"==t.user_type)),e.R7$(),e.Y8G("ngIf",1==(null==t.engagementsInfo?null:t.engagementsInfo.offline_status)&&("1"==t.user_type||"7"==t.user_type||"8"==t.user_type||"9"==t.user_type||"10"==t.user_type))}}function y1(i,n){1&i&&(e.j41(0,"span",180),e.EFF(1,"Failed"),e.k0s())}function x1(i,n){1&i&&(e.j41(0,"span",180),e.EFF(1,"Failed"),e.k0s())}function k1(i,n){1&i&&(e.j41(0,"span",180),e.EFF(1,"Declined"),e.k0s())}function C1(i,n){1&i&&(e.j41(0,"span",180),e.EFF(1,"Cancel"),e.k0s())}function E1(i,n){1&i&&(e.j41(0,"span",180),e.EFF(1,"Cancel Request"),e.k0s())}function T1(i,n){if(1&i&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"customDateFormat"),e.nrm(3,"br"),e.EFF(4),e.nI1(5,"customTimeFormat"),e.nI1(6,"customTimeFormat"),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,3,t.engagementsInfo.advisor_availability.date)," "),e.R7$(3),e.Lme(" ",e.bMT(5,5,t.engagementsInfo.advisor_availability.fromTime)," - ",e.bMT(6,7,t.engagementsInfo.advisor_availability.toTime)," ")}}function A1(i,n){1&i&&(e.j41(0,"p",179),e.EFF(1," Cancelled "),e.k0s())}function I1(i,n){1&i&&(e.j41(0,"span"),e.nrm(1,"br"),e.EFF(2," Germany:- +49 0800 4697567 "),e.nrm(3,"br"),e.EFF(4," Portugal:- +351 800 181 698 "),e.k0s())}function S1(i,n){1&i&&(e.j41(0,"span",183),e.EFF(1," - On the call "),e.k0s())}function D1(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit,s=e.XpG(3);e.R7$(),e.SpI(" - ",s.formatDuration(t.duration)," ")}}function R1(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" (",t.call_count," calls) ")}}function P1(i,n){if(1&i&&(e.j41(0,"p")(1,"a",108),e.EFF(2),e.k0s(),e.DNE(3,S1,2,0,"span",182)(4,D1,2,1,"span",3)(5,R1,2,1,"span",3),e.k0s()),2&i){const t=n.$implicit;e.R7$(),e.Mz_("href","tel:",t.from_number,"",e.B4B),e.R7$(),e.JRh(t.from_number),e.R7$(),e.Y8G("ngIf",t.is_live),e.R7$(),e.Y8G("ngIf",!t.is_live&&t.duration>0),e.R7$(),e.Y8G("ngIf",t.call_count>1)}}function O1(i,n){if(1&i&&(e.j41(0,"div",103)(1,"div",104)(2,"h3",105),e.EFF(3,"Client Dial-In Numbers"),e.k0s()(),e.j41(4,"div",106),e.DNE(5,P1,6,6,"p",181),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(5),e.Y8G("ngForOf",t.clientDialIns)}}function F1(i,n){1&i&&e.nrm(0,"p")}function N1(i,n){if(1&i&&(e.j41(0,"div",106)(1,"p"),e.EFF(2),e.k0s(),e.DNE(3,F1,1,0,"p",3),e.k0s()),2&i){const t=e.XpG(2);e.R7$(2),e.SpI(" ",t.engagementsInfo.passcode," "),e.R7$(),e.Y8G("ngIf",0==t.engagementsInfo.generate_status)}}function M1(i,n){if(1&i&&(e.j41(0,"div",106)(1,"p"),e.EFF(2),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(2),e.SpI(" ",t.engagementsInfo.passcode," ")}}function L1(i,n){if(1&i&&(e.j41(0,"div",103)(1,"div",104)(2,"h3",105),e.EFF(3,"Bridger 
1Video (Audio Only) Number"),e.k0s()(),e.j41(4,"div",106)(5,"a",108),e.EFF(6,"+1 631 570 8527"),e.k0s()(),e.nrm(7,"br"),e.j41(8,"div",104)(9,"h3",105),e.EFF(10,"Bridger Video (Audio Only) Passcode"),e.k0s()(),e.j41(11,"div",104)(12,"h3",105),e.EFF(13),e.k0s()(),e.nrm(14,"br"),e.j41(15,"div",104)(16,"h3",105),e.EFF(17,"Client Conferencing Link"),e.k0s()(),e.j41(18,"div",106)(19,"a",184),e.EFF(20),e.k0s()(),e.nrm(21,"br"),e.j41(22,"div",104)(23,"h3",105),e.EFF(24,"Client Conferencing Passcode"),e.k0s()(),e.j41(25,"div",104)(26,"h3",105),e.EFF(27),e.k0s()()()),2&i){const t=e.XpG(2);e.R7$(5),e.Y8G("href","tel:+16315708527",e.B4B),e.R7$(8),e.JRh(t.engagementsInfo.video_call_room_name),e.R7$(6),e.FCK("href","",t.engagementsInfo.baseUrl,"",t.engagementsInfo.video_call_client_link,"",e.B4B),e.R7$(),e.Lme("",t.engagementsInfo.baseUrl,"",t.engagementsInfo.video_call_client_link,""),e.R7$(7),e.JRh(t.engagementsInfo.video_call_client_password)}}function j1(i,n){if(1&i&&(e.j41(0,"div",103)(1,"div",104)(2,"h3",105),e.EFF(3,"Advisor Conferencing Link"),e.k0s()(),e.j41(4,"div",106)(5,"a",184),e.EFF(6),e.k0s()(),e.nrm(7,"br"),e.j41(8,"div",104)(9,"h3",105),e.EFF(10,"Advisor Conferencing Passcode"),e.k0s()(),e.j41(11,"div",104)(12,"h3",105),e.EFF(13),e.k0s()()()),2&i){const t=e.XpG(2);e.R7$(5),e.FCK("href","",t.engagementsInfo.baseUrl,"",t.engagementsInfo.video_call_advisor_link,"",e.B4B),e.R7$(),e.Lme("",t.engagementsInfo.baseUrl,"",t.engagementsInfo.video_call_advisor_link,""),e.R7$(7),e.JRh(t.engagementsInfo.video_call_advisor_password)}}function G1(i,n){if(1&i&&(e.j41(0,"div",103)(1,"div",104)(2,"h3",105),e.EFF(3,"Observer Conferencing Link"),e.k0s()(),e.j41(4,"div",106)(5,"a",184),e.EFF(6),e.k0s()(),e.nrm(7,"br"),e.j41(8,"div",104)(9,"h3",105),e.EFF(10,"Observer Conferencing Passcode"),e.k0s()(),e.j41(11,"div",104)(12,"h3",105),e.EFF(13),e.k0s()()()),2&i){const t=e.XpG(2);e.R7$(5),e.FCK("href","",t.engagementsInfo.baseUrl,"",t.engagementsInfo.video_call_observer_link,"",e.B4B),e.R7$(),e.Lme("",t.engagementsInfo.baseUrl,"",t.engagementsInfo.video_call_observer_link,""),e.R7$(7),e.JRh(t.engagementsInfo.video_call_observer_password)}}function B1(i,n){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"div",104)(2,"h4",185),e.EFF(3,"Video Configuration"),e.k0s()(),e.j41(4,"div",186)(5,"mat-slide-toggle",187),e.bIt("change",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.toggleBoolean("videoEnabled",r))}),e.EFF(6," Video Enabled "),e.k0s()(),e.j41(7,"div",186)(8,"mat-slide-toggle",187),e.bIt("change",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.toggleBoolean("clientBlinded",r))}),e.EFF(9," Client Blinded "),e.k0s()(),e.j41(10,"div",186)(11,"mat-slide-toggle",187),e.bIt("change",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.toggleBoolean("advisorBlinded",r))}),e.EFF(12," Advisor Blinded "),e.k0s()(),e.j41(13,"div",186)(14,"mat-slide-toggle",187),e.bIt("change",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.toggleBoolean("recordingEnabled",r))}),e.EFF(15," Recording Enabled "),e.k0s()()()}if(2&i){const t=e.XpG(2);e.R7$(5),e.Y8G("ngModel",t.videoEnabled),e.R7$(3),e.Y8G("ngModel",t.clientBlinded),e.R7$(3),e.Y8G("ngModel",t.advisorBlinded),e.R7$(3),e.Y8G("ngModel",t.recordingEnabled)}}function U1(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",103)(1,"div",104)(2,"h3",105),e.EFF(3,"Record call"),e.k0s()(),e.j41(4,"div",106)(5,"mat-slide-toggle",188),e.bIt("change",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onRecordingStatusChange(r.engagementsInfo.id))}),e.k0s()()()}if(2&i){const t=e.XpG(2);e.R7$(5),e.Y8G("checked",t.recStatus)("disabled",!t.recStatus)}}function $1(i,n){if(1&i&&(e.j41(0,"div",106),e.EFF(1),e.j41(2,"a",191),e.nrm(3,"ui-icon",192),e.k0s()()),2&i){const t=n.$implicit,s=n.index,r=e.XpG(3);e.R7$(),e.LHq(" ",s+1,". ",r.advisor.name,"_",r.project.title,"_",s+1,": "),e.R7$(),e.FS9("href",t.link,e.B4B)}}function z1(i,n){if(1&i&&(e.j41(0,"div",95)(1,"div",85)(2,"div",96)(3,"div",97)(4,"div",104)(5,"h6",189),e.EFF(6," Download Recordings "),e.k0s()(),e.DNE(7,$1,4,5,"div",190),e.k0s()()()()),2&i){const t=e.XpG(2);e.R7$(7),e.Y8G("ngForOf",t.call_log)}}function Y1(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",195)(1,"p")(2,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG(4);return e.Njj(r.saveToCalender())}),e.nrm(3,"ui-icon",196),e.EFF(4," Client - Save To Google Calendar "),e.k0s()()()}}function H1(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",195)(1,"p")(2,"button",197),e.bIt("click",function(){e.eBV(t);const r=e.XpG(4);return e.Njj(r.advisorSaveToCalender())}),e.nrm(3,"ui-icon",196),e.EFF(4," Advisor - Save To Google Calendar "),e.k0s()()()}}function V1(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",195)(1,"p")(2,"button",198),e.bIt("click",function(){e.eBV(t);const r=e.XpG(4);return e.Njj(r.complianceInvite())}),e.nrm(3,"ui-icon",196),e.EFF(4," Compliance Invite "),e.k0s()()()}}function X1(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",195)(1,"p")(2,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG(4);return e.Njj(r.openOfflineEngagementModal())}),e.nrm(3,"ui-icon",199),e.EFF(4," Report Offline Engagement "),e.k0s()()()}}function W1(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",t.duration," sec) ")}}function q1(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",e.i5U(2,1,t.duration/60,"1.2-2")," min) ")}}function K1(i,n){if(1&i){const t=e.RV6();e.j41(0,"p")(1,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(4);return e.Njj(a.getTwilioTranscription(r.call_sid))}),e.nrm(2,"ui-icon",192),e.EFF(3," Transcription "),e.DNE(4,W1,2,1,"span",3)(5,q1,3,4,"span",3),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.R7$(4),e.Y8G("ngIf",t.duration<60),e.R7$(),e.Y8G("ngIf",t.duration>60)}}function Z1(i,n){if(1&i&&(e.j41(0,"div",195),e.DNE(1,K1,6,2,"p",3),e.k0s()),2&i){const t=n.$implicit;e.R7$(),e.Y8G("ngIf","advisor"==t.user_type)}}function J1(i,n){if(1&i&&(e.j41(0,"div",95)(1,"div",85)(2,"div",96),e.DNE(3,Y1,5,0,"div",193)(4,H1,5,0,"div",193)(5,V1,5,0,"div",193)(6,X1,5,0,"div",193)(7,Z1,2,1,"div",194),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(3),e.Y8G("ngIf",0==t.engagementsInfo.after_engagement_status&&t.engagementsInfo.passcode&&"3"!=t.user_type),e.R7$(),e.Y8G("ngIf",0==t.engagementsInfo.after_engagement_status&&t.engagementsInfo.passcode),e.R7$(),e.Y8G("ngIf",0==t.engagementsInfo.after_engagement_status&&t.engagementsInfo.passcode&&t.isBridgerStaff),e.R7$(),e.Y8G("ngIf",2==t.engagementsInfo.after_engagement_status&&"3"!=t.user_type),e.R7$(),e.Y8G("ngForOf",t.call_log)}}function Q1(i,n){if(1&i&&(e.qex(0),e.DNE(1,J1,8,5,"div",111),e.bVm()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",0==t.engagementsInfo.after_engagement_status&&t.engagementsInfo.passcode||2==t.engagementsInfo.after_engagement_status)}}
1function ev(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",t.duration," sec) ")}}function tv(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",e.i5U(2,1,t.duration/60,"1.2-2")," min) ")}}function nv(i,n){if(1&i){const t=e.RV6();e.j41(0,"p")(1,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.getTwilioTranscription(r.call_sid))}),e.nrm(2,"ui-icon",192),e.EFF(3," Transcription "),e.DNE(4,ev,2,1,"span",3)(5,tv,3,4,"span",3),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.R7$(4),e.Y8G("ngIf",t.duration<60),e.R7$(),e.Y8G("ngIf",t.duration>60)}}function iv(i,n){if(1&i&&(e.j41(0,"div",195),e.DNE(1,nv,6,2,"p",3),e.k0s()),2&i){const t=n.$implicit;e.R7$(),e.Y8G("ngIf","advisor"==t.user_type)}}function rv(i,n){if(1&i&&(e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",96),e.DNE(4,iv,2,1,"div",194),e.k0s()()(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(4),e.Y8G("ngForOf",t.call_log)}}function sv(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",t.duration," sec) ")}}function av(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",e.i5U(2,1,t.duration/60,"1.2-2")," min) ")}}function ov(i,n){if(1&i){const t=e.RV6();e.j41(0,"p")(1,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.getTwilioTranscription(r.call_sid))}),e.nrm(2,"ui-icon",192),e.EFF(3," Transcription "),e.DNE(4,sv,2,1,"span",3)(5,av,3,4,"span",3),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.R7$(4),e.Y8G("ngIf",t.duration<60),e.R7$(),e.Y8G("ngIf",t.duration>60)}}function lv(i,n){if(1&i&&(e.j41(0,"div",195),e.DNE(1,ov,6,2,"p",3),e.k0s()),2&i){const t=n.$implicit;e.R7$(),e.Y8G("ngIf","advisor"==t.user_type)}}function cv(i,n){if(1&i&&(e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",96),e.DNE(4,lv,2,1,"div",194),e.k0s()()(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(4),e.Y8G("ngForOf",t.call_log)}}function dv(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",t.duration," sec) ")}}function uv(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",e.i5U(2,1,t.duration/60,"1.2-2")," min) ")}}function pv(i,n){if(1&i){const t=e.RV6();e.j41(0,"p")(1,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.getTwilioDownload(r.call_sid))}),e.nrm(2,"ui-icon",192),e.EFF(3," Call Recording "),e.DNE(4,dv,2,1,"span",3)(5,uv,3,4,"span",3),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.R7$(4),e.Y8G("ngIf",t.duration<60),e.R7$(),e.Y8G("ngIf",t.duration>60)}}function hv(i,n){if(1&i&&(e.j41(0,"div",195),e.DNE(1,pv,6,2,"p",3),e.k0s()),2&i){const t=n.$implicit;e.R7$(),e.Y8G("ngIf","advisor"==t.user_type)}}function fv(i,n){if(1&i&&(e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",96),e.DNE(4,hv,2,1,"div",194),e.k0s()()(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(4),e.Y8G("ngForOf",t.call_log)}}function mv(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",t.duration," sec) ")}}function gv(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",e.i5U(2,1,t.duration/60,"1.2-2")," min) ")}}function _v(i,n){if(1&i){const t=e.RV6();e.j41(0,"p")(1,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.getTwilioDownload(r.call_sid))}),e.nrm(2,"ui-icon",192),e.EFF(3," Call Recording "),e.DNE(4,mv,2,1,"span",3)(5,gv,3,4,"span",3),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.R7$(4),e.Y8G("ngIf",t.duration<60),e.R7$(),e.Y8G("ngIf",t.duration>60)}}function vv(i,n){if(1&i&&(e.j41(0,"div",195),e.DNE(1,_v,6,2,"p",3),e.k0s()),2&i){const t=n.$implicit;e.R7$(),e.Y8G("ngIf","advisor"==t.user_type)}}function wv(i,n){if(1&i&&(e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",96),e.DNE(4,vv,2,1,"div",194),e.k0s()()(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(4),e.Y8G("ngForOf",t.call_log)}}function bv(i,n){1&i&&(e.qex(0),e.j41(1,"div",200)(2,"div",85)(3,"div",201)(4,"h4",202),e.nrm(5,"ui-icon",203),e.EFF(6," Recordings & Transcripts "),e.k0s(),e.j41(7,"p",204),e.nrm(8,"ui-icon",205),e.EFF(9," Loading Zoom and video assets \u2014 this can take a few seconds\u2026 "),e.k0s()(),e.j41(10,"div",96)(11,"div",206),e.nrm(12,"div",207)(13,"div",208)(14,"div",209),e.k0s()()()(),e.bVm())}
1function yv(i,n){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",201)(4,"h4",185),e.EFF(5,"Bridger Video Chat Recording"),e.k0s(),e.j41(6,"p",210),e.nrm(7,"ui-icon",211),e.EFF(8," Recording with all participants in one view "),e.k0s()(),e.j41(9,"div",96)(10,"div",212)(11,"div",213)(12,"span",214),e.EFF(13),e.k0s(),e.j41(14,"span",215),e.nrm(15,"ui-icon",196),e.EFF(16),e.nI1(17,"date"),e.k0s()(),e.j41(18,"button",216),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.downloadProxy(r.compositionRecordings[0].downloadProxy))}),e.nrm(19,"ui-icon",192),e.EFF(20," Download Recording "),e.k0s()()()()(),e.bVm()}if(2&i){const t=e.XpG(2);e.R7$(13),e.SpI(" ",t.formatDuration(t.compositionRecordings[0].duration)," "),e.R7$(3),e.SpI(" ",e.i5U(17,2,t.compositionRecordings[0].created,"short")," ")}}function xv(i,n){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",201)(4,"h4",185),e.nrm(5,"ui-icon",217),e.EFF(6," Bridger Video Transcript "),e.k0s(),e.j41(7,"p",210),e.nrm(8,"ui-icon",218),e.EFF(9," Closed captioning transcript from the Bridger Video call "),e.k0s()(),e.j41(10,"div",96)(11,"div",212)(12,"button",216),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.downloadBridgerVideoTranscript())}),e.nrm(13,"ui-icon",192),e.EFF(14," Download Transcript "),e.k0s()()()()(),e.bVm()}}function kv(i,n){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit,s=e.XpG(3);e.R7$(),e.SpI(" \xb7 ",s.formatDuration(t.durationSeconds),"")}}function Cv(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",195)(1,"p")(2,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.downloadProxy(r.downloadProxy))}),e.nrm(3,"ui-icon",192),e.EFF(4),e.DNE(5,kv,2,1,"span",3),e.k0s(),e.j41(6,"small",219),e.EFF(7),e.nI1(8,"uppercase"),e.nrm(9,"br"),e.EFF(10),e.nI1(11,"date"),e.k0s()()()}if(2&i){const t=e.XpG().$implicit;e.R7$(4),e.SpI(" ","composition"===t.recordingType?"Twilio Recording":"audio_only"===t.recordingType?"Audio":"Video",""),e.R7$(),e.Y8G("ngIf",t.durationSeconds),e.R7$(2),e.SpI(" Source: ",e.bMT(8,4,t.source),""),e.R7$(3),e.SpI(" Created: ",e.i5U(11,6,t.created,"short")," ")}}function Ev(i,n){if(1&i&&(e.qex(0),e.DNE(1,Cv,12,9,"div",193),e.bVm()),2&i){const t=n.$implicit;e.R7$(),e.Y8G("ngIf","timeline"!==t.recordingType&&"audio_transcript"!==t.recordingType&&"chat_file"!==t.recordingType&&"vtt"!==t.recordingType)}}function Tv(i,n){if(1&i&&(e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",104)(4,"h4",185),e.EFF(5,"Zoom Recordings"),e.k0s()(),e.j41(6,"div",96),e.DNE(7,Ev,2,1,"ng-container",181),e.k0s()()(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(7),e.Y8G("ngForOf",t.zoomRecordings)}}function Av(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",195)(1,"p")(2,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.downloadTranscriptAsDocx())}),e.nrm(3,"ui-icon",217),e.EFF(4," Download DOCX "),e.k0s(),e.j41(5,"button",220),e.bIt("click",function(){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.downloadProxy(r.downloadProxy,!0))}),e.nrm(6,"ui-icon",192),e.EFF(7," VTT "),e.k0s(),e.j41(8,"small",219),e.EFF(9),e.nrm(10,"br"),e.EFF(11),e.nI1(12,"date"),e.k0s()()()}if(2&i){const t=n.$implicit;e.R7$(9),e.SpI(" Topic: ",t.topic,""),e.R7$(2),e.SpI(" Created: ",e.i5U(12,2,t.created,"short")," ")}}function Iv(i,n){if(1&i&&(e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",104)(4,"h4",185),e.EFF(5,"Zoom Transcripts"),e.k0s()(),e.j41(6,"div",96),e.DNE(7,Av,13,5,"div",194),e.k0s()()(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(7),e.Y8G("ngForOf",t.zoomTranscripts)}}function Sv(i,n){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",104)(4,"h4",185),e.nrm(5,"ui-icon",221),e.EFF(6," Transcript "),e.k0s(),e.j41(7,"p",210),e.nrm(8,"ui-icon",218),e.EFF(9," Speaker-labelled, with the project and advisor on the cover "),e.k0s()(),e.j41(10,"div",222)(11,"div",223)(12,"button",224),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.downloadBridgerTranscriptDocument())}),e.nrm(13,"ui-icon",192),e.EFF(14),e.k0s()()()()(),e.bVm()}if(2&i){const t=e.XpG(2);e.R7$(12),e.Y8G("disabled",t.isDownloadingBridgerTranscript),e.R7$(2),e.SpI(" ",t.isDownloadingBridgerTranscript?" Preparing\u2026":" Download Transcript (PDF)"," ")}}
1function Dv(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",230)(1,"span"),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.j41(4,"button",231),e.bIt("click",function(){const r=e.eBV(t).$implicit,a=e.XpG(4);return e.Njj(a.openInNewTab(r.playUrl))}),e.EFF(5," Play "),e.k0s(),e.j41(6,"button",232),e.bIt("click",function(){const r=e.eBV(t).$implicit,a=e.XpG(4);return e.Njj(a.downloadViaProxy(r.downloadProxy))}),e.nrm(7,"ui-icon",192),e.EFF(8," Download "),e.k0s()()}if(2&i){const t=n.$implicit;e.R7$(2),e.Lme("\u2022 ",t.type," \u2014 ",e.i5U(3,2,t.start,"short"),"")}}function Rv(i,n){if(1&i&&(e.j41(0,"div",226)(1,"h6",227),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.j41(4,"div",228),e.DNE(5,Dv,9,5,"div",229),e.k0s(),e.nrm(6,"hr"),e.k0s()),2&i){const t=n.$implicit;e.R7$(2),e.Lme("",t.meetingTopic," \u2014 ",e.i5U(3,3,t.startTime,"medium"),""),e.R7$(3),e.Y8G("ngForOf",t.files)}}function Pv(i,n){if(1&i&&(e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",96),e.DNE(4,Rv,7,6,"div",225),e.k0s()()(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(4),e.Y8G("ngForOf",t.zoomMeetings)}}function Ov(i,n){if(1&i&&(e.j41(0,"div",244),e.nrm(1,"p",245),e.j41(2,"div",246)(3,"p",247),e.EFF(4),e.nrm(5,"br"),e.EFF(6),e.nI1(7,"customDateTimeFormat"),e.k0s()()()),2&i){const t=n.$implicit;e.R7$(),e.Y8G("innerHTML",null==t?null:t.note,e.npT),e.R7$(3),e.SpI(" Created By ",null==t||null==t.site_user?null:t.site_user.name," "),e.R7$(2),e.SpI(" ",e.bMT(7,3,null==t?null:t.createdAt)," ")}}function Fv(i,n){if(1&i&&(e.j41(0,"span"),e.DNE(1,Ov,8,5,"div",243),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",t.engagementNotesData)}}function Nv(i,n){1&i&&(e.j41(0,"div"),e.EFF(1," Notes is required "),e.k0s())}function Mv(i,n){if(1&i&&(e.j41(0,"mat-error"),e.DNE(1,Nv,2,0,"div",3),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",(t.nf.update_content.touched||t.submitted)&&(null==t.nf.update_content.errors?null:t.nf.update_content.errors.required))}}function Lv(i,n){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"div",95)(2,"div",85)(3,"div",96)(4,"div",195)(5,"form",233),e.bIt("ngSubmit",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onSaveNotes())}),e.j41(6,"div",234)(7,"h5",144),e.EFF(8,"Notes"),e.k0s()(),e.j41(9,"div",235)(10,"div",236),e.DNE(11,Fv,2,1,"span",3),e.j41(12,"div",237)(13,"div",238)(14,"div",239),e.nrm(15,"quill-editor",240),e.DNE(16,Mv,2,1,"mat-error",3),e.k0s()()()()(),e.j41(17,"div",241)(18,"button",242),e.EFF(19,"Submit"),e.k0s()()()()()()(),e.bVm()}if(2&i){const t=e.XpG(2);e.R7$(5),e.Y8G("formGroup",t.FormData),e.R7$(6),e.Y8G("ngIf",t.engagementNotesData.length>0),e.R7$(4),e.Y8G("modules",t.modules)("styles",e.lJ4(5,U_)),e.R7$(),e.Y8G("ngIf",t.nf.update_content.errors)}}function jv(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to expand"),e.k0s())}function Gv(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to collapse"),e.k0s())}function Bv(i,n){1&i&&(e.j41(0,"span",249),e.nrm(1,"ui-icon",217),e.EFF(2," Bio available "),e.k0s())}function Uv(i,n){if(1&i&&e.nrm(0,"img",260),2&i){const t=e.XpG(3);e.FCK("src","",t.url,"advisor_image/",t.advisor.profileimage,"",e.B4B)}}function $v(i,n){if(1&i&&(e.j41(0,"span",261),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.JRh(t.advisor.name.charAt(0))}}function zv(i,n){if(1&i&&(e.j41(0,"h5",262),e.nI1(1,"customIdEncode"),e.nI1(2,"customIdEncode"),e.EFF(3),e.k0s()),2&i){const t=e.XpG(3);e.FCK("routerLink","/user/client-project-profile/details/",e.bMT(1,4,t.project.id),"/",e.bMT(2,6,t.advisor.id),""),e.R7$(3),e.SpI(" ",t.advisor.name," ")}}function Yv(i,n){if(1&i&&(e.j41(0,"h5",262),e.nI1(1,"customIdEncode"),e.EFF(2),e.k0s()),2&i){const t=e.XpG(3);e.Mz_("routerLink","/user/network/advisor/advisor-details/",e.bMT(1,3,t.advisor.id),""),e.R7$(2),e.SpI(" ",t.advisor.name," ")}}function Hv(i,n){if(1&i&&(e.j41(0,"div",263),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.advisorcareer.organization," ")}}function Vv(i,n){if(1&i&&(e.j41(0,"div",263),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.advisor.email," ")}}function Xv(i,n){if(1&i&&(e.j41(0,"div",263),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Lme(" (+",t.advisor.countryCode,")-",t.advisor.phoneno," ")}}
1function Wv(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",250)(1,"div",251)(2,"div",252),e.DNE(3,Uv,1,3,"img",253)(4,$v,2,1,"span",254),e.k0s(),e.j41(5,"div",255)(6,"div",256),e.DNE(7,zv,4,8,"h5",257)(8,Yv,3,5,"h5",257)(9,Hv,2,1,"div",258)(10,Vv,2,1,"div",258)(11,Xv,2,2,"div",258),e.j41(12,"div",259)(13,"mat-slide-toggle",187),e.bIt("change",function(r){e.eBV(t);const a=e.XpG(2);return e.Njj(a.toggleRecordingStatus(r))}),e.EFF(14," Reminder Email "),e.k0s()()()()()()}if(2&i){const t=e.XpG(2);e.Y8G("ngClass","2"==t.user_type?"bottom-border":""),e.R7$(3),e.Y8G("ngIf",""!=t.advisor.profileimage),e.R7$(),e.Y8G("ngIf",""==t.advisor.profileimage),e.R7$(3),e.Y8G("ngIf",2==t.user_type),e.R7$(),e.Y8G("ngIf",2!=t.user_type),e.R7$(),e.Y8G("ngIf",""!=t.advisorcareer.organization),e.R7$(),e.Y8G("ngIf",""!=t.advisor.email&&"2"!=t.user_type),e.R7$(),e.Y8G("ngIf",""!=t.advisor.phoneno&&"2"!=t.user_type),e.R7$(2),e.Y8G("ngModel",t.reminderEmailStatus)}}function qv(i,n){if(1&i&&(e.j41(0,"div",264)(1,"div",265),e.nrm(2,"p",266),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("innerHTML",t.advisorbiography,e.npT)}}function Kv(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to expand"),e.k0s())}function Zv(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to collapse"),e.k0s())}function Jv(i,n){if(1&i&&(e.j41(0,"span",249),e.nrm(1,"ui-icon",269),e.EFF(2),e.k0s()),2&i){const t=e.XpG(3);e.R7$(2),e.SpI(" ",(null==t.advisoranswer.controls.advisorResponse.controls?null:t.advisoranswer.controls.advisorResponse.controls.length)||0," responses ")}}function Qv(i,n){1&i&&e.nrm(0,"textarea",285)}function e0(i,n){1&i&&e.nrm(0,"input",286)}function t0(i,n){if(1&i&&(e.j41(0,"mat-form-field",282)(1,"mat-label"),e.EFF(2,"Type your answer here"),e.k0s(),e.DNE(3,Qv,1,0,"textarea",283)(4,e0,1,0,"input",284),e.k0s()),2&i){const t=e.XpG().index,s=e.XpG(5);e.R7$(3),e.Y8G("ngIf","1"!==s.advisoranswer.get("advisorResponse").controls[t].controls.ques_status.value),e.R7$(),e.Y8G("ngIf","1"===s.advisoranswer.get("advisorResponse").controls[t].controls.ques_status.value)}}function n0(i,n){if(1&i&&(e.j41(0,"div")(1,"mat-radio-button",288),e.EFF(2),e.k0s(),e.nrm(3,"br"),e.k0s()),2&i){const t=n.$implicit;e.R7$(),e.Y8G("value",t.key),e.R7$(),e.JRh(t.key)}}function i0(i,n){if(1&i&&(e.j41(0,"mat-radio-group",287),e.DNE(1,n0,4,2,"div",181),e.k0s()),2&i){const t=e.XpG().index,s=e.XpG(5);e.R7$(),e.Y8G("ngForOf",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.answerOptions)}}function r0(i,n){if(1&i&&(e.j41(0,"mat-option",159),e.EFF(1),e.k0s()),2&i){const t=n.$implicit;e.Y8G("value",t.key),e.R7$(),e.SpI("",t.key," ")}}function s0(i,n){if(1&i&&(e.j41(0,"mat-form-field",282)(1,"mat-label"),e.EFF(2,"Select "),e.k0s(),e.j41(3,"mat-select",287),e.DNE(4,r0,2,2,"mat-option",156),e.k0s()()),2&i){const t=e.XpG().index,s=e.XpG(5);e.R7$(4),e.Y8G("ngForOf",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.answerOptions)}}function a0(i,n){if(1&i&&(e.j41(0,"app-custom-check-box",290),e.EFF(1),e.k0s()),2&i){const t=n.$implicit;e.Y8G("value",t.key),e.R7$(),e.JRh(t.key)}}function o0(i,n){if(1&i&&e.DNE(0,a0,2,2,"app-custom-check-box",289),2&i){const t=e.XpG().index,s=e.XpG(5);e.Y8G("ngForOf",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.answerOptions)}}function l0(i,n){if(1&i&&(e.j41(0,"div",298)(1,"div",149),e.EFF(2),e.k0s()()),2&i){const t=n.$implicit;e.R7$(2),e.SpI(" ",t.key," ")}}function c0(i,n){if(1&i&&(e.j41(0,"div",304)(1,"div",301),e.EFF(2),e.k0s(),e.j41(3,"p",302),e.nrm(4,"app-custom-check-box",305),e.k0s()()),2&i){const t=n.$implicit,s=e.XpG(),r=s.$implicit;e.Y8G("formGroupName",s.index),e.R7$(2),e.SpI(" ",t.key," "),e.R7$(2),e.FS9("formControlName",r.key),e.Y8G("value",t.key)}}function d0(i,n){if(1&i&&(e.j41(0,"div",299)(1,"div",300)(2,"div",294)(3,"div",301),e.EFF(4," \xa0 "),e.k0s(),e.j41(5,"p",302),e.EFF(6),e.k0s()(),e.DNE(7,c0,5,4,"div",303),e.k0s()()),2&i){const t=n.$implicit,s=e.XpG(2).index,r=e.XpG(5);e.R7$(6),e.SpI(" ",t.key," "),e.R7$(),e.Y8G("ngForOf",r.advisoranswer.controls.advisorResponse.controls[s].controls.ques.value.answerOptionOtherData)}}function u0(i,n){if(1&i&&(e.qex(0,291),e.j41(1,"div",292)(2,"div",293)(3,"div",294)(4,"div",149),e.EFF(5,"\xa0"),e.k0s()(),e.DNE(6,l0,3,1,"div",295),e.k0s(),e.j41(7,"div",296
1),e.DNE(8,d0,8,2,"div",297),e.k0s()(),e.bVm()),2&i){const t=e.XpG().index,s=e.XpG(5);e.R7$(6),e.Y8G("ngForOf",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.answerOptionOtherData),e.R7$(2),e.Y8G("ngForOf",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.answerOptions)}}function p0(i,n){if(1&i&&(e.j41(0,"div",298)(1,"div",149),e.EFF(2),e.k0s()()),2&i){const t=n.$implicit;e.R7$(2),e.SpI(" ",t.key," ")}}function h0(i,n){if(1&i&&(e.j41(0,"div",298)(1,"div",301),e.EFF(2),e.k0s(),e.j41(3,"label",306),e.nrm(4,"input",307)(5,"span",308),e.k0s()()),2&i){const t=n.$implicit,s=e.XpG().$implicit,r=e.XpG(2).index,a=e.XpG(5);e.R7$(2),e.SpI(" ",t.key," "),e.R7$(2),e.FS9("formControlName",s.key),e.Y8G("value",t.key)("checked",a.advisoranswer.controls.advisorResponse.controls[r].controls.answer.value[s.key]===t.key)}}function f0(i,n){if(1&i&&(e.j41(0,"div",299)(1,"div",300)(2,"div",294)(3,"div",301),e.EFF(4," \xa0 "),e.k0s(),e.j41(5,"p",302),e.EFF(6),e.k0s()(),e.qex(7,276),e.DNE(8,h0,6,4,"div",295),e.bVm(),e.k0s()()),2&i){const t=n.$implicit,s=n.index,r=e.XpG(2).index,a=e.XpG(5);e.R7$(6),e.SpI(" ",t.key," "),e.R7$(),e.Y8G("formGroupName",s),e.R7$(),e.Y8G("ngForOf",a.advisoranswer.controls.advisorResponse.controls[r].controls.ques.value.answerOptionOtherData)}}function m0(i,n){if(1&i&&(e.qex(0,291),e.j41(1,"div",292)(2,"div",293)(3,"div",294)(4,"div",149),e.EFF(5,"\xa0"),e.k0s()(),e.DNE(6,p0,3,1,"div",295),e.k0s(),e.j41(7,"div",296),e.DNE(8,f0,9,3,"div",297),e.k0s()(),e.bVm()),2&i){const t=e.XpG().index,s=e.XpG(5);e.R7$(6),e.Y8G("ngForOf",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.answerOptionOtherData),e.R7$(2),e.Y8G("ngForOf",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.answerOptions)}}function g0(i,n){if(1&i&&(e.j41(0,"div",298)(1,"div",149),e.EFF(2),e.k0s()()),2&i){const t=n.$implicit;e.R7$(2),e.JRh(t.key)}}function _0(i,n){if(1&i&&(e.j41(0,"div",298),e.nrm(1,"div",301),e.j41(2,"p",302),e.nrm(3,"textarea",309),e.k0s()()),2&i){const t=n.$implicit;e.R7$(3),e.FS9("formControlName",t.key)}}function v0(i,n){if(1&i&&(e.j41(0,"div",299)(1,"div",300)(2,"div",294)(3,"div",301),e.EFF(4," \xa0 "),e.k0s(),e.j41(5,"p",302),e.EFF(6),e.k0s()(),e.qex(7,276),e.DNE(8,_0,4,1,"div",295),e.bVm(),e.k0s()()),2&i){const t=n.$implicit,s=n.index,r=e.XpG(2).index,a=e.XpG(5);e.R7$(6),e.SpI(" ",t.key," "),e.R7$(),e.Y8G("formGroupName",s),e.R7$(),e.Y8G("ngForOf",a.advisoranswer.controls.advisorResponse.controls[r].controls.ques.value.answerOptionOtherData)}}function w0(i,n){if(1&i&&(e.qex(0,291),e.j41(1,"div",292)(2,"div",293)(3,"div",294)(4,"div",149),e.EFF(5,"\xa0"),e.k0s()(),e.DNE(6,g0,3,1,"div",295),e.k0s(),e.j41(7,"div",296),e.DNE(8,v0,9,3,"div",297),e.k0s()(),e.bVm()),2&i){const t=e.XpG().index,s=e.XpG(5);e.R7$(6),e.Y8G("ngForOf",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.answerOptionOtherData),e.R7$(2),e.Y8G("ngForOf",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.answerOptions)}}function b0(i,n){if(1&i&&(e.j41(0,"div",274)(1,"div",275),e.qex(2,276),e.j41(3,"p",277)(4,"b"),e.EFF(5),e.k0s(),e.j41(6,"b",278),e.EFF(7,"-"),e.k0s(),e.nrm(8,"b",266),e.k0s(),e.DNE(9,t0,5,2,"mat-form-field",279)(10,i0,2,1,"mat-radio-group",280)(11,s0,5,1,"ng-template",281)(12,o0,1,1,"ng-template",281)(13,u0,9,2,"ng-template",281)(14,m0,9,2,"ng-template",281)(15,w0,9,2,"ng-template",281),e.bVm(),e.k0s()()),2&i){const t=n.index,s=e.XpG(5);e.R7$(2),e.Y8G("formGroupName",t),e.R7$(3),e.SpI("",t+1," "),e.R7$(3),e.Y8G("innerHTML",s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.question,e.npT),e.R7$(),e.Y8G("ngIf","paragraph"===s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.type),e.R7$(),e.Y8G("ngIf","radio_button"===s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.type),e.R7$(),e.Y8G("ngIf","dropdown"===s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.type),e.R7$(),e.Y8G("ngIf","check_box"===s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.type),e.R7$(),e.Y8G("ngIf","checkbox_grid"===s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.type),e.R7$(),e.Y8G("ngIf","multiple_choice_grid"===(null==s.advisoranswer||null==s.advisoranswer.controls||null==s.advisoranswer.controls.advisorResponse.controls[t]||null==s.advisoranswer.controls.advisorResponse.controls[t].controls||null==s.advisoranswer.controls.advisorResponse.controls[t].controls.ques||null==s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value?null:s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.type)),e.R7$(),e.Y8G("ngIf","o
1pen_ended_grid"===s.advisoranswer.controls.advisorResponse.controls[t].controls.ques.value.type)}}function y0(i,n){if(1&i&&(e.qex(0,272),e.DNE(1,b0,16,10,"div",273),e.bVm()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngForOf",t.advisoranswer.controls.advisorResponse.controls)}}function x0(i,n){if(1&i&&(e.j41(0,"div",270)(1,"form",150),e.DNE(2,y0,2,1,"ng-container",271),e.k0s()()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("formGroup",t.advisoranswer),e.R7$(),e.Y8G("ngIf",t.advisoranswer.controls.advisorResponse)}}function k0(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",267)(1,"div",85)(2,"div",113),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.isAdvisorResponseCollapsed=!r.isAdvisorResponseCollapsed)}),e.j41(3,"div",114)(4,"h4",115),e.EFF(5," Advisor responses to the screening questions "),e.k0s(),e.DNE(6,Kv,2,0,"span",116)(7,Zv,2,0,"span",116),e.k0s(),e.j41(8,"div",117),e.DNE(9,Jv,3,1,"span",118),e.nrm(10,"i",119),e.k0s()(),e.DNE(11,x0,3,2,"div",268),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",t.isAdvisorResponseCollapsed),e.R7$(),e.Y8G("ngIf",!t.isAdvisorResponseCollapsed),e.R7$(2),e.Y8G("ngIf",t.isAdvisorResponseCollapsed&&t.advisoranswer.controls.advisorResponse),e.R7$(),e.Y8G("ngClass",e.l_i(5,Rt,t.isAdvisorResponseCollapsed,!t.isAdvisorResponseCollapsed)),e.R7$(),e.Y8G("ngIf",!t.isAdvisorResponseCollapsed)}}function C0(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to expand"),e.k0s())}function E0(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to collapse"),e.k0s())}function T0(i,n){1&i&&(e.j41(0,"span"),e.EFF(1,"2 notes"),e.k0s())}function A0(i,n){1&i&&(e.j41(0,"span"),e.EFF(1,"1 note"),e.k0s())}function I0(i,n){if(1&i&&(e.j41(0,"span",249),e.nrm(1,"i",310),e.DNE(2,T0,2,0,"span",3)(3,A0,2,0,"span",3),e.k0s()),2&i){const t=e.XpG(3);e.R7$(2),e.Y8G("ngIf",t.engagementsInfo.note&&t.engagementsInfo.cancel_note),e.R7$(),e.Y8G("ngIf",t.engagementsInfo.note&&!t.engagementsInfo.cancel_note||!t.engagementsInfo.note&&t.engagementsInfo.cancel_note)}}function S0(i,n){if(1&i&&(e.j41(0,"div",270)(1,"div",311)(2,"div",312)(3,"h4",149),e.EFF(4,"Schedule Note"),e.k0s()(),e.j41(5,"div",313),e.nrm(6,"p",266),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(6),e.Y8G("innerHTML",t.engagementsInfo.note,e.npT)}}function D0(i,n){if(1&i&&(e.j41(0,"div",270)(1,"div",311)(2,"div",312)(3,"h4",149),e.EFF(4,"Cancel Note"),e.k0s()(),e.j41(5,"div",313),e.nrm(6,"p",266),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(6),e.Y8G("innerHTML",t.engagementsInfo.cancel_note,e.npT)}}function R0(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",267)(1,"div",85)(2,"div",113),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.isPreviousNotesCollapsed=!r.isPreviousNotesCollapsed)}),e.j41(3,"div",114)(4,"h4",115),e.EFF(5,"Previous Notes"),e.k0s(),e.DNE(6,C0,2,0,"span",116)(7,E0,2,0,"span",116),e.k0s(),e.j41(8,"div",117),e.DNE(9,I0,4,2,"span",118),e.nrm(10,"i",119),e.k0s()(),e.DNE(11,S0,7,1,"div",268)(12,D0,7,1,"div",268),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",t.isPreviousNotesCollapsed),e.R7$(),e.Y8G("ngIf",!t.isPreviousNotesCollapsed),e.R7$(2),e.Y8G("ngIf",t.isPreviousNotesCollapsed),e.R7$(),e.Y8G("ngClass",e.l_i(6,Rt,t.isPreviousNotesCollapsed,!t.isPreviousNotesCollapsed)),e.R7$(),e.Y8G("ngIf",t.engagementsInfo.note&&!t.isPreviousNotesCollapsed),e.R7$(),e.Y8G("ngIf",t.engagementsInfo.cancel_note&&!t.isPreviousNotesCollapsed)}}function P0(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to expand"),e.k0s())}function O0(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to collapse"),e.k0s())}function F0(i,n){1&i&&(e.j41(0,"span",249),e.nrm(1,"ui-icon",314),e.EFF(2," Internal note available "),e.k0s())}function N0(i,n){if(1&i&&(e.j41(0,"div",270)(1,"div",311)(2,"div",312)(3,"h4",149),e.EFF(4,"Internal Note"),e.k0s()(),e.j41(5,"div",313),e.nrm(6,"p",266),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(6),e.Y8G("innerHTML",t.engagementsInfo.internal_note,e.npT)}}function M0(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",267)(1,"div",85)(2,"div",113),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.isPreviousInternalNotesCollapsed=!r.isPreviousInternalNotesCollapsed)}),e.j41(3,"div",114)(4,"h4",115),e.EFF(5,"Previous Internal Notes"),e.k0s(),e.DNE(6,P0,2,0,"span",116)(7,O0,2,0,"span",116),e.k0s(),e.j41(8,"div",117),e.DNE(9,F0,3,0,"span",118),e.nrm(10,"i",119),e.k0s()(),e.DNE(11,N0,7,1,"div",268),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",t.isPreviousInternalNotesCollapsed),e.R7$(),e.Y8G("ngIf",!t.isPreviousInternalNotesCollapsed),e.R7$(2),e.Y8G("ngIf",t.isPreviousInternalNotesCollapsed&&t.engagementsInfo.internal_note),e.R7$(),e.Y8G("ngClass",e.l_i(5,Rt,t.isPreviousInternalNotesCollapsed,!t.isPreviousInternalNotesCollapsed)),e.R7$(),e.Y8G("ngIf",!t.isPreviousInternalNotesCollapsed)}}function L0(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to expand"),e.k0s())}function j0(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to collapse"),e.k0s())}function G0(i,n){1&i&&(e.j41(0,"span",249),e.nrm(1,"i",315),e.EFF(2," Offline note available "),e.k0s())}function B0(i,n){if(1&i&&(e.j41(0,"div",270)(1,"div",311)(2,"div",312)(3,"h4",149),e.EFF(4,"Offline Note"),e.k0s()(),e.j41(5,"div",313),e.nrm(6,"p",266),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(6),e.Y8G("innerHTML",t.engagementsInfo.offline_note,e.npT)}}function U0(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",267)(1,"div",85)(2,"div",113),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.isOfflineNoteCollapsed=!r.isOfflineNoteCollapsed)}),e.j41(3,"div",114)(4,"h4",115),e.EFF(5,"Offline Internal Note"),e.k0s(),e.DNE(6,L0,2,0,"span",116)(7,j0,2,0,"span",116),e.k0s(),e.j41(8,"div",117),e.DNE(9,G0,3,0,"span",118),e.nrm(10,"i",119),e.k0s()(),e.DNE(11,B0,7,1,"div",268),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",t.isOfflineNoteCollapsed),e.R7$(),e.Y8G("ngIf",!t.isOfflineNoteCollapsed),e.R7$(2),e.Y8G("ngIf",t.isOfflineNoteCollapsed&&t.engagementsInfo.offline_note),e.R7$(),e.Y8G("ngClass",e.l_i(5,Rt,t.isOfflineNoteCollapsed,!t.isOfflineNoteCollapsed)),e.R7$(),e.Y8G("ngIf",!t.isOfflineNoteCollapsed)}}function $0(i,n){1&i&&(e.j41(0,"div"),e.EFF(1," This Field is Required "),e.k0s())}function z0(i,n){if(1&i&&(e.j41(0,"mat-error"),e.DNE(1,$0,2,0,"div",3),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",(t.f.cancelnote.touched||t.submitted)&&(null==t.f.cancelnote.errors?null:t.f.cancelnote.errors.required))}}function Y0(i,n){if(1&i&&(e.j41(0,"div",112)(1,"div",85)(2,"div",237)(3,"mat-form-field",282)(4,"mat-label"),e.EFF(5,"Add note(s)"),e.k0s(),e.nrm(6,"textarea",319),e.DNE(7,z0,2,1,"mat-error",3),e.k0s()()()()),2&i){const t=e.XpG(3);e.R7$(7),e.Y8G("ngIf",t.f.cancelnote.errors)}}function H0(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",132),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.reschedule_engagement(r.project.id,r.advisor.id,r.engagementsInfo.id))}),e.nrm(1,"ui-icon",196),e.EFF(2," Re-schedule "),e.k0s()}}function V0(i,n){1&i&&(e.j41(0,"button",320),e.nrm(1,"ui-icon",196),e.EFF(2," Cancel "),e.k0s())}function X0(i,n){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"form",233),e.bIt("ngSubmit",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onSubmitClient())}),e.DNE(2,Y0,8,1,"div",316),e.j41(3,"div",317),e.DNE(4,H0,3,0,"button",127)(5,V0,3,0,"button",318),e.k0s()(),e.bVm()}if(2&i){const t=e.XpG(2);e.R7$(),e.Y8G("formGroup",t.appointmentcancelnote),e.R7$(),e.Y8G("ngIf",1==t.engagementsInfo.status&&0==t.engagementsInfo.after_engagement_status),e.R7$(2),e.Y8G("ngIf",0==t.engagementsInfo.after_engagement_status),e.R7$(),e.Y8G("ngIf",1==t.engagementsInfo.status&&0==t.engagementsInfo.after_engagement_status)}}function W0(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to expand"),e.k0s())}function q0(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to collapse"),e.k0s())}function K0(i,n){1&i&&(e.j41(0,"span"),e.EFF(1,"s"),e.k0s())}function Z0(i,n){if(1&i&&(e.j41(0,"span",249),e.nrm(1,"ui-icon",199),e.EFF(2),e.DNE(3,K0,2,0,"span",3),e.k0s()),2&i){const t=e.XpG(3);e.R7$(2),e.SpI(" ",t.engagementNotesData.length," note"),e.R7$(),e.Y8G("ngIf",1!==t.engagementNotesData.length)}}function J0(i,n){if(1&i&&(e.j41(0,"div",244),e.nrm(1,"p",245),e.j41(2,"div",246)(3,"p",247),e.EFF(4),e.nrm(5,"br"),e.EFF(6),e.nI1(7,"customDateTimeFormat"),e.k0s()()()),2&i){const t=n.$implicit;e.R7$(),e.Y8G("innerHTML",null==t?null:t.note,e.npT),e.R7$(3),e.SpI(" Created By ",null==t||null==t.site_user?null:t.site_user.name," "),e.R7$(2),e.SpI(" ",e.bMT(7,3,null==t?null:t.createdAt)," ")}}function Q0(i,n){if(1&i&&(e.j41(0,"span"),e.DNE(1,J0,8,5,"div",243),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngForOf",t.engagementNotesData)}}function ew(i,n){1&i&&(e.j41(0,"p",323),e.EFF(1," No notes available. "),e.k0s())}function tw(i,n){if(1&i&&(e.j41(0,"div",235)(1,"div",236),e.DNE(2,Q0,2,1,"span",3)(3,ew,2,0,"p",322),e.k0s()()),2&i){const t=e.XpG(3);e.R7$(2),e.Y8G("ngIf",t.engagementNotesData.length>0),e.R7$(),e.Y8G("ngIf",0===t.engagementNotesData.length)}}function nw(i,n){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"div",112)(2,"div",85)(3,"div",237)(4,"div",113),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.isNotesCollapsed=!r.isNotesCollapsed)}),e.j41(5,"div",114)(6,"h4",115),e.EFF(7,"Notes"),e.k0s(),e.DNE(8,W0,2,0,"span",116)(9,q0,2,0,"span",116),e.k0s(),e.j41(10,"div",117),e.DNE(11,Z0,4,2,"span",118),e.nrm(12,"i",119),e.k0s()(),e.DNE(13,tw,4,2,"div",321),e.k0s()()(),e.bVm()}if(2&i){const t=e.XpG(2);e.R7$(8),e.Y8G("ngIf",t.isNotesCollapsed),e.R7$(),e.Y8G("ngIf",!t.isNotesCollapsed),e.R7$(2),e.Y8G("ngIf",t.isNotesCollapsed&&t.engagementNotesData.length>0),e.R7$(),e.Y8G("ngClass",e.l_i(5,Rt,t.isNotesCollapsed,!t.isNotesCollapsed)),e.R7$(),e.Y8G("ngIf",!t.isNotesCollapsed)}}function iw(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to expand"),e.k0s())}function rw(i,n){1&i&&(e.j41(0,"span",248),e.EFF(1,"Click to collapse"),e.k0s())}function sw(i,n){1&i&&(e.j41(0,"span",249),e.nrm(1,"ui-icon",329),e.EFF(2," AI summary available "),e.k0s())}function aw(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",330),e.bIt("click",function(r){return e.eBV(t),e.XpG(3).navigateToChatWithTranscripts(),e.Njj(r.stopPropagation())}),e.EFF(1," Chat with Transcript "),e.k0s()}}function ow(i,n){1&i&&(e.j41(0,"div",335),e.nrm(1,"mat-spinner",336),e.j41(2,"p",337),e.EFF(3,"Loading AI insights..."),e.k0s()())}function lw(i,n){1&i&&(e.j41(0,"div",338),e.EFF(1," AI Insights unavailable with this engagement "),e.k0s())}function cw(i,n){if(1&i&&(e.j41(0,"div",339)(1,"div",340),e.nrm(2,"div",341),e.nI1(3,"markdown"),e.k0s()()),2&i){const t=e.XpG(4);e.R7$(2),e.Y8G("innerHTML",e.bMT(3,1,t.aiInsightsData.summary),e.npT)}}function dw(i,n){1&i&&(e.j41(0,"div",342),e.EFF(1," AI Insights unavailable with this engagement "),e.k0s())}function uw(i,n){if(1&i&&(e.j41(0,"div",235)(1,"div",236),e.DNE(2,ow,4,0,"div",331)(3,lw,2,0,"div",332)(4,cw,4,3,"div",333)(5,dw,2,0,"div",334),e.k0s()()),2&i){const t=e.XpG(3);e.R7$(2),e.Y8G("ngIf",t.aiInsightsLoading),e.R7$(),e.Y8G("ngIf",t.aiInsightsError&&!t.aiInsightsLoading),e.R7$(),e.Y8G("ngIf",t.aiInsightsData&&!t.aiInsightsLoading&&!t.aiInsightsError),e.R7$(),e.Y8G("ngIf",!t.aiInsightsData&&!t.aiInsightsLoading&&!t.aiInsightsError)}}function pw(i,n){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"div",324)(2,"div",85)(3,"div",237)(4,"div",325)(5,"div",326),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.isAiInsightsCollapsed=!r.isAiInsightsCollapsed)}),e.j41(6,"h4",115),e.EFF(7," AI Insights "),e.k0s(),e.DNE(8,iw,2,0,"span",116)(9,rw,2,0,"span",116),e.k0s(),e.j41(10,"div",117),e.DNE(11,sw,3,0,"span",118)(12,aw,2,0,"button",327),e.j41(13,"i",328),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.isAiInsightsCollapsed=!r.isAiInsightsCollapsed)}),e.k0s()()(),e.DNE(14,uw,6,4,"div",321),e.k0s()()(),e.bVm()}if(2&i){const t=e.XpG(2);e.R7$(8),e.Y8G("ngIf",t.isAiInsightsCollapsed),e.R7$(),e.Y8G("ngIf",!t.isAiInsightsCollapsed),e.R7$(2),e.Y8G("ngIf",t.isAiInsightsCollapsed&&t.aiInsightsData&&!t.aiInsightsError),e.R7$(),e.Y8G("ngIf",(null==t.zoomTranscripts?null:t.zoomTranscripts.length)||(null==t.twilioTranscripts?null:t.twilioTranscripts.length)),e.R7$(),e.Y8G("ngClass",e.l_i(6,Rt,t.isAiInsightsCollapsed,!t.isAiInsightsCollapsed)),e.R7$(),e.Y8G("ngIf",!t.isAiInsightsCollapsed)}}function hw(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",347),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.approveEngagement(r.engagementsInfo.id))}),e.nrm(1,"ui-icon",196),e.EFF(2," Approve "),e.k0s()}}function fw(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",347),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.approveCancelledEngagement(r.engagementsInfo.id))}),e.nrm(1,"ui-icon",196),e.EFF(2," Approve "),e.k0s()}}function mw(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",348),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.reschedule_engagement(r.project.id,r.advisor.id,r.engagementsInfo.id))}),e.nrm(1,"ui-icon",196),e.EFF(2," Re-schedule "),e.k0s()}}function gw(i,n){if(1&i){const t=e.RV6();e.j41(0,"a",349),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.cancelNoteDialog())}),e.nrm(1,"ui-icon",196),e.EFF(2," Cancel"),e.k0s()}}function _w(i,n){if(1&i&&(e.qex(0),e.j41(1,"div",343),e.DNE(2,hw,3,0,"button",344)(3,fw,3,0,"button",344)(4,mw,3,0,"button",345)(5,gw,3,0,"a",346),e.k0s(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",0==t.engagementsInfo.status&&0==t.timeOverStatus),e.R7$(),e.Y8G("ngIf",4==t.engagementsInfo.status&&0==t.timeOverStatus),e.R7$(),e.Y8G("ngIf",0==t.engagementsInfo.after_engagement_status),e.R7$(),e.Y8G("ngIf",2!=t.engagementsInfo.status&&4!=t.engagementsInfo.status&&3!=t.engagementsInfo.status&&0==t.engagementsInfo.after_engagement_status&&0==t.timeOverStatus)}}function vw(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",347),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.approveEngagement(r.engagementsInfo.id))}),e.nrm(1,"ui-icon",196),e.EFF(2," Approve "),e.k0s()}}function ww(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",347),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.approveCancelledEngagement(r.engagementsInfo.id))}),e.nrm(1,"ui-icon",196),e.EFF(2," Approve "),e.k0s()}}function bw(i,n){if(1&i&&(e.qex(0),e.j41(1,"div",343),e.DNE(2,vw,3,0,"button",344)(3,ww,3,0,"button",344),e.k0s(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",0==t.engagementsInfo.status&&0==t.timeOverStatus),e.R7$(),e.Y8G("ngIf",4==t.engagementsInfo.status&&0==t.timeOverStatus)}}function yw(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",77)(5,"a",78),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.backCLicked())}),e.nrm(6,"ui-icon",79),e.k0s()(),e.DNE(7,V_,25,23,"div",80)(8,W_,3,1,"div",80)(9,q_,2,2,"div",81),e.k0s(),e.j41(10,"div",14),e.DNE(11,Z_,9,2,"div",82),e.j41(12,"div",83)(13,"div",84)(14,"div",85)(15,"div",86)(16,"div",87)(17,"p",88),e.EFF(18),e.nI1(19,"customDateTimeFormat"),e.k0s(),e.j41(20,"h2",89)(21,"span"),e.EFF(22),e.k0s(),e.DNE(23,J_,2,1,"p",90),e.k0s()(),e.j41(24,"div",91)(25,"div",92)(26,"span",93),e.EFF(27),e.nrm(28,"br"),e.DNE(29,Q_,2,1,"span",3),e.k0s(),e.DNE(30,e1,2,0,"a",94)(31,t1,2,0,"a",94),e.k0s()()()()()(),e.DNE(32,m1,14,6,"div",82),e.j41(33,"div",28)(34,"div",95)(35,"div",85)(36,"div",96)(37,"div",97)(38,"div",98),e.DNE(39,g1,2,0,"span",99)(40,_1,2,0,"span",100)(41,b1,4,2,"span",100)(42,y1,2,0,"span",101)(43,x1,2,0,"span",101)(44,k1,2,0,"span",101)(45,C1,2,0,"span",101)(46,E1,2,0,"span",101),e.j41(47,"p"),e.EFF(48),e.k0s()()(),e.j41(49,"div",102)(50,"div",103)(51,"div",104)(52,"h3",105),e.EFF(53,"Date & Time"),e.k0s()(),e.j41(54,"div",106)(55,"p"),e.EFF(56),e.nI1(57,"customDateTimeFormat"),e.k0s()()(),e.j41(58,"div",103)(59,"div",104)(60,"h3",105),e.EFF(61,"Booking Information"),e.k0s()(),e.j41(62,"div",106),e.DNE(63,T1,7,9,"p",3)(64,A1,2,0,"p",107),e.k0s()(),e.j41(65,"div",103)(66,"div",104)(67,"h3",105),e.EFF(68,"Dial-in Number"),e.k0s()(),e.j41(69,"div",106)(70,"p")(71,"a",108),e.EFF(72),e.k0s()(),e.j41(73,"p")(74,"a",108),e.EFF(75),e.k0s()(),e.DNE(76,I1,5,0,"span",3),e.k0s()(),e.DNE(77,O1,6,1,"div",109),e.j41(78,"div",103)(79,"div",104)(80,"h3",105),e.EFF(81,"Passcode"),e.k0s()(),e.DNE(82,N1,4,2,"div",110)(83,M1,3,1,"div",110),e.k0s(),e.DNE(84,L1,28,8,"div",109)(85,j1,14,6,"div",109)(86,G1,14,6,"div",109)(87,B1,16,4,"div",3)(88,U
11,6,2,"div",109),e.k0s()()()(),e.DNE(89,z1,8,1,"div",111)(90,Q1,2,1,"ng-container",3)(91,rv,5,1,"ng-container",3)(92,cv,5,1,"ng-container",3)(93,fv,5,1,"ng-container",3)(94,wv,5,1,"ng-container",3)(95,bv,15,0,"ng-container",3)(96,yv,21,5,"ng-container",3)(97,xv,15,0,"ng-container",3)(98,Tv,8,1,"ng-container",3)(99,Iv,8,1,"ng-container",3)(100,Sv,15,2,"ng-container",3)(101,Pv,5,1,"ng-container",3)(102,Lv,20,6,"ng-container",3),e.k0s(),e.j41(103,"div",47)(104,"div",112)(105,"div",85)(106,"div",113),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.isAdvisorBioCollapsed=!r.isAdvisorBioCollapsed)}),e.j41(107,"div",114)(108,"h4",115),e.EFF(109,"Advisor Details"),e.k0s(),e.DNE(110,jv,2,0,"span",116)(111,Gv,2,0,"span",116),e.k0s(),e.j41(112,"div",117),e.DNE(113,Bv,3,0,"span",118),e.nrm(114,"i",119),e.k0s()(),e.DNE(115,Wv,15,9,"div",120)(116,qv,3,1,"div",121),e.k0s()(),e.DNE(117,k0,12,8,"div",122)(118,R0,13,9,"div",122)(119,M0,12,8,"div",122)(120,U0,12,8,"div",122)(121,X0,6,4,"ng-container",3)(122,nw,14,8,"ng-container",3)(123,pw,15,9,"ng-container",3)(124,_w,6,4,"ng-container",3)(125,bw,4,2,"ng-container",3),e.k0s()()()()()}if(2&i){const t=e.XpG();e.R7$(7),e.Y8G("ngIf","2"==t.user_type),e.R7$(),e.Y8G("ngIf","2"!=t.user_type),e.R7$(),e.Y8G("ngIf",t.engagementState),e.R7$(2),e.Y8G("ngIf","2"==t.user_type&&t.complianceApproved),e.R7$(7),e.SpI(" ",e.bMT(19,68,t.project.created_at)," "),e.R7$(4),e.JRh(t.project.title),e.R7$(),e.Y8G("ngIf","2"==t.user_type),e.R7$(4),e.JRh(t.siteuser.name),e.R7$(2),e.Y8G("ngIf",""!=t.clientcompany.name),e.R7$(),e.Y8G("ngIf",0==t.item_saved_status),e.R7$(),e.Y8G("ngIf",0!=t.item_saved_status),e.R7$(),e.Y8G("ngIf","1"==t.user_type||"7"==t.user_type||"8"==t.user_type||"9"==t.user_type||"10"==t.user_type),e.R7$(7),e.Y8G("ngIf",0==t.engagementsInfo.status),e.R7$(),e.Y8G("ngIf",1==t.engagementsInfo.status&&0==t.engagementsInfo.after_engagement_status),e.R7$(),e.Y8G("ngIf",1==t.engagementsInfo.status&&1==t.engagementsInfo.after_engagement_status),e.R7$(),e.Y8G("ngIf",1==t.engagementsInfo.status&&2==t.engagementsInfo.after_engagement_status),e.R7$(),e.Y8G("ngIf",2==t.engagementsInfo.status&&2==t.engagementsInfo.after_engagement_status),e.R7$(),e.Y8G("ngIf",2==t.engagementsInfo.status&&0==t.engagementsInfo.after_engagement_status),e.R7$(),e.Y8G("ngIf",3==t.engagementsInfo.status),e.R7$(),e.Y8G("ngIf",4==t.engagementsInfo.status),e.R7$(2),e.SpI("Engagement ID - ",t.engagementsInfo.unique_id,""),e.R7$(8),e.SpI(" ",e.bMT(57,70,t.engagementsInfo.createdAt)," "),e.R7$(7),e.Y8G("ngIf",t.engagementsInfo.advisor_availability),e.R7$(),e.Y8G("ngIf",!t.engagementsInfo.advisor_availability),e.R7$(7),e.Mz_("href","tel:",t.data.dialno,"",e.B4B),e.R7$(),e.SpI("USA:- ",t.data.dialno,""),e.R7$(2),e.Mz_("href","tel:",t.data.dialnouk,"",e.B4B),e.R7$(),e.SpI("Intl:- ",t.data.dialnouk,""),e.R7$(),e.Y8G("ngIf",28==t.company_id),e.R7$(),e.Y8G("ngIf",(null==t.clientDialIns?null:t.clientDialIns.length)>0&&"3"!=t.user_type),e.R7$(5),e.Y8G("ngIf",2==t.user_type),e.R7$(),e.Y8G("ngIf",2!=t.user_type),e.R7$(),e.Y8G("ngIf",!t.isLive&&t.engagementsInfo.video_call_client_link),e.R7$(),e.Y8G("ngIf",!t.isLive&&t.engagementsInfo.video_call_advisor_link&&"2"!==t.user_type),e.R7$(),e.Y8G("ngIf",!t.isLive&&t.engagementsInfo.video_call_observer_link),e.R7$(),e.Y8G("ngIf",!t.isLive&&t.engagementsInfo.video_call_client_link),e.R7$(),e.Y8G("ngIf",1==t.engagementsInfo.status&&1!=t.engagementsInfo.engagement_status&&0==t.engagementsInfo.after_engagement_status&&"2"==t.user_type),e.R7$(),e.Y8G("ngIf",(null==t.call_log?null:t.call_log.length)>0&&"2"==t.user_type&&28!=t.company_id),e.R7$(),e.Y8G("ngIf","2"!=t.user_type),e.R7$(),e.Y8G("ngIf",1==t.engagementsInfo.after_engagement_status&&"10"==t.user_type&&(null==t.call_log?null:t.call_log.length)>0),e.R7$(),e.Y8G("ngIf",1==t.transcriptionAccessStatus&&"2"==t.user_type&&(null==t.call_log?null:t.call_log.length)>0),e.R7$(),e.Y8G("ngIf",1==t.transcriptionAccessStatus&&"2"==t.user_type&&(null==t.call_log?null:t.call_log.length)>0),e.R7$(),e.Y8G("ngIf",1==t.engagementsInfo.after_engagement_status&&"10"==t.user_type&&(null==t.call_log?null:t.call_log.length)>0),e.R7$(),e.Y8G("ngIf",t.isLoadingRecordingsOrTranscripts),e.R7$(),e.Y8G("ngIf","10"==t.user_type&&(null==t.compositionRecordings?null:t.compositionRecordings.length)>0),e.R7$(),e.Y8G("ngIf",!t.isLive&&"10"==t.user_type&&t.engagementsInfo.video_call_client_link&&t.hasBridgerVideoTranscript),e.R7$(),e.Y8G("ngIf",("10"==t.user_type||"2"==t.user_type)&&(null==t.zoomRecordings?null:t.zoomRecordings.length)),e.R7$(),e.Y8G("ngIf",("10"==t.user_type||"2"==t.user_type)&&(null==t.zoomTranscripts?null:t.zoomTranscripts.length)),e.R7$(),e.Y8G("ngIf",("10"==t.user_type||"2"==t.user_type)&&t.hasBridgerTranscriptDocument&&!(null!=t.zoomTranscripts&&t.zoomTranscripts.length)),e.R7$(),e.Y8G("ngIf",1==t.engagementsInfo.after_engagement_status&&("10"==t.user_type||"2"==t.user_type)&&(null==t.zoomMeetings?null:t.zoomMeetings.length)),e.R7$(),e.Y8G("ngIf",2==t.user_type),e.R7$(8),e.Y8G("ngIf",t.isAdvisorBioCollapsed),e.R7$(),e.Y8G("ngIf",!t.isAdvisorBioCollapsed),e.R7$(2),e.Y8G("ngIf",t.isAdvisorBioCollapsed&&t.advisorbiography),e.R7$(),e.Y8G("ngClass",e.l_i(72,Rt,t.isAdvisorBioCollapsed,!t.isAdvisorBioCollapsed)),e.R7$(),e.Y8G("ngIf",!t.isAdvisorBioCollapsed),e.R7$(),e.Y8G("ngIf","2"==t.user_type&&!t.isAdvisorBioCollapsed),e.R7$(),e.Y8G("ngIf","2"==t.user_type),e.R7$(),e.Y8G("ngIf",t.engagementsInfo.note||t.engagementsInfo.cancel_note),e.R7$(),e.Y8G("ngIf",t.engagementsInfo.internal_note&&("1"==t.user_type||"7"==t.user_type||"8"==t.user_type||"9"==t.user_type||"10"==t.user_type)),e.R7$(),e.Y8G("ngIf",t.engagementsInfo.offline_note&&("1"==t.user_type||"7"==t.user_type||"8"==t.user_type||"9"==t.user_type||"10"==t.user_type)),e.R7$(),e.Y8G("ngIf","2"==t.user_type),e.R7$(),e.Y8G("ngIf","1"==t.user_type||"7"==t.user_type||"8"==t.user_type||"9"==t.user_type||"10"==t.user_type||"3"==t.user_type),e.R7$(),e.Y8G("ngIf",("2"==t.user_type||t.AI_WHITELIST.includes(t.userID))&&(t.aiInsightsData||t.aiInsightsLoading)),e.R7$(),e.Y8G("ngIf","1"==t.user_type||"7"==t.user_type||"8"==t.user_type||"9"==t.user_type||"10"==t.user_type),e.R7$(),e.Y8G("ngIf","3"==t.user_type)}}let xw=(()=>{class i{get engagementStateClass(){return this.engagementState?"is-"+String(this.engagementState).toLowerCase():""}get complianceApproved(){return"approved"===this.compliance?.compliance_status}get isLoadingRecordingsOrTranscripts(){return this.isLoadingZoomAssets||this.isLoadingTwilioRecordings||this.isLoadingTwilioTranscripts||this.isLoadingZoomMeetings||this.isLoadingBridgerVideoTranscript}constructor(t,s,r,a,l,o,u,p,_,g,C,f){this.dialog=t,this.commonService=s,this.datePipe=r,this.renderer=a,this.http=l,this.sanitizer=o,this.fb=u,this.helperService=p,this.spinner=_,this.router=g,this.route=C,this._location=f,this.project="",this.siteuser="",this.clientcompany="",this.engagementsInfo="",this.companyName="",this.call_log=[],this.clientDialIns=[],this.engagementState="",this.callInProgress=!1,this.compliance="",this.data="",this.advisor="",this.advisorbiography="",this.url="",this.advisorcareer="",this.item_saved_status=0,this.recStatus=!0,this.project_question=[],this.hide_button=0,this.chatVisible=!1,this.submitted=!1,this.email_submitted=!1,this.added_cc_email=[],this.zoomMeetings=[],this.autocompleteData=[],this.timeOverStatus=!1,this.advisrQATemplte="",this.engagementNotesData=[],this.twilioRecordings=[],this.compositionRecordings=[],this.zoomRecordings=[],this.zoomTranscripts=[],this.modules={toolbar:[["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{align:[]}],["link"]]},this.twilioTranscripts=[],this.AI_WHITELIST=["1549","399","191","426","399","191"],this.BRIDGER_STAFF_TYPES=["1","3","7","8","9","10"],this.isBridgerStaff=!1,this.hasBridgerVideoTranscript=!1,this.isLive=Pe.c.isLive,this.transcriptionPdfLink="",this.transcriptionAccessStatus=!1,this.reminderEmailStatus=!0,this.recordingEnabled=!0,this.clientBlinded=!1,this.advisorBlinded=!1,this.videoEnabled=!0,this.aiInsightsData=null,this.aiInsightsLoading=!1,this.aiInsightsError="",this.isOfflineNoteCollapsed=!0,this.isNotesCollapsed=!0,this.isAdvisorResponseCollapsed=!0,this.isPreviousNotesCollapsed=!0,this.isPreviousInternalNotesCollapsed=!0,this.isAdvisorBioCollapsed=!1,this.isAiInsightsCollapsed=!1,this.isReviewed=!1,this.countReviewed=0,this.isLoading=!0,this.isLoadingZoomAssets=!1,this.isLoadingTwilioRecordings=!1,this.isLoadingTwilioTranscripts=!1,this.isLoadingZoomMeetings=!1,this.isLoadingBridgerVideoTranscript=!1,this.hasBridgerTranscriptDocument=!1,this.isDownloadingBridgerTranscript=!1,this.USER_TYPE_LABELS={1:"Engagement Manager",2:"Client - Analyst",3:"Bridger - Analyst",4:"Bridger - Compliance",5:"Client - Manager",7:"Bridger - Associate",8:"Operations",9:"Sales",10:"Team Lead",11:"Client - Compliance"},this.userID=localStorage.getItem("user_id"),this.advisoranswer=this.fb.group({advisorResponse:this.fb.array([])}),localStorage.setItem("page_title","My Engagements"),this.commonService.changePageTitleFunction(1),this.appointmentcancelnote=this.fb.group({cancelnote:new ue.MJ("",[ue.k0.required])}),this.engagement_cc=this.fb.group({ccEmail:["",ue.k0.compose([ue.k0.required,ue.k0.pattern("^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$")])]}),this.FormData=this.fb.group({update_content:new ue.MJ("",[ue.k0.required])})}get advisorAnswerControl(){return this.advisoranswer.controls}get f(){return this.appointmentcancelnote.controls}get _f(){return this.engagement_cc.controls}toggleChat(){this.chatVisible=!this.chatVisible}
1ngOnInit(){this.id=+atob(this.route.snapshot.paramMap.get("engmnt_id")),this.user_type=localStorage.getItem("user_type"),this.isBridgerStaff=this.BRIDGER_STAFF_TYPES.includes(this.user_type),localStorage.getItem("company_id")&&(this.company_id=localStorage.getItem("company_id")),this.url=Pe.c.media_url,this.appointment_details(),this.filteredOptions=this._f.ccEmail.valueChanges.pipe((0,_d.Z)(""),(0,vd.T)(t=>this._filter(t)))}_filter(t){const s=t?.toLowerCase();return this.autocompleteData.filter(r=>r.email.toLowerCase().includes(s))}appointment_details(){this.isLoading=!0,this.commonService.getAPICallForNode({url:"/api/engagement/appointment-details?id="+this.id}).subscribe({next:t=>{this.isLoading=!1,this.engagementNotesData=[],this.data=t,this.engagementsInfo=t.engagementDetails,this.companyName=this.engagementsInfo.project.client_user.users_company.name,this.engagementsInfo.baseUrl=Pe.c.baseUrl.slice(0,-1),(0===this.engagementsInfo.rec_status||28===this.company_id)&&(this.recStatus=!1),this.isReviewed=t.isReviewed||!1,this.countReviewed=t.countReviewed||0,this.fetchAIInsights(),this.getZoomAssetsByTopic("Bridger Engagement - "+this.engagementsInfo.id),this.checkBridgerVideoTranscript(this.engagementsInfo.id),this.checkBridgerTranscriptDocument(this.engagementsInfo.id);const s=this.engagementsInfo?.passcode;s&&(this.getZoomRecordings(s),this.getTwilioRoomRecordings(s),this.getTwilioRoomTranscripts(s)),ve()(new Date).utc().format("YYYY-MM-DD HH:mm:ss")>this.engagementsInfo.to_date_time&&(this.timeOverStatus=!0),this.call_log=t.callLog,this.clientDialIns=t.clientDialIns??[],this.engagementState=t.engagementState,this.callInProgress=t.callInProgress,this.compliance=t.compliance,this.project=t.engagementDetails.project,this.added_cc_email=t.engagementDetails.engagement_ccs,this.autocompleteData=t.emailList,this.siteuser=t.engagementDetails.project.client_user,null!=t.engagementDetails.project.client_user.users_company?(this.clientcompany=t.engagementDetails.project.client_user.users_company,this.company_id=this.clientcompany.id,this.transcriptionAccessStatus="yes"==this.clientcompany.transcripts):(this.company_id=0,this.clientcompany="",this.transcriptionAccessStatus=!1),this.advisor=t.engagementDetails.advisor,this.advisorbiography=t.engagementDetails.advisor.advisordetail.biography,this.item_saved_status=t.saveProjectCount,this.project_id=t.engagementDetails.project.id,this.advisor_id=t.engagementDetails.advisor.id,this.reminderEmailStatus=1==t.engagementDetails.reminder_email_status,this.engagementNotesData=[...this.engagementNotesData,...t.engageMentNotes],2==this.user_type&&(this.engagementNotesData=this.engagementNotesData.filter(l=>"2"===l.site_user.type)),this.fetchAdvisorTemplate(),"3"===t.engagementDetails.video_user_blind_status?(this.clientBlinded=!0,this.advisorBlinded=!0):"2"===t.engagementDetails.video_user_blind_status?(this.clientBlinded=!1,this.advisorBlinded=!0):"1"===t.engagementDetails.video_user_blind_status?(this.clientBlinded=!0,this.advisorBlinded=!1):(this.clientBlinded=!1,this.advisorBlinded=!1),this.recordingEnabled="1"===t.engagementDetails.video_recording_enabled,this.videoEnabled="1"===t.engagementDetails.video_video_enabled,t.engagementDetails.transcription_link&&(this.twilioTranscripts=[{id:t.engagementDetails.id,text:t.engagementDetails.transcription_link,created:t.engagementDetails.createdAt}]);let a=t.projectQuestionsAnswer;if(a){a=a?.sort(function(l,o){const u=l.advisor_answers[0].answer.position,p=o.advisor_answers[0].answer.position;return u<p?-1:u>p?1:0});for(const l of a){const o=this.advisorAnswerControl.advisorResponse;0==l.question_status&&l.advisor_answers.length>0&&o.push(this.fb.group("multiple_choice_grid"===l.advisor_answers[0].answer.type?{qid:[l.id],ques:[l.advisor_answers[0].answer],answer:this.fb.array(this.createOtherOptionsCheckbox(l.advisor_answers[0].answer.answer)),ques_status:[l.question_status]}:"checkbox_grid"===l.advisor_answers[0].answer.type?{qid:[l.id],ques:[l.advisor_answers[0].answer],answer:this.fb.array(this.createOtherOptionsOpenGrid(l.advisor_answers[0].answer.answer)),ques_status:[l.question_status]}:"open_ended_grid"===l.advisor_answers[0].answer.type?{qid:[l.id],ques:[l.advisor_answers[0].answer],answer:this.fb.array(this.createOtherOptionsCheckbox(l.advisor_answers[0].answer.answer)),ques_status:[l.question_status]}:"check_box"===l.advisor_answers[0].answer.type?{qid:[l.id],ques:[l.advisor_answers[0].answer],answer:[{value:l.advisor_answers[0].answer.answer??[],disabled:!0},ue.k0.required],ques_status:[l.question_status],extraInput:[{value:l.advisor_answers[0].answer.extraInput,disabled:!0},[ue.k0.required]],other_option_enabled:[{value:l.advisor_answers[0].answer.other_option_enabled,disabled:!0}]}:"radio_button"===l.advisor_answers[0].answer.type?{qid:[l.id],ques:[l.advisor_answers[0].answer],answer:[{value:l.advisor_answers[0].answer.answer,disabled:!0},ue.k0.required],ques_status:[l.question_status],extraInput:[{value:l.advisor_answers[0].answer.extraInput,disabled:!0},[ue.k0.required]],other_option_enabled:[{value:l.advisor_answers[0].answer.other_option_enabled,disabled:!0}]}:{qid:[l.id],ques:[l.advisor_answers[0].answer],answer:[{value:l.advisor_answers[0].answer.answer,disabled:!0},ue.k0.required],ques_status:[l.question_status]})),3==l.question_status&&l.advisor_answers.length>0&&o.push(this.fb.group({qid:[l.id],ques:[l.advisor_answers[0].answer],answer:[{value:l.advisor_answers[0].answer.answer,disabled:!0},ue.k0.required],ques_status:[l.question_status]}))}}},error:t=>{this.isLoading=!1}})}createOtherOptionsCheckbox(t){const s=[];
1for(const r in t)Object.keys(t[r]).forEach(a=>{s.push(this.fb.group({[a]:[{value:t[r][a],disabled:!0},[ue.k0.required]]}))});return s}createOtherOptionsOpenGrid(t){const s=[];return t.forEach(r=>{const a={};Object.keys(r).forEach(l=>{a[l]=[{value:r[l],disabled:!0},[ue.k0.required]]}),s.push(this.fb.group(a))}),s}backUpConferenceLinePopup(t){this.dialog.open(Rd,{width:"500px",data:{data:t},panelClass:"comn-dialog"})}cancelNoteDialog(){this.dialog.open(ks,{width:"500px",data:{firedType:0,id:this.id,engagementsinfo:this.engagementsInfo,advisor:this.advisor},panelClass:"comn-dialog"}).afterClosed().subscribe(s=>{"done"===s&&this.router.navigate(["/user/engagements/appointment-list"])})}openOfflineEngagementModal(){this.dialog.open(ks,{width:"500px",data:{firedType:1,id:this.id},panelClass:"comn-dialog"}).afterClosed().subscribe(()=>{this.router.navigate(["/user/engagements/appointment-list"])})}saveToCalender(){const t={project_id:this.project_id,advisor_id:this.advisor_id,project_title:this.data.engagementDetails.project.title,project_angle:this.data.engagementDetails.project.angle,advisor_name:this.data.engagementDetails.advisor.name,unique_id:this.data.engagementDetails.unique_id,passcode:this.data.engagementDetails.passcode,from_time:this.data.engagementDetails.advisor_availability.fromTime,to_time:this.data.engagementDetails.advisor_availability.toTime,dialno:this.data.dialno,dialnouk:this.data.dialnouk,biography:this.data.engagementDetails.advisor.advisordetail.biography,project_question:this.advisrQATemplte,company_id:this.company_id,germany:"+49 0800 4697567",portugal:"+351 800 181 698",baseUrl:Pe.c.baseUrl.slice(0,-1),guestemail:this.added_cc_email,video_call_room_name:this.data.engagementDetails.video_call_room_name,video_call_advisor_password:this.data.engagementDetails.video_call_advisor_password,video_call_uuid:this.data.engagementDetails.video_call_uuid,video_call_client_password:this.data.engagementDetails.video_call_client_password,video_call_observer_password:this.data.engagementDetails.video_call_observer_password,video_call_client_uuid:this.data.engagementDetails.video_call_client_uuid,video_call_advisor_uuid:this.data.engagementDetails.video_call_advisor_uuid,video_call_observer_uuid:this.data.engagementDetails.video_call_observer_uuid,video_call_client_link:this.data.engagementDetails.video_call_client_link,video_call_advisor_link:this.data.engagementDetails.video_call_advisor_link,video_call_observer_link:this.data.engagementDetails.video_call_observer_link,isAdvisor:!1};this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/engagement/save-to-google-calender",data:t}).subscribe({next:s=>{this.spinner.hide(),window.open(s.url,"_blank")},error:()=>{this.spinner.hide()}})}advisorSaveToCalender(){const t={project_id:this.project_id,project_scope:this.project.description.replace(/<\/p>/gi,"\n").replace(/<\/li>/gi,"\n").replace(/<\/ul>/gi,"\n").replace(/<[^>]*>/g,"").trim(),project_question:this.advisrQATemplte,engagement_id:this.data.engagementDetails.id,unique_id:this.data.engagementDetails.unique_id,from_time:this.data.engagementDetails.advisor_availability.fromTime,to_time:this.data.engagementDetails.advisor_availability.toTime,advisor_email:this.data.engagementDetails.advisor.email,video_call_room_name:this.data.engagementDetails.video_call_room_name,video_call_advisor_password:this.data.engagementDetails.video_call_advisor_password,video_call_uuid:this.data.engagementDetails.video_call_uuid,video_call_client_password:this.data.engagementDetails.video_call_client_password,video_call_observer_password:this.data.engagementDetails.video_call_observer_password,video_call_client_uuid:this.data.engagementDetails.video_call_client_uuid,video_call_advisor_uuid:this.data.engagementDetails.video_call_advisor_uuid,video_call_observer_uuid:this.data.engagementDetails.video_call_observer_uuid,video_call_client_link:this.data.engagementDetails.video_call_client_link,video_call_advisor_link:this.data.engagementDetails.video_call_advisor_link,video_call_observer_link:this.data.engagementDetails.video_call_observer_link,baseUrl:Pe.c.baseUrl.slice(0,-1),isAdvisor:!0};this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/engagement/advisor-save-to-google-calender",data:t}).subscribe({next:s=>{this.spinner.hide(),window.open(s.url,"_blank")},error:s=>{this.spinner.hide(),this.helperService.showError(s.error.message||"Something went wrong")}})}complianceInvite(){this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/compliance/engagement/invite",data:{engagement_id:this.id}}).subscribe({next:t=>{this.spinner.hide(),window.open(t.url,"_blank"),t.data?.dedicated_number||fe().fire("Heads up","A dedicated compliance dial-in number has not been provisioned yet, so this invite carries the standard dial-in with the compliance passcode.","warning")},error:t=>{this.spinner.hide(),fe().fire("OOPS!!",t.message??"Something went wrong","error")}})}onEngagementCCSubmit(){if(this.email_submitted=!0,this.engagement_cc.valid){const t=this.engagement_cc.value.ccEmail;this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/engagement/add-engagement-cc-email",data:{email:t,engagement_id:this.id}}).subscribe({next:r=>{this.spinner.hide(),this.engagement_cc.get("ccEmail").markAsPristine(),this.engagement_cc.get("ccEmail").reset(),this.engagement_cc.get("ccEmail").setValue(""),fe().fire("Success",r.message,"success"),this.added_cc_email=r.data},error:r=>{this.spinner.hide(),fe().fire("OOPS!!",r.message??"Something went wrong","error")}})}}removeCC(t){fe().fire({title:"Are you sure?",text:null,icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, Delete it!",cancelButtonText:"Not now"}).then(s=>{s.isConfirmed&&(this.spinner.show(),this.commonService.deleteAPICallForNode({url:"/api/engagement/remove-engagement-cc-email",data:{cc_id:t,engagement_id:this.id}}).subscribe({next:a=>{this.spinner.hide(),this.added_cc_email=this.added_cc_email.filter(l=>l.id!==t),fe().fire("Success",a.message,"success")},error:a=>{this.spinner.hide(),fe().fire("OOPS!!",a.message??"Something went wrong","error")}}))})}onSubmitClient(){if(this.submitted=!0,this.appointmentcancelnote.valid){const t=this.appointmentcancelnote.value.cancelnote;this.spinner.show(),this.commonService.putAPICallForNode({url:"/api/engagement/client-bridger-request-canclled-engagement",data:{cancelNote:t,engagementID:this.id}}).subscribe({next:r=>{this.spinner.hide(),fe().fire("Success",r.msg,"success"),this.appointmentcancelnote.reset(),this.router.navigate(["/user/engagements/appointment-list"])},error:r=>{this.spinner.hide(),fe().fire("OOPS!!",r.message,"error")}})}}onSubmitEM(){if(this.submitted=!0,this.appointmentcancelnote.invali
1d)return;const t=this.appointmentcancelnote.value.cancelnote;this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/engagement/add-internal-note",data:{internal_note:t,id:this.id}}).subscribe({next:r=>{this.spinner.hide(),this.engagementsInfo.internal_note=r.note.internal_note,fe().fire("Success",r.message,"success"),this.appointmentcancelnote.reset()},error:r=>{this.spinner.hide(),fe().fire("OOPS!!",r.message??"Something went wrong","error")}})}approveEngagement(t){fe().fire({title:"",text:"Do You Want To Approve This Appointment?",showCancelButton:!0,cancelButtonText:"No",icon:"warning"}).then(s=>{if(s.isConfirmed){this.spinner.show();let r={};r={engagementID:t},this.commonService.putAPICallForNode({url:"/api/engagement/bridger-member-approve-engagement-request",data:r}).subscribe({next:a=>{this.spinner.hide(),fe().fire("Success",a.msg,"success"),this.appointment_details()},error:a=>{this.spinner.hide(),this.helperService.showError(a.error.message||"Something went wrong")}})}})}approveCancelledEngagement(t){fe().fire({title:"",text:"Do you want to accept the canceled engagement?",showCancelButton:!0,cancelButtonText:"No",icon:"warning"}).then(s=>{if(s.isConfirmed){this.spinner.show();let r={};r={engagementID:t},this.commonService.putAPICallForNode({url:"/api/engagement/bridger-member-approve-cancelled-engagement-request",data:r}).subscribe(a=>{this.spinner.hide(),200==a.status?(fe().fire("Success",a.msg,"success"),this.appointment_details()):fe().fire("Error",a.msg,"error")})}})}changestatus(t,s,r,a,l){let o="";1==s?o="engagement request":4==s&&(o="cancel request"),2!=s&&fe().fire({title:"",text:"Are you sure you want to approve this "+o+" ?",icon:"warning",showCancelButton:!0}).then(u=>{if(u.isConfirmed){this.spinner.show();let p={};p={id:t,status:s},this.commonService.postAPICallForNode({url:"/schedule/em-change-engagements-status",data:p}).subscribe({next:_=>{this.spinner.hide();const g=localStorage.getItem("user_type"),C=localStorage.getItem("user_id");let f="";"1"==g&&(f="EM"),"7"==g&&(f="Associate");let x=0;x=this.engagementsInfo.approved_by==C?this.engagementsInfo.addedby:this.engagementsInfo.approved_by,window.scrollTo(0,0),fe().fire("Success",_.message,"success"),this.appointment_details()},error:_=>{this.spinner.hide(),fe().fire("OOPS!",_.error.message??"Something went wrong","error")}})}})}saveProject(t){const s={project_id:t};fe().fire({title:"Save Project",text:"Are you sure you want to save this project?",icon:"warning",showCancelButton:!0}).then(r=>{r.isConfirmed&&(this.spinner.show(),this.commonService.putAPICallForNode({url:"/api/project/save-a-project",data:s}).subscribe({next:a=>{this.spinner.hide(),fe().fire("Success",a.message,"success"),this.appointment_details()},error:a=>{this.spinner.hide(),fe().fire("OOPS!!",a.error.message??"Something went wrong","error")}}))})}removeSaveProject(t){const s={project_id:t};fe().fire({title:"Remove Saved Project",text:"Are you sure you want to remove this project from your saved projects?",showCancelButton:!0,icon:"warning"}).then(r=>{r.isConfirmed&&(this.spinner.show(),this.commonService.putAPICallForNode({url:"/api/project/unsaved-a-project",data:s}).subscribe({next:a=>{this.spinner.hide(),fe().fire("Success",a.message,"success"),this.appointment_details()},error:a=>{this.spinner.hide(),fe().fire("OOPS!!",a.error.message??"Something went wrong","error")}}))})}toggleBoolean(t,s){let r;this[t]=s.checked,r=1==this.advisorBlinded&&1==this.clientBlinded?"3":1==this.clientBlinded&&0==this.advisorBlinded?"1":1==this.advisorBlinded&&0==this.clientBlinded?"2":"0";const u={uuid:this.engagementsInfo.id,update:{video_user_blind_status:r,video_recording_enabled:this.recordingEnabled?"1":"0",video_video_enabled:this.videoEnabled?"1":"0"}};this.spinner.show(),this.commonService.patchAPICallForNode({url:"/api/engagement/video/config",data:u}).subscribe({next:p=>{this.spinner.hide(),fe().fire("Success",p.message,"success")},error:p=>{console.log("Err ",p),this.spinner.hide(),fe().fire("OOPS!",p.message,"error")}})}onRecordingStatusChange(t){fe().fire({title:"Turn off recording?",text:"This call will not be recorded, and you will not be able to turn recording back on yourself. Your engagement manager will be notified.",icon:"warning",showCancelButton:!0,confirmButtonText:"Turn off recording",cancelButtonText:"Keep recording on"}).then(s=>{s.isConfirmed?this.sendRecordingOff(t):this.recStatus=!0})}sendRecordingOff(t){this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/engagement/change-status",data:{id:t}}).subscribe({next:s=>{this.spinner.hide(),this.recStatus=!1,fe().fire("Success",s.message,"success")},error:s=>{this.spinner.hide(),this.recStatus=!0,fe().fire("OOPS!",s.message,"error")}})}reschedule_engagement(t,s,r){this.router.navigate(["/user/engagements/appointment-schedule/"+btoa(t)+"/"+btoa(s)+"/"+btoa(r)])}getZoomAssetsByTopic(t){this.isLoadingZoomAssets=!0;const s=localStorage.getItem("token"),r=new Ze.Lr({Authorization:`Bearer ${s}`});this.http.get(`${Pe.c.backendUrl}/zoom/video/assets`,{params:{topicPrefix:t},headers:r}).subscribe({next:a=>{this.zoomRecordings=a.recordings||[],this.zoomTranscripts=a.transcripts||[],this.isLoadingZoomAssets=!1,this.spinner.hide()},error:()=>{this.isLoadingZoomAssets=!1,this.spinner.hide()}})}
1getTwilioRoomTranscripts(t){if(this.twilioTranscripts.length>0)return;this.isLoadingTwilioTranscripts=!0;const s=localStorage.getItem("token"),r=new Ze.Lr({Authorization:`Bearer ${s}`});this.http.get(`${Pe.c.backendUrl}/twilio/video/transcripts`,{params:{roomName:t},headers:r}).subscribe({next:a=>{this.twilioTranscripts=a.transcripts||[],this.isLoadingTwilioTranscripts=!1,this.spinner.hide()},error:()=>{this.isLoadingTwilioTranscripts=!1,this.spinner.hide()}})}getTwilioRoomRecordings(t){this.isLoadingTwilioRecordings=!0;const s=localStorage.getItem("token"),r=new Ze.Lr({Authorization:`Bearer ${s}`});this.http.get(`${Pe.c.backendUrl}/twilio/video/recordings`,{params:{roomName:t},headers:r}).subscribe({next:a=>{console.log("[Recordings] Raw API response:",a),this.twilioRecordings=a.recordings||[],this.compositionRecordings=this.twilioRecordings.filter(l=>"composition"===l.type||l.groupingSid||l.grouping_sid),console.log("[Recordings] Total recordings:",this.twilioRecordings.length),console.log("[Recordings] Composition recordings:",this.compositionRecordings.length,this.compositionRecordings),this.twilioRecordings.length>0&&0===this.compositionRecordings.length&&console.warn("[Recordings] Recordings exist but none matched composition filter. Recording types:",this.twilioRecordings.map(l=>({sid:l.sid,type:l.type,trackName:l.trackName}))),this.isLoadingTwilioRecordings=!1,this.spinner.hide()},error:a=>{console.error("[Recordings] Failed to fetch Twilio recordings:",a),this.isLoadingTwilioRecordings=!1,this.spinner.hide()}})}getTwilioDownload(t){this.spinner.show();const s=localStorage.getItem("token"),r=new Ze.Lr({Authorization:`Bearer ${s}`});this.http.post(`${Pe.c.backendUrl}/api/engagement/download-call-recording`,{callSid:t},{headers:r}).subscribe({next:a=>{const l=a.downloadUrl,o=this.renderer.createElement("a");o.href=l,o.download=`call-${t}.wav`,o.target="_blank",o.click(),this.spinner.hide()},error:()=>{this.spinner.hide(),fe().fire("Oops!","Download failed","error")}})}openInNewTab(t){window.open(t,"_blank")}downloadViaProxy(t){const s=localStorage.getItem("token"),r=t.includes("?")?"&":"?",a=this.renderer.createElement("a");a.href=`${Pe.c.backendUrl}${t}${r}token=${s}`,a.target="_blank",a.click()}formatDuration(t){if(null==t||isNaN(t)||t<=0)return"";const s=Math.floor(t/3600),r=Math.floor(t%3600/60),a=Math.floor(t%60),l=[];return s>0&&l.push(`${s}h`),r>0&&l.push(`${r}m`),(a>0||0===l.length)&&l.push(`${a}s`),l.join(" ")}downloadProxy(t,s=!1){this.spinner?.show?.();const r=Pe.c.backendUrl,a=localStorage.getItem("token");if(s){const l=new Ze.Lr({Authorization:`Bearer ${a}`});this.http.get(`${r}${t}`,{headers:l,responseType:"blob",observe:"response"}).subscribe({next:o=>{const u=o.body;if(u){const p=o.headers.get("Content-Disposition");let _="zoom-transcript.vtt";if(p){const f=p.match(/filename="?([^"]+)"?/);f&&(_=f[1])}const g=window.URL.createObjectURL(u),C=this.renderer.createElement("a");C.href=g,C.download=_,C.click(),window.URL.revokeObjectURL(g)}else fe().fire("Oops!","No file data received","error");this.spinner?.hide?.()},error:o=>{console.error("Download failed",o),this.spinner?.hide?.(),fe().fire("Oops!","Download failed","error")}})}else{const l=`${r}${t}${t.includes("?")?"&":"?"}token=${a}`;window.open(l,"_blank"),this.spinner?.hide?.()}}getZoomRecordings(t){this.isLoadingZoomMeetings=!0;const s=localStorage.getItem("token"),r=new Ze.Lr({Authorization:`Bearer ${s}`});this.http.get(`${Pe.c.backendUrl}/zoom/video/recordings`,{params:{roomName:t},headers:r}).subscribe({next:a=>{this.zoomMeetings=a.meetings||[],this.isLoadingZoomMeetings=!1},error:a=>{console.log("Error ",a),this.isLoadingZoomMeetings=!1}})}getTwilioTranscription(t){this.commonService.getAPICallForNode({url:"/api/engagement/download-pdf-transcription-data",data:{callSid:t,title:this.project.title,angle:this.project.angle,advisor:this.advisor.name,organization:this.project.client_user.users_company.name,engagementID:this.engagementsInfo.unique_id,engagementDateTime:this.engagementsInfo.to_date_time}}).subscribe(r=>{if(200==r.status){this.transcriptionPdfLink=r.data.link;const a=this.renderer.createElement("a");a.setAttribute("target","_blank"),a.setAttribute("href",this.transcriptionPdfLink),a.setAttribute("download",`transcription-${this.engagementsInfo.unique_id}.pdf`),a.click(),a.remove()}else fe().fire("OOPS!",r.message,"error")},()=>{})}backCLicked(){this._location.back()}fetchAdvisorTemplate(){this.commonService.getAPICallForNode({url:"/api/advisor/fetch-advisor-question-answer-template",data:{project_id:this.project_id,advisor_id:this.advisor_id}}).subscribe(s=>{200==s.status?this.advisrQATemplte=s.data:this.helperService.showError(s.message)},s=>{this.helperService.showError(s.message)})}get nf(){return this.FormData.controls}onSaveNotes(){if(this.submitted=!0,this.FormData.valid){const t={notes:this.FormData.value.update_content,engId:this.id};this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/engagement/add-engagement-notes",data:t}).subscribe({next:s=>{this.spinner.hide(),this.appointment_details(),fe().fire("Success","Engagement internal note has been successfully created","success"),this.FormData.patchValue({update_content:""})},error:s=>{this.spinner.hide(),fe().fire("OOPS!!",s.error.message,"error")}})}}toggleRecordingStatus(t){fe().fire({title:"Are you sure?",text:`You want to turn ${t.checked?"on":"off"} the enagement reminder email.`,icon:"warning",showCancelButton:!0,confirmButtonText:"Yes",cancelButtonText:"Not now"}).then(s=>{s.isConfirmed&&(this.spinner.show(),this.commonService.putAPICallForNode({url:"/api/engagement/change-engagement-reminder-email-status",data:{reminder_email_status:t.checked?"1":"0",engagement_id:this.id}}).subscribe({next:a=>{this.spinner.hide(),this.appointment_details(),fe().fire("Success",a.mesage,"success")},error:a=>{this.spinner.hide(),fe().fire("OOPS!!",a.message??"Something went wrong","error")}}))})}fetchAIInsights(){if(!this.engagementsInfo?.id||this.aiInsightsData||this.aiInsightsLoading)return;console.log("Fetching AI Insights for engagement:",this.engagementsInfo.id),this.aiInsightsLoading=!0,this.aiInsightsError="";const t=new Ze.Lr({"x-api-key":"c7117db6-1762-4b68-8152-42268b38cf62"});this.http.get(`https://dw3iw579mb.execute-api.us-east-2.amazonaws.com/prod/transcript/summary?engagementId=${this.engagementsInfo.id}`,{headers:t}).subscribe({next:s=>{this.aiInsightsLoading=!1,this.aiInsightsData=s},error:s=>{this.aiInsightsLoading=!1,this.aiInsightsError="Failed to load AI insights. Please try again later.",console.error("AI Insights error:",s)}})}navigateToChatWithTranscripts(){this.router.navigate(["/user/chat-with-transcripts/"+btoa(this.project_id)+"/"+btoa(this.engagementsInfo.id)])}checkBridgerVideoTranscript(t){this.isLoadingBridgerVideoTranscript=!0;const s=localStorage.getItem("token"),r=new Ze.Lr({Authorization:`Bearer ${s}`});this.http.get(`${Pe.c.backendUrl}/twilio/video/transcript/count`,{params:{engagementId:String(t)},headers:r}).subscribe({next:a=>{this.hasBridgerVideoTranscript=a.hasTranscript,this.isLoadingBridgerVideoTranscript=!1},error:()=>{this.hasBridgerVideoTranscript=!1,this.isLoadingBridgerVideoTranscript=!1}})}checkBridgerTranscriptDocument(t){this.commonService.getAPICallForNode({url:"/api/engagement/transcript-availability",data:{engagementID:String(t)}}).subscribe({next:s=>{this.hasBridgerTranscriptDocument=!!s?.data?.available},error:()=>{this.hasBridgerTranscriptDocument=!1}})}downloadBridgerTranscriptDocument(){this.isDownloadingBridgerTranscript||(this.isDownloadingBridgerTranscript=!0,this.spinner.show(),this.commonService.getAPICallForNode({url:"/api/engagement/bridger-transcript",data:{engagementID:String(this.engagementsInfo.id)}}).subscribe({next:t=>{this.isDownloadingBridgerTranscript=!1,this.spinner.hide();const s=t?.data?.link;s?window.open(s,"_blank"):this.helperService.showError("No transcript link was returned")},error:t=>{this.isDownloadingBridgerTranscript=!1,this.spinner.hide(),this.helperService.showError(t?.error?.message||"Failed to build the transcript")}}))}downloadBridgerVideoTranscript(){this.spinner.show();const t=localStorage.getItem("token"),s=new Ze.Lr({Authorization:`Bearer ${t}`});this.http.get(`${Pe.c.backendUrl}/twilio/video/transcript/download`,{params:{engagementId:String(this.engagementsInfo.id)},headers:s}).subscribe({next:r=>{this.spinner.hide(),r.downloadUrl?window.open(r.downloadUrl,"_blank"):this.helperService.showError("No download URL returned")},error:r=>{this.spinner.hide(),this.helperService.showError(r?.error?.error||"Failed to download transcript")}})}downloadTranscriptAsDocx(){this.spinner.show();const t={engagementId:Number(this.engagementsInfo.id)};this.commonService.getAPICallForBridgerTranscriptProcessor({url:"https://dw3iw579mb.execute-api.us-east-2.amazonaws.com/prod/transcript",data:t}).subscribe({next:s=>{this.spinner.hide(),this.downloadTranscriptData(s)},error:s=>{this.spinner.hide(),this.helperService.showError(s?.error?.msg||"No transcript found (checked both Zoom and Twilio)")}})}downloadTranscriptData(t){this.spinner.show();const s={engagementId:Number(t.engagementId),transcript:t.transcript,filename:this.buildEngagementDownloadFilename("docx")};this.commonService.postAPICallForBBridgerTranscriptProcessor({url:"https://glw6wv7ww7.execute-api.us-east-2.amazonaws.com/api/zoom/transcriptDownloadDocx",data:s}).subscribe({next:r=>{this.spinner.hide(),window.open(r.downloadUrl,"_blank")},error:r=>{this.spinner.hide(),this.helperService.showError(r?.error?.msg||"Download failed")}})}buildEngagementDownloadFilename(t){const s=p=>String(p??"").replace(/[\\/:*?"<>
1|\r\n\t]+/g," ").replace(/\s+/g," ").trim(),r=this.engagementsInfo?.id??this.engagementsInfo?.unique_id??"engagement",a=this.engagementsInfo?.from_date_time||this.engagementsInfo?.to_date_time||this.engagementsInfo?.created_at,l=a?new Date(a).toISOString().slice(0,10):"unknown-date",o=s(this.advisor?.name)||"advisor",u=String(t||"").replace(/^\.+/,"");return`${s(r)} - ${l} - ${o}.${u}`}parseVttToFormattedContent(t){const s=t.split("\n"),r=[];let a=null;for(const l of s)if(!l.includes("WEBVTT")&&l.trim()&&isNaN(Number(l.trim()))){if(l.includes("--\x3e")){a=l.split("--\x3e")[0].trim().split(".")[0];continue}if(a&&l.trim()){const o=l.indexOf(":");if(o>0){const u=l.substring(0,o).trim(),p=l.substring(o+1).trim();r.push({speaker:u,time:a,text:p})}else r.push({speaker:"",time:a,text:l.trim()})}}return r}loadLogoAsBase64(){return(0,xs.A)(function*(){return new Promise((t,s)=>{const r=new Image;r.crossOrigin="Anonymous",r.onload=()=>{const a=document.createElement("canvas");a.width=r.width,a.height=r.height,a.getContext("2d")?.drawImage(r,0,0);const o=a.toDataURL("image/png");t(o.split(",")[1])},r.onerror=()=>{t("")},r.src="assets/images/wide-logo.png"})})()}createTranscriptDocx(t,s){const r=[];r.push(new Ge({children:[new qe({text:this.project?.title||"Transcript",bold:!0,size:50})],alignment:"left",spacing:{after:200}})),r.push(new Ge({children:[new qe({text:`Engagement: ${this.engagementsInfo?.unique_id||this.id}`,size:38})],spacing:{after:400}}));for(const o of t)o.speaker?(r.push(new Ge({children:[new qe({text:o.speaker+" ",bold:!0,color:"00008B",size:32}),new qe({text:o.time,size:24,color:"666666"})],spacing:{before:200}})),r.push(new Ge({children:[new qe({text:o.text,size:32})],spacing:{after:100}}))):r.push(new Ge({children:[new qe({text:`${o.time} ${o.text}`,size:32})],spacing:{after:100}}));const a=[];if(s)try{a.push(new Ge({children:[new Ph({data:Uint8Array.from(atob(s),o=>o.charCodeAt(0)),transformation:{width:200,height:50},type:"png"})],alignment:"center"}))}catch{}const l=new Ge({children:[new qe({text:"Confidential. All rights reserved. Bridger Consulting Inc.",size:20,color:"808080"})],alignment:"center"});return new Rg({sections:[{headers:{default:new Og({children:a})},footers:{default:new Fg({children:[l]})},children:r}]})}openWriteReviewDialog(){this.dialog.open(N_,{width:"560px",data:{engagementId:this.id,advisorId:this.advisor_id},panelClass:"comn-dialog"}).afterClosed().subscribe(s=>{s&&(this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/reviews/submit",data:s}).subscribe({next:r=>{this.spinner.hide(),this.appointment_details(),fe().fire("Thank you!","Your review has been submitted successfully.","success")},error:r=>{this.spinner.hide(),fe().fire("OOPS!!",r?.error?.message??"Something went wrong","error")}}))})}openReviewsModal(){this.dialog.open(M_.k,{width:"1000px",maxWidth:"95vw",maxHeight:"90vh",panelClass:"reviews-modal-panel",disableClose:!1,autoFocus:!1,data:{advisorId:this.advisor_id,advisorName:this.engagementsInfo?.advisor_name||this.advisor?.name||"",engagementId:this.id,userType:this.user_type}})}getUserTypeLabel(t){return null==t||""===t?"":this.USER_TYPE_LABELS[Number(t)]||""}getUserTypeClass(t){const s=Number(t);return[1,3,4,7,10].includes(s)?"role-bridger":[2,5,11].includes(s)?"role-client":[8,9].includes(s)?"role-internal":"role-unknown"}getInitials(t){return t?t.trim().split(/\s+/).slice(0,2).map(s=>s[0].toUpperCase()).join(""):"?"}trackByCcId(t,s){return s.id}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(Te.ef),e.rXU(Ve.h),e.rXU(ke.vh),e.rXU(e.sFG),e.rXU(Ze.Qq),e.rXU(L_.up),e.rXU(ue.ok),e.rXU(gt.w),e.rXU(_t.ex),e.rXU(Ne.Ix),e.rXU(Ne.nX),e.rXU(ke.aZ))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-appointment-details"]],decls:2,vars:2,consts:[["btnMenu","matMenu"],["noCc",""],["auto","matAutocomplete"],[4,"ngIf"],["class","animated fadeIn",4,"ngIf"],[1,"animated","fadeIn"],[1,"main-content-wrap"],[1,"main-content-container"],[1,"main-heading-wrap","w-full","flex","items-center","justify-between","pb-3"],[1,"skeleton-topbar","w-full"],[1,"sk-back"],[1,"sk-topbar-actions"],[1,"sk-btn","sk-block",2,"width","180px"],[1,"sk-btn","sk-block",2,"width","140px"],[1,"row"],[1,"col-xl-12","mb-3"],[1,"skeleton-card","skeleton-project-card"],[1,"card-body","p-0"],[1,"sk-project-inner"],[1,"sk-project-left"],[1,"sk-block","sk-sm","sk-w-25"],[1,"sk-block","sk-xl","sk-w-60"],[1,"sk-block","sk-xs","sk-w-33"],[1,"sk-project-right"],[2,"display","flex","flex-direction","column","gap","4px","align-items","flex-end"],[1,"sk-block","sk-md","sk-w-full",2,"width","130px"],[1,"sk-block","sk-xs",2,"width","90px"],[1,"sk-block","sk-circle",2,"width","28px","height","28px"],[1,"col-xl-4"],[1,"skeleton-sidebar"],[1,"skeleton-card"],[1,"sk-status-box","mb-4"],[1,"sk-info-section"],[1,"sk-info-block"],[1,"sk-block","sk-md","sk-w-4
10"],[1,"sk-block","sk-sm","sk-w-60"],[1,"sk-block","sk-md","sk-w-50"],[1,"sk-block","sk-sm","sk-w-40"],[1,"sk-block","sk-sm","sk-w-33"],[1,"sk-block","sk-sm","sk-w-75","sk-rounded"],[1,"sk-block","sk-md","sk-w-25"],[1,"sk-block","sk-md","sk-w-33"],[1,"sk-toggle-row",2,"max-width","140px"],[1,"sk-block","sk-sm",2,"width","80px"],[1,"sk-toggle"],[1,"skeleton-card",2,"display","flex","flex-direction","column","gap","12px"],[1,"sk-btn","sk-block","sk-w-full"],[1,"col-xl-8"],[1,"skeleton-main"],[1,"skeleton-card","sk-advisor-card"],[1,"sk-collapsible-header","mb-3"],[1,"sk-header-left"],[1,"sk-block","sk-lg","sk-w-full",2,"width","140px"],[1,"sk-block","sk-xs","sk-rounded",2,"width","90px"],[2,"display","flex","align-items","center","gap","10px"],[1,"sk-badge",2,"width","90px"],[1,"sk-chevron"],[1,"sk-advisor-row"],[1,"sk-avatar"],[1,"sk-advisor-text"],[1,"sk-block","sk-lg","sk-w-50"],[1,"sk-block","sk-xs","sk-w-40"],[1,"sk-block","sk-lg","sk-w-full",2,"width","260px"],[1,"sk-badge",2,"width","80px"],[1,"sk-questions"],["class","sk-question-block",4,"ngFor","ngForOf"],[1,"sk-badge",2,"width","70px"],[1,"sk-block","sk-sm","sk-w-full"],[1,"sk-block","sk-sm","sk-w-75","mt-2"],[1,"sk-block","sk-lg","sk-w-full",2,"width","80px"],[1,"sk-block","sk-sm","sk-w-60","mt-2"],[1,"sk-actions-row"],[1,"sk-btn","sk-block",2,"width","100px"],[1,"sk-btn","sk-block",2,"width","120px"],[1,"sk-btn","sk-block",2,"width","90px"],[1,"sk-question-block"],[1,"sk-block","sk-md","sk-w-75"],[1,"flex","items-center","btn-holder","leftSide-btn-holder","flex-shrink-0"],[1,"back-btn","flex-shrink-0","mr-2",3,"click"],["name","arrow-left"],["class","btn-holder rightSide-btn-holder flex-shrink-0 flex-fill",4,"ngIf"],["class","engagement-state flex-shrink-0 ml-3",3,"ngClass",4,"ngIf"],["class","col-xl-12",4,"ngIf"],[1,"col-xl-12"],[1,"card","custom-card","aProfile-card"],[1,"card-body"],[1,"custom-card-content","sm:flex","items-center","justify-between"],[1,"aProfile-info-block"],[1,"dateText","mb-1"],[1,"nameText","mb-0"],["style","font-size: 12px",4,"ngIf"],[1,"aProfile-starInfo-block","sm:pl-2","mt-1","sm:mt-0"],[1,"content-holder","flex","items-center","justify-between","sm:justify-end","sm:text-right"],[1,"infoText","mr-3"],["href","javascript:void(0)","class","star-holder flex-shrink-0",3,"click",4,"ngIf"],[1,"card","custom-card","advisorInfo-card"],[1,"advisorInfo-card-content","w-full"],[1,"advisorInfo-block"],[1,"status-box","p-3","status-green-box"],["class","statusText ylwText uppercase",4,"ngIf"],["class","statusText greenText uppercase",4,"ngIf"],["class","statusText redText uppercase",4,"ngIf"],[1,"px-3","w-full"],[1,"advisorInfo-block","mt-3"],[1,"heading-holder"],[1,"headingText","mb-2"],[1,"infoText"],["style","color: red",4,"ngIf"],[3,"href"],["class","advisorInfo-block mt-3",4,"ngIf"],["class","infoText",4,"ngIf"],["class","card custom-card advisorInfo-card",4,"ngIf"],[1,"card","custom-card"],[1,"custom-card-heading","bottom-border","mb-3","flex","justify-between","items-center","collapsible-header",3,"click"],[1,"flex","items-center","flex-grow-1"],[1,"headingText","mb-0"],["class","expand-hint ml-2",4,"ngIf"],[1,"flex","items-center"],["class","content-badge mr-2",4,"ngIf"],[1,"fas","chevron-icon",3,"ngClass"],["class","custom-card-heading mb-3 sm:flex items-center justify-between",3,"ngClass",4,"ngIf"],["class","custom-card-content",4,"ngIf"],["class","card custom-card response-card",4,"ngIf"],[1,"btn-holder","rightSide-btn-holder","flex-shrink-0","flex-fill"],[1,"hidden","lg:block","text-right"],["type","button","mat-flat-button","",1,"btn","btn-ylw","uppercase","mb-2","ml-1",3,"routerLink"],["name","clock"],["class","btn btn-ylw","type","button",3,"click",4,"ngIf"],[1,"block","lg:hidden","text-right"],["mat-button","",1,"m-sort-btn",3,"matMenuTriggerFor"],["name","sort"],["mat-menu-item",""],["type","button",1,"btn","btn-ylw",3,"click"],["name","star"],[1,"engagement-state","flex-shrink-0","ml-3",3,"ngClass"],[1,"card","custom-card","compliance-approved-card"],[1,"custom-card-content","flex","items-center"],["name","check-circle"],[1,"mb-0"],[2,"font-size","12px"],["href","javascript:void(0)",1,"star-holder","flex-shrink-0",3,"click"],["class","custom-card-heading bottom-border mb-3",4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"email-list-wrap"],[1,"titleText"],["class","count-badge",4,"ngIf"],[1,"email-list","mb-3"],["class","flex flex-wrap align-items-start",4,"ngIf","ngIfElse"],[1,"custom-card-heading","bottom-border","mb-3"],[1,"headingText"],[3,"formGroup"],[1,"form-group","mb-0","col-md-6"],[1,"input-group","cc-input-group","comn-form"],["appearance","outline","floatPlaceholder","never","floatLabel","never"],["matInput","","type","text","name","email","formControlName","ccEmail",3,"matAutocomplete"],["autoActiveFirstOption",""],[3,"value",4,"ngFor","ngForOf"],[1,"cc-input-btn"],["type","button","mat-flat-button","",1,"btn","btn-ylw",3,"click"],[3,"value"],[1,"count-badge"],[1,"flex","flex-wrap","align-items-start"],["class","ccemail",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ccemail",3,"ngClass"],[1,"cc-avatar"],[1,"cc-body"],[1,"cc-top"],[1,"cc-name",3,"title"],["class","cc-role",4,"ngIf"],[1,"cc-email",3,"title"],["class","delete-action flex-shrink-0","title","Remove",3,"click",4,"ngIf"],[1,"cc-role"],["title","Remove",1,"delete-action","flex-shrink-0",3,"click"],["name","close","label","Remove CC re
1cipient",3,"size"],[1,"cc-empty"],[1,"statusText","ylwText","uppercase"],[1,"statusText","greenText","uppercase"],["style","color: black",4,"ngIf"],[2,"color","black"],[2,"color","red"],[1,"statusText","redText","uppercase"],[4,"ngFor","ngForOf"],["class","statusText greenText",4,"ngIf"],[1,"statusText","greenText"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"headingText","mb-4"],[1,"flex","flex-col","items-start"],[3,"change","ngModel"],[3,"change","checked","disabled"],[1,"statusText","greenText","uppercase",2,"font-weight","bold"],["class","infoText",4,"ngFor","ngForOf"],[1,"download-icon",3,"href"],["name","download"],["class","advisorsmInfo-block flex justify-center",4,"ngIf"],["class","advisorsmInfo-block flex justify-center",4,"ngFor","ngForOf"],[1,"advisorsmInfo-block","flex","justify-center"],["name","calendar"],["type","button",1,"btn","btn-ylw","whiteSpaceNormal",3,"click"],["type","button",1,"btn","btn-blue",3,"click"],["name","comment"],[1,"card","custom-card","advisorInfo-card","recordings-loading-card"],[1,"heading-holder","text-center"],[1,"headingText","mb-3"],["name","video"],[1,"text-muted","mb-3",2,"font-size","14px"],["name","spinner"],[1,"recordings-skeleton"],[1,"skeleton-line",2,"width","60%"],[1,"skeleton-line",2,"width","85%"],[1,"skeleton-line",2,"width","45%"],[1,"text-muted","mb-0",2,"font-size","14px"],["name","users"],[1,"text-center","p-3"],[1,"recording-details","mb-3"],[1,"badge","bg-primary","me-2",2,"font-size","14px","padding","8px 12px"],[1,"badge","bg-secondary",2,"font-size","14px","padding","8px 12px"],["type","button",1,"btn","btn-ylw","btn-lg","px-5","py-2",3,"click"],["name","file"],["name","info"],[1,"text-muted","block"],["type","button",1,"btn","btn-secondary","ml-2",3,"click"],["name","file-text"],[1,"advisorInfo-card-content","tw-w-full"],[1,"p-3"],["type","button",1,"btn","btn-ylw","transcript-download-btn",3,"click","disabled"],["class","mb-3",4,"ngFor","ngForOf"],[1,"mb-3"],[1,"mb-1"],[1,"flex","flex-col","gap-1","ps-2"],["class","flex items-center gap-2",4,"ngFor","ngForOf"],[1,"flex","items-center","gap-2"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click"],["type","button",1,"btn","btn-sm","btn-ylw",3,"click"],[3,"ngSubmit","formGroup"],["mat-dialog-title","",1,"flex","justify-between"],["mat-dialog-content",""],[1,"content-body","scrollable-content","vertical-scrollable"],[1,"comn-form"],[1,"form-group"],[1,"ckeditor-group"],["formControlName","update_content",3,"modules","styles"],["mat-dialog-actions","",1,"justify-end","text-right"],["mat-flat-button","","type","submit",1,"btn","btn-ylw"],["class","pDetail-revisions-content-row",4,"ngFor","ngForOf"],[1,"pDetail-revisions-content-row"],[1,"ql-editor",3,"innerHTML"],[1,"common_style"],[1,"text-right",2,"font-size","11px"],[1,"expand-hint","ml-2"],[1,"content-badge","mr-2"],[1,"custom-card-heading","mb-3","sm:flex","items-center","justify-between",3,"ngClass"],[1,"media","pProfile-media","items-center"],[1,"pProfile-img","mr-3",2,"width","50px","height","50px","min-width","50px","min-height","50px"],["width","50","height","50","loading","eager","style","width: 50px; height: 50px; object-fit: cover; aspect-ratio: 1/1;",3,"src",4,"ngIf"],["class","prof_text","style","width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;",4,"ngIf"],[1,"media-body","flex","items-center","justify-between"],[1,"flex","flex-col"],["class","infoText infoText1 ","style","cursor: pointer",3,"routerLink",4,"ngIf"],["class","infoText infoText2",4,"ngIf"],[1,"flex","flex-col","items-end"],["width","50","height","50","loading","eager",2,"width","50px","height","50px","object-fit","cover","aspect-ratio","1/1",3,"src"],[1,"prof_text",2,"width","50px","height","50px","display","flex","align-items","center","justify-content","center"],[1,"infoText","infoText1",2,"cursor","pointer",3,"routerLink"],[1,"infoText","infoText2"],[1,"custom-card-content"],[1,"dsc-text","white_space_pre_wrap"],[3,"innerHTML"],[1,"card","custom-card","response-card"],["class","response-card-content",4,"ngIf"],["name","help"],[1,"response-card-content"],["formArrayName","advisorResponse",4,"ngIf"],["formArrayName","advisorResponse"],["class","screening-question-row",4,"ngFor","ngForOf"],[1,"screening-question-row"],[1,"comn-form","w-full","mb-3","revisions-content-row"],[3,"formGroupName"],[1,"flex"],[1,"mx-2"],["appearance","outline",4,"ngIf"],["formControlName","answer",4,"ngIf"],[3,"ngIf"],["appearance","outline"],["formControlName","answer","class","h-60px","matInput","",4,"ngIf"],["digitOnly","","mask","(000) 000-0099-99999","formControlName","answer","class","h-60px","matInput","",4,"ngIf"],["formControlName","answer","matInput","",1,"h-60px"],["digitOnly","","mask","(000) 000-0099-99999","formControlName","answer","matInput","",1,"h-60px"],["formControlName","answer"],[1,"mr-2",3,"value"],["formControlName","answer",3,"value",4,"ngFor","ngForOf"],["formControlName","answer",3,"value"],["formArrayName","answer"],[1,"comn_table","mt-2"],[1,"comn_table-row","comn_table-row-header","hidden","lg:flex"],[1,"comn_table-cell"],["class","comn_table-cell justify-content-lg-center",4,"ngFor","ngForOf"],[1,"comn_table-body"],["class","comn_table-row",4,"ngFor","ngForOf"],[1,"comn_table-cell","justify-content-lg-center"],[1,"comn_table-row"],[1,"list-content","lg:flex"],[1,"comn_table-cell-head","block","lg:hidden"],[1,"dataText"],["class","comn_table-cell justify-content-lg-center",3,"formGroupName",4,"ngFor","ngForOf"],[1,"comn_table-cell","justify-content-lg-center",3,"formGroupName"],[3,"formControlName","value"],[1,"check-style","radio-btn","mb
1-0"],["type","radio",1,"fate",3,"formControlName","value","checked"],[1,"checkmark"],["rows","4","readonly","","cols","50",1,"form-control","h-60px",3,"formControlName"],[1,"fas","fa-sticky-note"],[1,"response-content-row","mt-0"],[1,"heading","mb-2"],[1,"dscText"],["name","lock"],[1,"fas","fa-wifi-slash"],["class","card custom-card",4,"ngIf"],[1,"btn-holder","clearfix","text-right"],["class","btn btn-red-border","type","submit",4,"ngIf"],["matInput","","placeholder","Add note(s)","formControlName","cancelnote"],["type","submit",1,"btn","btn-red-border"],["mat-dialog-content","",4,"ngIf"],["class","text-muted",4,"ngIf"],[1,"text-muted"],[1,"card","custom-card","mt-3"],[1,"custom-card-heading","bottom-border","mb-3","flex","justify-between","items-center","collapsible-header"],[1,"flex","items-center","flex-grow-1",3,"click"],["mat-flat-button","","class","btn btn-blue btn-sm me-2","type","button",3,"click",4,"ngIf"],[1,"fas","chevron-icon",3,"click","ngClass"],["name","reports"],["mat-flat-button","","type","button",1,"btn","btn-blue","btn-sm","me-2",3,"click"],["class","text-center py-4",4,"ngIf"],["class","alert alert-warning",4,"ngIf"],["class","ai-insights-content",4,"ngIf"],["class","text-center py-3 text-muted",4,"ngIf"],[1,"text-center","py-4"],["diameter","40",2,"margin","0 auto"],[1,"mt-2"],[1,"alert","alert-warning"],[1,"ai-insights-content"],[1,"pDetail-revisions-content-row","mb-3"],[1,"mt-1",3,"innerHTML"],[1,"text-center","py-3","text-muted"],[1,"btn-holder","flex","justify-end","flex-wrap","items-start"],["class","btn btn-ylw ml-2 mb-2","mat-flat-button","","type","button",3,"click",4,"ngIf"],["class","btn btn-ylw ml-2 mb-2","type","button",3,"click",4,"ngIf"],["href","javascript:void(0);","class","btn btn-red-border uppercase ml-2 mb-2","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","type","button",1,"btn","btn-ylw","ml-2","mb-2",3,"click"],["type","button",1,"btn","btn-ylw","ml-2","mb-2",3,"click"],["href","javascript:void(0);","mat-flat-button","",1,"btn","btn-red-border","uppercase","ml-2","mb-2",3,"click"]],template:function(s,r){1&s&&e.DNE(0,z_,101,2,"ng-container",3)(1,yw,126,75,"div",4),2&s&&(e.Y8G("ngIf",r.isLoading),e.R7$(),e.Y8G("ngIf",!r.isLoading))},dependencies:[at.H,ke.YU,ke.Sq,ke.bT,Ne.Wk,tc.G7,tc.cm,bs.d1,ot.iV,ot.hn,Te.KI,Te.PQ,Te.$t,Ue.k5,Ue.Ky,Ue.aw,Wn.aL,Pt.pI,Pt.gy,Pt.fS,j_.wS,nc.Ku,nc.No,ys.cu,gs.P2,ue.qT,ue.me,ue.Fm,ue.BC,ue.cb,ue.vS,ue.j4,ue.JD,ue.$R,ue.v8,G_.m,ic.i9,ke.Jj,ke.Pc,ke.QX,ke.vh,je.bF,je.g3,je.aQ,je.DH,je.i0],styles:['@charset "UTF-8";  .cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}  .cdk-drag-placeholder{opacity:0}  .cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}  .email-cdkDrag-list{min-height:35px;overflow:hidden;display:block}  .cc-input-group{display:flex;align-items:flex-start;gap:.5rem}  .cc-input-group .mat-form-field{width:auto;flex:1 1 auto;min-width:0}  .cc-input-btn{flex:0 0 auto}  .cc-input-btn .btn.btn-ylw{margin-left:0;margin-top:.5rem;min-width:0}  .email-list-wrap .titleText{display:flex;align-items:center;gap:6px;font-weight:700;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-secondary);line-height:1.4;margin-bottom:8px}  .email-list-wrap .titleText .count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;font-size:11px;font-weight:600;color:var(--text-primary);background:var(--bg-input-focus);text-transform:none;letter-spacing:0}  .email-list-wrap .email-list ul{list-style:none;margin:0;padding:0;gap:8px}  .email-list-wrap .email-list ul li.ccemail{display:flex;align-items:center;gap:10px;max-width:100%;padding:6px 8px 6px 6px;background:var(--bg-card);border:1px solid var(--border-color);border-left:3px solid var(--border-color);border-radius:6px;box-shadow:0 1px 2px var(--shadow-color);transition:border-color .15s ease,box-shadow .15s ease}  .email-list-wrap .email-list ul li.ccemail:hover{border-color:var(--text-muted);box-shadow:0 2px 6px var(--shadow-color)}  .email-list-wrap .email-list ul li.ccemail.role-bridger{border-left-color:#003050}  .email-list-wrap .email-list ul li.ccemail.role-bridger .cc-avatar{background:#003050}  .email-list-wrap .email-list ul li.ccemail.role-bridger .cc-role{background:#e6edf3;color:#003050}  .email-list-wrap .email-list ul li.ccemail.role-client{border-left-color:#2e7d32}  .email-list-wrap .email-list ul li.ccemail.role-client .cc-avatar{background:#2e7d32}  .email-list-wrap .email-list ul li.ccemail.role-client .cc-role{background:#e8f5e9;color:#2e7d32}  .email-list-wrap .email-list ul li.ccemail.role-internal{border-left-color:#8e24aa}  .email-list-wrap .email-list ul li.ccemail.role-internal .cc-avatar{background:#8e24aa}  .email-list-wrap .email-list ul li.ccemail.role-internal .cc-role{background:#f3e5f5;color:#8e24aa}  .email-list-wrap .email-list ul li.ccemail.role-unknown{border-left-color:#9e9e9e}  .email-list-wrap .email-list ul li.ccemail.role-unknown .cc-avatar{background:#9e9e9e}  .email-list-wrap .email-list ul li.ccemail.role-unknown .cc-role{background:#f0f0f0;color:#616161}  .email-list-wrap .email-list ul li.ccemail .cc-avatar{flex-shrink:0;width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;letter-spacing:.02em}
1  .email-list-wrap .email-list ul li.ccemail .cc-body{display:flex;flex-direction:column;min-width:0;line-height:1.3}  .email-list-wrap .email-list ul li.ccemail .cc-top{display:flex;align-items:center;gap:6px;min-width:0}  .email-list-wrap .email-list ul li.ccemail .cc-name{font-size:13px;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}  .email-list-wrap .email-list ul li.ccemail .cc-role{flex-shrink:0;font-size:10px;font-weight:600;padding:1px 7px;border-radius:10px;white-space:nowrap;letter-spacing:.02em}  .email-list-wrap .email-list ul li.ccemail .cc-email{font-size:12px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}  .email-list-wrap .email-list ul li.ccemail .delete-action{width:26px;height:26px;line-height:26px;margin-left:2px;border-radius:50%;color:var(--text-muted);text-align:center;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,color .15s ease}  .email-list-wrap .email-list ul li.ccemail .delete-action:hover{background:var(--bg-input-focus);color:var(--danger)}  .email-list-wrap .email-list .cc-empty{padding:10px 12px;border:1px dashed var(--border-color);border-radius:6px;font-size:12px;color:var(--text-secondary);background:var(--bg-input)}  .email-list-wrap .cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;padding:3px 12px}  .email-list-wrap .email-cdkDrag-list .cdkDrag-list-item{padding:3px 12px;margin-bottom:5px;background:var(--bg-input);min-height:32px;border-radius:3px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;cursor:move}  .email-list-wrap .email-cdkDrag-list .cdkDrag-list-item .delete-action{width:26px;height:26px;line-height:26px;color:#003050;text-align:center;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}  .email-list-wrap .email-cdkDrag-list .cdkDrag-list-item .delete-action:hover{color:var(--accent-400)}  .email-list-wrap .email-cdkDrag-list>*:last-child{margin-bottom:0}@media (max-width: 576px){  .email-list-wrap .email-list ul li.ccemail{width:100%}  .email-list-wrap .email-list ul li.ccemail .cc-name,   .email-list-wrap .email-list ul li.ccemail .cc-email{max-width:none}}  .mat-radio-label-content,   .mat-select-min-line{color:var(--text-primary)!important}.redText[_ngcontent-%COMP%]{color:var(--danger)}.comn-form[_ngcontent-%COMP%]   .mat-input-element[_ngcontent-%COMP%]:disabled, .comn-form[_ngcontent-%COMP%]   .mat-form-field-label[_ngcontent-%COMP%]:disabled{color:var(--text-primary)}.disabled-color[_ngcontent-%COMP%], .dataText[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-size:14px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]{border:1px solid var(--border-color);height:510px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]{padding:0}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:block;padding:20px 10px;clear:both;cursor:pointer;border-bottom:1px solid var(--border-color);transition:all .2s ease-in-out}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{margin-right:12px;float:left}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60px;height:auto;border:4px solid transparent}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .avatar.available[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-color:var(--success)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .avatar.busy[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-color:#ff530d}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:4px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .username[_ngcontent-%COMP%]{font-weight:700}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .timestamp[_ngcontent-%COMP%]{float:right;color:var(--text-secondary);font-size:11px;line-height:18px;font-style:italic}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .timestamp[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:4px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:12px;line-height:16px;max-height:32px;overflow:hidden}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:var(--bg-input)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]{background-color:var(--bg-input);color:var(--text-primary);border-left:2px solid var(--accent-400)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .timestamp[_ngcontent-%COMP%]{color:var(--text-primary)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-list-wrapper[_ngcontent-%COMP%]   .chat-list[_ngcontent-%COMP%]   li.new[_ngcontent-%COMP%]{border-left:2px solid var(--brand-700)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]{border:1px solid var(--border-color);height:452px;position:relative;overflow-y:auto}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]{padding:0}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:block;padding:20px 10px;clear:both;position:relative;color:#fff}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .avatar[_ng
1content-%COMP%]{margin-right:12px;display:block;float:left}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60px;height:auto;border:2px solid transparent}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .avatar.available[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-color:var(--success)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .avatar.busy[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-color:#ff530d}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .username[_ngcontent-%COMP%]{float:left;display:none}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .timestamp[_ngcontent-%COMP%]{text-align:left;display:block;color:var(--text-secondary);font-size:11px;line-height:18px;font-style:italic;margin-bottom:4px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .timestamp[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:4px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]{display:block;width:87%;float:left;position:relative}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{font-size:12px;line-height:16px;display:inline-block;width:auto;background:var(--success)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;width:0;height:0;border-style:solid;border-width:9px 9px 9px 0;border-color:transparent var(--success) transparent transparent;left:0;top:10px;margin-left:-8px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   a.white[_ngcontent-%COMP%]{color:#fff;font-weight:bolder;text-decoration:underline}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.left[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;width:100%;height:auto;margin-bottom:5px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{margin-left:12px;display:block;float:right}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60px;height:auto;border:2px solid transparent}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .avatar.available[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-color:var(--success)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .avatar.busy[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-color:#ff530d}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .username[_ngcontent-%COMP%]{float:right;display:none}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .timestamp[_ngcontent-%COMP%]{text-align:right;display:block;color:var(--text-secondary);font-size:11px;line-height:18px;font-style:italic;margin-bottom:4px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .timestamp[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:4px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]{display:block;width:87%;float:right;position:relative;text-align:right}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{font-size:12px;line-height:16px;display:inline-block;width:auto;background:var(--info)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:0;height:0;border-style:solid;border-width:9px 9px 9px 0;border-color:transparent var(--info) transparent transparent;right:0;top:10px;margin-right:-7px;transform:rotate(180deg)}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   a.white[_ngcontent-%COMP%]{color:#fff;font-weight:700}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-list-wrapper[_ngcontent-%COMP%]   .message-list[_ngcontent-%COMP%]   li.right[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;width:100%;height:auto;margin-bottom:5px}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .compose-area[_ngcontent-%COMP%]{padding:10px 0;text-align:right}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .compose-box[_ngcontent-%COMP%], .chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .recipient-box[_ngcontent-%COMP%]{padding:10px 0}.chat[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .recipient-box[_ngcontent-%COMP%]   .bootstrap-tagsinput[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:0}.scrollable-content[_ngcontent-%COMP%]{position:static;overflow-x:auto;overflow-y:auto;white-space:nowrap;max-height:400px}.vertical-scrollable[_ngcontent-%COMP%]{position:static;overflow-x:hidden;overflow-y:auto;white-space:normal;max-height:400px;word-wrap:break-word}.chat-fixed-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:1000}.chat-toggle-btn[_ngcontent-%COMP%]{background-color:var(--brand-800);color:#fff;border:none;border-radius:50%;width:75px;height:75px;font-size:15px;cursor:pointer;box-shadow:0 4px 12px #0000004d;transition:transform .2s ease}.chat-toggle-btn[_ngcontent-%COMP%]:hover{transform:scale(1.05)}.chat-widget-container[_ngcontent-%COMP%]{position:fixed;bottom:90px;right:24px;width:360px;height:480px;background:var(--bg-surface);border-radius:16px;box-shadow:0 8px 24px var(--shadow-color);display:flex;flex-direction:column;overflow:hidden}.chat-header[_ngcontent-%COMP%]{background:var(--bg-input);padding:16px;font-weight:700;font-size:16px;border-bottom:1px solid var(--border-color)}.chat-body[_ngcontent-%COMP%]{flex:1;padding:16px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;background:var(--bg-surface)}.chat-bubble-left[_ngcontent-%COMP%], .chat-bubble-right[_ngcontent-%COMP%]{max-width:80%;border-radius:24px;padding:12px 16px;margin:6px 12px;word-wrap:break-word;font-size:15px}.chat-bubble-left[_ngcontent-%COMP%]{align-self:flex-start;background-color:var(--bg-input);color:var(--text-primary)}.chat-bubble-right[_ngcontent-%COMP%]{align-self:flex-end;background-color:var(--brand-800);color:#fff}.bot[_ngcontent-%COMP%]{align-self:flex-start;background:var(--bg-input);color:var(--text-primary);padding:10px 16px;border-radius:18px 18px 18px 4px;max-width:80%;font-size:15px;line-height:1.4;box-shadow:0 1px 4px #0000001a}.user[_ngcontent-%COMP%]{align-self:flex-end;background:var(--brand-800);color:#fff;padding:10px 16px;border-radius:18px 18px 4px;max-width:80%;font-size:15px;line-height:1.4;box-shadow:0 1px 4px #00000026}.chat-input[_ngcontent-%COMP%]{border-top:1px solid var(--border-color);padding:12px;background:var(--bg-surface)}.chat-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;border:1px solid var(--border-color);border-radius:24px;padding:10px 16px;font-size:14px;outline:none;transition:border .2s ease}.chat-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;padding:12px}.chat-header[_ngcontent-%COMP%]{padding:12px 0 16px;font-weight:700;font-size:16px;color:var(--text-primary);margin-bottom:8px}.chat-body[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding-right:4px;display:flex;flex-direction:column;gap:12px}.chat-input[_ngcontent-%COMP%]{margin-top:auto;padding-top:12px;border-top:1px solid var(--border-color)}.chat-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;font-size:14px;border:1px solid var(--border-color);border-radius:24px;outline:none}.chat-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{border-color:var(--brand-700)}
1.btn-blue[_ngcontent-%COMP%]{background-color:var(--brand-800);color:#fff}.btn-blue[_ngcontent-%COMP%]:hover{background-color:var(--brand-800)}.btn-blue[_ngcontent-%COMP%]:disabled{background-color:#6c757d;cursor:not-allowed}.ai-insights-content[_ngcontent-%COMP%]{text-align:left!important;display:block;width:100%}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]{padding:12px;background-color:var(--bg-input);border-radius:4px;text-align:left!important;display:block;width:100%}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   .mb-2[_ngcontent-%COMP%]{text-align:left!important;display:block;width:100%}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:var(--text-primary)}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin:0;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;text-align:left!important}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%], .ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:10px 0;padding-left:20px;line-height:1.6;text-align:left!important}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:5px 0;text-align:left!important}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin:15px 0 10px;color:var(--text-primary);font-weight:600;text-align:left!important}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.5em}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3em}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.15em}.ai-insights-content[_ngcontent-%COMP%]   .pDetail-revisions-content-row[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:1em}.collapsible-header[_ngcontent-%COMP%]{cursor:pointer;transition:background-color .2s ease,box-shadow .2s ease;border-radius:4px;padding:8px 12px;margin:-8px -12px 12px;position:relative}.collapsible-header[_ngcontent-%COMP%]:hover{background-color:#00305008;box-shadow:0 2px 4px #0000000d}.collapsible-header[_ngcontent-%COMP%]:hover   .expand-hint[_ngcontent-%COMP%]{opacity:1}.collapsible-header[_ngcontent-%COMP%]:active{background-color:#0030500f}.collapsible-header[_ngcontent-%COMP%]   .expand-hint[_ngcontent-%COMP%]{font-size:11px;color:var(--text-secondary);font-weight:400;opacity:0;transition:opacity .2s ease;white-space:nowrap;font-style:italic}.collapsible-header[_ngcontent-%COMP%]   .content-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;background:linear-gradient(135deg,#fc0,#fa0);color:var(--text-primary);font-size:12px;font-weight:600;border-radius:12px;white-space:nowrap;box-shadow:0 2px 4px #ffcc004d;animation:_ngcontent-%COMP%_fadeInBadge .3s ease}.collapsible-header[_ngcontent-%COMP%]   .content-badge[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:13px}.collapsible-header[_ngcontent-%COMP%]   .chevron-icon[_ngcontent-%COMP%]{font-size:16px;color:var(--text-primary);transition:transform .3s ease,color .2s ease}.collapsible-header[_ngcontent-%COMP%]:hover   .chevron-icon[_ngcontent-%COMP%]{color:var(--accent-400);transform:scale(1.1)}@media (max-width: 768px){.collapsible-header[_ngcontent-%COMP%]   .expand-hint[_ngcontent-%COMP%]{display:none}.collapsible-header[_ngcontent-%COMP%]   .content-badge[_ngcontent-%COMP%]{font-size:11px;padding:3px 8px}}@keyframes _ngcontent-%COMP%_fadeInBadge{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.collapsible-header[_ngcontent-%COMP%]   .content-badge[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeInBadge .3s ease,subtlePulse 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_subtlePulse{0%,to{box-shadow:0 2px 4px #ffcc004d}50%{box-shadow:0 2px 8px #ffcc0080}}@keyframes _ngcontent-%COMP%_skeleton-shimmer{0%{background-position:-800px 0}to{background-position:800px 0}}.skeleton-main[_ngcontent-%COMP%]   .sk-collapsible-header[_ngcontent-%COMP%]   .sk-chevron[_ngcontent-%COMP%], .skeleton-sidebar[_ngcontent-%COMP%]   .sk-toggle-group[_ngcontent-%COMP%]   .sk-toggle-row[_ngcontent-%COMP%]   .sk-toggle[_ngcontent-%COMP%], .skeleton-sidebar[_ngcontent-%COMP%]   .sk-status-box[_ngcontent-%COMP%], .skeleton-topbar[_ngcontent-%COMP%]   .sk-back[_ngcontent-%COMP%], .sk-btn[_ngcontent-%COMP%], .sk-badge[_ngcontent-%COMP%], .sk-avatar[_ng
1content-%COMP%], .sk-block[_ngcontent-%COMP%]{background:linear-gradient(90deg,#e8ecf0 25%,#f4f6f8,#e8ecf0 75%);background-size:800px 100%;animation:_ngcontent-%COMP%_skeleton-shimmer 1.4s ease-in-out infinite;border-radius:4px}.sk-block[_ngcontent-%COMP%]{display:block;height:14px}.sk-block.sk-xs[_ngcontent-%COMP%]{height:10px}.sk-block.sk-sm[_ngcontent-%COMP%]{height:12px}.sk-block.sk-md[_ngcontent-%COMP%]{height:16px}.sk-block.sk-lg[_ngcontent-%COMP%]{height:20px}.sk-block.sk-xl[_ngcontent-%COMP%]{height:28px}.sk-block.sk-2xl[_ngcontent-%COMP%]{height:36px}.sk-block.sk-w-25[_ngcontent-%COMP%]{width:25%}.sk-block.sk-w-33[_ngcontent-%COMP%]{width:33%}.sk-block.sk-w-40[_ngcontent-%COMP%]{width:40%}.sk-block.sk-w-50[_ngcontent-%COMP%]{width:50%}.sk-block.sk-w-60[_ngcontent-%COMP%]{width:60%}.sk-block.sk-w-75[_ngcontent-%COMP%]{width:75%}.sk-block.sk-w-100[_ngcontent-%COMP%]{width:100%}.sk-block.sk-rounded[_ngcontent-%COMP%]{border-radius:20px}.sk-block.sk-circle[_ngcontent-%COMP%]{border-radius:50%}.sk-avatar[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:50%;flex-shrink:0}.sk-badge[_ngcontent-%COMP%]{height:24px;border-radius:12px}.sk-btn[_ngcontent-%COMP%]{height:38px;border-radius:6px}.skeleton-topbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-bottom:16px;margin-bottom:4px}.skeleton-topbar[_ngcontent-%COMP%]   .sk-back[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:50%}.skeleton-topbar[_ngcontent-%COMP%]   .sk-topbar-actions[_ngcontent-%COMP%]{display:flex;gap:10px}.skeleton-project-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .sk-project-inner[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:16px}.skeleton-project-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .sk-project-left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;flex:1}.skeleton-project-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .sk-project-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-shrink:0}.skeleton-sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.skeleton-sidebar[_ngcontent-%COMP%]   .sk-status-box[_ngcontent-%COMP%]{height:74px;border-radius:8px}.skeleton-sidebar[_ngcontent-%COMP%]   .sk-info-section[_ngcontent-%COMP%]{padding:0 12px;display:flex;flex-direction:column;gap:20px}.skeleton-sidebar[_ngcontent-%COMP%]   .sk-info-section[_ngcontent-%COMP%]   .sk-info-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.skeleton-sidebar[_ngcontent-%COMP%]   .sk-toggle-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:0 12px}.skeleton-sidebar[_ngcontent-%COMP%]   .sk-toggle-group[_ngcontent-%COMP%]   .sk-toggle-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.skeleton-sidebar[_ngcontent-%COMP%]   .sk-toggle-group[_ngcontent-%COMP%]   .sk-toggle-row[_ngcontent-%COMP%]   .sk-toggle[_ngcontent-%COMP%]{width:42px;height:22px;border-radius:11px;flex-shrink:0}.skeleton-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.skeleton-main[_ngcontent-%COMP%]   .sk-advisor-card[_ngcontent-%COMP%]   .sk-advisor-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.skeleton-main[_ngcontent-%COMP%]   .sk-advisor-card[_ngcontent-%COMP%]   .sk-advisor-row[_ngcontent-%COMP%]   .sk-advisor-text[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:6px}.skeleton-main[_ngcontent-%COMP%]   .sk-collapsible-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--border-color);margin-bottom:0}.skeleton-main[_ngcontent-%COMP%]   .sk-collapsible-header[_ngcontent-%COMP%]   .sk-header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.skeleton-main[_ngcontent-%COMP%]   .sk-collapsible-header[_ngcontent-%COMP%]   .sk-chevron[_ngcontent-%COMP%]{width:16px;height:16px;border-radius:3px;flex-shrink:0}.skeleton-main[_ngcontent-%COMP%]   .sk-questions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.skeleton-main[_ngcontent-%COMP%]   .sk-questions[_ngcontent-%COMP%]   .sk-question-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.skeleton-main[_ngcontent-%COMP%]   .sk-actions-row[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:10px;flex-wrap:wrap}.skeleton-card[_ngcontent-%COMP%]{background:var(--bg-card);border-radius:8px;box-shadow:0 1px 4px #00000012;padding:20px}.recordings-loading-card[_ngcontent-%COMP%]   .recordings-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:6px 12px 12px}.recordings-loading-card[_ngcontent-%COMP%]   .skeleton-line[_ngcontent-%COMP%]{height:12px;border-radius:6px;background:linear-gradient(90deg,#eef0f2,#f7f8fa,#eef0f2);background-size:1600px 100%;animation:_ngcontent-%COMP%_skeleton-shimmer 1.4s linear infinite}.advisorInfo-block[_ngcontent-%COMP%]   .heading-holder[_ngcontent-%COMP%]   .headingText[_ngcontent-%COMP%]{font-size:14px!important;font-weight:700!important;color:var(--text-primary)!important;line-height:1.3;margin-bottom:4px}.engagement-state[_ngcontent-%COMP%]{font-size:13px;font-weight:700;line-height:1.3;letter-spacing:.04em;text-transform:uppercase;padding:4px 14px;border-radius:999px;white-space:nowrap}.engagement-state.is-scheduled[_ngcontent-%COMP%]{background-color:#d1e8ff;color:#003050}.engagement-state.is-live[_ngcontent-%COMP%]{background-color:#fde3e3;color:#ad2121}.engagement-state.is-completed[_ngcontent-%COMP%]{background-color:#e4f7e6;color:#1b4a0c}.compliance-approved-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{padding:12px 20px;border-left:4px solid #1b4a0c;background-color:#e4f7e6;color:#1b4a0c}.compliance-approved-card[_ngcontent-%COMP%]   .fa-check-circle[_ngcontent-%COMP%]{font-size:18px}.transcript-download-btn[_ngcontent-%COMP%]{max-width:100%;padding:10px 24px;white-space:normal;word-break:break-word}']})}}return i})();var rc=ge(61079),kw=ge(70179),Cw=ge(46282),Ew=ge(60738),Iw=ge(11026),sc=ge(66072),ac=ge(6064);const Sw=(i,n)=>({"adding-times":i,"scheduling-times":n});function Dw(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",5)(1,"mat-slide-toggle",6),e.bIt("change",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.toggleMode(r))}),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.isAddingTimes,r)||(a.isAddingTimes=r),e.Njj(r)}),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(),e.R50("ngModel",t.isAddingTimes),e.R7$(),e.SpI(" ",t.isAddingTimes?"Adding Times":"Scheduling Times"," ")}}let Rw=(()=>{class i{set availabilities(t){this.externalSource=!0,t&&(this.savedAvailabilities=t,this.datesReady&&this.applySavedAvailabilities())}get isScheduleBlocked(){return!!this.scheduleBlockedReason&&!this.isAddingTimes}constructor(t,s){this.cdr=t,this.commonService=s,this.submitClicked=new e.bkB,this.advisorId=null,this.scheduleBlockedReason="",this.externalSource=!1,this.datesReady=!1,this.viewDate=new Date,this.events=[],this.days=[],this.slots=[],this.isAddingTimes=!1,this.weekStart=new Date,this.weekEnd=new Date,this.nextEventId=1,this.lastCreateStart=null,this.calendarOptions={...Iw.O,initialView:"timeGridWeek",headerToolbar:{left:"prev,next today",center:"title",right:""},allDaySlot:!1,slotDuration:"00:15:00",selectable:!0,selectMirror:!0,selectOverlap:!0,editable:!0,nowIndicator:!0,height:"auto",select:r=>{this.createSlot(r.start,r.end),this.clearSelection(r)},dateClick:r=>{this.createSlot(r.date,null),this.clearSelection(r)},eventClick:r=>this.onEventClick(r),eventContent:r=>(0,sc.B)(r),eventResize:r=>this.onEventChange(r),eventDrop:r=>this.onEventChange(r),datesSet:r=>this.onDatesSet(r.start,r.end),events:[]},this.savedAvailabilities=null,this.currentDate=this.formatDateRange(this.viewDate,(0,rc.A)(this.viewDate,6))}ngOnInit(){this.initDays(),this.user_type=localStorage.getItem("user_type")}onDatesSet(t,s){this.datesReady=!0,this.weekStart=t,this.weekEnd=s,this.viewDate=t,this.currentDate=this.formatDateRange(t,(0,rc.A)(s,-1)),this.fetchData()}fetchData(){if(this.savedAvailabilities)this.applySavedAvailabilities();else if(!this.externalSource){if(!this.advisorId)return void console.error("Advisor ID is null or undefined.");this.commonService.getAPICallForNode({url:`/api/advisor/details/?advisor_id=${this.advisorId}&project_id=0`}).subscribe(t=>{this.savedAvailabilities=t.data.advisor_availabilities||[],this.applySavedAvailabilities()})}}applySavedAvailabilities(){const t=this.events.filter(r=>!r.fromApi),s=[];for(const r of this.savedAvailabilities){const a=new Date(r.fromTime),l=new Date(r.toTime);if(a>=this.weekStart&&l<=this.weekEnd){const o=1===r.scheduled;s.push({id:this.nextEventId++,start:a,end:l,title:o?"BOOKED":this.generateEventTitle(a,l).replace("Client Scheduling","Advisor Availability"),booked:o,fromApi:!0})}}
1this.events=[...s,...t],this.getSlots(),this.syncCalendar()}clearSelection(t){t?.view?.calendar?.unselect?.()}createSlot(t,s){if(this.lastCreateStart===t.getTime())return;if(this.isScheduleBlocked)return void console.warn("Cannot create event until compliance has approved this advisor.");const r=this.isAddingTimes?15:60;(!s||s.getTime()-t.getTime()<=9e5)&&(s=function Aw(i,n){(0,Ew.A)(2,arguments);var t=(0,kw.A)(n);return(0,Cw.A)(i,6e4*t)}(t,r)),this.isAddingTimes||!this.isOverlapWithOtherClientScheduling(t,s,null)?this.isAddingTimes||this.isOverlapWithAdvisorAvailability(t,s)?(this.events=[...this.events,{id:this.nextEventId++,start:t,end:s,title:this.generateEventTitle(t,s),booked:!1}],this.lastCreateStart=t.getTime(),setTimeout(()=>this.lastCreateStart=null),this.getSlots(),this.syncCalendar()):console.warn("Cannot create event outside advisor availability."):console.warn("Cannot create event that overlaps with other Client Scheduling events.")}onEventChange(t){const s=this.events.find(l=>String(l.id)===String(t.event.i
1d));if(!s||s.booked)return void t.revert();const r=t.event.start,a=t.event.end;if(s.title.includes("Client Scheduling")){if(!this.isOverlapWithAdvisorAvailability(r,a))return console.warn("Cannot move event outside advisor availability."),void t.revert();if(this.isOverlapWithOtherClientScheduling(r,a,s))return console.warn("Cannot move event to overlap with other Client Scheduling events."),void t.revert()}else if(s.title.includes("Advisor Availability")&&this.isOverlapWithOtherAdvisorAvailability(r,a,s))return console.warn("Cannot move event to overlap with other Advisor Availability events."),void t.revert();s.start=r,s.end=a,s.title=this.generateEventTitle(r,a),this.getSlots(),this.syncCalendar()}onEventClick(t){const s=t.jsEvent?.target;if(!s||!s.closest(".evt-remove"))return;const r=this.events.find(a=>String(a.id)===String(t.event.id));!r||r.booked||(this.events=this.events.filter(a=>a!==r),this.removeSlot(r.id),this.getSlots(),this.syncCalendar())}syncCalendar(){this.calendarOptions={...this.calendarOptions,selectable:!this.isScheduleBlocked,events:this.events.map(t=>{const s=(t.title||"").includes("Advisor Availability"),r=(t.title||"").includes("Client Scheduling"),a=!t.booked&&(s&&this.isAddingTimes||r&&!this.isAddingTimes);let l="var(--brand-700)";t.booked?l="var(--danger)":r&&(l="var(--accent-600, #b58a00)");const o=[t.booked?"evt-booked":s?"evt-availability":"evt-scheduling"],u=t.booked||a?"auto":"background",p="background"===u,{typeLabel:_,timeLabel:g}=(0,sc.L)(t.title||"");return{id:String(t.id),start:t.start,end:t.end,title:[_,g].filter(Boolean).join(" "),editable:a,display:u,classNames:o,extendedProps:{removable:a,typeLabel:_,timeLabel:g},backgroundColor:p?"color-mix(in srgb, var(--brand-500) 16%, transparent)":l,borderColor:p?"var(--brand-500)":l,textColor:r&&!t.booked?"#003050":"#fff"}})},this.cdr.detectChanges()}toggleMode(t){this.isAddingTimes=t.checked,this.syncCalendar()}isOverlapWithAdvisorAvailability(t,s){for(const r of this.events)if(r.title.includes("Advisor Availability")&&t>=r.start&&t<=r.end&&s>=r.start&&s<=r.end)return!0;return!1}isOverlapWithOtherClientScheduling(t,s,r){for(const a of this.events)if(a!==r&&a.title.includes("Client Scheduling")&&t<a.end&&s>a.start)return!0;return!1}isOverlapWithOtherAdvisorAvailability(t,s,r){for(const a of this.events)if(a!==r&&a.title.includes("Advisor Availability")&&t<a.end&&s>a.start)return!0;return!1}initDays(){this.days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];for(let t=0;t<this.days.length;t++)this.slots.push({day:this.days[t],time:[]})}formatDateRange(t,s){const r={month:"long",day:"numeric"};return`${t.toLocaleDateString(void 0,r)} - ${s.toLocaleDateString(void 0,r)}, ${s.getFullYear()}`}convertTime(t){return new Date(t).toTimeString()}convertDay(t){return new Date(t).toLocaleString("en-us",{weekday:"long"})}getSlots(){this.slots.map((t,s)=>{this.slots[s].time=[],this.slots[s].date="",this.events.forEach(r=>{if(t.day==this.convertDay(r.start)){let a=r.start.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}),l=r.start.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),o=r.end.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}),u=r.end.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});const[p,_,g]=a.split("/").map(y=>parseInt(y,10)),[C,f,x]=o.split("/").map(y=>parseInt(y,10));a=`${g}-${p}-${_}`,o=`${x}-${C}-${f}`,l.includes("24")&&(l=l.replace("24","00")),u.includes("24")&&(u=u.replace("24","00")),this.slots[s].time.push({from_time:`${a} ${l}`,to_time:`${o} ${u}`,fromdb:"no",scheduled:0,id:r.id,type:r.title.split("<br>")[0]}),this.slots[s].date=a}})})}removeSlot(t){for(let s=0;s<this.slots.length;s++)this.slots[s].time=this.slots[s].time.filter(r=>r.id!==t)}generateEventTitle(t,s){const r=t.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),a=s.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"});return`${this.isAddingTimes?"Advisor Availability":"Client Scheduling"}<br>${r} to ${a}`}onSubmitButtonClick(){const t=this.slots.map(s=>{const r=s.time.filter(l=>"Client Scheduling"===l.type);let a=s.time.filter(l=>"Advisor Availability"===l.type);return r.forEach(l=>{a=a.flatMap(o=>{const[u,p]=[o.from_time,o.to_time],[_,g]=[l.from_time,l.to_time];return _===u&&g===p?[]:_>=u&&g<=p?[_>u?{...o,to_time:_}:null,g<p?{...o,from_time:g}
1:null].filter(Boolean):_<=u&&g>=p?[]:_>=u&&_<p&&g>p?[{...o,to_time:_}]:_<u&&g<=p&&g>u?[{...o,from_time:g}]:[o]})}),{...s,time:[...a,...r]}});this.submitClicked.emit(t)}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(e.gRc),e.rXU(Ve.h))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-engagment-drag-comp"]],inputs:{advisorId:"advisorId",scheduleBlockedReason:"scheduleBlockedReason",availabilities:"availabilities"},outputs:{submitClicked:"submitClicked"},decls:6,vars:10,consts:[[1,"container"],["class","mode-toggle-bar",4,"ngIf"],[3,"options","ngClass"],[1,"schedule-btn-fixed"],["type","submit","mat-flat-button","","color","primary",1,"btn-submit",3,"click","disabled"],[1,"mode-toggle-bar"],[1,"toggle-switch",3,"change","ngModelChange","ngModel"]],template:function(s,r){1&s&&(e.j41(0,"div",0),e.DNE(1,Dw,3,2,"div",1),e.nrm(2,"full-calendar",2),e.k0s(),e.j41(3,"div",3)(4,"button",4),e.bIt("click",function(){return r.onSubmitButtonClick()}),e.EFF(5),e.k0s()()),2&s&&(e.R7$(),e.Y8G("ngIf","1"==r.user_type||"7"==r.user_type||"10"==r.user_type),e.R7$(),e.Y8G("options",r.calendarOptions)("ngClass",e.l_i(7,Sw,r.isAddingTimes,!r.isAddingTimes)),e.R7$(2),e.AVh("is-blocked",r.isScheduleBlocked),e.Y8G("disabled",r.isScheduleBlocked),e.R7$(),e.SpI(" ",r.isScheduleBlocked?r.scheduleBlockedReason:"Schedule"," "))},dependencies:[ke.YU,ke.bT,ot.iV,gs.P2,ue.BC,ue.vS,ac.x],styles:[".schedule-btn-fixed{position:sticky;bottom:0;z-index:5;display:flex;justify-content:flex-end;margin-top:16px;padding:12px 0;background:var(--bg-card, #fff);border-top:1px solid var(--border-color, #e3e3e3)}
1.schedule-btn-fixed .btn-submit{min-width:200px;height:48px;line-height:48px;padding:0 32px;font-size:1.0625rem;font-weight:600;border-radius:var(--radius, 8px)}.schedule-btn-fixed .btn-submit.is-blocked{min-width:0;max-width:100%;height:auto;padding:10px 20px;font-size:.9375rem;line-height:1.3;white-space:normal;text-align:right}.scheduling-times .evt-availability,.adding-times .evt-scheduling{pointer-events:none}.toggle-switch{margin-bottom:10px}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:#fc0}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#003050}.mat-slide-toggle:not(.mat-checked) .mat-slide-toggle-bar{background-color:#003050}.mat-slide-toggle:not(.mat-checked) .mat-slide-toggle-thumb{background-color:#fc0}.mode-toggle-bar{text-align:left;padding:12px 16px;margin-bottom:10px;background:var(--bg-surface, #f0f7fc);border-radius:8px;border:1px solid var(--border-color, #e3e3e3)}\n"],encapsulation:2,changeDetection:0})}}return i})();function Pw(i,n){if(1&i){const t=e.RV6();e.j41(0,"img",31),e.bIt("error",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.errorHandler())}),e.k0s()}if(2&i){const t=e.XpG();e.FCK("src","",t.url,"advisor_image/",t.profile_image,"",e.B4B)}}function Ow(i,n){if(1&i&&(e.j41(0,"span",32),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.JRh(t.advisorNameInitial)}}function Fw(i,n){if(1&i&&(e.j41(0,"a",33),e.nI1(1,"customIdEncode"),e.nI1(2,"customIdEncode"),e.EFF(3),e.k0s()),2&i){const t=e.XpG();e.FCK("routerLink","/user/client-project-profile/details/",e.bMT(1,4,t.project_id),"/",e.bMT(2,6,t.advisor_id),""),e.R7$(3),e.JRh(t.advisorName)}}function Nw(i,n){if(1&i&&(e.j41(0,"a",33),e.nI1(1,"customIdEncode"),e.EFF(2),e.k0s()),2&i){const t=e.XpG();e.Mz_("routerLink","/user/network/advisor/advisor-details/",e.bMT(1,3,t.advisor_id),""),e.R7$(2),e.JRh(t.advisorName)}}let oc=(()=>{class i{constructor(t,s,r,a,l,o,u){this.commonService=t,this.router=s,this.route=r,this.spinner=a,this.helperService=l,this._location=o,this.fb=u,this.subscriptions=[],this.time={},this.engagement_id="",this.active_date=new Date,this.todatDate=new Date,this.days=["S","M","T","W","T","F","S"],this.days_name=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],this.available_date=[],this.new_time_array=[],this.set_active=0,this.startElement=0,this.pageNumber=0,this.endElement=7,this.status="add",this.from_time="",this.advisorDetails=[],this.advisorBiography="",this.totalcount=!1,this.to_time="1:0:0",this.already_added_times=[],this.submitted=!1,this.meridian=!0,this.timeCheckStatus=!1,this.compliance_status="",this.advisorAvailabilities=null,this.advisorscheduleappointment=new ue.gE({add_note:new ue.MJ(""),clicked_id:new ue.MJ("",[ue.k0.required])}),this.timeadd=u.group({times:u.array([this.initTime()])}),this.times=this.timeadd.controls.times,localStorage.setItem("page_title","Schedule Engagement"),this.commonService.changePageTitleFunction(1)}initTime(){return this.fb.group({from_date:["",ue.k0.required]})}destroySelectDateSwiper(){this.selectDateSwiper?.destroy?.(!0,!0),this.selectDateSwiper=null}ngOnDestroy(){this.destroySelectDateSwiper(),this.subscriptions.forEach(t=>t.unsubscribe()),this.subscriptions=[]}ngOnInit(){this.user_type=localStorage.getItem("user_type"),this.user_id=localStorage.getItem("user_id"),this.url=Pe.c.media_url,this.to_hour2="HH",this.to_min="MM",this.am_pm="AM",this.commonService.createClientProjectFired=!1,this.project_id=+atob(this.router.snapshot.paramMap.get("project_id")),this.advisor_id=+atob(this.router.snapshot.paramMap.get("advisor_id")),this.router.snapshot.paramMap.get("slot_id")&&(this.engagement_id=+atob(this.router.snapshot.paramMap.get("slot_id"))),this.actived_date=this.active_date.getFullYear()+"-"+("0"+(this.active_date.getMonth()+1)).slice(-2)+"-"+("0"+this.active_date.getDate()).slice(-2)+" "+this.active_date.getHours()+":"+this.active_date.getMinutes()+":"+this.active_date.getSeconds(),this.now_actived_date=ve()(this.active_date).format("MMM DD YYYY"),this.active_day_name=this.days_name[this.active_date.getDay()];for(let a=0;a<30;a++){const l=new Date;l.setDate(this.todatDate.getDate()+a);const o={day:this.days[l.getDay()],date_no:l.getDate(),available:0};this.available_date.push(o)}this.active_day_name=this.days_name[this.todatDate.getDay()],this.advisor_id=+atob(this.router.snapshot.paramMap.get("advisor_id"));const t=this.active_date.getFullYear()+"-"+("0"+(this.active_date.getMonth()+1)).slice(-2)+"-"+("0"+this.active_date.getDate()).slice(-2);this.actived_date=this.active_date.getFullYear()+"-"+("0"+(this.active_date.getMonth()+1)).slice(-2)+"-"+("0"+this.active_date.getDate()).slice(-2)+" "+this.active_date.getHours()+":"+this.active_date.getMinutes()+":"+this.active_date.getSeconds(),this.now_actived_date=ve()(this.active_date).format("MMM DD YYYY");let s=t+" 00:00:00";s=ve()(s).utc().format("YYYY-MM-DD HH:mm:ss");let r=t+" 23:59:59";r=ve()(r).utc().format("YYYY-MM-DD HH:mm:ss"),this.showActiveTime(s,r),this.checkAvilableSlot(),this.getComplianceStatus()}getComplianceStatus(){this.commonService.getAPICallForNode({url:"/api/advisor/details/?advisor_id="+this.advisor_id+"&project_id="+this.project_id}).subscribe({next:t=>{this.compliance_status=t.data?.submitted_data?.[0]?.compliance_status??"",this.advisorAvailabilities=t.data?.advisor_availabilities??[]},error:()=>{this.compliance_status="",this.advisorAvailabilities=[]}})}get scheduleBlockedReason(){return"pending"===this.compliance_status?"Unable to Schedule - Pending Compliance Approval":"rejected"===this.compliance_status?"Unable to Schedule - Compliance Rejected":""}buildDateRanges(t){const s="YYYY-MM-DD HH:mm:ss",r=[];for(let a=0;a<t;a++){const l=new Date;l.setDate(this.todatDate.getDate()+a);const o=l.getFullYear(),u=l.getMonth(),p=l.getDate();r.push({date:ve()(new Date(o,u,p)).format("YYYY-MM-DD"),start_time:ve()(new Date(o,u,p,0,0,0)).utc().format(s),end_time:ve()(new Date(o,u,p,23,59,59)).utc().format(s)})}return r}showActiveTime(t,s){const r=this.buildDateRanges(31),a={advisor_id:this.advisor_id,active_start_date:new Date(t).toISOString(),active_end_date:new Date(s).toISOString(),dates:r};this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/advisor/advisor-time-availability",data:a}).subscribe({next:l=>{if(this.spinner.hide(),this.available_date=[],this.result_dates=l.result_available,0==this.result_dates.length)for(let o=1;o<=4;o++){const u=new Date,p=new Date(u.getFullYear(),u.getMonth()+o,0
1);let _=p.getDate(),g=u.getDate(),C=new Date;1!==o&&(g=0,C=p),4==o&&(_=(new Date).getDate());for(let f=g;f<_;f++){1!==o&&(C=new Date(p.getFullYear(),p.getMonth()+1,0)),C.setDate(f);const x={day:this.days[C.getDay()],date_no:C.getDate(),available:0};this.available_date.push(x)}}else{for(let o=1;o<=4;o++){const u=new Date,p=new Date(u.getFullYear(),u.getMonth()+o,0);let _=p.getDate(),g=u.getDate(),C=new Date;1!==o&&(g=0,C=new Date(p.getFullYear(),p.getMonth()+1,0)),4==o&&(_=(new Date).getDate());for(let f=g;f<_;f++){let x=0,y={};1!==o&&(C=new Date(p.getFullYear(),p.getMonth()+1,0)),C.setDate(f);const D=C.getFullYear()+"-"+("0"+(C.getMonth()+1)).slice(-2)+"-"+("0"+C.getDate()).slice(-2);for(let h=0;h<this.result_dates.length;h++)this.result_dates[h].date==D&&(x=this.result_dates[h].available_count);y=0==x?{day:this.days[C.getDay()],date_no:C.getDate(),available:0}:{day:this.days[C.getDay()],date_no:C.getDate(),available:x},this.available_date.push(y)}}setTimeout(()=>{this.destroySelectDateSwiper(),this.selectDateSwiper=new Swiper(".swiper",{slidesPerView:7,spaceBetween:20,slidesPerGroup:7,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{320:{slidesPerView:2,slidesPerGroup:2},420:{slidesPerView:3,slidesPerGroup:3},576:{slidesPerView:5,slidesPerGroup:5},768:{slidesPerView:7,slidesPerGroup:7}}})},200)}for(let o=0;o<l.advisor_available_time.length;o++){let u=ve().utc(l.advisor_available_time[o].from_time).toDate();l.advisor_available_time[o].from_time=ve()(u).local().format("YYYY-MM-DD HH:mm:ss"),u=ve().utc(l.advisor_available_time[o].to_time).toDate(),l.advisor_available_time[o].to_time=ve()(u).local().format("YYYY-MM-DD HH:mm:ss")}this.already_added_times=l.advisor_available_time,this.advisorDetails=l.advisor_details,this.advisorBiography=l.advisor_details.advisordetail.biography,this.currentOrganization=null!=l.current_organization?l.current_organization.organization:"",this.totalcount=!1;for(let o=0;o<this.already_added_times.length;o++)this.already_added_times[o].fromdb="yes";this.firstimecount=this.already_added_times.length},error:l=>{this.spinner.hide(),this.helperService.showError(l.error.message||"Something went wrong")}})}trackBySlotId(t,s){return s.id}get f(){return this.advisorscheduleappointment.controls}decreasePage(){this.pageNumber&&(this.pageNumber-=1,this.endElement=this.startElement,this.startElement-=7,this.changeActiveDate(this.startElement))}increasePage(){this.available_date.length>=this.endElement&&(this.pageNumber+=1,this.startElement=this.endElement,this.endElement+=7,this.changeActiveDate(this.startElement))}changeActiveDate(t){this.set_active=0!=t&&t%7==0?0:t;const s=this.startElement+this.set_active,r=new Date;r.setDate(r.getDate()+s),this.active_date=r,this.active_day_name=this.days_name[this.active_date.getDay()],this.timeadd.reset();const a=this.active_date.getFullYear()+"-"+("0"+(this.active_date.getMonth()+1)).slice(-2)+"-"+("0"+this.active_date.getDate()).slice(-2);this.actived_date=this.active_date.getFullYear()+"-"+("0"+(this.active_date.getMonth()+1)).slice(-2)+"-"+("0"+this.active_date.getDate()).slice(-2)+" "+this.active_date.getHours()+":"+this.active_date.getMinutes()+":"+this.active_date.getSeconds(),this.now_actived_date=ve()(this.active_date).format("MMM DD YYYY"),this.showActiveTime(a+" 00:00:00",a+" 23:59:59"),this.time={},this.to_hour2="HH",this.to_min="MM",this.am_pm="AM",this.checkTime(this.time),this.checkAvilableSlot()}checkTime(t){null==t||typeof t.hour>"u"||typeof t.minute>"u"?(this.to_hour2="HH",this.to_min="MM",this.am_pm="AM"):(this.to_hour=t.hour+1,24==this.to_hour&&(this.to_hour=0,this.timeCheckStatus=!0),this.to_hour2=this.to_hour>12?this.to_hour-12:12==this.to_hour?12:("0"+this.to_hour).slice(-2),this.to_hour=("0"+this.to_hour).slice(-2),this.to_min=("0"+t.minute).slice(-2),this.to_time=this.to_hour+":"+this.to_min+":00",this.am_pm=this.to_hour>=12?"PM":"AM",t.hour>=23&&t.minute>=0&&(fe().fire("Opps","Sorry You can't select this time","error"),this.time="",this.to_hour2="HH",this.to_min="MM",this.am_pm="AM"))}checkAvilableSlot(){const t=this.buildDateRanges(30);this.new_time_array=[],this.available_date=[],this.advisorscheduleappointment.reset(),this.clickedId=0,this.advisorscheduleappointment.get("clicked_id").setValue(0);const s=this.active_date.getFullYear()+"-"+("0"+(this.active_date.getMonth()+1)).slice(-2)+"-"+("0"+this.active_date.getDate()).slice(-2),r=s+" 00:00:00",a=s+" 23:59:59";this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/engagement/client-advisor-availability",data:{advisor_id:this.advisor_id,activated_start_date:new Date(r).toISOString(),activated_end_date:new Date(a).toISOString(),project_id:this.project_id,dates:t}}).subscribe({next:o=>{if(this.spinner.hide(),this.new_time_array=o.data,this.avilableSlot=o.available_slot,this.advisor_save=o.advisor_save,this.advisorName=o.advisor_name_details.name,this.advisor_email=o.advisor_name_details.email,this.advisorNameInitial=this.advisorName.charAt(0),this.project_name=o.project_name,this.biography=o.advisor_name_details.advisordetail.biography,this.profile_image=o.advisor_name_details.advisordetail.profileimage,this.currentOrganization=o.advisor_name_details.advisorcareers.length?o.advisor_name_details.advisorcareers[0].organization:"",this.available_date=[],this.result_dates=o.result_available,0==this.result_dates.length)for(let u=1;u<=4;u++){const p=new Date,_=new Date(p.getFullYear(),p.getMonth()+u,0);let g=_.getDate(),C=p.getDate(),f=new Date;1!==u&&(C=0,f=_),4==u&&p.getDate()<g&&(g=p.getDate(),g+=1);for(let x=C;x<g;x++){1!==u&&(f=new Date(_.getFullYear(),_.getMonth()+1,0)),f.setDate(x);const y={day:this.days[f.getDay()],date_no:f.getDate(),available:0};this.available_date.push(y)}}else{for(let u=1;u<=4;u++){const p=new Date,_=new Date(p.getFullYear(),p.getMonth()+u,0);let g=_.getDate(),C=p.getDate(),f=new Date;1!==u&&(C=0,f=_),4==u&&(g=(new Date).getDate());for(let x=C;x<g;x++){1!==u&&(f=new Date(_.getFullYear(),_.getMonth()+1,0)),f.setDate(x);let y=0,D={};const h=f.getFullYear()+"-"+("0"+(f.getMonth()+1)).slice(-2)+"-"+("0"+f.getDate()).slice(-2);for(let k=0;k<this.result_dates.length;k++)this.result_dates[k].date==h&&(y=this.result_dates[k].available_count);D=0==y?{day:this.days[f.getDay()],date_no:f.getDate(),available:0}:{day:this.days[f.getDay()],date_no:f.getDate(),available:y},this.available_date.push(D)}}setTimeout(()=>{this.destroySelectDateSwiper(),this.selectDateSwiper=new Swiper(".schedule-selectDate-swiper",{slidesPerView:7,spaceBetween:20,slidesPerGroup:7,navigation:{nextEl:".schedule-selectDate-swiper-wrap .swiper-button-next",prevEl:".schedule-selectDate-swiper-wrap .swiper-button-prev"},breakpoints:{320:{slidesPerView:2,slidesPerGroup:2},420:{slidesPerView:3,slidesPerGroup:3},576:{slidesPerView:5,slidesPerGroup:5},768:{slidesPerView:7,slidesPerGroup:7}}})},200)}},error:o=>{this.spinner.hide(),this.helperService.showError(o.error.message||"Something went wrong")}})}addMore(t){this.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone;const s=new Date,r=s.getFullYear()+"-"+("0"+(s.getMonth()+1)).slice(-2)+"-"+("0"+s.getDate()).slice(-2),a=60*s.getHours()+s.getMinutes(),l=this.active_date.getFullYear();let o=this.active_date.getMonth()+1,u=this.active_date.getDate();1==u.toString().length&&(u="0"+u);let p=this.active_date.getFullYear()+"-"+("0"+(this.active_date.getMonth()+1)).slice(-2)+"-"+("0"+this.active_date.getDate()).slice(-2);if(this.from_time=t.hour+":"+t.minute+":0",this.convert_from_time=60*t.hour+t.minute,typeof t.hour>"u"||"undefined"==t.hour||typeof t.minute>"u"||"undefined"==t.minute)return!1;if(r==p&&a>=this.convert_from_time)return fe().fire("Opps","From time should be greater than current time","error"),!1;1==o.toString().length&&(o="0"+o);let _="";if(1==this.timeCheckStatus&&(_=l+"-"+o+"-"+(+u+1)),p=l+"-"+o+"-"+u,1==t.minute.toString().length&&(t.minute="0"+t.minute),1==t.hour.toString().length&&(t.hour="0"+t.hour),this.from_time=t.hour+":"+t.minute+":00",this.from_date_time=p+" "+this.from_time,this.to_date_time=1==this.timeCheckStatus?_+" "+this.to_time:p+" "+this.to_time,this.from_date_time==this.to_date_time)return!1;"add"==this.status?this.checkTimerangeValidity(this.from_date_time,this.to_date_time,this.status):"edit"==this.status&&this.checkTimerangeValidity(this.from_date_time,this.to_date_time,this.editObjIndex)}checkTimerangeValidity(t,s,r){s=s.replace(/\s/,"T"),t=t.replace(/\s/,"T");const a=new Date(t).getTime();let l,o;const u=this.already_added_times;this.tempAppointment=[];const p={from_time:t,to_time:s,fromdb:"no",scheduled:0};let _=!1;for(let g=0;g<u.length;
1g++)if(l=u[g].from_time,o=u[g].to_time,l=new Date(l).getTime(),o=new Date(o).getTime(),Math.min(a,a)<=Math.max(l,o)&&Math.max(a,a)>=Math.min(l,o)&&("edit"==this.status&&g==r||(_=!0)),1==_)return fe().fire("Opps","Time already taken","error"),this.time="",this.to_hour2="HH",this.to_min="MM",this.am_pm="AM",!1;0==_&&"add"==this.status?this.already_added_times.push(p):0==_&&"edit"==this.status&&(this.already_added_times[r].from_time=t,this.already_added_times[r].to_time=s),this.time="",this.to_hour2="HH",this.to_min="MM",this.am_pm="AM",this.status="add",this.totalcount=!0}removeBooking(t){this.timeCheckStatus=!1,this.already_added_times.splice(t,1);let s=0,r=0;for(let a=0;a<this.already_added_times.length;a++)"yes"==this.already_added_times[a].fromdb?s++:r++;this.totalcount=this.firstimecount!=s||0!=r}editTime(t,s,r){const a=new Date(t),l=a.getHours(),o=a.getMinutes(),u=new Date(s);let p=u.getHours();const _=u.getMinutes();p>12&&(p-=12,this.am_pm="PM"),this.time={hour:l,minute:o},this.to_hour2=("0"+p).slice(-2),this.to_min=("0"+_).slice(-2),this.editObjIndex=r,this.status="edit"}onSubmitTime(t){this.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone;const s=new Date,r=s.getFullYear()+"-"+("0"+(s.getMonth()+1)).slice(-2)+"-"+("0"+s.getDate()).slice(-2),a=60*s.getHours()+s.getMinutes(),l=this.active_date.getFullYear()+"-"+("0"+(this.active_date.getMonth()+1)).slice(-2)+"-"+("0"+this.active_date.getDate()).slice(-2);let o=l+" 00:00:00";o=ve()(o).utc().format("YYYY-MM-DD HH:mm:ss");let u=l+" 23:59:59";if(u=ve()(u).utc().format("YYYY-MM-DD HH:mm:ss"),this.from_time=t.times[0].from_date.hour+":"+t.times[0].from_date.minute+":"+t.times[0].from_date.second,this.convert_from_time=60*t.times[0].from_date.hour+t.times[0].from_date.minute,r==l&&a>=this.convert_from_time)return fe().fire("Opps","From time should be greater than current time","error"),!1;this.from_date_time=l+" "+this.from_time,this.to_date_time=l+" "+this.to_time,this.submitted=!0;let p=[],_="",g="";for(let f=0;f<this.already_added_times.length;f++){let x=ve()(this.already_added_times[f].from_time).toDate();_=l+" "+ve()(x).format("HH:mm:ss"),this.already_added_times[f].from_time=ve()(_).utc().format("YYYY-MM-DD HH:mm:ss"),x=ve()(this.already_added_times[f].to_time).toDate(),g=l+" "+ve()(x).format("HH:mm:ss"),this.already_added_times[f].to_time=ve()(g).utc().format("YYYY-MM-DD HH:mm:ss")}p=this.already_added_times,this.spinner.show(),this.commonService.postAPICallForNode({url:"/api/advisor/save-time-slot",data:{advisor_id:this.advisor_id,project_id:this.project_id,current_start_date:o,current_end_date:u,times:p,time_zone:this.timeZone}}).subscribe({next:f=>{this.spinner.hide(),this.helperService.showSuccess(f.msg||"Advisor's availability added successfully");for(let x=0;x<this.already_added_times.length;x++)this.already_added_times[x].fromdb="yes";for(let x=0;x<this.already_added_times.length;x++){const y=ve().utc(this.already_added_times[x].from_time).toDate();this.already_added_times[x].from_time=ve()(y).local().format("YYYY-MM-DD HH:mm:ss");const D=ve().utc(this.already_added_times[x].to_time).toDate();this.already_added_times[x].to_time=ve()(D).local().format("YYYY-MM-DD HH:mm:ss")}this.firstimecount=this.already_added_times.length,this.totalcount=!1,this.checkAvilableSlot()},error:f=>{this.spinner.hide(),this.helperService.showError(f.error.message||"Something went wrong")}})}checkActive(t,s){null!=t.target.querySelector(".timeSlot-box")||(this.clickedId=s,this.advisorscheduleappointment.patchValue({clicked_id:this.clickedId}))}backCLicked(){this._location.back()}errorHandler(){this.profile_image=""}onSubmitV2(t){var s=this;return(0,xs.A)(function*(){if(t.some(a=>(a.time||[]).some(l=>"Client Scheduling"===l.type))&&s.scheduleBlockedReason)fe().fire("Oops",s.scheduleBlockedReason,"warning");else{s.spinner.show();try{s.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone;let a=!1;const l=[];t.forEach(f=>{f.date&&f.time.forEach(x=>{"Client Scheduling"===x.type&&(a=!0,l.push({from:ve()(x.from_time).utc().toISOString(),to:ve()(x.to_time).utc().toISOString()}))})});const o=t.filter(f=>f.date).map(f=>({startDateUTC:ve()(f.date+" 00:00:00").utc().format("YYYY-MM-DD HH:mm:ss"),endDateUTC:ve()(f.date+" 23:59:59").utc().format("YYYY-MM-DD HH:mm:ss"),times:f.time.map(h=>({...h,from_time:ve()(h.from_time).utc().format("YYYY-MM-DD HH:mm:ss"),to_time:ve()(h.to_time).utc().format("YYYY-MM-DD HH:mm:ss")})),ref:f}));for(const f of o){const x={advisor_id:s.advisor_id,project_id:"",current_start_date:f.startDateUTC,current_end_date:f.endDateUTC,times:f.times,time_zone:s.timeZone},y=yield s.commonService.postAPICallForNode({url:"/api/advisor/save-time-slot",data:x}).toPromise();if(200!==y.status)return void fe().fire("Oops",y.msg||"Failed to save slots","error");f.ref.time.forEach(D=>{D.fromdb="yes",D.from_time=ve().utc(D.from_time).local().format("YYYY-MM-DD HH:mm:ss"),D.to_time=ve().utc(D.to_time).local().format("YYYY-MM-DD HH:mm:ss")})}if(fe().fire("Success","Your availability submitted successfully","success"),!a)return s.spinner.hide(),void location.reload();const u=o.map(f=>new Date(f.ref.date)),p=new Date(Math.min(...u.map(f=>f.getTime()))),_=new Date(Math.max(...u.map(f=>f.getTime())));_.setDate(_.getDate()+1),_.setHours(23,59,59);const g=yield s.commonService.postAPICallForNode({url:"/api/engagement/client-advisor-availability",data:{advisor_id:s.advisor_id,activated_start_date:p.toISOString(),activated_end_date:_.toISOString(),project_id:s.project_id,dates:[]}}).toPromise();s.new_time_array=g.data||[];const C=s.new_time_array.filter(f=>{const x=ve()(f.fromTime),y=ve()(f.toTime);return l.some(D=>{const h=ve()(D.from),k=ve()(D.to);return x.isSame(h)&&y.isSame(k)})});for(const f of C){const x=yield s.commonService.postAPICallForNewBackend({url:"/api/engagement/client-bridger-request-engagement",data:{note:"",availability_id:f.id,advisor_id:s.advisor_id,project_id:s.project_id,engagement_id:s.engagement_id}}).toPromise();if(200!==x.status)return void fe().fire("Oops",x.msg,"error")}s.checkAvilableSlot(),s.route.navigate(["/user/engagements/appointment-list"])}catch(a){console.error(a),s.helperService.showError(a?.error?.message||"Something went wrong")}finally{s.spinner.hide()}}})()}onSubmit(){const t={note:"",availability_id:this.advisorscheduleappointment.value.clicked_id,advisor_id:this.advisor_id,project_id:this.project_id,engagement_id:this.engagement_id};this.spinner.show(),this.subscriptions.push(this.commonService.postAPICallForNewBackend({url:"/api/engagement/client-bridger-request-engagement",data:t}).subscribe(s=>{this.spinner.hide(),200==s.status?(fe().fire("Success",s.msg,"success"),this.checkAvilableSlot(),this.route.navigate(["/user/engagements/appointment-list"])):(fe().fire("Opps",s.msg,"error"),"Please Select Interested then you can continue to schedule on this profile."==s.msg&&this.route.navigate(["user/client-project-profile/details/"+this.router.snapshot.paramMap.get("project_id")+"/"+this.router.snapshot.paramMap.get("advisor_id")]))},s=>{this.spinner.hide(),this.helperService.showError(s.error.message)}))}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(Ve.h),e.rXU(Ne.nX),e.rXU(Ne.Ix),e.rXU(_t.ex),e.rXU(gt.w),e.rXU(ke.aZ),e.rXU(ue.ok))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-appointment-schedule"]],decls:45,vars:9,consts:[[1,"animated","fadeIn"],[1,"main-content-wrap"],[1,"main-content-container"],[1,"main-heading-wrap","w-full","flex","items-center","justify-between","pb-3"],[1,"flex","items-center","btn-holder","leftSide-btn-holder","flex-shrink-0"],[1,"back-btn","flex-shrink-0","mr-2",3,"click"],["name","arrow-left"],[1,"row"],[1,"col-xl-12"],[1,"card","custom-card","schedule-aProfile-card"],[1,"card-body"],[1,"custom-card-content","w-full"],[1,"col-md-4","col-lg-3","left-col"],[1,"media","pProfile-media","items-center"],[1,"pProfile-img","mr-3","flex-shrink-0",2,"width","60px","height","60px","min-width","60px","min-height","60px"],["width","60","height","60","loading","eager","style","width: 60px; height: 60px; object-fit: cover; aspect-ratio: 1/1;",3,"src","error",4,"ngIf"],["class","prof_text","style","width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;",4,"ngIf"],[1,"media-body","flex","items-center","justify-between"],[1,"flex","flex-col"],[3,"routerLink",4,"ngIf"],[1,"infoText","infoText2"],[1,"col-md-8","col-lg-9","right-col","mt-3","mt-md-0","items-center"],[1,"aProfile-dsc-block"],[1,"headingText"],[1,"dscText"],[1,"",3,"innerHTML"],[1,"card","custom-card","schedule-selectDate-card"],[1,"custom-card-heading","mb-2"],[1,"custom-card-content"],[1,"dsc-text"],[3,"submitClicked","advisorId","scheduleBlockedReason","availabilities"],["width","60","height","60","loading","eager",2,"width","60px","height","60px","object-fit","cover","aspect-ratio","1/1",3,"error","src"],[1,"prof_text",2,"width","60px","height","60px","display","flex","align-items","center","justify-content","center"],[3,"routerLink"]],template:function(s,r){1&s&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"a",5),e.bIt("click",function(){return r.backCLicked()}),e.nrm(6,"ui-icon",6),e.k0s()()(),e.j41(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"div",11)(12,"div",7)(13,"div",12)(14,"div",13)(15,"div",14),e.DNE(16,Pw,1,3,"img",15)(17,Ow,2,1,"span",16),e.k0s(),e.j41(18,"div",17)(19,"div",18),e.DNE(20,Fw,4,8,"a",19)(21,Nw,3,5,"a",19),e.j41(22,"div",20),e.EFF(23),e.k0s()()()()(),e.j41(24,"div",21)(25,"div",22)(26,"div",23),e.
1EFF(27,"Profile Overview"),e.k0s(),e.j41(28,"div",24),e.nrm(29,"p",25),e.k0s()()()()()()(),e.qex(30),e.j41(31,"div",26)(32,"div",10)(33,"div",27)(34,"h4",23),e.EFF(35,"Select Bookings"),e.k0s()(),e.j41(36,"div",28)(37,"div",29)(38,"p"),e.EFF(39,"Please select any 1 hour time slot within any given availabilities."),e.nrm(40,"br"),e.EFF(41," If there are no blue availability slots open, then the advisor has none availabile. "),e.nrm(42,"br"),e.EFF(43," After selecting your desired slots, press the Submit button to book!"),e.k0s()()(),e.j41(44,"app-engagment-drag-comp",30),e.bIt("submitClicked",function(l){return r.onSubmitV2(l)}),e.k0s()()(),e.bVm(),e.k0s()()()()()),2&s&&(e.R7$(16),e.Y8G("ngIf",""!=r.profile_image),e.R7$(),e.Y8G("ngIf",""==r.profile_image),e.R7$(3),e.Y8G("ngIf",2==r.user_type),e.R7$(),e.Y8G("ngIf",2!=r.user_type),e.R7$(2),e.JRh(r.currentOrganization),e.R7$(6),e.Y8G("innerHTML",r.biography,e.npT),e.R7$(15),e.Y8G("advisorId",r.advisor_id)("scheduleBlockedReason",r.scheduleBlockedReason)("availabilities",r.advisorAvailabilities))},dependencies:[at.H,ke.bT,Ne.Wk,Rw,je.DH],styles:[".date-content-wrap[_ngcontent-%COMP%]   .date-content[_ngcontent-%COMP%]{max-width:750px;margin:0 auto}.timeSlot-content-wrap[_ngcontent-%COMP%]{max-width:750px;margin:0 auto}.timeSlot-content-wrap[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{text-align:center}.timeSlot-content-wrap[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:var(--text-primary, #2b2b2b);font-size:15px;font-weight:500}.timeSlot-content-wrap[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--text-secondary, #6a6a6a);font-size:13px;font-weight:500}.timeSlot-box[_ngcontent-%COMP%]{padding:15px;background-color:var(--bg-surface, #f6fbff);border-radius:6px;cursor:pointer;margin-bottom:20px;transition:all .5s ease-in-out}.timeSlot-box[_ngcontent-%COMP%]:hover{box-shadow:0 1px 20px #0000001a}.timeSlot-box.booked[_ngcontent-%COMP%]{opacity:.4;cursor:default;pointer-events:none}.timeSlot-box.selected[_ngcontent-%COMP%]{background-color:#5ccf38;box-shadow:0 1px 26px #0003}.timeSlot-box.selected[_ngcontent-%COMP%]:hover{box-shadow:0 1px 26px #0003}.timeSlot-box.selected[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .timeSlot-box.selected[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%], .timeSlot-box.selected[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{color:#fff}.timeSlot-box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--text-muted, #838282);font-weight:500;font-size:12px}.timeSlot-box[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%], .timeSlot-box[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{color:var(--text-primary, #474747);font-weight:500;font-size:16px}.note-form-wrap[_ngcontent-%COMP%]{max-width:750px;margin:20px auto 0}.project-list-block.project-dsc-block[_ngcontent-%COMP%]{font-size:12px;line-height:20px;border-left:1px solid var(--border-color, #edf3f7);padding-left:30px}.note-form-wrap[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:100px}.screening-heading-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:35px;color:var(--text-primary, #000);font-weight:300;margin-bottom:20px}.screening-heading-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500}.screening-heading-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--text-primary, #2a2a2a);font-size:22px;font-weight:300}textarea.form-control[_ngcontent-%COMP%]{height:100px}.screening-content-wrap[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.screening-content-wrap[_ngcontent-%COMP%]   .logo-holder[_ngcontent-%COMP%]{margin:0 auto 50px;width:180px}.screening-content-wrap[_ngcontent-%COMP%]   .logo-holder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.screening-form-content[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin-bottom:30px}.screening-form-content[_ngcontent-%COMP%]   .form-control-label[_ngcontent-%COMP%]{color:var(--text-secondary, #494949);font-weight:500;font-size:17px}.screening-topform-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:700;color:var(--text-secondary, #5b646b);text-transform:uppercase;font-size:20px;margin-bottom:5px}.screening-topform-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}.screening-topform-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:var(--text-secondary, #5b5b5b);font-size:14px;font-weight:500;display:inline-block;margin-right:8px;padding-left:10px;border-left:1px solid var(--border-color, #8c8c8c);line-height:14px}.screening-topform-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child{border-left:none;padding-left:0;margin-left:0}.screening-topform-content[_ngcontent-%COMP%], .screening-form-content[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{margin-bottom:25px}.screening-form-content[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:20px;color:var(--text-primary, #2a2a2a);font-weight:700;margin-bottom:5px}.screening-form-content[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:var(--text-secondary, #6a6a6a);font-weight:500;margin-bottom:0}.date-content-wrap[_ngcontent-%COMP%]{margin-bottom:40px}.date-content-wrap[_ngcontent-%COMP%]   .date-content-container[_ngcontent-%COMP%]{padding:0 40px;position:relative;display:inline-block}.date-content-wrap[_ngcontent-%COMP%]   .date-content-container[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{background-color:var(--bg-input, #edf3f7);font-size:22px;position:absolute;top:50%;transform:translateY(-50%);color:var(--text-secondary, #6e6e6e);width:40px;height:40px;text-align:center;border-radius:100%;line-height:40px;cursor:pointer;margin-top:16px;transition:all .3s ease-in-out}.date-content-wrap[_ngcontent-%COMP%]   .date-content-container[_ngcontent-%COMP%]   .arrow-icon.right-icon[_ngcontent-%COMP%]{right:0}.date-content-wrap[_ngcontent-%COMP%]   .date-content-container[_ngcontent-%COMP%]   .arrow-icon.left-icon[_ngcontent-%COMP%]{left:0}.date-content-wrap[_ngcontent-%COMP%]   .date-content-container[_ngcontent-%COMP%]   .arrow-icon.deActive[_ngcontent-%COMP%]{cursor:default;pointer-events:none;opacity:.4}.date-content-wrap[_ngcontent-%COMP%]   .date-content-container[_ngcontent-%COMP%]   .arrow-icon.active[_ngcontent-%COMP%], .date-content-wrap[_ngcontent-%COMP%]   .date-content-container[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%]:hover{background-color:#fc0;color:#000}.date-content-wrap[_ngcontent-%COMP%]   .date-content[_ngcontent-%COMP%]{margin:0 auto}.date-content-wrap[_ngcontent-%COMP%]   .date-block[_ngcontent-%COMP%]{padding:0 20px;text-align:center;cursor:pointer}.date-content-wrap[_ngcontent-%COMP%]   .date-block.disable[_ngcontent-%COMP%]{pointer-events:none}.date-content-wrap[_ngcontent-%COMP%]   .day-text[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:var(--text-muted, #c4c4c4);margin-bottom:8px}.date-content-wrap[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]{font-weight:700;font-size:20px;color:var(--text-secondary, #6e6e6e);width:50px;height:50px;border-radius:100%;background-color:var(--bg-input, #edf3f7);line-height:50px}.date-content-wrap[_ngcontent-%COMP%]   .current-date[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]{background-color:#fc0;color:#000}
1.date-circle[_ngcontent-%COMP%]{font-weight:700;font-size:20px;width:50px;height:50px;border-radius:100%;background-color:#beea8c;color:var(--text-primary, #000);line-height:50px;margin:0 auto}.current-date[_ngcontent-%COMP%]   .date-circle[_ngcontent-%COMP%]{background-color:#fc0}.pProfile-img[_ngcontent-%COMP%]{width:60px;height:60px;min-width:60px;min-height:60px}.pProfile-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60px;height:60px;object-fit:cover;aspect-ratio:1/1}.pProfile-img[_ngcontent-%COMP%]   .prof_text[_ngcontent-%COMP%]{width:60px;height:60px;display:flex;align-items:center;justify-content:center}"]})}}return i})();function Mw(i,n){if(1&i&&e.nrm(0,"img",39),2&i){const t=e.XpG();e.FCK("src","",t.url,"advisor_image/",null==t.engagmentDetails?null:t.engagmentDetails.advisor.profileimage,"",e.B4B)}}function Lw(i,n){if(1&i&&(e.j41(0,"span",40),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.JRh(null==t.engagmentDetails?null:t.engagmentDetails.advisor.name.charAt(0))}}function jw(i,n){if(1&i&&(e.j41(0,"div",41),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",null==t.engagmentDetails?null:t.engagmentDetails.advisor.email," ")}}function Gw(i,n){if(1&i&&(e.j41(0,"div",41),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Lme(" (+",null==t.engagmentDetails?null:t.engagmentDetails.advisor.countryCode,")-",null==t.engagmentDetails?null:t.engagmentDetails.advisor.phoneno," ")}}function Bw(i,n){if(1&i&&(e.j41(0,"span",42),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.JRh(t.liveTotalLogicDuration)}}function Uw(i,n){if(1&i&&(e.j41(0,"span",42),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.JRh(t.liveDuration)}}function $w(i,n){if(1&i&&(e.j41(0,"div",48),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.live_duration," ")}}function zw(i,n){if(1&i&&(e.j41(0,"div",48),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.live_logic_duration," ")}}function Yw(i,n){1&i&&(e.j41(0,"div",48)(1,"p",52),e.EFF(2,"Completed"),e.k0s()())}function Hw(i,n){1&i&&(e.j41(0,"div",48)(1,"p",53),e.EFF(2,"Failed"),e.k0s()())}function Vw(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",48)(1,"a",54),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.changeCallStatusCompleted(r.call_sid))}),e.EFF(2,"Disconnect"),e.k0s()()}}function Xw(i,n){if(1&i&&(e.j41(0,"div",45)(1,"div",46)(2,"div",35)(3,"div",47),e.EFF(4," Time-Date "),e.k0s(),e.j41(5,"div",48),e.EFF(6),e.nI1(7,"customTimeFormat"),e.nrm(8,"br"),e.EFF(9),e.nI1(10,"customDateFormat"),e.k0s()(),e.j41(11,"div",36)(12,"div",47),e.EFF(13," Direction "),e.k0s(),e.j41(14,"p",49),e.EFF(15),e.k0s()(),e.j41(16,"div",36)(17,"div",47),e.EFF(18," From "),e.k0s(),e.j41(19,"p",50),e.EFF(20),e.k0s()(),e.j41(21,"div",36)(22,"div",47),e.EFF(23," To "),e.k0s(),e.j41(24,"p",48),e.EFF(25),e.k0s()(),e.j41(26,"div",36)(27,"div",47),e.EFF(28," Passcode Entered "),e.k0s(),e.j41(29,"p",48),e.EFF(30),e.k0s()(),e.j41(31,"div",36)(32,"div",47),e.EFF(33," Status "),e.k0s(),e.j41(34,"p",48),e.EFF(35),e.k0s()(),e.j41(36,"div",36)(37,"div",47),e.EFF(38," Duration "),e.k0s(),e.DNE(39,$w,2,1,"div",51)(40,zw,2,1,"div",51),e.k0s(),e.j41(41,"div",36)(42,"div",47),e.EFF(43," Action "),e.k0s(),e.DNE(44,Yw,3,0,"div",51)(45,Hw,3,0,"div",51)(46,Vw,3,0,"div",51),e.k0s()()()),2&i){const t=n.$implicit,s=e.XpG(2);e.R7$(6),e.SpI(" ",e.bMT(7,12,t.startTime),""),e.R7$(3),e.SpI(" ",e.bMT(10,14,t.startTime)," "),e.R7$(6),e.SpI(" ",t.direction," "),e.R7$(5),e.SpI(" ",t.from_number," "),e.R7$(5),e.SpI(" ",t.to_number," "),e.R7$(5),e.SpI(" ",t.passcode?t.passcode:"--"," "),e.R7$(5),e.SpI(" ",t.live_status," "),e.R7$(4),e.Y8G("ngIf","completed"==t.live_status),e.R7$(),e.Y8G("ngIf","completed"!=t.live_status),e.R7$(4),e.Y8G("ngIf","completed"==t.live_status),e.R7$(),e.Y8G("ngIf","failed"==t.live_status),e.R7$(),e.Y8G("ngIf","in-progress"==t.live_status&&(1==s.userType||7==s.userType||9==s.userType||10==s.userType))}}function Ww(i,n){if(1&i&&(e.j41(0,"div",43),e.DNE(1,Xw,47,16,"div",44),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.clientLogData)}}function qw(i,n){1&i&&(e.j41(0,"div",43)(1,"div",55)(2,"div",56)(3,"div",57),e.nrm(4,"img",58),e.k0s(),e.j41(5,"div",59),e.EFF(6,"No Data Found"),e.k0s()()()())}
1function Kw(i,n){if(1&i&&(e.j41(0,"div",48),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.live_duration," ")}}function Zw(i,n){if(1&i&&(e.j41(0,"div",48),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.live_logic_duration," ")}}function Jw(i,n){1&i&&(e.j41(0,"div",48)(1,"p",52),e.EFF(2,"Completed"),e.k0s()())}function Qw(i,n){1&i&&(e.j41(0,"div",48)(1,"p",53),e.EFF(2,"Failed"),e.k0s()())}function eb(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",48)(1,"a",60),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.changeCallStatusCompleted(r.call_sid))}),e.EFF(2,"Disconnect"),e.k0s()()}}function tb(i,n){if(1&i&&(e.j41(0,"div",45)(1,"div",46)(2,"div",35)(3,"div",47),e.EFF(4," Time-Date "),e.k0s(),e.j41(5,"div",48),e.EFF(6),e.nI1(7,"customTimeFormat"),e.nrm(8,"br"),e.EFF(9),e.nI1(10,"customDateFormat"),e.k0s()(),e.j41(11,"div",36)(12,"div",47),e.EFF(13," Direction "),e.k0s(),e.j41(14,"p",49),e.EFF(15),e.k0s()(),e.j41(16,"div",36)(17,"div",47),e.EFF(18," From "),e.k0s(),e.j41(19,"p",50),e.EFF(20),e.k0s()(),e.j41(21,"div",36)(22,"div",47),e.EFF(23," To "),e.k0s(),e.j41(24,"p",48),e.EFF(25),e.k0s()(),e.j41(26,"div",36)(27,"div",47),e.EFF(28," Status "),e.k0s(),e.j41(29,"p",48),e.EFF(30),e.k0s()(),e.j41(31,"div",36)(32,"div",47),e.EFF(33," Duration "),e.k0s(),e.DNE(34,Kw,2,1,"div",51)(35,Zw,2,1,"div",51),e.k0s(),e.j41(36,"div",36)(37,"div",47),e.EFF(38," Action "),e.k0s(),e.DNE(39,Jw,3,0,"div",51)(40,Qw,3,0,"div",51)(41,eb,3,0,"div",51),e.k0s()()()),2&i){const t=n.$implicit,s=e.XpG(2);e.R7$(6),e.SpI(" ",e.bMT(7,11,t.startTime),""),e.R7$(3),e.SpI(" ",e.bMT(10,13,t.startTime)," "),e.R7$(6),e.SpI(" ",t.direction," "),e.R7$(5),e.SpI(" ",t.from_number," "),e.R7$(5),e.SpI(" ",t.to_number," "),e.R7$(5),e.SpI(" ",t.live_status," "),e.R7$(4),e.Y8G("ngIf","completed"==t.live_status),e.R7$(),e.Y8G("ngIf","completed"!=t.live_status),e.R7$(4),e.Y8G("ngIf","completed"==t.live_status),e.R7$(),e.Y8G("ngIf","failed"==t.live_status),e.R7$(),e.Y8G("ngIf","in-progress"==t.live_status&&1==s.userType)}}function nb(i,n){if(1&i&&(e.j41(0,"div",43),e.DNE(1,tb,42,15,"div",44),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.advisorLogData)}}function ib(i,n){1&i&&(e.j41(0,"div",43)(1,"div",55)(2,"div",56)(3,"div",57),e.nrm(4,"img",58),e.k0s(),e.j41(5,"div",59),e.EFF(6,"No Data Found"),e.k0s()()()())}
1const rb=[{path:"",data:{title:"Appointment"},children:[{path:"appointment-list",component:gd,data:{title:"Appointment List"}},{path:"appointment-details/:engmnt_id",component:xw,data:{title:"Appointment Details"}},{path:"live-details/:engmnt_id",component:(()=>{class i{constructor(t,s,r,a,l,o,u,p,_,g){this.hostRef=t,this.dialog=s,this.commonService=r,this.datePipe=a,this.fb=l,this.helperService=o,this.spinner=u,this.router=p,this.route=_,this._location=g,this.id="",this.reg_class="",this.success_msg="",this.project="",this.siteuser="",this.clientcompany="",this.engagementsinfo="",this.data="",this.advisor="",this.advisorbiography="",this.url="",this.advisorcareer="",this.item_saved_status=0,this.status=0,this.autocompleteText="",this.validateText="",this.autocompleteData=[],this.added_cc_email=[],this.decline_note="",this.emailArray=[],this.emailList=[],this.filterEmailList=[],this.emailShow=!1,this.clientLogData=[],this.advisorLogData=[],this.liveCallDuration=0,this.liveCallStatus=!1,this.timeIntervalStatus=!0,this.userType=0,this.durationTicker=null,this.userType=localStorage.getItem("user_type"),this.url=Pe.c.media_url}ngOnInit(){this.id=+atob(this.route.snapshot.paramMap.get("engmnt_id")),this.live_log_details()}ngOnDestroy(){this.durationTicker&&(clearInterval(this.durationTicker),this.durationTicker=null)}live_log_details(){this.emailList=[],this.spinner.show();let t={};t={id:this.id},this.commonService.getAPICallForNode({url:"/api/engagement/live-log-details",data:t}).subscribe({next:s=>{this.status=1,this.clientLogData=s.clientData,this.advisorLogData=s.advisorData,this.dialno=s.dialno,this.dialnouk=s.dialnouk,this.passcode=s.passcode,this.liveDuration=s.liveDuration,this.liveCallDuration=s.liveTotalDuration,this.engagmentDetails=s.engagmentDetails,1==this.timeIntervalStatus&&(clearInterval(this.durationTicker??void 0),this.durationTicker=setInterval(()=>{if((0,Vn.M)(this.hostRef)){for(let r=0;r<this.clientLogData.length;r++)if("in-progress"==this.clientLogData[r].live_status){this.clientLogData[r].logic_duration=this.clientLogData[r].logic_duration+1;const a=Math.floor(this.clientLogData[r].logic_duration/3600),l=Math.floor(this.clientLogData[r].logic_duration/60%60),o=this.clientLogData[r].logic_duration%60;this.clientLogData[r].live_logic_duration=0!=a?a+" hr "+l+" min "+o+" sec":0!=l?l+" min "+o+" sec":o+" sec"}for(let r=0;r<this.advisorLogData.length;r++)if("in-progress"==this.advisorLogData[r].live_status){this.advisorLogData[r].logic_duration=this.advisorLogData[r].logic_duration+1;let a=Math.floor(this.advisorLogData[r].logic_duration/3600),l=Math.floor(this.advisorLogData[r].logic_duration/60%60),o=this.advisorLogData[r].logic_duration%60;this.advisorLogData[r].live_logic_duration=0!=a?a+" hr "+l+" min "+o+" sec":0!=l?l+" min "+o+" sec":o+" sec",this.liveCallStatus=!0,0==this.liveCallDuration?(this.liveCallDuration=this.advisorLogData[r].logic_duration+1,a=Math.floor(this.liveCallDuration/3600),l=Math.floor(this.liveCallDuration/60%60),o=this.liveCallDuration%60,this.liveTotalLogicDuration=0!=a?a+" hr "+l+" min "+o+" sec":0!=l?l+" min "+o+" sec":o+" sec"):(this.liveCallDuration=this.liveCallDuration+1,a=Math.floor(this.liveCallDuration/3600),l=Math.floor(this.liveCallDuration/60%60),o=this.liveCallDuration%60,this.liveTotalLogicDuration=0!=a?a+" hr "+l+" min "+o+" sec":0!=l?l+" min "+o+" sec":o+" sec")}}},1e3)),this.timeIntervalStatus=!1,setTimeout(()=>{this.spinner.hide()},2e3)},error:s=>{this.reg_class="alert alert-danger",this.success_msg=s.error.message||"Something went wrong, please try again later",this.status=0}})}changeCallStatusCompleted(t){this.spinner.show();let s={};s={callSid:t},this.commonService.postAPICallForNode({url:"/api/engagement/live-call-status-change-to-completed",data:s}).subscribe({next:r=>{this.spinner.hide(),fe().fire("Success",r.message,"success"),this.live_log_details()},error:r=>{this.spinner.hide(),fe().fire("OOPS!",r.message,"error")}})}backClicked(){this._location.back()}static{this.\u0275fac=function(s){return new(s||i)(e.rXU(e.aKT),e.rXU(Te.ef),e.rXU(Ve.h),e.rXU(ke.vh),e.rXU(ue.ok),e.rXU(gt.w),e.rXU(_t.ex),e.rXU(Ne.Ix),e.rXU(Ne.nX),e.rXU(ke.aZ))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-live-details"]],decls:129,vars:25,consts:[[1,"main-content-wrap"],[1,"main-content-container"],[1,"main-heading-wrap","w-full","flex","items-center","justify-between","pb-4"],[1,"flex","items-center","btn-holder","leftSide-btn-holder","w-full","flex-auto"],[1,"back-btn","shrink-0","mr-2",3,"click"],["name","back","label","Back"],[1,"row"],[1,"col-sm-12"],[1,"aProfile-card"],[1,"custom-card-content","sm:flex","items-center","justify-between"],[1,"aProfile-info-block"],[1,"nameText","mb-0"],[2,"font-size","12px"],[2,"font-size","14px","font-weight","bold"],[1,"aProfile-starInfo-block","sm:pl-2","mt-1","sm:mt-0"],[1,"content-holder","flex","items-center","sm:justify-end","justify-between","sm:text-right"],[1,"media","pProfile-media","items-center"],[1,"pProfile-img","mr-4",2,"width","50px","height","50px","min-width","50px","min-height","50px"],["width","50","height","50","loading","eager","style","width: 50px; height: 50px; object-fit: cover; aspect-ratio: 1/1;",3,"src",4,"ngIf"],["class","prof_text","style","width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;",4,"ngIf"],[1,"media-body","flex","items-center","justify-between"],[1,"flex","flex-col"],[1,"infoText","infoText1","mb
1-0",2,"cursor","pointer",3,"routerLink"],["class","infoText infoText2",4,"ngIf"],[1,"advisorDetail-card"],[1,"custom-card-heading","bottom-border","mb-2"],[1,"headingText"],[1,"col-md-6","mt-2"],[1,"liveDatail-dataInfo"],[1,"dataInfoText"],[1,"titleText"],["class","color-red",4,"ngIf"],[1,"comn_table-wrap"],[1,"comn_table"],[1,"comn_table-row","comn_table-row-header","hidden","lg:flex"],[1,"comn_table-cell","flex-grow-two"],[1,"comn_table-cell"],[1,"heading"],["class","comn_table-body",4,"ngIf"],["width","50","height","50","loading","eager",2,"width","50px","height","50px","object-fit","cover","aspect-ratio","1/1",3,"src"],[1,"prof_text",2,"width","50px","height","50px","display","flex","align-items","center","justify-content","center"],[1,"infoText","infoText2"],[1,"color-red"],[1,"comn_table-body"],["class","comn_table-row noHoverEffects",4,"ngFor","ngForOf"],[1,"comn_table-row","noHoverEffects"],[1,"list-content","lg:flex"],[1,"comn_table-cell-head","block","lg:hidden"],[1,"dataText"],[1,"dataText","emailText"],[1,"dataText","whitespace-nowrap"],["class","dataText",4,"ngIf"],[1,"statusText","greenText"],[1,"statusText","redText"],["mat-flat-button","","color","warn","href","javascript:void(0);",2,"color","#f5f5f5","background-color","#f50909","border","1px solid #ca0d0d","border-radius","50px","font-size","13px",3,"click"],[1,"noData-box"],[1,"noData-content"],[1,"icon-holder"],["src","assets/frontend/images/no-data-found.svg"],[1,"noData-text"],["mat-flat-button","","color","warn","href","javascript:void(0);",1,"advisor-disconnect",3,"click"]],template:function(s,r){1&s&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"a",4),e.bIt("click",function(){return r.backClicked()}),e.nrm(6,"ui-icon",5),e.k0s()()(),e.j41(7,"div",6)(8,"div",7)(9,"ui-card",8)(10,"div",9)(11,"div",10)(12,"h2",11)(13,"span"),e.EFF(14),e.k0s(),e.j41(15,"p",12),e.EFF(16),e.k0s(),e.j41(17,"p",13),e.EFF(18),e.k0s()()(),e.j41(19,"div",14)(20,"div",15)(21,"div",16)(22,"div",17),e.DNE(23,Mw,1,3,"img",18)(24,Lw,2,1,"span",19),e.k0s(),e.j41(25,"div",20)(26,"div",21)(27,"h5",22),e.nI1(28,"customIdEncode"),e.EFF(29),e.k0s(),e.DNE(30,jw,2,1,"div",23)(31,Gw,2,2,"div",23),e.k0s()()()()()()()()(),e.j41(32,"div",6)(33,"div",7)(34,"ui-card",24)(35,"div",25)(36,"h2",26),e.EFF(37,"Live Engagement Details"),e.k0s()(),e.j41(38,"div",6)(39,"div",27)(40,"div",28)(41,"p",13)(42,"span"),e.EFF(43),e.nrm(44,"br"),e.k0s(),e.EFF(45),e.nI1(46,"customDateTimeFormat"),e.k0s(),e.j41(47,"p",29)(48,"span",30),e.EFF(49),e.k0s(),e.EFF(50),e.k0s(),e.j41(51,"p",29)(52,"span",30),e.EFF(53,"Passcode:"),e.k0s(),e.EFF(54),e.k0s()()(),e.j41(55,"div",27)(56,"div",28)(57,"p",29)(58,"span",30),e.EFF(59,"Live Duration:"),e.k0s(),e.DNE(60,Bw,2,1,"span",31)(61,Uw,2,1,"span",31),e.k0s()()()()()()(),e.j41(62,"div",6)(63,"div",7)(64,"ui-card",24)(65,"div",25)(66,"h2",26),e.EFF(67,"Client - Log"),e.k0s()(),e.j41(68,"div",32)(69,"div",33)(70,"div",34)(71,"div",35)(72,"div",26),e.EFF(73,"Time-Date"),e.k0s()(),e.j41(74,"div",36)(75,"div",26),e.EFF(76,"Direction"),e.k0s()(),e.j41(77,"div",36)(78,"div",26),e.EFF(79,"From"),e.k0s()(),e.j41(80,"div",36)(81,"div",26),e.EFF(82,"To"),e.k0s()(),e.j41(83,"div",36)(84,"div",26),e.EFF(85,"Passcode Entered"),e.k0s()(),e.j41(86,"div",36)(87,"div",26),e.EFF(88,"Status"),e.k0s()(),e.j41(89,"div",36)(90,"div",26),e.EFF(91,"Duration"),e.k0s()(),e.j41(92,"div",36)(93,"div",37),e.EFF(94,"Action"),e.k0s()()(),e.DNE(95,Ww,2,1,"div",38)(96,qw,7,0,"div",38),e.k0s()()()()(),e.j41(97,"div",6)(98,"div",7)(99,"ui-card",24)(100,"div",25)(101,"h2",26),e.EFF(102,"Advisor - Log"),e.k0s()(),e.j41(103,"div",32)(104,"div",33)(105,"div",34)(106,"div",35)(107,"div",26),e.EFF(108,"Time-Date"),e.k0s()(),e.j41(109,"div",36)(110,"div",26),e.EFF(111,"Direction"),e.k0s()(),e.j41(112,"div",36)(113,"div",26),e.EFF(114,"From"),e.k0s()(),e.j41(115,"div",36)(116,"div",26),e.EFF(117,"To"),e.k0s()(),e.j41(118,"div",36)(119,"div",26),e.EFF(120,"Status"),e.k0s()(),e.j41(121,"div",36)(122,"div",26),e.EFF(123,"Duration"),e.k0s()(),e.j41(124,"div",36)(125,"div",37),e.EFF(126,"Action"),e.k0s()()(),e.DNE(127,nb,2,1,"div",38)(128,ib,7,0,"div",38),e.k0s()()()()()()()()),2&s&&(e.R7$(14),e.JRh(null==r.engagmentDetails||null==r.engagmentDetails.project?null:r.engagmentDetails.project.title),e.R7$(2),e.SpI(" ",null==r.engagmentDetails||null==r.engagmentDetails.project?null:r.engagmentDetails.project.angle," "),e.R7$(2),e.SpI("Client: ",null==r.engagmentDetails||null==r.engagmentDetails.project||null==r.engagmentDetails.project.client_user?null:r.engagmentDetails.project.client_user.name," "),e.R7$(5),e.Y8G("ngIf",""!=(null==r.engagmentDetails?null:r.engagmentDetails.advisor.profileimage)),e.R7$(),e.Y8G("ngIf",""==(null==r.engagmentDetails?null:r.engagmentDetails.advisor.profileimage)),e.R7$(3),e.Mz_("routerLink","/user/network/advisor/advisor-details/",e.bMT(28,21,null==r.engagmentDetails?null:r.engagmentDetails.advisor.id),""),e.R7$(2),e.SpI(" ",null==r.engagmentDetails?null:r.engagmentDetails.advisor.name," "),e.R7$(),e.Y8G("ngIf",""!=(null==r.engagmentDetails?null:r.engagmentDetails.advisor.email)&&"2"!=r.userType),e.R7$(),e.Y8G("ngIf",""!=(null==r.engagmentDetails?null:r.engagmentDetails.advisor.phoneno)&&"2"!=r.userType),e.R7$(12),e.SpI("Engagement ID - ",null==r.engagmentDetails?null:r.engagmentDetails.unique_id," "),e.R7$(2),e.SpI(" Date & Time - ",e.bMT(46,23,null==r.engagmentDetails?null:r.engagmentDetails.createdAt)," "),e.R7$(4),e.SpI("Conference Lines: USA: ",r.dialno," INTL:"),e.R7$(),e.SpI(" ",r.dialnouk," "),e.R7$(4),e.SpI(" ",r.passcode?r.passcode:"--"," "),e.R7$(6),e.Y8G("ngIf",1==r.liveCallStatus),e.R7$(),e.Y8G("ngIf",0==r.liveCallStatus),e.R7$(34),e.Y8G("ngIf",r.clientLogData.length>0),e.R7$(),e.Y8G("ngIf",0==(null==r.clientLogData?null:r.clientLogData.length)),e.R7$(31),e.Y8G("ngIf",r.advisorLogData.length>0),e.R7$(),e.Y8G("ngIf",0==(null==r.advisorLogData?null:r.advisorLogData.length)))},dependencies:[Xn.O,at.H,ke.Sq,ke.bT,Ne.Wk,ot.hn,je.bF,je.g3,je.aQ,je.DH],styles:[".advisor-disconnect[_ngcontent-%COMP%]{color:#f5f5f5;background-color:#f50909;border:1px solid #ca0d0d;border-radius:50px;font-size:13px}.liveDatail-dataInfo[_ngcontent-%COMP%]   .dataInfoText[_ngcontent-%COMP%]{line-height:1.6;margin-bottom:.75rem}.liveDatail-dataInfo[_ngcontent-%COMP%]   .dataInfoText[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]})}}return i})(),data:{title:"Live Details"}},{path:"appointment-schedule/:project_id/:advisor_id",component:oc,data:{title:"Ap
1pointment Schedule"}},{path:"appointment-schedule/:project_id/:advisor_id/:slot_id",component:oc,data:{title:"Appointment Schedule"}}]}];let sb=(()=>{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=e.G2t({imports:[Ne.iI.forChild(rb),Ne.iI]})}}return i})();var ab=ge(96901),ob=ge(23679),lb=ge(12978),cb=ge(57157),db=ge(23059),ub=ge(85188),pb=ge(28542),hb=ge(72234),fb=ge(89601);let mb=(()=>{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=e.G2t({providers:[(0,ub.Dw)({validation:!1,showMaskTyped:!1})],imports:[fb.L,ke.MD,pb.t,sb,ab.G,ob.L,ue.YN,ue.X1,ln.U$,lb.eO,cb.UN,db.G,qn.xs,qn.$V,ac.E,ic.Qs.forRoot({modules:{syntax:!0},trackChanges:"user"}),hb.Yq]})}}return i})()},46282:(dc,on,ge)=>{ge.d(on,{A:()=>ue});var ke=ge(70179),Ne=ge(40628),Te=ge(60738);function ue(Hn,fe){(0,Te.A)(2,arguments);var e=(0,Ne.A)(Hn).getTime(),Ve=(0,ke.A)(fe);return new Date(e+Ve)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.