PageSourceSearch

https://app.merren.io/main.77ec69f81f84fe70.js

js merren.io collected 2026-10-04 03:11:04 UTC 2,042,742 bytes, 1 lines download raw bytes

1(self.webpackChunkmerren_customer_portal=self.webpackChunkmerren_customer_portal||[]).push([[792],{9960:(en,Me,R)=>{"use strict";R.d(Me,{q:()=>ee});var p=R(8350),w=R(4438),N=R(1188),v=R(6222);let ee=(()=>{class l{constructor(B,T){this.router=B,this.authenticationService=T}canActivate(B,T){this.authenticationService.redirectUrl=T.url;const K=this.authenticationService.currentUserValue;if(K){let H=(0,p.A)(K.authToken);return!B.data.roles||-1!==B.data.roles.indexOf(H.role)||(this.router.navigate(["/"]),!1)}return this.router.navigate(["/accounts/login"],{queryParams:{}}),!1}canActivateChild(B,T){return this.canActivate(B,T)}static#e=this.\u0275fac=function(T){return new(T||l)(w.KVO(N.Ix),w.KVO(v.k))};static#t=this.\u0275prov=w.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},1827:(en,Me,R)=>{"use strict";R.d(Me,{q_:()=>p.q,wZ:()=>pe,Vw:()=>Ce});var p=R(9960),w=R(4412),N=R(983),v=R(8810),ee=R(9437),l=R(5964),W=R(6697),B=R(5558),T=R(980),e=R(4438),K=R(6222),H=R(5794);let pe=(()=>{class we{constructor(Qe,ht){this.authenticationService=Qe,this.toastr=ht,this.refreshTokenSubject=new w.t(null),this.isRefreshing=!1}intercept(Qe,ht){return ht.handle(Qe).pipe((0,ee.W)(ot=>429===ot.status?(this.toastr.error("Too many requests. Please wait a moment and try again."),N.w):["/verify/","/accounts/verify"].some(kt=>Qe.url.includes(kt))?(0,v.$)(ot?.error?.message||ot.statusText||"Request failed"):-1!==[401,403].indexOf(ot.status)||ot&&ot.error&&401==ot.error.statusCode||ot.error&&500==ot.error.statusCode?this.handle401Error(Qe,ht):(0,v.$)(ot?.error?.message||ot.statusText)))}addToken(Qe,ht){return Qe.clone({setHeaders:{Authorization:`Bearer ${ht}`},withCredentials:!0})}handle401Error1(Qe,ht){if(this.isRefreshing&&console.log("Refresh in progress"),!this.isRefreshing)return this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authenticationService.refresh().pipe((0,B.n)(ot=>(console.log("new access token- ",ot.accessToken),this.authenticationService.setAccessToken(ot.accessToken),this.refreshTokenSubject.next("done"),ht.handle(this.addToken(Qe,ot.accessToken)))),(0,ee.W)(ot=>(0==this.isRefreshing&&this.authenticationService.logout(),(0,v.$)(()=>ot))),(0,T.j)(()=>{this.isRefreshing=!1}))}handle401Error(Qe,ht){return Qe.url.includes("/refresh")?(this.authenticationService.logout(),(0,v.$)(()=>new Error("Refresh failed"))):this.isRefreshing?this.refreshTokenSubject.pipe((0,l.p)(ot=>null!==ot),(0,W.s)(1),(0,B.n)(ot=>ht.handle(this.addToken(Qe,ot)))):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authenticationService.refresh().pipe((0,B.n)(ot=>(this.isRefreshing=!1,this.authenticationService.setAccessToken(ot.accessToken),this.refreshTokenSubject.next(ot.accessToken),ht.handle(this.addToken(Qe,ot.accessToken)))),(0,ee.W)(ot=>(this.isRefreshing=!1,this.authenticationService.logout(),(0,v.$)(()=>ot)))))}static#e=this.\u0275fac=function(ht){return new(ht||we)(e.KVO(K.k),e.KVO(H.tw))};static#t=this.\u0275prov=e.jDH({token:we,factory:we.\u0275fac})}return we})();var oe=R(5312);let Ce=(()=>{class we{constructor(Qe){this.authenticationService=Qe}intercept(Qe,ht){const ot=this.authenticationService.currentUserValue,gt=ot&&ot.authToken,je=Qe.url.startsWith(oe.c.api_url);return gt&&je&&(Qe=Qe.clone({setHeaders:{Authorization:`Bearer ${ot.authToken}`},withCredentials:!0})),ht.handle(Qe)}static#e=this.\u0275fac=function(ht){return new(ht||we)(e.KVO(K.k))};static#t=this.\u0275prov=e.jDH({token:we,factory:we.\u0275fac})}return we})()},7421:(en,Me,R)=>{"use strict";R.d(Me,{X:()=>p});var p=function(w){return w.User="user",w.Admin="admin",w.Customer="customer",w.ProductTeam="productTeam",w.PanelTeam="panelTeam",w.Creator="creator",w.Viewer="viewer",w}(p||{})},6222:(en,Me,R)=>{"use strict";R.d(Me,{k:()=>pe});var p=R(467),w=R(5312),N=R(4412),v=R(9350),ee=R(7707),W=R(6354),B=R(8350),T=R(4438),e=R(1626),K=R(5794),H=R(1188);let pe=(()=>{class oe{constructor(we,Pe,Qe){this.http=we,this.toastrService=Pe,this.router=Qe,this.userRole="",this.accessibilityData={isPlanExpired:!0},this.activeprojectDetails={_id:""};const ht=localStorage.getItem("currentUser");
1if(this.currentUserSubject=new N.t(ht?JSON.parse(ht):null),ht)try{const ot=(0,B.A)(JSON.parse(ht).authToken);this.userRole=ot.role?ot.role:""}catch(ot){console.error("Invalid token:",ot)}this.currentUser=this.currentUserSubject.asObservable()}get currentUserValue(){return this.currentUserSubject.value}login(we){return this.http.post(`${w.c.api_url}/auth/login`,{input:we}).pipe((0,W.T)(Pe=>(Pe&&Pe.authToken&&(localStorage.setItem("currentUser",JSON.stringify(Pe)),localStorage.setItem("currentPlanId",Pe.planId),this.currentUserSubject.next(Pe)),Pe)))}register(we,Pe,Qe,ht,ot){let gt={firstName:we,lastName:Pe,email:Qe,password:ht};return ot&&(gt.isNpsUser=!0),this.http.post(`${w.c.api_url}/auth/register?role=user`,{input:gt}).pipe((0,W.T)(je=>(je&&je.authToken&&(localStorage.setItem("currentUser",JSON.stringify(je)),localStorage.setItem("currentPlanId",je.planId),this.currentUserSubject.next(je)),je)))}login1(we){var Pe=this;return(0,p.A)(function*(){try{const Qe=yield function l(oe,Ce){const we="object"==typeof Ce;return new Promise((Pe,Qe)=>{const ht=new ee.Ms({next:ot=>{Pe(ot),ht.unsubscribe()},error:Qe,complete:()=>{we?Pe(Ce.defaultValue):Qe(new v.G)}});oe.subscribe(ht)})}(Pe.http.post(`${w.c.api_url}/auth/login`,we));return Qe?.data?.authToken&&(localStorage.setItem("currentUser",JSON.stringify(Qe.data)),Pe.currentUserSubject.next(Qe.data)),Qe}catch(Qe){throw console.error("Login failed",Qe),Qe}})()}loginUsingFBGoogle(we){return this.http.post(`${w.c.api_url}/auth/loginUsingFBGoogle`,{input:we}).pipe((0,W.T)(Pe=>(Pe&&Pe.authToken&&(localStorage.setItem("currentUser",JSON.stringify(Pe)),localStorage.setItem("currentPlan",Pe.planId),this.currentUserSubject.next(Pe)),Pe)))}confirmOnboarding(we){return this.http.get(`${w.c.api_url}/auth/confirmOnboarding/${we}`)}logof(we){return this.http.post(`${w.c.api_url}/auth/logout`,{email:we})}logout(we,Pe){we&&localStorage.getItem("currentUser")&&this.toastrService.error("Session expired. Please log in again."),localStorage.removeItem("currentUser"),localStorage.removeItem("currentPlan"),localStorage.removeItem("currentPlanId"),localStorage.removeItem("activeprojectObj"),localStorage.removeItem("surveyCategory"),localStorage.removeItem("fromTemplate"),localStorage.removeItem("filterFlag"),localStorage.removeItem("_grecaptcha"),localStorage.removeItem("redirectUrl"),localStorage.removeItem("surveyId"),this.router.resetConfig([]),this.http.post(`${w.c.api_url}/auth/logout`,{},{withCredentials:!0}),location.reload()}onNewSession(we){return this.http.post(`${w.c.api_url}/integration/createSession`,we)}refresh(){return this.http.post(`${w.c.api_url}/auth/refresh`,{},{withCredentials:!0})}setAccessToken(we){const Pe=this.currentUserValue;console.log("new access token",we),Pe.authToken=we,localStorage.setItem("currentUser",JSON.stringify(Pe)),this.currentUserSubject.next(Pe)}static#e=this.\u0275fac=function(Pe){return new(Pe||oe)(T.KVO(e.Qq),T.KVO(K.tw),T.KVO(H.Ix))};static#t=this.\u0275prov=T.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},138:(en,Me,R)=>{"use strict";R.d(Me,{u:()=>ee});var p=R(467),w=R(5312),N=R(4438),v=R(1626);let ee=(()=>{class l{constructor(B){this.http=B}login(B,T){var e=this;return(0,p.A)(function*(){let K={email:B,password:T};return yield e.http.post("/auth/login",{input:K}).toPromise()})()}signUp(B){return this.http.post(`${w.c.api_url}/auth/sign-in`,B)}resendEmailOtp(B){return this.http.post(`${w.c.api_url}/auth/resend-email-otp`,B)}register(B,T,e,K,H){var pe=this;return(0,p.A)(function*(){let oe={firstName:B,email:e,lastName:T,password:K};return H&&1==H&&(oe.isNpsUser=!0),yield pe.http.post("/auth/register?role=user",{input:oe}).toPromise()})()}inviteUser(B,T,e){return this.http.post(`${w.c.api_url}/auth/inviteUser`,{email:B,userId:T,users:[{email:B,role:e}]})}inviteOrgUsers(B){return this.http.post(`${w.c.api_url}/auth/invite-users`,B)}organization(B){var T=this;return(0,p.A)(function*(){let e={organization:B};return yield T.http.post("/auth/organization?role=user",{input:e}).toPromise()})()}getFacebook(){var B=this;return(0,p.A)(function*(){return B.http.get("/auth/facebook").toProm
1ise()})()}getGoogle(){var B=this;return(0,p.A)(function*(){return B.http.get("/auth/google").toPromise()})()}forgetPassword(B){return this.http.get(`${w.c.api_url}/auth/forgotpassword/${B}`)}sendAmp(B){return this.http.get(`${w.c.api_url}/auth/sendAmp/${B}`)}resetPassword(B){return this.http.post(`${w.c.api_url}/auth/resetpassword`,B)}setPassword(B){return this.http.post(`${w.c.api_url}/auth/setInviteUserDetails`,B)}sendToken(B){return this.http.post(`${w.c.api_url}/auth/recapthchaTokenValidate`,{token:B,url:w.c.api_url})}verify(B){return this.http.get(`${w.c.api_url}/auth/verify/${B}`)}setInviteUserDetails(B){return this.http.post(`${w.c.api_url}/auth/setInviteUserDetails`,B)}createProject(B){return this.http.post(`${w.c.api_url}/project/createProject`,B)}createAISurvey(B){return this.http.post(`${w.c.api_url}/generateSurvey/createSurvey`,B)}checkProject(B){return this.http.get(`${w.c.api_url}/project/checkProjectCreated/${B}`)}verifyNewUser(B){return this.http.get(`${w.c.api_url}/auth/verifyNewUser/${B}`)}getQuestions(B){return this.http.get(`${w.c.api_url}/generateSurvey/getQuestions/${B}`)}checkStatusAfterLogin(B){return this.http.post(`${w.c.api_url}/zeonai/checkStatusAfterLogin`,B)}getOrganizationDetails(B){return this.http.get(`${w.c.api_url}/auth/getOrganizationDetails/${B}`)}createOrganization(B,T,e,K,H){return this.http.post(`${w.c.api_url}/auth/createOrganization`,{input:{organization:B,city:T,state:e,country:K,website:H}}).toPromise()}createOrganizationUser(B){return this.http.post(`${w.c.api_url}/auth/createOrganization`,{input:B})}sendverificationEmail(B){return this.http.post(`${w.c.api_url}/auth/sendverificationlink`,B)}generateOtp(B){return this.http.post(`${w.c.api_url}/videoanalytics/generateOtp`,B)}pushDemoSurvey(B){return this.http.post(`${w.c.api_url}/zapier/pushDemoSurvey`,B)}static#e=this.\u0275fac=function(T){return new(T||l)(N.KVO(v.Qq))};static#t=this.\u0275prov=N.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},7419:(en,Me,R)=>{"use strict";R.d(Me,{Q:()=>N});var p=R(1413),w=R(4438);let N=(()=>{class v{constructor(){this.pendingHTTPRequests$=new p.B}cancelPendingRequests(){this.pendingHTTPRequests$.next()}onCancelPendingRequests(){return this.pendingHTTPRequests$.asObservable()}static#e=this.\u0275fac=function(W){return new(W||v)};static#t=this.\u0275prov=w.jDH({token:v,factory:v.\u0275fac})}return v})()},964:(en,Me,R)=>{"use strict";R.d(Me,{H:()=>ee});var p=R(1188),w=R(6977),N=R(4438),v=R(7419);let ee=(()=>{class l{constructor(B,T){this.httpCancelService=T,B.events.subscribe(e=>{e instanceof p._d&&this.httpCancelService.cancelPendingRequests()})}intercept(B,T){return T.handle(B).pipe((0,w.Q)(this.httpCancelService.onCancelPendingRequests()))}static#e=this.\u0275fac=function(T){return new(T||l)(N.KVO(p.Ix),N.KVO(v.Q))};static#t=this.\u0275prov=N.jDH({token:l,factory:l.\u0275fac})}return l})()},152:(en,Me,R)=>{"use strict";R.d(Me,{I:()=>ee});var p=R(5312),w=R(6496),N=R(4438),v=R(1626);let ee=(()=>{class l{constructor(B){this.http=B,this.apiUrls="https://jsonplaceholder.typicode.com/posts",this.apiUrlsd="https://mocki.io/v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8",this.interviewTypeLabel="",this.surveyTypeLabel=""}getUserDetail(B){return this.http.get(`${p.c.api_url}/auth/getUserData/${B}`)}getUserDetailCached(B){return this.userDetailCache$||(this.userDetailCache$=this.getUserDetail(B).pipe((0,w.t)(1))),this.userDetailCache$}clearUserDetailCache(){this.userDetailCache$=null}updateUserDetails(B){return this.http.post(`${p.c.api_url}/auth/updateUser`,B)}updateUserPassword(B){return this.http.post(`${p.c.api_url}/auth/changePassword`,B)}getAllSurveys(){return this.http.get(`${p.c.api_url}/survey/getAllSurvey?searchTerm=&startDate=&endDate=`)}getAllSurveyForClone(){return this.http.get(`${p.c.api_url}/survey/getAllSurveyForClone?searchTerm=&startDate=&endDate=`)}sendverificationEmail(B){return this.http.post(`${p.c.api_url}/auth/sendverificationlink`,B)}updateSurveyStatus(B){return this.http.post(`${p.c.api_url}/survey/updateSurveyStatus`,B)}getAllCategories(){return this.http.get(`${p.c.api_url}/survey/getSurveyCategeries`)}getSurveyStatus(){return this.http.get(`${p.c.api_url}/survey/getSurveyStatus`)}deleteSurvey(B){return this.http.post(`${p.c.api_url}/survey/deleteSurvey/${B}`,{})}cloneSurvey(B){return this.http.post(`${p.c.api_url}/survey/cloneSurvey`,B)}getAllPayment(){return this.http.get(`${p.c.api_url}
1/plandetails/getAllPayment`)}getAll(B,T,e){return this.http.get(`${p.c.api_url}/plandetails/getAllPayment?email=${B}&page=${T}&size=${e}`)}getAllSurveyPage(B,T,e,K,H,pe){return this.http.get(`${p.c.api_url}/survey/getAllSurvey?projectId=${B}&page=${T}&size=${e}&status=${K}&searchTerm=${H}&startDate=${null!=pe&&pe?pe[0]:""}&endDate=${null!=pe&&pe?pe[1]:""}`)}updateSurvey(B){return this.http.post(`${p.c.api_url}/survey/update`,B).toPromise()}saveUserSettings(B){return this.http.post(`${p.c.api_url}/auth/saveUserSettings`,B)}getUserSettings(B){return this.http.get(`${p.c.api_url}/auth/getUserSettings/${B}`)}generateSecretKey(B){return this.http.post(`${p.c.api_url}/survey/generateSecretKey`,B)}getUserSecretCode(B){return this.http.get(`${p.c.api_url}/survey/getUserSecretCode/${B}`)}createUserWebhook(B){return this.http.post(`${p.c.api_url}/survey/createUserWebhook`,B)}deleteWebhook(B){return this.http.post(`${p.c.api_url}/survey/deleteWebhook`,B)}getInvoiceDetails(B){return this.http.get(`${p.c.api_url}/razorpay/getInvoiceDetails/${B}`)}makePayment(B,T){return this.http.post(`${p.c.api_url}/stripe/createStripePayment`,{token:B,planDetails:T})}getAllPlans(){return this.http.get(`${p.c.api_url}/stripe/getAllPlans`)}getTrialDays(B){return this.http.get(`${p.c.api_url}/accessibility/getUserAccessibility/${B}`)}getTrialDaysCached(B){return this.trialDaysCache$||(this.trialDaysCache$=this.getTrialDays(B).pipe((0,w.t)(1))),this.trialDaysCache$}clearTrialDaysCache(){this.trialDaysCache$=null}getUserAccessibility(B){return this.getTrialDaysCached(B)}getaccess(B){return this.getTrialDaysCached(B)}getActivePlan(B){return this.http.get(`${p.c.api_url}/stripe/getActivePlan/${B}`)}getKey(B){return this.http.get(`${p.c.api_url}/stripe/getToken/${B}`)}getCardDetails(B){return this.http.get(`${p.c.api_url}/stripe/getCardDetails/${B}`)}addBillingDetails(B){return this.http.post(`${p.c.api_url}/stripe/addBillingDetails`,B)}getSelectedPlanDetails(B){return this.http.get(`${p.c.api_url}/stripe/getPlanDetails/${B}`)}getAccessibilityDetails(B){return this.http.get(`${p.c.api_url}/accessibility/getAccessibilityDetails/${B}`)}updateaccessibilityDetails(B){return this.http.post(`${p.c.api_url}/accessibility/updateaccessibilityDetails`,B)}getUserAccessibilityDetails(B){return this.http.get(`${p.c.api_url}/accessibility/getUserAccessibilityDetails/${B}`)}updateUserAccessibilityDetails(B){return this.http.post(`${p.c.api_url}/accessibility/updateUserAccessibilityDetails`,B)}getsubcriptionDetails(B,T,e,K){return this.http.get(`${p.c.api_url}/accessibility/getsubcriptionDetails/${K}?&page=${B}&size=${T}&searchTerm=${e}`)}getAllOrganizationUsers(B){return this.http.get(`${p.c.api_url}/auth/getAllOrganizationUsers/${B}`)}getAllOrganizationUsersList(B){return this.http.get(`${p.c.api_url}/auth/getAllOrganizationUsersList/${B}`)}getAdminDetails(B){return this.http.get(`${p.c.api_url}/auth/getAdminDetails/${B}`)}
1updateAdminDetails(B,T){return this.http.post(`${p.c.api_url}/auth/changeOrganizationAdmin/${T}`,B)}getOrganizationUsers(B){return this.http.get(`${p.c.api_url}/auth/getAllOrganizationUsers/${B}`)}deleteorgUser(B,T){return this.http.post(`${p.c.api_url}/auth/deleteOrganizationUser/${B}`,T)}getAllProjectList(B,T,e,K){return this.http.get(`${p.c.api_url}/project/getAllProjectList/${B}?&page=${T}&size=${e}&searchProject=${K}`)}createnewProject(B){return this.http.post(`${p.c.api_url}/project/createProject`,B)}updateProject(B){return this.http.post(`${p.c.api_url}/project/updateProject`,B)}moveAllExisitingSurveysIntoProject(B){return this.http.post(`${p.c.api_url}/project/moveSurvey`,B)}createnewTouchpoint(B){return this.http.post(`${p.c.api_url}/project/createTouchpoint`,B)}getAllTouchpoints(B,T){return this.http.get(`${p.c.api_url}/project/getAllTouchpoints/${B}/${T}`)}deletetouchpoint(B){return this.http.delete(`${p.c.api_url}/project/deleteTouchpoint/${B}`)}getActiveProject(B){return this.http.get(`${p.c.api_url}/project/getActiveProject/${B}`)}changeProject(B){return this.http.post(`${p.c.api_url}/project/changeActiveProject`,B)}deleteProject(B){return this.http.delete(`${p.c.api_url}/project/deleteProject/${B}`)}changejourneyStatus(B){return this.http.post(`${p.c.api_url}/project/changeJourneyStatus`,B)}checkProjectCreated(B){return this.http.get(`${p.c.api_url}/project/checkProjectCreated/${B}`)}getAllProjectSurveys(B){return this.http.get(`${p.c.api_url}/project/getAllProjectSurveys/${B}`)}updatesurveyDetails(B){return this.http.post(`${p.c.api_url}/project/linksurvey`,B)}disconnectSurvey(B){return this.http.post(`${p.c.api_url}/project/disconnectSurvey`,B)}getAllMessages(B,T){return this.http.get(`${p.c.api_url}/zeonai/getAllMessages/${B}/${T}`)}updateMessageStatus(B){return this.http.post(`${p.c.api_url}/zeonai/likeUnlikeMessage`,B)}sendReceiveNewMessage(B){return this.http.post(`${p.c.api_url}/zeonai/askQuestion`,B)}getInsightData(){return this.http.get(`${this.apiUrls}`)}getInsightsData(){return this.http.get(`${p.c.api_url}/auth/getInsightData`)}getOverallSummary(){return this.http.get(`${this.apiUrlsd}`)}getAllResopnsesSummary(B){return this.http.get(`${p.c.api_url}/zeonai/getAllResopnsesSummary/${B}`)}saveEmbddedDetails(B,T){return this.http.post(`${p.c.api_url}/embedded/save/${T}`,B)}checkAlreadyEmbeddedUser(B){return this.http.get(`${p.c.api_url}/embedded/checkAlreadyEmbeddedUser/${B}`)}createFbTemplate(B){return this.http.post(`${p.c.api_url}/embedded/create-template`,B)}deleteEmbeddedUser(B){return this.http.post(`${p.c.api_url}/embedded/disconnect`,{email:B})}getAllDGSurvey(B,T,e,K,H,pe){return this.http.get(`${p.c.api_url}/survey/getAllDGSurvey?projectId=${B}&page=${T}&size=${e}&status=${K}&searchTerm=${H}&startDate=${null!=pe&&pe?pe[0]:""}&endDate=${null!=pe&&pe?pe[1]:""}`)}getDGStatus(){return this.http.get(`${p.c.api_url}/survey/getDGStatus`)}static#e=this.\u0275fac=function(T){return new(T||l)(N.KVO(v.Qq))};static#t=this.\u0275prov=N.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9520:(en,Me,R)=>{"use strict";R.d(Me,{h:()=>v});var p=R(5312),w=R(4438),N=R(1626);let v=(()=>{class ee{constructor(W){this.http=W}isNumbers(W){var B=W.which?W.which:event.keyCode;return!(B>31&&(B<48||B>57))}isText(W){var B=W.which?W.which:event.keyCode;return!((B<65||B>90)&&(B<97||B>122)&&32!=B)}getIdFromObject(W){return null!=W||null!=W?W.id:W}isPercentageNumber(W){var B=W.which?W.which:event.keyCode;return 46==B||!(B>31&&(B<48||B>57))}onPaste(W){const B=W.target.value;return!B||!/https?:\/\//.test(B)||(W.preventDefault(),W.target.value="",!1)}filterArrayBetweenDateRange(W,B,T){var e=new Date(W).getTime(),K=new Date(B).getTime();let H=[];for(let oe of T){var pe=new Date(oe.date).getTime();e<=pe&&K>=pe&&(console.log(oe),H.push(oe))}return H}upgradeDetails(W){return this.http.post(`${p.c.api_url}/plans/upgradeDetails`,W).toPromise()}translateData(W,B,T){}getTanslatedString(W,B,T,e,K,H,pe,oe){return{English:{numericQuestion:` * (Value should be ${T} to ${e}  ) `,scaleQuestion:`${T}. Rate between ${e} and ${K}.\n                           Type any whole number between ${e} to ${K}.`,textBasedQuestion:`${T} * (Word limit should be ${e} to ${K} words)`,scaleMinValue:"What would be the minimum value ?",scaleMaxValue:"What would be the maximum value ?",scaleStepValue:"What would be the step value ?",rank:"What would be rank # ?"},Hindi:{numericQuestion:`*( ${T} \u0938\u0947 ${e} \u0915\u0947 \u092c\u0940\u091a \u0915\u094b\u0908 \u092d\u0940 \u092a\u0942\u0930\u0940 \u0938\u0902\u0916\u094d\u092f\u093e \u091f\u093e\u0907\u092a \u0915\u0930\u0947\u0902 ) `,scaleQuestion:`${T}.  ${e} and ${K} \u0915\u0947 \u092c\u0940\u091a \u0915\u0940 \u0926\u0930. ${e} to ${K}  \u0915\u0947 \u092c\u0940\u091a \u0915\u094b\u0908 \u092d\u0940 \u092a\u0942\u0930\u0940 \u0938\u0902\u0916\u094d\u092f\u093e.`,textBasedQuestion:`${T} * ( ${e} \u0938\u0947 ${K}  \u0936\u092c\u094d\u0926 \u0938\u0940\u092e\u093e \u0939\u094b\u0928\u0940 \u091a\u093e\u0939\u093f\u090f )`,scaleMinValue:" \u0928\u094d\u092f\u0942\u0928\u0924\u092e \u092e\u0942\u0932\u094d\u092f \u0915\u094d\u092f\u093e \u0939\u094b\u0917\u093e?",scaleMaxValue:" \u0905\u0927\u093f\u0915\u0924\u092e \u092e\u0942\u0932\u094d\u092f \u0915\u094d\u092f\u093e \u0939\u094b\u0917\u093e?        ",scaleStepValue:" \u0938\u094d\u091f\u0947\u092a \u0935\u0948\u
10932\u094d\u092f\u0942 \u0915\u094d\u092f\u093e \u0939\u094b\u0917\u0940?",rank:"\u0930\u0948\u0902\u0915 \u0915\u094d\u092f\u093e \u0939\u094b\u0917\u0940 ?"},Tamil:{numericQuestion:` * (\u0bae\u0ba4\u0bbf\u0baa\u0bcd\u0baa\u0bc1 \u0b87\u0bb0\u0bc1\u0b95\u0bcd\u0b95 \u0bb5\u0bc7\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd ${T} to ${e} ) `,scaleQuestion:`${T}. \u0b87\u0b9f\u0bc8\u0baf\u0bbf\u0bb2\u0bcd \u0bb5\u0bbf\u0b95\u0bbf\u0ba4\u0bae\u0bcd  ${e} and ${K}. \u0bb5\u0b95\u0bc8 \u0b87\u0b9f\u0bc8\u0baf\u0bbf\u0bb2\u0bcd \u0b8e\u0ba8\u0bcd\u0ba4 \u0bae\u0bc1\u0bb4\u0bc1 \u0b8e\u0ba3\u0bcd\u0ba3\u0bc1\u0bae\u0bcd  ${e} to ${K} .`,textBasedQuestion:`${T} * (\u0b9a\u0bca\u0bb2\u0bcd \u0bb5\u0bb0\u0bae\u0bcd\u0baa\u0bc1 \u0b87\u0bb0\u0bc1\u0b95\u0bcd\u0b95 \u0bb5\u0bc7\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd ${e} to ${K}  \u0b9a\u0bc6\u0bbe\u0bb1\u0bcd\u0b95\u0bb3\u0bcd) `,scaleMinValue:"\u0b95\u0bc1\u0bb1\u0bc8\u0ba8\u0bcd\u0ba4\u0baa\u0b9f\u0bcd\u0b9a \u0bae\u0ba4\u0bbf\u0baa\u0bcd\u0baa\u0bc1 \u0b8e\u0ba9\u0bcd\u0ba9\u0bb5\u0bbe\u0b95 \u0b87\u0bb0\u0bc1\u0b95\u0bcd\u0b95\u0bc1\u0bae\u0bcd?",scaleMaxValue:"  \u0b85\u0ba4\u0bbf\u0b95\u0baa\u0b9f\u0bcd\u0b9a \u0bae\u0ba4\u0bbf\u0baa\u0bcd\u0baa\u0bc1 \u0b8e\u0ba9\u0bcd\u0ba9\u0bb5\u0bbe\u0b95 \u0b87\u0bb0\u0bc1\u0b95\u0bcd\u0b95\u0bc1\u0bae\u0bcd?        ",scaleStepValue:"  \u0baa\u0b9f\u0bbf \u0bae\u0ba4\u0bbf\u0baa\u0bcd\u0baa\u0bc1 \u0b8e\u0ba9\u0bcd\u0ba9\u0bb5\u0bbe\u0b95 \u0b87\u0bb0\u0bc1\u0b95\u0bcd\u0b95\u0bc1\u0bae\u0bcd ?",rank:"\u0b8e\u0ba9\u0bcd\u0ba9 \u0ba4\u0bb0\u0bb5\u0bb0\u0bbf\u0b9a\u0bc8 \u0b87\u0bb0\u0bc1\u0b95\u0bcd\u0b95\u0bc1\u0bae\u0bcd # ? "},Bengali:{numericQuestion:`  * (\u09ae\u09be\u09a8 \u09b9\u0993\u09af\u09bc\u09be \u0989\u099a\u09bf\u09a4 ${T} to ${e} ) `,scaleQuestion:`${T}. \u09ae\u09a7\u09cd\u09af\u09c7 \u09b9\u09be\u09b0  ${e} and ${K}. \u09aa\u09cd\u09b0\u0995\u09be\u09b0 \u098f\u09b0 \u09ae\u09a7\u09cd\u09af\u09c7 \u09af\u09c7 \u0995\u09cb\u09a8\u0993 \u09b8\u09ae\u09cd\u09aa\u09c2\u09b0\u09cd\u09a3 \u09b8\u0982\u0996\u09cd\u09af\u09be  ${e} to ${K} .`,textBasedQuestion:`${T} * (\u09b6\u09ac\u09cd\u09a6 \u09b8\u09c0\u09ae\u09be \u09b9\u0993\u09af\u09bc\u09be \u0989\u099a\u09bf\u09a4 ${e} to ${K}  \u09b6\u09ac\u09cd\u09a6 ) `,scaleMinValue:" \u09b8\u09b0\u09cd\u09ac\u09a8\u09bf\u09ae\u09cd\u09a8 \u09ae\u09be\u09a8\u099f\u09bf \u0995\u09c0 \u09b9\u09ac\u09c7?",scaleMaxValue:"  \u09b8\u09b0\u09cd\u09ac\u09cb\u099a\u09cd\u099a \u09ae\u09be\u09a8 \u0995\u09bf \u09b9\u09ac\u09c7 ?  ",scaleStepValue:"\u09aa\u09a6\u0995\u09cd\u09b7\u09c7\u09aa\u09c7\u09b0 \u09ae\u09be\u09a8\u099f\u09bf \u0995\u09c0 \u09b9\u09ac\u09c7 ? ",rank:"\u0995\u09bf \u09aa\u09a6\u09ae\u09b0\u09cd\u09af\u09be\u09a6\u09be \u09b9\u09ac\u09c7 # ? "},Telugu:{numericQuestion:`  * (\u0c2a\u0c4d\u0c30\u0c3e\u0c2e\u0c3e\u0c23\u0c3f\u0c15\u0c02\u0c17\u0c3e \u0c09\u0c02\u0c21\u0c3e\u0c32\u0c3f ${T} to ${e} )`,scaleQuestion:`${T}. \u0c30\u0c47\u0c1f\u0c4d \u0c1a\u0c47\u0c2f\u0c02\u0c21\u0c3f ${e} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 ${K}.\u0c30\u0c15\u0c02 \u0c2e\u0c4a\u0c24\u0c4d\u0c24\u0c02 \u0c38\u0c02\u0c16\u0c4d\u0c2f ${e} \u0c15\u0c41 ${K}.`,textBasedQuestion:`${T} * (\u0c2a\u0c26 \u0c2a\u0c30\u0c3f\u0c2e\u0c3f\u0c24\u0c41\u0c32\u0c41 \u0c09\u0c02\u0c21\u0c3e\u0c32\u0c3f ${e} \u0c15\u0c41 ${K} \u0c2a\u0c26\u0c3e\u0c32\u0c41)`,scaleMinValue:"\u0c15\u0c28\u0c40\u0c38 \u0c35\u0c3f\u0c32\u0c41\u0c35 \u0c0f\u0c2e\u0c3f\u0c1f\u0c3f?",scaleMaxValue:"\u0c17\u0c30\u0c3f\u0c37\u0c4d\u0c1f \u0c35\u0c3f\u0c32\u0c41\u0c35 \u0c0f\u0c2e\u0c3f\u0c1f\u0c3f?",scaleStepValue:" \u0c26\u0c36 \u0c2f\u0c4a\u0c15\u0c4d\u0c15 \u0c35\u0c3f\u0c32\u0c41\u0c35 \u0c0f\u0c2e\u0c3f\u0c1f\u0c3f?",rank:"\u0995\u0c30\u0c4d\u0c2f\u0c3e\u0c02\u0c15\u0c4d # \u0c0f\u0c2e\u0c3f\u0c1f\u0c3f?"},Kannada:{numericQuestion:`  * (\u0c85\u0ca7\u0cbf\u0c95\u0cc3\u0ca4\u0cb5\u0cbe\u0c97\u0cbf\u0cb0\u0cac\u0cc7\u0c95\u0cc1 ${T} to ${e}  ) `,scaleQuestion:`${T}.  \u0ca6\u0caf\u0cb5\u0cbf\u0c9f\u0ccd\u0c9f\u0cc1 \u0cb0\u0cc7\u0c9f\u0ccd \u0cae\u0cbe\u0ca1\u0cbf ${e} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 ${K}. \u0caa\u0ccd\u0cb0\u0c95\u0cbe\u0cb0\u0ca6 \u0c92\u0c9f\u0ccd\u0c9f\u0cc1 \u0cb8\u0c82\u0c96\u0ccd\u0caf\u0cc6 ${e} \u0c97\u0cc6 ${K}.`,textBasedQuestion:`${T} * (\u0caa\u0ca6 \u0cae\u0cbf\u0ca4\u0cbf\u0c97\u0cb3\u0cc1 \u0c87\u0cb0\u0cac\u0cc7\u0c95\u0cc1 ${e} \u0c97\u0cc6 ${K} \u0caa\u0ca6\u0c97\u0cb3\u0cc1)`,scaleMinValue:" \u0c95\u0ca8\u0cbf\u0cb7\u0ccd\u0ca0 \u0cae\u0ccc\u0cb2\u0ccd\u0caf \u0c8e\u
10cb7\u0ccd\u0c9f\u0cc1?",scaleMaxValue:" \u0c97\u0cb0\u0cbf\u0cb7\u0ccd\u0ca0 \u0cae\u0ccc\u0cb2\u0ccd\u0caf \u0c8e\u0cb7\u0ccd\u0c9f\u0cc1?",scaleStepValue:"\u0cb9\u0cc6\u0c9c\u0ccd\u0c9c\u0cc6\u0caf \u0cae\u0ccc\u0cb2\u0ccd\u0caf \u0c8f\u0ca8\u0cc1?",rank:"\u0cb6\u0ccd\u0cb0\u0cc7\u0ca3\u0cbf # \u0c8e\u0c82\u0ca6\u0cb0\u0cc7\u0ca8\u0cc1?"},Gujarati:{numericQuestion:` * (\u0a85\u0aa7\u0abf\u0a95\u0ac3\u0aa4 \u0ab9\u0acb\u0ab5\u0abe \u0a9c\u0acb\u0a88\u0a8f ${T} \u0aaa\u0acd\u0ab0\u0aa4\u0abf ${e}  ) `,scaleQuestion:`${T}.\u0a95\u0ac3\u0aaa\u0abe \u0a95\u0ab0\u0ac0 \u0aa4\u0ac7\u0aa8\u0ac7 \u0ab0\u0ac7\u0a9f \u0a95\u0ab0\u0acb ${e} \u0a85\u0aa8\u0ac7 ${K}. \u0aaa\u0acd\u0ab0\u0a95\u0abe\u0ab0\u0acb\u0aa8\u0ac0 \u0a95\u0ac1\u0ab2 \u0ab8\u0a82\u0a96\u0acd\u0aaf\u0abe ${e} \u0aaa\u0acd\u0ab0\u0aa4\u0abf ${K}.`,textBasedQuestion:`${T} * (\u0ab6\u0aac\u0acd\u0aa6\u0aa8\u0ac0 \u0aae\u0ab0\u0acd\u0aaf\u0abe\u0aa6\u0abe \u0ab9\u0acb\u0ab5\u0ac0 \u0a9c\u0acb\u0a88\u0a8f ${e} \u0aaa\u0acd\u0ab0\u0aa4\u0abf ${K} \u0ab6\u0aac\u0acd\u0aa6\u0acb)`,scaleMinValue:" \u0aa8\u0acd\u0aaf\u0ac2\u0aa8\u0aa4\u0aae \u0aae\u0ac2\u0ab2\u0acd\u0aaf \u0a95\u0ac7\u0a9f\u0ab2\u0ac1\u0a82 \u0a9b\u0ac7?",scaleMaxValue:" \u0aae\u0ab9\u0aa4\u0acd\u0aa4\u0aae \u0aae\u0ac2\u0ab2\u0acd\u0aaf \u0a95\u0ac7\u0a9f\u0ab2\u0ac1\u0a82 \u0a9b\u0ac7?",scaleStepValue:" \u0aaa\u0a97\u0ab2\u0abe\u0aa8\u0ac0 \u0a95\u0abf\u0a82\u0aae\u0aa4 \u0ab6\u0ac1\u0a82 \u0a9b\u0ac7?",rank:"\u0ab8\u0acd\u0aa4\u0ab0 \u0ab6\u0ac1\u0a82 \u0a9b\u0ac7?"},Indonesian:{numericQuestion:` * ( ${T} ke ${e} Nilai seharusnya ) `,scaleQuestion:`${T}. ${e} dan ${K} menilai antara. ${e} dari ${K} bilangan bulat apa pun di antara.`,textBasedQuestion:`${T} * ( ${e} to ${K}  batas kata harus)`,scaleMinValue:"berapa harga minimumnya ?",scaleMaxValue:" berapa harga maksimumnya ?",scaleStepValue:"apa yang akan menjadi nilai langkah?",rank:"apa yang akan menjadi peringkat # ?"},Spanish:{numericQuestion:` * (El valor debe ser de ${T} a ${e} ) `,scaleQuestion:`${T}. Tarifa entre ${e} y ${K}. Escriba cualquier n\xfamero entero entre ${e} y ${K}.`,textBasedQuestion:`${T} * (El l\xedmite de palabras debe ser de ${e} a ${K} palabras)`,scaleMinValue:"\xbfCu\xe1l ser\xeda el valor m\xednimo?",scaleMaxValue:"\xbfCu\xe1l ser\xeda el valor m\xe1ximo?",scaleStepValue:"\xbfCu\xe1l ser\xeda el valor del paso?",rank:"\xbfCu\xe1l ser\xeda el rango #?"},Portuguese:{numericQuestion:` * (O valor deve ser ${T} a ${e} ) `,scaleQuestion:`${T}. Taxa entre ${e} e ${K}. Digite qualquer n\xfamero inteiro entre ${e} a ${K}.`,textBasedQuestion:`${T} * (o limite de palavras deve ser de ${e} a ${K} palavras)`,scaleMinValue:"Qual seria o valor m\xednimo?",scaleMaxValue:"Qual seria o valor m\xe1ximo?",scaleStepValue:"Qual seria o valor do passo?",rank:"Qual seria a classifica\xe7\xe3o #?"},Persian:{numericQuestion:` * (\u0627\u0631\u0632\u0634 \u0628\u0627\u06cc\u062f \u0628\u0627\u0634\u062f ${T} \u0628\u0647 ${e}  ) `,scaleQuestion:`${T}. \u0646\u0631\u062e \u0628\u06cc\u0646 ${e} \u0648 ${K}.\n        \u0647\u0631 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d\u06cc \u0631\u0627 \u0628\u06cc\u0646 \u0622\u0646\u0647\u0627 \u062a\u0627\u06cc\u067e ${e} \u0628\u0647 ${K}.`,textBasedQuestion:`${T} * (\u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u06a9\u0644\u0645\u0647 \u0628\u0627\u06cc\u062f \u0628\u0627\u0634\u062f ${e} \u0628\u0647 ${K} \u06a9\u0644\u0645\u0627\u062a )`,scaleMinValue:"\u062d\u062f\u0627\u0642\u0644 \u0645\u0642\u062f\u0627\u0631 \u0686\u0642\u062f\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f ?",scaleMaxValue:"\u062d\u062f\u0627\u06a9\u062b\u0631 \u0645\u0642\u062f\u0627\u0631 \u0686\u0642\u062f\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f ?",scaleStepValue:"\u0645\u0642\u062f\u0627\u0631 \u06af\u0627\u0645 \u0686\u0642\u062f\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f ?",rank:"\u0686\u0647 \u0631\u062a\u0628\u0647 \u0627\u06cc \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f # ?"}}[W][B]}checkArrayContainsDuplicate(W,B){var T=W.map(function(K){return K[B]});return T.some(function(K,H){return T.indexOf(K)!=H})}validateField(W,B){return W?W.errors?.required?`${B} is required`:W.errors?.maxlength?`${B} should not exceed ${W.errors.maxlength.requiredLength} characters`:W.errors?.pattern?`${B}
1 contains invalid characters`:W.errors?.email||W.errors?.invalidEmail?`Please enter a valid ${B}`:null:null}static noSpecialChars(W){return/^[a-zA-Z ]+$/.test(W.value)?null:{pattern:!0}}static noHtmlJs(W){return/<[^>]*>|(script|alert|onerror|onload|javascript)/i.test(W.value)?{pattern:!0}:null}static validEmail(W){const B=W.value;return B?!/https?:\/\/|www\.|:\/\//i.test(B)&&/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/.test(B)?null:{email:!0,pattern:!0,invalidEmail:!0}:null}validateInput(W){let B=W.which?W.which:W.keyCode;return!!(8===B||9===B||13===B||B>=37&&B<=40||46===B||/^[A-Za-z0-9\s]+$/.test(W.key))||(W.preventDefault(),!1)}static#e=this.\u0275fac=function(B){return new(B||ee)(w.KVO(N.Qq))};static#t=this.\u0275prov=w.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},5348:(en,Me,R)=>{"use strict";R.d(Me,{f:()=>Jt});var p=R(9417),w=R(4438),N=R(1188),v=R(6222),ee=R(152),l=R(5794),W=R(1722),B=R(177);const T=["planExpiredModal"],e=["annoucementModal"],K=ct=>({"is-invalid":ct});function H(ct,Gt){if(1&ct&&(w.j41(0,"h5",47),w.EFF(1),w.k0s()),2&ct){const Te=w.XpG();w.Y8G("title",Te.pageTitle.length>25?Te.pageTitle:""),w.R7$(),w.SpI(" ",Te.pageTitle," ")}}function pe(ct,Gt){1&ct&&(w.j41(0,"h1",48)(1,"a",49),w.nrm(2,"img",50),w.k0s()())}function oe(ct,Gt){1&ct&&(w.j41(0,"div",51)(1,"p",52)(2,"strong"),w.EFF(3,"THIS SURVEY IS CLOSED"),w.k0s()()())}function Ce(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div",53),w.bIt("click",function(){const Ne=w.eBV(Te).$implicit,Je=w.XpG();return w.Njj(Je.changeProject(Ne))}),w.EFF(1),w.k0s()}if(2&ct){const Te=Gt.$implicit;w.FS9("title",Te.name),w.R7$(),w.JRh(Te.name)}}function we(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div",19),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG();return w.Njj(Ne.gotocreatenewProject())}),w.EFF(1,"Create new project"),w.k0s()}}function Pe(ct,Gt){if(1&ct&&w.nrm(0,"img",54),2&ct){const Te=w.XpG();w.Y8G("src",Te.userProfile,w.B4B)}}function Qe(ct,Gt){if(1&ct&&(w.j41(0,"span"),w.EFF(1),w.k0s()),2&ct){const Te=w.XpG();w.R7$(),w.Lme("",(Te.userName||"").charAt(0),"",(Te.userName.split(" ")[1]||"").charAt(0),"")}}function ht(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div",55)(1,"p",56),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG();return w.Njj(Ne.goToSurvey())}),w.nrm(2,"i",57),w.k0s()()}}function ot(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div",58),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG();return w.Njj(Ne.showProfileMenu=!1)}),w.k0s()}}function gt(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div",63)(1,"button",64),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG(2);return w.Njj(Ne.goto())}),w.EFF(2,"RENEW SUBSCRIPTION"),w.k0s(),w.j41(3,"button",65),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG(2);return w.Njj(Ne.logout())}),w.EFF(4,"Logout"),w.k0s()()}}function je(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div",63)(1,"a",66),w.EFF(2,"CONTACT US"),w.k0s(),w.j41(3,"button",65),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG(2);return w.Njj(Ne.logout())}),w.EFF(4,"Logout"),w.k0s()()}}function Ct(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div",63)(1,"button",67),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG(2);return w.Njj(Ne.getPlans())}),w.EFF(2,"UPGRADE"),w.k0s(),w.j41(3,"button",65),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG(2);return w.Njj(Ne.logout())}),w.EFF(4,"Logout"),w.k0s()()}}function kt(ct,Gt){if(1&ct&&(w.j41(0,"div")(1,"div",59)(2,"span",60),w.EFF(3),w.k0s()(),w.j41(4,"div",59)(5,"span",61),w.EFF(6,"To continue using Merren "),w.j41(7,"strong"),w.EFF(8,"please subscribe"),w.k0s(),w.EFF(9," to one of the plan."),w.k0s()(),w.DNE(10,gt,5,0,"div",62)(11,je,5,0,"div",62)(12,Ct,5,0,"div",62),w.k0s()),2&ct){const Te=w.XpG();
1w.R7$(3),w.SpI(" ",1==Te.isTrialUser?"Your Free Trial Has Expired":"Your Subscription Has Expired",""),w.R7$(7),w.Y8G("ngIf",(!Te.planObj.isEnterprisePlan||0==Te.planObj.isEnterprisePlan)&&0==Te.isTrialUser),w.R7$(),w.Y8G("ngIf",Te.planObj.isEnterprisePlan&&1==Te.planObj.isEnterprisePlan&&0==Te.isTrialUser),w.R7$(),w.Y8G("ngIf",1==Te.isTrialUser)}}function We(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div")(1,"div",59)(2,"span",60),w.EFF(3," Your plan has expired!"),w.k0s()(),w.j41(4,"div",59)(5,"span",61),w.EFF(6,"Contact your "),w.j41(7,"strong"),w.EFF(8,"Organization Owner!"),w.k0s()(),w.nrm(9,"br"),w.j41(10,"button",65),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG();return w.Njj(Ne.logout())}),w.EFF(11,"Logout"),w.k0s()()()}}function at(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div",68)(1,"div",69),w.nrm(2,"img",70),w.k0s(),w.j41(3,"div",71)(4,"h5",72)(5,"strong",73),w.EFF(6,"announcing A new feature !"),w.k0s()()(),w.j41(7,"div",71)(8,"h6",74),w.EFF(9,' Projects to organize well. We have introduced "Projects" to hold your surveys, journey and collected data together. It sets up a context for your focused work. Projects can also be shared with specific team members. You can have multiple projects and import surveys from one project to another. '),w.k0s()(),w.j41(10,"div",75)(11,"h6",76)(12,"strong"),w.EFF(13," For now, you just have to give a name for your first project. And you are all set! "),w.k0s()()(),w.j41(14,"div",77)(15,"button",78),w.bIt("click",function(){w.eBV(Te);const Ne=w.XpG();return w.Njj(Ne.showCreateProjectForm=!0)}),w.EFF(16,"Get Started"),w.k0s()()()}}function le(ct,Gt){1&ct&&(w.j41(0,"div",61),w.EFF(1," Project name is required."),w.k0s())}function Xe(ct,Gt){if(1&ct&&(w.j41(0,"div",91),w.DNE(1,le,2,0,"div",92),w.k0s()),2&ct){const Te=w.XpG(2);w.R7$(),w.Y8G("ngIf",Te.f.projectname.errors.required)}}function Mt(ct,Gt){1&ct&&w.nrm(0,"span",93)}function Et(ct,Gt){if(1&ct){const Te=w.RV6();w.j41(0,"div")(1,"div",68)(2,"h2",79),w.EFF(3,"Project Details"),w.k0s(),w.j41(4,"h5",80),w.EFF(5,"Subtitle"),w.k0s(),w.j41(6,"form",81),w.bIt("ngSubmit",function(){w.eBV(Te);const Ne=w.XpG();return w.Njj(Ne.onSubmit())}),w.j41(7,"div",82)(8,"div",83)(9,"label",84),w.EFF(10,"Name "),w.j41(11,"span",85),w.EFF(12,"*"),w.k0s()(),w.nrm(13,"input",86),w.DNE(14,Xe,2,1,"div",87),w.k0s(),w.j41(15,"div",88)(16,"button",89),w.DNE(17,Mt,1,0,"span",90),w.EFF(18," Create "),w.k0s()()()()()()}if(2&ct){const Te=w.XpG();w.R7$(6),w.Y8G("formGroup",Te.form),w.R7$(7),w.Y8G("ngClass",w.eq3(4,K,Te.submitted&&Te.f.projectname.errors)),w.R7$(),w.Y8G("ngIf",Te.submitted&&Te.f.projectname.errors),w.R7$(3),w.Y8G("ngIf",Te.iscreateProject)}}let Jt=(()=>{class ct{constructor(Te,Ze,Ne,Je,Fe,ze){this.router=Te,this.authenticationService=Ze,this.dashboardService=Ne,this.toastr=Je,this.formBuilder=Fe,this.surveyService=ze,this.pageTitle="",this.userName="",this.planObj={},this.isPlanLoading=!0,this.projectList=[],this.isActive=!0,this.showProfileMenu=!1,this.showCreateProjectForm=!1,this.iscreateProject=!1,this.submitted=!1,this.form=new p.gE({projectname:new p.MJ("")}),this.pageLoader=!1,this.title="",this.page=1,this.count=0,this.pageSize=5,this.totalitems=[],this.pageSizes=[5,10,15],this.currentPage=0,this.surveyDetails={},this.defaultImg="https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/user.png"}
1ngOnInit(){this.getUserDetail(),this.getTrialDays(),this.getSurveyDetails(),this.form=this.formBuilder.group({projectname:["",p.k0.required]})}getTrialDays(){const Te=JSON.parse(localStorage.getItem("currentUser"));this.isPlanLoading=!0,this.dashboardService.getTrialDaysCached(Te.userId).subscribe(Ze=>{if(Ze&&null!=Ze){this.planObj=Ze,Object.keys(this.authenticationService.accessibilityData).length<=1&&(this.authenticationService.accessibilityData=Ze),this.isTrialUser=Ze.isTrialUser;let Ne=new Date,Je=new Date(Ze.responseEndDate);this.trialDays=Je.getTime()-Ne.getTime(),this.trialDays=Math.round(this.trialDays/864e5),this.trialDays<=0&&(console.error("Trial period over"),this.planExpiredModal.nativeElement.click())}this.isPlanLoading=!1},Ze=>{this.isPlanLoading=!1})}goto(){this.router.navigateByUrl(`plans/pricing-plan/billing-details/${this.planObj.planId._id}`)}getPlans(){this.router.navigateByUrl("plans/pricing-plans")}getUserDetail(){const Te=JSON.parse(localStorage.getItem("currentUser"));window.productFruitsUser={username:Te.email},this.dashboardService.getUserDetailCached(Te.userName).subscribe(Ze=>{console.log(Ze),this.userName=(Ze[0].first_name?.trim()||"")+" "+(Ze[0].last_name?.trim()||""),this.userProfile=Ze[0].profilePic&&""!==Ze[0].profilePic.trim()?Ze[0].profilePic:null,this.useremail=Ze[0].email},Ze=>{console.log(Ze)})}getProjectList(){const Te=JSON.parse(localStorage.getItem("currentUser"));this.dashboardService.getAllProjectList(Te.email.toString(),this.currentPage,this.pageSize,this.searchProject).subscribe(Ze=>{console.log(Ze),this.projectList=Ze.data,this.count=Ze.count,console.log("Pagination",this.page)},Ze=>{console.log(Ze)})}getActiveProject(){const Te=JSON.parse(localStorage.getItem("currentUser"));this.activeproject={},this.dashboardService.getActiveProject(Te.email.toString()).subscribe(Ze=>{if(Ze&&null!=Ze&&null!=Ze){this.activeproject=Ze;let Ne={projectId:Ze._id,createdBy:Ze.createdBy,journeyId:Ze.journey[0]};localStorage.setItem("activeprojectObj",JSON.stringify(Ne)),console.log(Ne),this.authenticationService.activeprojectDetails=Ze}else this.annoucementModal.nativeElement.click()},Ze=>{console.log(Ze)})}changeProject(Te){const Ze=JSON.parse(localStorage.getItem("currentUser"));this.dashboardService.changeProject({name:Te.name,createdBy:Te.createdBy,_id:Te._id,email:Ze.email}).subscribe(Je=>{console.log(Je);const Fe=this.router.url.startsWith("/dashboard/project-interview")?"/dashboard/project-interview":"/dashboard/project-survey";this.router.navigateByUrl(Fe)},Je=>{console.log(Je)})}get f(){return this.form.controls}onSubmit(){if(this.submitted=!0,this.iscreateProject=!0,this.form.invalid)return void(this.iscreateProject=!1);const Te=JSON.parse(localStorage.getItem("currentUser"));this.dashboardService.moveAllExisitingSurveysIntoProject({name:this.form.controls.projectname.value,email:Te.email,isOldUser:!0}).subscribe(Ne=>{if(this.submitted=!1,this.iscreateProject=!1,Ne&&Ne.status&&400==Ne.status)return this.toastr.error(Ne.message),!1;document.getElementById("createP-close-model").click(),this.form.controls.projectname.setValue(""),this.toastr.success("CHANGES SAVED SUCCESSFULLY"),this.ngOnInit()},Ne=>{document.getElementById("createP-close-model").click(),this.iscreateProject=!1,this.toastr.error(Ne)})}gotoviewallProjects(){this.router.navigateByUrl("/dashboard/project-list")}gotocreatenewProject(){this.router.navigateByUrl("/dashboard/create-project")}gotoaccountManagement(){this.router.navigateByUrl("/dashboard/account-details/profile")}gotoBilling(){this.router.navigateByUrl("/dashboard/transactions")}gotoSupport(){window.open("https://merren.io/support/")}logout(){const Te=JSON.parse(localStorage.getItem("currentUser"));this.authenticationService.logof(Te?.email).subscribe(Ze=>{this.authenticationService.logout()},Ze=>{console.error(Ze),this.toastr.error(Ze?.message)})}getSurveyDetails(){let Te=localStorage.getItem("surveyId");Te&&this.surveyService.getSurveyDetails(Te).then(Ze=>{this.surveyDetails=Ze,console.log(this.surveyDetails)})}goToSurvey(){this.router.navigate(["/dashboard/project-survey"])}toggleProfileMenu(Te){Te.stopPropagation(),this.showProfileMenu=!this.showProfileMenu}closeProfileMenu(){this.showProfileMenu=!1}static#e=this.\u0275fac=function(Ze){return new(Ze||ct)(w.rXU(N.Ix),w.rXU(v.k),w.rXU(ee.I),w.rXU(l.tw),w.rXU(p.ok),w.rXU(W.I))};static#t=this.\u0275cmp=w.VBU({type:ct,selectors:[["app-survey-pages-header"]],viewQuery:function(Ze,Ne){if(1&Ze&&(w.GBs(T,7),w.GBs(e,7)),2&Ze){let Je;w.mGM(Je=w.lsd())&&(Ne.planExpiredModal=Je.first),w.mGM(Je=w.lsd())&&(Ne.annoucementMod
1al=Je.first)}},hostBindings:function(Ze,Ne){1&Ze&&w.bIt("click",function(){return Ne.closeProfileMenu()},!1,w.EBC)},inputs:{pageTitle:"pageTitle",isLogo:"isLogo"},decls:69,vars:16,consts:[["planExpiredModal",""],["annoucementModal",""],[1,"header","m-0","p-0","d-flex","header-height"],[1,"row","col-sm-12","py-1","d-flex","m-0","p-0","my-auto"],[1,"sv-hdr-back",3,"click"],[1,"fa","fa-arrow-left"],[1,"col-sm-4","my-auto","m-0","p-0","sv-hdr-title-col"],["class","ellipsis","style","font-size: 20px !important; font-family: 'Playfair Display', serif; padding-left: 5px;",3,"title",4,"ngIf"],["class","",4,"ngIf"],["class","col-sm-12  p-1 ml-4",4,"ngIf"],[1,"col-sm-8","row","d-flex","m-0","justify-content-end"],[1,"my-auto","d-none"],["type","button","id","dropdownMenu2","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"dropdown-toggle","pt-0",2,"color","black","display","flex","justify-content","space-between"],[1,"dropdowntext","my-auto",2,"width","90%","text-overflow","ellipsis","overflow","hidden"],[1,"fa","fa-angle-down","p-1","m-auto","iconsize",2,"width","10%","display","flex","justify-content","flex-center"],["aria-labelledby","dropdownMenu2",1,"dropdown-menu"],[1,"dropdown-item","bg-white",2,"cursor","text","pointer-events","none !important"],["class"," dropdown-item ;","style","text-overflow: ellipsis;overflow: hidden; cursor: pointer;","data-bs-toggle","tooltip",3,"title","click",4,"ngFor","ngForOf"],[1,"dropdown-divider"],[1,"dropdown-item",2,"cursor","pointer",3,"click"],["class","dropdown-item","style","cursor: pointer;",3,"click",4,"ngIf"],[1,"sv-hdr-mob-avatar",3,"click"],["alt","","class","sv-hdr-avatar-img",3,"src",4,"ngIf"],[4,"ngIf"],["class","d-flex justify-content-end",4,"ngIf"],[1,"sv-hdr-profile-popup",3,"click"],[1,"sv-hdr-profile-link",3,"click"],["width","16","height","16","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"],["cx","12","cy","7","r","4"],["cx","12","cy","12","r","10"],["d","M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"],["x1","12","y1","17","x2","12.01","y2","17"],["d","M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"],["points","16 17 21 12 16 7"],["x1","21","y1","12","x2","9","y2","12"],["class","sv-hdr-profile-backdrop",3,"click",4,"ngIf"],["type","button","data-bs-toggle","modal","data-bs-target","#planExpiredModal",1,"btn","btn-primary","d-none"],["id","planExpiredModal","data-bs-backdrop","static","data-bs-keyboard","false","tabindex","-1","aria-labelledby","planExpiredModalLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal
1-dialog-centered"],[1,"modal-content"],[1,"modal-body","p-5"],["type","button","data-bs-toggle","modal","data-bs-target","#annoucementModal",1,"btn","btn-primary","d-none"],["id","annoucementModal","data-bs-backdrop","static","data-bs-keyboard","false","tabindex","-1","aria-labelledby","annoucementModal Label","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal-lg","modal-dialog-centered"],["type","button","id","createP-close-model","data-bs-dismiss","modal",1,"d-none"],["class","col-sm-12 px-0",4,"ngIf"],[1,"ellipsis",2,"font-size","20px !important","font-family","'Playfair Display', serif","padding-left","5px",3,"title"],[1,""],["href","#"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/logo-print-hd 1.svg","alt",""],[1,"col-sm-12","p-1","ml-4"],[1,"text-left","text-secondary"],["data-bs-toggle","tooltip",1,"dropdown-item",";",2,"text-overflow","ellipsis","overflow","hidden","cursor","pointer",3,"click","title"],["alt","",1,"sv-hdr-avatar-img",3,"src"],[1,"d-flex","justify-content-end"],["title","Close",1,"circle","m-0",3,"click"],[1,"fa","fa-times"],[1,"sv-hdr-profile-backdrop",3,"click"],[1,"col-sm-12","p-0","text-center"],[2,"font-size","20px","font-weight","600"],[2,"font-size","14px"],["class","col-sm-12 px-0 mt-3 text-center",4,"ngIf"],[1,"col-sm-12","px-0","mt-3","text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-secondary","m-2",2,"cursor","pointer",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","m-3",3,"click"],["type","button","href","https://merren.io/connect/","target","_blank",1,"btn","btn-secondary",2,"cursor","pointer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-secondary",2,"cursor","pointer",3,"click"],[1,"col-sm-12","px-0"],[1,"col-sm-12","text-center"],["src","assets/img/announcement.svg","alt","",2,"height","100px"],[1,"col-sm-12","text-center","my-3"],[1,"text-secondary","text-center","text-uppercase"],[2,"letter-spacing","1px"],[1,"text-center",2,"font-size","16px","line-height","30px"],[1,"col-sm-12","text-center","my-3","py-2"],[1,"text-center",2,"font-size","18px"],[1,"col-sm-12","text-center","mt-3"],[1,"btn","btn-primary","px-3",3,"click"],[1,"text-center"],[1,"text-center","pb-4"],[1,"d-flex","col-sm-12",3,"ngSubmit","formGroup"],[1,"col-sm-8","m-auto"],[1,"form-group","col-sm-12","px-0"],["for","nameofProject",2,"font-size","18px"],[1,"text-danger"],["type","text","placeholder","Name","formControlName","projectname","id","proj",1,"form-control","col-sm-12",2,"border-radius","5px","height","55px",3,"ngClass"],["class","invalid-feedback",4,"ngIf"],[1,"text-center","pt-4"],["type","submit",1,"btn","btn-secondary","py-3","col-sm-12","text-uppercase","m-0","rounded",2,"font-size","16px"],["class","spinner-grow spinner-grow-sm mx-3","role","status","aria-hidden","true",4,"ngIf"],[1,"invalid-feedback"],["style","font-size: 14px;",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-grow","spinner-grow-sm","mx-3"]],template:function(Ze,Ne){if(1&Ze){const Je=w.RV6();w.j41(0,"div",2)(1,"div",3)(2,"a",4),w.bIt("click",function(){return w.eBV(Je),w.Njj(Ne.router.navigate(["/dashboard/project-survey"]))}),w.nrm(3,"i",5),w.k0s(),w.j41(4,"div",6),w.DNE(5,H,2,2,"h5",7)(6,pe,3,0,"h1",8)(7,oe,4,0,"div",9),w.k0s(),w.j41(8,"div",10)(9,"div",11)(10,"div",12)(11,"a",13),w.EFF(12),w.k0s(),w.nrm(13,"i",14),w.k0s(),w.j41(14,"div",15)(15,"div",16)(16,"strong"),w.EFF(17,"Recent"),w.k0s()(),w.DNE(18,Ce,2,2,"div",17),w.nrm(19,"div",18),w.j41(20,"div",19),w.bIt("click",function(){return w.eBV(Je),w.Njj(Ne.gotoviewallProjects())}),w.EFF(21,"View all projects"),w.k0s(),w.DNE(22,we,2,0,"div",20),w.k0s()(),w.j41(23,"div",21),w.bIt("click",function(ze){return w.eBV(Je),w.Njj(Ne.toggleProfileMenu(ze))}),w.DNE(24,Pe,1,1,"img",22)(25,Qe,2,2,"span",23),w.k0s(),w.DNE(26,ht,3,0,"div",24),w.k0s()()(),w.j41(27,"div",25),w.bIt("click",function(ze){return w.eBV(Je),w.Njj(ze.stopPropagation())}),w.j41(28,"a",26),w.bIt("click",function(){return w.eBV(Je),Ne.gotoaccountManagement(),w.Njj(Ne.showProfileMenu=!1)}),w.qSk(),w.j41(29,"svg",27),w.nrm(30,"path",28)(31,"circle",29),w.k0s(),w.joV(),w.j41(32,"span"),w.EFF(33,"Account Management"),w.k0s()(),w.j41(34,"a",26),w.bIt("click",function(){return w.eBV(Je),Ne.gotoSupport(),w.Njj(Ne.showProfileMenu=!1)}),w.qSk(),w.j41(35,"svg",27),w.nrm(36,"circle",30)(37,"path",31)(38,"line",32),w.k0s(),w.joV(),w.j41(39,"span"),w.EFF(40,"Supp
1ort"),w.k0s()(),w.j41(41,"a",26),w.bIt("click",function(){return w.eBV(Je),w.Njj(Ne.logout())}),w.qSk(),w.j41(42,"svg",27),w.nrm(43,"path",33)(44,"polyline",34)(45,"line",35),w.k0s(),w.joV(),w.j41(46,"span"),w.EFF(47,"Logout"),w.k0s()()(),w.DNE(48,ot,1,0,"div",36),w.j41(49,"button",37,0),w.EFF(51," Launch demo modal\n"),w.k0s(),w.j41(52,"div",38)(53,"div",39)(54,"div",40)(55,"div",41),w.DNE(56,kt,13,4,"div",23)(57,We,12,0,"div",23),w.k0s()()()(),w.j41(58,"button",42,1),w.EFF(60," Launch demo modal\n"),w.k0s(),w.j41(61,"div",43)(62,"div",44)(63,"div",40)(64,"div",41)(65,"button",45),w.EFF(66,"Logout"),w.k0s(),w.DNE(67,at,17,0,"div",46)(68,Et,19,6,"div",23),w.k0s()()()()}2&Ze&&(w.R7$(5),w.Y8G("ngIf",!Ne.isLogo),w.R7$(),w.Y8G("ngIf",Ne.isLogo),w.R7$(),w.Y8G("ngIf","CLOSED"===(null==Ne.surveyDetails?null:Ne.surveyDetails.status)),w.R7$(5),w.SpI(" ",null==Ne.authenticationService||null==Ne.authenticationService.activeprojectDetails?null:Ne.authenticationService.activeprojectDetails.name,""),w.R7$(6),w.Y8G("ngForOf",Ne.projectList),w.R7$(4),w.Y8G("ngIf","viewer"!=Ne.authenticationService.userRole),w.R7$(2),w.Y8G("ngIf",Ne.userProfile),w.R7$(),w.Y8G("ngIf",!Ne.userProfile),w.R7$(),w.Y8G("ngIf",Ne.router.url.startsWith("/survey/aisurvey")||Ne.router.url.startsWith("/discussionguide")),w.R7$(),w.AVh("show",Ne.showProfileMenu),w.R7$(21),w.Y8G("ngIf",Ne.showProfileMenu),w.R7$(8),w.Y8G("ngIf",1==(null==Ne.planObj||null==Ne.planObj.userId?null:Ne.planObj.userId.isOrganizationOwner)),w.R7$(),w.Y8G("ngIf",0==(null==Ne.planObj||null==Ne.planObj.userId?null:Ne.planObj.userId.isOrganizationOwner)),w.R7$(10),w.Y8G("ngIf",0==Ne.showCreateProjectForm),w.R7$(),w.Y8G("ngIf",1==Ne.showCreateProjectForm))},dependencies:[B.YU,B.Sq,B.bT,p.qT,p.me,p.BC,p.cb,p.j4,p.JD],styles:['@charset "UTF-8";@media (min-width: 641px){.sv-hdr-back[_ngcontent-%COMP%], .sv-hdr-mob-avatar[_ngcontent-%COMP%]{display:none!important}}.sv-hdr-profile-popup[_ngcontent-%COMP%]{display:none}.sv-hdr-mob-avatar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;max-width:32px;border-radius:50%;overflow:hidden;flex-shrink:0;cursor:pointer}.sv-hdr-avatar-img[_ngcontent-%COMP%]{display:block;width:32px;height:32px;min-width:32px;min-height:32px;max-width:32px;max-height:32px;object-fit:cover;border-radius:50%;flex-shrink:0}.sv-hdr-mob-avatar[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#6c2bd9;color:#fff;font-size:11px;font-weight:700;text-transform:uppercase;flex-shrink:0}@media (max-width: 640px){.header[_ngcontent-%COMP%]{background:#191b21!important;margin-top:30px!important;margin-bottom:10px!important;max-width:100%;overflow:hidden;box-sizing:border-box}.row.col-sm-12[_ngcontent-%COMP%]{flex-wrap:nowrap!important;align-items:center!important;margin-left:0!important;margin-right:0!important}.col-sm-8[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.circle[_ngcontent-%COMP%]{display:none!important}.sv-hdr-back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;color:#fff;font-size:14px;cursor:pointer;flex-shrink:0;text-decoration:none}.sv-hdr-title-col[_ngcontent-%COMP%]{flex:1 1 auto!important;max-width:none!important;min-width:0;align-self:center}.sv-hdr-title-col[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:20px!important;font-weight:400!important;color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:7px 0 0!important}.col-sm-8[_ngcontent-%COMP%]{flex:0 0 auto!important;max-width:none!important;width:auto!important;padding:0!important}.sv-hdr-profile-popup[_ngcontent-%COMP%]{position:fixed;top:99px;right:12px;
1min-width:200px;background:#1c1d26;border:1px solid rgba(255,255,255,.1);border-radius:12px;z-index:700;padding:6px 0;box-shadow:0 8px 24px #00000080}.sv-hdr-profile-popup.show[_ngcontent-%COMP%]{display:block}.sv-hdr-profile-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 16px;color:#d1d5db;font-size:14px;font-weight:500;text-decoration:none;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.05)}.sv-hdr-profile-link[_ngcontent-%COMP%]:last-child{border-bottom:none}.sv-hdr-profile-link[_ngcontent-%COMP%]:hover{color:#f79522;text-decoration:none}.sv-hdr-profile-link[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{flex-shrink:0}.sv-hdr-profile-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:699}}.profilePhoto[_ngcontent-%COMP%]{height:50px!important;width:50px!important;object-position:center;object-fit:cover}.header-height[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 18px!important;flex-wrap:wrap;bottom:1px solid #d8d8d8}@media (max-width: 768px){.header[_ngcontent-%COMP%]{height:64px!important;background:#191b21!important}}.click-btn[_ngcontent-%COMP%]{color:#fff;cursor:pointer}.click-btn[_ngcontent-%COMP%]:hover{color:#e6e6e6;text-decoration:underline;cursor:pointer;font-size:12px}.user[_ngcontent-%COMP%]{font-size:17px;text-overflow:ellipsis;overflow:hidden}.usermail[_ngcontent-%COMP%]{font-size:12px;text-overflow:ellipsis;overflow:hidden}.dropdown-toggle[_ngcontent-%COMP%]{width:250px;border:1px solid rgb(183,187,192);border-radius:5px;padding-left:25px}.dropdown-toggle[_ngcontent-%COMP%]:after{border-top:0}.dropdown-item.active[_ngcontent-%COMP%], .dropdown-item[_ngcontent-%COMP%]:active{color:#212529;text-decoration:none;background-color:transparent}.dropdown-menu[_ngcontent-%COMP%]{width:250px}.userplan[_ngcontent-%COMP%]{font-weight:500;font-size:13px;font-style:lato}.upbutton[_ngcontent-%COMP%]{color:#2285f7;font-weight:800;font-size:14px;font-style:lato}@media only screen and (width: 1366px){.ellipsis[_ngcontent-%COMP%]{font-size:1.75rem}.user[_ngcontent-%COMP%]{font-size:24px}.usermail[_ngcontent-%COMP%]{font-size:20px}.userplan[_ngcontent-%COMP%]{font-size:18px}.profilePhoto[_ngcontent-%COMP%]{height:45px!important;width:45px!important}.dropdown-toggle[_ngcontent-%COMP%]{width:350px;height:56px}.dropdowntext[_ngcontent-%COMP%]{font-size:25px;color:#212529}.dropdown-menu[_ngcontent-%COMP%]{width:350px}.dropdown-item[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.iconsize[_ngcontent-%COMP%]{font-size:30px}}@media only screen and (width: 1600px){.ellipsis[_ngcontent-%COMP%]{font-size:2.75rem}.user[_ngcontent-%COMP%]{font-size:24px}.usermail[_ngcontent-%COMP%]{font-size:20px}.userplan[_ngcontent-%COMP%]{font-size:18px}.profilePhoto[_ngcontent-%COMP%]{height:65px!important;width:65px!important}.dropdown-toggle[_ngcontent-%COMP%]{width:350px;height:56px}.dropdowntext[_ngcontent-%COMP%]{font-size:26px;color:#212529}.dropdown-menu[_ngcontent-%COMP%]{width:350px}.dropdown-item[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.iconsize[_ngcontent-%COMP%]{font-size:30px}}@media only screen and (width: 1920px){.ellipsis[_ngcontent-%COMP%]{font-size:2.75rem}.user[_ngcontent-%COMP%]{font-size:24px}.usermail[_ngcontent-%COMP%]{font-size:20px}.userplan[_ngcontent-%COMP%]{font-size:18px}.profilePhoto[_ngcontent-%COMP%]{height:65px!important;width:65px!important}.dropdown-toggle[_ngcontent-%COMP%]{width:350px;height:56px}.dropdowntext[_ngcontent-%COMP%]{font-size:26px;color:#212529}.dropdown-menu[_ngcontent-%COMP%]{width:350px}.dropdown-item[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.iconsize[_ngcontent-%COMP%]{font-size:30px}}@media only screen and (width: 2256px){.ellipsis[_ngcontent-%COMP%]{font-size:3.75rem}.user[_ngcontent-%COMP%]{font-size:42px}.usermail[_ngcontent-%COMP%]{font-size:36px}.userplan[_ngcontent-%COMP%]{font-size:30px}.profilePhoto[_ngcontent-%COMP%]{height:105px!important;width:105px!important}.dropdown-toggle[_ngcontent-%COMP%]{width:450px;height:65px}.dropdowntext[_ngcontent-%COMP%]{font-size:36px;color:#212529}.dropdown-menu[_ngcontent-%COMP%]{width:450px}.dropdown-item[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.iconsize[_ngcontent-%COMP%]{font-size:30px}}@media only screen and (width: 2736px){.ellipsis[_ngcontent-%COMP%]{font-size:3.75rem}.user[_ngcontent-%COMP%]{font-size:42px}.usermail[_ngcontent-%COMP%]{font-size:36px}.userplan[_ngcontent-%COMP%]{font-size:30px}.profilePhoto[_ngcontent-%COMP%]{height:105px!important;width:105px!important}.dropdown-toggle[_ngcontent-%COMP%]{width:450px;height:75px}.dropdowntext[_ngcontent-%COMP%]{font-size:36px;color:#212529}.dropdown-menu[_ngcontent-%COMP%]{width:450px}.dropdown-item[_ngcontent-%COMP%]{font-size:40px;font-weight:500}.iconsize[_ngcontent-%COMP%]{font-size:36px}}@media only screen and (width: 2560px){.ellipsis[_ngcontent-%COMP%]{font-size:3.75rem}.user[_ngcontent-%COMP%]{font-size:42px}.usermail[_ngcontent-%COMP%]{font-size:36px}.userplan[_ngcontent-%COMP%]{font-size:30px}.profilePhoto[_ngcontent-%COMP%]{height:105px!important;width:105px!important}.dropdown-toggle[_ngcontent-%COMP%]{width:450px;height:75px}.dropdowntext[_ngcontent-%COMP%]{font-size:36px;color:#212529}.dropdown-menu[_ngcontent-%COMP%]{width:450px}.dropdown-item[_ngcontent-%COMP%]{font-size:40px;font-weight:500}.iconsize[_ngcontent-%COMP%]{font-size:46px}}@media only screen and (width: 3200px){.ellipsis[_ngcontent-%COMP%]{font-size:3.75rem}.user[_ngcontent-%COMP%], .usermail[_ngcontent-%COMP%]{font-size:46px}.userplan[_ngcontent-%COMP%]{font-size:40px}.profilePhoto[_ngcontent-%COMP%]{height:125px!important;width:125px!important}.dropdown-toggle[_ngcontent-%COMP%]{width:550px;height:100px}.dropdowntext[_ngcontent-%COMP%]{font-size:46px;color:#212529}.dropdown-menu[_ngcontent-%COMP%]{width:550px}.dropdown-item[_ngcontent-%COMP%]{font-size:40px;font-weight:500}.iconsize[_ngcontent-%COMP%]{font-size:46px}}@media only screen and (width: 3840px){.ellipsis[_ngcontent-%COMP%]{font-size:4.75rem}.user[_ngcontent-%COMP%]{font-size:52px}.usermail[_ngcontent-%COMP%]{font-size:46px}.userplan[_ngcontent-%COMP%]{font-size:40px}.profilePhoto[_ngcontent-%COMP%]{height:125px!important;width:125px!important}.dropdown-toggle[_ngcontent-%COMP%]{width:550px;height:100px}.dropdowntext[_ngcontent-%COMP%]{font-size:45px;color:#212529}.dropdown-menu[_ngcontent-%COMP%]{width:550px}.dropdown-item[_ngcontent-%COMP%]{font-size:40px;font-weight:500}.iconsize[_ngcontent-%COMP%]{font-size:48px}}.ellipsis[_ngcontent-%COMP%]{display:block;max-width:100%;height:30px;margin:0 auto;font-size:24px;line-height:1;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
1.circle[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;border:2px solid #BCBCBC;display:flex;align-items:center;justify-content:center;font-weight:700;color:#bcbcbc;cursor:pointer;transition:background .2s,border-color .2s,color .2s}.circle[_ngcontent-%COMP%]:hover{background:#ffffff14;border-color:#fff;color:#fff}.borderbottobm[_ngcontent-%COMP%]{border-top:1px solid #272B37}']})}return ct})()},8503:(en,Me,R)=>{"use strict";R.d(Me,{J:()=>Xi});var p=R(7468),w=R(7673),N=R(4336),v=R(4438),ee=R(1722),l=R(5794),W=R(1188),B=R(177),T=R(9417);const e=["scrollable"];function K(Se,it){1&Se&&(v.j41(0,"div",42)(1,"h2"),v.EFF(2,"No data available"),v.k0s()())}function H(Se,it){1&Se&&(v.j41(0,"span"),v.EFF(1,", "),v.k0s())}function pe(Se,it){if(1&Se&&(v.j41(0,"span",45),v.EFF(1),v.DNE(2,H,2,0,"span",47),v.k0s()),2&Se){const te=it.$implicit,ce=it.last;v.R7$(),v.SpI(" ",te.response,""),v.R7$(),v.Y8G("ngIf",!ce)}}function oe(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",43),v.bIt("click",function(){const Z=v.eBV(te).index,ie=v.XpG(2);return v.Njj(ie.selectInterview(Z))}),v.j41(1,"p",44),v.EFF(2),v.k0s(),v.j41(3,"p",45),v.EFF(4),v.nI1(5,"date"),v.nI1(6,"number"),v.k0s(),v.DNE(7,pe,3,2,"span",46),v.nI1(8,"slice"),v.k0s()}if(2&Se){const te=it.$implicit,ce=it.index,Z=v.XpG(2);v.AVh("active",Z.selectedInterview===ce),v.R7$(),v.AVh("active-name",Z.selectedInterview===ce),v.R7$(),v.SpI(" ",te.user_name||"Loading..."," "),v.R7$(2),v.Lme(" ",v.i5U(5,8,te.createdAt,"MMM d, yyyy")," \u2022 ",v.i5U(6,11,te.interviewTime,"1.2-2")," min "),v.R7$(3),v.Y8G("ngForOf",v.brH(8,14,te.preInterviewResponses,0,2))}}function Ce(Se,it){1&Se&&(v.j41(0,"div",48),v.EFF(1,"Loading..."),v.k0s())}function we(Se,it){if(1&Se&&(v.j41(0,"div",49)(1,"p"),v.EFF(2,"Interview ID: "),v.j41(3,"strong"),v.EFF(4),v.k0s()()()),2&Se){const te=v.XpG(2);v.R7$(4),v.JRh(te.index)}}function Pe(Se,it){1&Se&&(v.j41(0,"div",50)(1,"div",51)(2,"div",52),v.nrm(3,"div",53),v.j41(4,"strong"),v.EFF(5,"Loading..."),v.k0s()()()())}function Qe(Se,it){if(1&Se&&(v.j41(0,"div",56)(1,"span",57),v.EFF(2),v.k0s(),v.j41(3,"p"),v.EFF(4),v.k0s()()),2&Se){const te=it.$implicit;v.Y8G("ngClass",te.role),v.R7$(),v.Y8G("ngClass",te.role),v.R7$(),v.SpI(" ",te.sender," "),v.R7$(2),v.JRh(te.text)}}function ht(Se,it){if(1&Se&&(v.j41(0,"div",54),v.DNE(1,Qe,5,4,"div",55),v.k0s()),2&Se){const te=v.XpG(2);v.R7$(),v.Y8G("ngForOf",te.transcriptMessages)}}function ot(Se,it){1&Se&&(v.j41(0,"div",42)(1,"h2"),v.EFF(2,"No data available"),v.k0s()())}function gt(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",27)(1,"div",28)(2,"div",29)(3,"div",30)(4,"div",31)(5,"h3"),v.EFF(6,"Interviews"),v.k0s()(),v.DNE(7,K,3,0,"div",32),v.j41(8,"div",33,0),v.bIt("scrolled",function(){v.eBV(te);const Z=v.XpG();return v.Njj(Z.formattedResponces())}),v.DNE(10,oe,9,18,"div",34)(11,Ce,2,0,"div",35),v.k0s()()()(),v.j41(12,"div",36)(13,"header",37)(14,"h2"),v.EFF(15,"Interview Transcript"),v.k0s(),v.nrm(16,"div",38),v.k0s(),v.DNE(17,we,5,1,"div",39)(18,Pe,6,0,"div",40)(19,ht,2,1,"div",41)(20,ot,3,0,"div",32),v.k0s()()}if(2&Se){const te=v.sdS(9),ce=v.XpG();v.R7$(7),v.Y8G("ngIf",!ce.loading&&0===ce.insterviewList.length),v.R7$(),v.Y8G("infiniteScrollDistance",2)("infiniteScrollThrottle",100)("infiniteScrollContainer",te),v.R7$(2),v.Y8G("ngForOf",ce.insterviewList),v.R7$(),v.Y8G("ngIf",ce.loading),v.R7$(6),v.Y8G("ngIf",0!=ce.transcriptMessages.length),v.R7$(),v.Y8G("ngIf",ce.isLoading||ce.loading),v.R7$(),v.Y8G("ngIf",!ce.isLoading),v.R7$(),v.Y8G("ngIf",!ce.isLoading&&!ce.loading&&0===ce.insterviewList.length)}}function je(Se,it){1&Se&&(v.j41(0,"div",42)(1,"h2"),v.EFF(2,"No data available"),v.k0s()())}function Ct(Se,it){1&Se&&(v.j41(0,"span"),v.EFF(1,", "),v.k0s())}function kt(Se,it){if(1&Se&&(v.j41(0,"span",45),v.EFF(1),v.DNE(2,Ct,2,0,"span",47),v.k0s()),2&Se){const te=it.$implicit,ce=it.last;v.R7$(),v.SpI(" ",te.response,""),v.R7$(),v.Y8G("ngIf",!ce)}}function We(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",43),v.bIt("click",function(){const Z=v.eBV(te).index,ie=v.XpG(2);return v.Njj(ie.selectInterview(Z))}),v.j41(1,"p",44),v.EFF(2),v.k0s(),v.j41(3,"p",45),v.EFF(4),v.nI1(5,"date"),v.nI1(6,"number"),v.k0s(),v.DNE(7,kt,3,2,"span",46),v.nI1(8,"slice"),v.k0s()}
1if(2&Se){const te=it.$implicit,ce=it.index,Z=v.XpG(2);v.AVh("active",Z.selectedInterview===ce),v.R7$(),v.AVh("active-name",Z.selectedInterview===ce),v.R7$(),v.SpI(" ",te.user_name||"Loading..."," "),v.R7$(2),v.Lme(" ",v.i5U(5,8,te.createdAt,"MMM d, yyyy")," \u2022 ",v.i5U(6,11,te.interviewTime,"1.2-2")," min "),v.R7$(3),v.Y8G("ngForOf",v.brH(8,14,te.preInterviewResponses,0,2))}}function at(Se,it){1&Se&&(v.j41(0,"div",48),v.EFF(1,"Loading..."),v.k0s())}function le(Se,it){if(1&Se&&(v.j41(0,"div")(1,"p")(2,"strong"),v.EFF(3),v.k0s()(),v.j41(4,"p")(5,"strong"),v.EFF(6,"A- "),v.k0s(),v.EFF(7),v.k0s()()),2&Se){const te=it.$implicit;v.R7$(3),v.SpI("Q. ",te.question,""),v.R7$(4),v.JRh(te.response)}}function Xe(Se,it){if(1&Se&&(v.j41(0,"div",63)(1,"h3"),v.EFF(2,"Pre-Interview Questions"),v.k0s(),v.DNE(3,le,8,2,"div",64),v.k0s()),2&Se){const te=v.XpG(2);v.R7$(3),v.Y8G("ngForOf",null==te.insterviewList[te.selectedInterview]?null:te.insterviewList[te.selectedInterview].preInterviewResponses)}}function Mt(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"li",68),v.bIt("click",function(){const Z=v.eBV(te).index,ie=v.XpG(3);return v.Njj(ie.setActive(Z))}),v.EFF(1),v.k0s()}if(2&Se){const te=it.$implicit,ce=it.index,Z=v.XpG(3);v.AVh("active",Z.activeIndex===ce),v.R7$(),v.SpI(" ",te.question," ")}}function Et(Se,it){if(1&Se&&(v.j41(0,"aside",65)(1,"h3",66),v.EFF(2,"Key Information Areas"),v.k0s(),v.j41(3,"ul"),v.DNE(4,Mt,2,3,"li",67),v.k0s()()),2&Se){const te=v.XpG(2);v.R7$(4),v.Y8G("ngForOf",te.questionSummaries)}}function Jt(Se,it){1&Se&&(v.j41(0,"div",69)(1,"h3",70),v.EFF(2,"No data available"),v.k0s()())}function ct(Se,it){1&Se&&(v.j41(0,"div",50)(1,"div",51)(2,"div",71)(3,"div",53)(4,"span",72),v.EFF(5,"Loading..."),v.k0s()(),v.j41(6,"strong"),v.EFF(7,"Loading..."),v.k0s()()()())}function Gt(Se,it){if(1&Se&&(v.j41(0,"p"),v.EFF(1),v.k0s()),2&Se){const te=it.$implicit;v.R7$(),v.SpI(' "',te,'" ')}}function Te(Se,it){if(1&Se&&(v.j41(0,"section",77)(1,"h4"),v.EFF(2,"KEY QUOTES"),v.k0s(),v.DNE(3,Gt,2,1,"p",64),v.k0s()),2&Se){const te=v.XpG(3);v.R7$(3),v.Y8G("ngForOf",null==te.questionSummaries[te.activeIndex]?null:te.questionSummaries[te.activeIndex].quotes)}}function Ze(Se,it){if(1&Se&&(v.j41(0,"main",73)(1,"h2"),v.EFF(2),v.k0s(),v.j41(3,"section",74)(4,"h4"),v.EFF(5,"SUMMARY"),v.k0s(),v.j41(6,"p",75),v.EFF(7),v.k0s()(),v.DNE(8,Te,4,1,"section",76),v.k0s()),2&Se){const te=v.XpG(2);v.R7$(2),v.JRh(null==te.questionSummaries[te.activeIndex]?null:te.questionSummaries[te.activeIndex].question),v.R7$(5),v.SpI(" ",null!=te.questionSummaries[te.activeIndex]&&null!=te.questionSummaries[te.activeIndex].response&&te.questionSummaries[te.activeIndex].response.trim()?null==te.questionSummaries[te.activeIndex]?null:te.questionSummaries[te.activeIndex].response:"No Summary",""),v.R7$(),v.Y8G("ngIf",(null==te.questionSummaries[te.activeIndex]||null==te.questionSummaries[te.activeIndex].quotes?null:te.questionSummaries[te.activeIndex].quotes.length)>0)}}function Ne(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",27)(1,"div",28)(2,"div",29)(3,"div",30)(4,"div",31)(5,"h3"),v.EFF(6,"Interviews"),v.k0s()(),v.DNE(7,je,3,0,"div",32),v.j41(8,"div",33,0),v.bIt("scrolled",function(){v.eBV(te);const Z=v.XpG();return v.Njj(Z.formattedResponces())}),v.DNE(10,We,9,18,"div",34)(11,at,2,0,"div",35),v.k0s()()()(),v.j41(12,"div",36)(13,"div")(14,"header",37)(15,"h2"),v.EFF(16,"Interview Summary"),v.k0s()(),v.DNE(17,Xe,4,1,"div",58),v.j41(18,"div",59),v.DNE(19,Et,5,1,"aside",60)(20,Jt,3,0,"div",61)(21,ct,8,0,"div",40)(22,Ze,9,3,"main",62),v.k0s()()()()}if(2&Se){const te=v.sdS(9),ce=v.XpG();v.R7$(7),v.Y8G("ngIf",!(ce.loading||ce.insterviewList&&0!==ce.insterviewList.length)),v.R7$(),v.Y8G("infiniteScrollDistance",2)("infiniteScrollThrottle",100)("infiniteScrollContainer",te),v.R7$(2),v.Y8G("ngForOf",ce.insterviewList),v.R7$(),v.Y8G("ngIf",ce.loading),v.R7$(6),v.Y8G("ngIf",(null==ce.insterviewList[ce.selectedInterview]||null==ce.insterviewList[ce.selectedInterview].preInterviewResponses?null:ce.insterviewList[ce.selectedInterview].preInterviewResponses.length)&&!ce.loadingSummary&&ce.questionSummaries.length>0),v.R7$(2),v.Y8G("ngIf",!ce.loadingSummary&&ce.questionSummaries.length>0),v.R7$(),v.Y8G("ngIf",!ce.loading&&!ce.loadingSummary&&0===ce.questionSummaries.length),v.R7$(),v.Y8G("ngIf",ce.loadingSummary),v.R7$(),v.Y8G("ngIf",ce.questionSummaries.length>0&&!ce.loadingSummary)}}function Je(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",88)(1,"button",89),v.bIt("click",function(){v.eBV(te);const Z=v.XpG(2);return v.Njj(Z.refreshCrossInterviewsummarize())}),v.nrm(2,"i",90),v.k0s()()}}function Fe(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"span",93),v.bIt("click",function(){const Z=v.eBV(te).$implicit,ie=v.XpG(3);return v.Njj(ie.updateActiveContent(Z))}),v.EFF(1),v.k0s()}
1if(2&Se){const te=it.$implicit,ce=v.XpG(3);v.AVh("active",ce.activeKey===te),v.R7$(),v.SpI(" ",te," ")}}function ze(Se,it){1&Se&&(v.j41(0,"div",42)(1,"h3",70),v.EFF(2,"No data available"),v.k0s()())}function ft(Se,it){if(1&Se&&(v.j41(0,"div",91)(1,"h4"),v.EFF(2,"Key Information Areas"),v.k0s(),v.DNE(3,Fe,2,3,"span",92)(4,ze,3,0,"div",32),v.k0s()),2&Se){const te=v.XpG(2);v.R7$(3),v.Y8G("ngForOf",te.mergedSummaryKeys),v.R7$(),v.Y8G("ngIf",!te.crossLoading&&0===te.mergedSummaryKeys.length)}}function Re(Se,it){if(1&Se&&(v.j41(0,"div")(1,"h6",104),v.EFF(2,"Sentiment:"),v.k0s(),v.j41(3,"p",108),v.EFF(4),v.k0s()()),2&Se){const te=v.XpG().$implicit;v.R7$(4),v.JRh(te.sentiment)}}function rt(Se,it){if(1&Se&&(v.j41(0,"p"),v.EFF(1),v.k0s()),2&Se){const te=it.$implicit;v.R7$(),v.SpI(" \u201c",te,"\u201d ")}}function Ot(Se,it){if(1&Se&&(v.j41(0,"div",109)(1,"h6",104),v.EFF(2,"Representative Quotes:"),v.k0s(),v.DNE(3,rt,2,1,"p",64),v.k0s()),2&Se){const te=v.XpG().$implicit;v.R7$(3),v.Y8G("ngForOf",te.user_quotes)}}function It(Se,it){if(1&Se&&(v.j41(0,"li",113),v.EFF(1),v.k0s()),2&Se){const te=it.$implicit;v.R7$(),v.JRh(te)}}function on(Se,it){if(1&Se&&(v.j41(0,"div",110)(1,"h6",104),v.EFF(2,"Suggestions:"),v.k0s(),v.j41(3,"ul",111),v.DNE(4,It,2,1,"li",112),v.k0s()()),2&Se){const te=v.XpG().$implicit;v.R7$(4),v.Y8G("ngForOf",te.suggestions)}}function ue(Se,it){if(1&Se&&(v.j41(0,"div",102)(1,"h5",103),v.EFF(2),v.k0s(),v.DNE(3,Re,5,1,"div",47),v.j41(4,"h6",104),v.EFF(5,"Summary:"),v.k0s(),v.j41(6,"p",105),v.EFF(7),v.k0s(),v.DNE(8,Ot,4,1,"div",106)(9,on,5,1,"div",107),v.k0s()),2&Se){const te=it.$implicit;v.R7$(2),v.JRh(te.label),v.R7$(),v.Y8G("ngIf",te.sentiment),v.R7$(4),v.SpI(" ",te.summary||"No theme summary available"," "),v.R7$(),v.Y8G("ngIf",null==te.user_quotes?null:te.user_quotes.length),v.R7$(),v.Y8G("ngIf",null==te.suggestions?null:te.suggestions.length)}}function U(Se,it){if(1&Se&&(v.j41(0,"section",100),v.DNE(1,ue,10,5,"div",101),v.k0s()),2&Se){const te=v.XpG(4);v.R7$(),v.Y8G("ngForOf",te.themes)}}function Oe(Se,it){if(1&Se&&(v.j41(0,"div",97)(1,"h3"),v.EFF(2),v.k0s(),v.j41(3,"section",74)(4,"h4"),v.EFF(5,"Cross-Interview Summary"),v.k0s(),v.j41(6,"p",98),v.EFF(7),v.k0s()(),v.DNE(8,U,2,1,"section",99),v.k0s()),2&Se){const te=v.XpG(3);v.R7$(2),v.JRh(te.activeKey),v.R7$(5),v.SpI(" ",(null==te.interviewSummaries[0]?null:te.interviewSummaries[0].response)||"No Summary",""),v.R7$(),v.Y8G("ngIf",te.themes.length>0)}}function Ue(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",114)(1,"h4"),v.EFF(2,"Key Quotes"),v.k0s(),v.j41(3,"textarea",115),v.mxI("ngModelChange",function(Z){v.eBV(te);const ie=v.XpG(3);return v.DH7(ie.quote1,Z)||(ie.quote1=Z),v.Njj(Z)}),v.k0s(),v.j41(4,"textarea",116),v.mxI("ngModelChange",function(Z){v.eBV(te);const ie=v.XpG(3);return v.DH7(ie.quote2,Z)||(ie.quote2=Z),v.Njj(Z)}),v.k0s()()}if(2&Se){const te=v.XpG(3);v.R7$(3),v.R50("ngModel",te.quote1),v.R7$(),v.R50("ngModel",te.quote2)}}function $e(Se,it){if(1&Se&&(v.j41(0,"div",94),v.DNE(1,Oe,9,3,"div",95)(2,Ue,5,2,"div",96),v.k0s()),2&Se){const te=v.XpG(2);v.R7$(),v.Y8G("ngIf",!te.isEditing),v.R7$(),v.Y8G("ngIf",te.isEditing)}}function Ve(Se,it){1&Se&&(v.j41(0,"div",69)(1,"h3",70),v.EFF(2,"No data available"),v.k0s()())}function lt(Se,it){1&Se&&(v.j41(0,"div",50)(1,"div",51)(2,"div",71)(3,"div",53)(4,"span",72),v.EFF(5,"Loading..."),v.k0s()(),v.j41(6,"strong"),v.EFF(7," Analyzing responses across interviews..."),v.k0s()()()())}function Rt(Se,it){if(1&Se&&(v.j41(0,"div",78)(1,"div",79)(2,"div",80)(3,"div",81)(4,"h3",82),v.nrm(5,"i",83),v.EFF(6," Cross-Interview Analysis"),v.k0s()(),v.DNE(7,Je,3,0,"div",84),v.k0s(),v.j41(8,"div",85),v.DNE(9,ft,5,2,"div",86)(10,$e,3,2,"div",87)(11,Ve,3,0,"div",61)(12,lt,8,0,"div",40),v.k0s()()()),2&Se){const te=v.XpG();v.R7$(7),v.Y8G("ngIf",!te.crossLoading&&te.mergedSummaryKeys.length>0),v.R7$(2),v.Y8G("ngIf",!te.crossLoading&&te.mergedSummaryKeys.length>0),v.R7$(),v.Y8G("ngIf",!te.crossLoading&&te.mergedSummaryKeys.length>0),v.R7$(),v.Y8G("ngIf",!te.crossLoading&&0===te.mergedSummaryKeys.length),v.R7$(),v.Y8G("ngIf",te.crossLoading)}}function nt(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"button",124),v.bIt("click",function(){v.eBV(te);const Z=v.XpG(2);return v.Njj(Z.downloadReport())}),v.nrm(1,"i",125),v.EFF(2,"Download Report"),v.k0s()}}function xt(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"button",126),v.bIt("click",function(){v.eBV(te);const Z=v.XpG(2);return v.Njj(Z.generateAIReport())}),v.nrm(1,"i",127),v.EFF(2),v.k0s()}if(2&Se){const te=v.XpG(2);v.Y8G("disabled",te.generatingAIReport),v.R7$(2),v.SpI(" ",te.generatingAIReport?"Generating...":"Generate AI Report"," ")}}function St(Se,it){1&Se&&(v.j41(0,"span"),v.EFF(1,"Ask"),v.k0s())}function Ht(Se,it){1&Se&&(v.j41(0,"span"),v.EFF(1,"Searching..."),v.k0s())}function Pt(Se,it){if(1&Se&&(v.j41(0,"h3",134),v.EFF(1),v.k0s()),2&Se){const te=v.XpG(3);v.R7$(),v.SpI(" ",te.noDataMessage," ")}}function fn(Se,it){if(1&Se&&(v.j41(0,"li",140),v.EFF(1),v.k0s()),2&Se){const te=it.$
1implicit;v.R7$(),v.SpI(" ",te.insight," ")}}function kn(Se,it){if(1&Se&&(v.j41(0,"div")(1,"ul"),v.DNE(2,fn,2,1,"li",144),v.k0s()()),2&Se){const te=v.XpG().$implicit;v.R7$(2),v.Y8G("ngForOf",te.patterns)}}function an(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",136)(1,"p",137),v.EFF(2,"Create New Slide :"),v.k0s(),v.j41(3,"label"),v.EFF(4,"Slide Title"),v.k0s(),v.j41(5,"input",138),v.mxI("ngModelChange",function(Z){const ie=v.eBV(te).$implicit;return v.DH7(ie.header,Z)||(ie.header=Z),v.Njj(Z)}),v.k0s(),v.j41(6,"div",139)(7,"p",140),v.EFF(8,"Preview content:"),v.k0s(),v.DNE(9,kn,3,1,"div",47),v.k0s(),v.j41(10,"div",141)(11,"button",142),v.bIt("click",function(){v.eBV(te);const Z=v.XpG(4);return v.Njj(Z.cancelSlide())}),v.EFF(12,"Cancel"),v.k0s(),v.j41(13,"button",143),v.bIt("click",function(){v.eBV(te);const Z=v.XpG(4);return v.Njj(Z.createnewSlide())}),v.EFF(14,"Create Slide"),v.k0s()()()}if(2&Se){const te=it.$implicit;v.R7$(5),v.R50("ngModel",te.header),v.R7$(4),v.Y8G("ngIf",null==te.patterns?null:te.patterns.length)}}function qt(Se,it){if(1&Se&&(v.qex(0),v.DNE(1,an,15,2,"div",135),v.bVm()),2&Se){const te=v.XpG(3);v.R7$(),v.Y8G("ngForOf",te.previewSlides)}}function wi(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",128)(1,"p"),v.nrm(2,"i",129),v.EFF(3," Ask a question to generate content"),v.k0s(),v.j41(4,"div",130)(5,"input",131),v.mxI("ngModelChange",function(Z){v.eBV(te);const ie=v.XpG(2);return v.DH7(ie.askQuestion,Z)||(ie.askQuestion=Z),v.Njj(Z)}),v.bIt("keyup.enter",function(){v.eBV(te);const Z=v.XpG(2);return v.Njj(Z.ask())}),v.k0s(),v.j41(6,"button",132),v.bIt("click",function(){v.eBV(te);const Z=v.XpG(2);return v.Njj(Z.ask())}),v.DNE(7,St,2,0,"span",47)(8,Ht,2,0,"span",47),v.k0s()(),v.DNE(9,Pt,2,1,"h3",133)(10,qt,2,1,"ng-container",47),v.k0s()}if(2&Se){const te=v.XpG(2);v.R7$(5),v.R50("ngModel",te.askQuestion),v.R7$(),v.Y8G("disabled",te.loading||!(null!=te.askQuestion&&te.askQuestion.trim())),v.R7$(),v.Y8G("ngIf",!te.loading),v.R7$(),v.Y8G("ngIf",te.loading),v.R7$(),v.Y8G("ngIf",te.noDataMessage),v.R7$(),v.Y8G("ngIf",!te.noDataMessage)}}function $n(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div")(1,"label",147)(2,"input",151),v.mxI("ngModelChange",function(Z){const ie=v.eBV(te).$implicit,Ae=v.XpG(3);return v.DH7(Ae.selectedSlides[ie],Z)||(Ae.selectedSlides[ie]=Z),v.Njj(Z)}),v.k0s(),v.j41(3,"span"),v.EFF(4),v.k0s()()()}if(2&Se){const te=it.$implicit,ce=v.XpG(3);v.R7$(2),v.R50("ngModel",ce.selectedSlides[te]),v.R7$(2),v.JRh(ce.formatSlideKey(te))}}function Qn(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"button",68),v.bIt("click",function(){const Z=v.eBV(te).index,ie=v.XpG(3);return v.Njj(ie.goToSlide(Z))}),v.EFF(1),v.k0s()}if(2&Se){const te=it.index,ce=v.XpG(3);v.AVh("active",ce.activeSlide===te),v.R7$(),v.SpI(" ",te+1," ")}}function Un(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",145)(1,"h4"),v.EFF(2,"Select Slides to Include"),v.k0s(),v.j41(3,"p",146),v.EFF(4,"Choose which slides to include in your report."),v.k0s(),v.j41(5,"label",147)(6,"input",148),v.mxI("ngModelChange",function(Z){v.eBV(te);const ie=v.XpG(2);return v.DH7(ie.selectAll,Z)||(ie.selectAll=Z),v.Njj(Z)}),v.bIt("change",function(){v.eBV(te);const Z=v.XpG(2);return v.Njj(Z.toggleSelectAll())}),v.k0s(),v.j41(7,"span"),v.EFF(8,"Select All"),v.k0s()(),v.DNE(9,$n,5,2,"div",64),v.j41(10,"h4",149),v.EFF(11,"Slide Navigation"),v.k0s(),v.j41(12,"div",150),v.DNE(13,Qn,2,3,"button",67),v.k0s()()}if(2&Se){const te=v.XpG(2);v.R7$(6),v.R50("ngModel",te.selectAll),v.R7$(3),v.Y8G("ngForOf",te.slideKeys),v.R7$(4),v.Y8G("ngForOf",te.slideKeys)}}function Wn(Se,it){1&Se&&(v.j41(0,"div",50)(1,"div",51)(2,"div",71)(3,"div",53)(4,"span",72),v.EFF(5,"Loading..."),v.k0s()(),v.j41(6,"strong"),v.EFF(7," Analyzing responses across interviews..."),v.k0s()()()())}function Oi(Se,it){1&Se&&(v.j41(0,"div",50)(1,"div",51)(2,"div",52),v.nrm(3,"div",53),v.j41(4,"strong"),v.EFF(5,"Loading..."),v.k0s()()()())}function hn(Se,it){if(1&Se&&(v.j41(0,"div",166)(1,"em"),v.EFF(2),v.k0s()()),2&Se){const te=it.$implicit;v.R7$(2),v.SpI("\u201c",te,"\u201d")}}function Mi(Se,it){if(1&Se&&(v.j41(0,"div",164),v.DNE(1,hn,3,1,"div",165),v.k0s()),2&Se){const te=v.XpG().$implicit;v.R7$(),v.Y8G("ngForOf",te.quotes)}}function Fn(Se,it){if(1&Se&&(v.j41(0,"li"),v.EFF(1),v.DNE(2,Mi,2,1,"div",163),v.k0s()),2&Se){const te=it.$
1implicit;v.R7$(),v.SpI(" ",te.insight," "),v.R7$(),v.Y8G("ngIf",te.quotes)}}function xn(Se,it){if(1&Se&&(v.j41(0,"div",161)(1,"h3",162),v.EFF(2),v.k0s(),v.j41(3,"ul"),v.DNE(4,Fn,3,2,"li",64),v.k0s()()),2&Se){const te=v.XpG(3);v.R7$(2),v.JRh(te.currentSlide.header),v.R7$(2),v.Y8G("ngForOf",te.currentSlide.patterns)}}function hi(Se,it){if(1&Se&&(v.j41(0,"div",167)(1,"p"),v.EFF(2),v.k0s()()),2&Se){const te=v.XpG(3);v.R7$(2),v.JRh(te.currentSlide.bottom_line)}}function Xn(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",152)(1,"div",153)(2,"span"),v.EFF(3),v.k0s(),v.j41(4,"div",154)(5,"button",155),v.bIt("click",function(){v.eBV(te);const Z=v.XpG(2);return v.Njj(Z.regeneratePPT())}),v.nrm(6,"i",156),v.EFF(7,"Regenerate"),v.k0s()()(),v.DNE(8,Oi,6,0,"div",40)(9,xn,5,2,"div",157)(10,hi,3,1,"div",158),v.j41(11,"div",159)(12,"button",160),v.bIt("click",function(){v.eBV(te);const Z=v.XpG(2);return v.Njj(Z.prevSlide())}),v.EFF(13,"Previous"),v.k0s(),v.j41(14,"button",160),v.bIt("click",function(){v.eBV(te);const Z=v.XpG(2);return v.Njj(Z.nextSlide())}),v.EFF(15,"Next"),v.k0s()()()}if(2&Se){const te=v.XpG(2);v.R7$(3),v.Lme("Slide ",te.activeSlide+1," of ",te.slideKeys.length,""),v.R7$(5),v.Y8G("ngIf",te.regerateloading),v.R7$(),v.Y8G("ngIf",!te.isEditing&&!te.regerateloading),v.R7$(),v.Y8G("ngIf",te.currentSlide.bottom_line&&!te.regerateloading),v.R7$(2),v.Y8G("disabled",0===te.activeSlide),v.R7$(2),v.Y8G("disabled",te.activeSlide===te.slideKeys.length-1)}}function ri(Se,it){1&Se&&(v.j41(0,"div",69)(1,"h3",70),v.EFF(2,"No data available"),v.k0s()())}function In(Se,it){if(1&Se&&(v.j41(0,"div",117)(1,"div",79)(2,"div",80)(3,"div",81)(4,"h3",82),v.nrm(5,"img",118),v.EFF(6,"Report Generator"),v.k0s()(),v.j41(7,"div",88),v.DNE(8,nt,3,0,"button",119)(9,xt,3,2,"button",120),v.k0s()(),v.DNE(10,wi,11,6,"div",121),v.j41(11,"div",85),v.DNE(12,Un,14,3,"div",122)(13,Wn,8,0,"div",40)(14,Xn,16,7,"div",123)(15,ri,3,0,"div",61),v.k0s()()()),2&Se){const te=v.XpG();v.R7$(8),v.Y8G("ngIf",!te.slidesdata&&(null==te.mergedSummaryKeys?null:te.mergedSummaryKeys.length)>0),v.R7$(),v.Y8G("ngIf",(null==te.mergedSummaryKeys?null:te.mergedSummaryKeys.length)>0),v.R7$(),v.Y8G("ngIf",te.currentSlide&&!te.slidesdata),v.R7$(2),v.Y8G("ngIf",te.currentSlide&&!te.slidesdata),v.R7$(),v.Y8G("ngIf",te.slidesdata),v.R7$(),v.Y8G("ngIf",te.currentSlide&&!te.slidesdata),v.R7$(),v.Y8G("ngIf",!te.slidesdata&&!1===te.slidesData)}}function kr(Se,it){if(1&Se){const te=v.RV6();v.j41(0,"div",168)(1,"div",169)(2,"h5",170),v.EFF(3,"No match found with this question"),v.k0s(),v.j41(4,"div",171)(5,"button",172),v.bIt("click",function(){v.eBV(te);const Z=v.XpG();return v.Njj(Z.noMatchFound())}),v.EFF(6,"Ok"),v.k0s()()()()}}let Xi=(()=>{class Se{constructor(te,ce,Z){this.SurveyService=te,this.tostr=ce,this.router=Z,this.activeTab="transcript",this.activeIndex=0,this.isEditing=!1,this.activeSlide=0,this.questionsArr=[],this.showResponsesAs="all",this.insterviewList=[],this.selectedInterview=0,this.transcriptMessages=[],this.isLoading=!1,this.page=1,this.size=5,this.hasMore=!0,this.loading=!1,this.loadingSummary=!1,this.questionSummaries=[],this.summaries=[],this.mergedSummaryKeys=[],this.mergedSummaryData={},this.activeKey="",this.interviewSummaries=[],this.userQuotes=[],this.crossLoading=!1,this.selectedSlides={},this.activeSlideKey=null,this.slideKeys=[],this.pptName="",this.selectAll=!1,this.surveyDetails={},this.slides={shopping:!0,decision:!0,painPoints:!0,unmetNeeds:!0},this.shoppingPoints=["Participants shop online 2-3 times weekly, primarily for groceries and essentials","80% prioritize convenience and reliability over price considerations","Mobile app usage dominates over desktop website usage by a 3:1 ratio","Scheduled deliveries preferred by 60% vs. on-demand services (40%)","Subscription services gaining popularity, especially among 25-35 age group"],this.slideTitle="Convenience Trumps Price in Online Shopping Decisions",this.quote1="I\u2019d rather pay more for guaranteed delivery times than deal with the uncertainty.",this.quote2="I\u2019ve completely switched to online shopping for routine purchases to 
1save time.",this.preInterviewResponses=[],this.userQuotesMap={},this.allResponses=[],this.themes=[],this.slidesdata=!1,this.askQuestion="",this.result=null,this.noMatchDialog=!1,this.newSlides=[],this.previewSlides=[],this.noDataMessage="",this.regerateloading=!1,this.generatingAIReport=!1}ngOnInit(){this.formattedResponces();const te=localStorage.getItem("activeTab");te?(this.activeTab=te,"generator"===te&&this.pptSlides()):this.activeTab="transcript",this.getSurveyDetails(),this.getInterviewsSummarize(),this.getQuestionResponsesApiOnly()}getSurveyDetails(){this.SurveyService.getSurveyDetailsById().subscribe(te=>{if(this.surveyDetails=te,te.name){const Z=te.name.replace(/\d+$/,"").trim();this.pptName=Z}},te=>{console.error(te)})}setActiveTab(te){this.activeTab=te,localStorage.setItem("activeTab",te),"transcript"===te&&this.conversationID&&this.getConversation(),"summary"===te&&this.conversationID&&this.getIndivisualDGReponse(),"generator"===te&&(this.slidesData?(this.slideKeys=Object.keys(this.slidesData),this.slideKeys.forEach((ce,Z)=>{this.selectedSlides[ce]=0===Z}),this.activeSlideKey=this.slideKeys[0]):(this.slideKeys=[],this.selectedSlides={},this.activeSlideKey=null))}setActive(te){this.activeIndex=te}updateTitle(te){console.log("Title updated:",te.target.innerText)}updatePoint(te,ce){this.shoppingPoints[ce]=te.target.innerText}toggleEdit(){this.isEditing=!this.isEditing}safeNumber(te){const ce=Number(te);return isNaN(ce)?0:ce}formattedResponces(){if(!this.hasMore||this.loading)return;this.loading=!0;const te=localStorage.getItem("surveyId");this.SurveyService.getFormattedConversation(te,this.page,this.size).subscribe(ce=>{const Z=ce.data||[];this.preInterviewResponses=Z[0].preInterviewResponses||[];const ie=Z.map(Y=>{const fe=this.safeNumber(Y.interview_duration_seconds??Y.interviewTime)/60;return{...Y,interviewTime:fe}});this.insterviewList=[...this.insterviewList,...ie],this.hasMore=ce.hasMore,this.page++,this.loading=!1,2===this.page&&this.insterviewList.length>0&&this.selectInterview(0);const Ae=[];this.insterviewList.forEach(Y=>{Y.user_name||Ae.push(this.SurveyService.getConversationID(Y.conversation_id))}),(0,p.p)(Ae.length?Ae:[(0,w.of)(null)]).subscribe(Y=>{let ne=0;this.insterviewList.forEach(Ke=>{!Ke.user_name&&Y[ne]&&(Ke.user_name=Y[ne++].user_name)}),this.hasMore&&this.formattedResponces()})},ce=>{this.loading=!1})}selectInterview(te){this.selectedInterview=te,this.conversationID=this.insterviewList[te].conversation_id,"transcript"==this.activeTab&&this.getConversation(),"summary"==this.activeTab&&this.getIndivisualDGReponse()}getConversation(){this.isLoading=!0,this.SurveyService.getConversationID(this.conversationID).subscribe({next:te=>{console.log("Formatted conversation:",te),this.index=te?.uniqueId?te.uniqueId:te?._id||null,this.transcriptMessages=(te?.formatted_conversation||[]).map(ce=>({role:ce.role?ce.role.toLowerCase().includes("agent")||ce.role.toLowerCase().includes("ai")?"ai":"user":ce.speaker&&ce.speaker.toLowerCase().includes("ai")?"ai":"user",sender:ce.speaker||("agent"===ce.role?"Agent":"User"),text:ce.text||ce.message})),this.isLoading=!1},error:()=>{this.isLoading=!1}})}getIndivisualDGReponse(){this.loadingSummary=!0,this.SurveyService.getIndivisualDGReponse(this.conversationID).subscribe({next:te=>{this.loadingSummary=!1,console.log(te),this.questionSummaries=(te.user_responses||[]).map(ce=>({questionId:ce._id,question:ce.question?.text||"",response:ce.response||"",quotes:ce.user_quotes||[]})),this.questionSummaries.length>0&&(this.activeIndex=0)},error:te=>{console.error(te),this.questionSummaries=[],this.loadingSummary=!1}})}getQuestionResponsesApiOnly(te){const ce=localStorage.getItem("surveyId");this.SurveyService.getQuestionResponses(ce,this.showResponsesAs,te).subscribe(Z=>{this.allResponses=Z?.participients,this.uniqueId=Z?.participients?.[0]?.uniqueId,console.log(this.uniqueId),console.log(this.allResponses),this.userQuotesMap={},(Z?.participients||[]).forEach(ie=>{(ie.user_responses||[]).forEach(Ae=>{const Y=Ae?.question?._id;Y&&(this.userQuotesMap[Y]||(this.userQuotesMap[Y]=[]),Ae?.user_quotes?.length>0&&this.userQuotesMap[Y].push(...Ae.user_quotes))})}),console.log("Extracted User Quotes:",this.userQuotesMap)})}getInterviewsSummarize(){this.loadingSummary=!0,this.crossLoading=!0;const te={surveyId:localStorage.getItem("surveyId")};this.SurveyService.getInterviewsSummarize(te).subscribe({next:ce=>{this.crossLoading=!1,this.slidesdata=!1,this.loadingSummary=!1,this.mergedSummaryData=ce.summary||{},this.mergedSummaryKeys=Object.keys(this.mergedSummaryData),this.mergedSummaryKeys.length>0?(this.activeKey=this.mergedSummaryKeys[0],this.updateActiveContent(this.activeKey)):(this.activeKey="No Data",this.interviewSummaries=[],this.userQuotes=[],this.themes=[],this.crossLoading=!1)},error:ce=>{console.error(ce),this.crossLoading=!1,this.slidesdata=!1,this.activeKey="No Data",this.interviewSummaries=[],this.userQuotes=[],this.themes=[]}})}updateActiveContent(te){this.activeKey=te;const ce=this.mergedSummaryData[te];this.interviewSummaries=ce?.overallsummary?[{response:ce.overallsummary}]:[],this.themes=ce?.themes||[]}downloadReport(){if(0===Object.keys(this.selectedSlides).filter(ve=>this.selectedSlides[ve]).length)return void this.tostr.error("Please select at least one slide to download the report.");const ce=new N.A,Z=.8,Y=ve=>{ve.addImage({path:"/assets/icons/MadeUsingMerren.png",x:9,y:5,w:1.3,h:1})},ne=(ve,ye,be,Ee=14,pt=0,_t="363636",tn=!1,ln=12)=>(ve.addText(ye,{x:.5+pt,y:be,w:8,fontSize:Ee,color:_t,italic:tn,lineSpacing:ln}),be+Ee/22);Object.keys(this.slidesData).filter(ve=>
1this.selectedSlides[ve]).forEach(ve=>{const ye=this.slidesData[ve];let be=ce.addSlide();Y(be),be.addText(ye.header,{x:.5,y:Z,w:8,fontSize:18,bold:!0,color:"203864"});let Ee=1.5;ye.patterns.forEach(pt=>{Ee=ne(be,pt.insight,Ee),Ee>5.5&&(be=ce.addSlide(),Y(be),be.addText(ye.header+" (contd.)",{x:.5,y:Z,w:8,fontSize:18,bold:!0,color:"203864"}),Ee=1.5),pt.quotes?.length&&(Ee+=.4,pt.quotes.forEach(_t=>{Ee=ne(be,_t,Ee,12,.5,"#6B7280",!0,11),Ee-=.02,Ee>5.5&&(be=ce.addSlide(),Y(be),be.addText(ye.header+" (contd.)",{x:.5,y:Z,w:8,fontSize:18,bold:!0,color:"203864"}),Ee=1.5)}))}),ye.bottom_line&&(Ee+.5>5.5&&(be=ce.addSlide(),Y(be),be.addText(ye.header,{x:.5,y:Z,w:8,fontSize:18,bold:!0,color:"203864"}),Ee=1.5),Ee+=.2,be.addText(ye.bottom_line,{x:.7,y:Ee,w:8,fontSize:13,italic:!0,bold:!0,color:"595959"}),Ee+=.5)});const Ke=ce.addSlide();Y(Ke),Ke.addText("Thank You!",{x:0,y:2.5,w:"100%",align:"center",fontSize:36,bold:!0,color:"203864"}),ce.writeFile({fileName:this.pptName})}updateActiveSlide(te){this.selectedSlides[te]&&(this.activeSlideKey=te)}toggleSelectAll(){for(const te of this.slideKeys)this.selectedSlides[te]=this.selectAll}formatSlideKey(te){return te.replace(/_/g," ")}get currentSlide(){return this.slideKeys?.length?this.slidesData?.[this.slideKeys[this.activeSlide]]??null:null}nextSlide(){this.activeSlide<this.slideKeys.length-1&&this.activeSlide++}prevSlide(){this.activeSlide>0&&this.activeSlide--}goToSlide(te){this.activeSlide=te}pptSlides(){this.slidesdata=!0,this.slidesData=null;const te={surveyId:localStorage.getItem("surveyId")};this.SurveyService.getInterviewsSummarize(te).subscribe(ce=>{if(this.mergedSummaryData=ce.summary||{},this.mergedSummaryKeys=Object.keys(this.mergedSummaryData),this.mergedSummaryKeys.length>0){this.activeKey=this.mergedSummaryKeys[0],this.updateActiveContent(this.activeKey);const Z={cross_interview_summary:this.mergedSummaryData,surveyId:localStorage.getItem("surveyId")};this.SurveyService.generateSlidePPT(Z).subscribe({next:ie=>{this.slidesData=ie?.pptJSON?.slides||{},this.slideKeys=Object.keys(this.slidesData),this.activeSlide=0,this.selectedSlides={},this.slideKeys.forEach((Ae,Y)=>{this.selectedSlides[Ae]=0===Y}),this.slidesdata=!1},error:ie=>{console.error(ie),this.slidesdata=!1}})}else this.slidesData=!1,this.activeKey="No Data",this.interviewSummaries=[],this.userQuotes=[],this.themes=[],this.slidesdata=!1})}refreshCrossInterviewsummarize(){this.crossLoading=!0;const te={surveyId:localStorage.getItem("surveyId")};this.SurveyService.refreshCrossInterviewsummarize(te).subscribe({next:ce=>{this.crossLoading=!1,this.mergedSummaryData=ce.summary||{},this.mergedSummaryKeys=Object.keys(this.mergedSummaryData),this.mergedSummaryKeys.length>0?(this.activeKey=this.mergedSummaryKeys[0],this.updateActiveContent(this.activeKey),this.slidesdata=!0):(this.activeKey="No Data",this.slidesdata=!1,this.interviewSummaries=[],this.userQuotes=[],this.themes=[])},error:ce=>{this.crossLoading=!1,this.activeKey="No Data",this.interviewSummaries=[],this.userQuotes=[],this.themes=[]}})}ask(){const te=(this.askQuestion||"").trim();if(!te)return;const Z={surveyId:localStorage.getItem("surveyId"),question:te};this.loading=!0,this.result=null,this.SurveyService.findPPTAnswers(Z).subscribe({next:ie=>{if(this.loading=!1,!ie?.status&&!ie?.message?.toLowerCase()?.includes("no match"))return"No relevant data found in dataset"===ie?.answer?(this.noDataMessage=ie.answer,void(this.previewSlides=[])):(this.newSlides=ie||{},this.previewSlides=Object.values(this.newSlides),void console.log("Preview Slides:",this.previewSlides));this.noMatchDialog=!0},error:ie=>{console.error("API error",ie),this.loading=!1}})}createnewSlide(){if(!this.newSlides)return;const te=localStorage.getItem("surveyId");this.loading=!0,Object.keys(this.newSlides).forEach(ie=>{this.slidesData[ie]||(this.slidesData[ie]=this.newSlides[ie],this.slideKeys.push(ie))}),this.activeSlide=this.slideKeys.length-1,this.selectedSlides={},this.slideKeys.forEach((ie,Ae)=>{this.selectedSlides[ie]=Ae===this.activeSlide}),this.SurveyService.updatePPT({surveyId:te,pptJSON:{slides:this.slidesData}}).subscribe({next:ie=>{console.log("PPT updated successfully:",ie),this.previewSlides=[],this.loading=!1},error:ie=>{console.error("Error updating PPT:",ie),this.loading=!1}})}cancelSlide(){this.previewSlides=[],this.askQuestion=""}noMatchFound(){this.noMatchDialog=!1,this.askQuestion=""}regeneratePPT(){this.regerateloading=!0,localStorage.getItem("surveyId");const ce={cross_interview_summary:this.mergedSummaryData,surveyId:localStorage.getItem("surveyId")};this.SurveyService.regeneratePPT(ce).subscribe({next:Z=>{this.slidesData=Z?.pptJSON?.slides||{},this.slideKeys=Object.keys(this.slidesData),this.activeSlide=0,console.log("Regenerated PPT slides:",this.slidesData),this.selectedSlides={},this.slideKeys.forEach((ie,Ae)=>{this.selectedSlides[ie]=0===Ae}),this.regerateloading=!1},error:Z=>{console.error("Error regenerating PPT:",Z),this.regerateloading=!1}})}goDgDetails(){this.router.navigate(this.surveyDetails.isDGPaste?["discussion-guide-update"]:["/discussion-update"])}generateAIReport(){const te=localStorage.getItem("surveyId");te?(this.generatingAIReport=!0,this.SurveyService.generateInterviewPPT(te).subscribe({next:ce=>{this.generatingAIReport=!1,ce?.pptUrl?(window.open(ce.pptUrl,"_blank"),this.tostr.success("AI report generated.")):this.tostr.error("No PPT URL returned.")},error:ce=>{console.error("generateInterviewPPT error",ce),this.generatingAIReport=!1,this.tostr.error("Failed to generate AI report.")}})):this.tostr.error("Survey ID not found.")}static#e=this.\u0275fac=function(ce){return new(ce||Se)(v.rXU(ee.I),v.rXU(l.tw),v.rXU(W.Ix))};static#t=this.\u0275cmp=v.VBU({type:Se,selectors:[["app-dg-analysis"]],viewQuery:function(ce,Z){if(1&ce&&v.GBs(e,5),2&ce){let ie;v.mGM(ie=v.lsd())&&(Z.scrollable=ie.first)}},decls:37,vars:9,consts:[["scrollable",""],[1,"header"],[1,"logo"],["src","assets/img/Merren_name.png","alt","Logo"],["routerLink","/dashboard/project-interview",1,"backbtn"],[1,"analysis-container"],[1,"analysis-heading"],[1,"select-item","mt-5"],[1,"all-btn"],["type","radio","id","dgDetails","name","option",3,"change","click"],["for","dgDetails"],["type","radio","id","transcript","name","option",3,"change","checked"],["for","transcript"],[1,"far","fa-file"],["type","radio","id","summary","name","option",3,"change","checked"],["for","summary"],[1,"fas","fa-list"],["type","radio","id","analysis","name","option",3,"change","checked"],["for","analysis"],[1,"far","fa-users"],["type","radio","id","generator","name","option",3,"change","checked"],["for","generator"],["src","assets/icons/equalizer.png",2,"height","20px","width","20px"],["class","interview-wrapper",4,"ngIf"],["class","cross-wrapper",4,"ngIf"],["class","report-wrapper ",4,"ngIf"],["class","custom-modal-backdrop",4,"ngIf"],[1,"interview-wrapper"],[1,"sidebar"],[1,"interview-sider"],[1,"interview-list"],[1,"d-flex","justify-content-between","align-items-center","mt-3"],["class","d-flex justify-content-center align-items-center mt-5",4,"ngIf"],["infiniteScroll","",2,"height","500px","overflow-y","auto",3,"scrolled","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollContainer"],["class","interview-item mt-1",3,"active","click",4,"ngFor","ngForOf"],["class","loading-spinner",4,"ngIf"],[1,"transcript"],[1,"transcript-header"],[1,"actions"],["class","meta-bar",4,"ngIf"],["class","content d-flex justify-content-center align-items-center text-center",4,"ngIf"],["class","chat",4,"ngIf"],[1,"d-flex","justify-content-center","align-items-center","mt-5"],[1,"interview-item","mt-1",3,"click"],[1,"name"],[1,"details"],["class","details",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"loading-spinner"],[1,"meta-bar"],[1,"content","d-flex","justify-content-center","align-items-center","text-center"],[1,"m-auto"],[1,"d-flex","flex-column","justify-content-center","align-items-center"],["role","status",1,"spinner-grow","mb-2"],[1,"chat"],["class","msg",3,"ngClass",4,"ngFor","ngForOf"],[1,"msg",3,"ngClass"],[1,"sender",3,"ngClass"],["class","preinterviewQue",4,"ngIf"],[1,"interview-summary"],["class","summary-sidebar",4,"ngIf"],["class","content d-flex justify-content-center align-items-center mt-5",4,"ngIf"],["class","content",4,"ngIf"],[1,"preinterviewQue"],[4,"ngFor","ngForOf"],[1,"summary-sidebar"],[1,"text-center"],[3,"active","click",4,"ngFor","ngForOf"],[3,"click"],[1,"content","d-flex","justify-content-center","align-items-center","mt-5"],[2,"font-weight","500","font-size","20px"],["id","",1,"d-flex","flex-column","justify-content-center","align-items-center"],[1,"sr-only"],[1,"content"],[1,"summary"],[2,"color","#1F2937"],["class","quotes",4,"ngIf"],[1,"quotes"],[1,"cross-wrapper"],[1,"report-wra"],[1,"report-header"],[1,"d-flex"],[2,"color","#1F2937","font-weight","700","font-size","17px"],[1,"far","fa-users","mr-1",2,"color","#F79522"],["class","header-actions",4,"ngIf"],[1,"report-body"],["class","cross-sidebar",4,"ngIf"],["class","cross-slide",4,"ngIf"],[1,"header-actions"],["title","Refresh crossinterview",1,"btn-outline",3,"click"],[1,"fas","fa-refresh"],[1,"cross-sidebar"],["class","cross-cont mt-2","style","cursor: pointer;",3,"active","click",4,"ngFor","ngForOf"],[1,"cross-cont","mt-2",2,"cursor","pointer",3,"click"],[1,"cross-slide"],["class","cross-content",4,"ngIf"],["class","cross-footer",4,"ngIf"],[1,"cross-content"],[2,"color","#1F2937","font-size","14px","font-weight","400","line-height","24px"],["class","themes",4,"ngIf"],[1,"themes"],["class","theme-card mb-4 p-3 rounded shadow-sm","style","background: #F9FAFB;",4,"ngFor","ngForOf"],[1,"theme-card","mb-4","p-3","rounded","shadow-sm",2,"background","#F9FAFB"],[2,"color","#1F2937","font-weight","600"],[2,"font-weight","500","margin-top","8px","font-size","14px"],[2,"font-size","14px","color","#374151"],["class","cross-footer cross-quotes",4,"ngIf"],["class","key-patterns",4,"ngIf"],[2,"font-size","13px","color","#6B7280"],[1,"cross-footer","cross-quotes"],[1,"key-patterns"],[2,"margin-left","16px"],["style","font-size: 13px;",4,"ngFor","ngForOf"],[2,"font-size","13px"],[1,"cross-footer"],[1,"form-control","mb-2",3,"ngModelChange","ngModel"],[1,"form-control",3,"ngModelChange","ngModel"],[1,"report-wrapper"],["src","assets/icons/equalizer.png",1,"mr-2",2,"height","20px","width","20px","filter","invert(34%) sepia(96%) saturate(2440%) hue-rotate(200deg) brightness(97%) contrast(101%)"],["class","btn-primary",3,"click",4,"ngIf"],["class","btn-primary ml-2",3,"disabled","click",4,"ngIf"],["class","serch-tab mt-3",4,"ngIf"],["class","report-sidebar",4,"ngIf"],["class","slide",4,"ngIf"],[1,"btn-primary",3,"click"],[1,"fas","fa-download","mr-1"],[1,"btn-primary","ml-2",3,"click","disabled"],[1,"fas","fa-magic","mr-1"],[1,"serch-tab","mt-3"],[1,"far","fa-comment-dots","mr-2"],[1,"question-box","d-flex"],["type","text","placeholder","e.g., What do participants prefer in delivery services?",1,"form-control","mr-2",3,"ngModelChange","keyup.enter","ngModel"],[1,"btn","btn-primary","btn-ask",3,"click","disabled"],["style","display: flex; justify-content: center; color: #6B7280;",4,"ngIf"],[2,"display","flex","justify-content","center","color","#6B7280"],["class","ansCard mt-3",4,"ngFor","ngForOf"],[1,"ansCard","mt-3"],[1,"text-primary"],["placeholder","Enter slide title",1,"form-control",3,"ngModelChange","ngModel"],[1,"mt-2","preAns"],[2,"color","#646464"],[1,"mt-2","d-flex","justify-content-end"],[1,"btn","btn-outline-primary","mr-3",3,"click"],[1,"btn","btn-primary",3,"click"],["style","color:#646464",4,"ngFor","ngForOf"],[1,"report-sidebar"],[2,"color","#6B7280"],[1,"slide-label"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"mt-3"],[1,"slide-nav"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"slide"],[1,"slide-header"],[1,"slide-actions"],[1,"btn-link",3,"click"],[1,"fas","fa-sync-alt","mr-1"],["class","slide-content",4,"ngIf"],["class","slide-footer",4,"ngIf"],[1,"slide-nav-strip","mt-4"],[1,"nav-btn",3,"click","disabled"],[1,"slide-content"],[1,"ml-4"],["style","margin-left: 20px; margin-top: 4px;",4,"ngIf"],[2,"margin-left","20px","margin-top","4px"],["style","color: #6B7280; font-size: 14px; margin-left: 10px;",4,"ngFor","ngForOf"],[2,"color","#6B7280","font-size","14px","margin-left","10px"],[1,"slide-footer"],[1,"custom-modal-backdrop"],[1,"custom-modal"],[1,""],[1,"modal-buttons"],[1,"btn","btn-danger","ml-2",3,"click"]],template:function(ce,Z){1&ce&&(v.j41(0,"div",1)(1,"div",2),v.nrm(2,"img",3),v.k0s(),v.j41(3,"div",4),v.EFF(4," Back to Dashboard "),v.k0s()(),v.j41(5,"div",5)(6,"div",6)(7,"h3"),v.EFF(8,"Analysis Dashboard"),v.k0s(),v.j41(9,"p"),v.EFF(10,"Analyze your interview data, generate summaries, and create presentations."),v.k0s(),v.j41(11,"div",7)(12,"div",8)(13,"input",9),v.bIt("change",function(){return Z.setActiveTab("dgDetails")})("click",function(){return Z.goDgDetails()}),v.k0s(),v.j41(14,"label",10),v.EFF(15,"DG Details"),v.k0s(),v.j41(16,"input",11),v.bIt("change",function(){return Z.setActiveTab("transcript")}),v.k0s(),v.j41(17,"label",12),v.nrm(18,"i",13),v.EFF(19,"Transcript"),v.k0s(),v.j41(20,"input",14),v.bIt("change",function(){return Z.setActiveTab("summary"),Z.getIndivisualDGReponse()}),v.k0s(),v.j41(21,"label",15),v.nrm(22,"i",16),v.EFF(23," Interview Summary"),v.k0s(),v.j41(24,"input",17),v.bIt("change",function(){return Z.setActiveTab("analysis"),Z.getInterviewsSummarize()}),v.k0s(),v.j41(25,"label",18),v.nrm(26,"i",19),v.EFF(27," Cross-Interview Analysis"),v.k0s(),v.j41(28,"input",20),v.bIt("change",function(){return Z.setActiveTab("generator"),Z.pptSlides()}),v.k0s(),v.j41(29,"label",21),v.nrm(30,"img",22),v.EFF(31,"Report Generator"),v.k0s()()()(),v.DNE(32,gt,21,10,"div",23)(33,Ne,23,11,"div",23)(34,Rt,13,5,"div",24)(35,In,16,7,"div",25),v.k0s(),v.DNE(36,kr,7,0,"div",26)
1),2&ce&&(v.R7$(16),v.Y8G("checked","transcript"===Z.activeTab),v.R7$(4),v.Y8G("checked","summary"===Z.activeTab),v.R7$(4),v.Y8G("checked","analysis"===Z.activeTab),v.R7$(4),v.Y8G("checked","generator"===Z.activeTab),v.R7$(4),v.Y8G("ngIf","transcript"===Z.activeTab),v.R7$(),v.Y8G("ngIf","summary"===Z.activeTab),v.R7$(),v.Y8G("ngIf","analysis"===Z.activeTab),v.R7$(),v.Y8G("ngIf","generator"===Z.activeTab),v.R7$(),v.Y8G("ngIf",Z.noMatchDialog))},dependencies:[B.YU,B.Sq,B.bT,W.Wk,T.me,T.Zm,T.BC,T.vS,B.P9,B.QX,B.vh],styles:['@charset "UTF-8";.header[_ngcontent-%COMP%]{padding:15px 40px;display:flex;justify-content:space-between;align-items:center}.backbtn[_ngcontent-%COMP%]{border:none;border-radius:25px;font-size:15px;cursor:pointer;width:auto;display:inline-block;font-weight:500;background-color:#2285f7;color:#fff;padding:10px 25px;transition:background-color .3s ease}.logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:20px;width:auto}.custom-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.custom-modal[_ngcontent-%COMP%]{background:#fff;padding:20px;border-radius:8px;text-align:center;min-width:300px}.modal-buttons[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:center}.analysis-container[_ngcontent-%COMP%]{align-items:center;position:relative;max-width:1000px;margin:0 auto}.analysis-heading[_ngcontent-%COMP%]{max-width:925px;margin:40px auto;padding:10px;text-align:center}.analysis-heading[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:26px;font-weight:700;color:#1f2937}.analysis-heading[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#4b5563}.select-item[_ngcontent-%COMP%]{border:1px solid #ddd;width:100%;border-radius:30px;padding:5px;box-shadow:0 1px 2px #0000000d}.select-lang[_ngcontent-%COMP%]{border:1px solid #E5E7EB;padding:20px;border-radius:10px}.select-lang[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px}.select-lang[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:#4b5563}.all-btn[_ngcontent-%COMP%]{display:flex;gap:15px;flex-wrap:wrap;justify-content:center;margin-bottom:-6px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{display:none}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:10px 20px;background:#f8f8f8;color:#1f2937;border-radius:30px;font-size:14px;cursor:pointer;transition:all .3s ease}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:16px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#2285f7;color:#fff}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.interview-wrapper[_ngcontent-%COMP%]{display:flex;background:#f9f9fb;min-height:100vh;font-family:sans-serif;padding:30px;gap:20px}.sidebar[_ngcontent-%COMP%]{width:280px;display:flex;flex-direction:column;gap:10px;height:100vh}.interview-sider[_ngcontent-%COMP%]{background:#fff;border:1px solid #ddd;padding:16px;border-radius:8px;max-height:700px}.search-box[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;border:1px solid #ddd;border-radius:30px;padding:6px 10px;background:#fff;width:100%;max-width:280px}.search-box[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:absolute;left:12px;color:#888;font-size:14px}.search-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:8px 8px 8px 32px;border:none;outline:none;font-size:14px}.interview-list[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin-bottom:2px;color:#374151}.interview-item[_ngcontent-%COMP%]{padding:6px;border:1px solid #eee;border-radius:8px;margin-bottom:10px;cursor:pointer;background:#fff;transition:background .2s}.interview-item.active[_ngcontent-%COMP%]{border:1px solid #4a90e2;background:#f0f6ff}
1.interview-item[_ngcontent-%COMP%]   .name.active-name[_ngcontent-%COMP%]{color:#2285f7;font-weight:500}.interview-item[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-weight:500;margin:0}.interview-item[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{font-size:12px;color:#666;margin:auto}.interview-item[_ngcontent-%COMP%]   .tags[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;font-size:11px;background:#f1f1f1;padding:2px 6px;border-radius:6px;margin-right:4px}.metadata[_ngcontent-%COMP%]{margin-top:auto;font-size:13px;border:1px solid #ddd;border-radius:8px;padding:12px;background:#fff}.metadata[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:14px;margin-bottom:8px;display:flex;justify-content:space-between}.transcript[_ngcontent-%COMP%]{flex:1;padding:20px;background:#fff;border:1px solid #ddd;border-radius:8px;overflow-y:auto}.transcript-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.preinterviewQue[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:10px;width:100%;max-height:250px;overflow-y:auto;margin:auto;font-size:12px}.preinterviewQue[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:auto}.transcript-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.actions[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{margin-left:10px;padding:6px 12px;border-radius:6px;border:1px solid #ccc;background:#fff;cursor:pointer}.download-btn[_ngcontent-%COMP%]{font-size:14px;color:#374151;background:none;border:1px solid #ddd;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 6px;height:40px;width:160px;text-transform:none}.download-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px}.download-btn[_ngcontent-%COMP%]:hover{color:#2563eb}.search-transcript[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:8px 12px;border-radius:8px;border:1px solid #ccc;margin-bottom:16px}.meta-bar[_ngcontent-%COMP%]{background:#f5f5f5;padding:10px 12px;border-radius:6px;font-size:13px;margin-bottom:16px}.chat[_ngcontent-%COMP%]   .msg[_ngcontent-%COMP%]{margin-bottom:14px;padding:10px;border-radius:8px;display:flex;align-items:flex-start;gap:10px}.chat[_ngcontent-%COMP%]   .msg.ai[_ngcontent-%COMP%]   .sender[_ngcontent-%COMP%]{font-weight:600;margin-bottom:6px;height:36px;min-width:133px;background-color:#e0e7ff;border-radius:8px;text-align:center;display:flex;align-items:center;padding:10px;color:#3730a3}.chat[_ngcontent-%COMP%]   .msg.user[_ngcontent-%COMP%]   .sender[_ngcontent-%COMP%]{font-weight:600;margin-bottom:6px;height:36px;min-width:133px;background-color:#dcfce7;border-radius:8px;text-align:center;display:flex;align-items:center;padding:10px;color:#166534}.chat[_ngcontent-%COMP%]   .msg.ai[_ngcontent-%COMP%]{display:flex;gap:20px}.chat[_ngcontent-%COMP%]   .msg[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.chat[_ngcontent-%COMP%]   .msg.user[_ngcontent-%COMP%]{display:flex;gap:20px}@media (max-width: 768px){.interview-wrapper[_ngcontent-%COMP%]{flex-direction:column}.sidebar[_ngcontent-%COMP%]{width:100%;border-right:none;border-bottom:1px solid #ddd}}.interview-summary[_ngcontent-%COMP%]{display:flex;gap:20px;font-family:Arial,sans-serif;color:#111827;padding:20px}.summary-sidebar[_ngcontent-%COMP%]{width:240px;background:#f9fafb;border-radius:8px;padding:16px;border:1px solid #e5e7eb}.summary-sidebar[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:14px;font-weight:600;margin-bottom:12px;color:#374151}.summary-sidebar[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.summary-sidebar[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:10px 12px;border-radius:6px;cursor:pointer;color:#374151}.summary-sidebar[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]{background-color:#e0e7ff;color:#4338ca;font-weight:500}.content[_ngcontent-%COMP%]{flex:1}.content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:700;font-size:17px}.cross-content[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:700;font-size:16px}
1.summary[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#6b7280;font-size:14px;font-weight:500}.quotes[_ngcontent-%COMP%]{margin-top:20px}.quotes[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#6b7280;font-size:14px;font-weight:500}.quotes[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background:#f9fafb;border-left:4px solid #818CF8;padding:10px 14px;margin-bottom:10px;border-radius:6px;font-style:italic;color:#374151}#F79522[_ngcontent-%COMP%]   .ask[_ngcontent-%COMP%]{margin-top:24px;border-top:1px solid #e5e7eb;padding-top:16px}.ask-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding-left:5px}.ask-box[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#6b7280;font-size:16px}.ask-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1;border:none;outline:none;font-size:14px;color:#374151}.ask-btn[_ngcontent-%COMP%]{background:#d1d5db;color:#fff;border:none;border-radius:6px;padding:6px 14px;cursor:pointer;font-size:14px;font-weight:500;transition:background .2s ease}.cross-wrapper[_ngcontent-%COMP%]{min-height:100vh;padding:30px}.report-wra[_ngcontent-%COMP%]{background:#fff;border:1px solid #ddd;border-radius:8px;gap:20px;padding:20px}.report-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.header-actions[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center}.badge[_ngcontent-%COMP%]{background:#e5f0ff;color:#007bff;padding:4px 8px;border-radius:20px;font-size:12px;height:25px;margin-left:16px;display:flex;justify-content:center;align-items:center}.cross[_ngcontent-%COMP%]{background:#fff8f0;color:#f79522;padding:4px 8px;border-radius:20px;font-size:12px;height:25px;margin-left:16px;display:flex;justify-content:center;align-items:center}.cross-cont[_ngcontent-%COMP%]{background:#fff8f0;color:#f79522;padding:4px 8px;border-radius:8px;font-size:13px;font-weight:400;height:auto}.btn-outline[_ngcontent-%COMP%]{border:1px solid #ccc;background:#fff;padding:6px 12px;border-radius:6px}.btn-primary[_ngcontent-%COMP%]{background:#007bff;color:#fff;padding:6px 12px;border:none;border-radius:6px}.question-box[_ngcontent-%COMP%]{margin:15px 0;display:flex;gap:8px}.question-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1;padding:8px;border-radius:6px;border:1px solid #ddd}.btn-ask[_ngcontent-%COMP%]{background:#007bff;color:#fff;padding:6px 12px;border-radius:6px;border:none}.report-body[_ngcontent-%COMP%]{display:flex;margin-top:20px;gap:20px}.report-sidebar[_ngcontent-%COMP%]{width:250px;background:#f9f9f9;padding:15px;border-radius:8px}.cross-sidebar[_ngcontent-%COMP%]{width:250px;min-width:250px;flex-shrink:0;background:#f9fafb;padding:15px;border-radius:8px}.cross-slide[_ngcontent-%COMP%]{flex:1;background:#fff;padding:15px;border-radius:8px;overflow:auto}.slide[_ngcontent-%COMP%]{flex:1;background:#fff;border-radius:10px;border:1px solid #E5E7EB}.slide-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-radius:8px 8px 0 0;background:#f9fafb;padding:15px 10px;font-size:14px;color:#6b7280}.slide-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.slide-actions[_ngcontent-%COMP%]   .btn-link[_ngcontent-%COMP%]{background:none;border:none;color:#3b82f6;font-size:14px;cursor:pointer;text-decoration:none;display:flex;align-items:center}.slide-actions[_ngcontent-%COMP%]   .btn-link[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:4px}.arrow-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:0;font-size:16px;color:#4b5563}.divider[_ngcontent-%COMP%]{width:1px;height:18px;background:#e5e7eb;margin:0 8px}.slide-content[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px;font-weight:600;margin:12px 0;color:#111827}.slide-content[_ngcontent-%COMP%]{padding:10px}.slide-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding-left:0}.slide-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;padding-left:20px;margin-bottom:10px}.slide-content[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\\25cf";color:#3b82f6;position:absolute;
1left:0}.slide-footer[_ngcontent-%COMP%]{margin-top:15px;border-top:1px solid #E5E7EB;padding:20px}.slide-footer[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#6b7280;margin-bottom:8px;text-transform:uppercase}.slide-footer[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#4b5563;margin:6px 0;font-weight:400;font-size:14px;line-height:24px}.slide-nav[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:5px;padding:6px 12px;border:none;background:#eee;border-radius:50%;cursor:pointer}.slide-nav[_ngcontent-%COMP%]   button.active[_ngcontent-%COMP%]{background:#007bff;color:#fff}.serch-tab[_ngcontent-%COMP%]{border:1px solid #E5E7EB;border-radius:8px;padding:8px}.slide-nav-strip[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:#f9fafb;padding:12px 16px;margin-bottom:30px}.nav-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:14px;font-weight:500;color:#6b7280;cursor:pointer;transition:color .2s}.nav-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.cross-quotes[_ngcontent-%COMP%]{margin-top:20px}.cross-quotes[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#6b7280;font-size:14px;font-weight:500}.cross-quotes[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background:#f9fafb;border-left:4px solid #F79522;padding:10px 14px;margin-bottom:10px;border-radius:6px;font-style:italic;color:#374151}.key-patterns[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding-left:0}.key-patterns[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;padding-left:25px;margin-bottom:10px;color:#333;line-height:1.5}.key-patterns[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:.6em;width:10px;height:10px;background-color:orange;border-radius:50%}.report-wrapper[_ngcontent-%COMP%]{padding:30px}.ansCard[_ngcontent-%COMP%]{border:1px solid #92C5FF;border-radius:8px;padding:20px;background-color:#f0f7ff}.preAns[_ngcontent-%COMP%]{border:1px solid #D1D5DB;padding:10px;background-color:#fff;border-radius:8px}.slide-label[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;max-width:250px;line-height:1.4;word-break:break-word;white-space:normal}.slide-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-top:4px}']})}return Se})()},1355:(en,Me,R)=>{"use strict";R.d(Me,{M:()=>he});var p=R(467),w=R(6052),N=R(9417),v=R(222),ee=R(4690),l=R(4438),W=R(1722),B=R(5794),T=R(345),e=R(1188),K=R(177),H=R(5286);const pe=["inputRef"],oe=["newInputRef"],Ce=["editInputRef"],we=S=>({"disabled-btn":S});function Pe(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",20),l.bIt("click",function(){const G=l.eBV(C).index,E=l.XpG(2);return l.Njj(E.goToStep(G+1))}),l.j41(1,"span",21),l.EFF(2),l.k0s(),l.j41(3,"p"),l.EFF(4),l.k0s()()}if(2&S){const C=Ie.$implicit,se=Ie.index,G=l.XpG(2);l.AVh("active",G.step===se+1)("completed",G.step>se+1)("disabled",G.isStepDisabled(se+1))("no-active-color",se+1===7),l.R7$(2),l.JRh(se+1),l.R7$(2),l.JRh(5===se?"DRAFT"===(null==G.surveyDetails?null:G.surveyDetails.status)?"Deploy & Launch":"Deployment":C)}}function Qe(S,Ie){if(1&S&&(l.j41(0,"div",18),l.DNE(1,Pe,5,10,"div",19),l.k0s()),2&S){const C=l.XpG();l.R7$(),l.Y8G("ngForOf",C.stepLabels)}}function ht(S,Ie){1&S&&(l.j41(0,"section",23)(1,"div",24)(2,"div",25)(3,"div",26)(4,"span",27),l.EFF(5,"Loading..."),l.k0s()(),l.j41(6,"strong"),l.EFF(7,"Loading..."),l.k0s()()()())}function ot(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div")(1,"input",49,1),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(4);return l.DH7(E.editableQuestionText,G)||(E.editableQuestionText=G),l.Njj(G)}),l.bIt("blur",function(){l.eBV(C);const G=l.XpG().index,E=l.XpG(3);return l.Njj(E.saveQuestion(G))})("keyup.enter",function(){l.eBV(C);const G=l.XpG().index,E=l.XpG(3);return l.Njj(E.saveQuestion(G))}),l.k0s()()}if(2&S){const C=l.XpG(4);l.R7$(),l.R50("ngModel",C.editableQuestionText)}}function gt(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"h3",50),l.bIt("click",function(){l.eBV(C);const G=l.XpG().index,E=l.XpG(3);return l.Njj(E.editQuestion(G))}),l.EFF(1),l.k0s()}if(2&S){const C=l.XpG().$implicit;l.R7$(),l.JRh(C.text)}}function je(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",39)(1,"div",40),l.DNE(2,ot,3,1,"div",41)(3,gt,2,1,"ng-template",null,0,l.C5r),l.j41(5,"div",42)(6,"button",43),l.bIt("click",function(){const G=l.eBV(C).index,E=l.XpG(3);return l.Njj(E.moveUp(G))}),l.nrm(7,"i",44),l.k0s(),l.j41(8,"button",45),l.bIt("click",function(){const G=l.eBV(C).index,E=l.XpG(3);return l.Njj(E.moveDown(G))}),l.nrm(9,"i",46),l.k0s(),l.j41(10,"button",47),l.bIt("click",function(){const G=l.eBV(C).index,E=l.XpG(3);return l.Njj(E.deleteQuestion(G))}),l.nrm(11,"i",48),l.k0s()()()()}if(2&S){const C=Ie.index,se=l.sdS(4),G=l.XpG(3);l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==G.surveyDetails?null:G.surveyDetails.status)),l.R7$(),l.Y8G("ngIf",G.editedQuestionIndex===C)("ngIfElse",se),l.R7$(4),l.Y8G("disabled",0===C)("ngClass",l.eq3(8,we,0===C)),l.R7$(2),l.Y8G("disabled",C===G.allQuestions.length-1)("ngClass",l.eq3(10,we,C===G.allQuestions.length-1))}}function Ct(S,Ie){1&S&&l.nrm(0,"i",51)}function kt(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",28)(1,"div",29)(2,"h2"),l.EFF(3,"Review your Key Information Areas"),l.k0s(),l.j41(4,"p",30),l.EFF(5,"These are the main topics we'll explore in y
1our research. Edit them to fit your needs and arrange them in order of priority."),l.k0s()(),l.j41(6,"div",31)(7,"span"),l.EFF(8,"Your Research Objective"),l.k0s(),l.j41(9,"p"),l.EFF(10),l.k0s()(),l.DNE(11,je,12,12,"div",32),l.j41(12,"div",33)(13,"button",34),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.addKeyInformationArea())}),l.nrm(14,"i",35),l.EFF(15," Add Information Area"),l.k0s()(),l.j41(16,"div",36)(17,"button",37),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.onContinue())}),l.EFF(18,"Continue "),l.DNE(19,Ct,1,0,"i",38),l.k0s()()()}if(2&S){const C=l.XpG(2);l.R7$(10),l.JRh(C.researchSummary||"No summary available."),l.R7$(),l.Y8G("ngForOf",C.allQuestions),l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status)),l.R7$(5),l.Y8G("disabled",C.dgisLoading),l.R7$(2),l.Y8G("ngIf",C.dgisLoading)}}function We(S,Ie){if(1&S&&(l.j41(0,"div"),l.DNE(1,ht,8,0,"section",14)(2,kt,20,6,"div",22),l.k0s()),2&S){const C=l.XpG();l.R7$(),l.Y8G("ngIf",C.isLoading),l.R7$(),l.Y8G("ngIf",!C.isLoading)}}function at(S,Ie){1&S&&(l.j41(0,"section",23)(1,"div",24)(2,"div",25)(3,"div",26)(4,"span",27),l.EFF(5,"Loading..."),l.k0s()(),l.j41(6,"strong"),l.EFF(7,"Generating Interview Questions..."),l.k0s()()()())}function le(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"input",80,3),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(2).index,re=l.XpG(4);return l.DH7(re.welcome_and_Purpose.questions[E].question_text,G)||(re.welcome_and_Purpose.questions[E].question_text=G),l.Njj(G)}),l.bIt("keyup.enter",function(){l.eBV(C);const G=l.XpG(6);return l.Njj(G.saveEditedQuestionWelcome())})("blur",function(){l.eBV(C);const G=l.XpG(6);return l.Njj(G.saveEditedQuestionWelcome())}),l.k0s()}if(2&S){const C=l.XpG(2).index,se=l.XpG(4);l.R50("ngModel",se.welcome_and_Purpose.questions[C].question_text)}}function Xe(S,Ie){if(1&S&&(l.j41(0,"div",78),l.DNE(1,le,2,1,"input",79),l.k0s()),2&S){const C=l.XpG().index,se=l.XpG(4);l.R7$(),l.Y8G("ngIf",se.editIndex===C)}}function Mt(S,Ie){if(1&S&&(l.j41(0,"div",81),l.EFF(1),l.k0s()),2&S){const C=l.XpG().$implicit;l.Y8G("title",C.question_text),l.R7$(),l.SpI(" ",C.question_text," ")}}function Et(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",82)(1,"i",83),l.bIt("click",function(){l.eBV(C);const G=l.XpG().index,E=l.XpG(4);return l.Njj(E.deleteWelcome(G))}),l.k0s()()}if(2&S){const C=l.XpG(5);l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status))}}function Jt(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",71)(1,"div",72),l.DNE(2,Xe,2,1,"div",73)(3,Mt,2,2,"ng-template",null,2,l.C5r),l.j41(5,"div",74),l.EFF(6),l.k0s(),l.j41(7,"div",75),l.bIt("click",function(){const G=l.eBV(C).index,E=l.XpG(4);return l.Njj(E.startEditingWelcome(G))}),l.nrm(8,"i",76),l.k0s(),l.DNE(9,Et,2,2,"div",77),l.k0s()()}if(2&S){const C=Ie.$implicit,se=Ie.index,G=l.sdS(4),E=l.XpG(4);l.R7$(2),l.Y8G("ngIf",E.editIndex===se)("ngIfElse",G),l.R7$(4),l.JRh(C.question_type),l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==E.surveyDetails?null:E.surveyDetails.status)),l.R7$(2),l.Y8G("ngIf",E.welcome_and_Purpose.questions.length>1)}}function ct(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"input",86,1),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(5);return l.DH7(E.newQuestionText,G)||(E.newQuestionText=G),l.Njj(G)}),l.bIt("keyup.enter",function(){l.eBV(C);const G=l.XpG(5);return l.Njj(G.saveNewQuestionwelcome())})("blur",function(){l.eBV(C);const G=l.XpG(5);return l.Njj(G.onWelcomeInputBlur())}),l.k0s()}if(2&S){const C=l.XpG(5);l.R50("ngModel",C.newQuestionText)}}function Gt(S,Ie){if(1&S&&(l.j41(0,"div",84)(1,"div",72),l.DNE(2,ct,2,1,"input",85),l.k0s()()),2&S){const C=l.XpG(4);l.R7$(2),l.Y8G("ngIf","open-ended"===C.selectedType)}}function Te(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",66),l.DNE(1,Jt,10,6,"div",67)(2,Gt,3,1,"div",68),l.j41(3,"button",69),l.bIt("click",function(){l.eBV(C);const G=l.XpG(3);return l.Njj(G.openNewQuestionInputWelcome())}),l.nrm(4,"i",70),l.EFF(5," Add Question "),l.k0s()()}if(2&S){const C=l.XpG(3);l.R7$(),l.Y8G("ngForOf",C.welcome_and_Purpose.questions),l.R7$(),l.Y8G("ngIf",C.showAddField),l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status))}}function Ze(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"input",93,3),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG().$implicit;return l.DH7(E.question,G)||(E.question=G),l.Njj(G)}),l.bIt("blur",function(){l.eBV(C);const G=l.XpG().index,E=l.XpG(2).$implicit,re=l.XpG(3);return l.Njj(re.saveEditedQuestion(E,G))})("keyup.enter",function(){l.eBV(C);const G=l.XpG().index,E=l.XpG(2).$implicit,re=l.XpG(3);return l.Njj(re.saveEditedQuestion(E,G))}),l.k0s()}if(2&S){const C=l.XpG().$implicit;l.R50("ngModel",C.question)}}function Ne(S,Ie){if(1&S&&(l.j41(0,"div",94),l.EFF(1),l.k0s()),2&S){const C=l.XpG().$implicit;l.Y8G("title",C.question),l.R7$(),l.SpI(" ",C.question," ")}}function Je(S,Ie){if(1&S&&l.nrm(0,"img",102),2&S){const C=l.XpG(3).$implicit;l.Y8G("src",C.url,l.B4B)}}function Fe(S,Ie){if(1&S&&l.nrm(0,"video",103),2&S){const C=l.XpG(3).$implicit;l.Y8G("src",C.url,l.B4B)}}function ze(S,Ie){if(1&S&&l.nrm(0,"audio",104),2&S){const C=l.XpG(3).$implicit;l.Y8G("src",C.url,l.B4B)}}function ft(S,Ie){if(1&S&&(l.j41(0,"div",97)(1,"div",98),l.EFF(2),l.k0s(),l.DNE(3,Je,1,1,"img",99)(4,Fe,1,1,"video",100)(5,ze,1,1,"audio",101),l.k0s()),2&S){const C=l.XpG(2).$implicit;l.R7$(2),l.JRh(C.question),l.R7$(),l.Y8G("ngIf","image"===C.media_type),l.R7$(),l.Y8G("ngIf","video"===C.media_type),l.R7$(),l.Y8G("ngIf","audio"===C.media_type)}}
1function Re(S,Ie){1&S&&(l.j41(0,"div",113),l.nrm(1,"div",114),l.j41(2,"div"),l.EFF(3,"Uploading file..."),l.k0s()())}function rt(S,Ie){if(1&S&&l.nrm(0,"img",120),2&S){const C=l.XpG(9);l.Y8G("src",C.editableMedia.previewUrl,l.B4B)}}function Ot(S,Ie){if(1&S&&l.nrm(0,"video",121),2&S){const C=l.XpG(9);l.Y8G("src",C.editableMedia.previewUrl,l.B4B)}}function It(S,Ie){if(1&S&&l.nrm(0,"audio",104),2&S){const C=l.XpG(9);l.Y8G("src",C.editableMedia.previewUrl,l.B4B)}}function on(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",115)(1,"div",116)(2,"i",117),l.bIt("click",function(){l.eBV(C);const G=l.XpG(8);return l.Njj(G.removePreviewImage())}),l.k0s(),l.DNE(3,rt,1,1,"img",118)(4,Ot,1,1,"video",119)(5,It,1,1,"audio",101),l.k0s()()}if(2&S){const C=l.XpG(8);l.R7$(3),l.Y8G("ngIf",C.isImages(C.editableMedia.previewUrl)),l.R7$(),l.Y8G("ngIf",C.isVideo(C.editableMedia.previewUrl)),l.R7$(),l.Y8G("ngIf",C.isAudio(C.editableMedia.previewUrl))}}function ue(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"input",122),l.bIt("change",function(G){l.eBV(C);const E=l.XpG(8);return l.Njj(E.onFileSelected(G,E.editableMedia,!0))}),l.k0s()}}function U(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",105)(1,"input",106),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(7);return l.DH7(E.editableMedia.question,G)||(E.editableMedia.question=G),l.Njj(G)}),l.k0s(),l.DNE(2,Re,4,0,"div",107)(3,on,6,3,"div",108)(4,ue,1,0,"input",109),l.j41(5,"div",110)(6,"button",111),l.bIt("click",function(){l.eBV(C);const G=l.XpG(7);return l.Njj(G.updateMediaQuestion())}),l.EFF(7,"Save"),l.k0s(),l.j41(8,"button",112),l.bIt("click",function(){l.eBV(C);const G=l.XpG(7);return l.Njj(G.cancelMediaEdit())}),l.EFF(9,"Cancel"),l.k0s()()()}if(2&S){const C=l.XpG(7);l.R7$(),l.R50("ngModel",C.editableMedia.question),l.R7$(),l.Y8G("ngIf",C.isFileLoading),l.R7$(),l.Y8G("ngIf",C.editableMedia.previewUrl&&!C.isFileLoading),l.R7$(),l.Y8G("ngIf",!C.editableMedia.previewUrl&&!C.isFileLoading)}}function Oe(S,Ie){if(1&S&&(l.j41(0,"div",95),l.DNE(1,ft,6,4,"div",96)(2,U,10,4,"ng-template",null,4,l.C5r),l.k0s()),2&S){const C=l.sdS(3),se=l.XpG().$implicit,G=l.XpG(5);l.R7$(),l.Y8G("ngIf",G.editingMediaId!==se._id)("ngIfElse",C)}}function Ue(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",123)(1,"i",124),l.bIt("click",function(){l.eBV(C);const G=l.XpG().$implicit,E=l.XpG(5);return l.Njj(E.startEditingMedia(G._id))}),l.k0s()()}if(2&S){const C=l.XpG(6);l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status))}}function $e(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",123)(1,"i",124),l.bIt("click",function(){l.eBV(C);const G=l.XpG().$implicit,E=l.XpG(5);return l.Njj(E.startEditing(G._id))}),l.k0s()()}if(2&S){const C=l.XpG(6);l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status))}}function Ve(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",125),l.bIt("click",function(){l.eBV(C);const G=l.XpG(),E=G.$implicit,re=G.index,tt=l.XpG(2).$implicit,$t=l.XpG(3);return l.Njj($t.openDeleteModal(re,E._id,tt.questions))}),l.nrm(1,"i",126),l.k0s()}if(2&S){const C=l.XpG(6);l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status))}}function lt(S,Ie){if(1&S&&(l.j41(0,"div",71)(1,"div",72),l.DNE(2,Ze,2,1,"input",88)(3,Ne,2,2,"div",89)(4,Oe,4,2,"div",90),l.j41(5,"div",74),l.EFF(6),l.k0s(),l.DNE(7,Ue,2,2,"div",91)(8,$e,2,2,"div",91)(9,Ve,2,2,"div",92),l.k0s()()),2&S){const C=Ie.$implicit,se=l.XpG(2).$implicit,G=l.XpG(3);l.R7$(2),l.Y8G("ngIf",G.editingQuestionId===C._id&&("open-ended"===C.type||"Scale"===C.type)),l.R7$(),l.Y8G("ngIf",G.editingQuestionId!==C._id&&("open-ended"===C.type||"Scale"===C.type)),l.R7$(),l.Y8G("ngIf","media"===C.type),l.R7$(2),l.JRh(C.type),l.R7$(),l.Y8G("ngIf","media"===C.type),l.R7$(),l.Y8G("ngIf","open-ended"===C.type),l.R7$(),l.Y8G("ngIf",se.questions.length>1)}}function Rt(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"input",134),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(3).$implicit;return l.DH7(E.newQuestionText,G)||(E.newQuestionText=G),l.Njj(G)}),l.bIt("change",function(){l.eBV(C);const G=l.XpG(3).$implicit,E=l.XpG(3);return l.Njj(E.saveNewQuestion(G))}),l.k0s()}if(2&S){const C=l.XpG(3).$implicit;l.R50("ngModel",C.newQuestionText)}}function nt(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"input",141),l.bIt("change",function(G){l.eBV(C);const E=l.XpG(4).$implicit,re=l.XpG(3);return l.Njj(re.beforeSelectFile(G,E))}),l.k0s()}}
1function xt(S,Ie){1&S&&(l.j41(0,"div",142),l.nrm(1,"i",143),l.EFF(2," Uploading file... "),l.k0s())}function St(S,Ie){if(1&S&&l.nrm(0,"img",102),2&S){const C=l.XpG(5).$implicit;l.Y8G("src",C.previewUrl,l.B4B)}}function Ht(S,Ie){if(1&S&&l.nrm(0,"audio",104),2&S){const C=l.XpG(5).$implicit;l.Y8G("src",C.previewUrl,l.B4B)}}function Pt(S,Ie){if(1&S&&l.nrm(0,"video",103),2&S){const C=l.XpG(5).$implicit;l.Y8G("src",C.previewUrl,l.B4B)}}function fn(S,Ie){if(1&S&&(l.j41(0,"div",144),l.DNE(1,St,1,1,"img",99)(2,Ht,1,1,"audio",101)(3,Pt,1,1,"video",100),l.k0s()),2&S){const C=l.XpG(4).$implicit,se=l.XpG(3);l.R7$(),l.Y8G("ngIf",se.isImages(C.previewUrl)),l.R7$(),l.Y8G("ngIf",se.isAudio(C.previewUrl)),l.R7$(),l.Y8G("ngIf",se.isVideo(C.previewUrl))}}function kn(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",145),l.bIt("click",function(){l.eBV(C);const G=l.XpG(4).$implicit,E=l.XpG(3);return l.Njj(E.saveMediaQuestion(G))}),l.EFF(1," Save "),l.k0s()}if(2&S){const C=l.XpG(4).$implicit;l.Y8G("disabled",!C.newQuestionText&&!C.previewUrl)}}function an(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",135)(1,"input",136),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(3).$implicit;return l.DH7(E.newQuestionText,G)||(E.newQuestionText=G),l.Njj(G)}),l.k0s(),l.DNE(2,nt,1,0,"input",137)(3,xt,3,0,"div",138)(4,fn,4,3,"div",139)(5,kn,2,1,"button",140),l.k0s()}if(2&S){const C=l.XpG(3).$implicit,se=l.XpG(3);l.R7$(),l.R50("ngModel",C.newQuestionText),l.R7$(),l.Y8G("ngIf",!C.previewUrl&&!se.isFileLoading),l.R7$(),l.Y8G("ngIf",se.isFileLoading),l.R7$(),l.Y8G("ngIf",C.previewUrl&&!se.isFileLoading),l.R7$(),l.Y8G("ngIf",C.previewUrl)}}function qt(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",146),l.bIt("click",function(G){return l.eBV(C),l.Njj(G.stopPropagation())}),l.j41(1,"div",50),l.bIt("click",function(G){l.eBV(C);const E=l.XpG(3).$implicit;return l.XpG(3).selectType(E,"open-ended"),l.Njj(G.stopPropagation())}),l.EFF(2,"Open-ended"),l.k0s(),l.j41(3,"div",50),l.bIt("click",function(G){l.eBV(C);const E=l.XpG(3).$implicit;return l.XpG(3).selectType(E,"media"),l.Njj(G.stopPropagation())}),l.EFF(4,"Media"),l.k0s()()}}function wi(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",71)(1,"div",72),l.DNE(2,Rt,1,1,"input",127)(3,an,6,5,"div",128),l.j41(4,"div",129)(5,"span",130),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2).$implicit,E=l.XpG(3);return l.Njj(E.toggleTypeDropdown(G))}),l.EFF(6),l.nrm(7,"i",131),l.k0s(),l.DNE(8,qt,5,0,"div",132),l.k0s()(),l.j41(9,"div",133),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2).$implicit,E=l.XpG(3);return l.Njj(E.removeNewQuestion(G))}),l.nrm(10,"i",126),l.k0s()()}if(2&S){const C=l.XpG(2).$implicit;l.R7$(2),l.Y8G("ngIf","open-ended"===C.selectedType),l.R7$(),l.Y8G("ngIf","media"===C.selectedType),l.R7$(3),l.SpI(" ",C.selectedType||"Select Type"," "),l.R7$(2),l.Y8G("ngIf",C.showTypeDropdown)}}function $n(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",66),l.DNE(1,lt,10,7,"div",67)(2,wi,11,4,"div",87),l.j41(3,"button",34),l.bIt("click",function(){l.eBV(C);const G=l.XpG().$implicit,E=l.XpG(3);return l.Njj(E.openNewQuestionInput(G))}),l.nrm(4,"i",70),l.EFF(5," Add Question "),l.k0s()()}if(2&S){const C=l.XpG().$implicit,se=l.XpG(3);l.R7$(),l.Y8G("ngForOf",C.questions),l.R7$(),l.Y8G("ngIf",C.showAddField),l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==se.surveyDetails?null:se.surveyDetails.status))}}function Qn(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",56)(1,"div",57),l.bIt("click",function(){const G=l.eBV(C).$implicit,E=l.XpG(3);return l.Njj(E.toggleSection(G))}),l.j41(2,"div",58),l.nrm(3,"img",59),l.EFF(4),l.k0s(),l.j41(5,"div",60),l.nrm(6,"i",61),l.k0s()(),l.DNE(7,$n,6,4,"div",62),l.k0s()}if(2&S){const C=Ie.$implicit;l.R7$(4),l.SpI(" ",C.text," "),l.R7$(2),l.Y8G("ngClass",C.isOpen?"fas fa-minus":"fas fa-plus"),l.R7$(),l.Y8G("ngIf",C.isOpen)}}function Un(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",78)(1,"input",80,3),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(5);return l.DH7(E.editedQuestionTextWrap,G)||(E.editedQuestionTextWrap=G),l.Njj(G)}),l.bIt("keyup.enter",function(){l.eBV(C);const G=l.XpG(5);return l.Njj(G.saveEditedQuestionWrap())})("blur",function(){l.eBV(C);const G=l.XpG(5);return l.Njj(G.saveEditedQuestionWrap())}),l.k0s()()}if(2&S){const C=l.XpG(5);l.R7$(),l.R50("ngModel",C.editedQuestionTextWrap)}}function Wn(S,Ie){if(1&S&&(l.j41(0,"div",81),l.EFF(1),l.k0s()),2&S){const C=l.XpG().$implicit;l.Y8G("title",C.question_text),l.R7$(),l.SpI(" ",C.question_text," ")}}function Oi(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",82)(1,"i",83),l.bIt("click",function(){l.eBV(C);const G=l.XpG().index,E=l.XpG(4);return l.Njj(E.deleteWrap(G))}),l.k0s()()}if(2&S){const C=l.XpG(5);l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status))}}function hn(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",71)(1,"div",72),l.DNE(2,Un,3,1,"div",73)(3,Wn,2,2,"ng-template",null,5,l.C5r),l.j41(5,"div",74),l.EFF(6),l.k0s(),l.j41(7,"div",75),l.bIt("click",function(){const G=l.eBV(C).index,E=l.XpG(4);return l.Njj(E.startEditingWrap(G))}),l.nrm(8,"i",76),l.k0s(),l.DNE(9,Oi,2,2,"div",77),l.k0s()()}if(2&S){const C=Ie.$implicit,se=Ie.index,G=l.sdS(4),E=l.XpG(4);l.R7$(2),l.Y8G("ngIf",E.editIndexWrap===se)("ngIfElse",G),l.R7$(4),l.JRh(C.question_type),l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==E.surveyDetails?null:E.surveyDetails.status)),l.R7$(2),l.Y8G("ngIf",E.wrap_up_and_final_thoughts.questions.length>1)}}function Mi(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"input",86,1),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(5);return l.DH7(E.newQuestionTextWrap,G)||(E.newQuestionTextWrap=G),l.Njj(G)}),l.bIt("keyup.enter",function(){l.eBV(C);const G=l.XpG(5);return l.Njj(G.saveNewQuestionWrap())})("blur",function(){l.eBV(C);const G=l.XpG(5);return l.Njj(G.onWrapInputBlur())}),l.k0s()}if(2&S){const C=l.XpG(5);l.R50("ngModel",C.newQuestionTextWrap)}}function Fn(S,Ie){if(1&S&&(l.j41(0,"div",84)(1,"div",72),l.DNE(2,Mi,2,1,"input",85),l.k0s()()),2&S){const C=l.XpG(4);
1l.R7$(2),l.Y8G("ngIf","open-ended"===C.selectedTypeWrap)}}function xn(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",66),l.DNE(1,hn,10,6,"div",67)(2,Fn,3,1,"div",68),l.j41(3,"button",34),l.bIt("click",function(){l.eBV(C);const G=l.XpG(3);return l.Njj(G.openNewQuestionFieldWrap())}),l.nrm(4,"i",70),l.EFF(5," Add Question "),l.k0s()()}if(2&S){const C=l.XpG(3);l.R7$(),l.Y8G("ngForOf",C.wrap_up_and_final_thoughts.questions),l.R7$(),l.Y8G("ngIf",C.showAddWrap),l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status))}}function hi(S,Ie){1&S&&l.nrm(0,"i",51)}function Xn(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div")(1,"div",53)(2,"h2",54),l.EFF(3,"Finalize your Discussion Guide"),l.k0s(),l.j41(4,"p",55),l.EFF(5," Organize your interview questions based on the key information areas. "),l.k0s()(),l.j41(6,"div",56)(7,"div",57),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.toggleSectionWarm("welcome_and_Purpose"))}),l.j41(8,"div",58),l.nrm(9,"img",59),l.EFF(10),l.k0s(),l.j41(11,"div",60),l.nrm(12,"i",61),l.k0s()(),l.DNE(13,Te,6,4,"div",62),l.k0s(),l.DNE(14,Qn,8,3,"div",63),l.j41(15,"div",56)(16,"div",57),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.toggleSectionWarm("wrap_up_and_final_thoughts"))}),l.j41(17,"div",58),l.nrm(18,"img",59),l.EFF(19),l.k0s(),l.j41(20,"div",60),l.nrm(21,"i",61),l.k0s()(),l.DNE(22,xn,6,4,"div",62),l.k0s(),l.j41(23,"div",64)(24,"button",65),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.updateState(!1))}),l.EFF(25,"Previous"),l.k0s(),l.j41(26,"button",37),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.continueInterview())}),l.EFF(27," Continue to Interview Setup "),l.DNE(28,hi,1,0,"i",38),l.k0s()()()}if(2&S){const C=l.XpG(2);l.R7$(10),l.SpI(" ",C.welcome_and_Purpose.section_title," "),l.R7$(2),l.Y8G("ngClass",C.sectionStates.welcome_and_Purpose?"fas fa-minus":"fas fa-plus"),l.R7$(),l.Y8G("ngIf",C.sectionStates.welcome_and_Purpose),l.R7$(),l.Y8G("ngForOf",C.core_discussion),l.R7$(5),l.SpI(" ",C.wrap_up_and_final_thoughts.section_title," "),l.R7$(2),l.Y8G("ngClass",C.sectionStates.wrap_up_and_final_thoughts?"fas fa-minus":"fas fa-plus"),l.R7$(),l.Y8G("ngIf",C.sectionStates.wrap_up_and_final_thoughts),l.R7$(4),l.Y8G("disabled",C.isContinueDisabled),l.R7$(2),l.Y8G("ngIf",C.isCreatingSurvey)}}function ri(S,Ie){if(1&S&&(l.j41(0,"div",52),l.DNE(1,at,8,0,"section",14)(2,Xn,29,9,"div",12),l.k0s()),2&S){const C=l.XpG();l.R7$(),l.Y8G("ngIf",C.DGquestionLoading),l.R7$(),l.Y8G("ngIf",!C.DGquestionLoading)}}function In(S,Ie){1&S&&l.nrm(0,"i",51)}function kr(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",155),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.formatDG())}),l.EFF(1,"Save "),l.DNE(2,In,1,0,"i",38),l.k0s()}if(2&S){const C=l.XpG(2);l.Y8G("disabled",C.loadingDG)("ngClass",l.eq3(3,we,C.isEditorEmpty())),l.R7$(2),l.Y8G("ngIf",C.loadingDG)}}function Xi(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",156),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.updateState(!0))}),l.EFF(1,"Continue to Interview Setup"),l.k0s()}}function Se(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div")(1,"div",52)(2,"div",147)(3,"h2"),l.EFF(4,"Finalize your Discussion Guide"),l.k0s(),l.j41(5,"p",30),l.EFF(6,"Organize your interview questions based on the key information areas."),l.k0s()(),l.j41(7,"div",148)(8,"form",149)(9,"div",150),l.nrm(10,"ngx-editor-menu",151)(11,"ngx-editor",152),l.k0s()()(),l.j41(12,"div",64)(13,"button",65),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.updateState(!1))}),l.EFF(14,"Previous"),l.k0s(),l.DNE(15,kr,3,5,"button",153)(16,Xi,2,0,"button",154),l.k0s()()()}if(2&S){const C=l.XpG();l.R7$(8),l.Y8G("formGroup",C.form),l.R7$(2),l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status)),l.Y8G("editor",C.editor)("toolbar",C.toolbar),l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status)),l.Y8G("editor",C.editor),l.R7$(4),l.Y8G("ngIf",C.isDGEdited),l.R7$(),l.Y8G("ngIf",!C.isDGEdited)}}function it(S,Ie){if(1&S&&(l.j41(0,"div",187)(1,"div",188)(2,"h3",189),l.EFF(3,"Preview Discu
1ssion Guide"),l.k0s(),l.j41(4,"p",190),l.EFF(5," Review your complete discussion guide before proceeding to interview configuration. "),l.k0s(),l.nrm(6,"markdown",191),l.k0s()()),2&S){const C=l.XpG(2);l.R7$(6),l.Y8G("data",C.discussionGuide)}}function te(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",200)(1,"div",201)(2,"div",202)(3,"div",203)(4,"div",204),l.EFF(5),l.k0s()(),l.j41(6,"div",205),l.nrm(7,"img",206),l.k0s()(),l.j41(8,"div",207),l.EFF(9),l.k0s(),l.j41(10,"div",208)(11,"button",209),l.bIt("click",function(){const G=l.eBV(C).$implicit,E=l.XpG(4);return l.Njj(E.editPreQuestion(G))}),l.nrm(12,"i",210),l.k0s(),l.j41(13,"button",211),l.bIt("click",function(){const G=l.eBV(C).$implicit,E=l.XpG(4);return l.Njj(E.deleteInterviewQuestions(G._id))}),l.nrm(14,"i",212),l.k0s()()()()}if(2&S){const C=Ie.$implicit,se=l.XpG(4);l.R7$(5),l.JRh(C.questionRefernceNo),l.R7$(2),l.Mz_("alt","",C.type," icon"),l.Y8G("src",se.questionIcons[C.type],l.B4B),l.R7$(2),l.SpI(" ",C.text," "),l.R7$(2),l.AVh("disabled-icon","DRAFT"!==(null==se.surveyDetails?null:se.surveyDetails.status)),l.R7$(2),l.AVh("disabled-icon","DRAFT"!==(null==se.surveyDetails?null:se.surveyDetails.status))}}function ce(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",213),l.bIt("click",function(){l.eBV(C);const G=l.XpG(4);return l.Njj(G.openBranchingModal())}),l.nrm(1,"i",70),l.EFF(2," Add Screening Criteria "),l.k0s()}if(2&S){const C=l.XpG(4);l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status))("disabled-icon",null==C.branchData?null:C.branchData.questionId)}}function Z(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",214)(1,"a",215),l.bIt("click",function(){l.eBV(C);const G=l.XpG(4);return l.Njj(G.selectQuestionType("open-ended"))}),l.nrm(2,"img",216),l.EFF(3,"\xa0 Open-ended "),l.k0s(),l.j41(4,"a",215),l.bIt("click",function(){l.eBV(C);const G=l.XpG(4);return l.Njj(G.selectQuestionType("multiple-choice"))}),l.nrm(5,"img",217),l.EFF(6,"\xa0 Multiple Choice "),l.k0s(),l.j41(7,"a",215),l.bIt("click",function(){l.eBV(C);const G=l.XpG(4);return l.Njj(G.selectQuestionType("numeric"))}),l.nrm(8,"img",218),l.EFF(9,"\xa0 Numeric "),l.k0s()()}}function ie(S,Ie){if(1&S){const C=l.RV6();l.qex(0),l.j41(1,"h3",189),l.EFF(2,"Pre-Interview Screening Questions"),l.k0s(),l.j41(3,"div",195),l.DNE(4,te,15,9,"div",196),l.k0s(),l.j41(5,"div",197)(6,"button",34),l.bIt("click",function(){l.eBV(C);const G=l.XpG(3);return l.Njj(G.toggleDropdown())}),l.nrm(7,"i",70),l.EFF(8," Add Question "),l.k0s(),l.DNE(9,ce,3,4,"button",198)(10,Z,10,0,"div",199),l.k0s(),l.bVm()}if(2&S){const C=l.XpG(3);l.R7$(4),l.Y8G("ngForOf",C.preInterviewQuestions),l.R7$(2),l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status)),l.R7$(3),l.Y8G("ngIf",C.preInterviewQuestions.length>0),l.R7$(),l.Y8G("ngIf",C.showDropdown)}}function Ae(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",231)(1,"div",232),l.nrm(2,"img",233),l.j41(3,"span",234),l.EFF(4,"Choices"),l.k0s()(),l.j41(5,"div",235)(6,"div",236)(7,"label",237),l.EFF(8,"Minimum Words"),l.k0s(),l.j41(9,"input",238),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(4);return l.DH7(E.minWords,G)||(E.minWords=G),l.Njj(G)}),l.k0s()(),l.j41(10,"div",236)(11,"label",237),l.EFF(12,"Maximum Words"),l.k0s(),l.j41(13,"input",239),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(4);return l.DH7(E.maxWords,G)||(E.maxWords=G),l.Njj(G)}),l.k0s()()()()}if(2&S){const C=l.XpG(4);l.R7$(9),l.R50("ngModel",C.minWords),l.R7$(4),l.R50("ngModel",C.maxWords)}}function Y(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",249),l.bIt("click",function(){l.eBV(C);const G=l.XpG().index,E=l.XpG(5);return l.Njj(E.removeOption(G))}),l.nrm(1,"i",250),l.k0s()}}function ne(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",246)(1,"input",247),l.mxI("ngModelChange",function(G){const E=l.eBV(C).index,re=l.XpG(5);return l.DH7(re.multipleOptions[E],G)||(re.multipleOptions[E]=G),l.Njj(G)}),l.bIt("keydown.enter",function(){l.eBV(C);const G=l.XpG(5);return l.Njj(G.addOption())}),l.k0s(),l.DNE(2,Y,2,0,"button",248),l.k0s()}if(2&S){const C=Ie.index,se=l.XpG(5);l.R7$(),l.Mz_("placeholder","Option ",C+1,""),l.R50("ngModel",se.multipleOptions[C]),l.R7$(),l.Y8G("ngIf",se.multipleOptions.length>1)}}function fe(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",231)(1,"div",232),l.nrm(2,"img",233),l.j41(3,"span",234),l.EFF(4,"Choices"),l.k0s()(),l.DNE(5,ne,3,4,"div",240),l.j41(6,"button",112),l.bIt("click",function(){l.eBV(C);const G=l.XpG(4);return l.Njj(G.addOption())}),l.EFF(7,"+ Add Option"),l.k0s(),l.j41(8,"div",241)(9,"h3",242),l.EFF(10,"Allow Multiple Choices"),l.k0s(),l.j41(11,"label",243)(12,"input",244),l.bIt("change",function(G){l.eBV(C);const E=l.XpG(4);return l.Njj(E.onChangeMultiChoice(G))}),l.k0s(),l.nrm(13,"span",245),l.k0s()()()}if(2&S){const C=l.XpG(4);l.R7$(5),l.Y8G("ngForOf",C.multipleOptions)("ngForTrackBy",C.trackByIndex),l.R7$(7),l.Y8G("checked",C.isMultipleChoices)}}function Ke(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",231)(1,"div",232),l.nrm(2,"img",233),l.j41(3,"span",234),l.EFF(4,"Choices"),l.k0s()(),l.j41(5,"div",251)(6,"div",236)(7,"label",237),l.EFF(8,"Minimum Value"),l.k0s(),l.j41(9,"input",238),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(4);return l.DH7(E.minValue,G)||(E.minValue=G),l.Njj(G)}),l.k0s()(),l.j41(10,"div",236)(11,"label",237),l.EFF(12,"Maximum Value"),l.k0s(),l.j41(13,"input",239),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(4);return l.DH7(E.maxValue,G)||(E.maxValue=G),l.Njj(G)}),l.k0s()()()()}if(2&S){const C=l.XpG(4);l.R7$(9),l.R50("ngModel",C.minValue),l.R7$(4),l.R50("ngModel",C.maxValue)}}function ve(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",252),l.bIt("click",function(){l.eBV(C);const G=l.XpG(4);return l.Njj(G.savePreInterviewQuestion())}),l.EFF(1," Save "),l.k0s()}if(2&S){const C=l.XpG(4);l.Y8G("disabled",!(null!=C.questionText&&C.questionText.trim()))}}function ye(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",252),l.bIt("click",function(){l.eBV(C);const G=l.XpG(4);return l.Njj(G.updatePreInterviewQuestion())}),l.EFF(1," Update "),l.k0s()}if(2&S){const C=l.XpG(4);l.Y8G("disabled",!(null!=C.questionText&&C.questionText.trim()))}}function be(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",219)(1,"div",220)(2,"div",221)(3,"div",222),l.nrm(4,"img",223),l.k0s(),l.nrm(5,"div",224),l.j41(6,"div",225),l.EFF(7),l.k0s()(),l.j41(8,"textarea",226),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(3);return l.DH7(E.questionText,G)||(E.questionText=G),l.Njj(G)}),l.k0s()(),l.DNE(9,Ae,14,2,"div",227)(10,fe,14,3,"div",227)(11,Ke,14,2,"div",227),l.j41(12,"div",228),l.DNE(13,ve,2,1,"button",229)(14,ye,2,1,"button",229),l.j41(15,"button",230),l.bIt("click",function(){l.eBV(C);const G=l.XpG(3);return l.Njj(G.goBack())}),l.EFF(16,"Close"),l.k0s()()()}if(2&S){const C=l.XpG(3);l.R7$(4),l.Y8G("src",C.questionIcons[C.selectedinterviewQuestionType],l.B4B),l.R7$(3),l.SpI(" Q",C.nextQuestionNumber," "),l.R7$(),l.R50("ngModel",C.questionText),l.R7$(),l.Y8G("ngIf","o
1pen-ended"===C.selectedinterviewQuestionType),l.R7$(),l.Y8G("ngIf","multiple-choice"===C.selectedinterviewQuestionType),l.R7$(),l.Y8G("ngIf","numeric"===C.selectedinterviewQuestionType),l.R7$(2),l.Y8G("ngIf",!C.isEditing),l.R7$(),l.Y8G("ngIf",C.isEditing)}}function Ee(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",192)(1,"div")(2,"h3",253),l.EFF(3,"Screening Criteria"),l.k0s()(),l.j41(4,"div",254)(5,"p"),l.EFF(6," If question is "),l.j41(7,"strong"),l.EFF(8),l.k0s(),l.EFF(9," response "),l.j41(10,"strong"),l.EFF(11),l.k0s(),l.EFF(12,", then Go to "),l.j41(13,"strong"),l.EFF(14),l.k0s()(),l.j41(15,"div",208)(16,"button",209),l.bIt("click",function(){l.eBV(C);const G=l.XpG(3);return l.Njj(G.editBranch(G.branchData))}),l.nrm(17,"i",210),l.k0s(),l.j41(18,"button",211),l.bIt("click",function(){l.eBV(C);const G=l.XpG(3);return l.Njj(G.showPreDeleteModal=!0)}),l.nrm(19,"i",212),l.k0s()()()()}if(2&S){const C=l.XpG(3);l.R7$(8),l.JRh(C.getLogicQuestionText(null==C.branchData?null:C.branchData.questionId)),l.R7$(3),l.Lme("",null==C.branchData?null:C.branchData.condition," ",null==C.branchData?null:C.branchData.option,""),l.R7$(3),l.JRh(null==C.branchData?null:C.branchData.result),l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status)),l.R7$(),l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status)),l.R7$(2),l.AVh("disabled-icon","DRAFT"!==(null==C.surveyDetails?null:C.surveyDetails.status))}}function pt(S,Ie){if(1&S&&(l.j41(0,"div")(1,"div",192),l.DNE(2,ie,11,5,"ng-container",12)(3,be,17,8,"div",193),l.k0s(),l.DNE(4,Ee,20,10,"div",194),l.k0s()),2&S){const C=l.XpG(2);l.R7$(2),l.Y8G("ngIf",!C.selectedinterviewQuestionType&&!C.isBranching),l.R7$(),l.Y8G("ngIf",C.selectedinterviewQuestionType&&!C.isBranching),l.R7$(),l.Y8G("ngIf",null==C.branchData?null:C.branchData.questionId)}}function _t(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",257)(1,"input",258),l.bIt("change",function(G){const E=l.eBV(C).$implicit;return l.Njj(E.isSelected=G.target.checked)}),l.k0s(),l.j41(2,"label",259),l.EFF(3),l.k0s()()}if(2&S){const C=Ie.$implicit;l.R7$(),l.FS9("id",null==C?null:C.language),l.Y8G("checked",C.isSelected)("disabled",C.disabled),l.R7$(),l.FS9("value",null==C?null:C.language),l.FS9("for",null==C?null:C.language),l.R7$(),l.JRh(null==C?null:C.name)}}function tn(S,Ie){if(1&S&&(l.j41(0,"div",187)(1,"h3"),l.EFF(2,"Select Languages"),l.k0s(),l.j41(3,"p"),l.EFF(4,"Choose all languages that your AI interviewer should support. Participants will be able to select their preferred language."),l.k0s(),l.j41(5,"div",255),l.DNE(6,_t,4,6,"div",256),l.k0s()()),2&S){const C=l.XpG(2);l.R7$(5),l.AVh("disabled-icon",!C.newDeployment),l.R7$(),l.Y8G("ngForOf",C.languages)}}function ln(S,Ie){1&S&&(l.j41(0,"div",260)(1,"div",261)(2,"h3"),l.EFF(3,"Choose Interviewer Persona"),l.k0s(),l.j41(4,"div",262)(5,"div",263),l.nrm(6,"input",264),l.j41(7,"label",265)(8,"span",54),l.EFF(9,"Neutral Professional"),l.k0s(),l.j41(10,"span",266),l.EFF(11,"Objective, clear, and professional tone"),l.k0s()()(),l.j41(12,"div",263),l.nrm(13,"input",267),l.j41(14,"label",268)(15,"span",54),l.EFF(16,"Friendly Conversationalist"),l.k0s(),l.j41(17,"span",266),l.EFF(18,"Warm, approachable, and engaging"),l.k0s()()(),l.j41(19,"div",263),l.nrm(20,"input",269),l.j41(21,"label",270)(22,"span",54),l.EFF(23,"Industry Expert"),l.k0s(),l.j41(24,"span",266),l.EFF(25,"Knowledgeable, analytical, and insightful"),l.k0s()()(),l.j41(26,"div",263),l.nrm(27,"input",271),l.j41(28,"label",272)(29,"span",54),l.EFF(30,"Empathetic Listener"),l.k0s(),l.j41(31,"span",266),l.EFF(32,"Understanding, patient, and supportive"),l.k0s()()(),l.j41(33,"div",263),l.nrm(34,"input",271),l.j41(35,"label",272)(36,"span",54),l.EFF(37,"Direct Investigator"),l.k0s(),l.j41(38,"span",266),l.EFF(39,"Straightforward, efficient, and to-the-point"),l.k0s()()()()()())}function An(S,Ie){if(1&S&&(l.j41(0,"option",285),l.EFF(1),l.k0s()),2&S){const C=Ie.$implicit;l.Y8G("value",C),l.R7$(),l.JRh(C)}}function Ri(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",273)(1,"h3",158),l.EFF(2,"Voice Settings"),l.k0s(),l.j41(3,"div",274)(4,"label"),l.EFF(5,"Speaking Speed"),l.k0s(),l.j41(6,"div",275)(7,"span",276),l.EFF(8,"Slow"),l.k0s(),l.j41(9,"div",277)(10,"input",278),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(2);return l.DH7(E.speakingSpeed,G)||(E.speakingSpeed=G),l.Njj(G)}),l.bIt("input",function(G){l.eBV(C);const E=l.XpG(2);return l.Njj(E.updateLabelPosition(G))}),l.k0s(),l.j41(11,"div",279),l.EFF(12),l.k0s()(),l.j41(13,"span",276),l.EFF(14,"Fast"),l.k0s()()(),l.j41(15,"div",280)(16,"label"),l.EFF(17,"Tone"),l.k0s(),l.j41(18,"select",281),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(2);return l.DH7(E.tone,G)||(E.tone=G),l.Njj(G)}),l.DNE(19,An,2,2,"option",282),l.k0s()(),l.j41(20,"div",283)(21,"button",284),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.testVoice())}),l.EFF(22,"\u25b6 Test Voice"),l.k0s(),l.j41(23,"p"),l.EFF(24,"Click to hear a sample of how your AI interviewer will sound with these settings."),l.k0s()()()}if(2&S){const C=l.XpG(2);l.R7$(10),l.R50("ngModel",C.speakingSpeed),l.R7$(),l.xc7("left",C.labelPosition,"%"),l.R7$(),l.SpI(" ",C.speakingSpeed.toFixed(1),"x "),l.R7$(6),l.R50("ngModel",C.tone),l.R7$(),l.Y8G("ngForOf",C.toneOptions)}}function Ti(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",286)(1,"h3",287),l.EFF(2,"Configure Opening Message"),l.k0s(),l.j41(3,"p",288),l.EFF(4," This is the first message participants will hear when the interview begins. Choose a template or customize your own. "),l.k0s(),l.j41(5,"div",289)(6,"h4",290),l.EFF(7,"Templates"),l.k0s(),l.j41(8,"div",291)(9,"div",292),l.nrm(10,"input",293),l.j41(11,"label",294),l.EFF(12,"Formal Introduction"),l.k0s(),l.j41(13,"p",295),l.EFF(14," Hello, thank you for participating in this research interview. My name is [AI Name], and I'll be conducting this interview today. Your insights are valuable to us and will help improve our products and services. "),l.k0s()(),l.j41(15,"div",292),l.nrm(16,"input",296
1),l.j41(17,"label",297),l.EFF(18,"Casual Welcome"),l.k0s(),l.j41(19,"p"),l.EFF(20," Hi there! Thanks so much for taking the time to chat with me today. I'm [AI Name] and I'm excited to hear your thoughts and experiences. This is a relaxed conversation, so feel free to share whatever comes to mind. "),l.k0s()(),l.j41(21,"div",292),l.nrm(22,"input",298),l.j41(23,"label",299),l.EFF(24,"Brief Introduction"),l.k0s(),l.j41(25,"p"),l.EFF(26," Welcome to this interview. I'm [AI Name], your AI interviewer. Let's get started with our discussion. "),l.k0s()()()(),l.j41(27,"div",300)(28,"h4"),l.EFF(29,"Customize Message"),l.k0s(),l.j41(30,"textarea",301),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(2);return l.DH7(E.customMessage,G)||(E.customMessage=G),l.Njj(G)}),l.k0s()(),l.j41(31,"div",302)(32,"h3"),l.EFF(33,"Tips for an effective opening:"),l.k0s(),l.j41(34,"ul")(35,"li"),l.EFF(36,"Introduce yourself and explain the purpose of the interview"),l.k0s(),l.j41(37,"li"),l.EFF(38,"Make participants feel comfortable to share openly"),l.k0s(),l.j41(39,"li"),l.EFF(40,"Mention the expected duration of the participant's session"),l.k0s(),l.j41(41,"li"),l.EFF(42,"Set clear expectations about the kind of input or views you want"),l.k0s(),l.j41(43,"li"),l.EFF(44,"Consider mentioning the language(s) if you're supporting multiple languages"),l.k0s()()()()}if(2&S){const C=l.XpG(2);l.R7$(30),l.R50("ngModel",C.customMessage)}}function Bn(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",313)(1,"span",314),l.EFF(2),l.k0s(),l.j41(3,"span",315),l.EFF(4),l.k0s(),l.j41(5,"button",316),l.bIt("click",function(){const G=l.eBV(C).index,E=l.XpG(4);return l.Njj(E.removePronunciation(G))}),l.EFF(6,"\u2715"),l.k0s()()}if(2&S){const C=Ie.$implicit;l.R7$(2),l.JRh(C.word),l.R7$(2),l.JRh(C.pronunciation)}}function _r(S,Ie){if(1&S&&(l.j41(0,"div",311),l.DNE(1,Bn,7,2,"div",312),l.k0s()),2&S){const C=l.XpG(3);l.R7$(),l.Y8G("ngForOf",C.pronunciationList)}}function vr(S,Ie){1&S&&(l.j41(0,"p",317),l.EFF(1,"No custom pronunciations added yet."),l.k0s())}function dr(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",303)(1,"h3",304),l.EFF(2,"Pronunciation Dictionary"),l.k0s(),l.j41(3,"p",30),l.EFF(4," Add custom pronunciations for specific terms, names, or local words that the AI interviewer should pronounce correctly. "),l.k0s(),l.j41(5,"div",305)(6,"div",306)(7,"label"),l.EFF(8,"Word or Phrase"),l.k0s(),l.j41(9,"input",307),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(2);return l.DH7(E.word,G)||(E.word=G),l.Njj(G)}),l.k0s()(),l.j41(10,"div",306)(11,"label"),l.EFF(12,"Pronunciation Guide"),l.k0s(),l.j41(13,"input",308),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(2);return l.DH7(E.pronunciation,G)||(E.pronunciation=G),l.Njj(G)}),l.k0s()(),l.j41(14,"button",309),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.addPronunciation())}),l.EFF(15,"Add"),l.k0s()(),l.DNE(16,_r,2,1,"div",310)(17,vr,2,0,"ng-template",null,6,l.C5r),l.k0s()}if(2&S){const C=l.sdS(18),se=l.XpG(2);l.R7$(9),l.R50("ngModel",se.word),l.R7$(4),l.R50("ngModel",se.pronunciation),l.R7$(3),l.Y8G("ngIf",se.pronunciationList.length>0)("ngIfElse",C)}}function $r(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div")(1,"div",157)(2,"div",147)(3,"h2",158),l.EFF(4,"Configure Your AI Interviewer"),l.k0s(),l.j41(5,"p",30),l.EFF(6,"Customize how your AI interviewer will conduct the interviews. "),l.k0s()(),l.j41(7,"div",159)(8,"div",160)(9,"input",161),l.bIt("change",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.setActiveTab("Discussion_Guide"))}),l.k0s(),l.j41(10,"label",162),l.nrm(11,"img",163),l.EFF(12,"Discussion Guide"),l.k0s(),l.j41(13,"input",164),l.bIt("change",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.setActiveTab("Screener_Questions"))}),l.k0s(),l.j41(14,"label",165),l.nrm(15,"i",166),l.EFF(16,"Screener Questions"),l.k0s(),l.j41(17,"input",167),l.bIt("change",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.setActiveTab("language"))}),l.k0s(),l.j41(18,"label",168),l.nrm(19,"i",169),l.EFF(20,"Language"),l.k0s(),l.j41(21,"input",170),l.bIt("change",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.setActiveTab("persona"))}),l.k0s(),l.j41(22,"label",171),l.nrm(23,"i",172),l.EFF(24," Persona"),l.k0s(),l.j41(25,"input",173),l.bIt("change",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.setActiveTab("voice"))}
1),l.k0s(),l.j41(26,"label",174),l.nrm(27,"i",175),l.EFF(28," Voice"),l.k0s(),l.j41(29,"input",176),l.bIt("change",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.setActiveTab("opening"))}),l.k0s(),l.j41(30,"label",177),l.nrm(31,"i",178),l.EFF(32," Opening Message"),l.k0s(),l.j41(33,"input",179),l.bIt("change",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.setActiveTab("pronunciation"))}),l.k0s(),l.j41(34,"label",180),l.nrm(35,"i",181),l.EFF(36," Pronunciation"),l.k0s()()(),l.DNE(37,it,7,1,"div",182)(38,pt,5,3,"div",12)(39,tn,7,3,"div",182)(40,ln,40,0,"div",183)(41,Ri,25,6,"div",184)(42,Ti,45,1,"div",185)(43,dr,19,4,"div",186),l.j41(44,"div",64)(45,"button",65),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.updateState(!1))}),l.EFF(46,"Previous"),l.k0s(),l.j41(47,"button",156),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return"language"===G.activeTab&&G.saveLanguages(),l.Njj(G.deployment())}),l.EFF(48,"Continue to Deployment"),l.k0s()()()()}if(2&S){const C=l.XpG();l.R7$(9),l.Y8G("checked","Discussion_Guide"===C.activeTab),l.R7$(4),l.Y8G("checked","Screener_Questions"===C.activeTab),l.R7$(4),l.Y8G("checked","language"===C.activeTab),l.R7$(20),l.Y8G("ngIf","Discussion_Guide"===C.activeTab),l.R7$(),l.Y8G("ngIf","Screener_Questions"===C.activeTab),l.R7$(),l.Y8G("ngIf","language"===C.activeTab),l.R7$(),l.Y8G("ngIf","persona"===C.activeTab),l.R7$(),l.Y8G("ngIf","voice"===C.activeTab),l.R7$(),l.Y8G("ngIf","opening"===C.activeTab),l.R7$(),l.Y8G("ngIf","pronunciation"===C.activeTab)}}function tr(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div")(1,"div",318)(2,"div",319),l.nrm(3,"i",320),l.k0s(),l.j41(4,"h2"),l.EFF(5,"Interview Ready to be deployed"),l.k0s(),l.j41(6,"p"),l.EFF(7,"Your AI interviewer is now ready to conduct interviews. Share the link below with participants."),l.k0s(),l.j41(8,"div",321)(9,"span",322),l.EFF(10),l.k0s(),l.j41(11,"button",323),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.copyNewLink(G.surveyLink))}),l.nrm(12,"i",324),l.k0s()(),l.j41(13,"button",325),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.goto())}),l.EFF(14,"View Analysis Dashboard"),l.k0s()()()}if(2&S){const C=l.XpG();l.R7$(9),l.FS9("title",C.surveyLink),l.R7$(),l.JRh(C.surveyLink)}}function jr(S,Ie){1&S&&l.nrm(0,"i",51)}function ur(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"p")(1,"a",50),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.cancelDeployment())}),l.EFF(2,"Cancel Deployment"),l.k0s()()}}function qe(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div")(1,"div",326)(2,"div",147)(3,"h2",158),l.EFF(4,"Deploy Your AI Interviewer"),l.k0s(),l.j41(5,"p",30),l.EFF(6,"Choose how you want to deploy your AI interviewer to participants."),l.k0s()(),l.j41(7,"div",261)(8,"h3"),l.EFF(9,"Deployment Method"),l.k0s(),l.j41(10,"div",262)(11,"div",263),l.nrm(12,"input",327),l.j41(13,"label",265)(14,"span",54),l.EFF(15,"Generate Interview URL"),l.k0s(),l.j41(16,"span",266),l.EFF(17,"Create a unique link that participants can access in their browser"),l.k0s()()(),l.j41(18,"div",263),l.nrm(19,"input",328),l.j41(20,"label",268)(21,"span",54),l.EFF(22,"Zoom Integration"),l.k0s(),l.j41(23,"span",266),l.EFF(24,"Deploy as a Zoom bot that can join scheduled meetings"),l.k0s()()(),l.j41(25,"div",263),l.nrm(26,"input",329),l.j41(27,"label",270)(28,"span",54),l.EFF(29,"Microsoft Teams Integration"),l.k0s(),l.j41(30,"span",266),l.EFF(31,"Deploy as a Teams bot that can conduct interviews in your Teams environment"),l.k0s()()(),l.j41(32,"div",263),l.nrm(33,"input",330),l.j41(34,"label",272)(35,"span",54),l.EFF(36,"Google Meet Integration"),l.k0s(),l.j41(37,"span",266),l.EFF(38,"Deploy as a Meet bot that can join Google Calendar scheduled interviews"),l.k0s()()()()(),l.j41(39,"div",331)(40,"button",65),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.updateState(!1))}),l.EFF(41,"Back to Configuration"),l.k0s(),l.j41(42,"div",332)(43,"button",37),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.createGuideBasedOnLanguage())}),l.EFF(44,"Deploy Interview "),l.DNE(45,jr,1,0,"i",38),l.k0s(),l.DNE(46,ur,3,0,"p",12),l.k0s()()()()}if(2&S){const C=l.XpG();
1l.R7$(43),l.Y8G("disabled",C.createLink),l.R7$(2),l.Y8G("ngIf",C.createLink),l.R7$(),l.Y8G("ngIf",C.newDeployment)}}function mt(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",337),l.bIt("click",function(){l.eBV(C);const G=l.XpG(2);return l.Njj(G.createNewDeployment())}),l.EFF(1,"Create New Deployment"),l.k0s()}}function vt(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"a",344),l.bIt("click",function(){l.eBV(C);const G=l.XpG().$implicit,E=l.XpG(3);return l.Njj(E.copyLink(G))}),l.EFF(1,"Copy Link"),l.k0s()}if(2&S){const C=l.XpG().$implicit;l.xc7("pointer-events",0==C.isActive?"none":"unset")}}function Ut(S,Ie){1&S&&(l.j41(0,"span"),l.EFF(1,"NA"),l.k0s())}function jt(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",345),l.bIt("click",function(){l.eBV(C);const G=l.XpG().$implicit,E=l.XpG(3);return l.Njj(E.updatePreviewAndTest(G))}),l.EFF(1),l.k0s()}if(2&S){const C=l.XpG().$implicit;l.Y8G("disabled",!C.isActive),l.R7$(),l.SpI(" ",C.isActive?"Deactivate Link":"Deactivated Link"," ")}}function un(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"button",346),l.bIt("click",function(){l.eBV(C);const G=l.XpG().$implicit,E=l.XpG(3);return l.Njj(E.navigate(G))}),l.EFF(1,"View Report"),l.k0s()}}function Xt(S,Ie){if(1&S&&(l.j41(0,"tr")(1,"td"),l.EFF(2),l.k0s(),l.j41(3,"td"),l.EFF(4),l.k0s(),l.j41(5,"td"),l.EFF(6),l.nI1(7,"date"),l.k0s(),l.j41(8,"td"),l.EFF(9),l.k0s(),l.j41(10,"td")(11,"span",61),l.EFF(12),l.k0s()(),l.j41(13,"td"),l.DNE(14,vt,2,2,"a",341)(15,Ut,2,0,"span",12),l.k0s(),l.j41(16,"td"),l.DNE(17,jt,2,2,"button",342)(18,un,2,0,"button",343),l.k0s()()),2&S){const C=Ie.$implicit;l.R7$(2),l.JRh(C.campaignName),l.R7$(2),l.JRh("Link"==C.collectorType?"WhatsApp":C.collectorType),l.R7$(2),l.JRh(l.i5U(7,10,C.createdAt,"MMM d, y")),l.R7$(3),l.JRh(C.noOfClicks?C.noOfClicks:"NA"),l.R7$(2),l.Y8G("ngClass",C.isActive?"text-success":"text-danger"),l.R7$(),l.SpI(" ",C.isActive?"Active":"Inactive"," "),l.R7$(2),l.Y8G("ngIf","BuyResponses"!=C.collectorType&&!C.isPush),l.R7$(),l.Y8G("ngIf",C.isPush),l.R7$(2),l.Y8G("ngIf",!C.isPush),l.R7$(),l.Y8G("ngIf",C.isPush)}}function Pn(S,Ie){if(1&S&&(l.j41(0,"div",338)(1,"table",339)(2,"thead")(3,"tr")(4,"th"),l.EFF(5,"Campaign"),l.k0s(),l.j41(6,"th"),l.EFF(7,"Deployment Method"),l.k0s(),l.j41(8,"th"),l.EFF(9,"Created on"),l.k0s(),l.j41(10,"th"),l.EFF(11,"Clicks"),l.k0s(),l.j41(12,"th"),l.EFF(13,"Status"),l.k0s(),l.j41(14,"th"),l.EFF(15,"Get Link"),l.k0s(),l.j41(16,"th"),l.EFF(17,"Action"),l.k0s()()(),l.j41(18,"tbody"),l.DNE(19,Xt,19,13,"tr",340),l.k0s()()()),2&S){const C=l.XpG(2);l.R7$(19),l.Y8G("ngForOf",C.ongoingSurveysArr)}}function Cn(S,Ie){1&S&&(l.j41(0,"div",347)(1,"h3",348),l.EFF(2,"No data available."),l.k0s()())}function si(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div")(1,"div",333)(2,"div",147)(3,"h2",54),l.EFF(4,"Deployment"),l.k0s()(),l.DNE(5,mt,2,0,"button",334)(6,Pn,20,1,"div",335)(7,Cn,3,0,"ng-template",null,6,l.C5r),l.j41(9,"div",336)(10,"button",156),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.goto())}),l.EFF(11,"Continue"),l.k0s()()()()}if(2&S){const C=l.sdS(8),se=l.XpG();l.R7$(5),l.Y8G("ngIf",se.ongoingSurveysArr.length>0),l.R7$(),l.Y8G("ngIf",se.ongoingSurveysArr.length>0)("ngIfElse",C)}}function Yn(S,Ie){1&S&&(l.j41(0,"section",23)(1,"div",24)(2,"div",25)(3,"div",26)(4,"span",27),l.EFF(5,"Loading..."),l.k0s()(),l.j41(6,"strong"),l.EFF(7,"Loading..."),l.k0s()()()())}function Fi(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",349)(1,"div",350)(2,"h5",351),l.EFF(3,"Are you sure you want to delete this question?"),l.k0s(),l.j41(4,"div",352)(5,"button",353),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.cancelDelete())}),l.EFF(6,"Cancel"),l.k0s(),l.j41(7,"button",354),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.confirmDelete())}),l.EFF(8,"Delete"),l.k0s()()()()}}function _i(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",349)(1,"div",350)(2,"h5",351),l.EFF(3,"Are you sure you want to delete this question?"),l.k0s(),l.j41(4,"div",352)(5,"button",353),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.cancelDeleteWarmup())}),l.EFF(6,"Cancel"),l.k0s(),l.j41(7,"button",354),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.deleteQuestionWelcome())}),l.EFF(8,"Delete"),l.k0s()()()()}}function nr(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",349)(1,"div",350)(2,"h5",351),l.EFF(3,"Are you sure you want to delete this question?"),l.k0s(),l.j41(4,"div",352)(5,"button",353),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.cancelDeleteWarmup())}),l.EFF(6,"Cancel"),l.k0s(),l.j41(7,"button",354),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.deleteQuestionWarmup())}),l.EFF(8,"Delete"),l.k0s()()()()}}function Ji(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",349)(1,"div",350)(2,"h5",351),l.EFF(3,"Are you sure you want to delete this question?"),l.k0s(),l.j41(4,"div",352)(5,"button",353),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.cancelDeleteWrap())}),l.EFF(6,"Cancel"),l.k0s(),l.j41(7,"button",354),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.deleteQuestionWrap())}),l.EFF(8,"Delete"),l.k0s()()()()}}function fi(S,Ie){1&S&&l.nrm(0,"div",355)}function gi(S,Ie){if(1&S&&(l.j41(0,"option",374),l.EFF(1),l.k0s()),2&S){const C=Ie.$implicit;l.Y8G("ngValue",C),l.R7$(),l.JRh(null==C?null:C.que_text)}}function pr(S,Ie){if(1&S&&(l.j41(0,"option",285),l.EFF(1),l.k0s()),2&S){const C=Ie.$implicit;l.Y8G("value",C),l.R7$(),l.SpI(" ",C," ")}}function io(S,Ie){if(1&S&&(l.j41(0,"option",285),l.EFF(1),l.k0s()),2&S){const C=Ie.$implicit;l.Y8G("value",C),l.R7$(),l.SpI(" ",C," ")}}function sr(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"select",368),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(2);return l.DH7(E.selectedChoiceText,G)||(E.selectedChoiceText=G),l.Njj(G)}),l.j41(1,"option",375),l.EFF(2,"Select an Option"),l.k0s(),l.DNE(3,io,2,2,"option",282),l.k0s()}if(2&S){const C=l.XpG(2);l.R50("ngModel",C.selectedChoiceText),l.R7$(3),l.Y8G("ngForOf",C.multipleOptions)}}function A(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"input",376),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG(2);return l.DH7(E.selectedChoiceText,G)||(E.selectedChoiceText=G),l.Njj(G)}),l.k0s()}if(2&S){const C=l.XpG(2);l.R50("ngModel",C.selectedChoiceText)}}function X(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",356)(1,"div",357)(2,"div",358)(3,"h3",359),l.nrm(4,"i",360),l.EFF(5," Screening Criteria"),l.k0s()(),l.j41(6,"div",361)(7,"div",362)(8,"select",363),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG();return l.DH7(E.selectedResultQuestion,G)||(E.selectedResultQuestion=G),l.Njj(G)}),l.bIt("change",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.onQuestionSelect())}),l.j41(9,"option",364),l.EFF(10,"Select a Question"),l.k0s(),l.DNE(11,gi,2,2,"option",365),l.k0s()(),l.j41(12,"p",366),l.EFF(13,"If answer to this question"),l.k0s(),l.j41(14,"div",367)(15,"select",368),l.mxI("ngModelChange",function(G){l.eBV(C);const E=l.XpG();return l.DH7(E.selectedCriteria,G)||(E.selectedCriteria=G),l.Njj(G)}),l.j41(16,"option",364),l.EFF(17,"Select a Criteria"),l.k0s(),l.DNE(18,pr,2,2,"option",282),l.k0s(),l.DNE(19,sr,4,2,"select",369)(20,A,1,1,"input",370),l.k0s(),l.j41(21,"label",371),l.EFF(22,"Then end the interview"),l.k0s()(),l.j41(23,"div",372)(24,"button",373),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.closeBranchingModal())}),l.EFF(25,"Close"),l.k0s(),l.j41(26,"button",353),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.saveBranching())}),l.EFF(27,"Save"),l.k0s()()()()}if(2&S){const C=l.XpG();
1l.R7$(8),l.R50("ngModel",C.selectedResultQuestion),l.R7$(3),l.Y8G("ngForOf",C.logicQuestions),l.R7$(4),l.R50("ngModel",C.selectedCriteria),l.R7$(3),l.Y8G("ngForOf",C.branchCriteriaToShow),l.R7$(),l.Y8G("ngIf",C.isMCQSelected&&"not empty"!==C.selectedCriteria),l.R7$(),l.Y8G("ngIf",!C.isMCQSelected&&"not empty"!==C.selectedCriteria)}}function V(S,Ie){if(1&S){const C=l.RV6();l.j41(0,"div",349)(1,"div",350)(2,"h5",351),l.EFF(3,"Are you sure, you want to delete this question branch?"),l.k0s(),l.j41(4,"div",352)(5,"button",353),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.cancelDeleteBranch())}),l.EFF(6,"Cancel"),l.k0s(),l.j41(7,"button",354),l.bIt("click",function(){l.eBV(C);const G=l.XpG();return l.Njj(G.deleteBranch())}),l.EFF(8,"Delete"),l.k0s()()()()}}let he=(()=>{class S{constructor(C,se,G,E){this.surveyService=C,this.tostr=se,this.sanitizer=G,this.router=E,this.surveyName=localStorage.getItem("surveyName"),this.pageTitle="",this.surveyDetails={},this.keyInformationAreas=[],this.isLoading=!0,this.showUrlModal=!1,this.prompt="",this.url="",this.isActive=!0,this.urlText="",this.urlTouched=!1,this.questions=[],this.generatedQuestions=!1,this.selectAllQuestions=!0,this.unselectAllQuestions=!1,this.generatedSurveyId="",this.isCreatingSurvey=!1,this.tempUrl="",this.researchSummary="",this.isSidebarOpen=!1,this.isIndeterminate=!1,this.hasGeneratedResult=!1,this.generatedTitle="",this.discussionGuide="",this.selectAllKeyAreas=!0,this.isKeyAreaIndeterminate=!1,this.showDiscussionGuide=!1,this.isUpdating=!1,this.mediaRequired=!1,this.mediaQuestion="",this.fileUploaded=!1,this.surveyLink="",this.uploadedImageUrl=null,this.DGMedia=[],this.isFileLoading=!1,this.previewUrl="",this.isImage=!1,this.tempUploadedUrl=null,this.tempFileType=null,this.step="",this.isEdit=!1,this.isDGChanged=!1,this.originalDG="",this.isDGSave=!1,this.originalDGText="",this.isDGEdited=!1,this.createSurveyLink=!1,this.linkName="test",this.isLinkCreated=!1,this.createLink=!1,this.loadingDG=!1,this.forceStep6=!1,this.allSections=[],this.isDGChangedQuestion=!1,this.skipStepUpdate=!1,this.isBranching=!1,this.questionSection=[],this.showPreDeleteModal=!1,this.languages=[{language:"English",name:"English",isSelected:!0,disabled:!1},{language:"Hindi",name:"\u0939\u093f\u0928\u094d\u0926\u0940",isSelected:!0,disabled:!1},{language:"Marathi",name:"\u092e\u0930\u093e\u0920\u0940",isSelected:!1,disabled:!0},{language:"Bengali",name:"\u09ac\u09be\u0982\u09b2\u09be",isSelected:!1,disabled:!0},{language:"Tamil",name:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",isSelected:!1,disabled:!0},{language:"Telugu",name:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",isSelected:!1,disabled:!0},{language:"Kannada",name:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",isSelected:!1,disabled:!0},{language:"Gujarati",name:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",isSelected:!1,disabled:!0},{language:"Indonesian",name:"bahasa Indonesia",isSelected:!1,disabled:!0},{language:"Spanish",name:"Spanish",isSelected:!1,disabled:!0},{language:"French",name:"Fran\xe7ais",isSelected:!1,disabled:!0},{language:"Portuguese",name:"portugu\xeas",isSelected:!1,disabled:!0},{language:"Persian",name:"\u0641\u0627\u0631\u0633\u06cc",isSelected:!1,disabled:!0},{language:"Arabic",name:"\u0639\u0631\u0628\u064a",isSelected:!1,disabled:!0},{language:"Malayalam",name:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",isSelected:!1,disabled:!1},{language:"Punjabi",name:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",isSelected:!1,disabled:!0},{language:"Odia",name:"\u0b13\u0b21\u0b3f\u0b06",isSelected:!1,disabled:!0},{language:"Afrikaans",name:"Afrikaans",isSelected:!1,disabled:!0},{language:"Urdu",name:"\u0627\u0631\u062f\u0648",isSelected:!1,disabled:!0}],this.stepLabels=["Research Setup","Key Information Areas","Question Development","Discussion Guide","AI Interviewer Setup","Deployment","Analysis"],this.allQuestions=[],this.initialQuestions=[],this.DGquestionLoading=!1,this.branchData=null,this.welcome_and_Purpose={questions:[]},this.warm_Up_and_Context={questions:[]},this.core_discussion=[],this.wrap_up_and_final_thoughts={questions:[]},this.isquestionget=!1,this.editedIndex=null,this.editableName="",this.editedQuestionIndex=null,this.editableQuestionText="",this.dgisLoading=!1,this.showDiscussionGuideLoading=!1,this.initialKeyInformationAreas=[],this.hasChanged=!1,this.hasKIAQuestions=!1,this.saveMedia=!1,this.isEditMode=!1,this.toolbar=[["bold","italic","underline","strike"],["code","blockquote"],["ordered_list","bullet_list"],[{heading:["h1","h2","h3"]}],["link"],["text_color","background_color"],["align_left","align_center","align_right"]],this.ongoingSurveysArr=[],this.length=0,this.pageIndex=0,this.showPageSizeOptions=!0,this.pageSizeOptions=[5,10,25],this.pageSize=5,this.activeTab="Screener_Questions",this.selectedTemplate="",this.customMessage="Hello, thank you for participating in this research interview. My name is [AI Name], and I'll be conducting this interview today. Your insights are valuable to us and will help improve our products and services.",this.word="",this.pronunciation="",this.pronunciationList=[],this.speakingSpeed=1,this.tone="Professional",this.toneOptions=["Professional","Friendly","Casual"],this.showInput=!1,this.newQuestionText="",this.showInputForQuestionId=null,this.questionsAdded={},this.selectedQuestionType=null,this.showTypeSelectorForQuestionId=null,this.selectedTypeDropdownForQuestionId=null,this.selectedTypeForQuestionId={},this.showDeleteModal=!1,this.questionToDelete=null,this.editingQuestionId=null,this.sectionStates={welcome_and_Purpose:!0,warm_Up_and_Context:!0,wrap_up_and_final_thoughts:!0},this.showAddQuestion=!1,this.newQuestionType="open-ended",this.showAddField=!1,this.showAddWarmup=!1,this.showTypeDropdown=!1,this.selectedType="open-ended",this.showDeleteModalWelcome=!1,this.questionToDeleteWarm=null,this.editIndex=null,this.editedQuestionText="",this.originalQuestionText="",this.showDeleteModalWarmup=!1,this.showAddWrap=!1,this.showDeleteModalWrap=!1,this.questionToDeleteWrap=null,this.editIndexWrap=null,this.editedQuestionTextWrap="",this.newQuestionTextWrap="",this.previewUrlWrap=null,this.selectedTypeWrap="open-ended",this.editingMediaId=null,this.editableMedia={question:"",previewUrl:"",mediaType:"",url:""},this.selectedinterviewQuestionType="",this.selectedInterviewId="",this.openEndedText="",this.minWords=1,this.maxWords=100,this.numericText="",this.minValue=1,this.maxValue=100,this.multipleChoiceQuestionText="",this.multipleOptions=[""],this.isMultipleChoices=!1,this.questionText="",this.showDropdown=!1,this.questionIcons={"open-ended":"../assets/icons/Audio text.png","multiple-choice":"https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/i-exam-multiple-choice-svgrepo-com (1) 1.png",numeric:"https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/123.svg"},this.preInterviewQuestions=[],this.isEditing=!1,this.branchingQuestion=[],this.questionSections=[],this.logicQuestions=[],this.connectedTo=[],this.choiceText="",this.selectedQuestion=null,this.selectedBranchQuestion=null,this.selectedChoiceText="",this.selectedResultQuestion=null,this.currentQuestionText="",this.currentQuestionType="",this.currentQuestionOptions=[],this.selectedQuestionForBranch=null,this.selectedCriteria=null,this.branchCriteria=["is","isn't","contains","doesn't contain"],this.branchCriteriaText=["contains","doesn't contain","not empty"],this.numericBranchCriteria=["Greater than","Less than","Greater than or equal to","Less than or equal to","Equal to","Not equal to"],this.allowedBranchTypes=["Nominal","Numeric","open-ended"],this.isMCQSelected=!1,this.branchCriteriaToShow=[],this.isBranchingModalOpen=!1,this.newDeployment=!1;for(var re=0;re<this.ongoingSurveysArr.count;re++)this.ongoingSurveysArr.data.push({id:re+1,value:"items number "+(re+1)}),console.log("Count",this.ongoingSurveysArr.count);let tt=new Date;tt=new Date(tt.getTime()+864e5),this.minDate=tt.toISOString().split("T")[0]}ngOnInit(){this.surveyName=localStorage.getItem("surveyName"),this.getOnGoingSurveys(),this.editor=new w.KE,this.get
1SurveyDetails(),this.getPreInterviewQuestions()}getSurveyDetails(){this.DGquestionLoading=!0,this.isLoading=!0,this.allQuestions=[],this.initialQuestions=[],this.keyInformationAreas=[];const C=localStorage.getItem("surveyId");C&&this.surveyService.getSurveyDetails(C).then(se=>{this.surveyDetails=se,this.branchData=se?.preInterviewQuestionBranch||null,this.discussionGuideDetails=se,se?.dgLanguage&&Array.isArray(se.dgLanguage)&&se.dgLanguage.length>0&&(this.languages=this.languages.map(re=>({...re,isSelected:se.dgLanguage.includes(re.language)}))),this.welcome_and_Purpose=se?.welcome_and_Purpose||{questions:[]},console.log("welcome",this.welcome_and_Purpose),this.warm_Up_and_Context=se?.warm_Up_and_Context,this.wrap_up_and_final_thoughts=se?.wrap_up_and_final_thoughts,this.surveyDetails?.sections?.map(re=>{re?.questions?.map(tt=>{tt.questions=[],this.core_discussion.push(tt)})}),this.key_information_areasString=JSON.stringify(se?.key_information_areas),console.log("keyInformation areas",this.key_information_areasString),this.keyInformationAreas=se?.key_information_areas||[],this.initialKeyInformationAreas=JSON.parse(JSON.stringify(this.keyInformationAreas)),this.getKIAQuestions(),se.sections&&se.sections.length>0?(this.allQuestions=se.sections[0].questions||[],this.initialQuestions=JSON.parse(JSON.stringify(this.allQuestions))):(this.allQuestions=[],this.initialQuestions=[]),this.researchSummary=se?.research_summary||"",!this.skipStepUpdate&&!this.forceStep6&&(this.step=this.isquestionget?3:"OPEN"==se?.status&&this.collectorLink?8:2),this.isLoading=!1,this.mediaRequired=se?.is_media_required,this.mediaQuestion=se?.media_question||"",this.DGMedia=se.DGMedia||[],this.previewUrl=se?.DGMedia[0]?.Url,"image"===se?.DGMedia[0]?.type&&(this.fileUploaded=!0,this.uploadedImageUrl=se?.DGMedia[0]?.Url,this.isImage=!0),"video"===se?.DGMedia[0]?.type&&(this.fileUploaded=!0,this.uploadedImageUrl=se?.DGMedia[0]?.Url,this.isImage=!1),this.generatedTitle=se?.name||"",this.discussionGuide=se?.discussion_guide_md||"",this.originalDGText=this.discussionGuide;const G=(0,v.xI)(se?.discussion_guide_md||"");if(this.originalDGText=this.discussionGuide,this.form=new N.gE({editorContent:new N.MJ(G)}),this.DgSubscription&&this.DgSubscription.unsubscribe(),this.DgSubscription=this.form.controls.editorContent.valueChanges.subscribe(re=>{const $t=(new ee.A).turndown(re||"");this.isDGEdited=$t.trim()!==(this.originalDGText||"").trim()}),se?.DGMedia&&se.DGMedia.length>0){const re=se.DGMedia[0];this.fileUploaded=!0,this.uploadedImageUrl=re?.Url,this.isImage="image"===re?.type,this.saveMedia=!!re?.Url}else this.fileUploaded=!1,this.saveMedia=!1;se?.discussion_guide_md?.trim()||(this.isDGChangedQuestion=!0),setTimeout(()=>{this.DGquestionLoading=!1,this.isLoading=!1},2e3),console.log("Formatted DG Sections:",this.allSections)})}getNewKIAQuestions(){if(this.dgisLoading=!0,!localStorage.getItem("surveyId"))return;const se=this.allQuestions.filter(E=>E.text&&E.text.trim().length>0).map(E=>E.text.trim());let G={research_summary:this.researchSummary,kia_list:se,surveyId:localStorage.getItem("surveyId")};this.surveyService.getKIAQuestion(G).subscribe({next:E=>{this.allSections.forEach(re=>re.questions=[]),this.core_discussion.forEach(re=>re.isOpen=!0),this.core_discussion.forEach(re=>re.questions=[]);for(let re of E)for(let tt of this.core_discussion)re?.KIA_id?.toString()==tt?._id?.toString()&&tt.questions.push(re);console.log("-------------------------------------",this.core_discussion),this.DGquestionLoading=!1,this.getSurveyKIADetails(),this.updateState(!0),this.isDGChangedQuestion=!0,this.step=3,this.dgisLoading=!1},error:E=>console.error("Error fetching KIA questions:",E)})}getSurveyKIADetails(){var C=this;this.DGquestionLoading=!0,this.core_discussion=[],this.surveyService.getSurveyDetails(localStorage.getItem("surveyId")).then(function(){var se=(0,p.A)(function*(G){C.surveyDetails=G,console.log("Survey Details: ",C.surveyDetails),C.welcome_and_Purpose=G?.welcome_and_Purpose,console.log("welcome",C.welcome_and_Purpose),C.warm_Up_and_Context=G?.warm_Up_and_Context,C.wrap_up_and_final_thoughts=G?.wrap_up_and_final_thoughts,C.surveyDetails?.sections?.map(E=>
1{E?.questions?.map(re=>{re.questions=[],C.core_discussion.push(re)})}),C.getKIAQuestions(),C.surveyID=G?._id});return function(G){return se.apply(this,arguments)}}())}deleteQuestion(C){this.allQuestions.length<=5?this.tostr.error("Minimum 5 key information areas required."):(this.allQuestions.splice(C,1),this.key_information_areasString=JSON.stringify(this.allQuestions.map(se=>"string"==typeof se?se:se.text)),this.checkForChanges())}editQuestion(C){this.editableQuestionText=this.allQuestions[C].text,this.editedQuestionIndex=C}moveUp(C){if(C>0){const se=this.allQuestions[C];this.allQuestions[C]=this.allQuestions[C-1],this.allQuestions[C-1]=se}this.checkForChanges()}moveDown(C){if(C<this.allQuestions.length-1){const se=this.allQuestions[C];this.allQuestions[C]=this.allQuestions[C+1],this.allQuestions[C+1]=se}this.checkForChanges()}addKeyInformationArea(){null!==this.editedQuestionIndex&&(!this.allQuestions[this.editedQuestionIndex]?.text||""===this.allQuestions[this.editedQuestionIndex].text.trim())||(this.allQuestions.push({text:""}),this.editedQuestionIndex=this.allQuestions.length-1,this.editableQuestionText="",this.checkForChanges(),setTimeout(()=>{this.inputRef?.nativeElement?.focus()}))}saveQuestion(C){const se=this.editableQuestionText?.trim();se?this.allQuestions[C].text=se:this.allQuestions.splice(C,1),this.editedQuestionIndex=null,this.checkForChanges()}regenerateDG(){this.allQuestions.length<5&&this.tostr.error("Minimum 5 key information areas required.")}generateDiscussionGuide(){this.showDiscussionGuideLoading=!0,this.showDiscussionGuideLoading=!1,this.showDiscussionGuide=!0,this.hasChanged=!1}arraysAreEqual(C,se){return JSON.stringify(C)===JSON.stringify(se)}checkForChanges(){this.allQuestions.map(se=>"string"==typeof se?se:se.text),this.hasChanged=!this.arraysAreEqual(this.allQuestions,this.initialKeyInformationAreas),this.hasChanged&&(this.showDiscussionGuide=!1)}updateDGSurvey(){this.isCreatingSurvey=!0;const se=JSON.parse(localStorage.getItem("currentUser")).email,G={_id:this.surveyDetails?._id,email:se,discussion_guide_md:this.discussionGuide,key_information_areas:JSON.parse(this.key_information_areasString)};this.surveyService.updateDGSurvey(G).subscribe(E=>{this.tostr.success("Discussion Guide updated successfully"),this.isCreatingSurvey=!1,this.isUpdating=!1,this.ngOnInit()},E=>{this.isCreatingSurvey=!1})}resetAll(){this.allQuestions=JSON.parse(JSON.stringify(this.initialQuestions)),this.keyInformationAreas=JSON.parse(JSON.stringify(this.initialKeyInformationAreas)),this.hasChanged=!1,this.showDiscussionGuide=!1,this.editedQuestionIndex=null,this.editableQuestionText="",this.editableName="",this.editedIndex=null,console.log("All Questions",this.allQuestions),console.log("All Questions",this.keyInformationAreas)}saveDiscussionGuide(){console.log("Saved Discussion Guide:",this.form.value.editorContent)}toggleEditMode(){this.isEditMode=!this.isEditMode}onQuestionEdit(C){const se=this.allQuestions[C]?.text?.trim()||"";this.hasChanged=(this.editableQuestionText?.trim()||"")!==se}onDGChange(){this.isDGEdited=(this.form.controls.editorContent.value||"").trim()!==this.originalDGText.trim()}formatDG(){this.isCreatingSurvey=!0,this.isDGSave=!0,this.loadingDG=!0;const C=this.form.controls.editorContent.value,G=(new ee.A).turndown(C);this.surveyService.updateDG({_id:this.surveyID,discussion_guide_md:G}).subscribe(tt=>{console.log(tt),this.skipStepUpdate=!0,this.getSurveyDetails(),this.tostr.success("Discussion Guide updated successfully"),this.isCreatingSurvey=!1,this.isDGSave=!1,this.isEdit=!1,this.loadingDG=!1,this.isUpdating=!1,this.isDGEdited=!1,setTimeout(()=>{this.skipStepUpdate=!1},1e3)})}Continue(){this.step=this.mediaRequired?2:3}back(){this.step=this.mediaRequired?2:1}updateState(C){C?this.step++:this.step--}isEditorEmpty(){return 0===(this.form.get("editorContent")?.value||"").replace(/<[^>]+>/g,"").trim().length}onContinue(){this.hasChanged?this.getNewKIAQuestions():this.updateState(!0)}getOnGoingSurveys(){this.surveyID=localStorage.getItem("surveyId"),this.isLoading=!0,this.surveyService.getOnGoingSurveysPage(this.surveyID,this.pageIndex*this.pageSize,this.pageSize).subscribe(C=>{console.log(C),this.ongoingSurveysArr=C.data,this.collectorLink=C.data?.[0]?.collectorLink||null,this.length=C.count},C=>{this.isLoading=!1,console.error(C)})}copyLink(C){var se=document.createElement("textarea");document.body.appendChild(se),se.value=C.collectorLink,se.select(),document.execCommand("copy"),document.body.removeChild(se),this.tostr.success("Copied")}updatePreviewAndTest(C){this.surveyService.updateSurveyLink({_id:C._id,isActive:!1}).subscribe(G=>{this.getOnGoingSurveys(),console.log(G),this.tostr.success("Link deactivated sucessfully.")},G=>{console.error(G),this.tostr.error("Oh! Not saved please try again.")})}copyNewLink(C){navigator.clipboard.writeText(C),this.tostr.success("Copied")}goto(){const C=localStorage.getItem("surveyId");this.router.navigateByUrl(`/analysis/${C}`)}createDicussionGuide(){this.createLink=!0,this.surveyService.updateSurveyStatus({id:this.surveyID,is_published:!0}).subscribe($t=>{},$t=>{console.error($t),this.tostr.error("Failed to publish survey.")});const se=localStorage.getItem("surveyId");if(!se)return void this.tostr.error("Survey ID not found.");const G=this.ongoingSurveysArr?.length||0;console.log(G);const re=`campaign_${G+1}`;this.surveyService.createDicussionGuide({surveyId:se,campaignName:re}).subscribe($t=>{this.isLinkCreated=!0,this.linkName=re,this.surveyLink=$t.collectorLink,this.forceStep6=!0,this.step=7,this.createLink=!1,this.get
1SurveyDetails()},$t=>{console.error($t),this.createSurveyLink=!1,this.tostr.error($t.message),this.createLink=!1})}deployment(){this.step=6}setActiveTab(C){this.activeTab=C}selectTemplate(C){this.selectedTemplate=C,"formal"===C?this.customMessage="Hello, thank you for participating in this research interview. My name is [AI Name], and I'll be conducting this interview today. Your insights are valuable to us and will help improve our products and services.":"casual"===C?this.customMessage="Hi there! Thanks so much for taking the time to chat with me today. I'm [AI Name] and I'm excited to hear your thoughts and experiences. This is a relaxed conversation, so feel free to share whatever comes to mind.":"brief"===C&&(this.customMessage="Welcome to this interview. I'm [AI Name], your AI interviewer. Let's get started with our discussion.")}addPronunciation(){this.word.trim()&&this.pronunciation.trim()&&(this.pronunciationList.push({word:this.word,pronunciation:this.pronunciation}),this.word="",this.pronunciation="")}removePronunciation(C){this.pronunciationList.splice(C,1)}testVoice(){console.log("Testing voice with speed:",this.speakingSpeed,"and tone:",this.tone)}isStepDisabled(C){return!(1!==C&&(2===C?this.keyInformationAreas?.length>0:3===C?this.hasKIAQuestions:4!==C&&5!==C&&6!==C&&7!==C||this.discussionGuide))}goToStep(C){if(!this.isStepDisabled(C)){if(this.DGquestionLoading=!1,this.dgisLoading=!1,6===C)return"OPEN"==this.surveyDetails?.status&&this.collectorLink?void(this.step=8):void(this.step=6);if(7===C){const se=localStorage.getItem("surveyId");return void this.router.navigateByUrl(`/analysis/${se}`)}this.step=C}}addQuestion(C){this.showInputForQuestionId=C,this.selectedTypeDropdownForQuestionId=null,this.previewUrl=null,this.newQuestionText="",this.selectedTypeForQuestionId[C]||(this.selectedTypeForQuestionId[C]="open-ended")}toggleTypeDropdown(C){C.showTypeDropdown=!C.showTypeDropdown}toggleTypeDropdownwelcome(){this.showTypeDropdown=!this.showTypeDropdown}selectType(C,se){C.selectedType=se,C.showTypeDropdown=!1,C.newQuestionText="",C.selectedFile=null,C.previewUrl=null}saveNewQuestion(C){const se=localStorage.getItem("surveyId");if("open-ended"===C.selectedType&&!C.newQuestionText?.trim())return;const G=this.core_discussion.reduce((re,tt)=>re+tt.questions.filter($t=>"media"===$t.type).length,0);if("media"===C.selectedType&&G>=1)return void this.tostr.error("Only one media question is allowed in the entire DG.");const E={interview_id:se,KIA_id:C._id,type:C.selectedType||"open-ended",question:"media"===C.selectedType?C.selectedFile?.name:C.newQuestionText};if("media"===C.selectedType&&C.selectedFile){const re=new FormData;
1Object.keys(E).forEach(tt=>re.append(tt,E[tt])),re.append("file",C.selectedFile),this.surveyService.saveKIAQuestions(re).subscribe({next:tt=>{C.questions.push({question:C.selectedFile.name,type:"media"}),C.newQuestionText="",C.previewUrl=null,C.selectedFile=null,C.showAddField=!1,this.isDGChangedQuestion=!0},error:tt=>console.error(tt)})}else this.surveyService.saveKIAQuestions(E).subscribe({next:re=>{C.questions.push({question:C.newQuestionText,type:"open-ended"}),C.newQuestionText="",C.showAddField=!1,this.isDGChangedQuestion=!0,this.getKIAQuestions()},error:re=>console.error(re)})}cancelAdd(C){C.newQuestionText="",C.previewUrl=null,C.selectedFile=null,C.showAddField=!1}getKIAQuestions(){const C=localStorage.getItem("surveyId");C&&this.surveyService.getKIAQuestions(C).subscribe({next:se=>{console.log("Fetched questions:",se),this.allSections.forEach(G=>G.questions=[]),this.core_discussion.forEach(G=>G.isOpen=!0),this.core_discussion.forEach(G=>G.questions=[]),this.hasKIAQuestions=se.length>0,this.hasChanged=0===se.length;for(let G of se)for(let E of this.core_discussion)G?.KIA_id?.toString()==E?._id?.toString()&&E.questions.push(G);this.DGquestionLoading=!1},error:se=>{this.DGquestionLoading=!1}})}openDeleteModal(C,se,G){this.questionToDelete={index:C,questionId:se,questionsArray:G},this.showDeleteModal=!0,console.log("delete id",this.questionToDelete)}confirmDelete(){const{index:C,questionId:se,questionsArray:G}=this.questionToDelete;this.surveyService.deleteKIAQuestion(se).subscribe({next:()=>{this.tostr.success("Question deleted successfully!"),G.splice(C,1),this.getKIAQuestions(),this.questionToDelete=null,this.showDeleteModal=!1,this.isDGChangedQuestion=!0},error:E=>console.error("Error deleting question:",E)})}cancelDelete(){this.questionToDelete=null,this.showDeleteModal=!1}startEditing(C){this.editingQuestionId=C,setTimeout(()=>{this.editInputRef?.nativeElement?.focus()})}cancelEditing(){this.editingQuestionId=null}saveEditedQuestion(C,se){const G=C.questions[se];if(!G)return;const E=(G.question||"").trim();if(!E)return C.questions.splice(se,1),this.editingQuestionId=null,void(G._id&&this.surveyService.deleteKIAQuestion(G._id).subscribe({next:()=>{},error:re=>console.error("Error deleting empty question:",re)}));G._id?this.surveyService.updateKIAQuestion(G._id,{question:E}).subscribe({next:()=>{this.editingQuestionId=null,this.isDGChangedQuestion=!0},error:tt=>console.error("Error updating question:",tt)}):this.editingQuestionId=null}toggleSection(C){C.isOpen=!C.isOpen}toggleSectionWarm(C){this.sectionStates[C]=!this.sectionStates[C]}openNewQuestionInput(C){C.selectedType="open-ended",C.showAddField=!0,C.newQuestionText=""}cancelNewQuestion(){this.showAddQuestion=!1,this.newQuestionText="",this.newQuestionType="open-ended"}openNewQuestionInputWelcome(){this.showAddField=!0,setTimeout(()=>{this.inputRef?.nativeElement?.focus()})}saveNewQuestionwelcome(){if(!this.newQuestionText.trim()&&"media"!==this.selectedType)return;const C={question_text:"media"===this.selectedType?this.previewUrl:this.newQuestionText.trim(),question_type:this.selectedType,probes:[]};this.welcome_and_Purpose.questions.push(C),this.newQuestionText="",this.previewUrl=null,this.selectedType="open-ended",this.showAddField=!1,this.update_welcome_and_Purpose(),this.isDGChangedQuestion=!0}onWelcomeInputBlur(){this.newQuestionText?.trim()?this.saveNewQuestionwelcome():(this.showAddField=!1,this.selectedType="open-ended")}startEditingWelcome(C){this.editIndex=C,this.originalQuestionText=this.welcome_and_Purpose.questions[C].question_text,this.editedQuestionText=this.originalQuestionText,setTimeout(()=>{this.editInputRef?.nativeElement?.focus()})}editQuestionWelcome(C,se){this.editIndex=C}cancelEditWelcome(){this.editIndex=null,this.editedQuestionText=""}deleteWelcome(C){this.questionToDeleteWarm=C,this.showDeleteModalWelcome=!0,this.isDGChangedQuestion=!0}deleteQuestionWelcome(){null!==this.questionToDeleteWarm&&(this.welcome_and_Purpose.questions.splice(this.questionToDeleteWarm,1),this.questionToDeleteWarm=null),this.update_welcome_and_Purpose(),this.showDeleteModalWelcome=!1,this.isDGChangedQuestion=!0}
1cancelDeleteWelcome(){this.questionToDeleteWarm=null,this.showDeleteModalWelcome=!1}saveEditedQuestionWelcome(){if(null!==this.editIndex){const C=this.welcome_and_Purpose.questions[this.editIndex],se=C.question_text.trim();if(!se)return this.welcome_and_Purpose.questions.splice(this.editIndex,1),this.editIndex=null,this.update_welcome_and_Purpose(),void(this.isDGChangedQuestion=!0);C.question_text=se,this.update_welcome_and_Purpose(),this.isDGChangedQuestion=!0,this.editIndex=null}}update_welcome_and_Purpose(){const C={_id:this.surveyID,welcome_and_Purpose:this.welcome_and_Purpose};console.log("Payload before update:",C),this.surveyService.updateDG(C).subscribe({next:se=>{console.log("Welcome & Purpose section updated successfully:",se),this.isDGChangedQuestion=!0},error:se=>{console.error("Error updating section:",se)}})}updateDG(){this.surveyService.updateDG({_id:this.surveyID,welcome_and_Purpose:this.welcome_and_Purpose,warm_Up_and_Context:this.warm_Up_and_Context,core_discussion:this.core_discussion,wrap_up_and_final_thoughts:this.wrap_up_and_final_thoughts}).subscribe({next:se=>{this.isDGChangedQuestion=!0,console.log("Welcome & Purpose section updated successfully:",se)},error:se=>{console.error("Error updating section:",se)}})}handleEmptyInput(){(!this.newQuestionText||!this.newQuestionText.trim())&&!this.previewUrl&&(this.showAddQuestion=!1,this.selectedType="")}openNewQuestionInputWarmUp(){this.showAddWarmup=!0}saveNewQuestionWarmUp(){if(!this.newQuestionText.trim()&&"media"!==this.selectedType)return;const C={question_text:"media"===this.selectedType?this.previewUrl:this.newQuestionText.trim(),question_type:this.selectedType,probes:[]};this.warm_Up_and_Context.questions.push(C),this.newQuestionText="",this.previewUrl=null,this.selectedType="open-ended",this.showAddWarmup=!1,this.update_warm_Up_and_Context(),this.isDGChangedQuestion=!0}update_warm_Up_and_Context(){this.surveyService.updateDG({_id:this.surveyID,warm_Up_and_Context:this.warm_Up_and_Context}).subscribe({next:se=>console.log("Warm-up & Context updated successfully:",se),error:se=>console.error("Error updating Warm-up & Context:",se)}),this.isDGChangedQuestion=!0}startEditingWarmup(C){this.editIndex=C,this.editedQuestionText=this.warm_Up_and_Context.questions[C].question_text,setTimeout(()=>{this.editInputRef?.nativeElement?.focus()})}saveEditedQuestionWarmup(){null!==this.editIndex&&(this.warm_Up_and_Context.questions[this.editIndex].question_text=this.editedQuestionText.trim(),this.editIndex=null,this.editedQuestionText="",this.update_warm_Up_and_Context(),this.isDGChangedQuestion=!0)}cancelEditWarmup(){this.editIndex=null,this.editedQuestionText=""}deleteWarmup(C){this.questionToDeleteWarm=C,this.showDeleteModalWarmup=!0}deleteQuestionWarmup(){null!==this.questionToDeleteWarm&&(this.warm_Up_and_Context.questions.splice(this.questionToDeleteWarm,1),this.questionToDeleteWarm=null,this.update_warm_Up_and_Context()),this.showDeleteModalWarmup=!1,this.isDGChangedQuestion=!0}cancelDeleteWarmup(){this.questionToDeleteWarm=null,this.showDeleteModalWarmup=!1}openNewQuestionFieldWrap(){this.showAddWrap=!0,setTimeout(()=>{this.inputRef?.nativeElement?.focus()})}onWrapInputBlur(){this.newQuestionTextWrap?.trim()?this.saveNewQuestionWrap():(this.showAddWrap=!1,this.selectedTypeWrap="open-ended")}saveNewQuestionWrap(){if(!this.newQuestionTextWrap.trim()&&"media"!==this.selectedTypeWrap)return;const C={question_text:"media"===this.selectedTypeWrap?this.previewUrlWrap:this.newQuestionTextWrap.trim(),question_type:this.selectedTypeWrap,probes:[]};this.wrap_up_and_final_thoughts.questions.push(C),this.newQuestionTextWrap="",this.previewUrlWrap=null,this.selectedTypeWrap="open-ended",this.showAddWrap=!1,this.update_wrap_up_and_final_thoughts(),this.isDGChangedQuestion=!0}update_wrap_up_and_final_thoughts(){this.surveyService.updateDG({_id:this.surveyID,wrap_up_and_final_thoughts:this.wrap_up_and_final_thoughts}).subscribe({next:se=>console.log("Wrap-up & Final Thoughts updated successfully:",se),error:se=>console.error("Error updating Wrap-up & Final Thoughts:",se)}),this.isDGChangedQuestion=!0}
1startEditingWrap(C){this.editIndexWrap=C,this.editedQuestionTextWrap=this.wrap_up_and_final_thoughts.questions[C].question_text,setTimeout(()=>{this.editInputRef?.nativeElement?.focus()})}saveEditedQuestionWrap(){if(null!==this.editIndexWrap){const C=this.wrap_up_and_final_thoughts.questions[this.editIndexWrap],se=this.editedQuestionTextWrap.trim();if(!se)return this.wrap_up_and_final_thoughts.questions.splice(this.editIndexWrap,1),this.editIndexWrap=null,this.editedQuestionTextWrap="",this.update_wrap_up_and_final_thoughts(),void(this.isDGChangedQuestion=!0);C.question_text=se,this.editIndexWrap=null,this.editedQuestionTextWrap="",this.update_wrap_up_and_final_thoughts()}this.isDGChangedQuestion=!0}cancelEditWrap(){this.editIndexWrap=null,this.editedQuestionTextWrap=""}deleteWrap(C){this.questionToDeleteWrap=C,this.showDeleteModalWrap=!0}deleteQuestionWrap(){null!==this.questionToDeleteWrap&&(this.wrap_up_and_final_thoughts.questions.splice(this.questionToDeleteWrap,1),this.questionToDeleteWrap=null,this.update_wrap_up_and_final_thoughts()),this.showDeleteModalWrap=!1,this.isDGChangedQuestion=!0}cancelDeleteWrap(){this.questionToDeleteWrap=null,this.showDeleteModalWrap=!1}toggleTypeDropdownCore(C){C.showTypeDropdown=!C.showTypeDropdown}selectTypeCore(C,se){C.selectedType=se,C.showTypeDropdown=!1}onChangeEditType(C,se){C.type=se,C.showTypeDropdown=!1,"media"===se?(C.previewUrl=C.url||"",C.media_type=C.media_type||""):"open-ended"===se&&(C.previewUrl="",C.url="",C.media_type="")}onFileSelected(C,se,G=!1){var E=this;return(0,p.A)(function*(){const re=C.target;if(!re.files?.length)return;const tt=re.files[0],$t=tt.type.startsWith("image")?"image":tt.type.startsWith("video")?"video":tt.type.startsWith("audio")?"audio":null;if(!$t)return;const Qt=new FileReader;E.isFileLoading=!0,Qt.onload=function(){var zt=(0,p.A)(function*(Lt){const dn={file:Lt.target?.result,type:$t};try{const Zn=(yield E.surveyService.createFileToUrl(dn)).fileData.url;se.previewUrl=Zn,se.mediaType=$t}catch(cn){console.error("Upload failed:",cn)}finally{E.isFileLoading=!1}});return function(Lt){return zt.apply(this,arguments)}}(),Qt.readAsDataURL(tt)})()}saveMediaQuestion(C){var se=this;return(0,p.A)(function*(){if(!C.newQuestionText&&!C.previewUrl)return void se.tostr.error("Please add both question text and media file before saving.");if(!C.newQuestionText)return void se.tostr.error("Please add question text before saving.");if(!C.previewUrl)return void se.tostr.error("Please add media file before saving.");if("open-ended"===C.selectedType&&!C.newQuestionText?.trim())return;const G=se.core_discussion.reduce((tt,$t)=>tt+$t.questions.filter(Qt=>"media"===Qt.type).length,0);if("media"===C.selectedType&&G>=1)return se.tostr.error("Only one media question is allowed in the entire DG."),C.newQuestionText="",C.previewUrl="",C.selectedType="",void(C.showAddField=!1);const re={interview_id:localStorage.getItem("surveyId"),KIA_id:C._id,question:C.newQuestionText.trim(),type:"media",url:C.previewUrl,media_type:C.mediaType};try{yield se.surveyService.saveKIAQuestions(re).toPromise(),C.questions.push({question:C.newQuestionText.trim(),type:"media",url:C.previewUrl,media_type:C.mediaType,id:C._id}),C.newQuestionText="",C.previewUrl="",C.selectedType="",C.showAddField=!1,se.isDGChangedQuestion=!0,se.tostr.success("Media question saved successfully!")}catch(tt){console.error("Save failed:",tt),se.tostr.error("Failed to save media question."),C.newQuestionText="",C.previewUrl="",C.selectedType="",C.showAddField=!1}})()}isImages(C){return/\.(jpg|jpeg|png|gif|bmp|webp)$/i.test(C)}isVideo(C){return/\.(mp4|mov|avi|mkv|webm)$/i.test(C)}isAudio(C){return/\.(mp3|wav|ogg|m4a)$/i.test(C)}startEditingMedia(C){this.editingMediaId=C;const se=this.core_discussion.flatMap(G=>G.questions).find(G=>G._id===C);se&&(this.editableMedia={question:se.question,previewUrl:se.url,mediaType:se.media_type}),console.log("Audio preview URL:",this.editableMedia.previewUrl)}cancelMediaEdit(){this.editingMediaId=null,this.editableMedia={question:"",previewUrl:"",mediaType:"",url:""}}updateMediaQuestion(){if(!this.editableMedia.question&&!this.editableMedia.previewUrl)return void this.tostr.error("Please add both question text and media file before saving.");if(!this.editableMedia.question)return void this.tostr.error("Please add question text before saving.");if(!this.editableMedia.previewUrl)return void this.tostr.error("Please add media file before saving.");const C={_id:this.editingMediaId,question:this.editableMedia.question,url:this.editableMedia.previewUrl,media_type:this.editableMedia.mediaType||this.editableMedia.media_type};this.surveyService.updateKIAQuestion(this.editingMediaId,C).subscribe({next:()=>{this.tostr.success("Media question updated successfully!"),this.core_discussion.forEach(se=>{se.questions.forEach(G=>{G._id===this.editingMediaId&&(G.question=C.question,G.url=C.url,G.media_type=C.media_type)})}),this.isDGChangedQuestion=!0,this.cancelMediaEdit()},error:se=>console.error("Error updating media question:",se)})}continueInterview(){const C=localStorage.getItem("surveyId");if(this.isDGChangedQuestion){const se={_id:C};this.isCreatingSurvey=!0,this.surveyService.convertDGJSONToMarkdown(se).subscribe({next:G=>{this.discussionGuide=G?.discussion_guide_md||G?.markdown||G?.dg_md||"",console.log("DG MARKDOWN:",this.discussionGuide),this.originalDGText=this.discussionGuide,this.isDGChangedQuestion=!1;const E=v.xI.parse(this.discussionGuide);this.form=new N.gE({editorContent:new N.MJ(E)}),this.DgSubscription&&this.DgSubscription.unsubscribe(),this.DgSubscription=this.form.get("editorContent")?.valueChanges.subscribe(re=>{const $t=(new ee.A).turndown(re||"");this.isDGEdited=$t.trim()!==(this.originalDGText||"").trim()}),this.isCreatingSurvey=!1,this.step=4},error:G=>{console.error("Error converting DG:",G),this.isCreatingSurvey=!1,this.isDGChangedQuestion=!1}})}else this.step=4}toggleDropdown(){this.showDropdown=!this.showDropdown}
1selectQuestionType(C){if(this.selectedinterviewQuestionType=C,this.showDropdown=!1,"numeric"===C&&(this.minValue=this.minValue??1,this.maxValue=this.maxValue??100),"open-ended"===C&&(this.minWords=this.minWords??1,this.maxWords=this.maxWords??100),this.preInterviewQuestions&&0!==this.preInterviewQuestions.length){const se=this.preInterviewQuestions.map(E=>parseInt(E.questionRefernceNo?.replace("Q",""),10)).filter(E=>!isNaN(E)),G=Math.max(...se);this.nextQuestionNumber=G}else this.nextQuestionNumber=1;this.nextQuestionNumber++}trackByIndex(C){return C}addOption(){this.multipleOptions.push("")}removeOption(C){this.multipleOptions.length>1?this.multipleOptions.splice(C,1):this.multipleOptions=[""]}goBack(){this.selectedinterviewQuestionType=null,this.resetQuestionForm()}onChangeMultiChoice(C){this.isMultipleChoices=C.target.checked}resetQuestionForm(){this.questionText="",this.openEndedText="",this.numericText="",this.multipleChoiceQuestionText="",this.multipleOptions=[""],this.isMultipleChoices=!1,this.minWords=null,this.maxWords=null,this.minValue=null,this.maxValue=null,this.selectedinterviewQuestionType=null,this.isEditing=!1}savePreInterviewQuestion(){const C=localStorage.getItem("surveyId");if(!this.selectedinterviewQuestionType)return void this.tostr.error("Please select a question type.");if(!C)return void this.tostr.error("Survey ID is missing.");if(!this.questionText?.trim())return void this.tostr.error("Please enter the question text.");if("open-ended"===this.selectedinterviewQuestionType||"numeric"===this.selectedinterviewQuestionType){const G="open-ended"===this.selectedinterviewQuestionType?this.minWords:this.minValue,E="open-ended"===this.selectedinterviewQuestionType?this.maxWords:this.maxValue;if(0===G&&0===E)return void this.tostr.error("Minimum and maximum values cannot both be 0.");if(0===G||0===E)return void this.tostr.error("Minimum and maximum values cannot be 0.");if(G>=E)return void this.tostr.error("Minimum value must be less than maximum value.")}const se={type:this.selectedinterviewQuestionType,text:this.questionText.trim(),interviewId:C};if("open-ended"===this.selectedinterviewQuestionType)se.min_words=this.minWords||1,se.max_words=this.maxWords||100;else if("numeric"===this.selectedinterviewQuestionType)se.min_value=this.minValue??1,se.max_value=this.maxValue??100;else if("multiple-choice"===this.selectedinterviewQuestionType){const G=this.multipleOptions.map(E=>E.trim()).filter(E=>""!==E);if(G.length<2)return void this.tostr.error("Please add at least 2 options before saving.");se.options=G,se.is_multi_choice=this.isMultipleChoices||!1}this.surveyService.savePreInterviewQuestions(se).subscribe({next:G=>{this.tostr.success("Question saved successfully."),this.getPreInterviewQuestions(),this.resetQuestionForm()},error:G=>{console.error("Error saving question:",G),this.tostr.error("Failed to save question. Please try again.")}})}getPreInterviewQuestions(){const C=localStorage.getItem("surveyId");C&&this.surveyService.fetchPreInterviewQuestions(C).subscribe({next:se=>{console.log("Pre-interview questions:",se),this.preInterviewQuestions=se||[],this.setNextQuestionNumber(),this.setBranchingData(se)},error:se=>console.error("Error fetching pre-interview questions:",se)})}setNextQuestionNumber(){if(!this.preInterviewQuestions||0===this.preInterviewQuestions.length)return void(this.nextQuestionNumber=1);const C=this.preInterviewQuestions.map(G=>parseInt(G.questionRefernceNo?.replace("Q",""),10)).filter(G=>!isNaN(G)),se=Math.max(...C);this.nextQuestionNumber=se+1,console.log("\u27a1\ufe0f Next question number:",this.nextQuestionNumber)}deleteInterviewQuestions(C){this.branchData&&this.branchData.questionId===C?this.tostr.error("You cannot delete this question because branching is applied."):this.surveyService.deletePreInterviewQuestion(C).subscribe({next:()=>{this.preInterviewQuestions=this.preInterviewQuestions.filter(se=>se._id!==C),this.tostr.success("Question deleted successfully!")},error:se=>console.error("Delete failed:",se)})}blockNonNumericPaste(C){const se=C.clipboardData?.getData("text");se&&!/^\d+$/.test(se)&&C.preventDefault()}allowOnlyNumbers(C){const se=C.which?C.which:C.keyCode;(se<48||se>57)&&C.preventDefault()}editPreQuestion(C){this.branchData&&this.branchData.questionId===C._id?this.tostr.error("You cannot Edit this question because branching is applied."):(this.isEditing=!0,this.editingQuestionId=C._id,this.selectedinterviewQuestionType=C.type,this.questionText=C.text,"open-ended"===C.type?(this.minWords=C.text_answer.min_words||1,this.maxWords=C.text_answer.max_words||100):"numeric"===C.type?(this.minValue=C.numeric.min_value||1,this.maxValue=C.numeric.max_value||100):"multiple-choice"===C.type&&(this.multipleOptions=C.options||[""],this.isMultipleChoices=C.is_multi_choice||!1))}updatePreInterviewQuestion(){const C=localStorage.getItem("surveyId");if(!this.selectedinterviewQuestionType)return void this.tostr.error("Please select a question type.");if(!C)return void this.tostr.error("Survey ID is missing.");if(!this.questionText?.trim())return void this.tostr.error("Please enter the question text.");if("open-ended"===this.selectedinterviewQuestionType||"numeric"===this.selectedinterviewQuestionType){const G="open-ended"===this.selectedinterviewQuestionType?this.minWords:this.minValue,E="open-ended"===this.selectedinterviewQuestionType?this.maxWords:this.maxValue;if(0===G&&0===E)return void this.tostr.error("Minimum and maximum values cannot both be 0.");if(0===G||0===E)return void this.tostr.error("Minimum and maximum values cannot be 0.");if(G>=E)return void this.tostr.error("Minimum value must be less than maximum value.")}const se={_id:this.editingQuestionId,type:this.selectedinterviewQuestionType,text:this.questionText.trim(),interviewId:C};
1if("open-ended"===this.selectedinterviewQuestionType)se.min_words=this.minWords||1,se.max_words=this.maxWords||100;else if("numeric"===this.selectedinterviewQuestionType)se.min_value=this.minValue??1,se.max_value=this.maxValue??100;else if("multiple-choice"===this.selectedinterviewQuestionType){const G=this.multipleOptions.map(E=>E.trim()).filter(E=>""!==E);if(G.length<2)return void this.tostr.error("Please add at least 2 options before updating.");se.options=G,se.is_multi_choice=this.isMultipleChoices||!1}this.surveyService.updatePreInterviewQuestion(se).subscribe({next:G=>{this.tostr.success("Question updated successfully."),this.getPreInterviewQuestions(),console.log("Question updated:",G),this.isEditing=!1,this.editingQuestionId=null,this.resetQuestionForm()},error:G=>{console.error("Error updating question:",G),this.tostr.error("Failed to update question. Please try again."),this.isEditing=!1}})}removeNewQuestion(C){C.showAddField=!1,C.newQuestionText="",C.selectedType="",C.previewUrl="",C.showTypeDropdown=!1}get isContinueDisabled(){const C=!this.welcome_and_Purpose?.questions?.length,se=!this.wrap_up_and_final_thoughts?.questions?.length,G=this.core_discussion?.some(E=>!E.questions?.length);return C||se||G}removePreviewImage(){this.editableMedia.previewUrl="",this.editableMedia.mediaType=""}beforeSelectFile(C,se){if(this.core_discussion.reduce((E,re)=>E+re.questions.filter(tt=>"media"===tt.type).length,0)>=1)return this.tostr.error("Only one media question is allowed in the entire DG."),void(C.target.value="");this.onFileSelected(C,se)}setBranchingData(C,se){this.questionSection=[],this.logicQuestions=[],this.branchingQuestion=[],this.connectedTo=[];let G=!1;for(const E of C){let re={title:"Pre Interview Questions",section_id:"pre-int",que_text:E.text,que_id:E._id,type:"question",queType:E.type,translation:E.selectedLanguage};"multiple-choice"===E.type&&(re.options=E.options),"numeric"===E.type&&(re.minValue=E.numeric.min_value,re.maxValue=E.numeric.max_value),"open-ended"===E.type&&(re.minWords=E.text_answer.min_words,re.maxWords=E.text_answer.max_words),this.questionId===E._id&&(this.currentQuestionText=E.text||E.que_text,this.currentQuestionType=E.type,"multiple-choice"===E.type&&(this.currentQuestionOptions=E.options),G=!0),this.questionId!==E._id&&this.questionSection.push(re),this.logicQuestions.push(re),G||!0===se&&"multiple-choice"===E.type&&this.branchingQuestion.push(re),this.questionId===E._id&&(G=!0)}console.log("Branching Questions:",this.branchingQuestion),console.log("All Questions:",this.questionSection),console.log("Logic Questions:",this.logicQuestions)}openBranchingModal(){this.isBranchingModalOpen=!0}closeBranchingModal(){this.isBranchingModalOpen=!1,this.resetBranchFields()}saveBranching(){var C=this;return(0,p.A)(function*(){if(!C.selectedCriteria||!C.selectedResultQuestion)return void C.tostr.error("Please fill all branching fields!");if("not empty"!==C.selectedCriteria&&!C.selectedChoiceText)return void C.tostr.error("Please enter choice text!");const se=localStorage.getItem("surveyId");if(!C.selectedResultQuestion?.que_id||!se)return void C.tostr.error("Missing Question ID or Survey ID!");const G={questionId:C.selectedResultQuestion?.que_id,condition:C.selectedCriteria,option:C.selectedChoiceText,result:"End of interview"};try{yield C.surveyService.savePreBranch(se,G).toPromise(),C.surveyService.getSurveyDetails(se).then(E=>{C.branchData=E?.preInterviewQuestionBranch}),C.tostr.success("Branching saved successfully!"),C.isBranchingModalOpen=!1}catch(E){console.error(E),C.tostr.error("Failed to save branching")}})()}getLogicQuestionText(C){return this.logicQuestions?.find(G=>G.que_id===C)?.que_text||C}editBranch(C){this.isBranchingModalOpen=!0;const se=this.logicQuestions.find(G=>G.que_id===C.questionId);this.selectedResultQuestion=se||null,this.onQuestionSelect(),this.selectedCriteria=C.condition,this.selectedChoiceText=C.option,this.questionId=C.questionId}deleteBranch(){const C=localStorage.getItem("surveyId");this.surveyService.savePreBranch(C,{preInterviewQuestionBranch:null}).subscribe(()=>{this.tostr.success("Branching deleted!"),this.branchData=null,this.showPreDeleteModal=!1,this.resetBranchFields()})}cancelDeleteBranch(){this.showPreDeleteModal=!1,this.resetBranchFields()}resetBranchFields(){this.selectedResultQuestion=null,this.questionId=null,this.selectedCriteria=null,this.selectedChoiceText=""}onQuestionSelect(){const C=this.selectedResultQuestion;C&&("multiple-choice"===C.queType&&C.options?.length?(this.isMCQSelected=!0,this.multipleOptions=C.options,this.branchCriteriaToShow=this.branchCriteria):"numeric"===C.queType?(this.isMCQSelected=!1,this.multipleOptions=[],this.branchCriteriaToShow=this.numericBranchCriteria):(this.isMCQSelected=!1,this.multipleOptions=[],this.branchCriteriaToShow=this.branchCriteriaText),this.selectedCriteria=null,this.selectedChoiceText=null)}createNewDeployment(){this.newDeployment=!0,this.step=4}cancelDeployment(){this.step=8,this.newDeployment=!1}
1deployAi(){if(this.createLink=!0,this.surveyService.updateSurveyStatus({id:this.surveyID,is_published:!0}).subscribe($t=>{},$t=>{console.error($t),this.tostr.error("Failed to publish survey.")}),!localStorage.getItem("surveyId"))return void this.tostr.error("Survey ID not found.");const G=this.ongoingSurveysArr?.length||0;console.log(G);const re=`campaign_${G+1}`;let tt={collectorType:"Voice_Call",surveyId:this.surveyID,campaignName:re};this.surveyService.createSurveyLink(localStorage.getItem("surveyId"),tt).subscribe($t=>{console.log("==========",$t),this.tostr.success("Link Created sucessfully."),this.surveyLink=$t.collectorLink,localStorage.setItem("surveyLink",this.surveyLink),this.isLinkCreated=!0,this.linkName=re,this.surveyLink=$t.collectorLink,this.forceStep6=!0,this.step=7,this.createLink=!1,this.getSurveyDetails()},$t=>{console.error($t),this.createSurveyLink=!1,this.tostr.error($t.message),this.createLink=!1})}saveLanguages(){const C=this.languages.filter(G=>G.isSelected).map(G=>G.language);this.surveyService.updateDG({_id:this.surveyID,dgLanguage:C}).subscribe({next:()=>{},error:G=>{this.tostr.error("Failed to save languages")}})}createGuideBasedOnLanguage(){const C=this.languages.filter(tt=>tt.isSelected).map(tt=>tt.language),se=["Marathi","Bengali","Tamil","Telugu","Kannada","Gujarati","Malayalam","Punjabi","Odia","Urdu"],G=C.includes("English"),E=C.includes("Hindi");G&&E?C.some(tt=>se.includes(tt))?this.deployAi():this.createDicussionGuide():this.tostr.error("English and Hindi are required.")}static#e=this.\u0275fac=function(se){return new(se||S)(l.rXU(W.I),l.rXU(B.tw),l.rXU(T.up),l.rXU(e.Ix))};static#t=this.\u0275cmp=l.VBU({type:S,selectors:[["app-dg-update"]],viewQuery:function(se,G){if(1&se&&(l.GBs(pe,5),l.GBs(oe,5),l.GBs(Ce,5)),2&se){let E;l.mGM(E=l.lsd())&&(G.inputRef=E.first),l.mGM(E=l.lsd())&&(G.newInputRef=E.first),l.mGM(E=l.lsd())&&(G.editInputRef=E.first)}},inputs:{pageTitle:"pageTitle"},decls:21,vars:16,consts:[["viewMode",""],["inputRef",""],["showText",""],["editInputRef",""],["editMediaBlock",""],["showTextWrap",""],["noData",""],[1,"header"],[1,"logo"],["src","assets/img/Merren_name.png","alt","Logo"],["routerLink","/dashboard/project-interview",1,"backbtn"],["class","progress-container mt-5",4,"ngIf"],[4,"ngIf"],["class","DG-container",4,"ngIf"],["class","container d-flex flex-column justify-content-center align-items-center ","style","height: 40vh;display: flex;",4,"ngIf"],["class","custom-modal-backdrop",4,"ngIf"],["class","branching-modal-backdrop",4,"ngIf"],["class","branching-modal",4,"ngIf"],[1,"progress-container","mt-5"],["class","progress-step",3,"active","completed","disabled","no-active-color","click",4,"ngFor","ngForOf"],[1,"progress-step",3,"click"],[1,"number"],["class","review-container",4,"ngIf"],[1,"container","d-flex","flex-column","justify-content-center","align-items-center",2,"height","40vh","display","flex"],[1,"m-auto"],["id","",1,"d-flex","flex-column","justify-content-center","align-items-center"],["role","status",1,"spinner-grow","mb-2"],[1,"sr-only"],[1,"review-container"],[1,"header-content"],[2,"font-size","13px","color","#4B5563"],[1,"alert"],["class","info-card",4,"ngFor","ngForOf"],[1,"actions"],[1,"add-btn",3,"click"],[1,"fas","fa-plus","mr-3"],[1,"footer-buttons","mt-4"],[1,"continue-btn",3,"click","disabled"],["class","fas fa-spinner fa-spin","style","margin-left: 10px;",4,"ngIf"],[1,"info-card"],[1,"card-header"],[4,"ngIf","ngIfElse"],[1,"icons"],["title","Move Up",1,"icon-btn",3,"click","disabled","ngClass"],[1,"fas","fa-chevron-up"],["title","Move Down",1,"icon-btn",3,"click","disabled","ngClass"],[1,"fas","fa-chevron-down"],["title","Delete",1,"icon-btn",3,"click"],[1,"fas","fa-trash-alt"],["type","text",1,"edit-input",3,"ngModelChange","blur","keyup.enter","ngModel"],[3,"click"],[1,"fas","fa-spinner","fa-spin",2,"margin-left","10px"],[1,"DG-container"],[1,"text-center","mb-4"],[1,"title"],[1,"subtitle"],[1,"section"],[1,"section-header",3,"click"],[1,"section-title"],["src","/assets/icons/square icon.png","alt","icon"],[1,"toggle-icon"],[3,"ngClass"],["class","section-body",4,"ngIf"],["class","section",4,"ngFor","ngForOf"],[1,"end-buttons","mt-4"],[1,"prev-btn",3,"click"],[1,"section-body"],["class","question-card",4,"ngFor","ngForOf"],["class","question-card mt-2",4,"ngIf"],[1,"add-btn","mt-3",3,"click"],[1,"fas","fa-plus"],[1,"question-card"],[1,"d-flex","align-items-center"],["class","flex-grow-1",4,"ngIf","ngIfElse"],[1,"question-type"],[1,"ml-2",3,"click"],[1,"fas","fa-edit",2,"cursor","pointer","color","#2285F7"],["class","ml-auto delete-icon",3,"disabled-icon",4,"ngIf"],[1,"flex-grow-1"],["type","text","class","form-control","placeholder","Edit your question",3,"ngModel","ngModelChange","keyup.enter","blur",4,"ngIf"],["type","text","placeholder","Edit your question",1,"form-control",3,"ngModelChange","keyup.enter","blur","ngModel"],[1,"question-text","flex-grow-1",3,"title"],[1,"ml-auto","delete-icon"],[1,"fas","fa-tras
1h","text-danger","ml-2",2,"cursor","pointer",3,"click"],[1,"question-card","mt-2"],["type","text","placeholder","Enter question","class","question-text edit-input",3,"ngModel","ngModelChange","keyup.enter","blur",4,"ngIf"],["type","text","placeholder","Enter question",1,"question-text","edit-input",3,"ngModelChange","keyup.enter","blur","ngModel"],["class","question-card",4,"ngIf"],["type","text","class","question-text edit-input",3,"ngModel","ngModelChange","blur","keyup.enter",4,"ngIf"],["class","question-text",3,"title",4,"ngIf"],["style","width: 100%;",4,"ngIf"],["class","ml-2",3,"disabled-icon",4,"ngIf"],["class","ml-auto delete-icon",3,"disabled-icon","click",4,"ngIf"],["type","text",1,"question-text","edit-input",3,"ngModelChange","blur","keyup.enter","ngModel"],[1,"question-text",3,"title"],[2,"width","100%"],["class","media-question-view",4,"ngIf","ngIfElse"],[1,"media-question-view"],[1,"question-text"],["class","preview-img",3,"src",4,"ngIf"],["controls","","width","200",3,"src",4,"ngIf"],["controls","",3,"src",4,"ngIf"],[1,"preview-img",3,"src"],["controls","","width","200",3,"src"],["controls","",3,"src"],[1,"media-question-edit"],["type","text","placeholder","Edit question text",1,"form-control","mb-2",3,"ngModelChange","ngModel"],["class","text-center mt-2",4,"ngIf"],["class","mt-2 position-relative",4,"ngIf"],["type","file","accept","image/*,audio/*,video/*","class","mt-2",3,"change",4,"ngIf"],[1,"mt-3","d-flex","gap-2"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"btn","btn-outline-primary","btn-sm",3,"click"],[1,"text-center","mt-2"],["role","status",1,"spinner-border","text-primary"],[1,"mt-2","position-relative"],[2,"border","1px solid #E5E7EB","padding","20px","position","relative","display","inline-block","border-radius","8px"],[1,"fas","fa-times-circle","text-danger",2,"position","absolute","top","5px","right","5px","cursor","pointer","font-size","18px",3,"click"],["class","preview-img","style","max-width: 200px; max-height: 200px; display: block;",3,"src",4,"ngIf"],["width","200","controls","",3,"src",4,"ngIf"],[1,"preview-img",2,"max-width","200px","max-height","200px","display","block",3,"src"],["width","200","controls","",3,"src"],["type","file","accept","image/*,audio/*,video/*",1,"mt-2",3,"change"],[1,"ml-2"],[1,"fas","fa-edit",2,"cursor","pointer","color","#2285F7",3,"click"],[1,"ml-auto","delete-icon",3,"click"],[1,"fas","fa-trash","text-danger","ml-2",2,"cursor","pointer"],["type","text","placeholder","Enter question","class","question-text edit-input",3,"ngModel","ngModelChange","change",4,"ngIf"],["class","media-upload",4,"ngIf"],[1,"ml-auto","position-relative"],[1,"question-type",3,"click"],[1,"fas","fa-chevron-down","ml-1"],["class","type-dropdown",3,"click",4,"ngIf"],[1,"trash-icon",3,"click"],["type","text","placeholder","Enter question",1,"question-text","edit-input",3,"ngModelChange","change","ngModel"],[1,"media-upload"],["type","text","placeholder","Enter question",1,"question-text","edit-input",2,"width","100%",3,"ngModelChange","ngModel"],["class","mt-3","type","file","accept","image/*,audio/*,video/*",3,"change",4,"ngIf"],["class","loading-spinner mt-3",4,"ngIf"],["class","mt-2",4,"ngIf"],["class","btn btn-primary mt-2",3,"disabled","click",4,"ngIf"],["type","file","accept","image/*,audio/*,video/*",1,"mt-3",3,"change"],[1,"loading-spinner","mt-3"],[1,"fas","fa-spinner","fa-spin"],[1,"mt-2"],[1,"btn","btn-primary","mt-2",3,"click","disabled"],[1,"type-dropdown",3,"click"],[2,"text-align","center"],[1,"DGCard"],[1,"mt-3",3,"formGroup"],[1,"editor"],[3,"editor","toolbar"],["formControlName","editorContent",3,"editor"],["class","continue-btn",3,"disabled","ngClass","click",4,"ngIf"],["class","continue-btn",3,"click",4,"ngIf"],[1,"continue-btn",3,"click","disabled","ngClass"],[1,"continue-btn",3,"click"],[1,"lang-container"],[2,"color","#1F2937"],[1,"select-item","mt-5"],[1,"all-btn"],["type","radio","id","Discussion_Guide","name","option",3,"change","checked"],["for","Discussion_Guide"],["src","/assets/icons/note-text-svgrepo-com 1.png"],["type","radio","id","Screener_Questions","name","option",3,"change","checked"],["for","Screener_Questions"],[1,"fa","fa-television"],["type","radio","id","language","name","option",3,"change","checked"],["for","language"],[1,"fas","fa-globe"],["type","radio","id","persona","name","option",3,"change"],["for","persona"],[1,"far","fa-user"],["type","radio","id","voice","name","option",3,"change"],["for","voice"],[1,"fas","fa-volume-off"],["type","radio","id","opening","name","option",3,"change"],["for","opening"],[1,"fas","fa-comment-dots"],["type","radio","id","pronunciation","name","option",3,"change"],["for","pronunciation"],[1,"fas","fa-microphone"],["class","select-lang mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","persona-screen",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","voice-settings-container mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","opening-message-container mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","pronunciation-container mt-4",4,"ngIf"],[1,"select-lang","mt-4"],[1,"discussion-guide-container"],[1,"mb-3",2,"font-weight","500"],[1,"text-muted"],[3,"data"],[1,"discussion-guide-container","select-lang","mt-4",2,"padding","20px","width","1000px","margin","0 auto"],["class","mt-4","style","width: 100%;
1",4,"ngIf"],["class","discussion-guide-container select-lang mt-4","style","padding: 20px; width: 1000px; margin: 0 auto;",4,"ngIf"],[1,"question-section"],["class","question-card-wrapper",4,"ngFor","ngForOf"],[1,"position-relative","mb-3","d-flex","align-items-end"],["class","add-btn ml-3",3,"disabled-icon","click",4,"ngIf"],["class","custom-dropdown",4,"ngIf"],[1,"question-card-wrapper"],[1,"question-cardpre"],[1,"question-left"],[1,"question-top"],[1,"question-no"],[1,"question-bottom"],[1,"question-icon",3,"src","alt"],["title","q.text",1,"question-text"],[1,"question-actions"],[1,"btn-edit",3,"click"],[1,"fas","fa-edit"],[1,"btn-trash",3,"click"],[1,"fas","fa-trash"],[1,"add-btn","ml-3",3,"click"],[1,"custom-dropdown"],[1,"custom-dropdown-item",3,"click"],["src","../assets/icons/Audio text.png",1,"h-22"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/i-exam-multiple-choice-svgrepo-com (1) 1.png",1,"h-22"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/123.svg",1,"h-22"],[1,"mt-4",2,"width","100%"],[1,"question-header","d-flex","mb-3"],[1,"question-badge","d-flex","align-items-center","justify-content-center"],[1,"icon-box","d-flex","align-items-center","justify-content-center"],["alt","icon",1,"question-icon",3,"src"],[1,"divider"],[1,"number-box","d-flex","align-items-center","justify-content-center"],["rows","3","placeholder","Enter your question here",1,"form-control","question-textarea","ml-2",2,"flex","1",3,"ngModelChange","ngModel"],["class","choices-section mt-3",4,"ngIf"],[1,"mt-3"],["class","btn btn-primary me-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-outline-primary",3,"click"],[1,"choices-section","mt-3"],[1,"d-flex","align-items-center","mb-2"],["src","../assets/icons/choicesicon.svg",1,"f-18"],[1,"ml-2","f-18",2,"color","#FF5630"],[1,"row"],[1,"col-md-6"],[1,"form-label"],["type","number","placeholder","1",1,"form-control",3,"ngModelChange","ngModel"],["type","number","placeholder","100",1,"form-control",3,"ngModelChange","ngModel"],["class","d-flex mb-2 align-items-center",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-3","d-flex","align-items-center"],[1,"me-3"],[1,"switch","mt-3"],["type","checkbox",3,"change","checked"],[1,"slider","round"],[1,"d-flex","mb-2","align-items-center"],["type","text",1,"form-control","mt-2",3,"ngModelChange","keydown.enter","ngModel","placeholder"],["type","button","class","btn btn-light mt-2 ms-2",3,"click",4,"ngIf"],["type","button",1,"btn","btn-light","mt-2","ms-2",3,"click"],[1,"fas","fa-trash","text-danger"],[1,"row","d-flex"],[1,"btn","btn-primary","me-2",3,"click","disabled"],[2,"font-weight","500"],[1,"branching-que"],[1,"checkbox-group"],["class","checkbox-item",4,"ngFor","ngForOf"],[1,"checkbox-item"],["type","checkbox",3,"change","id","checked","disabled"],[1,"mt-2",3,"value","for"],[1,"persona-screen",2,"padding","20px","width","800px","margin","0 auto"],[1,"deployment-container","mt-5"],[1,"deployment-options"],[1,"option"],["type","radio","id","generate","name","deployment","disabled",""],["for","generate"],[1,"desc"],["type","radio","id","zoom","name","deployment","disabled",""],["for","zoom"],["type","radio","id","teams","name","deployment","disabled",""],["for","teams"],["type","radio","id","google","name","deployment","disabled",""],["for","google"],[1,"voice-settings-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[1,"slider-section"],[1,"slider-container"],[1,"speed"],[1,"slider-wrapper"],["type","range","min","0.5","max","2","step","0.1","disabled","",1,"speed-slider",3,"ngModelChange","input","ngModel"],[1,"slider-value"],[1,"tone-section"],["disabled","",1,"tone-select",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"test-voice"],["disabled","",1,"test-btn",3,"click"],[3,"value"],[1,"opening-message-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[2,"color","#1F2937","font-size","15px","font-weight","500"],[2,"font-size","14px","color","#4B5563","font-weight","400"],[1,"template-section"],[2,"margin-top","15px","font-size","14px","font-weight","500"],[1,"template-list"],[1,"template-option"],["type","radio","id","formal","name","template","disabled",""],["for","formal",1,"msg-title"],[2,"font-size","16px"],["type","radio","id","casual","name","template","disabled",""],["for","casual",1,"msg-title"],["type","radio","id","brief","name","template","disabled",""],["for","brief",1,"msg-title"],[1,"custom-message","mt-4"],["rows","4","placeholder","Write your custom message here","disabled","",3,"ngModelChange","ngModel"],[1,"tips-section","mt-4"],[1,"pronunciation-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[2,"color","#1F2937","font-weight","500"],[1,"pronunciation-form"],[1,"input-set"],["type","text","placeholder","e.g., Company name","disabled","",3,"ngModelChange","ngModel"],["type","text","placeholder","e.g., kuhm-puh-nee","disabled","",3,"ngModelChange","ngModel"],["disabled","",1,"add-btn",3,"click"],["class","pronunciation-list",4,"ngIf","ngIfElse"],[1,"pronunciation-list"],["class","pronunciation-item",4,"ngFor","ngForOf"],[1,"pronunciation-item"],[1,"word"],[1,"guide"],[1,"delete-btn",3,"click"],[2,"color","#6B7280","font-size","14px","margin-top","10px"],[1,"success-container"],[1,"success-icon"],[1,"fas","fa-check",2,"font-weight","100"],[1,"link-box","mt-5"],[1,"link-text",3,"title"],[1,"copy-btn",3,"click"],[1,"far","fa-copy"],[1,"dashboard-btn","mt-4",3,"click"],[1,"DG-Deploy"],["type","radio","id","generate","name","deployment","checked",""],["type","radio","id","zoom","name","deployment"],["type","radio","id","teams","name","deployment"],["type","radio","id","google","name","deployment"],[1,"deployend-buttons","mt-4"],[1,"dep-end"],[1,"deployment-container2"],["class","create-btn",3,"click",4,"ngIf"],["class","table-wrapper",4,"ngIf","ngIfElse"],[1,"footer-buttons","mt-4","mr-0"],[1,"create-btn",3,"click"],[1,"table-wrapper"],[1,"deployment-table"],[4,"ngFor","ngForOf"],["class","copy-link",3,"pointerEvents","click",4,"ngIf"],["class","deactivate-btn",3,"disabled","click",4,"ngIf"],["class","deactivate-btn",3,"click",4,"ngIf"],[1,"copy-link",3,"click"],[1,"deactivate-btn",3,"click","disabled"],[1,"deactivate-btn",3,"click"],[1,"mt-5",2,"text-align","center"],[2,"font-size","30px"],[1,"custom-modal-backdrop"],[1,"custom-modal"],[1,"text-danger"],[1,"modal-buttons"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-danger","ml-2",3,"click"],[1,"branching-modal-backdrop"],[1,"branching-modal"],[1,"branching-modal-content"],[1,"modal-header"],[1,"title-branch"],[1,"fas","fa-code-branch","btn-branch"],[1,"modal-body"],[1,"row","full"],[1,"input-select","full-width",3,"ngModelChange","change","ngModel"],["value","null","disabled","","selected","",1,"placeholder-option"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"section-label"],[1,"row",2,"gap","10px"],[1,"input-select",3,"ngModelChange","ngModel"],["class","input-select",3,"ngModel","ngModelChange",4,"ngIf"],["type","text","class","input-text","placeholder","Enter choice here",3,"ngModel","ngModelChange",4,"ngIf"],[1,"section-label","mt-20"],[1,"modal-footer"],[1,"btn","btn-outline-primary","mr-3",3,"click"],[3,"ngValue"],["value","null","disabled","","selected",""],["type","text","placeholder","Enter choice here",1,"input-text",3,"ngModelChange","ngModel"]],template:function(se,G){1&se&&(l.j41(0,"div",7)(1,"div",8),l.nrm(2,"img",9),l.k0s(),l.j41(3,"div",10),l.EFF(4," Back to Dashboard "),l.k0s()(),l.DNE(5,Qe,2,1,"div",11)(6,We,3,2,"div",12)(7,ri,3,2,"div",13)(8,Se,17,10,"div",12)(9,$r,49,10,"div",12)(10,tr,15,2,"div",12)(11,qe,47,3,"div",12)(12,si,12,3,"div",12)(13,Yn,8,0,"section",14)(14,Fi,9,0,"div",15)(15,_i,9,0,"div",15)(16,nr,9,0,"div",15)(17,Ji,9,0,"div",15)(18,fi,1,0,"div",16)(19,X,28,6,"div",17)(20,V,9,0,"div",15)),2&se&&(l.R7$(5),l.Y8G("ngIf",7!=G.step),l.R7$(),l.Y8G("ngIf",2===G.step&&!G.isLoading),l.R7$(),l.Y8G("ngIf",3===G.step),l.R7$(),l.Y8G("ngIf",4===G.step&&!G.isLoading),l.R7$(),l.Y8G("ngIf",5===G.step&&!G.isLoading),l.R7$(),l.Y8G("ngIf",7===G.step&&!G.isLoading),l.R7$(),l.Y8G("ngIf",6===G.step&&!G.isLoading),l.R7$(),l.Y8G("ngIf",8===G.step&&!G.isLoading),l.R7$(),l.Y8G("ngIf",G.isLoading),l.R7$(),l.Y8G("ngIf",G.showDeleteModal),l.R7$(),l.Y8G("ngIf",G.showDeleteModalWelcome),l.R7$(),l.Y8G("ngIf",G.showDeleteModalWarmup),l.R7$(),l.Y8G("ngIf",G.showDeleteModalWrap),l.R7$(),l.Y8G("ngIf",G.isBranchingModalOpen),l.R7$(),l.Y8G("ngIf",G.isBranchingModalOpen),l.R7$(),l.Y8G("ngIf",G.showPreDeleteModal))},dependencies:[K.YU,K.Sq,K.bT,e.Wk,N.qT,N.xH,N.y7,N.me,N.Q0,N.MR,N.wz,N.BC,N.cb,N.j4,N.JD,N.vS,H.NN,w.Cl,w.Zu,K.vh],styles:['@charset "UTF-8";.header[_ngcontent-%COMP%]{padding:15px 40px;display:flex;justify-content:space-between;align-items:center}.backbtn[_ngcontent-%COMP%]{border:none;border-radius:25px;font-size:15px;cursor:pointer;width:auto;display:inline-block;font-weight:500;background-color:#2285f7;color:#fff;padding:10px 25px;transition:background-color .3s ease}.logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;width:auto}.progress-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;position:relative;max-width:1000px;margin:0 auto}.progress-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1;position:relative}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{width:32px;height:32px;background:#ccc;color:#fff;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:14px;font-weight:700;z-index:1}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{content:"";position:absolute;top:16px;left:-30%;width:60%;height:2px;background:#ccc;z-index:-1}.progress-step[_ngcontent-%COMP%]:first-child   .number[_ngcontent-%COMP%]:before{display:none}.progress-step.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#f79522}.progress-step.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#00c951}.progress-step.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{background:#00c951}.progress-step[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#333;margin-top:8px}.progress-step.completed[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#00c951}.progress-step.active[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#f79522}.progress-step.disabled[_ngcontent-%COMP%]{pointer-events:none}.progress-step.no-active-color[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#333!important}.progress-step.no-active-color.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%], .progress-step.no-active-color.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#ccc!important;color:#fff!important;box-shadow:none!important}.progress-step.no-active-color[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step.no-active-color.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step.no-active-color.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{background:#ccc!important}.step-content[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px;text-align:center}.step-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.step-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:11.9px;color:#4b5563;margin-bottom:20px;font-weight:400}.textarea-box[_ngcontent-%COMP%]{background:#f8f8f8;border:1px solid #ddd;border-radius:8px;padding:15px;margin-bottom:10px}.textarea-box[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;height:120px;border:none;outline:none;background:transparent;font-size:14px;color:#444;resize:none}.info-text[_ngcontent-%COMP%]{font-size:11px;color:#666;margin-bottom:20px;text-align:left}.generate-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:12px 20px;border-radius:25px;font-size:15px;cursor:pointer;width:100%;max-width:300px;margin:10px auto;display:block;font-weight:500}.generate-btn.disabled-btn[_ngcontent-%COMP%]{background:#d1d5db;pointer-events:none}.primary[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:14px 32px;border-radius:25px;font-size:16px;font-weight:500;margin-top:20px;cursor:pointer;width:100%;max-width:150px}.primary[_ngcontent-%COMP%]:hover{background:#e37110}.example-box[_ngcontent-%COMP%]{background:#fff7f0;border:1px solid #F79522;padding:15px 20px;margin:25px 0;font-size:15px;text-align:left;border-radius:6px}.example-box[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#f79522;font-size:14px}.text-card[_ngcontent-%COMP%]{border:1px solid #BEBEBE;padding:30px;border-radius:10px;background:#fff}.text-card[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{border:none;height:1px;background-color:#bebebe;margin:10px -30px}.continue-btn-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:20px}@media (max-width: 768px){.header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding:10px 20px}.progress-container[_ngcontent-%COMP%]{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start}.progress-step[_ngcontent-%COMP%]{margin:0 15px}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:after{width:30px}.step-content[_ngcontent-%COMP%]{padding:15px;text-align:left}.generate-btn[_ngcontent-%COMP%], .primary[_ngcontent-%COMP%]{width:100%;max-width:none}}.review-container[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]{text-align:center}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13.6px;color:#4b5563;margin-bottom:20px;font-weight:400}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{background:#fff4e5;border:1px solid #f3c38a;padding:15px;border-radius:8px;margin:20px 0}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#d97706;font-weight:500;font-size:11.9px;margin-bottom:5px}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#374151;font-weight:400;font-size:14px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]{background:#fff;border-radius:10px;box-shadow:0 2px 6px #00000014;padding:10px;margin-bottom:15px;
1display:flex;flex-direction:column}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#1f2937}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]{display:flex}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:#666;font-size:12px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]:hover{color:#111827}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{pointer-events:none;height:24px;width:24px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-desc[_ngcontent-%COMP%]{margin-top:8px;font-size:14px;color:#4b5563}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:15px;margin-top:20px}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .add-btn[_ngcontent-%COMP%], .review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .regen-btn[_ngcontent-%COMP%]{background:#f9f9f9;border:1px solid #ddd;padding:10px 15px;border-radius:25px;cursor:pointer;color:#374151;font-size:.95rem}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .regen-btn[_ngcontent-%COMP%]{background:#fff8f0;border:1px solid rgba(247,149,34,.2509803922);color:#f79522;display:flex;align-items:center}.footer-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:-100px;gap:15px}.footer-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.footer-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}.end-buttons[_ngcontent-%COMP%]{padding:20px;width:800px;margin:0 auto;display:flex;justify-content:space-between;gap:15px}.end-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.end-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}@media (max-width: 768px){.review-container[_ngcontent-%COMP%]{padding:10px}.review-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.5rem}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{flex-direction:column;gap:10px}.review-container[_ngcontent-%COMP%]   .footer-buttons[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;margin-bottom:30px}}.edit-input[_ngcontent-%COMP%]{width:180%;font-size:16px;padding:5px 0;border:none;border-bottom:1px dashed #F79522;outline:none;background:transparent}.edit-input[_ngcontent-%COMP%]:focus{border-bottom:1px dashed #F79522}.editable-text[_ngcontent-%COMP%]{margin:0;word-break:break-word;flex:1}.disabled-btn[_ngcontent-%COMP%]{pointer-events:none;opacity:.6}.url-box[_ngcontent-%COMP%]{background:#f9f9f9;border:1px solid #ddd;padding:10px 15px;border-radius:10px;cursor:pointer;font-size:.95rem}.inline-url-box[_ngcontent-%COMP%]{margin-top:15px;padding:15px;border-radius:6px;background:#f8f8f8;display:flex;flex-direction:column;gap:10px}.inline-url-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:10px;border:1px solid #ccc;border-radius:5px}.btn-group[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:10px;width:100%}.btn-add[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:8px 16px;border-radius:5px}.btn-cancel[_ngcontent-%COMP%]{background:#f1f1f1;border:1px solid #ddd;border:none;padding:8px 16px;border-radius:5px}.url-preview-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border:1px solid #e0e0e0;padding:10px 14px;border-radius:12px;margin-top:12px;background-color:#fff}.left-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.icon-box[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px}.url-info[_ngcontent-%COMP%]{overflow:hidden}.url-text[_ngcontent-%COMP%]{font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.remove-url-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:18px;cursor:pointer;padding:6px;border-radius:6px}.textarea-box.prompt[_ngcontent-%COMP%]{background-color:#fff}.DG-container[_ngcontent-%COMP%]{max-width:800px;margin:40px auto;padding:20px}.DGCard[_ngcontent-%COMP%]{border:1px solid #ddd;padding:20px;border-radius:20px}.DG-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.DG-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:11.9px;color:#4b5563;margin-bottom:20px;font-weight:400}.lang-container[_ngcontent-%COMP%]{width:100%;max-width:100%;padding:20px}.select-item[_ngcontent-%COMP%]{border:1px solid #ddd;width:100%;border-radius:30px;padding:5px;box-shadow:0 1px 2px #0000000d;display:flex;justify-content:center}.all-btn[_ngcontent-%COMP%]{display:flex;gap:10px}.select-lang[_ngcontent-%COMP%]{width:800px;margin:0 auto;background:#fff;border-radius:10px;padding:20px;box-shadow:0 2px 10px #0000000d;box-sizing:border-box}.select-lang[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px}.select-lang[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:#4b5563}.checkbox-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:15px;width:100%}.checkbox-item[_ngcontent-%COMP%]{flex:0 0 calc(50% - 15px);
1display:flex;gap:8px;padding:6px 14px;border:1px solid #ccc;border-radius:8px;background:#fff;cursor:pointer}.all-btn[_ngcontent-%COMP%]{display:flex;gap:15px;flex-wrap:wrap;justify-content:center;margin-bottom:-6px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{display:none}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:10px 20px;background:#f8f8f8;color:#1f2937;border-radius:30px;font-size:14px;cursor:pointer;transition:all .3s ease}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:16px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#2285f7;color:#fff}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.deployment-container2[_ngcontent-%COMP%]{max-width:70%;margin:40px auto;padding:20px}.title[_ngcontent-%COMP%]{font-size:28px;font-weight:700;margin-bottom:20px}.create-btn[_ngcontent-%COMP%]{background-color:#f79522;color:#fff;border:none;padding:10px 20px;border-radius:20px;font-size:14px;font-weight:600;float:right;margin-bottom:20px;cursor:pointer}.table-wrapper[_ngcontent-%COMP%]{clear:both;margin-top:10px;border-radius:10px;overflow:hidden;border:1px solid #f0f0f0}.deployment-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.deployment-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#e5e7eb}.deployment-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .deployment-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{text-align:left;padding:12px 11px;border-bottom:1px solid #eee}.deployment-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#fafafa;font-size:13px;font-weight:500;color:#6b7280}.deployment-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#1f2937}.copy-link[_ngcontent-%COMP%]{color:#007bff;text-decoration:none;font-weight:500}.copy-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.deactivate-btn[_ngcontent-%COMP%]{background:transparent;color:#f79522;border:1px solid #f79522;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:500;cursor:pointer}.deactivate-btn[_ngcontent-%COMP%]:hover{background-color:#f79522;color:#fff}.disabled-icon[_ngcontent-%COMP%]{opacity:.5;pointer-events:none;cursor:not-allowed}.success-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:30px;max-width:700px;margin:40px auto;text-align:center;font-family:Arial,sans-serif;background:#fff}.success-icon[_ngcontent-%COMP%]{width:50px;height:50px;background:#fff8f0;color:#f79522;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:20px;margin:0 auto 20px}.success-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:20px;color:#1f2937;margin-bottom:10px;font-weight:700}.success-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#555;font-size:14px;margin-bottom:20px}.link-box[_ngcontent-%COMP%]{background:#fff8f0;color:#f79522;padding:12px 15px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;font-size:14px;margin:25px auto;width:75%;max-width:400px}.link-text[_ngcontent-%COMP%]{display:inline-block;max-width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.copy-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:18px;color:#f79522;cursor:pointer}.dashboard-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;border-radius:30px;padding:12px 30px;font-size:16px;font-weight:600;cursor:pointer}.dashboard-btn[_ngcontent-%COMP%]:hover{background:#e6841b}.DG-Deploy[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px}.deployment-container[_ngcontent-%COMP%]{border:1px solid #ccc;border-radius:10px;padding:20px;font-family:Arial,sans-serif}.deployment-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin-bottom:15px;color:#1f2937}.deployment-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.option[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:12px;display:flex;align-items:flex-start;transition:border-color .3s ease,background .3s ease}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{margin-right:12px;margin-top:14px}.option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;flex-direction:column;
1cursor:pointer;width:100%}.option[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:500;font-size:13px;color:#000}.option[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#1f2937}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{color:#000}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked ~ .option[_ngcontent-%COMP%]{border-color:#1f2937;background:#f9f9f9}.pronunciation-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.pronunciation-form[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:16px;margin-top:16px}.input-set[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.input-set[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:14px;color:#374151;margin-bottom:6px;font-weight:400}.input-set[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px}.add-btn[_ngcontent-%COMP%]{background-color:#e5e7eb;color:#fff;border:none;border-radius:6px;padding:10px 16px;font-size:14px;cursor:pointer;transition:background .3s ease}.pronunciation-list[_ngcontent-%COMP%]{margin-top:20px}.pronunciation-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:#f9fafb;padding:10px;border-radius:6px;margin-bottom:10px;font-size:14px}.word[_ngcontent-%COMP%]{font-weight:500;color:#111827}.guide[_ngcontent-%COMP%]{color:#4b5563;margin-left:12px}.delete-btn[_ngcontent-%COMP%]{background:none;border:none;color:#dc2626;font-size:16px;cursor:pointer}.voice-settings-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.slider-section[_ngcontent-%COMP%]{margin-top:16px}.slider-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:14px;color:#374151;font-weight:500;margin-bottom:8px}.slider-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.slider-wrapper[_ngcontent-%COMP%]{position:relative;flex:1}.speed-slider[_ngcontent-%COMP%]{width:100%;accent-color:#2285F7}.speed[_ngcontent-%COMP%]{color:#6b7280;font-size:14px;font-weight:400}.option[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:not(#generate), .option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:not([for=generate]){pointer-events:none;opacity:.5}.slider-value[_ngcontent-%COMP%]{position:absolute;top:25px;margin-left:50%;transform:translate(-50%);font-size:13px;color:#4b5563;white-space:nowrap}.tone-section[_ngcontent-%COMP%]{margin-top:20px}.tone-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:14px;color:#374151;font-weight:500;margin-bottom:8px}.tone-select[_ngcontent-%COMP%]{width:100%;padding:8px 12px;border-radius:6px;border:1px solid #D1D5DB;font-size:14px;color:#111827}.test-voice[_ngcontent-%COMP%]{margin-top:24px}.test-btn[_ngcontent-%COMP%]{background-color:#2285f7;color:#fff;border:none;border-radius:6px;padding:10px 16px;font-size:14px;cursor:pointer;display:flex;align-items:center;gap:6px}.test-voice[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;color:#4b5563;margin-top:8px}.opening-message-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.template-list[_ngcontent-%COMP%]{margin-top:10px}.template-option[_ngcontent-%COMP%]{border:1px solid #ddd;padding:12px;border-radius:6px;margin-bottom:10px;cursor:pointer}.template-option.active[_ngcontent-%COMP%]{border:2px solid #2285F7;background-color:#f0f7ff}.template-option[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-right:8px}.custom-message[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;border:1px solid #ccc;padding:10px;border-radius:6px;font-size:16px}.custom-message[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.tips-section[_ngcontent-%COMP%]{background-color:#f9fafb;border:1px solid #E5E7EB;border-radius:6px;padding:10px}.tips-section[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{font-size:13px;color:#4b5563;padding-left:18px}.tips-section[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:4px}.tips-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#374151}.msg-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.template-option[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#4b5563}.text-center[_ngcontent-%COMP%]{text-align:center}.title[_ngcontent-%COMP%]{font-weight:600;font-size:22px;margin-bottom:4px}.subtitle[_ngcontent-%COMP%]{color:#4b5563;font-size:13px}.section[_ngcontent-%COMP%]{background:#fff;border:1px solid #E5E7EB;border-radius:8px;margin-bottom:10px;box-shadow:0 1px 2px #0000000d}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;cursor:pointer;font-weight:500;background-color:#f9fafb}.section-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}.section-subtext[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;margin-top:2px}.toggle-icon[_ngcontent-%COMP%]{font-size:12px;color:#2285f7;font-weight:400}.section-body[_ngcontent-%COMP%]{padding:20px 16px 12px}.question-card[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-radius:6px;padding:6px 10px;margin-top:8px;border:1px solid #E5E7EB}.question-card[_ngcontent-%COMP%]   .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;min-width:0}.question-number[_ngcontent-%COMP%]{font-weight:500;margin-right:8px;flex-shrink:0}.question-text[_ngcontent-%COMP%]{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.question-type[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;border:1px solid #E5E7EB;padding:2px 6px;border-radius:4px;background-color:#f3f4f6;flex-shrink:0;margin-left:10px}.add-btn[_ngcontent-%COMP%]{margin-top:8px;background:none;border:1px solid #D1D5DB;color:#374151;cursor:pointer}.type-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;right:0;background:#f3f4f6;border-radius:6px;z-index:1000;min-width:100px;font-size:12px;color:#4b5563}.type-dropdown[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:6px;cursor:pointer;transition:background .2s ease}.type-dropdown[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:hover{background:#f5f5f5}.preview-img[_ngcontent-%COMP%]{max-width:150px;height:150px;margin-top:10px}.custom-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.custom-modal[_ngcontent-%COMP%]{background:#fff;padding:20px;border-radius:8px;text-align:center;min-width:300px}.modal-buttons[_ngcontent-%COMP%]{margin-top:20px;
1display:flex;justify-content:center}.loading-spinner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:15px;color:#555}.loading-spinner[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#007bff;font-size:18px}.discussion-guide-container[_ngcontent-%COMP%]{padding:20px}.discussion-guide-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .discussion-guide-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:20px;font-weight:600}.discussion-guide-container[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding-left:20px}.discussion-guide-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:10px;line-height:1.5}.custom-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;margin-top:8px;background-color:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 2px 8px #0000001a;width:220px;z-index:10;display:flex;flex-direction:column}.custom-dropdown-item[_ngcontent-%COMP%]{padding:10px 14px;text-align:left;border:none;background:transparent;cursor:pointer;font-size:14px}.custom-dropdown-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.f-18[_ngcontent-%COMP%]{font-size:18px}.question-section[_ngcontent-%COMP%]{margin-top:10px}.question-card-wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:10px}.question-cardpre[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;box-shadow:0 0 6px #0000001a;padding:0 6px 0 0;transition:all .3s ease}.question-left[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(180deg,#ff7043,#ff5630);color:#fff;width:70px;text-align:center}.question-top[_ngcontent-%COMP%]{font-weight:600;font-size:16px;padding:10px 0}.question-bottom[_ngcontent-%COMP%]{padding:10px 0;border-top:1px solid rgba(255,255,255,.4)}.question-no[_ngcontent-%COMP%]{font-size:12px}.question-icon[_ngcontent-%COMP%]{height:22px;width:22px}.question-text[_ngcontent-%COMP%]{flex-grow:1;margin-left:15px;font-size:16px;font-weight:500;color:#333}.question-actions[_ngcontent-%COMP%]{opacity:0;transition:opacity .3s ease}.continue-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.question-cardpre[_ngcontent-%COMP%]:hover   .question-actions[_ngcontent-%COMP%]{opacity:1}.question-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:5px;font-size:13px}.h-22[_ngcontent-%COMP%]{height:18px;width:18px;background-color:#ff4500;border-radius:3px;padding:2px}.question-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:#ff5722;border-radius:6px;overflow:hidden;width:auto;height:45px}.icon-box[_ngcontent-%COMP%], .number-box[_ngcontent-%COMP%]{color:#fff;font-weight:500;font-size:14px;padding:0 12px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{width:2px;background-color:#fff;height:100%}.branching-container[_ngcontent-%COMP%]{display:flex;gap:30px;margin-top:20px}.title[_ngcontent-%COMP%]{font-weight:600;font-size:14px}.criteria-box[_ngcontent-%COMP%]{margin-top:15px;display:flex;gap:15px}.criteria-select[_ngcontent-%COMP%]{height:auto;border-radius:8px;border:1.5px solid #f0a84c;padding:8px}.choice-input[_ngcontent-%COMP%]{min-height:70px;border-radius:8px;border:1px solid #cfcfcf;padding:10px;resize:none}.branching-container[_ngcontent-%COMP%]{display:flex;gap:30px;align-items:stretch}.dividerbranching[_ngcontent-%COMP%]{width:1px;background:#000;height:100%}.result-box[_ngcontent-%COMP%]{margin-top:15px;display:flex;align-items:center;gap:15px}.goto-box[_ngcontent-%COMP%]{background:#eef2f7;padding:10px 20px;border-radius:6px;font-weight:600}.question-select[_ngcontent-%COMP%]{height:40px;border-radius:8px;border:1px solid #d0d0d0;padding:8px}.footer[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:flex-end;gap:15px}.left-Branching[_ngcontent-%COMP%], .right-section[_ngcontent-%COMP%]{flex:1}.btn-trash[_ngcontent-%COMP%]{border:none;background-color:#fff;color:red}.btn-edit[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#2285f7}.btn-branch[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#555}.branching-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000059;z-index:999}.branching-modal[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1000}.branching-modal-content[_ngcontent-%COMP%]{width:420px;background:#fff;border-radius:10px;padding:15px 25px 25px;box-shadow:0 8px 30px #0000001a}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-bottom:5px}.title-branch[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.row.full[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:20px}.full-width[_ngcontent-%COMP%]{width:100%!important}.section-label[_ngcontent-%COMP%]{font-size:15px;color:#444;margin-bottom:8px;display:block}.row[_ngcontent-%COMP%]{display:flex;margin-bottom:20px}.input-select[_ngcontent-%COMP%], .input-text[_ngcontent-%COMP%]{height:38px;border:1px solid #ddd;border-radius:6px;padding:0 12px;font-size:14px;width:46%}.input-select.small[_ngcontent-%COMP%]{width:100px}
1.input-select.large[_ngcontent-%COMP%]{flex:1}.placeholder-option[_ngcontent-%COMP%]{color:#999!important}.branching-que[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;box-shadow:0 0 6px #0000001a;padding:20px;transition:all .3s ease}.branching-que[_ngcontent-%COMP%]:hover   .question-actions[_ngcontent-%COMP%]{opacity:1}.deployend-buttons[_ngcontent-%COMP%]{padding:20px;width:650px;margin:0 auto;display:flex;justify-content:space-between;gap:15px}.deployend-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.deployend-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}.dep-end[_ngcontent-%COMP%]{display:flex;gap:15px}.dep-end[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#007bff;margin-top:16px;font-size:12px}']})}return S})()},1722:(en,Me,R)=>{"use strict";R.d(Me,{I:()=>l});var p=R(467),w=R(1413),N=R(5312),v=R(1626),ee=R(4438);let l=(()=>{class W{constructor(T,e){this.http=T,this.lc=e,this.refData={},this.userData=JSON.parse(localStorage.getItem("currentUser")),this.selectedLanguages=[],this.awsObj={SECRET_KEY:"",SECRET_ID:""},this.subject=new w.B}createSurvey(T){return this.http.post(`${N.c.api_url}/survey/create`,T)}createSurvey1(T,e,K,H,pe){let oe={name:T,category:e,created_by:this.userData.userName,languages:["English"],status:"DRAFT",isTemplate:K,description:H};return pe&&(oe.templateUrl=""!=pe?pe:"https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/no_image_available.png"),this.http.post(`${N.c.api_url}/survey/create`,{input:oe})}updateSurvey(T){return this.http.post(`${N.c.api_url}/survey/update`,T).toPromise()}deleteUserFromList(T){return this.http.post(`${N.c.api_url}/survey/deleteUserFromList`,T).toPromise()}saveQuestion(T){return this.http.post(`${N.c.api_url}/question/save`,T).toPromise()}saveAIQuestion(T){return this.http.post(`${N.c.api_url}/question/save`,T).toPromise()}updateQuestion(T){return this.http.post(`${N.c.api_url}/question/updateQuestion`,T).toPromise()}addBranch(T){return this.http.post(`${N.c.api_url}/question/addBranch`,T).toPromise()}sendFormData(T,e){var K=this;return(0,p.A)(function*(){const H=yield K.http.post(`${N.c.api_url}/survey/update`,e).toPromise();return console.log(H),H})()}getSurveyDetails(T){var e=this;return(0,p.A)(function*(){return yield e.http.get(`${N.c.api_url}/survey/details/`+T).toPromise()})()}getOrganizationUsers(T){var e=this;return(0,p.A)(function*(){return yield e.http.get(`${N.c.api_url}/survey/getOrganizationUsers/`+T).toPromise()})()}getSurveyOrganizationUsers(T){var e=this;return(0,p.A)(function*(){return yield e.http.get(`${N.c.api_url}/survey/getSurveyOrganizationUsers/`+T).toPromise()})()}createSection(T,e,K,H,pe,oe){var Ce=this;return(0,p.A)(function*(){let we={title:T,surveyId:e,sectionType:K,productName:H,productAspect:pe,productAction:oe};return yield Ce.http.post(`${N.c.api_url}/section/save`,{input:we}).toPromise()})()}deleteSection(T){return this.http.post(`${N.c.api_url}/section/deleteSection`,T).toPromise()}createMessage(T){var e=this;return(0,p.A)(function*(){return yield e.http.post(`${N.c.api_url}/question/addMessage`,T).toPromise()})()}createSubSection(T,e,K){var H=this;return(0,p.A)(function*(){let pe={surveyId:T,sectionId:e,title:K,sectionType:"subSection"};return yield H.http.post(`${N.c.api_url}/section/saveSubSection`,pe).toPromise()})()}deleteQuestion(T,e){var K=this;return(0,p.A)(function*(){let H={questionId:T,surveyId:localStorage.getItem("surveyId"),sectionId:e};return yield K.http.post(`${N.c.api_url}/question/deleteQuestion`,H).toPromise()})()}getCategoryList(){return this.http.get(`${N.c.api_url}/survey/getSurveyCategeries`).toPromise()}getLanguageList(){return this.http.get(`${N.c.api_url}/survey/getSurveyLanguages`).toPromise()}getAllCountries(){return this.http.get(`${N.c.api_url}/deploy/getAllCountries`)}getRegionsOnCountry(T){return this.http.get(`${N.c.api_url}/deploy/getRegions/${T}`)}saveBuyResponseData(T){return this.http.post(`${N.c.api_url}/deploy/saveSurveyDetails`,T)}getResponseRateForOneQuestion(){return this.http.get(`${N.c.api_url}/deploy/getResponseRate/INR`)}getIncomeRange(T){return this.http.get(`${N.c.api_url}/deploy/getIncomeRange/${T}`)}getAllTemplates(T){return this.http.get(`${N.c.api_url}/survey/getAllTemplates?category=${T}
1`).toPromise()}getOneTemplate(T){return this.http.get(`${N.c.api_url}/survey/details/`+T)}addSelectedQuestionsInToSurvey(T,e,K){return this.http.post(`${N.c.api_url}/template/addSelectedQuestionsInToSurvey`,{surveyId:T,selectedQuestionsId:e,sectionId:K}).toPromise()}getOneTemplateQuestion(T){return this.http.get(`${N.c.api_url}/template/getOneTemplateQuestion/${T}`).toPromise()}saveApplyLogic(T,e){return this.http.post(`${N.c.api_url}/question/applyLogic`,{logic:T,questionId:e}).toPromise()}deleteQuestionBrarnch(T){return this.http.post(`${N.c.api_url}/question/deleteBranch`,T).toPromise()}exportRepondantDetails(T){return this.http.get(`${N.c.api_url}/survey/getRespondentsDetails/${T}`,{responseType:"text"})}getDeplymentPricing(){return this.http.get(`${N.c.api_url}/deploy/getDeplymentPricing`)}getAllParticipients(T){return this.http.get(`${N.c.api_url}/survey/getAllParticipients/${T}`)}createSurveyLink(T,e){return this.http.post(`${N.c.api_url}/deploy/createSurveyLink/${T}`,e)}createDicussionGuide(T){return this.http.post(`${N.c.api_url}/discussionguide/createAIDiscussionGuideSurvey`,T)}createPreviewAndTestSurveyLink(T,e){return this.http.post(`${N.c.api_url}/deploy/createPreviewAndTestSurveyLink/${T}`,e)}saveSubSectionInToSubSection(T){return this.http.post(`${N.c.api_url}/section/saveSubSectionInToSubSection`,T)}getOnGoingSurveys(T){return this.http.get(`${N.c.api_url}/deploy/getOnGoingSurveys/${T}`)}getQuestionResponses(T,e,K){return this.http.get(`${N.c.api_url}/survey/responses/${T}?type=${e}&campaignName=${K}`)}getAllcampigns(T){return this.http.get(`${N.c.api_url}/deploy/getAllcampaigns/${T}`)}getMultiTrendResponses(T,e,K){return this.http.get(`${N.c.api_url}/survey/getMultiTrendResponses/${T}/${e}?ptype=${K}`)}saveOrderId(T){return this.http.post(`${N.c.api_url}/razorpay/createOrder`,T)}getRunningPlanDetails(T){return this.http.post(`${N.c.api_url}/razorpay/getRunningPlanDetails`,T)}capturePayment(T){return this.http.post(`${N.c.api_url}/razorpay/capturePayment`,T)}planSubscriptionPayment(T){return this.http.post(`${N.c.api_url}/razorpay/planSubscriptionPayment`,T)}updateSurveyStatus(T){return this.http.post(`${N.c.api_url}/survey/updateSurveyStatus`,T)}getPlanDetails(){return this.http.get(`${N.c.api_url}/plans/getPlans`).toPromise()}getDragnDropQuestion(T){return this.http.post(`${N.c.api_url}/question/dragDropQuestion`,T)}getOnGoingSurveysPage(T,e,K){return this.http.get(`${N.c.api_url}/deploy/getOnGoingSurveys/${T}?page=${e}&size=${K}`)}getPreviewAndTestLinks(T,e,K){return this.http.get(`${N.c.api_url}/deploy/getPreviewAndTestLinks/${T}?page=${e}&size=${K}`)}updateLogic(T,e){return this.http.post(`${N.c.api_url}/question/editLogic`,{logic:T,questionId:e}).toPromise()}updateMessage(T){return this.http.post(`${N.c.api_url}/question/updateMessage`,T).toPromise()}updateUpgradeDetails(T){return this.http.post(`${N.c.api_url}/plans/upgradeDetails`,T).toPromise()}addSelectedTemplatesInToSurvey(T){return this.http.post(`${N.c.api_url}/survey/cloneSurveyTemplate`,T).toPromise()}createNPSFlowSurevy(T){return this.http.post(`${N.c.api_url}/survey/createNPSFlowSurevy`,T).toPromise()}setPlanFree(T,e){return this.http.post(`${N.c.api_url}/plans/setFreePlan`,{plan:T,userId:e}).toPromise()}updateTranslationQustion(T){return this.http.post(`${N.c.api_url}/question/updateTranslationQustion`,T)}addpiiAuthorizationQuestion(T,e){var K=this;return(0,p.A)(function*(){K.surveyId=e;let pe=T.sections[T.sections.length-1];K.sectionId=pe._id;for(var oe=0;oe<pe.sections.length;oe++){K.sectionId=pe.sections[oe]._id;for(var Ce=0;Ce<pe.sections[oe].sections.length;Ce++)K.sectionId=pe.sections[oe].sections[Ce]._id}let we=localStorage.getItem("surveyLanguages");K.languagesList=we.split(",");for(let Qe of K.languagesList)"English"!=Qe&&K.selectedLanguages.push({languageType:Qe,text:"",type:"piiAuthorization"});let Pe=JSON.parse(localStorage.getItem("currentUser"));K.organization=Pe.organization?Pe.organization:"Stridebiz",K.questionTitle="Please provide your consent to share your name and number with "+K.organization+". The "+K.organization+" will use your details to contact you and provide information regarding promotions, sales activities. Your name and number will be shared only if you consent.",K.transTitle="Please provide your consent to share your name and number with {{"+K.organization+"}}. The {{"+K.organization+"}} will use your details to contact you and provide information regarding promotions, sales activities. Your name and number will be shared only if you consent.",console.log(K.selectedLanguages)})()}piiAuthorizationQuestion(){var T=this;return(0,p.A)(function*(){console.log(T.selectedLanguages),T.currentPlan=JSON.parse(localStorage.getItem("currentPlan"));const e=new FormData;e.append("surveyId",T.surveyId),e.append("sectionId",T.sectionId),e.append("text",T.questionTitle),e.append("planId",T.currentPlan._id),e.append("pipingQuestion","false"),e.append("type","piiAuthorization"),e.append("selectedLanguage",JSON.stringify(T.selectedLanguages)
1);let K=yield T.saveQuestion(e);console.log(K)})()}getTranslateType(T){return{English:"en",Hindi:"hi",Tamil:"ta",Bengali:"bn",Telugu:"te",Kannada:"kn",Gujarati:"gu"}[T]}sendToken(T){return this.http.post(`${N.c.api_url}/auth/recapthchaTokenValidate`,{token:T,url:N.c.api_url})}updatePreviewAndTest(T){return this.http.post(`${N.c.api_url}/deploy/updatePreviewAndTest`,T)}updateSurveyLink(T){return this.http.post(`${N.c.api_url}/deploy/updateSurveyLink`,T)}uploadParticipent(T,e){return this.http.post(e.whatsappPhone&&e.whatsAppBaseUrl?`${e.whatsAppBaseUrl?e.whatsAppBaseUrl:N.c.whatsApp_api_url}/message-receiver/uploadParticipent`:`${N.c.whatsApp_api_url}/message-receiver/uploadParticipent`,T,{headers:new v.Lr({})})}getSurveyDetailsById(){let T=localStorage.getItem("surveyId");return this.http.get(`${N.c.api_url}/survey/details/${T}`)}getRedirectDetails(){let T=JSON.parse(localStorage.getItem("currentUser"));return this.http.get(`${N.c.api_url}/accessibility/getRedirectDetails/${T.userId}`)}SplitByQuestion(T,e){return this.http.post(`${N.c.api_url}/survey/SplitByQuestion?type=${e}`,T)}comparisionByQuestion(T,e){return this.http.post(`${N.c.api_url}/survey/comparisionByQuestion?type=${e}`,T)}comparisionByCampaign(T,e){return this.http.post(`${N.c.api_url}/survey/comparisionByCampaign?type=${e}`,T)}SplitByQuestionForTrend(T,e){return this.http.post(`${N.c.api_url}/survey/SplitByQuestionForTrend?type=${e}`,T)}getMediaResponses(T){let e=localStorage.getItem("surveyId");return this.http.get(`${N.c.api_url}/survey/getMediaResponses/${T}/${e}`)}getAllSurveysByEmail(){let T=JSON.parse(localStorage.getItem("currentUser"));return this.http.get(`${N.c.api_url}/survey/getAllSurveysByEmail/${T.email}`)}exportRepondantDetailsBySurveyID(T){return this.http.get(`${N.c.api_url}/survey/exportRepondantDetailsBySurveyID/${T}`,{responseType:"text"})}createZip(T){return this.http.post(`${N.c.api_url}/survey/createZip`,T)}getAllParticipents(T,e,K,H){let pe=localStorage.getItem("surveyId");return this.http.get(`${N.c.api_url}/survey/getAllParticipents/${pe}?page=${T}&size=${e}&searchTerm=${K}&crmNumbers=${1==H&&H}`)}updateClick(T){return this.http.get(`${N.c.api_url}/deploy/updateClick/${T}`)}getPushMessageStatus(T){let e=localStorage.getItem("surveyId");return this.http.get(`${N.c.api_url}/survey/getPushMessageStatus/${e}?isComingFromKnit=${1==T}`)}uploadQuestionsByExcel(T){return this.http.post(`${N.c.api_url}/question/uploadQuestionsByExcel`,T)}cloneQuestion(T){return this.http.post(`${N.c.api_url}/question/cloneQuestion`,T)}getQuestionBranches(T){return this.http.get(`${N.c.api_url}/question/getQuestionsDetails/${T}`)}getAllRespondents(T,e,K,H,pe){return this.http.post(`${N.c.api_url}/survey/getAllRespondents/${T}?page=${e}&size=${K}&searchTerm=${H}`,pe)}viewParticipentResponse(T){return this.http.get(`${N.c.api_url}/survey/getParticipentResponse/${T}`)}getRecurringSurveyDetails(T){return this.http.get(`${N.c.api_url}/survey/getRecurringSurveyDetails/${T}`)}saveRecurringSurveyDetails(T){return this.http.post(`${N.c.api_url}/survey/saveRecurringSurveyDetails`,T)}getReminderOnOffDetails(T){return this.http.get(`${N.c.api_url}/survey/getReminderOnOffDetails/${T}`)}saveReminderOnOffDetails(T){return this.http.post(`${N.c.api_url}/survey/saveReminderOnOffDetails`,T)}checkAllowTranslation(T){return this.http.post(`${N.c.api_url}/survey/checkAllowTranslation`,T)}uploadRecipients(T){return this.http.post(`${N.c.api_url}/deploy/uploadRecipients`,T)}uploadRecipentFiles(T){return this.http.post(`${N.c.api_url}/deploy/uploadRecipent`,T)}getAllCampaignList(T,e,K,H){return this.http.get(`${N.c.api_url}/mailmodo/getcampaignAllList/${T}?page=${e}&size=${K}&isCRM=${H}`)}generateSurvey(T){return this.http.post(`${N.c.api_url}/generateSurvey/generateSurvey`,T)}generateDiscussionGuide(T){return this.http.post(`${N.c.api_url}/generateSurvey/generateDiscussionGuide`,T)}regenerateDG(T){return this.http.post(`${N.c.api_url}/generateSurvey/regenerateDG`,T)}createAISurvey(T){return this.http.post(`${N.c.api_url}/generateSurvey/createSurvey`,T)}createAIDiscussionGuideSurvey(T){return this.http.post(`${N.c.api_url}/generateSurvey/createAIDiscussionGuideSurvey`,T)}updateDGSurvey(T){return this.http.post(`${N.c.api_url}/generateSurvey/updateDGSurvey`,T)}fromatDG(T){return this.http.post(`${N.c.api_url}/generateSurvey/fromatDG`,T)}updateDG(T){return this.http.post(`${N.c.api_url}/survey/updateDGSurvey`,T)}saveCampaignDetails(T){return this.http.post(`${N.c.api_url}/deploy/saveCampaign`,T)}sendGenerateSurveyLink(T){return this.http.post(`${N.c.api_url}/auth/sendSurveyLink`,T)}getEmailTemplates(T){return this.http.get(`${N.c.api_url}/mailmodo/getTemplates/${T}`)}sendPreviewAMP(T,e){return this.http.get(`${N.c.api_url}/mailmodo/sendPreviewAMP/${T}/${e}`)}requestNewTemplate(T){return this.http.post(`${N.c.api_url}/deploy/requestAccess`,T)}checkRequestCreated(T){return this.http.get(`${N.c.api_url}/deploy/checkRequestCreated/${T}`)}getAllUid(T){return this.http.get(`${N.c.api_url}/survey/getAllUid/${T}`)}getPhoneNumbers(){let T=JSON.parse(localStorage.getItem("currentUser"));return this.http.get(`${N.c.api_url}/accessibility/getPhoneNumbers/${T.userId}`)}
1getXoxodayDetails(T){return this.http.get(`${N.c.api_url}/accessibility/getXoxodayDetails/${T}`)}saveXoxoDetails(T){return this.http.post(`${N.c.api_url}/accessibility/saveXoxoDetails`,T)}getxoxodayCampginList(T){return this.http.get(`${N.c.api_url}/accessibility/getxoxodayCampginList/${T}`)}getisXoxodayEnabled(T){return this.http.get(`${N.c.api_url}/survey/getisXoxodayEnabled/${T}`)}changeSurveyXoxodayStatus(T){return this.http.post(`${N.c.api_url}/survey/changeSurveyXoxodayStatus`,T)}getAmpTemplates(T){return this.http.get(`${N.c.api_url}/mailmodo/getTemplates/${T}`)}checkCampNameUnique(T,e){return this.http.get(`${N.c.api_url}/mailmodo/checkUniqueCampName/${T}/${e}`)}checkCampName(T,e){return this.http.get(`${N.c.api_url}/deploy/checkUniqueCampId/${T}/${e}`)}getUserSecretCode(T){return this.http.get(`${N.c.api_url}/survey/getUserSecretCode/${T}`)}saveMoengage(T){return this.http.post(`${N.c.api_url}/integrations/save`,T)}getIntegrationCampList(T,e,K){return this.http.get(`${N.c.api_url}/integrations/getCampaignList/${T}?page=${e}&size=${K}`)}deleteCampaign(T){return this.http.post(`${N.c.api_url}/integrations/deleteCampaign/${T}`,{})}generateUniqueLink(T){return this.http.get(`${N.c.api_url}/integrations/generateUniqueId/${T}`)}setupResponse(T){return this.http.post(`${N.c.api_url}/integrations/updateCRM`,T)}checkEmptyRecord(T){return this.http.get(`${N.c.api_url}/integrations/checkEmptyRecord/${T}`)}saveFilter(T){return this.http.post(`${N.c.api_url}/survey/savedFilter`,T)}getFilters(T){return this.http.get(`${N.c.api_url}/survey/getFilters/${T}`)}getComparisons(T){return this.http.get(`${N.c.api_url}/survey/getComparisons/${T}`)}deleteSaved(T){return this.http.post(`${N.c.api_url}/survey/deleteSavedFC`,T)}renameSaved(T){return this.http.post(`${N.c.api_url}/survey/renameSavedFC`,T)}getSavedDetails(T){return this.http.get(`${N.c.api_url}/survey/getSavedDetails/${T}`)}uploadSvg(T){let e=localStorage.getItem("surveyId");return this.http.post(`${N.c.api_url}/survey/upload/${e}`,T)}sendClickEvent(){this.subject.next(1)}getClickEvent(){return this.subject.asObservable()}refrshQuestionSummary(T,e){return this.http.get(`${N.c.api_url}/zeonai/refrshQuestionSummary/${T}/${e}`)}getTemplatesDetails(T){return this.http.get(`${N.c.api_url}/survey/getTemplatesDetails/${T}`)}brandName(T){return this.http.post(`${N.c.api_url}/survey/cloneSurveyTemplate`,T)}requestAcess(T,e){return this.http.post(`${N.c.api_url}/survey/sendSurveyCreateRequest`,{userId:T,email:e})}insertAIInsightsData(T){return this.http.post(`${N.c.api_url}/zeonai/insertAIInsightsData`,T)}likeDislike(T){return this.http.post(`${N.c.api_url}/survey/changeLikeDislike`,T)}savesalesforceCampgin(T){return this.http.post(`${N.c.api_url}/integration/create`,T)}getsalesforceCampgin(T){return this.http.get(`${N.c.api_url}/integration/getsalesforceCampgin/${T}`)}saveIntegrationDetails(T){return this.http.post(`${N.c.api_url}/integration/saveIntegrationDetails`,T)}getIntegrationDetails(T){return this.http.get(`${N.c.api_url}/integration/getIntegrationDetails/${T}`)}getAllCrmFields(T,e){return this.http.get(`${N.c.api_url}/integration/getAllCrmFields/${T}/${e}`)}changeCRMCamiagnStatus(T){return this.http.post(`${N.c.api_url}/integration/changeCRMCamiagnStatus`,T)}deactivateSync(T){return this.http.post(`${N.c.api_url}/integration/deactivateSync`,T)}startSyc(T){return this.http.post(`${N.c.api_url}/integration/startSyc`,T)}checkActiveCampaign(T){return this.http.post(`${N.c.api_url}/integration/checkActiveCampaign`,T)}createFbTemplate(T){return this.http.post(`${N.c.api_url}/embedded/create-template`,T)}getEmbeddedPhoneList(T){return this.http.get(`${N.c.api_url}/embedded/getEmbeedDetails/${T}`)}getMessageTemplatesFromFB(T){let e=JSON.parse(localStorage.getItem("currentUser"));return this.http.get(`${N.c.api_url}/embedded/getTemplates/${T}/${e?.email}`)}getFBPhoneNumbers(T){return this.http.get(`${N.c.api_url}/embedded/getPhoneNumbers/${T}`)}checkTemplateType(T){let e=!0;return T.components.forEach(K=>{const{type:H,text:pe,format:oe}=K;"BODY"===H||"HEADER"===H||"FOOTER"===H?pe&&pe.includes("{{")?(e=!1,console.log(`   \u2705 ${H} is parameterized \u2192 "${pe}"`)):"HEADER"===H&&["IMAGE","VIDEO","DOCUMENT"].includes(oe)?console.log(`   \u2705 HEADER has media format (${oe}) \u2014 requires media via API`):console.log(`   \u274c ${H} is static`):console.log("BUTTONS"===H?"   \u{1f518} BUTTONS component found":`   \u26a0\ufe0f Unknown component type: ${H}`)}),e}createFileToUrl(T){return this.http.post(`${N.c.api_url}
1/question/createFileToUrl`,T).toPromise()}getQuestionSummary(T){return this.http.get(`${N.c.api_url}/survey/getQuestionSummary/${T}`)}generateppt(T){return this.http.post(`${N.c.api_url}/survey/generate-ppt`,T)}getFormattedConversation(T,e,K){return this.http.get(`${N.c.api_url}/survey/getFormattedConversation/${T}`,{params:{page:e.toString(),limit:K.toString()}})}getConversationID(T){return this.http.get(`${N.c.api_url}/survey/getConversationID/${T}`)}getIndivisualDGReponse(T){return this.http.get(`${N.c.api_url}/survey/getIndivisualDGReponse/${T}`)}getInterviewsSummarize(T){return this.http.post(`${N.c.api_url}/interviews/summarize`,T)}generateSlidePPT(T){return this.http.post(`${N.c.api_url}/interviews/ppt-slides-view`,T)}refreshCrossInterviewsummarize(T){return this.http.post(`${N.c.api_url}/interviews/refreshCrossInterviewsummarize`,T)}saveKIAQuestions(T){return this.http.post(`${N.c.api_url}/generateSurvey/saveKIAQuestions`,T)}getKIAQuestions(T,e,K){let H={};return e&&(H.interview_type=e),K&&(H.interview_duration=K),this.http.get(`${N.c.api_url}/generateSurvey/getKIAQuestions/${T}`,{params:H})}deleteKIAQuestion(T){return this.http.post(`${N.c.api_url}/generateSurvey/deleteKIAQuestion`,{questionId:T})}updateKIAQuestion(T,e){return this.http.post(`${N.c.api_url}/generateSurvey/updateKIAQuestion/${T}`,e)}convertDGJSONToMarkdown(T){return this.http.post(`${N.c.api_url}/generateSurvey/convertDGJSONToMarkdown`,T)}savePreInterviewQuestions(T){return this.http.post(`${N.c.api_url}/question/savePreInterviewQuestions`,T)}fetchPreInterviewQuestions(T){return this.http.get(`${N.c.api_url}/question/fetchPreInterviewQuestions/${T}`)}deletePreInterviewQuestion(T){return this.http.delete(`${N.c.api_url}/question/deletePreInterviewQuestion/${T}`)}updatePreInterviewQuestion(T){return this.http.post(`${N.c.api_url}/question/updatePreInterviewQuestions`,T)}findPPTAnswers(T){return this.http.post(`${N.c.api_url}/interviews/ask-question`,T)}updatePPT(T){return this.http.post(`${N.c.api_url}/interviews/updatePPT`,T)}regeneratePPT(T){return this.http.post(`${N.c.api_url}/interviews/regeneratePPT`,T)}generateInterviewPPT(T){return this.http.post(`${N.c.api_url}/survey/generate-interview-ppt`,{surveyId:T})}getKIA(T){return this.http.post(`${N.c.api_url}/generateSurvey/getKIA`,T)}getKIAQuestion(T){return this.http.post(`${N.c.api_url}/generateSurvey/getKIAQuestion`,T)}savePreBranch(T,e){return this.http.post(`${N.c.api_url}/survey/savePreBranch/${T}`,e)}generateDG(T){return this.http.post(`${N.c.api_url}/generateSurvey/generateDG`,T)}static#e=this.\u0275fac=function(e){return new(e||W)(ee.KVO(v.Qq),ee.KVO(ee.SKi))};static#t=this.\u0275prov=ee.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})()},5312:(en,Me,R)=>{"use strict";R.d(Me,{c:()=>p});const p={production:!0,api_url:"https://app.merren.io",SECRET_ID:"AKIA6ONKVI6QRV3327SH",SECRET_KEY:"KizV0vnRuPbeNl7bMKowhuFGb7CdbVmaJHGFwIM7",whatsApp_api_url:"https://dev.merren.io",whatsApp_mobile_Number:919873310102,trainingsideways_whatsApp_api_url:"https://dummy3.merren.io",google_tranlsation_api:"https://translation.googleapis.com/language/translate/v2?key=AIzaSyAOmyYqfTs_rRHeLK2ncy68OPj5-VSgsts",invit_user_count:3,webchat_base_url:"https://chat.merren.io",merren_qual_url:"https://qual.merren.io",recaptcha_site_key:"6LcXx_ImAAAAAINCmz4LdGB4553g2UjFbR5cVMKG"}},8590:(en,Me,R)=>{"use strict";var p=R(345),w=R(9417),N=R(1626),v=R(5286),ee=R(1188),l=R(1827),W=R(7421),B=R(5312),T=R(9520),e=R(4438),K=R(1722),H=R(5794),pe=R(138),oe=R(9242),Ce=R(177);const we=["openModel"],Pe=["errorModel"],Qe=b=>({blur:b}),ht=b=>({"is-invalid":b}),ot=b=>({"blur-bottom-half":b});function gt(b,x){1&b&&(e.j41(0,"section",64)(1,"div",65)(2,"div",66)(3,"div",67)(4,"span",68),e.EFF(5,"Loading..."),e.k0s()(),e.j41(6,"h5")(7,"strong"),e.EFF(8,"Generating Survey..."),e.k0s()()()()())}function je(b,x){1&b&&(e.j41(0,"div"),e.EFF(1,"No of questions is required."),e.k0s())}function Ct(b,x){1&b&&(e.j41(0,"div"),e.EFF(1," Maximum Question Limit should be 20 "),e.k0s())}function kt(b,x){1&b&&(e.j41(0,"div"),e.EFF(1," Minimum Question Limit should be 5 "),e.k0s())}function We(b,x){1&b&&(e.j41(0,"div"),e.EFF(1," Maximum Question Digit Limit Length should be 2 "),e.k0s())}function at(b,x){if(1&b&&(e.j41(0,"div",100),e.DNE(1,je,2,0,"div",101)(2,Ct,2,0,"div",101)(3,kt,2,0,"div",101)(4,We,2,0,"div",101),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.generateSurveyForm.get("numOfQuestions").errors.required),e.R7$(),e.Y8G("ngIf",s.generateSurveyForm.get("numOfQuestions").errors.max),e.R7$(),e.Y8G("ngIf",s.generateSurveyForm.get("numOfQuestions").errors.min),e.R7$(),e.Y8G("ngIf",s.generateSurveyForm.get("numOfQuestions").errors.maxlength)}}function le(b,x){if(1&b&&(e.j41(0,"option",102),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s.viewValue),e.R7$(),e.SpI(" ",s.viewValue," ")}}function Xe(b,x){1&b&&(e.j41(0,"div"),e.EFF(1,"Survey type is required."),e.k0s())}function Mt(b,x){if(1&b&&(e.j41(0,"div",100),e.DNE(1,Xe,2,0,"div",101),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.generateSurveyForm.get("typeOfSurvey").errors.required)}}function Et(b,x){1&b&&(e.j41(0,"div"),e.EFF(1,"Product category is required."),e.k0s())}function Jt(b,x){if(1&b&&(e.j41(0,"div",100),e.DNE(1,Et,2,0,"div",101),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.generateSurveyForm.get("productCategory").errors.required)}}function ct(b,x){1&b&&(e.j41(0,"div"),e.EFF(1,"Please Choose the Brand Name"),e.k0s())}function Gt(b,x){if(1&b&&(e.j41(0,"div",100),e.DNE(1,ct,2,0,"div",101),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.generateSurveyForm.get("brand").errors.required)}}function Te(b,x){if(1&b&&(e.j41(0,"option",102),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s.value),e.R7$(),e.SpI(" ",s.viewValue," ")}}function Ze(b,x){1&b&&(e.j41(0,"div"),e.EFF(1,"Please Choose the Scale"),e.k0s())}function Ne(b,x){if(1&b&&(e.j41(0,"div",100),e.DNE(1,Ze,2,0,"div",101),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.generateSurveyForm.get("preferredScale").errors.required)}}function Je(b,x){if(1&b&&(e.j41(0,"option",102),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s.value),e.R7$(),e.SpI(" ",s.viewValue," ")}}function Fe(b,x){1&b&&(e.j41(0,"div"),e.EFF(1," Please choose the scale labels "),e.k0s())}function ze(b,x){if(1&b&&(e.j41(0,"div",100),e.DNE(1,Fe,2,0,"div",101),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.f.scaleLabels.errors.required)}}function ft(b,x){if(1&b&&(e.j41(0,"option",102),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s.value),e.R7$(),e.SpI(" ",s.viewValue," ")}}function Re(b,x){1&b&&(e.j41(0,"div"),e.EFF(1," Please choose the open ended. "),e.k0s())}function rt(b,x){if(1&b&&(e.j41(0,"div",100),e.DNE(1,Re,2,0,"div",101),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.f.openEnded.errors.required)}}function Ot(b,x){if(1&b){const s=e.RV6();e.j41(0,"section",69)(1,"div")(2,"form",70),e.bIt("ngSubmit",function(){e.eBV(s);const g=e.XpG();
1return e.Njj(g.submitForm())}),e.j41(3,"div",71)(4,"div",72)(5,"h4")(6,"strong"),e.EFF(7,"AI Survey Builder"),e.k0s()()()(),e.j41(8,"div",73)(9,"div",74)(10,"strong"),e.EFF(11,"Upper Limit Of No Of Questions "),e.j41(12,"span",75),e.EFF(13,"*"),e.k0s()()(),e.j41(14,"div",76)(15,"input",77),e.bIt("focus",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.questionInteracted=!0)}),e.k0s(),e.DNE(16,at,5,4,"div",78),e.k0s()(),e.j41(17,"div",79)(18,"div",80)(19,"strong"),e.EFF(20,"Type Of Survey "),e.j41(21,"span",75),e.EFF(22,"*"),e.k0s()()(),e.j41(23,"div",76)(24,"select",81),e.bIt("focus",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.questionInteracted=!0)}),e.j41(25,"option",82),e.EFF(26,"Select survey type"),e.k0s(),e.DNE(27,le,2,2,"option",83),e.k0s(),e.DNE(28,Mt,2,1,"div",78),e.k0s()(),e.j41(29,"div",73)(30,"div",84)(31,"strong"),e.EFF(32,"Product Category "),e.j41(33,"span",75),e.EFF(34,"*"),e.k0s()()(),e.j41(35,"div",85)(36,"input",86),e.bIt("focus",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.questionInteracted=!0)}),e.k0s(),e.DNE(37,Jt,2,1,"div",78),e.k0s()(),e.j41(38,"div",79)(39,"div",80)(40,"strong"),e.EFF(41,"Brand "),e.j41(42,"span",75),e.EFF(43,"*"),e.k0s()()(),e.j41(44,"div",85)(45,"input",87),e.bIt("focus",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.questionInteracted=!0)}),e.k0s(),e.DNE(46,Gt,2,1,"div",78),e.k0s()(),e.j41(47,"div",79)(48,"div",80)(49,"strong"),e.EFF(50,"Prefered Scale "),e.j41(51,"span",75),e.EFF(52,"*"),e.k0s()()(),e.j41(53,"div",85)(54,"select",88),e.bIt("focus",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.questionInteracted=!0)}),e.j41(55,"option",89),e.EFF(56,"Select Scale"),e.k0s(),e.DNE(57,Te,2,2,"option",83),e.k0s(),e.DNE(58,Ne,2,1,"div",78),e.k0s()(),e.j41(59,"div",79)(60,"div",80)(61,"strong"),e.EFF(62,"Scale Labels ?"),e.k0s()(),e.j41(63,"div",90)(64,"select",91),e.DNE(65,Je,2,2,"option",83),e.k0s(),e.DNE(66,ze,2,1,"div",78),e.k0s()(),e.j41(67,"div",79)(68,"div",80)(69,"strong"),e.EFF(70,"Open Ended?"),e.k0s()(),e.j41(71,"div",90)(72,"select",92),e.DNE(73,ft,2,2,"option",83),e.k0s(),e.DNE(74,rt,2,1,"div",78),e.k0s()(),e.j41(75,"div",93),e.nrm(76,"div",94),e.j41(77,"div",95)(78,"re-captcha",96),e.bIt("resolved",function(g){e.eBV(s);const I=e.XpG();return e.Njj(I.resolved(g))}),e.k0s()()(),e.j41(79,"div",97)(80,"div",98)(81,"button",99),e.EFF(82," GENERATE SURVEY "),e.k0s()()()()()()}if(2&b){const s=e.XpG();e.R7$(2),e.Y8G("formGroup",s.generateSurveyForm),e.R7$(13),e.Y8G("required",!0)("max",20)("min",5)("maxlength",2)("ngClass",e.eq3(28,ht,s.questionInteracted&&s.generateSurveyForm.get("numOfQuestions").touched&&s.generateSurveyForm.get("numOfQuestions").errors)),e.R7$(),e.Y8G("ngIf",s.questionInteracted&&s.generateSurveyForm.get("numOfQuestions").touched&&s.generateSurveyForm.get("numOfQuestions").errors),e.R7$(8),e.Y8G("required",!0)("ngClass",e.eq3(30,ht,s.questionInteracted&&s.generateSurveyForm.get("typeOfSurvey").touched&&s.generateSurveyForm.get("typeOfSurvey").errors)),e.R7$(3),e.Y8G("ngForOf",s.surveyTypeArr),e.R7$(),e.Y8G("ngIf",s.questionInteracted&&s.generateSurveyForm.get("typeOfSurvey").touched&&s.generateSurveyForm.get("typeOfSurvey").errors),e.R7$(8),e.Y8G("required",!0)("ngClass",e.eq3(32,ht,s.questionInteracted&&s.generateSurveyForm.get("productCategory").touched&&s.generateSurveyForm.get("productCategory").errors)),e.R7$(),e.Y8G("ngIf",s.questionInteracted&&s.generateSurveyForm.get("productCategory").touched&&s.generateSurveyForm.get("productCategory").errors),e.R7$(8),e.Y8G("required",!0)("ngClass",e.eq3(34,ht,s.questionInteracted&&s.generateSurveyForm.get("brand").touched&&s.generateSurveyForm.get("brand").errors)),e.R7$(),e.Y8G("ngIf",s.questionInteracted&&s.generateSurveyForm.get("brand").touched&&s.generateSurveyForm.get("brand").errors),e.R7$(8),e.Y8G("required",!0)("ngClass",e.eq3(36,ht,s.questionInteracted&&s.generateSurveyForm.get("preferredScale").touched&&s.generateSurveyForm.get("preferredScale").errors)),e.R7$(3),e.Y8G("ngForOf",s.scaleArr),e.R7$(),e.Y8G("ngIf",s.questionInteracted&&s.generateSurveyForm.get("preferredScale").touched&&s.generateSurveyForm.get("preferredScale").errors),e.R7$(7),e.Y8G("ngForOf",s.scaleLabelsArr),e.R7$(),e.Y8G("ngIf",s.submitted&&s.f.scaleLabels.errors),e.R7$(6),e.Y8G("ngClass",e.eq3(38,ht,s.submitted&&s.f.openEnded.errors)),e.R7$(),e.Y8G("ngForOf",s.openEndedArr),e.R7$(),e.Y8G("ngIf",s.submitted&&s.f.openEnded.errors),e.R7$(4),e.FS9("siteKey",s.recaptchakey),e.R7$(3),e.Y8G("disabled",!s.generateSurveyForm.valid)}}function It(b,x){if(1&b&&(e.j41(0,"li",112),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.R7$(),e.JRh(s)}}function on(b,x){if(1&b&&(e.j41(0,"div",106)(1,"span",107)(2,"strong"),e.EFF(3),e.j41(4,"span",108),e.EFF(5),e.k0s()(),e.j41(6,"span",109)(7,"i"),e.EFF(8),e.k0s(),e.nrm(9,"img",110),e.k0s()(),e.j41(10,"ol"),e.DNE(11,It,2,1,"li",111),e.k0s()()),2&b){const s=x.$implicit,y=x.index,g=e.XpG(2);e.Y8G("ngClass",e.eq3(6,ot,y>=g.questionsArr.slice(0,3).length/2)),e.R7$(3),e.SpI("",y+1," "),e.R7$(2),e.JRh(null==s?null:s.question),e.R7$(3),e.JRh(null==s?null:s.type),e.R7$(),e.FS9("src",null==s?null:s.questionTypeIconUrl,e.B4B),e.R7$(2),e.Y8G("ngForOf",s.options)}}function ue(b,x){1&b&&(e.j41(0,"div",121),e.EFF(1,"Email is required"),e.k0s())}function U(b,x){1&b&&(e.j41(0,"div",121),e.EFF(1,"Email is invali
1d"),e.k0s())}function Oe(b,x){if(1&b&&(e.j41(0,"div",100),e.DNE(1,ue,2,0,"div",120)(2,U,2,0,"div",120),e.k0s()),2&b){const s=e.XpG(3);e.R7$(),e.Y8G("ngIf",s.f1.email.errors.required),e.R7$(),e.Y8G("ngIf",s.f1.email.errors.email)}}function Ue(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",113)(1,"button",114),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.gotoGenerateSurveyForm())}),e.EFF(2,"EDIT"),e.k0s(),e.j41(3,"form",115),e.bIt("ngSubmit",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.onSubmitemail())}),e.j41(4,"div",116)(5,"div",117),e.nrm(6,"input",118),e.DNE(7,Oe,3,2,"div",78),e.k0s(),e.j41(8,"div",117)(9,"button",119),e.EFF(10,"GET SURVEY"),e.k0s()()()()()}if(2&b){const s=e.XpG(2);e.R7$(3),e.Y8G("formGroup",s.form),e.R7$(3),e.Y8G("ngClass",e.eq3(3,ht,s.submitted&&s.f1.email.errors&&s.f1.email.touched)),e.R7$(),e.Y8G("ngIf",s.submitted&&s.f1.email.errors&&s.f1.email.touched)}}function $e(b,x){if(1&b&&(e.j41(0,"section",103),e.DNE(1,on,12,8,"div",104)(2,Ue,11,5,"div",105),e.k0s()),2&b){const s=e.XpG();e.R7$(),e.Y8G("ngForOf",s.questionsArr.slice(0,3)),e.R7$(),e.Y8G("ngIf",s.showButtons)}}function Ve(b,x){1&b&&e.nrm(0,"img",128)}function lt(b,x){1&b&&e.nrm(0,"img",129)}function Rt(b,x){if(1&b&&(e.j41(0,"div",130)(1,"p",131),e.EFF(2),e.k0s()()),2&b){const s=e.XpG().$implicit;e.R7$(2),e.JRh(s.answer)}}function nt(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",122)(1,"div",123),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG();return e.Njj(I.toggleAnswer(g))}),e.j41(2,"span",124)(3,"strong"),e.EFF(4),e.k0s()(),e.DNE(5,Ve,1,0,"img",125)(6,lt,1,0,"img",126),e.k0s(),e.DNE(7,Rt,3,1,"div",127),e.k0s()}if(2&b){const s=x.$implicit;e.R7$(4),e.JRh(s.text),e.R7$(),e.Y8G("ngIf",!s.showanswer),e.R7$(),e.Y8G("ngIf",s.showanswer),e.R7$(),e.Y8G("ngIf",s.showanswer)}}function xt(b,x){1&b&&(e.j41(0,"button",132)(1,"a",133),e.EFF(2," Visit Merren.io "),e.k0s()())}function St(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",134),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.gotoSignIn())}),e.EFF(1," Login "),e.k0s()}}let Ht=(()=>{class b{constructor(s,y,g,I,Le){this.formBuilder=s,this.surveyService=y,this.toastrService=g,this.router=I,this.accountService=Le,this.recaptchakey=B.c.recaptcha_site_key,this.surveyTypeArr=[{value:0,viewValue:"Customer Satisfaction Survey"},{value:1,viewValue:"NPS Survey"},{value:2,viewValue:"Customer Effort Score Survey"},{value:3,viewValue:"Lead Generation Form"},{value:4,viewValue:"Concept Test Survey"},{value:5,viewValue:"Buyer Persona Survey"},{value:6,viewValue:"Competitive Benchmarking Survey"},{value:7,viewValue:"Brand Awareness Survey"},{value:8,viewValue:"Reviews/Testimonials Collection Form"}],this.scaleArr=[{value:0,viewValue:"Any Scale"},{value:3,viewValue:"3-Point Scale"},{value:4,viewValue:"4-Point Scale"},{value:5,viewValue:"5-Point Scale"},{value:7,viewValue:"7-Point Scale"},{value:10,viewValue:"10-Point Scale"}],this.scaleLabelsArr=[{value:!0,viewValue:"Required"},{value:!1,viewValue:"Not Required"}],this.openEndedArr=[{value:!0,viewValue:"Required"},{value:!1,viewValue:"Not Required"}],this.questions=[{text:"What is the objective of this survey builder?",answer:"Our survey builder is designed to make it easy for anyone to create a custom survey quickly and easily. You can specify the number of questions, the objective of the survey, the category, brand, desired scales, whether the scale labels are required, and if open-ended questions are needed in the survey. This ensures that your survey is tailored to your specific needs and goals.",showanswer:!1},{text:"How does the survey builder work?",answer:"Our survey builder is designed to make it easy for anyone to create a custom survey quickly and easily. You can specify the number of questions, the objective of the survey, the category, brand, desired scales, whether the scale labels are required, and if open-ended questions are needed in the survey. This ensures that your survey is tailored to your specific needs and goals.",showanswer:!1},{text:"What are some important terms used in the survey builder?",answer:"Our survey builder is designed to make it easy for anyone to create a custom survey quickly and easily. You can specify the number of questions, the objective of the survey, the category, brand, desired scales, whether the scale labels are required, and if open-ended questions are needed in the survey. This ensures that your survey is tailored to your specific needs and goals.",showanswer:!1},{text:"What are the benefits of using this survey builder?",answer:"Our survey builder is designed to make it easy for anyone to create a custom survey quickly and easily. You can specify the number of questions, the objective of the survey, the category, brand, desired scales, whether the scale labels are required, and if open-ended questions are needed in the survey. This ensures that your survey is tailored to your specific needs and goals.",showanswer:!1}],this.submitted=!1,this.captchaFlag=!1,this.showSection1=!0,this.showSection2=!1,this.showBlurEffect=!1,this.isLoading=!1,this.showButtons=!1,this.showQuestionErrors=!1,this.questionInteracted=!1,this.showanswer=!1,this.errorMessage="",this.isLoginPage=!1,this.message="You will receive an email. To access the full survey, click the link in email..",this.generateSurveyForm=new w.gE({numOfQuestions:new w.MJ(""),typeOfSurvey:new w.MJ(""),productCategory:new w.MJ(""),brand:new w.MJ(""),preferredScale:new w.MJ("0"),scaleLabels:new w.MJ("true"),openEnded:new w.MJ("true")})}ngOnInit(){this.captchaFlag=!1,this.generateSurveyForm=this.formBuilder.group({numOfQuestions:["",[w.k0.required,w.k0.max(20),w.k0.min(5),w.k0.maxLength(2)]],typeOfSurvey:["",w.k0.required],productCategory:["",w.k0.required],brand:["",w.k0.required],preferredScale:["0",w.k0.required],scaleLabels:["true"],openEnded:["true"]}),this.form=this.formBuilder.group({email:["",[w.k0.required,w.k0.email,T.h.validEmail]]})}get f1(){return this.form.controls}get f(){return this.generateSurveyForm.controls}
1submitForm(){0!=this.captchaFlag?(this.isLoading=!0,this.showSection1=!1,this.showSection2=!1,this.submitted=!0,this.generateSurveyForm.invalid||(console.log(this.generateSurveyForm.value),this.surveyService.generateSurvey({numOfQuestions:this.generateSurveyForm.controls.numOfQuestions.value,typeOfSurvey:this.generateSurveyForm.controls.typeOfSurvey.value,productCategory:this.generateSurveyForm.controls.productCategory.value,brand:this.generateSurveyForm.controls.brand.value,preferredScale:this.generateSurveyForm.controls.preferredScale.value,scaleLabels:this.generateSurveyForm.controls.scaleLabels.value,openEnded:this.generateSurveyForm.controls.openEnded.value}).subscribe(y=>{this.isLoading=!1,y&&400!=y.status?(this.showSection2=!0,this.surveyId=y._id,this.questionsArr=y.data,this.showBlurEffect=!0,this.toastrService.success("Survey Generated Successfully"),this.showButtons=!0):(this.isLoading=!1,this.showSection1=!0,this.showSection2=!1,this.submitted=!1,this.errorMessage=y.message,this.errorModel.nativeElement.click(),this.ngOnInit())},y=>{console.error(y),this.toastrService.error("Oh! Survey Not Generated  please try again."),this.isLoading=!1,this.showSection1=!0,this.showSection2=!1,this.submitted=!1,this.generateSurveyForm.reset(),this.errorMessage=y.message,this.errorModel.nativeElement.click(),this.ngOnInit()}))):this.toastrService.error("Please select re captcha")}onSubmitemail(){this.submitted=!0,!this.form.invalid&&this.surveyService.sendGenerateSurveyLink({email:this.form.controls.email.value,surveyId:this.surveyId}).subscribe(s=>{s&&null!=s&&null!=s&&s?.emailVerified&&(this.isLoginPage=s?.emailVerified,this.message="It seems you are already registered with Merren. Please login to Merren to access your AI Generated Survey."),this.openModel.nativeElement.click()},s=>{console.log(s)})}resetForms(){this.form.patchValue({email:""})}gotourl(){this.router.navigate(["https://merren.io?utm_source=webchatbot&utm_medium=webchatbot&utm_campaign=webchatbot"])}gotoGenerateSurveyForm(){this.showSection1=!0,this.showSection2=!1,this.showBlurEffect=!1,this.questionsArr=[],this.showButtons=!1}resolved(s){console.log(`Resolved response token: ${s}`),this.sendTokenToBackend(s)}sendTokenToBackend(s){this.accountService.sendToken(s).subscribe(y=>{console.log(y),this.captchaFlag=!!y},y=>{console.log(y)},()=>{})}toggleAnswer(s){this.questions.forEach((y,g)=>{y.showanswer=g===s&&!y.showanswer})}gotoSignIn(){this.router.navigate(["/accounts/login"],{queryParams:{sid:this.surveyId}})}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(w.ok),e.rXU(K.I),e.rXU(H.tw),e.rXU(ee.Ix),e.rXU(pe.u))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-create-openai-survey"]],viewQuery:function(y,g){if(1&y&&(e.GBs(we,7),e.GBs(Pe,7)),2&y){let I;e.mGM(I=e.lsd())&&(g.openModel=I.first),e.mGM(I=e.lsd())&&(g.errorModel=I.first)}},decls:125,vars:11,consts:[["openModel",""],["errorModel",""],[1,"header","py-4"],[1,"row","col-sm-12","row","m-0","p-0"],[1,"col-sm-3","m-0","row","justify-content-left"],["href","#"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/logo-print-hd 1.svg","alt",""],[1,"content","text-center","bg-white"],[1,"pt-3","d-flex","title"],[1,"textcolor","pl-2"],[1,"py-3","bg-white","shadow-sm"],[1,"container","text-center","heading1"],[1,"text-left","px-2"],[1,"surveyformsection"],[1,"container","surveysection",3,"ngClass"],["class","d-flex","style","height: 400px;",4,"ngIf"],["class","container bg-white shadow-sm section1",4,"ngIf"],["class","surveysection2 blur container bg-white shadow-sm py-5 pl-5",4,"ngIf"],[1,"text-center","bg-white"],[1,"pt-5","justify-content-center","d-flex"],[2,"font-size","18px"],[1,"textcolor","pl-1"],[1,"container","heading1","text-left"],["class","faquestions container shadow-sm p-0 my-3",4,"ngFor","ngForOf"],[1,"py-3"],[1,"bg-dark","py-3","mt-5"],[1,"container","px-0","footer1"],[1,"col-sm-12","row","footer"],[1,"col-sm-4","footer2"],[1,"container","py-4","text-white","fcontent"],[1,"div"],["href","",1,"me-4"],["src","../../../assets/icons/twitter.svg","alt",""],["href","",1,"pl-4"],["src","../../../assets/icons/facebook.svg","alt",""],[1,"pt-4","textcolor","policy"],[1,"pt-2","textcolor","service"],[1,"col-sm-3","quicklink","textcolor"],[1,"list-unstyled",2,"font-size","16px"],[1,"py-4"],["href","#!",1,"text-white"],[1,"col-sm-5","textcolor","pl-5",2,"font-size","20px"],[1,"text-white",2,"font-size","16px"],["for",""],["src","../../../assets/icons/Vector.svg","alt","",1,"pr-3"],[1,"pr-3"],["aria-hidden","true",1,"fa","fa-envelope"],[2,"color","white"],[1,"container","d-flex"],[1,"col-sm-4","px-0",2,"font-size","14px"],[1,"text-white","copyright"],["aria-hidden","true",1,"fa","fa-copyright"],["id","getSurvey","tabindex","-1","aria-labelledby","adminChangeModalLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal
1-dialog-centered","modal-lg"],[1,"modal-content","noBg","bg-white"],[1,"modal-body","d-flex","flex-column","justify-content-between","align-items-center","py-5"],[1,"pb-4","text-center"],["type","button","class","btn btn-primary",4,"ngIf"],["type","button","class","btn btn-primary","data-bs-dismiss","modal",3,"click",4,"ngIf"],["data-bs-toggle","modal","data-bs-target","#getSurvey",1,"d-none"],["id","errorModel","tabindex","-1","aria-labelledby","adminChangeModalLabel","aria-hidden","true",1,"modal","fade"],[1,"pb-4"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary"],["data-bs-toggle","modal","data-bs-target","#errorModel",1,"d-none"],[1,"d-flex",2,"height","400px"],[1,"col-sm-12","d-flex","m-auto"],["id","isLoading",1,"d-flex","flex-column","justify-content-center","align-items-center","m-auto"],["role","status",1,"spinner-grow","mb-2"],[1,"sr-only"],[1,"container","bg-white","shadow-sm","section1"],[1,"py-3",3,"ngSubmit","formGroup"],[1,"form-group","col-sm-12","row","m-0","mb-3","mt-4"],[1,"col-sm-12","text-center"],[1,"form-group","col-sm-12","row","m-0","mb-3","mt-4","pl-2"],[1,"col-sm-5","d-flex","pr-0","my-auto"],[1,"text-danger"],[1,"form-group","col-sm-7","mb-0"],["type","number","placeholder","Min 5/Max 20","formControlName","numOfQuestions",1,"form-control",2,"border-radius","5px",3,"focus","required","max","min","maxlength","ngClass"],["class","invalid-feedback",4,"ngIf"],[1,"form-group","col-sm-12","row","m-0","mt-4","pl-2"],[1,"time","col-sm-5","d-flex","my-auto"],["name","","formControlName","typeOfSurvey",1,"custom-select","form-select","form-select-sm",2,"border-radius","5px",3,"focus","required","ngClass"],["value","","selected","","disabled",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-sm-5","d-flex","my-auto"],[1,"col-sm-7","form-group","mb-0"],["type","text","placeholder","Product category","formControlName","productCategory",1,"form-control",2,"border-radius","5px",3,"focus","required","ngClass"],["type","text","placeholder","Brand name","formControlName","brand",1,"form-control",2,"border-radius","5px",3,"focus","required","ngClass"],["name","","formControlName","preferredScale",1,"custom-select","form-select","form-select-sm",2,"border-radius","5px",3,"focus","required","ngClass"],["value","invalid","selected","","disabled",""],[1,"col-sm-7","mb-0"],["name","","formControlName","scaleLabels",1,"custom-select","form-select","form-select-sm"],["name","","formControlName","openEnded",1,"custom-select","form-select","form-select-sm",3,"ngClass"],[1,"form-group","col-sm-12","row","m-0","mt-4"],[1,"col-sm-5"],[1,"col-sm-7","px-0","captcha"],["formControlName","recaptchaReactive",3,"resolved","siteKey"],[1,"form-group","col-sm-12","mt-4","pl-2"],[1,"col-sm-12","text-center","py-3"],["type","submit",1,"btnschedule","btn","btn-secondary",3,"disabled"],[1,"invalid-feedback"],[4,"ngIf"],[3,"value"],[1,"surveysection2","blur","container","bg-white","shadow-sm","py-5","pl-5"],["class","col-sm-12 mt-3 ",3,"ngClass",4,"ngFor","ngForOf"],["class","col-sm-12 row justify-content-center text-center py-3 mt-3",4,"ngIf"],[1,"col-sm-12","mt-3",3,"ngClass"],[1,"row","pb-2"],[1,"pl-3"],[1,"text-muted","pl-2"],["alt","",1,"pl-4",3,"src"],["class","pb-2",4,"ngFor","ngForOf"],[1,"pb-2"],[1,"col-sm-12","row","justify-content-center","text-center","py-3","mt-3"],["type","button",1,"closebtn","btn","btn-outline-primary","ml-3","mr-4","mb-2",3,"click"],[3,"ngSubmit","formGroup"],[1,"row","ml-4"],[1,"form-group"],["required","","type","text","formControlName","email","placeholder","Enter your email",1,"inputemail","form-control",3,"ngClass"],["type","submit",1,"signupbtn","btn","btn-secondary","mr-4"],["class","text-left",4,"ngIf"],[1,"text-left"],[1,"faquestions","container","shadow-sm","p-0","my-3"],[1,"question","py-3",3,"click"],[1,"px-3"],["src","../../../assets/icons/add.svg","alt","","class","pr-3",4,"ngIf"],["src","../../../assets/icons/arrow-down.svg","alt","","class","pr-3",4,"ngIf"],["class","answer",4,"ngIf"],["src","../../../assets/icons/add.svg","alt","",1,"pr-3"],["src","../../../assets/icons/arrow-down.svg","alt","",1,"pr-3"],[1,"answer"],[1,"px-3","py-2"],["type","button",1,"btn","btn-primary"],["href","https://merren.io"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click"]],template:function(y,g){1&y&&(e.j41(0,"header")(1,"div",2)(2,"div",3)(3,"div",4)(4,"a",5),e.nrm(5,"img",6),e.k0s()()()()(),e.j41(6,"section",7)(7,"p",8)(8,"strong"),e.EFF(9,"Build Better Surveys with "),e.j41(10,"span",9),e.EFF(11,"Merren\u2019s Easy-to-Use AI Survey Builder"),e.k0s()()(),e.j41(12,"div",10)(13,"div",11)(14,"p",12),e.EFF(15,"Are you tired of spending hours creating surveys that fail to capture the insights you need? Or maybe you're new to survey design and feel overwhelmed by the process? Don't worry, we've got you covered! Our AI-powered survey builder makes creating custom surveys a breeze. With just a few clicks, you can select the number of questions, objective, category, brand, desired scales, and more. The best part? Our survey builder is lightning-fast and user-friendly, so you can focus on what matters most: getting actionable insights that will help grow your business. Say goodbye to tedious survey creation and hello to better data with our survey builder."),e.k0s()()()(),e.j41(16,"section",13)(17,"div",14),e.DNE(18,gt,9,0,"section",15)(19,Ot,83,40,"section",16)(20,$e,3,2,"section",17),e.k0s()(),e.j41(21,"section",18)(22,"div",19)(23,"p",20)(24,"strong"),e.EFF(25,"FREQUENTLY ASKED QUESTIONS "),e.j41(26,"span",21),e.EFF(27,"(FAQ's)"),e.k0s()()()(),e.j41(28,"div",22),e.DNE(29,nt,8,4,"div",23),e.k0s(),e.j41(30,"p",24),e.EFF(31,"If you have any additional questions or would like more information about our survey builder, please feel free to contact us. We're always happy to help."),e.k0s()(),e.j41(32,"section",25)(33,"div",26)(34,"div",27)(35,"div",28)(36,"a",5),e.nrm(37,"img",6),e.k0s(),e.j41(38,"p",29),e.EFF(39,"Merren is a consumer survey solution that uses popular messaging apps that consumers are already comfortable with, to run fully automated surveys that consumers are already comfortable with , to run fully -automated surveys that get live-time feedback. Because real feedback = high - value solutions that drive your growth."),e.k0s(),e.j41(40,"div",30)(41,"a",31),e.nrm(42,"img",32),e.k0s(),e.j41(43,"a",33),e.nrm(44,"img",34),e.k0s()(),e.j41(45,"p",35),e.EFF(46,"Privacy Policy"),e.k0s(),e.j41(47,"p",36),e.EFF(48,"Terms of Services"),e.k0s()(),e.j41(49,"div",37)(50,"h5")(51,"a",5),e.EFF(52,"Quick links"),e.k0s()(),e.j41(53,"div")(54,"ul",38)(55,"li",39)(56,"a",40),e.EFF(57,"Home"),e.k0s()(),e.j41(58,"li",24)(59,"a",40),e.EFF(60,"Why Merren"),e.k0s()(),e.j41(61,"li",39)(62,"a",40),e.EFF(63,"Connect"),e.k0s()(),e.j41(64,"li",39)(65,"a",40),e.EFF(66,"FAQ's"),e.k0s()()()()(),e.j41(67,"div",41)(68,"h5")(69,"a",5),e.EFF(70,"Contact Us"),e.k0s()(),e.j41(71,"div",42)(72,"label",43),e.EFF(73,"US Office:"),e.k0s(),e.j41(74,"p"),e.EFF(75,"Merren-IO Inc8 The Green Ste A Dover DE 19901"),e.k0s()(),e.j41(76,"div",42)(77,"label",43),e.EFF(78,"Mumbai Office:"),e.k0s(),e.j41(79,"p"),e.EFF(80,"Phoenix Marketcity, Phoenix Paragon Plaza,4B19,Kamani,Kurla West, Kurla, Mumbai - 400050 "),e.k0s()(),e.j41(81,"div",42)(82,"label",43),e.EFF(83,"Pune Office:"),e.k0s(),e.j41(84,"p"),e.EFF(85,"S no. 47,Pune-Satara Rd near bhapkar petrol pump,Aadinath Society, Bibvewadi,Pune-411009"),e.k0s()(),e.j41(86,"div",42)(87,"p")(88,"span"),e.nrm(89,"img",44),e.k0s(),e.EFF(90," +1(878)788 7688 / + 91 98201 60880"),e.k0s()(),e.j41(91,"div",42)(92,"p")(93,"span",45),e.nrm(94,"i",46),e.k0s(),e.EFF(95," contact @ merren.io "),e.k0s()()()()(),e.nrm(96,"hr",47),e.j41(97,"div",48)(98,"div",49)(99,"p",50)(100,"span"),e.nrm(101,"i",51),e.k0s(),e.EFF(102,"Merren2022. Rights Reserved"),e.k0s()()()(),e.j41(103,"div",52)(104,"div",53)(105,"div",54)(106,"div",55)(107,"h5",56),e.EFF(108),e.k0s(),e.j41(109,"div"),e.DNE(110,xt,3,0,"button",57)(111,St,2,0,"button",58),e.k0s()()()()(),e.nrm(112,"button",59,0),e.j41(114,"div",60)(115,"div",53)(116,"div",54)(117,"div",55)(118,"h5",61),e.EFF(119),e.k0s(),e.j41(120,"div")(121,"button",62),e.EFF(122,"Close"),e.k0s()()()()()(),e.nrm(123,"button",63,1)),2&y&&(e.R7$(17),e.Y8G("ngClass",e.eq3(9,Qe,g.showSection2)),e.R7$(),e.Y8G("ngIf",g.isLoading),e.R7$(),e.Y8G("ngIf",g.showSection1),e.R7$(),e.Y8G("ngIf",g.showSection2),e.R7$(9),e.Y8G("ngForOf",g.questions),e.R7$(79),e.JRh(g.message),e.R7$(2),e.Y8G("ngIf",!g.isLoginPage),e.R7$(),e.Y8G("ngIf",g.isLoginPage),e.R7$(8),e.SpI("",g.errorMessage?g.errorMessage:"We are experiencing some trouble processing the data.Please try again in a while.","."))},dependencies:[oe.J,Ce.YU,Ce.Sq,Ce.bT,w.qT,w.xH,w.y7,w.me,w.Q0,w.wz,w.BC,w.cb,w.YS,w.tU,w.VZ,w.zX,w.j4,w.JD],styles:[".title[_ngcontent-%COMP%]{font-size:28px;justify-content:center}.surveysection[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;border-radius:10px;width:80%}.surveysection2[_ngcontent-%COMP%]{border-radius:10px;display:flex;flex-direction:column;overflow:hidden;width:80%}.surveyformsection[_ngcontent-%COMP%]{background-color:#f795220a;padding:60px}.section1[_ngcontent-%COMP%]{width:80%}.blur-bottom-half[_ngcontent-%COMP%]{filter:blur(5px)}.closebtn[_ngcontent-%COMP%]{width:85px;height:41px;border-radius:5px}.signupbtn[_ngcontent-%COMP%]{width:150px;height:41px;border-radius:0 5px 5px 0}.inputemail[_ngcontent-%COMP%]{height:41px;border-radius:5px 0 0 5px}header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;background-color:#fff;z-index:1}.content[_ngcontent-%COMP%]{margin-top:88px}.heading1[_ngcontent-%COMP%]{font-size:16px;width:70%}.textcolor[_ngcontent-%COMP%]{color:#f79522}.question[_ngcontent-%COMP%]{display:flex;justify-content:space-between;background-color:#f9f9f9;font-size:16px}.answer[_ngcontent-%COMP%]{top:100%;left:0;width:100%}.fcontent[_ngcontent-%COMP%]{font-size:16px;font-weight:300px}.footer2[_ngcontent-%COMP%]{padding-right:25px}.quicklink[_ngcontent-%COMP%]{padding-left:25px;font-size:20px}@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-min-device-pixel-ratio: 2){.heading1[_ngcontent-%COMP%]{width:100%;text-align:center!important}.section1[_ngcontent-%COMP%]{width:100%;padding-left:0;padding-right:0}.surveysection[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;border-radius:10px;width:100%}.surveyformsection[_ngcontent-%COMP%]{background-color:#f795220a;padding:40px 0}.footer1[_ngcontent-%COMP%]{text-align:center}.footer2[_ngcontent-%COMP%]{padding-right:0}.copyright[_ngcontent-%COMP%]{text-align:center}}.btn12[_ngcontent-%COMP%]{background-color:#f79522}"]})}return b})();function Pt(b,x){1&b&&(e.j41(0,"div",69)(1,"div",70)(2,"div",71)(3,"span",72),e.EFF(4,"Loading..."),e.k0s()(),e.j41(5,"h2")(6,"strong"),e.EFF(7,"Generating Survey..."),e.k0s()()()())}function fn(b,x){if(1&b&&(e.j41(0,"li",81),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.R7$(),e.JRh(s)}}function kn(b,x){if(1&b&&(e.j41(0,"div",75)(1,"span",76)(2,"strong"),e.EFF(3),e.j41(4,"span",77),e.EFF(5),e.k0s()(),e.j41(6,"span",78)(7,"i"),e.EFF(8),e.k0s(),e.nrm(9,"img",79),e.k0s()(),e.j41(10,"ol"),e.DNE(11,fn,2,1,"li",80),e.k0s()()),2&b){const s=x.$implicit,y=x.index;e.R7$(3),e.SpI("",y+1," "),e.R7$(2),e.JRh(null==s?null:s.question),e.R7$(3),e.JRh(null==s?null:s.type),e.R7$(),e.FS9("src",null==s?null:s.questionTypeIconUrl,e.B4B),e.R7$(2),e.Y8G("ngForOf",s.options)}}function an(b,x){if(1&b&&(e.j41(0,"section",73),e.DNE(1,kn,12,5,"div",74),e.k0s()),2&b){const s=e.XpG();e.R7$(),e.Y8G("ngForOf",s.questionsArr)}}function qt(b,x){1&b&&e.nrm(0,"img",88)}function wi(b,x){1&b&&e.nrm(0,"img",89)}function $n(b,x){if(1&b&&(e.j41(0,"div",90)(1,"p",91),e.EFF(2),e.k0s()()),2&b){const s=e.XpG().$implicit;e.R7$(2),e.JRh(s.answer)}}function Qn(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",82)(1,"div",83),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG();return e.Njj(I.toggleAnswer(g))}),e.j41(2,"span",84)(3,"strong"),e.EFF(4),e.k0s()(),e.DNE(5,qt,1,0,"img",85)(6,wi,1,0,"img",86),e.k0s(),e.DNE(7,$n,3,1,"div",87),e.k0s()}if(2&b){const s=x.$implicit;e.R7$(4),e.JRh(s.text),e.R7$(),e.Y8G("ngIf",!s.showanswer),e.R7$(),e.Y8G("ngIf",s.showanswer),e.R7$(),e.Y8G("ngIf",s.showanswer)}}let Un=(()=>{class b{constructor(s,y,g){this.accountService=s,this.activatedRoute=y,this.router=g,this.isLoading=!1,this.questions=[{text:"What can I do with this survey?",answer:" E
1xciting possibilities await you! With our survey builder, you can easily create engaging surveys and deploy them through WhatsApp, FB Messenger, chatbots, and interactive emails. This means you can reach your audience wherever they are and get the insights you need.",showanswer:!1},{text:"Can I download the survey as a document?",answer:"Absolutely! Once you've created your survey, you can easily download it from the platform itself. It's quick and easy.",showanswer:!1},{text:"Is there a cost to signing up?",answer:"Not at all! When you sign up, you get a 14-day trial plan that gives you full-featured access to our platform. You can create and deploy surveys to your heart's content. And when the trial period is over, you can choose a paid plan that fits your needs. Just head over to our website to learn more.",showanswer:!1},{text:"Do I need a credit card to sign up?",answer:"No way! We don't require credit card information for sign-up. All we need is some basic information to get you started. You can sign up in a matter of minutes and start using our platform right away.",showanswer:!1},{text:"Would I be able to start deploying the survey immediately?",answer:"Absolutely! Once you've created your survey, you can start deploying it right away using our default Merren credentials. If you want to create and link your company-branded credentials, just reach out to our sales team at [email protected] and we'll be happy to help you get started.",showanswer:!1}]}ngOnInit(){this.token=this.activatedRoute.snapshot.params.token,this.surveyId=this.activatedRoute.snapshot.params.surveyId,this.verifyUser()}verifyUser(){this.accountService.verifyNewUser(this.token).subscribe(s=>{console.log("=======>>>>",s),this.getQuestions()},s=>{console.error(s)})}getQuestions(){this.accountService.getQuestions(this.surveyId).subscribe(s=>{s&&(this.questionsArr=s.questions)})}gotoSignup(){console.log("signup"),this.router.navigate(["/accounts/signup"],{queryParams:{sid:this.surveyId}})}toggleAnswer(s){this.questions.forEach((y,g)=>{y.showanswer=g===s&&!y.showanswer})}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(pe.u),e.rXU(ee.nX),e.rXU(ee.Ix))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-ai-generated-survey"]],decls:137,vars:3,consts:[[1,"header","py-4"],[1,"row","col-sm-12","row","m-0","p-0"],[1,"col-sm-3","m-0","row","justify-content-left"],["href","#"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/logo-print-hd 1.svg","alt",""],[1,"content","text-center","bg-white"],[1,"pt-3","d-flex","title"],[1,"py-3","bg-white","shadow-sm"],[1,"container","text-center","heading1"],[1,"text-left","px-2"],[1,"surveyformsection"],[1,"container","surveysection"],["class","col-sm-12 d-flex","style","height:700px;",4,"ngIf"],["class","surveysection2 container bg-white shadow-sm py-5 pl-5",4,"ngIf"],[1,"pt-4","mt-3"],[1,"col-sm-12","d-flex","justify-content-center","row","m-0"],[2,"color","black","display","inline","text-transform","uppercase","font-size","19px","font-weight","600"],[2,"color","orange","display","inline","text-transform","uppercase","font-size","19px","font-weight","600"],[1,"col-sm-12"],[1,"col-sm-12","d-flex","justify-content-center","row","pt-2","px-0","m-0"],[1,"col-sm-2","text-center","shadow-sm","p-3","m-2","contents"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/whatapp.svg",1,"mt-3"],[1,"pt-3"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/facebookm.svg",1,"mt-3"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/email-mail.png",1,"mt-3"],[1,"pt-2"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/webchatbot.png",1,"mt-2"],[1,"col-sm-12","d-flex","justify-content-center","pt-4","mt-2"],[1,"btn","btn-secondary","text-uppercase","ml-3","mt-1",3,"click"],[1,"text-center","bg-white"],[1,"pt-5","justify-content-center","d-flex"],[2,"font-size","18px"],[1,"textcolor","pl-1"],[1,"container","heading1","text-left"],["class","faquestions container shadow-sm p-0 my-3",4,"ngFor","ngForOf"],[1,"py-3"],[1,"bg-dark","py-3","mt-5"],[1,"container","px-0","footer1"],[1,"col-sm-12","row","footer"],[1,"col-sm-4","footer2"],[1,"container","py-4","text-white","fcontent"],[1,"div"],["href","",1,"me-4"],["src","../../../assets/icons/twitter.svg","alt",""],["href","",1,"pl-4"],["src","../../../assets/icons/facebook.svg","alt",""],[1,"pt-4","textcolor","policy"],[1,"pt-2","textcolor","service"],[1,"col-sm-3","quicklink","textcolor"],[1,"list-unstyled",2,"font-size","16px"],[1,"py-4"],["href","#!",1,"text-white"],[1,"col-sm-5","textcolor","pl-5",2,"font-size","20px"],[1,"text-white",2,"font-size","16px"],["for",""],["src","../../../assets/icons/Vector.svg","alt","",1,"pr-3"],[1,"pr-3"],["aria-hidden","true",1,"fa","fa-envelope"],[2,"color","white"],[1,"container","d-flex"],[1,"col-sm-4","px-0",2,"font-size","14px"],[1,"text-white","copyright"],["aria-hidden","true",1,"fa","fa-copyright"],["id","getSurvey","tabindex","-1","aria-labelledby","adminChangeModalLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal
1-dialog-centered","modal-lg"],[1,"modal-content","noBg","bg-white"],[1,"modal-body","d-flex","flex-column","justify-content-between","align-items-center","py-5"],[1,"pb-4"],["data-bs-dismiss","modal",1,"btn","btn-primary","text-uppercase","ml-2"],[1,"col-sm-12","d-flex",2,"height","700px"],["id","isLoading",1,"d-flex","flex-column","justify-content-center","align-items-center","m-auto"],["role","status",1,"spinner-grow","mb-2"],[1,"sr-only"],[1,"surveysection2","container","bg-white","shadow-sm","py-5","pl-5"],["class","col-sm-12 mt-3 ",4,"ngFor","ngForOf"],[1,"col-sm-12","mt-3"],[1,"row","pb-2"],[1,"pl-3"],[1,"text-muted","pl-2"],["alt","",1,"pl-4",3,"src"],["class","pb-2",4,"ngFor","ngForOf"],[1,"pb-2"],[1,"faquestions","container","shadow-sm","p-0","my-3"],[1,"question","py-3",3,"click"],[1,"px-3"],["src","../../../assets/icons/add.svg","alt","","class","pr-3",4,"ngIf"],["src","../../../assets/icons/arrow-down.svg","alt","","class","pr-3",4,"ngIf"],["class","answer",4,"ngIf"],["src","../../../assets/icons/add.svg","alt","",1,"pr-3"],["src","../../../assets/icons/arrow-down.svg","alt","",1,"pr-3"],[1,"answer"],[1,"px-3","py-2"]],template:function(y,g){1&y&&(e.j41(0,"header")(1,"div",0)(2,"div",1)(3,"div",2)(4,"a",3),e.nrm(5,"img",4),e.k0s()()()()(),e.j41(6,"section",5)(7,"p",6)(8,"strong"),e.EFF(9," You survey is ready. Deploy it in seconds!"),e.k0s()(),e.j41(10,"div",7)(11,"div",8)(12,"p",9),e.EFF(13,"You've built an awesome survey, but why stop there? With Merren, you can easily export your survey and deploy it through WhatsApp, FB Messenger, Chatbot, or dynamic (HTML or AMP) Email. Build a powerful customer feedback engine that gets you 10x more responses than the browser based surveys "),e.k0s()()()(),e.j41(14,"section",10)(15,"div",11),e.DNE(16,Pt,8,0,"div",12)(17,an,2,1,"section",13),e.j41(18,"section",14)(19,"div",15)(20,"h4")(21,"span",16),e.EFF(22,"Collect "),e.k0s(),e.j41(23,"span",17),e.EFF(24,"responses through"),e.k0s()()(),e.j41(25,"div",18)(26,"div",19)(27,"div",20),e.nrm(28,"img",21),e.j41(29,"p",22),e.EFF(30,"Whatsapp"),e.k0s()(),e.j41(31,"div",20),e.nrm(32,"img",23),e.j41(33,"p",22),e.EFF(34,"Facebook"),e.k0s()(),e.j41(35,"div",20),e.nrm(36,"img",24),e.j41(37,"p",25),e.EFF(38,"Email"),e.k0s()(),e.j41(39,"div",20),e.nrm(40,"img",26),e.j41(41,"p",22),e.EFF(42,"Chatbot"),e.k0s()()()(),e.j41(43,"div",27)(44,"button",28),e.bIt("click",function(){return g.gotoSignup()}),e.EFF(45,"SIGN UP"),e.k0s()()()()(),e.j41(46,"section",29)(47,"div",30)(48,"p",31)(49,"strong"),e.EFF(50,"FREQUENTLY ASKED QUESTIONS "),e.j41(51,"span",32),e.EFF(52,"(FAQ's)"),e.k0s()()()(),e.j41(53,"div",33),e.DNE(54,Qn,8,4,"div",34),e.k0s(),e.j41(55,"p",35),e.EFF(56,"If you have any additional questions or would like more information about our survey builder, please feel free to contact us. We're always happy to help."),e.k0s()(),e.j41(57,"section",36)(58,"div",37)(59,"div",38)(60,"div",39)(61,"a",3),e.nrm(62,"img",4),e.k0s(),e.j41(63,"p",40),e.EFF(64,"Merren is a consumer survey solution that uses popular messaging apps that consumers are already comfortable with, to run fully automated surveys that consumers are already comfortable with , to run fully -automated surveys that get live-time feedback. Because real feedback = high - value solutions that drive your growth."),e.k0s(),e.j41(65,"div",41)(66,"a",42),e.nrm(67,"img",43),e.k0s(),e.j41(68,"a",44),e.nrm(69,"img",45),e.k0s()(),e.j41(70,"p",46),e.EFF(71,"Privacy Policy"),e.k0s(),e.j41(72,"p",47),e.EFF(73,"Terms of Services"),e.k0s()(),e.j41(74,"div",48)(75,"h5")(76,"a",3),e.EFF(77,"Quick links"),e.k0s()(),e.j41(78,"div")(79,"ul",49)(80,"li",50)(81,"a",51),e.EFF(82,"Home"),e.k0s()(),e.j41(83,"li",35)(84,"a",51),e.EFF(85,"Why Merren"),e.k0s()(),e.j41(86,"li",50)(87,"a",51),e.EFF(88,"Connect"),e.k0s()(),e.j41(89,"li",50)(90,"a",51),e.EFF(91,"FAQ's"),e.k0s()()()()(),e.j41(92,"div",52)(93,"h5")(94,"a",3),e.EFF(95,"Contact Us"),e.k0s()(),e.j41(96,"div",53)(97,"label",54),e.EFF(98,"US Office:"),e.k0s(),e.j41(99,"p"),e.EFF(100,"Merren-IO Inc8 The Green Ste A Dover DE 19901"),e.k0s()(),e.j41(101,"div",53)(102,"label",54),e.EFF(103,"Mumbai Office:"),e.k0s(),e.j41(104,"p"),e.EFF(105,"Phoenix Marketcity, Phoenix Paragon Plaza,4B19,Kamani,Kurla West, Kurla, Mumbai - 400050 "),e.k0s()(),e.j41(106,"div",53)(107,"label",54),e.EFF(108,"Pune Office:"),e.k0s(),e.j41(109,"p"),e.EFF(110,"S no. 47,Pune-Satara Rd near bhapkar petrol pump,Aadinath Society, Bibvewadi,Pune-411009"),e.k0s()(),e.j41(111,"div",53)(112,"p")(113,"span"),e.nrm(114,"img",55),e.k0s(),e.EFF(115," +1(878)788 7688 / + 91 98201 60880"),e.k0s()(),e.j41(116,"div",53)(117,"p")(118,"span",56),e.nrm(119,"i",57),e.k0s(),e.EFF(120," [email protected] "),e.k0s()()()()(),e.nrm(121,"hr",58),e.j41(122,"div",59)(123,"div",60)(124,"p",61)(125,"span"),e.nrm(126,"i",62),e.k0s(),e.EFF(127,"Merren2022. Rights Reserved"),e.k0s()()()(),e.j41(128,"div",63)(129,"div",64)(130,"div",65)(131,"div",66)(132,"h5",67),e.EFF(133,"We have sent you the email with survey access link."),e.k0s(),e.j41(134,"div")(135,"button",68),e.EFF(136,"Close"),e.k0s()()()()()()),2&y&&(e.R7$(16),e.Y8G("ngIf",g.isLoading),e.R7$(),e.Y8G("ngIf",!g.isLoading),e.R7$(37),e.Y8G("ngForOf",g.questions))},dependencies:[Ce.Sq,Ce.bT],styles:[".title[_ngcontent-%COMP%]{font-size:28px;justify-content:center}.surveysection[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;border-radius:10px;width:80%}.surveysection2[_ngcontent-%COMP%]{border-radius:10px;display:flex;flex-direction:column;overflow:hidden;width:80%}.surveyformsection[_ngcontent-%COMP%]{background-color:#f795220a;padding:60px}.section1[_ngcontent-%COMP%]{width:80%}.blur-bottom-half[_ngcontent-%COMP%]{filter:blur(5px)}.closebtn[_ngcontent-%COMP%]{width:85px;height:41px;border-radius:5px}.signupbtn[_ngcontent-%COMP%]{width:150px;height:41px;border-radius:0 5px 5px 0}.inputemail[_ngcontent-%COMP%]{height:41px;border-radius:5px 0 0 5px}header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;background-color:#fff;z-index:1}.content[_ngcontent-%COMP%]{margin-top:88px}.heading1[_ngcontent-%COMP%]{font-size:16px;width:70%}.textcolor[_ngcontent-%COMP%]{color:#f79522}.question[_ngcontent-%COMP%]{display:flex;justify-content:space-between;background-color:#f9f9f9;font-size:16px}.answer[_ngcontent-%COMP%]{top:100%;left:0;width:100%}.fcontent[_ngcontent-%COMP%]{font-size:16px;font-weight:300px}.footer2[_ngcontent-%COMP%]{padding-right:25px}.quicklink[_ngcontent-%COMP%]{padding-left:25px;font-size:20px}@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-min-device-pixel-ratio: 2){.heading1[_ngcontent-%COMP%]{width:100%;text-align:center!important}.section1[_ngcontent-%COMP%]{width:100%;padding-left:0;padding-right:0}.surveysection[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;border-radius:10px;width:100%}.surveyformsection[_ngcontent-%COMP%]{background-color:#f795220a;padding:40px 0}.footer1[_ngcontent-%COMP%]{text-align:center}.footer2[_ngcontent-%COMP%]{padding-right:0}.copyright[_ngcontent-%COMP%]{text-align:center}}.contents[_ngcontent-%COMP%]{background-color:#f9f9f9}.contents[_ngcontent-%COMP%]{height:140px;width:100px;border-radius:5px}"]})}return b})();var Wn=R(152);const Oi=["paymentModal"];function hn(b,x){1&b&&(e.j41(0,"section",7)(1,"div",8)(2,"div",9)(3,"div",10)(4,"span",11),e.EFF(5,"Loading..."),e.k0s()(),e.j41(6,"strong"),e.EFF(7,"Loading..."),e.k0s()()()())}function Mi(b,x){if(1&b&&(e.j41(0,"span",37)(1,"span",38),e.EFF(2),e.nI1(3,"currency"),e.k0s(),e.EFF(4),e.k0s()),2&b){const s=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,null==s?null:s.monthlyPrice)),e.R7$(2),e.SpI("/",null==s?null:s.type," ")}}function Fn(b,x){if(1&b&&(e.j41(0,"span",37)(1,"span",38),e.EFF(2),e.nI1(3,"currency"),e.k0s(),e.EFF(4),e.k0s()),2&b){const s=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,null==s?null:s.yearlyPrice)),e.R7$(2),e.SpI("/",null==s?null:s.type," ")}}function xn(b,x){if(1&b&&(e.j41(0,"ul",39)(1,"li",40)(2,"span",41),e.nrm(3,"i",42),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()()),2&b){const s=x.$implicit;e.R7$(5),e.JRh(null==s?null:s.feature)}}function hi(b,x){if(1&b&&(e.j41(0,"button",46),e.EFF(1,"UPGRADE"),e.k0s()),2&b){const s=e.XpG(2).$implicit;e.Mz_("routerLink","/plans/pricing-plan/billing-details/",null==s?null:s._id,"")}}function Xn(b,x){1&b&&(e.j41(0,"a",47),e.EFF(1,"CONTACT US"),e.k0s())}function ri(b,x){if(1&b&&(e.j41(0,"div",43),e.DNE(1,hi,2,2,"button",44)(2,Xn,2,0,"a",45),e.k0s()),2&b){const s=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",0==(null==s?null:s.isEnterprisePlan)),e.R7$(),e.Y8G("ngIf",1==(null==s?null:s.isEnterprisePlan))}}function In(b,x){1&b&&(e.j41(0,"a",47),e.EFF(1,"CONTACT US"),e.k0s())}function kr(b,x){if(1&b&&(e.j41(0,"div",43)(1,"button",48),e.EFF(2,"Active"),e.k0s(),e.DNE(3,In,2,0,"a",45),e.k0s()),2&b){const s=e.XpG().$implicit;e.R7$(3),e.Y8G("ngIf",1==(null==s?null:s.isEnterprisePlan))}}function Xi(b,x){if(1&b&&(e.j41(0,"div",31)(1,"div",32)(2,"h2"),e.EFF(3),e.k0s()(),e.j41(4,"div",33),e.DNE(
15,Mi,5,4,"span",34)(6,Fn,5,4,"span",34),e.nrm(7,"br")(8,"br"),e.DNE(9,xn,6,1,"ul",35),e.k0s(),e.DNE(10,ri,3,2,"div",36)(11,kr,4,1,"div",36),e.k0s()),2&b){const s=x.$implicit,y=e.XpG(2);e.Y8G("ngClass",y.activatedPlan.planId&&(null==s?null:s._id)==y.activatedPlan.planId?"active-card":""),e.R7$(3),e.JRh(s.name),e.R7$(),e.Y8G("ngClass",1==(null==s?null:s.isEnterprisePlan)?"pt-4":""),e.R7$(),e.Y8G("ngIf",0==(null==s?null:s.isEnterprisePlan)&&y.isMonthlyPlan),e.R7$(),e.Y8G("ngIf",0==(null==s?null:s.isEnterprisePlan)&&!y.isMonthlyPlan),e.R7$(3),e.Y8G("ngForOf",null==s?null:s.features),e.R7$(),e.Y8G("ngIf",!y.activatedPlan.planId||(null==s?null:s._id)!=y.activatedPlan.planId),e.R7$(),e.Y8G("ngIf",y.activatedPlan.planId&&(null==s?null:s._id)==y.activatedPlan.planId)}}function Se(b,x){1&b&&(e.j41(0,"div",49)(1,"div",50)(2,"div",51)(3,"span",11),e.EFF(4,"Loading..."),e.k0s()()(),e.j41(5,"div",52)(6,"p",53),e.EFF(7,"Loading ..."),e.k0s()()())}function it(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",54)(1,"div",55)(2,"div",56),e.nrm(3,"img",57),e.k0s(),e.j41(4,"div",58)(5,"div",52)(6,"p",59),e.EFF(7),e.k0s()()(),e.j41(8,"div",49)(9,"div",52)(10,"button",60),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.goBack())}),e.EFF(11," Go to dashboard "),e.k0s()()()()()}if(2&b){const s=e.XpG(2);e.R7$(7),e.SpI("",s.activatedPlanName," Plan activated")}}function te(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",54)(1,"div",55)(2,"div",56),e.nrm(3,"img",61),e.k0s(),e.j41(4,"div",62)(5,"div",63)(6,"p",64),e.EFF(7,"Payment unsuccessful !"),e.k0s(),e.j41(8,"h5",65),e.EFF(9),e.k0s()()(),e.j41(10,"div",49)(11,"div",52)(12,"button",60),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.paymentModalRef.hide())}),e.EFF(13," Close "),e.k0s()()()()()}if(2&b){const s=e.XpG(2);e.R7$(9),e.JRh(s.message)}}function ce(b,x){if(1&b){const s=e.RV6();e.j41(0,"section",12)(1,"div",13)(2,"div",14)(3,"div",15)(4,"h2",16),e.EFF(5,"Choose the plan that works for you"),e.k0s()()()(),e.j41(6,"div",17)(7,"span",18),e.EFF(8,"Monthly"),e.k0s(),e.j41(9,"label",19)(10,"input",20),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.changesPlanType())}),e.k0s(),e.nrm(11,"span",21),e.k0s(),e.j41(12,"span",18),e.EFF(13,"Annually"),e.k0s()(),e.nrm(14,"br"),e.j41(15,"div",22),e.DNE(16,Xi,12,8,"div",23),e.j41(17,"button",24),e.EFF(18," Launch demo modal "),e.k0s(),e.j41(19,"div",25)(20,"div",26)(21,"div",27)(22,"div",28),e.DNE(23,Se,8,0,"div",29)(24,it,12,1,"div",30)(25,te,14,1,"div",30),e.k0s()()()()()()}if(2&b){const s=e.XpG();e.R7$(7),e.Y8G("ngClass",1==s.isMonthlyPlan?"switcher-text2":"switcher-text1"),e.R7$(3),e.Y8G("checked",!s.isMonthlyPlan),e.R7$(2),e.Y8G("ngClass",0==s.isMonthlyPlan?"switcher-text2":"switcher-text1"),e.R7$(4),e.Y8G("ngForOf",s.plansArr),e.R7$(7),e.Y8G("ngIf",!0===s.isLoading),e.R7$(),e.Y8G("ngIf",!0===s.isPaymentSuccess&&0==s.isLoading),e.R7$(),e.Y8G("ngIf",!1===s.isPaymentSuccess&&0==s.isLoading)}}let Z=(()=>
1{class b{constructor(s,y,g){this.dashboardService=s,this.tostr=y,this.router=g,this.plansArr=[],this.isLoading=!1,this.isMonthlyPlan=!1,this.paymentHandler=null,this.isPaymentSuccess=!1,this.selectedPlans={},this.activatedPlan={},this.activatedPlanName="",this.stripePublicKey="",this.message="",this.isPageLoading=!0}ngOnInit(){this.changesPlanType(),this.getAllPlans(),this.getCurrentPlan()}getAllPlans(){this.dashboardService.getAllPlans().subscribe(s=>{this.plansArr=s,console.log("plansArr",this.plansArr),this.isPageLoading=!1},s=>{console.log(s)})}subscripePlan(s){console.log("SelectedData = ",s),s.planType=1==this.isMonthlyPlan?"Monthly":"Yearly",this.selectedPlans=s,this.makePayment(3e3)}makePayment(s){console.log("Enetered makePayment"),this.isLoading=!0;const y=window.StripeCheckout.configure({key:this.stripePublicKey,locale:"auto",token:function(I){console.log(I),g(I)}}),g=I=>{this.paymentModal.nativeElement.click(),console.log("===>>>",I),this.dashboardService.makePayment(I,this.selectedPlans).subscribe(Le=>{Le&&Le.status&&200!=Le.status?(this.isPaymentSuccess=!1,this.isLoading=!1,this.message=Le.message):(this.isLoading=!1,this.isPaymentSuccess=!0,this.activatedPlanName=this.selectedPlans.name,this.dashboardService.clearTrialDaysCache(),this.ngOnInit())},Le=>{this.isLoading=!1,this.isPaymentSuccess=!1,this.message=Le.message})};y.open({name:"Merren",description:`This is a ${1==this.isMonthlyPlan?"Monthly":"Yearly"} Plan`,amount:100*(1==this.isMonthlyPlan?this.selectedPlans.monthlyPrice:12*this.selectedPlans.yearlyPrice)})}invokeStripe(){if(!window.document.getElementById("stripe-script")){const s=window.document.createElement("script");s.id="stripe-script",s.type="text/javascript",s.src="https://checkout.stripe.com/checkout.js",s.onload=()=>{this.paymentHandler=window.StripeCheckout.configure({key:this.stripePublicKey,locale:"auto",token:function(y){console.log(y)}})},window.document.body.appendChild(s)}}goBack(){this.router.navigateByUrl("dashboard")}getCurrentPlan(){const s=JSON.parse(localStorage.getItem("currentUser"));this.dashboardService.getActivePlan(s.userId).subscribe(y=>{y&&null!=y&&(this.activatedPlan=y)})}getKey(){const s=JSON.parse(localStorage.getItem("currentUser"));this.dashboardService.getKey(s.userId).subscribe(y=>{y&&null!=y&&(this.stripePublicKey=y.token,this.invokeStripe())},y=>{console.error(y)})}changesPlanType(){this.isMonthlyPlan=!this.isMonthlyPlan,localStorage.setItem("plan",this.isMonthlyPlan?"Monthly":"Yearly")}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(Wn.I),e.rXU(H.tw),e.rXU(ee.Ix))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-pricing-plans"]],viewQuery:function(y,g){if(1&y&&e.GBs(Oi,7),2&y){let I;e.mGM(I=e.lsd())&&(g.paymentModal=I.first)}},decls:9,vars:2,consts:[[1,"d-flex","mb-2","pb-2","pt-3","pl-3","justify-content-between","align-items-center","text-lg-left","text-sm-left","text-center"],[1,"mb-3"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/logo-print-hd 1.svg","alt",""],[1,"col-lg-8","col-sm-8","col-12","text-lg-right","text-sm-right","text-center","d-flex","justify-content-end","align-items-center"],["routerLink","/dashboard",1,"btn","btn-outline-primary","mr-2"],["style","height: 100vh;display: flex;",4,"ngIf"],["class","start p-0",4,"ngIf"],[2,"height","100vh","display","flex"],[1,"m-auto"],["id","pageLoader",1,"d-flex","flex-column","justify-content-center","align-items-center"],["role","status",1,"spinner-grow","mb-2"],[1,"sr-only"],[1,"start","p-0"],[1,"container"],[1,"row","row-cols-1"],[1,"col","text-center","fs-2.26"],[1,"heading"],[1,"d-flex","justify-content-center"],[3,"ngClass"],[1,"switch"],["type","checkbox",3,"change","checked"],[1,"slider","round"],[1,"col-sm-12","row","d-flex","justify-content-around","pb-4","px-2","m-0"],["class","card m-2 border-0","style","width:21rem",3,"ngClass",4,"ngFor","ngForOf"],["type","button","paymentModal","","data-bs-toggle","modal","data-bs-target","#exampleModal",1,"btn","btn-primary",2,"display","none"],["id","exampleModal","tabindex","-1","aria-labelledby","exampleModalLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content","formWrapper","noBg","bg-white"],[1,"modal-body"],["class","row",4,"ngIf"],["class","row p-0 m-2",4,"ngIf"],[1,"card","m-2","border-0",2,"width","21rem",3,"ngClass"],[1,"header","text-left"],[1,"card-body","p-1","text-left",3,"ngClass"],["class","price-tag",4,"ngIf"],["class","list-group list-group-flush",4,"ngFor","ngForOf"],["class","card-footer p-0 text-center b-0",4,"ngIf"],[1,"price-tag"],[1,"original-price"],[1,"list-group","list-group-flush"],[1,"list-group-item"],[1,"li-icon"],[1,"fas","fa-check"],[1,"card-footer","p-0","text-center","b-0"],["type","button","class","btn btn-primary text-uppercase",3,"routerLink",4,"ngIf"],["type","button","class","btn btn-primary text-uppercase","target","_blank","href","https://merren.io/connect/",4,"ngIf"],["type","button",1,"btn","btn-primary","text-uppercase",3,"routerLink"],["type","button","target","_blank","href","https://merren.io/connect/",1,"btn","btn-primary","text-uppercase"],["type","button",1,"btn","btn-secondary","text-uppercase"],[1,"row"],[1,"col-12","d-flex","justify-content-center","align-items-center","my-3"],["role","status",1,"spinner-grow","mb-2","p-2"],[1,"col-12","d-flex","justify-content-center","align-items-center"],[1,"h4","font-weight-bold","m-auto"],[1,"row","p-0","m-2"],[1,"col-12"],[1,"d-flex","justify-content-center","align-items-center"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/animation_500.svg","alt","","width","150","height","150"],[1,"row","my-2"],[1,"mb-2","h4","font-weight-bold","response-text"],["type","button",1,"btn","btn-secondary",3,"click"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/cancel.svg","alt","","width","120","height","120"],[1,"col-sm-12","p-0","my-2"],[1,"col-sm-12","p-0"],[1,"mb-3","h4","font-weight-bold","text-center"],[1,"text-danger","text-center","my-3"]],template:function(y,g){1&y&&(e.j41(0,"header",0)(1,"div",1)(2,"h1"),e.nrm(3,"img",2),e.k0s()(),e.j41(4,"div",3)(5,"button",4),e.EFF(6,"MY DASHBOARD"),e.k0s()()(),e.DNE(7,hn,8,0,"section",5)(8,ce,26,7,"section",6)
1),2&y&&(e.R7$(7),e.Y8G("ngIf",g.isPageLoading),e.R7$(),e.Y8G("ngIf",!g.isPageLoading))},dependencies:[ee.Wk,Ce.YU,Ce.Sq,Ce.bT,Ce.oe],styles:[".card[_ngcontent-%COMP%]{padding:30px 20px;border-radius:4px;background-color:#fff;transition:box-shadow .5s;box-shadow:0 0 20px #0000001f;margin:10px}.active-card[_ngcontent-%COMP%]{border:2px solid #f79522!important;background-color:#fff}.card[_ngcontent-%COMP%]:hover{box-shadow:1px 6px 7px 8px #21212133}.heading[_ngcontent-%COMP%]{font-weight:600;font-family:sans-serif;padding:10px;font-size:36px}.switcher-text1[_ngcontent-%COMP%]{padding:0 10px;font-family:lato;font-weight:600;font-size:16px;transition:all .2s linear;color:#adadad}.switcher-text2[_ngcontent-%COMP%]{padding:0 10px;font-family:lato;font-weight:600;font-size:16px;transition:all .2s linear;color:#f79522}.header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{padding:0 0 15px;margin:0 0 15px;font-size:20px;font-family:Rubik,sans-serif;color:#333;font-weight:700;line-height:30px}.price-currency[_ngcontent-%COMP%]{font-size:24px;font-weight:700;font-family:lato,sans-serif;padding:0 0 10px}span.original-price[_ngcontent-%COMP%]{font-weight:700;font-family:lato,sans-serif;color:#212121;font-size:36px}.price-period[_ngcontent-%COMP%]{text-align:right}.price-tag[_ngcontent-%COMP%]{display:inline;color:#999;font-weight:200;font-family:lato,sans-serif}b[_ngcontent-%COMP%]{color:#212121;font-size:13px;font-family:lato,sans-serif;text-align:left;font-weight:600}span.price-period[_ngcontent-%COMP%]{color:#9999;font-size:14px;font-family:lato,sans-serif;text-align:right}.list-group-item[_ngcontent-%COMP%]{min-height:30px;padding:10px 0;color:#212121;font-family:sans-serif;font-size:14px;border:0;display:flex}span.li-icon[_ngcontent-%COMP%]{margin:0 6px 0 0}.btn[_ngcontent-%COMP%]{padding:12px 25px;margin:0 0 10px;text-align:center;font-size:16px;font-family:rubik,sans-serif;font-weight:600}.footer[_ngcontent-%COMP%]{text-align:center}.card-footer[_ngcontent-%COMP%]{background-color:#fff;border-radius:0;border:0px}.list-group[_ngcontent-%COMP%]{border:0px}.feature[_ngcontent-%COMP%]{font-family:sans-serif}"]})}return b})();var ie=R(467);const Ae=["cardInfo"],Y=["loadingModalBtn"],ne=["closeLoadingModal"],fe=["paymentStatusModalBtn"],Ke=["saveAndNext"],ve=b=>({"is-invalid":b});function ye(b,x){1&b&&(e.j41(0,"section",104)(1,"div",105)(2,"div",106)(3,"div",107)(4,"span",95),e.EFF(5,"Loading..."),e.k0s()(),e.j41(6,"strong"),e.EFF(7,"Loading..."),e.k0s()()()())}function be(b,x){1&b&&(e.j41(0,"div",108)(1,"div"),e.EFF(2,"Full name is required & should be valid."),e.k0s()())}function Ee(b,x){1&b&&(e.j41(0,"div",108)(1,"div"),e.EFF(2,"Last name is required & should be valid."),e.k0s()())}function pt(b,x){1&b&&(e.j41(0,"div",108)(1,"div"),e.EFF(2,"Country name is required & should be valid."),e.k0s()())}function _t(b,x){1&b&&(e.j41(0,"div",108)(1,"div"),e.EFF(2,"Email is required & should be valid. "),e.k0s()())}function tn(b,x){1&b&&e.nrm(0,"span",109)}function ln(b,x){1&b&&(e.j41(0,"span",110),e.EFF(1,"Loading..."),e.k0s())}function An(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",111)(1,"div",112)(2,"div",113),e.nrm(3,"img",114),e.k0s(),e.j41(4,"div",115)(5,"div",116)(6,"p",117),e.EFF(7),e.k0s()()(),e.j41(8,"div",53)(9,"div",116)(10,"button",118),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.goto())}),e.EFF(11," Go to dashboard "),e.k0s()()()()()}if(2&b){const s=e.XpG();e.R7$(7),e.SpI("",null==s.selectedPlan?null:s.selectedPlan.name," Plan activated")}}function Ri(b,x){if(1&b&&(e.j41(0,"div",111)(1,"div",112)(2,"div",113),e.nrm(3,"img",119),e.k0s(),e.j41(4,"div",120)(5,"div",121)(6,"p",122),e.EFF(7,"Payment unsuccessful !"),e.k0s(),e.j41(8,"h5",123),e.EFF(9),e.k0s()()(),e.j41(10,"div",53)(11,"div",116)(12,"button",124),e.EFF(13," Close "),e.k0s()()()()()),2&b){const s=e.XpG();e.R7$(9),e.JRh(s.message)}}let Ti=(()=>{class b{constructor(s,y,g,I,Le,et,wt){this.formBuilder=s,this.router=y,this.commonService=g,this.activatedRoute=I,this.dashboardService=Le,this.cd=et,this.toastrService=wt,this.submitted=!1,this.cardsubmitted=!1,this.planId=this.activatedRoute.snapshot.params.id,this.billingDetils={},this.isPageLoading=!0,this.isPaymentSuccess=!1,this.isLoading=!1,this.message="",this.selectedPlan={},this.cardHandler=this.onChange.bind(this)}ngOnInit(){const s=JSON.parse(localStorage.getItem("currentUser"));this.billingDeatilsForm=this.formBuilder.group({firstName:["",w.k0.required],lastName:["",w.k0.required],country:["",w.k0.required],email:[s.email,[w.k0.required,w.k0.email,T.h.validEmail]]}
1),this.cardDetailsForm=this.formBuilder.group({cardName:["",w.k0.required],cardNumber:["",w.k0.required],cvv:["",[w.k0.required,w.k0.minLength(3)]],date:["",w.k0.required]}),this.getPlanDetails()}get f(){return this.billingDeatilsForm.controls}get c(){return this.cardDetailsForm.controls}onSubmit(){if(this.submitted=!0,this.isLoading=!0,this.billingDeatilsForm.invalid)return this.toastrService.error("billing Details Not Submitted"),void(this.isLoading=!1);this.saveAndNextBtn.nativeElement.click(),this.addCardDetails(),console.log(JSON.stringify(this.billingDeatilsForm.value,null,2))}getPlanDetails(){this.dashboardService.getSelectedPlanDetails(this.planId).subscribe(s=>{s&&null!=s?(this.selectedPlan=s,this.selectedPlan.planType=localStorage.getItem("plan"),this.getCardDetails()):(this.toastrService.error("Plan details not found..."),this.router.navigateByUrl("/plans/pricing-plans"))},s=>{this.isPageLoading=!1,this.router.navigateByUrl("/plans/pricing-plans")})}getCardDetails(){const s=JSON.parse(localStorage.getItem("currentUser"));this.dashboardService.getCardDetails(s.userId).subscribe(y=>{y&&null!=y?(console.log(y),this.billingDetils=y,this.billingDeatilsForm.patchValue(y.billingDetails),y.cardDetails&&this.cardDetailsForm.patchValue(y.cardDetails)):(this.isPageLoading=!1,console.log(y)),this.getKey()},y=>{this.isPageLoading=!1,console.error(y)})}addCardDetails(){const s=JSON.parse(localStorage.getItem("currentUser"));let y={email:s.email,userId:s.userId,billingDetails:this.billingDeatilsForm.value,cardDetails:{},isActive:!0};this.billingDetils._id&&(y._id=this.billingDetils._id),this.dashboardService.addBillingDetails(y).subscribe(g=>{g&&null!=g&&null!=g?this.toastrService.success("Data Saved Succesfully."):this.toastrService.error("OH! Not saved,please try again."),this.isLoading=!1},g=>{console.error(g),this.toastrService.error("OH! Not saved,please try again."),this.isLoading=!1})}onSubmitCradDetails(){if(this.cardsubmitted=!0,this.cardDetailsForm.invalid)return;const s=JSON.parse(localStorage.getItem("currentUser"));this.dashboardService.addBillingDetails({_id:this.billingDetils._id,email:s.email,userId:s.userId,billingDetails:this.billingDeatilsForm.value,cardDetails:this.cardDetailsForm.value,isActive:!0}).subscribe(g=>{},g=>{console.error(g)})}getKey(){const s=JSON.parse(localStorage.getItem("currentUser"));this.dashboardService.getKey(s.userId).subscribe(y=>{this.isPageLoading=!1,y&&null!=y&&(loadStripe(y.token),setTimeout(()=>{this.initiateCardElement()},500))},y=>{console.error(y),this.isPageLoading=!1})}initiateCardElement(){console.log(this.billingDeatilsForm.controls.email.value),this.card=elements.create("card",{style:{base:{border:"2px solid red"},invalid:{color:"#FA755A",iconColor:"#FA755A"}},fields:{billingDetails:{name:this.billingDeatilsForm.controls.email.value,email:this.billingDeatilsForm.controls.email.value}}}),this.card.mount(this.cardInfo.nativeElement),this.card.addEventListener("change",this.cardHandler)}onChange({error:s}){this.cardError=s?s.message:null,this.cd.detectChanges()}createStripeToken(){var s=this;return(0,ie.A)(function*(){console.log("====>>>",s.card),s.loadingModalBtn.nativeElement.click();const{token:y,error:g}=yield stripe.createToken(s.card);y?s.onSuccess(y):s.onError(g)})()}onSuccess(s){this.dashboardService.makePayment(s,this.selectedPlan).subscribe(y=>{y&&y.status&&200!=y.status?(this.isPaymentSuccess=!1,this.message=y.message):(this.isPaymentSuccess=!0,this.dashboardService.clearTrialDaysCache()),this.closeLoadingModal.nativeElement.click(),setTimeout(()=>{this.paymentStatusModalBtn.nativeElement.click()},1e3)},y=>{this.isPaymentSuccess=!1,this.message=y.message,this.closeLoadingModal.nativeElement.click(),setTimeout(()=>{this.paymentStatusModalBtn.nativeElement.click()},500)})}onError(s){this.isPageLoading=!1,s.message&&(this.message=s.message),this.closeLoadingModal.nativeElement.click(),setTimeout(()=>{this.paymentStatusModalBtn.nativeElement.click()},500)}ngOnDestroy(){this.card&&(this.card.removeEventListener("change",this.cardHandler),this.card.destroy())}goto(){this.router.navigateByUrl("/dashboard")}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(w.ok),e.rXU(ee.Ix),e.rXU(T.h),e.rXU(ee.nX),e.rXU(Wn.I),e.rXU(e.gRc),e.rXU(H.tw))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-pricingbillingdetails"]],viewQuery:function(y,g){if(1&y&&(e.GBs(Ae,5),e.GBs(Y,5),e.GBs(ne,5),e.GBs(fe,5),e.GBs(Ke,5)),2&y){let I;e.mGM(I=e.lsd())&&(g.cardInfo=I.first),e.mGM(I=e.lsd())&&(g.loadingModalBtn=I.first),e.mGM(I=e.lsd())&&(g.closeLoadingModal=I.first),e.mGM(I=e.lsd())&&(g.paymentStatusModalBtn=I.first),e.mGM(I=e.lsd())&&(g.saveAndNextBtn=I.first)}},decls:230,vars:29,consts:[["saveAndNext",""],["cardInfo",""],["loadingModalBtn",""],["closeLoadingModal",""],["paymentStatusModalBtn",""],[1,"row","mb-2","pb-2","pt-3","pl-3","justify-content-between","align-items-center","text-lg-left","text-sm-left","text-center"],[1,"mb-3"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/logo-print-hd 1.svg","alt",""],[1,"col-lg-8","col-sm-8","col-12","text-lg-right","text-sm-right","text-center","d-flex","justify-content-end","align-items-center"],["className","btn-outline-primary mr-2","btnLabel","BACK TO PRICING PLAN","routerLink","/plans/pricing-plans"],["style","height: 100vh;display: flex;",4,"ngIf"],[1,"py-4",3,"hidden"],[1,"col-sm-12","px-0","d-flex"],[1,"col-sm-8","p-0","m-auto"],[1,"col-sm-12","card","p-0","shadow"],[1,"card-body"],[1,"col-sm-12","border-bottom","py-2","px-0"],["data-bs-toggle","collapse","href","#collapseExample","aria-expanded","true","aria-controls","collapseExample",1,"col-sm-12","px-0"],[1,"col-sm-12","row","p-3","m-0","bg-light"],[1,"col-md-6","px-0"],[1,"col-md-6","text-right"],[1,""],["id","collapseExample",1,"collapse","col-sm-12","px-0","multi-collapse"],[1,"form-group","py-3",3,"formGroup"],[1,"form-group"],["for","first-name"],[1,"text-danger"],["id","fisrt-name","type","text","formControlName","firstName","placeHolder","First name",1,"form-control",3,"keypress","ngClass"],["class","invali
1d-feedback",4,"ngIf"],["type","text","formControlName","lastName","placeholder","Last name",1,"form-control",3,"keypress","ngClass"],["for","country"],["id","country","type","text","formControlName","country","placeholder","country",1,"form-control",3,"keypress","ngClass"],["for","billing-email"],["id","bellingEmail","type","text","placeholder","Billing email","formControlName","email",1,"form-control",3,"ngClass"],[1,"text-center","pt-3","pb-3"],["type","submit","role","button",1,"btn","btn-primary","px-5","py-2",3,"click"],["class","spinner-border spinner-border-sm ml-2","role","status","aria-hidden","true",4,"ngIf"],["class","sr-only ml-2",4,"ngIf"],["type","submit","id","saveAndNext","data-bs-target",".multi-collapse","data-bs-toggle","collapse","href","#collapseExample1","role","button","aria-controls","collapseExample1",1,"btn","btn-primary","px-5","py-2","d-none"],["data-bs-target",".multi-collapse","data-bs-toggle","collapse","href","#collapseExample1","role","button","aria-expanded","false","aria-controls","collapseExample1",1,"col-sm-12","px-0"],["id","collapseExample1",1,"collapse","multi-collapse"],[1,"col-sm-12","px-0","row","m-0","my-3"],[1,"col-sm-6","text-primary"],[1,"col-sm-6"],[1,"col-sm-12","px-0","row","m-0","mb-3"],[1,"col-sm-12"],["for","card-info",1,""],["id","form-field"],[1,"card","py-3","px-3","mb-3"],["id","card-info"],[1,"col-sm-12","text-center","px-0"],["id","submit-button","type","submit",1,"btn","btn-primary","my-3",3,"click"],[1,"px-5","mx-5","d-none"],[1,"row"],[1,"col-sm-6","br-5"],[1,"card",2,"width","40rem"],[1,"card-body","text-center"],[1,"row","text-center"],[1,"col-6","p-2"],[1,"logo","row","ml-3","rounded-pill","text-center"],["src","https://c8.alamy.com/zooms/9/eeac9b3b800541419b9a876b7fab8039/r1t018.jpg","height","40px","width","40px",1,"rounded-circle"],[1,"card-title","mt-2","pl-2","text-center"],[1,"first","p-2","mt-3","text-left"],[1,"plan","p-1","ml-2","mt-2","row"],[1,"year","p-1","ml-2","row"],[1,"date","p-1","ml-2","row"],[1,"left","col-6","pl-4","mt-4","text-left"],[1,"card2","mb-1"],[1,"pb-2","font-monospace"],[1,"mb-1"],[1,"font-monospace"],[1,"card-title2","text-left","mt-4"],[1,"year","p-1","ml-3","row"],[1,"pl-3"],[1,"p-1","ml-2","row"],[1,"pl-5","ml-5"],[1,"left","col-6","pl-4","mt-5","pt=","text-center"],[1,"card"],[1,"card-body3","p-2","text-center"],[1,"col-6","p-3"],[1,"logo","row","pt-2","ml-3","mr-5","rounded-pill","text-center"],[1,"first3","ml-3","mt-3","text-left"],[1,"plan","p-1","mt-3","row"],[1,"px-3","mt-3"],[1,"px-3","mt-3","ml-1"],[1,"year","p-1","row"],[1,"px-3","mb-3"],[1,"card-title2","text-left","mt-4","pl-4"],["type","button","id","loadingModalBtn","data-bs-toggle","modal","data-bs-target","#loadingModal",1,"btn","btn-primary","d-none"],["id","loadingModal","data-bs-backdrop","static","data-bs-keyboard","false","tabindex","-1","aria-labelledby","staticBackdropLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal
1-dialog-centered"],[1,"modal-content",2,"background","transparent","border","0px"],[1,"modal-body",2,"background","transparent","border","0px"],[1,"col-sm-12","d-flex"],["role","status",1,"spinner-grow","text-white","m-auto"],[1,"sr-only"],[1,"text-center","text-white","my-2"],["type","button","id","closeLoadingModal","data-bs-dismiss","modal","aria-label","Close",1,"close","d-none"],["aria-hidden","true"],["type","button","id","paymentStatusModalBtn","data-bs-toggle","modal","data-bs-target","#paymentStatusModel",1,"btn","btn-primary","d-none"],["id","paymentStatusModel","data-bs-backdrop","static","data-bs-keyboard","false","tabindex","-1","aria-labelledby","staticBackdropLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-content"],[1,"modal-body"],["class","row p-0 m-2",4,"ngIf"],[2,"height","100vh","display","flex"],[1,"m-auto"],["id","pageLoader",1,"d-flex","flex-column","justify-content-center","align-items-center"],["role","status",1,"spinner-grow","mb-2"],[1,"invalid-feedback"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","ml-2"],[1,"sr-only","ml-2"],[1,"row","p-0","m-2"],[1,"col-12"],[1,"d-flex","justify-content-center","align-items-center"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/animation_500.svg","alt","","width","150","height","150"],[1,"row","my-2"],[1,"col-12","d-flex","justify-content-center","align-items-center"],[1,"mb-2","h4","font-weight-bold","response-text"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn","btn-secondary",3,"click"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/cancel.svg","alt","","width","120","height","120"],[1,"col-sm-12","p-0","my-2"],[1,"col-sm-12","p-0"],[1,"mb-3","h4","font-weight-bold","text-center"],[1,"text-danger","text-center","my-3"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn","btn-secondary"]],template:function(y,g){if(1&y){const I=e.RV6();e.j41(0,"header",5)(1,"div",6)(2,"h1"),e.nrm(3,"img",7),e.k0s()(),e.j41(4,"div",8),e.nrm(5,"app-button",9),e.k0s()(),e.DNE(6,ye,8,0,"section",10),e.j41(7,"section",11)(8,"div",12)(9,"div",13)(10,"div",14)(11,"div",15)(12,"div",16)(13,"div",17)(14,"div",18)(15,"div",19)(16,"h5")(17,"strong"),e.EFF(18,"Billing Details"),e.k0s()()(),e.j41(19,"div",20)(20,"a",21)(21,"strong"),e.EFF(22,"Edit"),e.k0s()()()()(),e.j41(23,"div",22)(24,"div",23)(25,"div",24)(26,"label",25)(27,"strong"),e.EFF(28,"First Name"),e.k0s(),e.j41(29,"span",26),e.EFF(30,"*"),e.k0s()(),e.j41(31,"input",27),e.bIt("keypress",function(et){return e.eBV(I),e.Njj(g.commonService.isText(et))}),e.k0s(),e.DNE(32,be,3,0,"div",28),e.k0s(),e.j41(33,"div",24)(34,"label")(35,"strong"),e.EFF(36,"Last Name"),e.k0s(),e.j41(37,"span",26),e.EFF(38,"*"),e.k0s()(),e.j41(39,"input",29),e.bIt("keypress",function(et){return e.eBV(I),e.Njj(g.commonService.isText(et))}),e.k0s(),e.DNE(40,Ee,3,0,"div",28),e.k0s(),e.j41(41,"div",24)(42,"label",30)(43,"strong"),e.EFF(44,"Country"),e.k0s(),e.j41(45,"span",26),e.EFF(46,"*"),e.k0s()(),e.j41(47,"input",31),e.bIt("keypress",function(et){return e.eBV(I),e.Njj(g.commonService.isText(et))}),e.k0s(),e.DNE(48,pt,3,0,"div",28),e.k0s(),e.j41(49,"div",24)(50,"label",32)(51,"strong"),e.EFF(52,"Billing Email"),e.k0s(),e.j41(53,"span",26),e.EFF(54,"*"),e.k0s()(),e.nrm(55,"input",33),e.DNE(56,_t,3,0,"div",28),e.k0s(),e.j41(57,"div",34)(58,"button",35),e.bIt("click",function(){return e.eBV(I),e.Njj(g.onSubmit())}),e.EFF(59," Save & Next "),e.DNE(60,tn,1,0,"span",36)(61,ln,2,0,"span",37),e.k0s(),e.j41(62,"button",38,0),e.EFF(64," Save & Next"),e.k0s()()()()(),e.j41(65,"div",16)(66,"div",39)(67,"div",18)(68,"div",19)(69,"h5")(70,"strong"),e.EFF(71,"Payment Details"),e.k0s()()(),e.j41(72,"div",20)(73,"strong"),e.EFF(74,"Add"),e.k0s()()()(),e.j41(75,"div",40)(76,"div",41)(77,"div",42)(78,"strong"),e.EFF(79,"Plan Name :"),e.k0s()(),e.j41(80,"div",43),e.EFF(81),e.k0s()(),e.j41(82,"div",41)(83,"div",42)(84,"strong"),e.EFF(85,"Plan Type :"),e.k0s()(),e.j41(86,"div",43),e.EFF(87),e.k0s()(),e.j41(88,"div",44)(89,"div",42)(90,"strong"),e.EFF(91," Amount :"),e.k0s()(),e.j41(92,"div",43),e.EFF(93),e.nI1(94,"currency"),e.k0s()(),e.j41(95,"div",45)(96,"label",46)(97,"strong"),e.EFF(98,"Card Info"),e.k0s()(),e.j41(99,"div",47)(100,"div",48),e.nrm(101,"div",49,1),e.k0s(),e.j41(103,"div",50)(104,"button",51),e.bIt("click",function(){return e.eBV(I),e.Njj(g.createStripeToken())}),e.EFF(105," Confirm & Pay "),e.k0s()()()()()()()()()()(),e.j41(106,"section",52)(107,"div",53)(108,"div",54)(109,"div",55)(110,"div",56)(111,"div",57)(112,"div",58)(113,"div",59),e.nrm(114,"img",60),e.j41(115,"h5",61)(116,"strong"),e.EFF(117,"PLAN DETAILS"),e.k0s()()(),e.j41(118,"div",62)(119,"div",63)(120,"p"),e.EFF(121,"Current subscription plan"),e.k0s()(),e.j41(122,"div",64)(123,"h5")(124,"strong"),e.EFF(125,"Yearly Personal Pro"),e.k0s()()(),e.j41(126,"div",65)(127,"h5")(128,"strong"),e.EFF(129,"$5"),e.k0s()(),e.j41(130,"span"),e.EFF(131,"/month"),e.k0s()()()(),e.j41(132,"div",66)(133,"div")(134,"p",67),e.EFF(135,"Plan renews on"),e.k0s(),e.j41(136,"h5",68),e.EFF(137,"20 Jun,2023"),e.k0s()(),e.j41(138,"div")(139,"p",69),e.EFF(140,"Amount"),e.k0s(),e.j41(141,"h5",70),e.EFF(142,"$60"),e.k0s()()()(),e.j41(143,"p",71)(144,"strong"),e.EFF(145,"View full info"),e.k0s()()()()(),e.j41(146,"div",54)(147,"div",55)(148,"div",56)(149,"div",57)(150,"div",58)(151,"div",59),e.nrm(152,"img",60),e.j41(153,"h5",61)(154,"strong"),e.EFF(155,"Payment info"),e.k0s()()(),e.j41(156,"div",62)(157,"div",63)(158,"p"),e.EFF(159,"Card details"),e.k0s()(),e.j41(160,"div",72)(161,"h5",73),e.EFF(162,"**** **** ****"),e.j41(163,"strong"),e.EFF(164,"4002"),e.k0s()()(),e.j41(165,"div",74)(166,"p",73),e.EFF(167,"Expire Date"),e.k0s(),e.j41(168,"span",75)(169,"strong"),e.EFF(170,"05/23"),e.k0s()()()()(),e.j41(171,"div",76),e.nrm(172,"div"),e.k0s()(),e.j41(173,"p",71)(174,"strong"),e.EFF(175,"Use a differnt card"),e.k0s()()()()()()(),e.j41(176,"section",52)(177,"div",53)(178,"div",54)(179,"div",77)(180,"div",78)(181,"div",57)(182,"div",79)(183,"div",80),e.nrm(184,"img",60),e.j41(185,"h5",61)(186,"strong"),e.EFF(187,"PAYMENT HISTORY"),e.k0s()()(),e.j41(188,"div",81)(189,"div",82)(190,"p",83),e.EFF(191,"Last in vaoice"),e.k0s(),e.j41(192,"p",84),e.EFF(193,"Amount"),e.k0s()(),e.j41(194,"div",85)(195,"h5",86),e.EFF(196,"June 20,2022"),e.k0s(),e.j41(197,"h5",86),e.EFF(198,"$60"),e.k0s()()()()(),e.j41(199,"p",87)(200,"strong"),e.EFF(201,"See all invoice"),e.k0s()()()()()()(),e.j41(202,"button",88,2),e.EFF(204," show Loading\n"),e.k0s(),e.j41(205,"div",89)(206,"div",90)(207,"div",91)(208,"div",92)(209,"div",93)(210,"div",94)(211,"span",95),e.EFF(212,"Loading..."),e.k0s()()(),e.j41(213,"h5",96),e.EFF(214,"Processing..."),e.k0s(),e.j41(215,"h
15",96),e.EFF(216,"Please do not close or refresh the page."),e.k0s(),e.j41(217,"button",97,3)(219,"span",98),e.EFF(220,"\xd7"),e.k0s()()()()()(),e.j41(221,"button",99,4),e.EFF(223," show Loading\n"),e.k0s(),e.j41(224,"div",100)(225,"div",90)(226,"div",101)(227,"div",102),e.DNE(228,An,12,1,"div",103)(229,Ri,14,1,"div",103),e.k0s()()()()}2&y&&(e.R7$(6),e.Y8G("ngIf",g.isPageLoading),e.R7$(),e.Y8G("hidden",g.isPageLoading),e.R7$(17),e.Y8G("formGroup",g.billingDeatilsForm),e.R7$(7),e.Y8G("ngClass",e.eq3(21,ve,g.submitted&&g.f.firstName.errors)),e.R7$(),e.Y8G("ngIf",g.f.firstName.errors),e.R7$(7),e.Y8G("ngClass",e.eq3(23,ve,g.submitted&&g.f.lastName.errors)),e.R7$(),e.Y8G("ngIf",g.f.lastName.errors),e.R7$(7),e.Y8G("ngClass",e.eq3(25,ve,g.submitted&&g.f.country.errors)),e.R7$(),e.Y8G("ngIf",g.f.country.errors),e.R7$(7),e.Y8G("ngClass",e.eq3(27,ve,g.submitted&&g.f.email.errors)),e.R7$(),e.Y8G("ngIf",g.f.email.errors),e.R7$(4),e.Y8G("ngIf",g.isLoading),e.R7$(),e.Y8G("ngIf",g.isLoading),e.R7$(20),e.SpI(" ",g.selectedPlan.name," "),e.R7$(6),e.SpI(" ",g.selectedPlan.planType," "),e.R7$(6),e.Lme(" ",e.bMT(94,19,"Monthly"==g.selectedPlan.planType?g.selectedPlan.monthlyPrice:12*g.selectedPlan.yearlyPrice)," / ","Monthly"==g.selectedPlan.planType?"Month":"Year"," "),e.R7$(135),e.Y8G("ngIf",!0===g.isPaymentSuccess),e.R7$(),e.Y8G("ngIf",!1===g.isPaymentSuccess))},dependencies:[ee.Wk,Ce.YU,Ce.bT,w.me,w.BC,w.cb,w.j4,w.JD,Ce.oe],styles:["h5[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.2;font-family:inherit}input[_ngcontent-%COMP%]{height:60px}.form-control[_ngcontent-%COMP%]{box-sizing:border-box;background:#fff;border:1px solid #ced4da;font-size:1rem;font-family:inherit;color:#8797b0;font-weight:400;line-height:1.5;border-radius:.25rem}.footer[_ngcontent-%COMP%]{font-weight:400;font-size:22px}.date[_ngcontent-%COMP%]{font-family:inherit}.first[_ngcontent-%COMP%]{border-radius:20px;background-color:#f4f8fb;font-family:inherit}.plan[_ngcontent-%COMP%]{font-family:inherit;color:#8797b0}.year[_ngcontent-%COMP%]{font-family:inherit;font-weight:600;font-size:20px}.logo[_ngcontent-%COMP%]{border:1px solid #dee2e6;background-color:#fff;margin-right:70px}.card-title2[_ngcontent-%COMP%]{color:#6470de;font-size:20px;font-family:inherit}.left[_ngcontent-%COMP%]{font-family:inherit;color:#8797b0}.card2-title[_ngcontent-%COMP%]{color:#6470de}.first2[_ngcontent-%COMP%]{border-radius:20px;font-family:inherit}.plan2[_ngcontent-%COMP%]{background-color:#f4f8fb}.exdate[_ngcontent-%COMP%], .year2[_ngcontent-%COMP%]{background-color:#cfe0ed}.card-body3[_ngcontent-%COMP%]{background-color:#fff;border-radius:20px}.first3[_ngcontent-%COMP%]{border-radius:20px;background-color:#f4f8fb;font-family:inherit;padding-left:10px}"]})}return b})(),Bn=(()=>{class b{constructor(s,y){this.activatedRoute=s,this.surveyService=y,this.surveyId="",this.phone="",this.agent="",this.InterviewId="",this.activatedRoute.queryParams.subscribe(g=>{let I=g.text;this.agent=g.agent,this.surveyId=I.substr(I.indexOf("start_")),this.phone=g.phone;const Le=this.surveyId.match(/start_survey_(.+?)_ai_/);this.InterviewId=Le?Le[1]:""})}ngOnInit(){var s="";if(this.surveyId.includes("_fb_"))s=`https://m.me/MerrenIO?ref=${this.surveyId}`;else if(this.agent?.includes("merren_"))s=`${B.c.merren_qual_url}/voice-chat/${this.agent}`;else if(this.surveyId.includes("_ai_"))s=`${B.c.merren_qual_url}/voice-call/${this.InterviewId}`;else if(this.surveyId.includes("_ch_")){s=`${B.c.webchat_base_url}/chat/${this.surveyId}`;const y=new URL(s);this.activatedRoute.snapshot.queryParamMap.get("RID")&&(y.searchParams.set("RID",this.activatedRoute.snapshot.queryParamMap.get("RID")),s=y)}else s=this.surveyId.includes("_ai_")?`${B.c.merren_qual_url}/voice-call/${this.InterviewId}`:`https://api.whatsapp.com/send?text=${this.surveyId}&phone=${this.phone?this.phone:B.c.whatsApp_mobile_Number}`;this.surveyService.updateClick(this.surveyId).subscribe(y=>{window.location.href=s},y=>{window.location.href=s})}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(ee.nX),e.rXU(K.I))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-initializesurvey"]],decls:0,vars:0,template:function(y,g){},encapsulation:2})}return b})();function _r(b,x){if(1&b&&e.nrm(0,"iframe",9),2&b){const s=e.XpG();e.Y8G("src",s.safeUrl,e.f$h)}}let vr=(()=>{class b{constructor(s,y,g){this.accountsService=s,this.sanitizer=y,this.activatedRoute=g,this.videoId=this.activatedRoute.snapshot.params.id,this.uId=this.activatedRoute.snapshot.params.uid,this.surveyId=this.activatedRoute.snapshot.params.surveyId,this.optpDetails={},this.showvideo=!1}ngOnInit(){this.generateOtp()}generateOtp(){this.accountsService.generateOtp({id:this.videoId,uId:this.uId,surveyId:this.surveyId}).subscribe(s=>{console.log(s),this.optpDetails=s,this.getUrl(s)},s=>{console.error(s)})}getUrl(s){this.safeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`https://player.vdocipher.com/v2/?otp=${s?.otp}&playbackInfo=${s?.playbackInfo}&primaryColor=4245EF`),this.showvideo=!0}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(pe.u),e.rXU(p.up),e.rXU(ee.nX))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-videochiper"]],decls:10,vars:1,consts:[[1,"container","pt-3"],[1,"row"],[1,"col"],[1,"navbar","navbar-expand-lg","navbar-light","px-0"],[1,"navbar-brand","mb-0","ml-lg-n3","ml-sm-n3","mx-0","text-lg-left","text-sm-left","text-center","w-100"],["href","https://merren.io/","target","_blank"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/logo-print-hd 1.svg","alt",""],[1,"col-sm-12","d-flex",2,"height","90vh"],["class","m-auto","style","height: 50vh;width: 60vw;border-radius: 10px;","frameborder","0","allow","encrypted-media","allowfullscreen","",3,"src",4,"ngIf"],["frameborder","0","allow","encrypted-media","allowfullscreen","",1,"m-auto",2,"height","50vh","width","60vw","border-radius","10px",3,"src"]],template:function(y,g){1&y&&(e.j41(0,"header")(1,"div",0)(2,"div",1)(3,"div",2)(4,"nav",3)(5,"h1",4)(6,"a",5),e.nrm(7,"img",6),e.k0s()()()()()()(),e.j41(8,"div",7),e.DNE(9,_r,1,1,"iframe",8),e.k0s()),2&y&&(e.R7$(9),e.Y8G("ngIf",g.showvideo))},dependencies:[Ce.bT]})}return b})(),dr=(()=>{class b{static#e=this.\u0275fac=function(y){return new(y||b)};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-previewurl"]],standalone:!0,features:[e.aNF],decls:3,vars:0,consts:[[1,"center-text"],[2,"font-size","35px"]
1],template:function(y,g){1&y&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2,"URL successfully visited"),e.k0s()())},styles:[".center-text[_ngcontent-%COMP%]{height:100vh;display:flex;justify-content:center;align-items:center}"]})}return b})();var $r=R(1875),tr=R(222),jr=R(4690),ur=R(6052),qe=R(5348);const mt=["inputRef"],vt=b=>({closed:b}),Ut=b=>({left:b}),jt=b=>({"sidebar-closed":b}),un=(b,x)=>({" col-sm-11":b," col-sm-8 ":x}),Xt=(b,x,s)=>({"sidebar-closed":b,"col-sm-1 p-flex":x,"col-sm-4":s}),Pn=(b,x)=>({"sidebar-open":b,"sidebar-closed":x}),Cn=b=>({invalid:b});function si(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",31)(1,"div",32),e.nrm(2,"i",33),e.k0s(),e.j41(3,"div",34)(4,"div",35),e.EFF(5),e.k0s()(),e.j41(6,"button",36),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.removeUrl())}),e.EFF(7,"\xd7"),e.k0s()()}if(2&b){const s=e.XpG();e.R7$(5),e.JRh(s.url)}}function Yn(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",37),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.GenerateQue())}),e.nrm(1,"i",38),e.EFF(2," Generate"),e.k0s()}if(2&b){const s=e.XpG();e.Y8G("disabled",!s.prompt&&!s.url)}}function Fi(b,x){1&b&&(e.j41(0,"button",39),e.nrm(1,"span",40),e.EFF(2,"Generating..."),e.k0s())}function _i(b,x){1&b&&(e.j41(0,"div",49),e.EFF(1," Please enter a valid URL. "),e.k0s())}function nr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",41)(1,"div",42)(2,"h3"),e.EFF(3,"Add URL"),e.k0s(),e.j41(4,"button",43),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.cancelUrl())}),e.EFF(5,"\xd7"),e.k0s(),e.j41(6,"input",44),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.DH7(I.tempUrl,g)||(I.tempUrl=g),e.Njj(g)}),e.bIt("blur",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.urlTouched=!0)}),e.k0s(),e.DNE(7,_i,2,0,"div",45),e.j41(8,"p",46),e.EFF(9," We\u2019ll fetch content from your provided URL and use it as a knowledge source to generate a discussion guide tailored to the website\u2019s information. "),e.k0s(),e.j41(10,"div")(11,"button",47),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.confirmUrl())}),e.EFF(12,"Add URL"),e.k0s(),e.j41(13,"button",48),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.cancelUrl())}),e.EFF(14,"Cancel"),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(6),e.R50("ngModel",s.tempUrl),e.Y8G("ngClass",e.eq3(4,Cn,s.urlTouched&&s.tempUrl&&!s.isValidUrl(s.tempUrl))),e.R7$(),e.Y8G("ngIf",s.urlTouched&&s.tempUrl&&!s.isValidUrl(s.tempUrl)),e.R7$(4),e.Y8G("disabled",!s.isValidUrl(s.tempUrl))}}function Ji(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",53),e.bIt("click",function(){const g=e.eBV(s).$implicit,I=e.XpG(2);return e.Njj(I.selctTopic(g))}),e.EFF(1),e.k0s()}if(2&b){const s=x.$implicit;e.R7$(),e.JRh(null==s?null:s.topic)}}function fi(b,x){if(1&b&&(e.j41(0,"div")(1,"h3",50),e.EFF(2,"Start by selecting a topic."),e.k0s(),e.j41(3,"div",51),e.DNE(4,Ji,2,1,"div",52),e.k0s()()),2&b){const s=e.XpG();e.R7$(4),e.Y8G("ngForOf",s.topics)}}function gi(b,x){1&b&&(e.j41(0,"div",54)(1,"div",55),e.nrm(2,"div",56),e.j41(3,"div",57),e.nrm(4,"i",58),e.EFF(5," Generating Key Information Areas.. "),e.nrm(6,"div",59)(7,"div",60)(8,"div",61),e.k0s()(),e.nrm(9,"div",62),e.k0s())}function pr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",88)(1,"span"),e.EFF(2),e.k0s(),e.j41(3,"div",89)(4,"img",90),e.bIt("click",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(2);return e.Njj(I.editArea(g))}),e.k0s(),e.j41(5,"i",91),e.bIt("click",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(2);return e.Njj(I.deleteArea(g))}),e.k0s()()()}if(2&b){const s=e.XpG().$implicit;e.R7$(2),e.JRh(s)}}function io(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",94,0),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(3);return e.DH7(I.editableName,g)||(I.editableName=g),e.Njj(g)}),e.bIt("keydown.enter",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(2);return e.Njj(I.saveArea(g))})("blur",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(2);return e.Njj(I.saveArea(g))}),e.k0s()(),e.j41(4,"i",95),e.bIt("click",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(2);return e.Njj(I.deleteArea(g))}),e.k0s()()}if(2&b){const s=e.XpG(3);e.R7$(2),e.R50("ngModel",s.editableName)}}function sr(b,x){if(1&b&&(e.j41(0,"div",81)(1,"div",82)(2,"div",83),e.DNE(3,pr,6,1,"div",84)(4,io,5,1,"div",85),e.k0s()(),e.j41(5,"div",86),e.nrm(6,"img",87),e.k0s()()),2&b){const s=x.index,y=e.XpG(2);e.R7$(3),e.Y8G("ngIf",y.editedIndex!==s),e.R7$(),e.Y8G("ngIf",y.editedIndex===s)}}function A(b,x){1&b&&e.nrm(0,"span",101)}function X(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",99),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.regenerateDG())}),e.DNE(1,A,1,0,"span",100),e.EFF(2,"Generate Discussion Guide "),e.k0s()}if(2&b){const s=e.XpG(3);e.R7$(),e.Y8G("ngIf",s.isLoading)}}function V(b,x){1&b&&e.nrm(0,"span",101)}function he(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",102),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.generateDiscussionGuide())}),e.DNE(1,V,1,0,"span",100),e.EFF(2,"Generate Discussion Guide"),e.k0s()}if(2&b){const s=e.XpG(3);e.Y8G("disabled",s.showDiscussionGuideLoading),e.R7$(),e.Y8G("ngIf",s.showDiscussionGuideLoading)}}function S(b,x){if(1&b&&(e.j41(0,"div",96),e.DNE(1,X,3,1,"button",97)(2,he,3,2,"button",98),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngIf",s.keyAreasChanged),e.R7$(),e.Y8G("ngIf",!s.keyAreasChanged)}}function Ie(b,x){1&b&&(e.j41(0,"div",54)(1,"div",55),e.nrm(2,"div",56),e.j41(3,"div",57),e.nrm(4,"i",58),e.EFF(5," Generating Discussion Guide... "),e.nrm(6,"div",59)(7,"div",60)(8,"div",61),e.k0s()(),e.nrm(9,"div",62),e.k0s())}function C(b,x){if(1&b&&(e.j41(0,"div",65)(1,"label",103),e.EFF(2,"Discussion Guide"),e.k0s(),e.nrm(3,"markdown",104),e.k0s()),2&b){const s=e.XpG(2);e.R7$(3),e.Y8G("data",s.discussionGuide)}}function se(b,x){if(1&b&&(e.j41(0,"div",105)(1,"label",106),e.EFF(2,"Discussion Guide"),e.k0s(),e.j41(3,"form",107)(4,"div",108),e.nrm(5,"ngx-editor-menu",109)(6,"ngx-editor",110),e.k0s()()()),2&b){const s=e.XpG(2);e.R7$(3),e.Y8G("formGroup",s.form),e.R7$(2),e.Y8G("editor",s.editor)("toolbar",s.toolbar),e.R7$(),e.Y8G("editor",s.editor)}}function G(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",111),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.EditDG())}),e.EFF(1,"Edit"),e.k0s()}}function E(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",112),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.createSurvey())}),e.EFF(1,"Proceed"),e.k0s()}}function re(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",112),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.formatDG())}),e.EFF(1,"Save"),e.k0s()}}function tt(b,x){1&b&&(e.j41(0,"button",113),e.nrm(1,"span",101),e.EFF(2,"Creating... "),e.k0s())}function $t(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",63)(1,"h4",64),e.EFF(2),e.k0s(),e.j41(3,"div",65)(4,"div",66)(5,"div",67)(6,"label",68),e.EFF(7,"Key Information Areas"),e.k0s()(),e.j41(8,"div",69),e.bIt("cdkDropListDropped",function(g){e.eBV(s);const I=e.XpG();return e.Njj(I.drop(g))}),e.DNE(9,sr,7,2,"div",70),e.k0s(),e.j41(10,"div",71)(11,"h4",72),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.addKeyInformationArea())}),e.j41(12,"strong"),e.EFF(13,"+"),e.k0s(),e.EFF(14," Add"),e.k0s()()()(),e.DNE(15,S,3,2,"div",73)(16,Ie,10,0,"div",27)(17,C,4,1,"div",74)(18,se,7,4,"div",75),e.j41(19,"div",76),e.DNE(20,G,2,0,"button",77)(21,E,2,0,"button",78)(22,re,2,0,"button",79)(23,tt,3,0,"button",8
10),e.k0s()()}if(2&b){const s=e.XpG();e.R7$(2),e.JRh(s.generatedTitle),e.R7$(6),e.Y8G("cdkDropListData",s.keyInformationAreas),e.R7$(),e.Y8G("ngForOf",s.keyInformationAreas),e.R7$(6),e.Y8G("ngIf",!s.showDiscussionGuide),e.R7$(),e.Y8G("ngIf",s.dgisLoading),e.R7$(),e.Y8G("ngIf",s.showDiscussionGuide&&!s.DGEdit),e.R7$(),e.Y8G("ngIf",s.DGEdit),e.R7$(2),e.Y8G("ngIf",!s.isCreatingSurvey&&s.showDiscussionGuide&&!s.DGEdit),e.R7$(),e.Y8G("ngIf",!s.isCreatingSurvey&&s.showDiscussionGuide&&!s.DGEdit),e.R7$(),e.Y8G("ngIf",s.DGEdit),e.R7$(),e.Y8G("ngIf",s.isCreatingSurvey)}}function Qt(b,x){1&b&&(e.j41(0,"div",118),e.nrm(1,"i",58),e.j41(2,"p",119),e.EFF(3,"Drop a topic, and let the Discussion Guide magic begin!"),e.k0s()())}function zt(b,x){1&b&&(e.j41(0,"div"),e.nrm(1,"div",59)(2,"div",60)(3,"div",61)(4,"div",59)(5,"div",60)(6,"div",61),e.k0s())}function Lt(b,x){if(1&b&&(e.j41(0,"div")(1,"div",120)(2,"p"),e.EFF(3),e.k0s()()()),2&b){const s=e.XpG(2);e.R7$(3),e.JRh(s.researchSummary||"No summary available.")}}function mn(b,x){if(1&b&&(e.qex(0),e.j41(1,"div",114),e.nrm(2,"img",115),e.j41(3,"h3",116),e.EFF(4,"Research"),e.k0s()(),e.DNE(5,Qt,4,0,"div",117)(6,zt,7,0,"div",26)(7,Lt,4,1,"div",26),e.bVm()),2&b){const s=e.XpG();e.R7$(5),e.Y8G("ngIf",!s.isLoading&&!s.hasGeneratedResult&&!s.researchSummary),e.R7$(),e.Y8G("ngIf",s.isLoading),e.R7$(),e.Y8G("ngIf",!s.isLoading&&s.hasGeneratedResult)}}let dn=(()=>{class b{constructor(s,y,g){this.surveyService=s,this.router=y,this.tostr
1=g,this.isLoading=!1,this.showUrlModal=!1,this.prompt="",this.url="",this.isActive=!0,this.urlText="",this.urlTouched=!1,this.questions=[],this.generatedQuestions=!1,this.selectAllQuestions=!0,this.unselectAllQuestions=!1,this.generatedSurveyId="",this.isCreatingSurvey=!1,this.tempUrl="",this.researchSummary="",this.isSidebarOpen=!1,this.isIndeterminate=!1,this.hasGeneratedResult=!1,this.generatedTitle="",this.discussionGuide="",this.keyInformationAreas=[],this.selectAllKeyAreas=!0,this.isKeyAreaIndeterminate=!1,this.showDiscussionGuide=!1,this.markdown="",this.editedIndex=null,this.editableName="",this.DGEdit=!1,this.topics=[{topic:"Create a discussion guide for a depth interview to understand skincare routines and product preferences among women aged 25 to 40 living in New York City. The objective is to explore their approach to skincare, views on clean beauty, and openness to trying emerging brands."},{topic:"We are looking to understand how young professionals in Berlin choose their banking partners. This includes their expectations from digital banking, trust in traditional institutions, and the role of sustainability and fees in their decision-making process."},{topic:"I want to explore how mid-sized companies in Dubai evaluate new software tools for project management. The aim is to understand who is involved in the decision, what features matter most, and what triggers them to switch from an existing solution."}],this.showDiscussionGuideLoading=!1,this.dgisLoading=!1,this.initialKeyInformationAreas=[],this.keyAreasChanged=!1,this.toolbar=[["bold","italic","underline","strike"],["code","blockquote"],["ordered_list","bullet_list"],[{heading:["h1","h2","h3"]}],["link"],["text_color","background_color"],["align_left","align_center","align_right"]]}ngOnInit(){this.editor=new ur.KE}toggleSelectAllKeyAreas(s){const y=s.checked??s.target?.checked;this.selectAllKeyAreas=y,this.isKeyAreaIndeterminate=!1,this.keyInformationAreas.forEach(g=>
1{g&&(g.selected=y)})}drop(s){(0,$r.HD)(this.keyInformationAreas,s.previousIndex,s.currentIndex),this.checkForChanges()}onKeyAreaChange(){const s=this.keyInformationAreas.length,y=this.keyInformationAreas.filter(g=>g&&g.selected).length;y===s?(this.selectAllKeyAreas=!0,this.isKeyAreaIndeterminate=!1):0===y?(this.selectAllKeyAreas=!1,this.isKeyAreaIndeterminate=!1):(this.selectAllKeyAreas=!1,this.isKeyAreaIndeterminate=!0)}generateDiscussionGuide(s){this.showDiscussionGuideLoading=!0,s?setTimeout(()=>{this.showDiscussionGuideLoading=!1,this.showDiscussionGuide=!0,this.keyAreasChanged=!1,this.initialKeyInformationAreas=[...this.keyInformationAreas]},2e3):(this.showDiscussionGuideLoading=!1,this.showDiscussionGuide=!0,this.keyAreasChanged=!1,this.initialKeyInformationAreas=[...this.keyInformationAreas])}GenerateQue(){this.showDiscussionGuide=!1,this.isLoading=!0,this.researchSummary="";const s=new FormData;s.append("prompt",this.prompt),s.append("url",this.url),this.surveyService.generateDiscussionGuide(s).subscribe(y=>{this.generatedQuestions=!0,this.discussionGuideDetails=y,console.log("Generated Response:",y),this.generatedTitle=y.name||"",this.keyInformationAreasString=JSON.stringify(y?.key_information_areas),this.discussionGuide=y.discussion_guide_md||"";let g=(0,tr.xI)(y?.discussion_guide_md);this.form=new w.gE({editorContent:new w.MJ(this.discussionGuide)}),this.form.controls.editorContent.setValue(g),(new jr.A).turndown(g),this.keyInformationAreas=y?.key_information_areas||[],this.initialKeyInformationAreas=[...this.keyInformationAreas],this.researchSummary=y.research_summary,this.generatedSurveyId=y._id,this.isLoading=!1,this.hasGeneratedResult=!0,this.isSidebarOpen=!0},y=>{this.tostr.error(y),console.error("Error generating response:",y),this.isLoading=!1})}confirmUrl(){this.isValidUrl(this.tempUrl)?(this.url=this.tempUrl,this.showUrlModal=!1,this.urlTouched=!1,this.tempUrl=""):this.urlTouched=!0}isValidUrl(s){try{const y=new URL(s);return"http:"===y.protocol||"https:"===y.protocol}catch{return!1}}cancelUrl(){this.tempUrl="",this.showUrlModal=!1}removeUrl(){this.prompt=this.prompt.replace(this.url,"").trim(),this.url=""}createSurvey(){this.isCreatingSurvey=!0;const y=JSON.parse(localStorage.getItem("currentUser")).email;this.surveyService.createAIDiscussionGuideSurvey({_id:this.generatedSurveyId,email:y}).subscribe(I=>{this.tostr.success("Discussion Guide created successfully"),localStorage.setItem("surveyId",I._id),localStorage.setItem("surveyName",I?.name),localStorage.setItem("surveyLanguages",I?.languages?.toString()||"English"),localStorage.setItem("isDGSurevy","yes"),this.router.navigateByUrl("/survey/discussion-guide")},I=>{this.isCreatingSurvey=!1})}toggleSideBarleft(){document.querySelector("#sidebar").classList.toggle("active"),this.isActive=!this.isActive}toggleSidebar(){console.log("toggle sidebar"),this.isSidebarOpen=!this.isSidebarOpen}editArea(s){this.editedIndex=s,this.editableName=this.keyInformationAreas[s]}saveArea(s){const g=this.editableName.trim();g?this.keyInformationAreas[s]=g:this.keyInformationAreas.splice(s,1),this.editedIndex=null,this.checkForChanges()}deleteArea(s){this.keyInformationAreas.length<=5?this.tostr.error("Minimum 5 key information areas required."):(this.keyInformationAreas.splice(s,1),this.checkForChanges())}addKeyInformationArea(){null!==this.editedIndex&&""===this.keyInformationAreas[this.editedIndex]?.trim()||(this.keyInformationAreas.push(""),this.editedIndex=this.keyInformationAreas.length-1,this.editableName="",this.checkForChanges(),setTimeout(()=>{this.inputRef?.nativeElement?.focus()}))}regenerateDG(){if(this.keyInformationAreas.length<5)return void this.tostr.error("Minimum 5 key information areas required.");let s={_id:this.discussionGuideDetails?._id,research_summary:this.discussionGuideDetails?.research_summary,key_information_areas:this.keyInformationAreas,old_key_information_areas:JSON.parse(this.keyInformationAreasString),new_key_information_areas:this.keyInformationAreas,currentDG:this.discussionGuideDetails?.discussion_guide_md};this.showDiscussionGuide=!1,this.dgisLoading=!0,this.initialKeyInformationAreas=[],this.surveyService.generateDiscussionGuide(s).subscribe(y=>{this.generatedQuestions=!0,this.discussionGuideDetails=y,console.log("Generated Response:",y),this.generatedTitle=y.name||"",this.discussionGuide=y.discussion_guide_md||"";let g=(0,tr.xI)(this.discussionGuide);this.form?this.form.controls.editorContent.setValue(g):this.form=new w.gE({editorContent:new w.MJ(g)}
1),this.keyInformationAreas=y.key_information_areas||"",this.researchSummary=y.research_summary,this.generatedSurveyId=y._id,this.dgisLoading=!1,this.hasGeneratedResult=!0,this.isSidebarOpen=!0,this.keyAreasChanged=!1,this.initialKeyInformationAreas=[...this.keyInformationAreas],this.generateDiscussionGuide()},y=>{this.tostr.error(y),console.error("Error generating response:",y),this.dgisLoading=!1})}arraysAreEqual(s,y){return s.length===y.length&&s.every((g,I)=>g===y[I])}checkForChanges(){this.keyAreasChanged=!this.arraysAreEqual(this.keyInformationAreas,this.initialKeyInformationAreas),this.keyAreasChanged&&(this.showDiscussionGuide=!1)}EditDG(){this.DGEdit=!0}formatDG(){const s=this.form.controls.editorContent.value,I={discussion_guide_md:(new jr.A).turndown(s)};this.surveyService.fromatDG(I).subscribe(Le=>{this.discussionGuide=Le?.discussion_guide_md||"";const et=(0,tr.xI)(this.discussionGuide);this.form.controls.editorContent.setValue(et),JSON.parse(localStorage.getItem("currentUser")||"{}"),Le?.kia_list&&(this.keyInformationAreas=Le.kia_list,this.keyInformationAreasString=JSON.stringify(this.keyInformationAreas)),this.tostr.success("Discussion Guide formatted successfully"),this.DGEdit=!1})}selctTopic(s){this.prompt=s?.topic}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(K.I),e.rXU(ee.Ix),e.rXU(H.tw))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-discussionguide"]],viewQuery:function(y,g){if(1&y&&e.GBs(mt,5),2&y){let I;e.mGM(I=e.lsd())&&(g.inputRef=I.first)}},decls:35,vars:31,consts:[["inputRef",""],[1,"main-wrapper","d-flex"],[1,"sidebarWrapper",3,"ngClass"],["id","sidebar",1,"shadow"],[1,"sidebar-header","text-center","pt-5","mt-1","px-1","position-relative"],[1,"btn","btn-secondary","sidebarCollapse","rounded-circle","position-fixed","w-auto","mr-3",3,"click","ngStyle"],[1,"fa","fa-align-justify"],[1,"pb-4"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/logo-print-hd 1.svg","alt",""],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/logo-print-hd.svg","alt","","width","60px"],[1,"content-wrapper",3,"ngClass"],["id","printResultPdf",1,"col-sm-12"],["pageTitle","Create Discussion Guide"],[1,"main-wrapper","col-sm-12"],[1,"main-content","componentfull",3,"ngClass"],[1,"survey-box"],["rows","3","placeholder","Describe what your discussion guide is about and who it's for to generate relevant key information areas.",1,"survey-input",3,"ngModelChange","ngModel"],["class","url-preview-card mb-2",4,"ngIf"],[1,"divider"],[1,"upload-section"],[1,"upload-buttons"],[1,"upload-btn",3,"click"],[1,"fas","fa-thin","fa-link"],["class","btn btn-secondary",3,"disabled","click",4,"ngIf"],["class","btn btn-secondary","style","background-color: #D9D9D9; border: none; color: #000000;",4,"ngIf"],["class","custom-modal-overlay",4,"ngIf"],[4,"ngIf"],["class","loading-card mt-5",4,"ngIf"],["class","card mt-5 shadow-sm",4,"ngIf"],[1,"sidebar",3,"ngClass"],["src","../assets/icons/sidebaricon.svg","aria-hidden","true",1,"sidebar-icon",3,"click","ngClass"],[1,"url-preview-card","mb-2"],[1,"icon-box"],[1,"fas","fa-link"],[1,"url-info"],[1,"url-text"],[1,"remove-url-btn",3,"click"],[1,"btn","btn-secondary",3,"click","disabled"],[1,"fas","fa-stars"],[1,"btn","btn-secondary",2,"background-color","#D9D9D9","border","none","color","#000000"],["role","status","aria-hidden","true",1,"spinner-grow","spinner-grow-sm","mr-2"],[1,"custom-modal-overlay"],[1,"custom-modal"],[1,"close-btn",3,"click"],["type","text","name","url","placeholder","https://your-link.com",3,"ngModelChange","blur","ngModel","ngClass"],["class","text-danger",4,"ngIf"],[1,"subtext","mt-2"],[1,"btn","btn-primary",3,"click","disabled"],[1,"btn","btn-outline-primary","ml-3",3,"click"],[1,"text-danger"],[1,"topic-title"],[1,"topic-cards"],["class","topic-card","style","cursor: pointer;",3,"click",4,"ngFor","ngForOf"],[1,"topic-card",2,"cursor","pointer",3,"click"],[1,"loading-card","mt-5"],[1,"loading-section"],[1,"loading-bar","title"],[1,"loading-item"],[1,"fas","fa-sparkles"],[1,"loading-line"],[1,"loading-line","medium"],[1,"loading-line","short"],[1,"wave-animation"],[1,"card","mt-5","shadow-sm"],[2,"font-size","16px","font-weight","500"],[1,"card","mt-3",2,"background-color","#FFFFFF","box-shadow","0px 0px 8px 4px #0000000F"],[1,"section"],[1,"question-item","mb-4"],[1,"ml-2",2,"font-size","16px"],["cdkDropList","",1,"questions-list-container",3,"cdkDropListDropped","cdkDropListData"],["class","col-sm-12 d-flex p-0 mt-3","cdkDrag","",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-start","col-sm-12","mt-3"],[1,"text-primary","cursor",2,"cursor","pointer",3,"click"],["class","d-flex justify-content-center col-sm-12",4,"ngIf"],["class","card mt-3","style","background-color: #FFFFFF; box-shadow: 0px 0px 8px 4px #0000000F;",4,"ngIf"],["class","card mt-3",4,"ngIf"],[1,"d-flex","justify-content-center","mt-3"],["class","btn btn-outline-primary mt-3 mr-2",3,"click",4,"ngIf"],["class","btn btn-primary mt-3",3,"click",4,"ngIf"],["class","btn btn-primary mt-3 ",3,"click",4,"ngIf"],["class","btn btn-primary mt-3","disabled","",4,"ngIf"],["cdkDrag","",1,"col-sm-12","d-flex","p-0","mt-3"],[1,"bg-white","shadow-sm","col-sm-11"],[1,"py-2"],["class","d-flex justify-content-between  p-2",4,"ngIf"],["class","d-flex w-100",4,"ngIf"],[1,"col-sm-1"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/move.svg","alt","Move","cdkDragHandle","",2,"height","18px","width","20px","cursor","move","margin-top","14px"],[1,"d-flex","justify-content-between","p-2"],[1,"d-flex","align-items-center","flex-shrink-0"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/edit.svg","alt","Edit",1,"ms-2","mr-3",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa","fa-tras
1h","text-danger",2,"cursor","pointer",3,"click"],[1,"d-flex","w-100"],[1,"w-100"],["type","text","autofocus","",1,"form-control","form-control-sm",3,"ngModelChange","keydown.enter","blur","ngModel"],["aria-hidden","true",1,"fa","fa-trash","text-danger",2,"margin","8px 7px 0 14px","cursor","pointer",3,"click"],[1,"d-flex","justify-content-center","col-sm-12"],["class","btn btn-outline-primary  mt-3",3,"click",4,"ngIf"],["class","btn btn-outline-primary  mt-3",3,"disabled","click",4,"ngIf"],[1,"btn","btn-outline-primary","mt-3",3,"click"],["class","spinner-grow spinner-grow-sm mr-2","role","status",4,"ngIf"],["role","status",1,"spinner-grow","spinner-grow-sm","mr-2"],[1,"btn","btn-outline-primary","mt-3",3,"click","disabled"],[2,"font-size","16px"],[3,"data"],[1,"card","mt-3"],[2,"font-size","22px"],[1,"mt-3",3,"formGroup"],[1,"editor"],[3,"editor","toolbar"],["formControlName","editorContent",3,"editor"],[1,"btn","btn-outline-primary","mt-3","mr-2",3,"click"],[1,"btn","btn-primary","mt-3",3,"click"],["disabled","",1,"btn","btn-primary","mt-3"],[1,"d-flex","ml-4"],["src","assets/icons/lightbulb_book.svg","title","Research",1,"pb-4","ml-2"],[1,"ml-3",2,"font-size","18px","font-weight","400"],["class","text-center reserch_Summary",4,"ngIf"],[1,"text-center","reserch_Summary"],[1,"mt-3","ml-3"],[1,"card",2,"background-color","#F7F7F7"]],template:function(y,g){1&y&&(e.j41(0,"div",1)(1,"div",2)(2,"nav",3)(3,"div",4)(4,"button",5),e.bIt("click",function(){return g.toggleSideBarleft()}),e.nrm(5,"i",6),e.k0s(),e.j41(6,"div",7)(7,"h1"),e.nrm(8,"img",8),e.k0s(),e.j41(9,"strong"),e.nrm(10,"img",9),e.k0s()()()()(),e.j41(11,"div",10)(12,"div",11),e.nrm(13,"app-survey-pages-header",12),e.k0s(),e.j41(14,"div",13)(15,"div",14)(16,"div",15)(17,"textarea",16),e.mxI("ngModelChange",function(Le){return e.DH7(g.prompt,Le)||(g.prompt=Le),Le}),e.EFF(18,"                "),e.k0s(),e.DNE(19,si,8,1,"div",17),e.nrm(20,"hr",18),e.j41(21,"div",19)(22,"div",20)(23,"button",21),e.bIt("click",function(){return g.showUrlModal=!0}),e.nrm(24,"i",22),e.EFF(25," Add URL"),e.k0s()(),e.DNE(26,Yn,3,1,"button",23)(27,Fi,3,0,"button",24),e.k0s()(),e.DNE(28,nr,15,6,"div",25)(29,fi,5,1,"div",26)(30,gi,10,0,"div",27)(31,$t,24,11,"div",28),e.k0s(),e.j41(32,"div",29)(33,"img",30),e.bIt("click",function(){return g.toggleSidebar()}),e.k0s(),e.DNE(34,mn,8,3,"ng-container",26),e.k0s()()()()),2&y&&(e.R7$(),e.Y8G("ngClass",e.eq3(15,vt,!g.isActive)),e.R7$(3),e.Y8G("ngStyle",e.eq3(17,Ut,g.isActive?"285px":"80px")),e.R7$(7),e.Y8G("ngClass",e.eq3(19,jt,!g.isActive)),e.R7$(4),e.Y8G("ngClass",e.l_i(21,un,!g.isSidebarOpen,g.isSidebarOpen)),e.R7$(2),e.R50("ngModel",g.prompt),e.R7$(2),e.Y8G("ngIf",g.url),e.R7$(7),e.Y8G("ngIf",!g.isLoading),e.R7$(),e.Y8G("ngIf",g.isLoading),e.R7$(),e.Y8G("ngIf",g.showUrlModal),e.R7$(),e.Y8G("ngIf",!g.isLoading&&!g.generatedQuestions),e.R7$(),e.Y8G("ngIf",g.isLoading),e.R7$(),e.Y8G("ngIf",g.generatedQuestions),e.R7$(),e.Y8G("ngClass",e.sMw(24,Xt,!g.isSidebarOpen,!g.isSidebarOpen,g.isSidebarOpen)),e.R7$(),e.Y8G("ngClass",e.l_i(28,Pn,g.isSidebarOpen,!g.isSidebarOpen)),e.R7$(),e.Y8G("ngIf",g.isSidebarOpen))},dependencies:[Ce.YU,Ce.Sq,Ce.bT,Ce.B3,qe.f,w.qT,w.me,w.BC,w.cb,w.j4,w.JD,w.vS,$r.O7,$r.T1,$r.Fb,v.NN,ur.Cl,ur.Zu],styles:['.main-content[_ngcontent-%COMP%]{padding:20px;transition:width .3s ease;margin-bottom:0}.main-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;height:100%}.sidebarWrapper[_ngcontent-%COMP%]{width:285px;min-height:100vh;z-index:2}.sidebarWrapper.closed[_ngcontent-%COMP%]{width:80px}.content-wrapper[_ngcontent-%COMP%]{transition:margin-left .3s ease;margin-left:16px}.content-wrapper[_ngcontent-%COMP%]{width:200px;flex-grow:1;overflow-x:hidden}.componentfull[_ngcontent-%COMP%]{overflow-y:auto;max-height:100%;scrollbar-width:none}.componentfull[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.sidebar[_ngcontent-%COMP%]{padding-top:20px;right:0;min-height:95vh;height:100%;transition:transform .5s ease,width .5s ease;box-shadow:-4px 0 8px #0003}.survey-box[_ngcontent-%COMP%]{border:1px solid rgba(23,23,23,.5019607843);border-radius:8px;padding:20px;background:#fff}.survey-input[_ngcontent-%COMP%]{width:100%;border:none;resize:none;font-size:14px;outline:none;color:#333}.divider[_ngcontent-%COMP%]{border:none;height:2px;background-color:#1b161633;margin:0 -20px 10px}.upload-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:10px;flex-wrap:wrap;gap:10px}.upload-buttons[_ngcontent-%COMP%]{display:flex;gap:10px}.upload-btn[_ngcontent-%COMP%]{background-color:#2285f71f;border:none;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:15px;font-weight:500}.subtext[_ngcontent-%COMP%]{font-size:14px;font-weight:300;color:#6a6a6a;margin-bottom:10px}.topic-title[_ngcontent-%COMP%]{margin-top:30px;font-weight:18px;font-weight:500}.topic-cards[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:15px;margin-top:15px}.topic-card[_ngcontent-%COMP%]{flex:1 1 calc(33.33% - 10px);background-color:#e3f2fd;padding:15px;border-radius:8px;font-size:15px;font-weight:400;min-width:260px}@media (max-width: 768px){.topic-card[_ngcontent-%COMP%]{flex:1 1 100%}.upload-section[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}.loading-card[_ngcontent-%COMP%]{border:1px solid #eee;border-radius:10px;padding:16px;background:#fff;box-shadow:0 0 10px #00000008;position:relative;overflow:hidden}.loading-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.loading-bar.title[_ngcontent-%COMP%]{height:12px;width:50%;background:#ddd;border-radius:6px;margin-bottom:10px}.loading-item[_ngcontent-%COMP%]{font-size:15px;font-weight:500;margin-top:5px}.loading-line[_ngcontent-%COMP%]{position:relative;height:10px;background:#f0f0f0;border-radius:5px;overflow:hidden;margin:6px 0}.loading-line[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-150px;height:100%;width:150px;background:linear-gradient(to right,transparent 0%,rgba(255,255,255,.6) 50%,transparent 100%);animation:_ngcontent-%COMP%_shimmer 1.2s infinite}.loading-line.short[_ngcontent-%COMP%]{width:70%}
1.loading-line.medium[_ngcontent-%COMP%]{width:80%!important}.loading-line[_ngcontent-%COMP%]{width:90%}@keyframes _ngcontent-%COMP%_shimmer{0%{left:-150px}to{left:100%}}.wave-animation[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;height:60px;width:200%;background:url(https://svgshare.com/i/117M.svg) repeat-x;background-size:contain;animation:_ngcontent-%COMP%_waveMove 5s linear infinite;z-index:0;opacity:.2}@keyframes _ngcontent-%COMP%_waveMove{0%{transform:translate(0)}to{transform:translate(-50%)}}.card[_ngcontent-%COMP%]{background:#fff;border-radius:10px;padding:20px;border:none}h3[_ngcontent-%COMP%]{margin-bottom:20px;font-size:18px;font-weight:600}.section[_ngcontent-%COMP%]{margin-bottom:10px}.section-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;margin-bottom:12px}.question-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.custom-checkbox[_ngcontent-%COMP%]{background-color:#717171;color:#fff;margin-top:3px;flex-shrink:0}.question-label[_ngcontent-%COMP%]{line-height:1.5;margin:0}.section[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{appearance:none;width:18px;height:18px;border:none;background-color:#fff;border:solid #717171;border-radius:4px;cursor:pointer;position:relative}.section[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked{background-color:#717171}.section[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked:after{content:"";position:absolute;top:2px;left:6px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.custom-modal-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0006;z-index:1050;display:flex;justify-content:center;align-items:center}.custom-modal[_ngcontent-%COMP%]{background-color:#fff;padding:24px 30px;border-radius:12px;width:500px;max-width:90%;position:relative;box-shadow:0 6px 20px #00000026}.custom-modal[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:0;font-size:20px;font-weight:600;margin-bottom:20px}.custom-modal[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]{width:100%;padding:10px 14px;font-size:16px;border-radius:8px;border:1px solid #ccc;margin-bottom:16px}.subtext[_ngcontent-%COMP%]{font-size:14px;color:#555;margin-bottom:24px;line-height:1.5}.modal-actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-start}.close-btn[_ngcontent-%COMP%]{position:absolute;top:14px;right:18px;font-size:24px;background:transparent;border:none;cursor:pointer;color:#444}.url-preview-card[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid #e0e0e0;padding:10px 12px;border-radius:12px;margin-top:12px;background-color:#fff;position:relative;box-shadow:0 1px 3px #00000014;max-width:400px}.icon-box[_ngcontent-%COMP%]{background-color:#fff4e6;padding:8px;border-radius:8px;margin-right:10px;display:flex;align-items:center;justify-content:center}.icon-box[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#333;font-size:16px}.url-info[_ngcontent-%COMP%]{flex-grow:1}.url-text[_ngcontent-%COMP%]{font-weight:500;color:#333;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-width:100%}.url-label[_ngcontent-%COMP%]{font-size:12px;color:gray}.remove-url-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:18px;color:#333;cursor:pointer;margin-left:10px}.invalid[_ngcontent-%COMP%]{border:1px solid red}.reserch_Summary[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#b0b0b0;margin-top:30px;padding:50px}.sidebar-icon[_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:91%;width:25px;height:25px;border-radius:50%;border:1px solid #2285F7;background-color:#fff;display:flex;align-items:center;justify-content:center;margin-top:10px;transform:translateY(-50%);z-index:1;transition:transform .3s ease}.sidebar-closed[_ngcontent-%COMP%]   .sidebar-icon[_ngcontent-%COMP%]{transform:translateY(-50%) rotate(180deg);right:72%}.sidebar.sidebar-closed[_ngcontent-%COMP%]{transform:translate(calc(100% - 50px));width:50px}.p-flex[_ngcontent-%COMP%]{position:fixed}.sidebar-open[_ngcontent-%COMP%]   .sidebar-icon[_ngcontent-%COMP%]{transform:translateY(-50%) rotate(0);right:98%}.markdown-content[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .markdown-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:700;margin-top:1rem}.markdown-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:20px;list-style:disc}
1.editor[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,.2);border-radius:4px}.editor[_ngcontent-%COMP%]   .NgxEditor__MenuBar[_ngcontent-%COMP%]{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:1px solid rgba(0,0,0,.2)}.editor[_ngcontent-%COMP%]   .NgxEditor[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0;border:none}.editor[_ngcontent-%COMP%]   .CodeMirror[_ngcontent-%COMP%]{border:1px solid #eee;height:auto;margin-bottom:.7rem}.editor[_ngcontent-%COMP%]   .CodeMirror[_ngcontent-%COMP%]   pre[_ngcontent-%COMP%]{white-space:pre!important}  ngx-editor{display:block;max-height:400px;overflow-y:auto;border:1px solid #ccc;padding:8px}  .NgxEditor__Content{max-height:400px;overflow-y:auto}']})}return b})();const cn=["newInputRef"],Zn=["editInputRef"],zn=["inputRef"],qn=b=>({"disabled-btn":b}),Zi=()=>[1,2,3,4,5,6],Nn=b=>({prompt:b}),gn=b=>({invalid:b});function vn(b,x){if(1&b&&(e.j41(0,"div",21)(1,"span",22),e.EFF(2),e.k0s(),e.j41(3,"p"),e.EFF(4),e.k0s()()),2&b){const s=x.$implicit,y=x.index,g=e.XpG(2);e.AVh("active",g.step===s)("completed",g.step>s),e.R7$(2),e.JRh(s),e.R7$(2),e.JRh(g.stepLabels[y])}}function ti(b,x){1&b&&(e.j41(0,"div",19),e.DNE(1,vn,5,6,"div",20),e.k0s()),2&b&&(e.R7$(),e.Y8G("ngForOf",e.lJ4(1,Zi)))}function er(b,x){if(1&b&&(e.j41(0,"option",46),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.SpI("",s," minutes")}}function Or(b,x){1&b&&e.nrm(0,"hr",47)}function yi(b,x){1&b&&(e.j41(0,"h3",48),e.EFF(1,"Attached Reference"),e.k0s())}function hr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",49)(1,"div",50)(2,"div",51),e.nrm(3,"i",52),e.k0s(),e.j41(4,"div",53)(5,"div",54),e.EFF(6),e.k0s()()(),e.j41(7,"button",55),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.removeUrl())}),e.EFF(8," X "),e.k0s()()}if(2&b){const s=e.XpG(2);e.R7$(6),e.JRh(s.url)}}function Tn(b,x){1&b&&(e.j41(0,"div",62),e.EFF(1," Please enter a valid URL. "),e.k0s())}function Br(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",56)(1,"input",57),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.tempUrl,g)||(I.tempUrl=g),e.Njj(g)}),e.bIt("blur",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.urlTouched=!0)}),e.k0s(),e.DNE(2,Tn,2,0,"div",58),e.j41(3,"div",59)(4,"button",60),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.cancelUrl())}),e.EFF(5,"Cancel"),e.k0s(),e.j41(6,"button",61),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.confirmUrl())}),e.EFF(7,"Add"),e.k0s()()()}if(2&b){const s=e.XpG(2);e.R7$(),e.R50("ngModel",s.tempUrl),e.Y8G("ngClass",e.eq3(4,gn,s.urlTouched&&s.tempUrl&&!s.isValidUrl(s.tempUrl))),e.R7$(),e.Y8G("ngIf",s.urlTouched&&s.tempUrl&&!s.isValidUrl(s.tempUrl)),e.R7$(4),e.Y8G("disabled",!s.isValidUrl(s.tempUrl))}}function Co(b,x){1&b&&(e.qex(0),e.EFF(1," Generate Key Information Areas "),e.nrm(2,"i",63),e.bVm())}function Vn(b,x){1&b&&(e.EFF(0," Generating... "),e.nrm(1,"i",64))}function fr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",23)(1,"h2",24),e.EFF(2,"Upload Your Existing Discussion Guide"),e.k0s(),e.j41(3,"h5"),e.EFF(4,"or"),e.k0s(),e.j41(5,"h2"),e.EFF(6,"What's your research objective?"),e.k0s(),e.j41(7,"p",25),e.EFF(8,"Start by defining what you want to learn. We'll use this to generate the key areas to explore in your research."),e.k0s(),e.j41(9,"div",26)(10,"div",27)(11,"textarea",28),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.DH7(I.prompt,g)||(I.prompt=g),e.Njj(g)}),e.bIt("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.Njj(!(null!=g&&g.trim())&&(I.interviewType=null))}),e.EFF(12,"                "),e.k0s()(),e.j41(13,"p",29),e.EFF(14,"Be specific about your target audience, topic, and what insights you're looking to gather."),e.k0s(),e.j41(15,"label",30),e.EFF(16,"Select Interview Time"),e.k0s(),e.j41(17,"select",31),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.DH7(I.interviewDuration,g)||(I.interviewDuration=g),e.Njj(g)}),e.DNE(18,er,2,2,"option",32),e.k0s(),e.j41(19,"div",33)(20,"button",34),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.showUrlModal=!0)}),e.nrm(21,"i",35),e.EFF(22,"Add URL"),e.k0s()(),e.DNE(23,Or,1,0,"hr",36)(24,yi,2,0,"h3",37)(25,hr,9,1,"div",38)(26,Br,8,6,"div",39),e.j41(27,"div",40)(28,"div",41),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return g.prompt="Generate an NPS discussion guide for [COMPANY NAME].\nProduct/Service: [PRODUCT NAME]\nAudience: Existing customers\nObjective: Understand why customers gave their NPS score for [PRODUCT NAME].",e.Njj(g.interviewType="NPS")}),e.j41(29,"span",42)(30,"h3"),e.EFF(31,"NPS Interview"),e.k0s()()(),e.j41(32,"div",41),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return g.prompt="Generate a CSAT discussion guide for [COMPANY NAME].\nProduct/Service: [PRODUCT NAME]\nAudience: Existing customers\nObjective: Understand why customers gave their satisfaction score for [PRODUCT NAME].",e.Njj(g.interviewType="CSAT")}),e.j41(33,"span",42)(34,"h3"),e.EFF(35,"CSAT Interview"),e.k0s()()()(),e.j41(36,"button",43),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.GenerateQue())}),e.DNE(37,Co,3,0,"ng-container",44)(38,Vn,2,0,"ng-template",null,0,e.C5r),e.k0s()(),e.j41(40,"div",45)(41,"strong"),e.EFF(42,"Example Research Objective"),e.k0s(),e.j41(43,"p"),e.EFF(44,'"Understand how young professionals (25-35) in urban areas perceive and use grocery delivery services, focusing on their decision-making process, pain points, and unmet needs to inform our upcoming service improvements."'),e.k0s()()()}if(2&b){const s=e.sdS(39),y=e.XpG();e.R7$(10),e.Y8G("ngClass",e.eq3(17,Nn,y.prompt&&""!==y.prompt.trim())),e.R7$(),e.R50("ngModel",y.prompt),e.Y8G("disabled",y.isLoading),e.R7$(6),e.R50("ngModel",y.interviewDuration),e.R7$(),e.Y8G("ngForOf",y.durationOptions),e.R7$(5),e.Y8G("ngIf",!y.showUrlModal),e.R7$(),e.Y8G("ngIf",y.url),e.R7$(),e.Y8G("ngIf",y.url),e.R7$(),e.Y8G("ngIf",y.showUrlModal),e.R7$(2),e.AVh("selected","NPS"===y.interviewType),e.R7$(4),e.AVh("selected","CSAT"===y.interviewType),e.R7$(4),e.Y8G("disabled",!y.prompt&&!y.url||y.isLoading)("ngClass",e.eq3(19,qn,!y.prompt&&!y.url)),e.R7$(),e.Y8G("ngIf",!y.isLoading)("ngIfElse",s)}}function Ir(b,x){1&b&&(e.j41(0,"div",74),e.nrm(1,"span",75)(2,"span",75)(3,"span",75),e.k0s())}function xr(b,x){1&b&&(e.j41(0,"div",76)(1,"div",77),e.nrm(2,"div",78),e.j41(3,"div",79),e.nrm(4,"i",80),e.EFF(5," Generating Key Information Areas.. "),e.nrm(6,"div",81)(7,"div",82)(8,"div",83),e.k0s()(),e.nrm(9,"div",84),e.k0s())}function Xr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"input",95,2),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.editableName,g)||(I.editableName=g),e.Njj(g)}),e.bIt("blur",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(3);return e.Njj(I.saveArea(g))})("keyup.enter",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(3);return e.Njj(I.saveArea(g))}),e.k0s()()}if(2&b){const s=e.XpG(4);e.R7$(),e.R50("ngModel",s.editableName)}}function On(b,x){if(1&b){const s=e.RV6();e.j41(0,"h3",96),e.bIt("click",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(3);return e.Njj(I.editArea(g))}),e.EFF(1),e.k0s()}if(2&b){const s=e.XpG().$implicit;e.R7$(),e.JRh(s||"Click to edit")}}function gr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",86)(1,"div",87),e.DNE(2,Xr,3,1,"div",44)(3,On,2,1,"ng-template",null,1,e.C5r),e.j41(5,"div",88)(6,"button",89),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG(3);return e.Njj(I.moveUp(g))}),e.nrm(7,"i",90),e.k0s(),e.j41(8,"button",91),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG(3);return e.Njj(I.moveDown(g))}),e.nrm(9,"i",92),e.k0s(),e.j41(10,"button",93),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG(3);return e.Njj(I.deleteArea(g))}),e.nrm(11,"i",94),e.k0s()()()()}if(2&b){const s=x.index,y=e.sdS(4),g=e.XpG(3);e.R7$(2),e.Y8G("ngIf",g.editedIndex===s)("ngIfElse",y),e.R7$(4),e.Y8G("disabled",0===s)("ngClass",e.eq3(6,qn,0===s)),e.R7$(2),e.Y8G("disabled",s===g.keyInformationAreas.length-1)("ngClass",e.eq3(8,qn,s===g.keyInformationAreas.length-1))}}function Cr(b,x){if(1&b&&(e.j41(0,"div"),e.DNE(1,gr,12,10,"div",85),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngForOf",s.keyInformationAreas)}}function ro(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",97)(1,"button",98),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.addKeyInformationArea())}),e.nrm(2,"i",99),e.EFF(3," Add Information Area"),e.k0s()()}}function Gi(b,x){1&b&&e.nrm(0,"i",64)}function Vr(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",100),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.onContinue())}),e.EFF(1,"Continue "),e.DNE(2,Gi,1,0,"i",101),e.k0s()}if(2&b){const s=e.XpG(2);e.Y8G("disabled",s.dgisLoading),e.R7$(2),e.Y8G("ngIf",s.dgisLoading)}}function Ui(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",65)(2,"div",66)(3,"h2"),e.EFF(4,"Review your Key Information Areas"),e.k0s(),e.j41(5,"p",25),e.EFF(6,"These are the main topics we'll explore in y
1our research. Edit them to fit your needs and arrange them in order of priority."),e.k0s()(),e.j41(7,"div",67)(8,"span"),e.EFF(9,"Your Research Objective"),e.k0s(),e.j41(10,"p"),e.EFF(11),e.k0s(),e.DNE(12,Ir,4,0,"div",68),e.k0s(),e.DNE(13,xr,10,0,"div",69)(14,Cr,2,1,"div",14)(15,ro,4,0,"div",70),e.j41(16,"div",71)(17,"button",72),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(18,"Previous"),e.k0s(),e.DNE(19,Vr,3,2,"button",73),e.k0s()()()}if(2&b){const s=e.XpG();e.R7$(11),e.JRh(s.animatedText||"No summary available."),e.R7$(),e.Y8G("ngIf",s.isTyping),e.R7$(),e.Y8G("ngIf",s.isLoadingKIA),e.R7$(),e.Y8G("ngIf",!s.isLoadingKIA),e.R7$(),e.Y8G("ngIf",!s.isLoadingKIA),e.R7$(2),e.Y8G("disabled",s.isLoadingKIA),e.R7$(2),e.Y8G("ngIf",!s.isLoadingKIA)}}function Ii(b,x){1&b&&(e.j41(0,"section",104)(1,"div",105)(2,"div",106)(3,"div",107)(4,"span",108),e.EFF(5,"Loading..."),e.k0s()(),e.j41(6,"strong"),e.EFF(7,"Generating Interview Questions..."),e.k0s()()()())}function Si(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",134)(1,"input",135,4),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(5);return e.DH7(I.editedQuestionText,g)||(I.editedQuestionText=g),e.Njj(g)}),e.bIt("blur",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.saveEditedQuestionWelcome())})("keyup.enter",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.saveEditedQuestionWelcome())}),e.k0s()()}if(2&b){const s=e.XpG(5);e.R7$(),e.R50("ngModel",s.editedQuestionText)}}function qi(b,x){if(1&b&&(e.j41(0,"div",136),e.EFF(1),e.k0s()),2&b){const s=e.XpG().$implicit;e.Y8G("title",s.question_text),e.R7$(),e.SpI(" ",s.question_text," ")}}function mr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",137)(1,"i",138),e.bIt("click",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(4);return e.Njj(I.deleteWelcome(g))}),e.k0s()()}}function Tr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",127)(1,"div",128),e.DNE(2,Si,3,1,"div",129)(3,qi,2,2,"ng-template",null,3,e.C5r),e.j41(5,"div",130),e.EFF(6),e.k0s(),e.j41(7,"div",131),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG(4);return e.Njj(I.startEditingWelcome(g))}),e.nrm(8,"i",132),e.k0s(),e.DNE(9,mr,2,0,"div",133),e.k0s()()}if(2&b){const s=x.$implicit,y=x.index,g=e.sdS(4),I=e.XpG(4);e.R7$(2),e.Y8G("ngIf",I.editIndex===y)("ngIfElse",g),e.R7$(4),e.JRh(s.question_type),e.R7$(3),e.Y8G("ngIf",I.welcome_and_Purpose.questions.length>1)}}function zi(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",142,2),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(5);return e.DH7(I.newQuestionText,g)||(I.newQuestionText=g),e.Njj(g)}),e.bIt("keyup.enter",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.saveNewQuestionwelcome())})("blur",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.onWelcomeInputBlur())}),e.k0s()}if(2&b){const s=e.XpG(5);e.R50("ngModel",s.newQuestionText)}}function uo(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",146),e.bIt("change",function(g){e.eBV(s);const I=e.XpG(6);return e.Njj(I.openNewQuestionInputWelcome(g))})("blur",function(){e.eBV(s);const g=e.XpG(6);return e.Njj(g.handleEmptyInput())}),e.k0s()}}function Ni(b,x){if(1&b&&e.nrm(0,"img",151),2&b){const s=e.XpG(7);e.Y8G("src",s.previewUrl,e.B4B)}}function Bi(b,x){if(1&b&&e.nrm(0,"audio",152),2&b){const s=e.XpG(7);e.Y8G("src",s.previewUrl,e.B4B)}}function $i(b,x){if(1&b&&e.nrm(0,"video",153),2&b){const s=e.XpG(7);e.Y8G("src",s.previewUrl,e.B4B)}}function oo(b,x){if(1&b&&(e.j41(0,"div",147),e.DNE(1,Ni,1,1,"img",148)(2,Bi,1,1,"audio",149)(3,$i,1,1,"video",150),e.k0s()),2&b){const s=e.XpG(6);e.R7$(),e.Y8G("ngIf",s.isImage(s.previewUrl)),e.R7$(),e.Y8G("ngIf",s.isAudio(s.previewUrl)),e.R7$(),e.Y8G("ngIf",s.isVideo(s.previewUrl))}}function ir(b,x){if(1&b&&(e.j41(0,"div",143),e.DNE(1,uo,1,0,"input",144)(2,oo,4,3,"div",145),e.k0s()),2&b){const s=e.XpG(5);e.R7$(),e.Y8G("ngIf",!s.previewUrl),e.R7$(),e.Y8G("ngIf",s.previewUrl)}}function cs(b,x){if(1&b&&(e.j41(0,"div",139)(1,"div",128),e.DNE(2,zi,2,1,"input",140)(3,ir,3,2,"div",141),e.k0s()()),2&b){const s=e.XpG(4);e.R7$(2),e.Y8G("ngIf","open-ended"===s.selectedType),e.R7$(),e.Y8G("ngIf","media"===s.selectedType)}}function Qr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",122),e.DNE(1,Tr,10,4,"div",123)(2,cs,4,2,"div",124),e.j41(3,"button",125),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.openNewQuestionInputWelcome())}),e.nrm(4,"i",126),e.EFF(5," Add Question "),e.k0s()()}if(2&b){const s=e.XpG(3);e.R7$(),e.Y8G("ngForOf",s.welcome_and_Purpose.questions),e.R7$(),e.Y8G("ngIf",s.showAddField)}}function ai(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",160,4),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG().$implicit;return e.DH7(I.question,g)||(I.question=g),e.Njj(g)}),e.bIt("keyup.enter",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(2).$implicit,Le=e.XpG(3);return e.Njj(Le.saveEditedQuestion(I,g))})("blur",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(2).$implicit,Le=e.XpG(3);return e.Njj(Le.saveEditedQuestion(I,g))}),e.k0s()}if(2&b){const s=e.XpG().$implicit;e.R50("ngModel",s.question)}}function As(b,x){if(1&b&&(e.j41(0,"div",161),e.EFF(1),e.k0s()),2&b){const s=e.XpG().$implicit;e.Y8G("title",s.question),e.R7$(),e.SpI(" ",s.question," ")}}function fa(b,x){if(1&b&&e.nrm(0,"img",151),2&b){const s=e.XpG(3).$implicit;e.Y8G("src",s.url,e.B4B)}}function wo(b,x){if(1&b&&e.nrm(0,"video",153),2&b){const s=e.XpG(3).$implicit;e.Y8G("src",s.url,e.B4B)}}function Qo(b,x){if(1&b&&e.nrm(0,"audio",152),2&b){const s=e.XpG(3).$implicit;e.Y8G("src",s.url,e.B4B)}}function ta(b,x){if(1&b&&(e.j41(0,"div",164)(1,"div",165),e.EFF(2),e.k0s(),e.DNE(3,fa,1,1,"img",148)(4,wo,1,1,"video",150)(5,Qo,1,1,"audio",149),e.k0s()),2&b){const s=e.XpG(2).$implicit;e.R7$(2),e.JRh(s.question),e.R7$(),e.Y8G("ngIf","image"===s.media_type),e.R7$(),e.Y8G("ngIf","video"===s.media_type),e.R7$(),e.Y8G("ngIf","audio"===s.media_type)}}function ds(b,x){1&b&&(e.j41(0,"div",174),e.nrm(1,"div",175),e.j41(2,"div"),e.EFF(3,"Uploading file..."),e.k0s()())}function Do(b,x){if(1&b){const s=e.RV6();e.j41(0,"i",181),e.bIt("click",function(){e.eBV(s);const g=e.XpG(9);return e.Njj(g.removePreviewImage())}),e.k0s()}}function us(b,x){if(1&b&&e.nrm(0,"img",182),2&b){const s=e.XpG(9);e.Y8G("src",s.editableMedia.previewUrl,e.B4B)}}function Ns(b,x){if(1&b&&e.nrm(0,"video",183),2&b){const s=e.XpG(9);e.Y8G("src",s.editableMedia.previewUrl,e.B4B)}}function me(b,x){if(1&b&&e.nrm(0,"audio",152),2&b){const s=e.XpG(9);e.Y8G("src",s.editableMedia.previewUrl,e.B4B)}}function xe(b,x){if(1&b&&(e.j41(0,"div",176)(1,"div",177),e.DNE(2,Do,1,0,"i",178)(3,us,1,1,"img",179)(4,Ns,1,1,"video",180)(5,me,1,1,"audio",149),e.k0s()()),2&b){const s=e.XpG(8);e.R7$(2),e.Y8G("ngIf",s.isImages(s.editableMedia.previewUrl)),e.R7$(),e.Y8G("ngIf",s.isImages(s.editableMedia.previewUrl)),e.R7$(),e.Y8G("ngIf",s.isVideo(s.editableMedia.previewUrl)),e.R7$(),e.Y8G("ngIf",s.isAudio(s.editableMedia.previewUrl))}}function q(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",184),e.bIt("change",function(g){e.eBV(s);const I=e.XpG(8);return e.Njj(I.onFileSelected(g,I.editableMedia,!0))}),e.k0s()}}function Ge(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",166)(1,"input",167),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(7);return e.DH7(I.editableMedia.question,g)||(I.editableMedia.question=g),e.Njj(g)}),e.k0s(),e.DNE(2,ds,4,0,"div",168)(3,xe,6,4,"div",169)(4,q,1,0,"input",170),e.j41(5,"div",171)(6,"button",172),e.bIt("click",function(){e.eBV(s);const g=e.XpG(7);return e.Njj(g.updateMediaQuestion())}),e.EFF(7,"Save"),e.k0s(),e.j41(8,"button",173),e.bIt("click",function(){e.eBV(s);const g=e.XpG(7);return e.Njj(g.cancelMediaEdit())}),e.EFF(9,"Cancel"),e.k0s()()()}if(2&b){const s=e.XpG(7);
1e.R7$(),e.R50("ngModel",s.editableMedia.question),e.R7$(),e.Y8G("ngIf",s.isFileLoading),e.R7$(),e.Y8G("ngIf",s.editableMedia.previewUrl&&!s.isFileLoading),e.R7$(),e.Y8G("ngIf",!s.editableMedia.previewUrl&&!s.isFileLoading)}}function yt(b,x){if(1&b&&(e.j41(0,"div",162),e.DNE(1,ta,6,4,"div",163)(2,Ge,10,4,"ng-template",null,5,e.C5r),e.k0s()),2&b){const s=e.sdS(3),y=e.XpG().$implicit,g=e.XpG(5);e.R7$(),e.Y8G("ngIf",g.editingMediaId!==y._id)("ngIfElse",s)}}function Mn(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",185)(1,"i",186),e.bIt("click",function(){e.eBV(s);const g=e.XpG().$implicit,I=e.XpG(5);return e.Njj(I.startEditingMedia(g._id))}),e.k0s()()}}function ni(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",185)(1,"i",186),e.bIt("click",function(){e.eBV(s);const g=e.XpG().$implicit,I=e.XpG(5);return e.Njj(I.startEditing(g._id))}),e.k0s()()}}function so(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",187),e.bIt("click",function(){e.eBV(s);const g=e.XpG(),I=g.$implicit,Le=g.index,et=e.XpG(2).$implicit,wt=e.XpG(3);return e.Njj(wt.openDeleteModal(Le,I._id,et.questions))}),e.nrm(1,"i",188),e.k0s()}}function Ls(b,x){if(1&b&&(e.j41(0,"div",127)(1,"div",128),e.DNE(2,ai,2,1,"input",155)(3,As,2,2,"div",156)(4,yt,4,2,"div",157),e.j41(5,"div",130),e.EFF(6),e.k0s(),e.DNE(7,Mn,2,0,"div",158)(8,ni,2,0,"div",158)(9,so,2,0,"div",159),e.k0s()()),2&b){const s=x.$implicit,y=e.XpG(2).$implicit,g=e.XpG(3);e.R7$(2),e.Y8G("ngIf",g.editingQuestionId===s._id&&("open-ended"===s.type||"Scale"===s.type)),e.R7$(),e.Y8G("ngIf",g.editingQuestionId!==s._id&&("open-ended"===s.type||"Scale"===s.type)),e.R7$(),e.Y8G("ngIf","media"===s.type),e.R7$(2),e.JRh(s.type),e.R7$(),e.Y8G("ngIf","media"===s.type),e.R7$(),e.Y8G("ngIf","open-ended"===s.type),e.R7$(),e.Y8G("ngIf",y.questions.length>1)}}function qr(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",195),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(3).$implicit;return e.DH7(I.newQuestionText,g)||(I.newQuestionText=g),e.Njj(g)}),e.bIt("change",function(){e.eBV(s);const g=e.XpG(3).$implicit,I=e.XpG(3);return e.Njj(I.saveNewQuestion(g))}),e.k0s()}if(2&b){const s=e.XpG(3).$implicit;e.R50("ngModel",s.newQuestionText)}}function ec(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",200),e.bIt("change",function(g){e.eBV(s);const I=e.XpG(4).$implicit,Le=e.XpG(3);return e.Njj(Le.beforeSelectFile(g,I))}),e.k0s()}}function La(b,x){1&b&&(e.j41(0,"div",201),e.nrm(1,"i",202),e.EFF(2," Uploading file... "),e.k0s())}function ja(b,x){if(1&b&&e.nrm(0,"img",151),2&b){const s=e.XpG(5).$implicit;e.Y8G("src",s.previewUrl,e.B4B)}}function tc(b,x){if(1&b&&e.nrm(0,"audio",152),2&b){const s=e.XpG(5).$implicit;e.Y8G("src",s.previewUrl,e.B4B)}}function Qi(b,x){if(1&b&&e.nrm(0,"video",153),2&b){const s=e.XpG(5).$implicit;e.Y8G("src",s.previewUrl,e.B4B)}}function ga(b,x){if(1&b&&(e.j41(0,"div",147),e.DNE(1,ja,1,1,"img",148)(2,tc,1,1,"audio",149)(3,Qi,1,1,"video",150),e.k0s()),2&b){const s=e.XpG(4).$implicit,y=e.XpG(3);e.R7$(),e.Y8G("ngIf",y.isImages(s.previewUrl)),e.R7$(),e.Y8G("ngIf",y.isAudio(s.previewUrl)),e.R7$(),e.Y8G("ngIf",y.isVideo(s.previewUrl))}}function Ba(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",203),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4).$implicit,I=e.XpG(3);return e.Njj(I.saveMediaQuestion(g))}),e.EFF(1," Save "),e.k0s()}if(2&b){const s=e.XpG(4).$implicit;e.Y8G("disabled",!s.newQuestionText&&!s.previewUrl)}}function ml(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",143)(1,"input",196),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(3).$implicit;return e.DH7(I.newQuestionText,g)||(I.newQuestionText=g),e.Njj(g)}),e.k0s(),e.DNE(2,ec,1,0,"input",197)(3,La,3,0,"div",198)(4,ga,4,3,"div",145)(5,Ba,2,1,"button",199),e.k0s()}if(2&b){const s=e.XpG(3).$implicit,y=e.XpG(3);e.R7$(),e.R50("ngModel",s.newQuestionText),e.R7$(),e.Y8G("ngIf",!s.previewUrl&&!y.isFileLoading),e.R7$(),e.Y8G("ngIf",y.isFileLoading),e.R7$(),e.Y8G("ngIf",s.previewUrl&&!y.isFileLoading),e.R7$(),e.Y8G("ngIf",s.previewUrl)}}function _l(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",204),e.bIt("click",function(g){return e.eBV(s),e.Njj(g.stopPropagation())}),e.j41(1,"div",96),e.bIt("click",function(g){e.eBV(s);const I=e.XpG(3).$implicit;return e.XpG(3).selectType(I,"open-ended"),e.Njj(g.stopPropagation())}),e.EFF(2,"Open-ended"),e.k0s(),e.j41(3,"div",96),e.bIt("click",function(g){e.eBV(s);const I=e.XpG(3).$implicit;return e.XpG(3).selectType(I,"media"),e.Njj(g.stopPropagation())}),e.EFF(4,"Media"),e.k0s()()}}function vl(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",127)(1,"div",128),e.DNE(2,qr,1,1,"input",189)(3,ml,6,5,"div",141),e.j41(4,"div",190)(5,"span",191),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2).$implicit,I=e.XpG(3);return e.Njj(I.toggleTypeDropdown(g))}),e.EFF(6),e.nrm(7,"i",192),e.k0s(),e.DNE(8,_l,5,0,"div",193),e.k0s()(),e.j41(9,"div",194),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2).$implicit,I=e.XpG(3);return e.Njj(I.removeNewQuestion(g))}),e.nrm(10,"i",188),e.k0s()()}if(2&b){const s=e.XpG(2).$implicit;
1e.R7$(2),e.Y8G("ngIf","open-ended"===s.selectedType),e.R7$(),e.Y8G("ngIf","media"===s.selectedType),e.R7$(3),e.SpI(" ",s.selectedType||"Select Type"," "),e.R7$(2),e.Y8G("ngIf",s.showTypeDropdown)}}function Va(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",122),e.DNE(1,Ls,10,7,"div",123)(2,vl,11,4,"div",154),e.j41(3,"button",98),e.bIt("click",function(){e.eBV(s);const g=e.XpG().$implicit,I=e.XpG(3);return e.Njj(I.openNewQuestionInput(g))}),e.nrm(4,"i",126),e.EFF(5," Add Question "),e.k0s()()}if(2&b){const s=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",s.questions),e.R7$(),e.Y8G("ngIf",s.showAddField)}}function na(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",112)(1,"div",113),e.bIt("click",function(){const g=e.eBV(s).$implicit,I=e.XpG(3);return e.Njj(I.toggleSection(g))}),e.j41(2,"div",114),e.nrm(3,"img",115),e.EFF(4),e.k0s(),e.j41(5,"div",116),e.nrm(6,"i",117),e.k0s()(),e.DNE(7,Va,6,2,"div",118),e.k0s()}if(2&b){const s=x.$implicit;e.R7$(4),e.SpI(" ",s.text," "),e.R7$(2),e.Y8G("ngClass",s.isOpen?"fas fa-minus":"fas fa-plus"),e.R7$(),e.Y8G("ngIf",s.isOpen)}}function nc(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",134)(1,"input",205,4),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(5);return e.DH7(I.editedQuestionTextWrap,g)||(I.editedQuestionTextWrap=g),e.Njj(g)}),e.bIt("keyup.enter",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.saveEditedQuestionWrap())})("blur",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.saveEditedQuestionWrap())}),e.k0s()()}if(2&b){const s=e.XpG(5);e.R7$(),e.R50("ngModel",s.editedQuestionTextWrap)}}function yl(b,x){if(1&b&&(e.j41(0,"div",136),e.EFF(1),e.k0s()),2&b){const s=e.XpG().$implicit;e.Y8G("title",s.question_text),e.R7$(),e.SpI(" ",s.question_text," ")}}function ic(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",137)(1,"i",138),e.bIt("click",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(4);return e.Njj(I.deleteWrap(g))}),e.k0s()()}}function Al(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",127)(1,"div",128),e.DNE(2,nc,3,1,"div",129)(3,yl,2,2,"ng-template",null,6,e.C5r),e.j41(5,"div",130),e.EFF(6),e.k0s(),e.j41(7,"div",131),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG(4);return e.Njj(I.startEditingWrap(g))}),e.nrm(8,"i",132),e.k0s(),e.DNE(9,ic,2,0,"div",133),e.k0s()()}if(2&b){const s=x.$implicit,y=x.index,g=e.sdS(4),I=e.XpG(4);e.R7$(2),e.Y8G("ngIf",I.editIndexWrap===y)("ngIfElse",g),e.R7$(4),e.JRh(s.question_type),e.R7$(3),e.Y8G("ngIf",I.wrap_up_and_final_thoughts.questions.length>1)}}function Wo(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",142,2),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(5);return e.DH7(I.newQuestionTextWrap,g)||(I.newQuestionTextWrap=g),e.Njj(g)}),e.bIt("keyup.enter",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.saveNewQuestionWrap())})("blur",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.onWrapInputBlur())}),e.k0s()}if(2&b){const s=e.XpG(5);e.R50("ngModel",s.newQuestionTextWrap)}}function ci(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",146),e.bIt("change",function(g){e.eBV(s);const I=e.XpG(6);return e.Njj(I.openNewQuestionInputWrap(g))})("blur",function(){e.eBV(s);const g=e.XpG(6);return e.Njj(g.handleEmptyInputWrap())}),e.k0s()}}function rr(b,x){if(1&b&&e.nrm(0,"img",151),2&b){const s=e.XpG(7);e.Y8G("src",s.previewUrlWrap,e.B4B)}}function Rr(b,x){if(1&b&&e.nrm(0,"audio",152),2&b){const s=e.XpG(7);e.Y8G("src",s.previewUrlWrap,e.B4B)}}function Kr(b,x){if(1&b&&e.nrm(0,"video",153),2&b){const s=e.XpG(7);e.Y8G("src",s.previewUrlWrap,e.B4B)}}function ei(b,x){if(1&b&&(e.j41(0,"div",147),e.DNE(1,rr,1,1,"img",148)(2,Rr,1,1,"audio",149)(3,Kr,1,1,"video",150),e.k0s()),2&b){const s=e.XpG(6);e.R7$(),e.Y8G("ngIf",s.isImage(s.previewUrlWrap)),e.R7$(),e.Y8G("ngIf",s.isAudio(s.previewUrlWrap)),e.R7$(),e.Y8G("ngIf",s.isVideo(s.previewUrlWrap))}}function rc(b,x){if(1&b&&(e.j41(0,"div",143),e.DNE(1,ci,1,0,"input",144)(2,ei,4,3,"div",145),e.k0s()),2&b){const s=e.XpG(5);e.R7$(),e.Y8G("ngIf",!s.previewUrlWrap),e.R7$(),e.Y8G("ngIf",s.previewUrlWrap)}}function ma(b,x){if(1&b&&(e.j41(0,"div",139)(1,"div",128),e.DNE(2,Wo,2,1,"input",140)(3,rc,3,2,"div",141),e.k0s()()),2&b){const s=e.XpG(4);
1e.R7$(2),e.Y8G("ngIf","open-ended"===s.selectedTypeWrap),e.R7$(),e.Y8G("ngIf","media"===s.selectedTypeWrap)}}function js(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",122),e.DNE(1,Al,10,4,"div",123)(2,ma,4,2,"div",124),e.j41(3,"button",98),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.openNewQuestionFieldWrap())}),e.nrm(4,"i",126),e.EFF(5," Add Question "),e.k0s()()}if(2&b){const s=e.XpG(3);e.R7$(),e.Y8G("ngForOf",s.wrap_up_and_final_thoughts.questions),e.R7$(),e.Y8G("ngIf",s.showAddWrap)}}function Wi(b,x){1&b&&e.nrm(0,"i",64)}function Ga(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",109)(2,"h2",110),e.EFF(3,"Finalize your Discussion Guide"),e.k0s(),e.j41(4,"p",111),e.EFF(5," Organize your interview questions based on the key information areas. "),e.k0s()(),e.j41(6,"div",112)(7,"div",113),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.toggleSectionWarm("welcome_and_Purpose"))}),e.j41(8,"div",114),e.nrm(9,"img",115),e.EFF(10),e.k0s(),e.j41(11,"div",116),e.nrm(12,"i",117),e.k0s()(),e.DNE(13,Qr,6,2,"div",118),e.k0s(),e.DNE(14,na,8,3,"div",119),e.j41(15,"div",112)(16,"div",113),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.toggleSectionWarm("wrap_up_and_final_thoughts"))}),e.j41(17,"div",114),e.nrm(18,"img",115),e.EFF(19),e.k0s(),e.j41(20,"div",116),e.nrm(21,"i",117),e.k0s()(),e.DNE(22,js,6,2,"div",118),e.k0s(),e.j41(23,"div",120)(24,"button",121),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.updateState(!1))}),e.EFF(25,"Previous"),e.k0s(),e.j41(26,"button",100),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.continueInterview())}),e.EFF(27," Continue to Interview Setup "),e.DNE(28,Wi,1,0,"i",101),e.k0s()()()}if(2&b){const s=e.XpG(2);e.R7$(10),e.SpI(" ",s.welcome_and_Purpose.section_title," "),e.R7$(2),e.Y8G("ngClass",s.sectionStates.welcome_and_Purpose?"fas fa-minus":"fas fa-plus"),e.R7$(),e.Y8G("ngIf",s.sectionStates.welcome_and_Purpose),e.R7$(),e.Y8G("ngForOf",s.core_discussion),e.R7$(5),e.SpI(" ",s.wrap_up_and_final_thoughts.section_title," "),e.R7$(2),e.Y8G("ngClass",s.sectionStates.wrap_up_and_final_thoughts?"fas fa-minus":"fas fa-plus"),e.R7$(),e.Y8G("ngIf",s.sectionStates.wrap_up_and_final_thoughts),e.R7$(4),e.Y8G("disabled",s.isContinueDisabled),e.R7$(2),e.Y8G("ngIf",s.isCreatingSurvey)}}function Hn(b,x){if(1&b&&(e.j41(0,"div",102),e.DNE(1,Ii,8,0,"section",103)(2,Ga,29,9,"div",14),e.k0s()),2&b){const s=e.XpG();e.R7$(),e.Y8G("ngIf",s.DGquestionLoading),e.R7$(),e.Y8G("ngIf",!s.DGquestionLoading)}}function _a(b,x){1&b&&e.nrm(0,"i",64)}function Wr(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",213),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.formatDG())}),e.EFF(1," Save "),e.DNE(2,_a,1,0,"i",101),e.k0s()}if(2&b){const s=e.XpG(2);e.Y8G("disabled",s.loadingDG)("ngClass",e.eq3(3,qn,s.isEditorEmpty())),e.R7$(2),e.Y8G("ngIf",s.loadingDG)}}function bl(b,x){1&b&&e.nrm(0,"i",64)}function ps(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",100),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.Continue())}),e.EFF(1," Continue to Interview Setup "),e.DNE(2,bl,1,0,"i",101),e.k0s()}if(2&b){const s=e.XpG(2);e.Y8G("disabled",s.isCreatingSurvey),e.R7$(2),e.Y8G("ngIf",s.isCreatingSurvey)}}function Gc(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",102)(2,"div",206)(3,"h2"),e.EFF(4,"Finalize your Discussion Guide"),e.k0s(),e.j41(5,"p",25),e.EFF(6,"Organize your interview questions based on the key information areas."),e.k0s()(),e.j41(7,"div",207)(8,"form",208)(9,"div",209),e.nrm(10,"ngx-editor-menu",210)(11,"ngx-editor",211),e.k0s()()(),e.j41(12,"div",120)(13,"button",121),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(14,"Previous"),e.k0s(),e.DNE(15,Wr,3,5,"button",212)(16,ps,3,2,"button",73),e.k0s()()()}if(2&b){const s=e.XpG();e.R7$(8),e.Y8G("formGroup",s.form),e.R7$(2),e.Y8G("editor",s.editor)("toolbar",s.toolbar),e.R7$(),e.Y8G("editor",s.editor),e.R7$(4),e.Y8G("ngIf",s.isDGEdited),e.R7$(),e.Y8G("ngIf",!s.isDGEdited)}}function Ua(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",214)(1,"div",215)(2,"h5",216),e.EFF(3,"Are you sure you want to delete this question?"),e.k0s(),e.j41(4,"div",217)(5,"button",218),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.cancelDelete())}),e.EFF(6,"Cancel"),e.k0s(),e.j41(7,"button",219),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.confirmDelete())}),e.EFF(8,"Delete"),e.k0s()()()()}}function va(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",214)(1,"div",215)(2,"h5",216),e.EFF(3,"Are you sure you want to delete this question?"),e.k0s(),e.j41(4,"div",217)(5,"button",218),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.cancelDeleteWarmup())}),e.EFF(6,"Cancel"),e.k0s(),e.j41(7,"button",219),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.deleteQuestionWelcome())}),e.EFF(8,"Delete"),e.k0s()()()()}}function xl(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",214)(1,"div",215)(2,"h5",216),e.EFF(3,"Are you sure you want to delete this question?"),e.k0s(),e.j41(4,"div",217)(5,"button",218),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.cancelDeleteWarmup())}),e.EFF(6,"Cancel"),e.k0s(),e.j41(7,"button",219),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.deleteQuestionWarmup())}),e.EFF(8,"Delete"),e.k0s()()()()}}function oc(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",214)(1,"div",215)(2,"h5",216),e.EFF(3,"Are you sure you want to delete this question?"),e.k0s(),e.j41(4,"div",217)(5,"button",218),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.cancelDeleteWrap())}),e.EFF(6,"Cancel"),e.k0s(),e.j41(7,"button",219),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.deleteQuestionWrap())}),e.EFF(8,"Delete"),e.k0s()()()()}}function Cl(b,x){if(1&b&&(e.j41(0,"div",252)(1,"div",253)(2,"h3",254),e.
1EFF(3,"Preview Discussion Guide"),e.k0s(),e.j41(4,"p",255),e.EFF(5," Review your complete discussion guide before proceeding to interview configuration. "),e.k0s(),e.nrm(6,"markdown",256),e.k0s()()),2&b){const s=e.XpG(2);e.R7$(6),e.Y8G("data",s.discussionGuide)}}function Oo(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",265)(1,"div",266)(2,"div",267)(3,"div",268)(4,"div",269),e.EFF(5),e.k0s()(),e.j41(6,"div",270),e.nrm(7,"img",271),e.k0s()(),e.j41(8,"div",272),e.EFF(9),e.k0s(),e.j41(10,"div",273)(11,"button",173),e.bIt("click",function(){const g=e.eBV(s).$implicit,I=e.XpG(4);return e.Njj(I.editPreQuestion(g))}),e.EFF(12,"Edit"),e.k0s(),e.j41(13,"button",274),e.bIt("click",function(){const g=e.eBV(s).$implicit,I=e.XpG(4);return e.Njj(I.deleteInterviewQuestions(g._id))}),e.EFF(14,"Delete"),e.k0s()()()()}if(2&b){const s=x.$implicit,y=e.XpG(4);e.R7$(5),e.JRh(s.questionRefernceNo),e.R7$(2),e.Mz_("alt","",s.type," icon"),e.Y8G("src",y.questionIcons[s.type],e.B4B),e.R7$(2),e.SpI(" ",s.text," ")}}function sc(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",275),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.openBranchingModal())}),e.nrm(1,"i",126),e.EFF(2," Add Screening Criteria "),e.k0s()}if(2&b){const s=e.XpG(4);e.AVh("disabled-btn",null==s.branchData?null:s.branchData.questionId)}}function Bs(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",276)(1,"a",277),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.selectQuestionType("open-ended"))}),e.nrm(2,"img",278),e.EFF(3,"\xa0 Open-ended "),e.k0s(),e.j41(4,"a",277),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.selectQuestionType("multiple-choice"))}),e.nrm(5,"img",279),e.EFF(6,"\xa0 Multiple Choice "),e.k0s(),e.j41(7,"a",277),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.selectQuestionType("numeric"))}),e.nrm(8,"img",280),e.EFF(9,"\xa0 Numeric "),e.k0s()()}}function hs(b,x){if(1&b){const s=e.RV6();e.qex(0),e.j41(1,"h3",254),e.EFF(2,"Pre Interview Questions"),e.k0s(),e.j41(3,"p",255),e.EFF(4,"Let\u2019s get to know you a bit before the chat"),e.k0s(),e.j41(5,"div",260),e.DNE(6,Oo,15,5,"div",261),e.k0s(),e.j41(7,"div",262)(8,"button",98),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.toggleDropdown())}),e.nrm(9,"i",126),e.EFF(10," Add Question "),e.k0s(),e.DNE(11,sc,3,2,"button",263)(12,Bs,10,0,"div",264),e.k0s(),e.bVm()}if(2&b){const s=e.XpG(3);e.R7$(6),e.Y8G("ngForOf",s.preInterviewQuestions),e.R7$(5),e.Y8G("ngIf",s.preInterviewQuestions.length>0),e.R7$(),e.Y8G("ngIf",s.showDropdown)}}function wl(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",292)(1,"div",293),e.nrm(2,"img",294),e.j41(3,"span",295),e.EFF(4,"Choices"),e.k0s()(),e.j41(5,"div",296)(6,"div",297)(7,"label",298),e.EFF(8,"Minimum Words"),e.k0s(),e.j41(9,"input",299),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.minWords,g)||(I.minWords=g),e.Njj(g)}),e.k0s()(),e.j41(10,"div",297)(11,"label",298),e.EFF(12,"Maximum Words"),e.k0s(),e.j41(13,"input",300),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.maxWords,g)||(I.maxWords=g),e.Njj(g)}),e.k0s()()()()}if(2&b){const s=e.XpG(4);e.R7$(9),e.R50("ngModel",s.minWords),e.R7$(4),e.R50("ngModel",s.maxWords)}}function Ro(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",310),e.bIt("click",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(5);return e.Njj(I.removeOption(g))}),e.nrm(1,"i",311),e.k0s()}}function fs(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",307)(1,"input",308),e.mxI("ngModelChange",function(g){const I=e.eBV(s).index,Le=e.XpG(5);return e.DH7(Le.multipleOptions[I],g)||(Le.multipleOptions[I]=g),e.Njj(g)}),e.bIt("keydown.enter",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.addOption())}),e.k0s(),e.DNE(2,Ro,2,0,"button",309),e.k0s()}if(2&b){const s=x.index,y=e.XpG(5);e.R7$(),e.Mz_("placeholder","Option ",s+1,""),e.R50("ngModel",y.multipleOptions[s]),e.R7$(),e.Y8G("ngIf",y.multipleOptions.length>1)}}function po(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",292)(1,"div",293),e.nrm(2,"img",294),e.j41(3,"span",295),e.EFF(4,"Choices"),e.k0s()(),e.DNE(5,fs,3,4,"div",301),e.j41(6,"button",173),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.addOption())}),e.EFF(7,"+ Add Option"),e.k0s(),e.j41(8,"div",302)(9,"h3",303),e.EFF(10,"Allow Multiple Choices"),e.k0s(),e.j41(11,"label",304)(12,"input",305),e.bIt("change",function(g){e.eBV(s);const I=e.XpG(4);return e.Njj(I.onChangeMultiChoice(g))}),e.k0s(),e.nrm(13,"span",306),e.k0s()()()}if(2&b){const s=e.XpG(4);e.R7$(5),e.Y8G("ngForOf",s.multipleOptions)("ngForTrackBy",s.trackByIndex),e.R7$(7),e.Y8G("checked",s.isMultipleChoices)}}function ho(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",292)(1,"div",293),e.nrm(2,"img",294),e.j41(3,"span",295),e.EFF(4,"Choices"),e.k0s()(),e.j41(5,"div",296
1)(6,"div",297)(7,"label",298),e.EFF(8,"Minimum Value"),e.k0s(),e.j41(9,"input",299),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.minValue,g)||(I.minValue=g),e.Njj(g)}),e.k0s()(),e.j41(10,"div",297)(11,"label",298),e.EFF(12,"Maximum Value"),e.k0s(),e.j41(13,"input",300),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.maxValue,g)||(I.maxValue=g),e.Njj(g)}),e.k0s()()()()}if(2&b){const s=e.XpG(4);e.R7$(9),e.R50("ngModel",s.minValue),e.R7$(4),e.R50("ngModel",s.maxValue)}}function wr(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",312),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.savePreInterviewQuestion())}),e.EFF(1," Save "),e.k0s()}if(2&b){const s=e.XpG(4);e.Y8G("disabled",!(null!=s.questionText&&s.questionText.trim()))}}function qo(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",312),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.updatePreInterviewQuestion())}),e.EFF(1," Update "),e.k0s()}if(2&b){const s=e.XpG(4);e.Y8G("disabled",!(null!=s.questionText&&s.questionText.trim()))}}function za(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",281)(1,"div",282)(2,"div",283)(3,"div",284),e.nrm(4,"img",285),e.k0s(),e.nrm(5,"div",47),e.j41(6,"div",286),e.EFF(7),e.k0s()(),e.j41(8,"textarea",287),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(3);return e.DH7(I.questionText,g)||(I.questionText=g),e.Njj(g)}),e.k0s()(),e.DNE(9,wl,14,2,"div",288)(10,po,14,3,"div",288)(11,ho,14,2,"div",288),e.j41(12,"div",289),e.DNE(13,wr,2,1,"button",290)(14,qo,2,1,"button",290),e.j41(15,"button",291),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.goBack())}),e.EFF(16,"Close"),e.k0s()()()}if(2&b){const s=e.XpG(3);e.R7$(4),e.Y8G("src",s.questionIcons[s.selectedinterviewQuestionType],e.B4B),e.R7$(3),e.SpI(" Q",s.nextQuestionNumber," "),e.R7$(),e.R50("ngModel",s.questionText),e.R7$(),e.Y8G("ngIf","open-ended"===s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf","multiple-choice"===s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf","numeric"===s.selectedinterviewQuestionType),e.R7$(2),e.Y8G("ngIf",!s.isEditing),e.R7$(),e.Y8G("ngIf",s.isEditing)}}function Ko(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",257)(1,"div")(2,"h3",313),e.EFF(3,"Screening Criteria"),e.k0s()(),e.j41(4,"div",314)(5,"p"),e.EFF(6," If question is "),e.j41(7,"strong"),e.EFF(8),e.k0s(),e.EFF(9," response "),e.j41(10,"strong"),e.EFF(11),e.k0s(),e.EFF(12,", then Go to "),e.j41(13,"strong"),e.EFF(14),e.k0s()(),e.j41(15,"div",273)(16,"button",315),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.editBranch(g.branchData))}),e.nrm(17,"i",316),e.k0s(),e.j41(18,"button",317),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.showPreDeleteModal=!0)}),e.nrm(19,"i",318),e.k0s()()()()}if(2&b){const s=e.XpG(3);e.R7$(8),e.JRh(s.getLogicQuestionText(null==s.branchData?null:s.branchData.questionId)),e.R7$(3),e.Lme("",null==s.branchData?null:s.branchData.condition," ",null==s.branchData?null:s.branchData.option,""),e.R7$(3),e.JRh(null==s.branchData?null:s.branchData.result)}}function Fo(b,x){if(1&b&&(e.j41(0,"div")(1,"div",257),e.DNE(2,hs,13,3,"ng-container",14)(3,za,17,8,"div",258),e.k0s(),e.DNE(4,Ko,20,4,"div",259),e.k0s()),2&b){const s=e.XpG(2);e.R7$(2),e.Y8G("ngIf",!s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf",s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf",null==s.branchData?null:s.branchData.questionId)}}function ac(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",322)(1,"input",323),e.bIt("change",function(g){const I=e.eBV(s).$implicit;return e.Njj(I.isSelected=g.target.checked)}),e.k0s(),e.j41(2,"label",324),e.EFF(3),e.k0s()()}if(2&b){const s=x.$implicit;e.R7$(),e.FS9("id",null==s?null:s.language),e.Y8G("checked",s.isSelected)("disabled",s.disabled),e.R7$(),e.FS9("value",null==s?null:s.language),e.FS9("for",null==s?null:s.language),e.R7$(),e.JRh(null==s?null:s.name)}}function $a(b,x){if(1&b&&(e.j41(0,"div",319)(1,"h3"),e.EFF(2,"Select Languages"),e.k0s(),e.j41(3,"p"),e.EFF(4,"Choose all languages that your AI interviewer should support. Participants will be able to select their preferred language."),e.k0s(),e.j41(5,"div",320),e.DNE(6,ac,4,6,"div",321),e.k0s()()),2&b){const s=e.XpG(2);e.R7$(6),e.Y8G("ngForOf",s.languages)}}function Yo(b,x){1&b&&(e.j41(0,"div",325)(1,"div",326)(2,"h3"),e.EFF(3,"Choose Interviewer Persona"),e.k0s(),e.j41(4,"div",327)(5,"div",328),e.nrm(6,"input",329),e.j41(7,"label",330)(8,"span",110),e.EFF(9,"Neutral Professional"),e.k0s(),e.j41(10,"span",331),e.EFF(11,"Objective, clear, and professional tone"),e.k0s()()(),e.j41(12,"div",328),e.nrm(13,"input",332),e.j41(14,"label",333)(15,"span",110),e.EFF(16,"Friendly Conversationalist"),e.k0s(),e.j41(17,"span",331),e.EFF(18,"Warm, approachable, and engaging"),e.k0s()()(),e.j41(19,"div",328),e.nrm(20,"input",334),e.j41(21,"label",335)(22,"span",110),e.EFF(23,"Industry Expert"),e.k0s(),e.j41(24,"span",331),e.EFF(25,"Knowledgeable, analytical, and insightful"),e.k0s()()(),e.j41(26,"div",328),e.nrm(27,"input",336),e.j41(28,"label",337)(29,"span",110),e.EFF(30,"Empathetic Listener"),e.k0s(),e.j41(31,"span",331),e.EFF(32,"Understanding, patient, and supportive"),e.k0s()()(),e.j41(33,"div",328),e.nrm(34,"input",336),e.j41(35,"label",337)(36,"span",110),e.EFF(37,"Direct Investigator"),e.k0s(),e.j41(38,"span",331),e.EFF(39,"Straightforward, efficient, and to-the-point"),e.k0s()()()()()())}function Qa(b,x){if(1&b&&(e.j41(0,"option",46),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.JRh(s)}}function Jo(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",338)(1,"h3",221),e.EFF(2,"Voice Settings"),e.k0s(),e.j41(3,"div",339)(4,"label"),e.EFF(5,"Speaking Speed"),e.k0s(),e.j41(6,"div",340)(7,"span",341),e.EFF(8,"Slow"),e.k0s(),e.j41(9,"div",342)(10,"input",343),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.speakingSpeed,g)||(I.speakingSpeed=g),e.Njj(g)}),e.bIt("input",function(g){e.eBV(s);const I=e.XpG(2);return e.Njj(I.updateLabelPosition(g))}),e.k0s(),e.j41(11,"div",344),e.EFF(12),e.k0s()(),e.j41(13,"span",341),e.EFF(14,"Fast"),e.k0s()()(),e.j41(15,"div",345)(16,"label"),e.EFF(17,"Tone"),e.k0s(),e.j41(18,"select",346),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.tone,g)||(I.tone=g),e.Njj(g)}),e.DNE(19,Qa,2,2,"option",32),e.k0s()(),e.j41(20,"div",347)(21,"button",348),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.testVoice())}),e.EFF(22,"\u25b6 Test Voice"),e.k0s(),e.j41(23,"p"),e.EFF(24,"Click to hear a sample of how your AI interviewer will sound with these settings."),e.k0s()()()}if(2&b){const s=e.XpG(2);e.R7$(10),e.R50("ngModel",s.speakingSpeed),e.R7$(),e.xc7("left",s.labelPosition,"%"),e.R7$(),e.SpI(" ",s.speakingSpeed.toFixed(1),"x "),e.R7$(6),e.R50("ngModel",s.tone),e.R7$(),e.Y8G("ngForOf",s.toneOptions)}}function ya(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",349)(1,"h3",350),e.EFF(2,"Configure Opening Message"),e.k0s(),e.j41(3,"p",351),e.EFF(4," This is the first message participants will hear when the interview begins. Choose a template or customize your own. "),e.k0s(),e.j41(5,"div",352)(6,"h4",353),e.EFF(7,"Templates"),e.k0s(),e.j41(8,"div",354)(9,"div",355),e.nrm(10,"input",356),e.j41(11,"label",357),e.EFF(12,"Formal Introduction"),e.k0s(),e.j41(13,"p",358),e.EFF(14," Hello, thank you for participating in this research interview. My name is [AI Name], and I'll be conducting this interview today. Your insights are valuable to us and will help improve our products and services. "),e.k0s()(),e.j41(15,"div",355),e.nrm(16,"input",359),e.j41(17,"label",360),e.EFF(18,"Casual Welcome"),e.k0s(),e.j41(19,"p"),e.EFF(20," Hi there! Thanks so much for taking the time to chat with me today. I'm [AI Name] and I'm excited to hear your thoughts and experiences. This is a relaxed conversation, so feel free to share whatever comes to mind. "),e.k0s()(),e.j41(21,"div",355),e.nrm(22,"input",361),e.j41(23,"label",362),e.EFF(24,"Brief Introduction"),e.k0s(),e.j41(25,"p"),e.EFF(26," Welcome to this interview. I'm [AI Name], your AI interviewer. Let's get started with our discussion. "),e.k0s()()()(),e.j41(27,"div",363)(28,"h4"),e.EFF(29,"Customize Message"),e.k0s(),e.j41(30,"textarea",364),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.customMessage,g)||(I.customMessage=g),e.Njj(g)}),e.k0s()(),e.j41(31,"div",365)(32,"h3"),e.EFF(33,"Tips for an effective opening:"),e.k0s(),e.j41(34,"ul")(35,"li"),e.EFF(36,"Introduce yourself and explain the purpose of the interview"),e.k0s(),e.j41(37,"li"),e.EFF(38,"Make participants feel comfortable to share openly"),e.k0s(),e.j41(39,"li"),e.EFF(40,"Mention the expected duration of the participant's session"),e.k0s(),e.j41(41,"li"),e.EFF(42,"Set clear expectations about the kind of input or views you want"),e.k0s(),e.j41(43,"li"),e.EFF(44,"Consider mentioning the language(s) if you're supporting multiple languages"),e.k0s()()()()}if(2&b){const s=e.XpG(2);e.R7$(30),e.R50("ngModel",s.customMessage)}}function Zo(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",376)(1,"span",377),e.EFF(2),e.k0s(),e.j41(3,"span",378),e.EFF(4),e.k0s(),e.j41(5,"button",379),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG(4);return e.Njj(I.removePronunciation(g))}),e.EFF(6,"\u2715"),e.k0s()()}if(2&b){const s=x.$implicit;e.R7$(2),e.JRh(s.word),e.R7$(2),e.JRh(s.pronunciation)}}function j(b,x){if(1&b&&(e.j41(0,"div",374),e.DNE(1,Zo,7,2,"div",375),e.k0s()),2&b){const s=e.XpG(3);e.R7$(),e.Y8G("ngForOf",s.pronunciationList)}}function ke(b,x){1&b&&(e.j41(0,"p",380),e.EFF(1,"No custom pronunciations added yet."),e.k0s())}function J(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",366)(1,"h3",367),e.EFF(2,"Pronunciation Dictionary"),e.k0s(),e.j41(3,"p",25),e.EFF(4," Add custom pronunciations for specific terms, names, or local words that the AI interviewer should pronounce correctly. "),e.k0s(),e.j41(5,"div",368)(6,"div",369)(7,"label"),e.EFF(8,"Word or Phrase"),e.k0s(),e.j41(9,"input",370),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.word,g)||(I.word=g),e.Njj(g)}),e.k0s()(),e.j41(10,"div",369)(11,"label"),e.EFF(12,"Pronunciation Guide"),e.k0s(),e.j41(13,"input",371),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.pronunciation,g)||(I.pronunciation=g),e.Njj(g)}),e.k0s()(),e.j41(14,"button",372),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.addPronunciation())}),e.EFF(15,"Add"),e.k0s()(),e.DNE(16,j,2,1,"div",373)(17,ke,2,0,"ng-template",null,7,e.C5r),e.k0s()}if(2&b){const s=e.sdS(18),y=e.XpG(2);e.R7$(9),e.R50("ngModel",y.word),e.R7$(4),e.R50("ngModel",y.pronunciation),e.R7$(3),e.Y8G("ngIf",y.pronunciationList.length>0)("ngIfElse",s)}}function ge(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",220)(2,"div",206)(3,"h2",221),e.EFF(4,"Configure Your AI Interviewer"),e.k0s(),e.j41(5,"p",25),e.EFF(6,"Customize how your AI interviewer will c
1onduct the interviews."),e.k0s()(),e.j41(7,"div",222)(8,"div",223)(9,"input",224),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("Discussion_Guide"))}),e.k0s(),e.j41(10,"label",225),e.nrm(11,"img",226),e.EFF(12,"Discussion Guide"),e.k0s(),e.j41(13,"input",227),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("Screener_Questions"))}),e.k0s(),e.j41(14,"label",228),e.nrm(15,"i",229),e.EFF(16,"Screener Questions"),e.k0s(),e.j41(17,"input",230),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("language"))}),e.k0s(),e.j41(18,"label",231),e.nrm(19,"i",232),e.EFF(20,"Language"),e.k0s(),e.j41(21,"input",233),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("persona"))}),e.k0s(),e.j41(22,"label",234),e.nrm(23,"i",235),e.EFF(24," Persona"),e.k0s(),e.j41(25,"input",236),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("voice"))}),e.k0s(),e.j41(26,"label",237),e.nrm(27,"i",238),e.EFF(28," Voice"),e.k0s(),e.j41(29,"input",239),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("opening"))}),e.k0s(),e.j41(30,"label",240),e.nrm(31,"i",241),e.EFF(32," Opening Message"),e.k0s(),e.j41(33,"input",242),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("pronunciation"))}),e.k0s(),e.j41(34,"label",243),e.nrm(35,"i",244),e.EFF(36," Pronunciation"),e.k0s()()(),e.DNE(37,Cl,7,1,"div",245)(38,Fo,5,3,"div",14)(39,$a,7,1,"div",246)(40,Yo,40,0,"div",247)(41,Jo,25,6,"div",248)(42,ya,45,1,"div",249)(43,J,19,4,"div",250),e.j41(44,"div",120)(45,"button",121),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(46,"Previous"),e.k0s(),e.j41(47,"button",251),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return"language"===g.activeTab&&g.saveLanguages(),e.Njj(g.updateState(!0))}),e.EFF(48,"Continue to Deployment"),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(9),e.Y8G("checked","Discussion_Guide"===s.activeTab),e.R7$(4),e.Y8G("checked","Screener_Questions"===s.activeTab),e.R7$(4),e.Y8G("checked","language"===s.activeTab),e.R7$(20),e.Y8G("ngIf","Discussion_Guide"===s.activeTab),e.R7$(),e.Y8G("ngIf","Screener_Questions"===s.activeTab),e.R7$(),e.Y8G("ngIf","language"===s.activeTab),e.R7$(),e.Y8G("ngIf","persona"===s.activeTab),e.R7$(),e.Y8G("ngIf","voice"===s.activeTab),e.R7$(),e.Y8G("ngIf","opening"===s.activeTab),e.R7$(),e.Y8G("ngIf","pronunciation"===s.activeTab)}}function st(b,x){1&b&&e.nrm(0,"i",64)}function Bt(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",381)(2,"div",206)(3,"h2",221),e.EFF(4,"Deploy Your AI Interviewer"),e.k0s(),e.j41(5,"p",25),e.EFF(6,"Choose how you want to deploy your AI interviewer to participants."),e.k0s()(),e.j41(7,"div",326)(8,"h3"),e.EFF(9,"Deployment Method"),e.k0s(),e.j41(10,"div",327)(11,"div",328),e.nrm(12,"input",382),e.j41(13,"label",330)(14,"span",110),e.EFF(15,"Generate Interview URL"),e.k0s(),e.j41(16,"span",331),e.EFF(17,"Create a unique link that participants can access in their browser"),e.k0s()()(),e.j41(18,"div",328),e.nrm(19,"input",383),e.j41(20,"label",333)(21,"span",110),e.EFF(22,"Zoom Integration"),e.k0s(),e.j41(23,"span",331),e.EFF(24,"Deploy as a Zoom bot that can join scheduled meetings"),e.k0s()()(),e.j41(25,"div",328),e.nrm(26,"input",384),e.j41(27,"label",335)(28,"span",110),e.EFF(29,"Microsoft Teams Integration"),e.k0s(),e.j41(30,"span",331),e.EFF(31,"Deploy as a Teams bot that can conduct interviews in your Teams environment"),e.k0s()()(),e.j41(32,"div",328),e.nrm(33,"input",385),e.j41(34,"label",337)(35,"span",110),e.EFF(36,"Google Meet Integration"),e.k0s(),e.j41(37,"span",331),e.EFF(38,"Deploy as a Meet bot that can join Google Calendar scheduled interviews"),e.k0s()()()()(),e.j41(39,"div",386)(40,"button",121),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(41,"Back to Configuration"),e.k0s(),e.j41(42,"button",100),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.createGuideBasedOnLanguage())}),e.EFF(43,"Deploy Interview "),e.DNE(44,st,1,0,"i",101),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(42),e.Y8G("disabled",s.createLink),e.R7$(2),e.Y8G("ngIf",s.createLink)}}function Zt(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",387)(2,"div",388),e.nrm(3,"i",389),e.k0s(),e.j41(4,"h2"),e.EFF(5,"Interview Ready to be deployed"),e.k0s(),e.j41(6,"p"),e.EFF(7,"Your AI interviewer is now ready to conduct interviews. Share the link below with participants."),e.k0s(),e.j41(8,"div",390)(9,"span",391),e.EFF(10),e.k0s(),e.j41(11,"button",392),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.copyNewLink(g.surveyLink))}),e.nrm(12,"i",393),e.k0s()(),e.j41(13,"button",394),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.goto())}),e.EFF(14,"View Analysis Dashboard"),e.k0s()()()}if(2&b){const s=e.XpG();e.R7$(9),e.FS9("title",s.surveyLink),e.R7$(),e.JRh(s.surveyLink)}}function yn(b,x){1&b&&e.nrm(0,"div",395)}function Ai(b,x){if(1&b&&(e.j41(0,"option",414),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("ngValue",s),e.R7$(),e.JRh(null==s?null:s.que_text)}}function Li(b,x){if(1&b&&(e.j41(0,"option",46),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.SpI(" ",s," ")}}function Ei(b,x){if(1&b&&(e.j41(0,"option",46),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.SpI(" ",s," ")}}function vi(b,x){if(1&b){const s=e.RV6();e.j41(0,"select",408),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.selectedChoiceText,g)||(I.selectedChoiceText=g),e.Njj(g)}),e.j41(1,"option",415),e.EFF(2,"Select an Option"),e.k0s(),e.DNE(3,Ei,2,2,"option",32),e.k0s()}if(2&b){const s=e.XpG(2);e.R50("ngModel",s.selectedChoiceText),e.R7$(3),e.Y8G("ngForOf",s.multipleOptions)}}function Jn(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",416),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.selectedChoiceText,g)||(I.selectedChoiceText=g),e.Njj(g)}),e.k0s()}if(2&b){const s=e.XpG(2);e.R50("ngModel",s.selectedChoiceText)}}function Hi(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",396)(1,"div",397)(2,"div",398)(3,"h3",399),e.nrm(4,"i",400),e.EFF(5," Screening Criteria"),e.k0s()(),e.j41(6,"div",401)(7,"div",402)(8,"select",403),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.DH7(I.selectedResultQuestion,g)||(I.selectedResultQuestion=g),e.Njj(g)}),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.onQuestionSelect())}),e.j41(9,"option",404),e.EFF(10,"Select a Question"),e.k0s(),e.DNE(11,Ai,2,2,"option",405),e.k0s()(),e.j41(12,"p",406),e.EFF(13,"If answer to this question"),e.k0s(),e.j41(14,"div",407)(15,"select",408),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.DH7(I.selectedCriteria,g)||(I.selectedCriteria=g),e.Njj(g)}),e.j41(16,"option",404),e.EFF(17,"Select a Criteria"),e.k0s(),e.DNE(18,Li,2,2,"option",32),e.k0s(),e.DNE(19,vi,4,2,"select",409)(20,Jn,1,1,"input",410),e.k0s(),e.j41(21,"label",411),e.EFF(22,"Then end the interview"),e.k0s()(),e.j41(23,"div",412)(24,"button",413),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.closeBranchingModal())}),e.EFF(25,"Close"),e.k0s(),e.j41(26,"button",218),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.saveBranching())}),e.EFF(27,"Save"),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(8),e.R50("ngModel",s.selectedResultQuestion),e.R7$(3),e.Y8G("ngForOf",s.logicQuestions),e.R7$(4),e.R50("ngModel",s.selectedCriteria),e.R7$(3),e.Y8G("ngForOf",s.branchCriteriaToShow),e.R7$(),e.Y8G("ngIf",s.isMCQSelected&&"not empty"!==s.selectedCriteria),e.R7$(),e.Y8G("ngIf",!s.isMCQSelected&&"not empty"!==s.selectedCriteria)}}function Pi(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",214)(1,"div",215)(2,"h5",216),e.EFF(3,"Are you sure, you want to delete this question branch?"),e.k0s(),e.j41(4,"div",217)(5,"button",218),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.cancelDeleteBranch())}),e.EFF(6,"Cancel"),e.k0s(),e.j41(7,"button",219),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.deleteBranch())}),e.EFF(8,"Delete"),e.k0s()()()()}}let bi=(()=>{class b{constructor(s,y,g,I,Le){this.surveyService=s,this.router=y,this.tostr
1=g,this.cdr=I,this.dashboardService=Le,this.isLoading=!1,this.activeTab="Screener_Questions",this.showUrlModal=!1,this.prompt="",this.interviewType="",this.step=1,this.url="",this.isActive=!0,this.urlText="",this.urlTouched=!1,this.questions=[],this.generatedQuestions=!1,this.selectAllQuestions=!0,this.unselectAllQuestions=!1,this.generatedSurveyId="",this.isCreatingSurvey=!1,this.tempUrl="",this.interviewDuration=30,this.durationOptions=Array.from({length:29},(et,wt)=>wt+2),this.researchSummary="",this.isIndeterminate=!1,this.hasGeneratedResult=!1,this.generatedTitle="",this.discussionGuide="",this.keyInformationAreas=[],this.selectAllKeyAreas=!0,this.isKeyAreaIndeterminate=!1,this.showDiscussionGuide=!1,this.markdown="",this.editedIndex=null,this.editableName="",this.loadingDG=!1,this.originalDGText="",this.isDGEdited=!1,this.ongoingSurveysArr=[],this.length=0,this.pageIndex=0,this.pageSize=5,this.isDGChangedQuestion=!1,this.isLoadingKIA=!1,this.isFirstLoad=!1,this.isBackToDashboard=!1,this.showPreDeleteModal=!1,this.languages=[{language:"English",name:"English",isSelected:!0,disabled:!1},{language:"Hindi",name:"\u0939\u093f\u0928\u094d\u0926\u0940",isSelected:!0,disabled:!1},{language:"Marathi",name:"\u092e\u0930\u093e\u0920\u0940",isSelected:!1,disabled:!0},{language:"Bengali",name:"\u09ac\u09be\u0982\u09b2\u09be",isSelected:!1,disabled:!0},{language:"Tamil",name:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",isSelected:!1,disabled:!0},{language:"Telugu",name:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",isSelected:!1,disabled:!0},{language:"Kannada",name:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",isSelected:!1,disabled:!0},{language:"Gujarati",name:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",isSelected:!1,disabled:!0},{language:"Indonesian",name:"bahasa Indonesia",isSelected:!1,disabled:!0},{language:"Spanish",name:"Spanish",isSelected:!1,disabled:!0},{language:"French",name:"Fran\xe7ais",isSelected:!1,disabled:!0},{language:"Portuguese",name:"portugu\xeas",isSelected:!1,disabled:!0},{language:"Persian",name:"\u0641\u0627\u0631\u0633\u06cc",isSelected:!1,disabled:!0},{language:"Arabic",name:"\u0639\u0631\u0628\u064a",isSelected:!1,disabled:!0},{language:"Malayalam",name:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",isSelected:!1,disabled:!1},{language:"Punjabi",name:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",isSelected:!1,disabled:!0},{language:"Odia",name:"\u0b13\u0b21\u0b3f\u0b06",isSelected:!1,disabled:!0},{language:"Afrikaans",name:"Afrikaans",isSelected:!1,disabled:!0},{language:"Urdu",name:"\u0627\u0631\u062f\u0648",isSelected:!1,disabled:!0}],this.topics=[{topic:"Create a discussion guide for a depth interview to understand skincare routines and product preferences among women aged 25 to 40 living in New York City. The objective is to explore their approach to skincare, views on clean beauty, and openness to trying emerging brands."}],this.stepLabels=["Research Setup","Key Information Areas","Question Development","Discussion Guide","AI Interviewer Setup","Deploy & Launch"],this.showDiscussionGuideLoading=!1,this.dgisLoading=!1,this.initialKeyInformationAreas=[],this.keyAreasChanged=!1,this.toolbar=[["bold","italic","underline","strike"],["code","blockquote"],["ordered_list","bullet_list"],[{heading:["h1","h2","h3"]}],["link"],["text_color","background_color"],["align_left","align_center","align_right"]],this.isSurveyCreated=!1,this.surveyLink="",this.createSurveyLink=!1,this.linkName="test",this.surveyDetails={},this.isLinkCreated=!1,this.createGuideModel=!1,this.phoneNumbersArr=[],this.gupshupPhone="",this.createLink=!1,this.voiceTabDisabled=!1,this.welcome_and_Purpose={questions:[]},this.warm_Up_and_Context={questions:[]},this.core_discussion=[],this.wrap_up_and_final_thoughts={questions:[]},this.DGquestionLoading=!1,this.selectedTemplate="",this.customMessage="Hello, thank you for participating in this research interview. My name is [AI Name], and I'll be conducting this interview today. Your insights are valuable to us and will help improve our products and services.",this.word="",this.pronunciation="",this.pronunciationList=[],this.speakingSpeed=1,this.tone="Professional",this.toneOptions=["Professional","Friendly","Casual"],this.discussionSections=[],this.showDeleteModal=!1,this.questionToDelete=null,this.editingQuestionId=null,this.sectionStates={welcome_and_Purpose:!0,warm_Up_and_Context:!0,wrap_up_and_final_thoughts:!0},this.showAddQuestion=!1,this.newQuestionType="open-ended",this.showAddField=!1,this.showAddWarmup=!1,this.showTypeDropdown=!1,this.selectedType="open-ended",this.showDeleteModalWelcome=!1,this.questionToDeleteWarm=null,this.editIndex=null,this.editedQuestionText="",this.originalQuestionText="",this.showDeleteModalWarmup=!1,this.previewUrl="",this.newQuestionText="",this.showAddWrap=!1,this.showDeleteModalWrap=!1,this.questionToDeleteWrap=null,this.editIndexWrap=null,this.editedQuestionTextWrap="",this.newQuestionTextWrap="",this.previewUrlWrap=null,this.selectedTypeWrap="open-ended",this.isFileLoading=!1,this.editingMediaId=null,this.editableMedia={question:"",previewUrl:"",mediaType:"",url:""},this.selectedinterviewQuestionType="",this.selectedInterviewId="",this.openEndedText="",this.minWords=1,this.maxWords=100,this.numericText="",this.minValue=1,this.maxValue=100,this.multipleChoiceQuestionText="",this.multipleOptions=[""],this.isMultipleChoices=!1,this.questionText="",this.showDropdown=!1,this.questionIcons={"open-ended":"../assets/icons/Audio text.png","multiple-choice":"https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/i-exam-multiple-choice-svgrepo-com (1) 1.png",numeric:"https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/123.svg"},this.preInterviewQuestions=[],this.isEditing=!1,this.animatedText="",this.isTyping=!1,this.branchingQuestion=[],this.questionSections=[],this.logicQuestions=[],this.connectedTo=[],this.choiceText="",this.selectedQuestion=null,this.selectedBranchQuestion=null,this.selectedChoiceText="",this.selectedResultQuestion=null,this.currentQuestionText="",this.currentQuestionType="",this.currentQuestionOptions=[],this.selectedQuestionForBranch=null,this.selectedCriteria=null,this.allowedBranchTypes=["Nominal","Numeric","open-ended"],this.branchData=null,this.branchCriteria=["is","isn't","contains","doesn't contain"],this.branchCriteriaText=["contains","doesn't contain","not empty"],this.questionSection=[],this.isMCQSelected=!1,this.numericBranchCriteria=["Greater than","Less than","Greater than or equal to","Less than or equal to","Equal to","Not equal to"],this.branchCriteriaToShow=[],this.isBranchingModalOpen=!1}ngOnInit(){this.editor=new ur.KE,this.isFirstLoad=!0,this.getAllSurveys()}getAllSurveys(){this.dashboardService.getAllSurveys().subscribe(s=>{},s=>{console.error(s)})}toggleSelectAllKeyAreas(s){const y=s.checked??s.target?.checked;this.selectAllKeyAreas=y,this.isKeyAreaIndeterminate=!1,this.keyInformationAreas.forEach(g=>
1{g&&(g.selected=y)})}onKeyAreaChange(){const s=this.keyInformationAreas.length,y=this.keyInformationAreas.filter(g=>g&&g.selected).length;y===s?(this.selectAllKeyAreas=!0,this.isKeyAreaIndeterminate=!1):0===y?(this.selectAllKeyAreas=!1,this.isKeyAreaIndeterminate=!1):(this.selectAllKeyAreas=!1,this.isKeyAreaIndeterminate=!0)}generateDiscussionGuide(s){this.showDiscussionGuideLoading=!0,s?setTimeout(()=>{this.showDiscussionGuideLoading=!1,this.showDiscussionGuide=!0,this.keyAreasChanged=!1,this.initialKeyInformationAreas=[...this.keyInformationAreas]},2e3):(this.showDiscussionGuideLoading=!1,this.showDiscussionGuide=!0,this.keyAreasChanged=!1,this.initialKeyInformationAreas=[...this.keyInformationAreas])}GenerateQue(){var s=this;return(0,ie.A)(function*(){s.isBackToDashboard=!0,s.showDiscussionGuide=!1,s.isLoading=!0,s.researchSummary="";const g=JSON.parse(localStorage.getItem("currentUser")).email,I=new FormData;I.append("prompt",s.prompt),I.append("url",s.url),I.append("email",g),I.append("interview_type",s.interviewType),I.append("interview_duration",String(s.interviewDuration)),s.surveyService.generateDiscussionGuide(I).subscribe(function(){var Le=(0,ie.A)(function*(et){s.isBackToDashboard=!0,s.isLoadingKIA=!0,s.isLoading=!1,s.updateState(!0),s.researchSummary=et.research_summary,s.researchSummary&&s.startTypingEffect(s.researchSummary),s.callKIA({prompt:s.prompt,research_objective:s.researchSummary,email:g,title:et.title,interview_type:s.interviewType,interview_duration:s.interviewDuration}),s.generatedSurveyId=et._id,s.isLoading=!1,s.hasGeneratedResult=!0,localStorage.setItem("surveyId",et._id),localStorage.setItem("surveyName",et?.name),localStorage.setItem("surveyLanguages",et?.languages?.toString()||"English"),localStorage.setItem("isDGSurevy","yes"),localStorage.setItem("isDGPaste","no")});return function(et){return Le.apply(this,arguments)}}(),Le=>{s.tostr.error(Le),console.error("Error generating response:",Le),s.isLoading=!1,s.isBackToDashboard=!1})})()}callKIA(s){this.isLoadingKIA=!0,JSON.parse(localStorage.getItem("currentUser")),new FormData,this.surveyService.getKIA(s).subscribe(Le=>{console.log(Le),this.keyInformationAreasString=JSON.stringify(Le?.key_information_areas),this.keyInformationAreas=Le?.key_information_areas||[],this.initialKeyInformationAreas=[...this.keyInformationAreas],localStorage.setItem("surveyId",Le._id),localStorage.setItem("surveyName",Le?.name),localStorage.setItem("surveyLanguages",Le?.languages?.toString()||"English"),localStorage.setItem("isDGSurevy","yes"),this.isLoading=!1,this.hasGeneratedResult=!0,this.isLoadingKIA=!1},Le=>{this.tostr.error("KIA generation failed"),this.isLoading=!1})}confirmUrl(){this.isValidUrl(this.tempUrl)?(this.url=this.tempUrl,this.showUrlModal=!1,this.urlTouched=!1,this.tempUrl=""):this.urlTouched=!0}isValidUrl(s){try{const y=new URL(s);return"http:"===y.protocol||"https:"===y.protocol}catch{return!1}}cancelUrl(){this.tempUrl="",this.showUrlModal=!1}removeUrl(){this.prompt=this.prompt.replace(this.url,"").trim(),this.url=""}createSurvey(){this.isCreatingSurvey=!0;const y=JSON.parse(localStorage.getItem("currentUser")).email;this.surveyService.createAIDiscussionGuideSurvey({_id:this.generatedSurveyId,email:y}).subscribe(I=>{this.surveyResponse=I,this.surveyID=I._id,localStorage.setItem("surveyId",I._id),localStorage.setItem("surveyName",I?.name),localStorage.setItem("surveyLanguages",I?.languages?.toString()||"English"),localStorage.setItem("isDGSurevy","yes"),this.isSurveyCreated=!0,this.updateDGSurvey()},I=>{this.isCreatingSurvey=!1})}editArea(s){this.editedIndex=s,this.editableName=this.keyInformationAreas[s]}saveArea(s){const g=this.editableName.trim();g?this.keyInformationAreas[s]=g:this.keyInformationAreas.splice(s,1),this.editedIndex=null,this.checkForChanges()}deleteArea(s){this.keyInformationAreas.length<=5?this.tostr.error("Minimum 5 key information areas required."):(this.keyInformationAreas.splice(s,1),this.checkForChanges())}addKeyInformationArea(){null!==this.editedIndex&&""===this.keyInformationAreas[this.editedIndex]?.trim()||(this.keyInformationAreas.push(""),this.editedIndex=this.keyInformationAreas.length-1,this.editableName="",this.checkForChanges(),setTimeout(()=>{this.inputRef?.nativeElement?.focus()}))}regenerateDG(){this.keyInformationAreas.length<5&&this.tostr.error("Minimum 5 key information areas required.")}arraysAreEqual(s,y){return s.length===y.length&&s.every((g,I)=>g===y[I])}checkForChanges(){this.keyAreasChanged=!this.arraysAreEqual(this.keyInformationAreas,this.initialKeyInformationAreas),this.keyAreasChanged&&(this.showDiscussionGuide=!1)}isEditorEmpty(){return 0===(this.form.get("editorContent")?.value||"").replace(/<[^>]+>/g,"").trim().length}formatDG(){if(this.isEditorEmpty())return;this.loadingDG=!0;const s=this.form.controls.editorContent.value,g=(new jr.A).turndown(s);this.surveyService.updateDG({_id:this.surveyID,discussion_guide_md:g}).subscribe(et=>
1{console.log(et),this.getSurveyDetails(),this.tostr.success("Discussion Guide updated successfully"),this.isCreatingSurvey=!1,this.loadingDG=!1,this.isDGEdited=!1})}Continue(){this.updateState(!0)}selctTopic(s){this.prompt=s?.topic}moveUp(s){if(s>0){const y=this.keyInformationAreas[s];this.keyInformationAreas[s]=this.keyInformationAreas[s-1],this.keyInformationAreas[s-1]=y}this.checkForChanges()}moveDown(s){if(s<this.keyInformationAreas.length-1){const y=this.keyInformationAreas[s];this.keyInformationAreas[s]=this.keyInformationAreas[s+1],this.keyInformationAreas[s+1]=y}this.checkForChanges()}onContinue(){this.getNewKIAQuestions()}onDGChange(){this.isDGEdited=(this.form.controls.editorContent.value||"").trim()!==this.originalDGText.trim()}getPhoneNumbers(){this.surveyService.getPhoneNumbers().subscribe(s=>{s&&(this.phoneNumbersArr=s.whatsAppPhones,0!=this.phoneNumbersArr&&(this.gupshupPhone=this.phoneNumbersArr[0].phone))},s=>{console.error(s)})}getSurveyDetails(){var s=this;this.DGquestionLoading=!0,this.core_discussion=[],this.surveyService.getSurveyDetails(localStorage.getItem("surveyId")).then(function(){var y=(0,ie.A)(function*(g){s.surveyDetails=g,s.branchData=g?.preInterviewQuestionBranch||null,console.log("Survey Details: ",s.surveyDetails),g?.dgLanguage&&Array.isArray(g.dgLanguage)&&g.dgLanguage.length>0&&(s.languages=s.languages.map(I=>({...I,isSelected:g.dgLanguage.includes(I.language)}))),s.welcome_and_Purpose=g?.welcome_and_Purpose,console.log("welcome",s.welcome_and_Purpose),s.warm_Up_and_Context=g?.warm_Up_and_Context,s.wrap_up_and_final_thoughts=g?.wrap_up_and_final_thoughts,s.surveyDetails?.sections?.map(I=>{I?.questions?.map(Le=>{Le.questions=[],s.core_discussion.push(Le)})}),s.getKIAQuestions(),s.voiceTabDisabled=!(g?.key_information_areas&&g.key_information_areas.length>0),s.surveyID=g?._id,setTimeout(()=>{s.DGquestionLoading=!1,s.isLoading=!1},2e3)});return function(g){return y.apply(this,arguments)}}())}getOnGoingSurveys(){this.surveyID=localStorage.getItem("surveyId"),this.isLoading=!0,this.surveyService.getOnGoingSurveysPage(this.surveyID,this.pageIndex*this.pageSize,this.pageSize).subscribe(s=>{console.log(s),this.ongoingSurveysArr=s.data,console.log(s),this.length=s.count,this.isLoading=!1},s=>{this.isLoading=!1,console.error(s)})}createDicussionGuide(){this.createLink=!0,this.surveyService.updateSurveyStatus({id:this.surveyID,is_published:!0}).subscribe(wt=>{this.getSurveyDetails()},wt=>{console.error(wt),this.tostr.error("Failed to publish survey.")});const y=localStorage.getItem("surveyId");if(!y)return void this.tostr.error("Survey ID not found.");const Le=`campaign_${(this.ongoingSurveysArr?.length||0)+1}`;this.surveyService.createDicussionGuide({surveyId:y,campaignName:Le}).subscribe(wt=>{this.isLinkCreated=!0,this.linkName=Le,this.surveyLink=wt.collectorLink,this.createLink=!1,this.updateState(!0)},wt=>{console.error(wt),this.createSurveyLink=!1,this.tostr.error(wt.message),this.createLink=!1})}updateDGSurvey(){this.isCreatingSurvey=!0;const y=JSON.parse(localStorage.getItem("currentUser")).email,g={_id:this.surveyID,email:y,discussion_guide_md:this.discussionGuide,key_information_areas:JSON.parse(this.keyInformationAreasString)};this.surveyService.updateDGSurvey(g).subscribe(I=>{this.tostr.success("Discussion Guide created successfully"),this.isCreatingSurvey=!1,this.updateState(!0),this.isCreatingSurvey=!1},I=>{this.isCreatingSurvey=!1})}copyNewLink(s){navigator.clipboard.writeText(s),this.tostr.success("Copied")}goto(){const s=localStorage.getItem("surveyId");this.surveyResponse&&(localStorage.setItem("surveyId",this.surveyResponse._id),localStorage.setItem("surveyName",this.surveyResponse?.name),localStorage.setItem("surveyLanguages",this.surveyResponse?.languages?.toString()||"English"),localStorage.setItem("isDGSurevy","yes")),this.router.navigate(["/analysis",s])}updateState(s){2==this.step&&this.getSurveyDetails(),s?this.step++:this.step--}setActiveTab(s){this.activeTab=s}selectTemplate(s){this.selectedTemplate=s,"formal"===s?this.customMessage="Hello, thank you for participating in this research interview. My name is [AI Name], and I'll be conducting this interview today. Your insights are valuable to us and will help improve our products and services.":"casual"===s?this.customMessage="Hi there! Thanks so much for taking the time to chat with me today. I'm [AI Name] and I'm excited to hear your thoughts and experiences. This is a relaxed conversation, so feel free to share whatever comes to mind.":"brief"===s&&(this.customMessage="Welcome to this interview. I'm [AI Name], your AI interviewer. Let's get started with our discussion.")}addPronunciation(){this.word.trim()&&this.pronunciation.trim()&&(this.pronunciationList.push({word:this.word,pronunciation:this.pronunciation}),this.word="",this.pronunciation="")}removePronunciation(s){this.pronunciationList.splice(s,1)}testVoice(){console.log("Testing voice with speed:",this.speakingSpeed,"and tone:",this.tone)}addQuestion(s){s.questions.push({text:"New question...",type:"Open-ended"})}prepareDiscussionSections(s){this.discussionSections=[],Object.keys(s).forEac
1h(y=>{const g=s[y];g.key_information_areas?g.key_information_areas.forEach(I=>{this.discussionSections.push({title:I.kia_title,questions:I.questions.map(Le=>({text:Le.question_text,type:Le.question_type})),open:!0})}):this.discussionSections.push({title:g.section_title,questions:g.questions.map(I=>({text:I.question_text,type:I.question_type})),open:!0})})}toggleTypeDropdown(s){s.showTypeDropdown=!s.showTypeDropdown}selectType(s,y){s.selectedType=y,s.showTypeDropdown=!1,s.newQuestionText="",s.selectedFile=null,s.previewUrl=null}openNewQuestionInput(s){s.selectedType="open-ended",s.showAddField=!0,s.newQuestionText=""}handleMediaUpload(s,y){const g=s.target.files[0];if(!g)return;const I=new FileReader;I.onload=()=>{y.previewUrl=I.result},I.readAsDataURL(g)}saveNewQuestion(s){const y=localStorage.getItem("surveyId");if("open-ended"===s.selectedType&&!s.newQuestionText?.trim())return;const g=this.core_discussion.reduce((Le,et)=>Le+et.questions.filter(wt=>"media"===wt.type).length,0);if("media"===s.selectedType&&g>=1)return void this.tostr.error("Only one media question is allowed in the entire DG.");const I={interview_id:y,KIA_id:s._id,type:s.selectedType||"open-ended",question:"media"===s.selectedType?s.selectedFile?.name:s.newQuestionText};if("media"===s.selectedType&&s.selectedFile){const Le=new FormData;Object.keys(I).forEach(et=>Le.append(et,I[et])),Le.append("file",s.selectedFile),this.surveyService.saveKIAQuestions(Le).subscribe({next:et=>{s.questions.push({question:s.selectedFile.name,type:"media"}),s.newQuestionText="",s.previewUrl=null,s.selectedFile=null,s.showAddField=!1,this.isDGChangedQuestion=!0},error:et=>console.error(et)})}else this.surveyService.saveKIAQuestions(I).subscribe({next:Le=>{s.questions.push({question:s.newQuestionText,type:"open-ended"}),s.newQuestionText="",s.showAddField=!1,this.getKIAQuestions()},error:Le=>console.error(Le)})}cancelAdd(s){s.newQuestionText="",s.previewUrl=null,s.selectedFile=null,s.showAddField=!1}handleMediaUploadAndSave(s,y){const g=s.target.files[0];if(!g)return;y.selectedFile=g;const I=new FileReader;I.onload=()=>{y.previewUrl=I.result,this.saveNewQuestion(y),this.isDGChangedQuestion=!0},I.readAsDataURL(g)}getNewKIAQuestions(){if(this.dgisLoading=!0,this.DGquestionLoading=!0,!localStorage.getItem("surveyId"))return;let y={research_summary:this.researchSummary,kia_list:this.keyInformationAreas,surveyId:localStorage.getItem("surveyId"),interview_type:this.interviewType,interview_duration:this.interviewDuration};this.surveyService.getKIAQuestion(y).subscribe({next:g=>{console.log("Fetched questions:",g),this.core_discussion.forEach(I=>I.isOpen=!0),this.core_discussion.forEach(I=>I.questions=[]);for(let I of g)for(let Le of this.core_discussion)I?.KIA_id?.toString()==Le?._id?.toString()&&Le.questions.push(I);console.log("-------------------------------------",this.core_discussion),this.DGquestionLoading=!1,this.getSurveyDetails(),this.isLoading=!1,this.step=3,this.dgisLoading=!1},error:g=>console.error("Error fetching KIA questions:",g)})}getKIAQuestions(){const s=localStorage.getItem("surveyId");s&&this.surveyService.getKIAQuestions(s).subscribe({next:y=>{console.log("Fetched questions:",y),this.core_discussion.forEach(g=>g.isOpen=!0),this.core_discussion.forEach(g=>g.questions=[]);for(let g of y)for(let I of this.core_discussion)g?.KIA_id?.toString()==I?._id?.toString()&&I.questions.push(g);console.log("-------------------------------------",this.core_discussion)},error:y=>console.error("Error fetching KIA questions:",y)})}openDeleteModal(s,y,g){this.questionToDelete={index:s,questionId:y,questionsArray:g},this.showDeleteModal=!0}confirmDelete(){if(!this.questionToDelete)return;const{index:s,questionId:y,questionsArray:g}=this.questionToDelete;this.surveyService.deleteKIAQuestion(y).subscribe({next:()=>{this.tostr.success("Question deleted successfully!"),g.splice(s,1),this.questionToDelete=null,this.showDeleteModal=!1,this.isDGChangedQuestion=!0},error:I=>console.error("Error deleting question:",I)})}cancelDelete(){this.questionToDelete=null,this.showDeleteModal=!1}startEditing(s){this.editingQuestionId=s,setTimeout(()=>{this.editInputRef?.nativeElement?.focus()})}cancelEditing(){this.editingQuestionId=null}saveEditedQuestion(s,y){const g=s.questions[y];if(!g)return;const I=(g.question||"").trim();if(!I)return s.questions.splice(y,1),this.editingQuestionId=null,void(g._id&&this.surveyService.deleteKIAQuestion(g._id).subscribe({next:()=>{},error:Le=>console.error("Error deleting empty question:",Le)}));g._id?this.surveyService.updateKIAQuestion(g._id,{question:I}).subscribe({next:()=>{this.tostr.success("Question updated successfully!"),this.editingQuestionId=null},error:et=>console.error("Error updating question:",et)}):this.editingQuestionId=null}toggleSection(s){s.isOpen=!s.isOpen}toggleSectionWarm(s){this.sectionStates[s]=!this.sectionStates[s]}cancelNewQuestion(){this.showAddQuestion=!1,this.newQuestionText="",this.newQuestionType="open-ended"}openNewQuestionInputWelcome(){this.showAddField=!0,setTimeout(()=>{this.inputRef?.nativeElement?.focus()})}onWelcomeInputBlur(){this.newQuestionText?.trim()?this.saveNewQuestionwelcome():(this.showAddField=!1,this.selectedType="open-ended")}saveNewQuestionwelcome(){if(!this.newQuestionText.trim()&&"media"!==this.selectedType)return;const s={question_text:"media"===this.selectedType?this.previewUrl:this.newQuestionText.trim(),question_type:this.selectedType,probes:[]};this.welcome_and_Purpose.questions.push(s),this.newQuestionText="",this.previewUrl=null,this.selectedType="open-ended",this.showAddField=!1,this.update_welcome_and_Purpose(),this.isDGChangedQuestion=!0}
1startEditingWelcome(s){this.editIndex=s,this.originalQuestionText=this.welcome_and_Purpose.questions[s].question_text,this.editedQuestionText=this.originalQuestionText,setTimeout(()=>{this.editInputRef?.nativeElement?.focus()})}saveEditedQuestionWelcome(){if(null!==this.editIndex){const s=this.welcome_and_Purpose.questions[this.editIndex],y=s.question_text.trim();if(!y)return this.welcome_and_Purpose.questions.splice(this.editIndex,1),this.editIndex=null,this.update_welcome_and_Purpose(),void(this.isDGChangedQuestion=!0);s.question_text=y,this.update_welcome_and_Purpose(),this.isDGChangedQuestion=!0,this.editIndex=null}}cancelEditWelcome(){this.editIndex=null,this.editedQuestionText=""}deleteWelcome(s){this.questionToDeleteWarm=s,this.showDeleteModalWelcome=!0}deleteQuestionWelcome(){null!==this.questionToDeleteWarm&&(this.welcome_and_Purpose.questions.splice(this.questionToDeleteWarm,1),this.questionToDeleteWarm=null),this.update_welcome_and_Purpose(),this.showDeleteModalWelcome=!1,this.isDGChangedQuestion=!0}cancelDeleteWelcome(){this.questionToDeleteWarm=null,this.showDeleteModalWelcome=!1}handleMediaUploadAndSaveWelcome(s){const y=s.target.files[0];if(!y)return;const g=new FileReader;g.onload=()=>{this.previewUrl=g.result,this.saveNewQuestionwelcome(),this.isDGChangedQuestion=!0},g.readAsDataURL(y)}update_welcome_and_Purpose(){this.surveyService.updateDG({_id:this.surveyID,welcome_and_Purpose:this.welcome_and_Purpose}).subscribe({next:y=>{console.log("Welcome & Purpose section updated successfully:",y),this.isDGChangedQuestion=!0},error:y=>{console.error("Error updating section:",y)}})}updateDG(){this.surveyService.updateDG({_id:this.surveyID,welcome_and_Purpose:this.welcome_and_Purpose,warm_Up_and_Context:this.warm_Up_and_Context,core_discussion:this.core_discussion,wrap_up_and_final_thoughts:this.wrap_up_and_final_thoughts}).subscribe({next:y=>{console.log("Welcome & Purpose section updated successfully:",y),this.isDGChangedQuestion=!0},error:y=>{console.error("Error updating section:",y)}})}openNewQuestionInputWarmUp(){this.showAddWarmup=!0}saveNewQuestionWarmUp(){if(!this.newQuestionText.trim()&&"media"!==this.selectedType)return;const s={question_text:"media"===this.selectedType?this.previewUrl:this.newQuestionText.trim(),question_type:this.selectedType,probes:[]};this.warm_Up_and_Context.questions.push(s),this.newQuestionText="",this.previewUrl=null,this.selectedType="open-ended",this.showAddWarmup=!1,this.update_warm_Up_and_Context(),this.isDGChangedQuestion=!0}update_warm_Up_and_Context(){this.surveyService.updateDG({_id:this.surveyID,warm_Up_and_Context:this.warm_Up_and_Context}).subscribe({next:y=>console.log("Warm-up & Context updated successfully:",y),error:y=>console.error("Error updating Warm-up & Context:",y)}),this.isDGChangedQuestion=!0}startEditingWarmup(s){this.editIndex=s,this.editedQuestionText=this.warm_Up_and_Context.questions[s].question_text,setTimeout(()=>{this.editInputRef?.nativeElement?.focus()})}saveEditedQuestionWarmup(){null!==this.editIndex&&(this.warm_Up_and_Context.questions[this.editIndex].question_text=this.editedQuestionText.trim(),this.editIndex=null,this.editedQuestionText="",this.update_warm_Up_and_Context(),this.isDGChangedQuestion=!0)}cancelEditWarmup(){this.editIndex=null,this.editedQuestionText=""}deleteWarmup(s){this.questionToDeleteWarm=s,this.showDeleteModalWarmup=!0}deleteQuestionWarmup(){null!==this.questionToDeleteWarm&&(this.warm_Up_and_Context.questions.splice(this.questionToDeleteWarm,1),this.questionToDeleteWarm=null,this.update_warm_Up_and_Context(),this.isDGChangedQuestion=!0),this.showDeleteModalWarmup=!1}cancelDeleteWarmup(){this.questionToDeleteWarm=null,this.showDeleteModalWarmup=!1}openNewQuestionFieldWrap(){this.showAddWrap=!0,setTimeout(()=>{this.inputRef?.nativeElement?.focus()})}onWrapInputBlur(){this.newQuestionTextWrap?.trim()?this.saveNewQuestionWrap():(this.showAddWrap=!1,this.selectedTypeWrap="open-ended")}saveNewQuestionWrap(){if(!this.newQuestionTextWrap.trim()&&"media"!==this.selectedTypeWrap)return;const s={question_text:"media"===this.selectedTypeWrap?this.previewUrlWrap:this.newQuestionTextWrap.trim(),question_type:this.selectedTypeWrap,probes:[]};this.wrap_up_and_final_thoughts.questions.push(s),this.newQuestionTextWrap="",this.previewUrlWrap=null,this.selectedTypeWrap="open-ended",this.showAddWrap=!1,this.update_wrap_up_and_final_thoughts(),this.isDGChangedQuestion=!0}
1update_wrap_up_and_final_thoughts(){this.surveyService.updateDG({_id:this.surveyID,wrap_up_and_final_thoughts:this.wrap_up_and_final_thoughts}).subscribe({next:y=>console.log("Wrap-up & Final Thoughts updated successfully:",y),error:y=>console.error("Error updating Wrap-up & Final Thoughts:",y)}),this.isDGChangedQuestion=!0}startEditingWrap(s){this.editIndexWrap=s,this.editedQuestionTextWrap=this.wrap_up_and_final_thoughts.questions[s].question_text,setTimeout(()=>{this.editInputRef?.nativeElement?.focus()})}saveEditedQuestionWrap(){if(null!==this.editIndexWrap){const s=this.wrap_up_and_final_thoughts.questions[this.editIndexWrap],y=this.editedQuestionTextWrap.trim();if(!y)return this.wrap_up_and_final_thoughts.questions.splice(this.editIndexWrap,1),this.editIndexWrap=null,this.editedQuestionTextWrap="",this.update_wrap_up_and_final_thoughts(),void(this.isDGChangedQuestion=!0);s.question_text=y,this.editIndexWrap=null,this.editedQuestionTextWrap="",this.update_wrap_up_and_final_thoughts()}this.isDGChangedQuestion=!0}cancelEditWrap(){this.editIndexWrap=null,this.editedQuestionTextWrap=""}deleteWrap(s){this.questionToDeleteWrap=s,this.showDeleteModalWrap=!0}deleteQuestionWrap(){null!==this.questionToDeleteWrap&&(this.wrap_up_and_final_thoughts.questions.splice(this.questionToDeleteWrap,1),this.questionToDeleteWrap=null,this.update_wrap_up_and_final_thoughts(),this.isDGChangedQuestion=!0),this.showDeleteModalWrap=!1}cancelDeleteWrap(){this.questionToDeleteWrap=null,this.showDeleteModalWrap=!1}toggleTypeDropdownCore(s){s.showTypeDropdown=!s.showTypeDropdown}selectTypeCore(s,y){s.selectedType=y,s.showTypeDropdown=!1}onFileSelected(s,y,g=!1){var I=this;return(0,ie.A)(function*(){const Le=s.target;if(!Le.files?.length)return;const et=Le.files[0],wt=et.type.startsWith("image")?"image":et.type.startsWith("video")?"video":et.type.startsWith("audio")?"audio":null;if(!wt)return;const Wt=new FileReader;I.isFileLoading=!0,Wt.onload=function(){var wn=(0,ie.A)(function*(Dn){const pi={file:Dn.target?.result,type:wt};try{const ii=(yield I.surveyService.createFileToUrl(pi)).fileData.url;y.previewUrl=ii,y.mediaType=wt}catch(Gn){console.error("Upload failed:",Gn)}finally{I.isFileLoading=!1}});return function(Dn){return wn.apply(this,arguments)}}(),Wt.readAsDataURL(et)})()}saveMediaQuestion(s){var y=this;return(0,ie.A)(function*(){if(!s.newQuestionText&&!s.previewUrl)return void y.tostr.error("Please add both question text and media file before saving.");if(!s.newQuestionText)return void y.tostr.error("Please add question text before saving.");if(!s.previewUrl)return void y.tostr.error("Please add media file before saving.");if("open-ended"===s.selectedType&&!s.newQuestionText?.trim())return;const g=y.core_discussion.reduce((et,wt)=>et+wt.questions.filter(Wt=>"media"===Wt.type).length,0);if("media"===s.selectedType&&g>=1)return y.tostr.error("Only one media question is allowed in the entire DG."),s.newQuestionText="",s.previewUrl="",s.selectedType="",void(s.showAddField=!1);const Le={interview_id:localStorage.getItem("surveyId"),KIA_id:s._id,question:s.newQuestionText.trim(),type:"media",url:s.previewUrl,media_type:s.mediaType};try{yield y.surveyService.saveKIAQuestions(Le).toPromise(),s.questions.push({question:s.newQuestionText.trim(),type:"media",url:s.previewUrl,media_type:s.mediaType}),s.newQuestionText="",s.previewUrl="",s.selectedType="",s.showAddField=!1,y.isDGChangedQuestion=!0,y.tostr.success("Media question saved successfully!")}catch(et){console.error("Save failed:",et),y.tostr.error("Failed to save media question."),s.newQuestionText="",s.previewUrl="",s.selectedType="",s.showAddField=!1}})()}isImages(s){return/\.(jpg|jpeg|png|gif|bmp|webp)$/i.test(s)}isVideo(s){return/\.(mp4|mov|avi|mkv|webm)$/i.test(s)}isAudio(s){return/\.(mp3|wav|ogg|m4a)$/i.test(s)}startEditingMedia(s){this.editingMediaId=s;const y=this.core_discussion.flatMap(g=>g.questions).find(g=>g._id===s);y&&(this.editableMedia={question:y.question,previewUrl:y.url,mediaType:y.media_type})}cancelMediaEdit(){this.editingMediaId=null,this.editableMedia={question:"",previewUrl:"",mediaType:"",url:""}}updateMediaQuestion(){if(!this.editableMedia.question&&!this.editableMedia.previewUrl)return void this.tostr.error("Please add both question text and media file before saving.");if(!this.editableMedia.question)return void this.tostr.error("Please add question text before saving.");if(!this.editableMedia.previewUrl)return void this.tostr.error("Please add media file before saving.");const s={_id:this.editingMediaId,question:this.editableMedia.question,url:this.editableMedia.previewUrl,media_type:this.editableMedia.mediaType||this.editableMedia.media_type};this.surveyService.updateKIAQuestion(this.editingMediaId,s).subscribe({next:()=>{this.tostr.success("Media question updated successfully!"),this.isDGChangedQuestion=!0,this.core_discussion.forEach(y=>{y.questions.forEach(g=>{g._id===this.editingMediaId&&(g.question=s.question,g.url=s.url,g.media_type=s.media_type)})}),this.isDGChangedQuestion=!0,this.cancelMediaEdit()},error:y=>console.error("Error updating media question:",y)})}continueInterview(){const y={_id:localStorage.getItem("surveyId"),interview_type:this.interviewType,interview_duration:this.interviewDuration};this.isCreatingSurvey=!0,this.surveyService.convertDGJSONToMarkdown(y).subscribe({next:g=>{this.discussionGuide=g?.discussion_guide_md||g?.markdown||g?.dg_md||"",console.log("DG MARKDOWN:",this.discussionGuide),this.originalDGText=this.discussionGuide;const I=tr.xI.parse(this.discussionGuide);this.form=new w.gE({editorContent:new w.MJ(I)}),this.DgSubscription&&this.DgSubscription.unsubscribe(),this.DgSubscription=this.form.get("editorContent")?.valueChanges.subscribe(Le=>{const wt=(new jr.A).turndown(Le||"");this.isDGEdited=wt.trim()!==(this.originalDGText||"").trim()}),this.isCreatingSurvey=!1,this.step=4,this.isBackToDashboard=!1},error:g=>{console.error("Error converting DG:",g),this.isCreatingSurvey=!1}})}removeNewQuestion(s){s.showAddField=!1,s.newQuestionText="",s.selectedType="",s.previewUrl="",s.showTypeDropdown=!1}get isContinueDisabled(){const s=!this.welcome_and_Purpose?.questions?.length,y=!this.wrap_up_and_final_thoughts?.questions?.length,g=this.core_discussion?.some(I=>!I.questions?.length);return s||y||g}removePreviewImage(){this.editableMedia.previewUrl="",this.editableMedia.mediaType=""}beforeSelectFile(s,y){if(this.core_discussion.reduce((I,Le)=>I+Le.questions.filter(et=>"media"===et.type).length,0)>=1)return this.tostr.error("Only one media question is allowed in the entire DG."),void(s.target.value="");this.onFileSelected(s,y)}toggleDropdown(){this.showDropdown=!this.showDropdown}selectQuestionType(s){if(this.selectedinterviewQuestionType=s,this.showDropdown=!1,"numeric"===s&&(this.minValue=this.minValue??1,this.maxValue=this.maxValue??100),"open-ended"===s&&(this.minWords=this.minWords??1,this.maxWords=this.maxWords??100),this.preInterviewQuestions&&0!==this.preInterviewQuestions.length){const y=this.preInterviewQuestions.map(I=>parseInt(I.questionRefernceNo?.replace("Q",""),10)).filter(I=>!isNaN(I)),g=Math.max(...y);this.nextQuestionNumber=g}else this.nextQuestionNumber=1;this.nextQuestionNumber++}trackByIndex(s){return s}addOption(){this.multipleOptions.push("")}removeOption(s){this.multipleOptions.length>1?this.multipleOptions.splice(s,1):this.multipleOptions=[""]}goBack(){this.selectedinterviewQuestionType=null,this.resetQuestionForm()}onChangeMultiChoice(s){this.isMultipleChoices=s.target.checked}resetQuestionForm(){this.questionText="",this.openEndedText="",this.numericText="",this.multipleChoiceQuestionText="",this.multipleOptions=[""],this.isMultipleChoices=!1,this.minWords=null,this.maxWords=null,this.minValue=null,this.maxValue=null,this.selectedinterviewQuestionType=null,this.isEditing=!1}savePreInterviewQuestion(){const s=localStorage.getItem("surveyId");if(!this.selectedinterviewQuestionType)return void this.tostr.error("Please select a question type.");if(!s)return void this.tostr.error("Survey ID is missing.");if(!this.questionText?.trim())return void this.tostr.error("Please enter the question text.");if("open-ended"===this.selectedinterviewQuestionType||"numeric"===this.selectedinterviewQuestionType){const g="open-ended"===this.selectedinterviewQuestionType?this.minWords:this.minValue,I="open-ended"===this.selectedinterviewQuestionType?this.maxWords:this.maxValue;if(0===g&&0===I)return void this.tostr.error("Minimum and maximum values cannot both be 0.");if(0===g||0===I)return void this.tostr.error("Minimum and maximum values cannot be 0.");if(g>=I)return void this.tostr.error("Minimum value must be less than maximum value.")}const y={type:this.selectedinterviewQuestionType,text:this.questionText.trim(),interviewId:s};if("open-ended"===this.selectedinterviewQuestionType)y.min_words=this.minWords||1,y.max_words=this.maxWords||100;else if("numeric"===this.selectedinterviewQuestionType)y.min_value=this.minValue??1,y.max_value=this.maxValue??100;else if("multiple-choice"===this.selectedinterviewQuestionType){const g=this.multipleOptions.map(I=>I.trim()).filter(I=>""!==I);if(g.length<2)return void this.tostr.error("Please add at least 2 options before saving.");y.options=g,y.is_multi_choice=this.isMultipleChoices||!1}this.surveyService.savePreInterviewQuestions(y).subscribe({next:g=>{this.tostr.success("Question saved successfully."),this.getPreInterviewQuestions(),this.resetQuestionForm()},error:g=>{console.error("Error saving question:",g),this.tostr.error("Failed to save question. Please try again.")}})}getPreInterviewQuestions(){const s=localStorage.getItem("surveyId");s&&this.surveyService.fetchPreInterviewQuestions(s).subscribe({next:y=>{console.log("Pre-interview questions:",y),this.preInterviewQuestions=y||[],this.setNextQuestionNumber(),this.setBranchingData(y)},error:y=>console.error("Error fetching pre-interview questions:",y)})}setNextQuestionNumber(){if(!this.preInterviewQuestions||0===this.preInterviewQuestions.length)return void(this.nextQuestionNumber=1);const s=this.preInterviewQuestions.map(g=>parseInt(g.questionRefernceNo?.replace("Q",""),10)).filter(g=>!isNaN(g)),y=Math.max(...s);this.nextQuestionNumber=y+1,console.log("\u27a1\ufe0f Next question number:",this.nextQuestionNumber)}deleteInterviewQuestions(s){this.branchData&&this.branchData.questionId===s?this.tostr.error("You cannot delete this question because branching is applied."):this.surveyService.deletePreInterviewQuestion(s).subscribe({next:()=>{this.preInterviewQuestions=this.preInterviewQuestions.filter(y=>y._id!==s),console.log("Question deleted")},error:y=>console.error("Delete failed:",y)})}blockNonNumericPaste(s){const y=s.clipboardData?.getData("text");y&&!/^\d+$/.test(y)&&s.preventDefault()}allowOnlyNumbers(s){const y=s.which?s.which:s.keyCode;(y<48||y>57)&&s.preventDefault()}editPreQuestion(s){this.branchData&&this.branchData.questionId===s._id?this.tostr.error("You cannot Edit this question because branching is applied."):(this.isEditing=!0,this.editingQuestionId=s._id,this.selectedinterviewQuestionType=s.type,this.questionText=s.text,"open-ended"===s.type?(this.minWords=s.text_answer.min_words||1,this.maxWords=s.text_answer.max_words||100):"numeric"===s.type?(this.minValue=s.numeric.min_value||1,this.maxValue=s.numeric.max_value||100):"multiple-choice"===s.type&&(this.multipleOptions=s.options||[""],this.isMultipleChoices=s.is_multi_choice||!1))}updatePreInterviewQuestion(){const s=localStorage.getItem("surveyId");if(!this.selectedinterviewQuestionType)return void this.tostr.error("Please select a question type.");if(!s)return void this.tostr.error("Survey ID is missing.");if(!this.questionText?.trim())return void this.tostr.error("Please enter the question text.");if("open-ended"===this.selectedinterviewQuestionType||"numeric"===this.selectedinterviewQuestionType){const g="open-ended"===this.selectedinterviewQuestionType?this.minWords:this.minValue,I="open-ended"===this.selectedinterviewQuestionType?this.maxWords:this.maxValue;if(0===g&&0===I)return void this.tostr.error("Minimum and maximum values cannot both be 0.");if(0===g||0===I)return void this.tostr.error("Minimum and maximum values cannot be 0.");if(g>=I)return void this.tostr.error("Minimum value must be less than maximum value.")}const y={_id:this.editingQuestionId,type:this.selectedinterviewQuestionType,text:this.questionText.trim(),interviewId:s};if("open-ended"===this.selectedinterviewQuestionType)y.min_words=this.minWords||1,y.max_words=this.maxWords||100;else if("numeric"===this.selectedinterviewQuestionType)y.min_value=this.minValue??1,y.max_value=this.maxValue??100;else if("multiple-choice"===this.selectedinterviewQuestionType){const g=this.multipleOptions.map(I=>I.trim()).filter(I=>""!==I);if(g.length<2)return void this.tostr.error("Please add at least 2 options before updating.");y.options=g,y.is_multi_choice=this.isMultipleChoices||!1}this.surveyService.updatePreInterviewQuestion(y).subscribe({next:g=>{this.tostr.success("Question updated successfully."),this.getPreInterviewQuestions(),console.log("Question updated:",g),this.isEditing=!1,this.editingQuestionId=null,this.resetQuestionForm()},error:g=>{console.error("Error updating question:",g),this.tostr.error("Failed to update question. Please try again."),this.isEditing=!1}})}startTypingEffect(s){this.animatedText="",this.isTyping=!0;const y=Date.now(),I=()=>{const Le=Date.now()-y,et=Math.floor(Le/20);this.animatedText=s.slice(0,et),this.cdr.detectChanges(),et<s.length?requestAnimationFrame(I):(this.isTyping=!1,this.isLoadingKIA=!1)};requestAnimationFrame(I)}setBranchingData(s,y){this.questionSection=[],this.logicQuestions=[],this.branchingQuestion=[],this.connectedTo=[];let g=!1;for(const I of s){let Le={title:"Pre Interview Questions",section_id:"pre-int",que_text:I.text,que_id:I._id,type:"question",queType:I.type,translation:I.selectedLanguage};"multiple-choice"===I.type&&(Le.options=I.options),"numeric"===I.type&&(Le.minValue=I.numeric.min_value,Le.maxValue=I.numeric.max_value),"open-ended"===I.type&&(Le.minWords=I.text_answer.min_words,Le.maxWords=I.text_answer.max_words),this.questionId===I._id&&(this.currentQuestionText=I.text||I.que_text,this.currentQuestionType=I.type,"multiple-choice"===I.type&&(this.currentQuestionOptions=I.options),g=!0),this.questionId!==I._id&&this.questionSection.push(Le),this.logicQuestions.push(Le),g||!0===y&&"multiple-choice"===I.type&&this.branchingQuestion.push(Le),this.questionId===I._id&&(g=!0)}console.log("Branching Questions:",this.branchingQuestion),console.log("All Questions:",this.questionSection),console.log("Logic Questions:",this.logicQuestions)}openBranchingModal(){this.isBranchingModalOpen=!0}closeBranchingModal(){this.isBranchingModalOpen=!1,this.resetBranchFields()}saveBranching(){var s=this;return(0,ie.A)(function*(){if(!s.selectedCriteria||!s.selectedChoiceText||!s.selectedResultQuestion)return void s.tostr.error("Please fill all branching fields!");const y=localStorage.getItem("surveyId");if(!s.selectedResultQuestion?.que_id||!y)return void s.tostr.error("Missing Question ID or Survey ID!");const g={questionId:s.selectedResultQuestion?.que_id,condition:s.selectedCriteria,option:s.selectedChoiceText,result:"End of interview"};
1try{yield s.surveyService.savePreBranch(y,g).toPromise(),s.surveyService.getSurveyDetails(y).then(I=>{s.branchData=I?.preInterviewQuestionBranch}),s.tostr.success("Branching saved successfully!"),s.isBranchingModalOpen=!1}catch(I){console.error(I),s.tostr.error("Failed to save branching")}})()}getLogicQuestionText(s){return this.logicQuestions?.find(g=>g.que_id===s)?.que_text||s}editBranch(s){this.isBranchingModalOpen=!0;const y=this.logicQuestions.find(g=>g.que_id===s.questionId);this.selectedResultQuestion=y||null,this.onQuestionSelect(),this.selectedCriteria=s.condition,this.selectedChoiceText=s.option,this.questionId=s.questionId}deleteBranch(){const s=localStorage.getItem("surveyId");this.surveyService.savePreBranch(s,{preInterviewQuestionBranch:null}).subscribe(()=>{this.tostr.success("Branching deleted!"),this.showPreDeleteModal=!1,this.branchData=null}),this.resetBranchFields()}cancelDeleteBranch(){this.showPreDeleteModal=!1,this.resetBranchFields()}resetBranchFields(){this.selectedResultQuestion=null,this.questionId=null,this.selectedCriteria=null,this.selectedChoiceText=""}onQuestionSelect(){const s=this.selectedResultQuestion;s&&("multiple-choice"===s.queType&&s.options?.length?(this.isMCQSelected=!0,this.multipleOptions=s.options,this.branchCriteriaToShow=this.branchCriteria):"numeric"===s.queType?(this.isMCQSelected=!1,this.multipleOptions=[],this.branchCriteriaToShow=this.numericBranchCriteria):(this.isMCQSelected=!1,this.multipleOptions=[],this.branchCriteriaToShow=this.branchCriteriaText),this.selectedCriteria=null,this.selectedChoiceText=null)}deployAi(){if(this.createLink=!0,this.surveyService.updateSurveyStatus({id:this.surveyID,is_published:!0}).subscribe(wt=>{},wt=>{this.tostr.error("Failed to publish survey.")}),!localStorage.getItem("surveyId"))return void this.tostr.error("Survey ID not found.");const Le=`campaign_${(this.ongoingSurveysArr?.length||0)+1}`;let et={collectorType:"Voice_Call",surveyId:this.surveyID,campaignName:Le};this.surveyService.createSurveyLink(localStorage.getItem("surveyId"),et).subscribe(wt=>{this.tostr.success("Link Created sucessfully."),this.surveyLink=wt.collectorLink,localStorage.setItem("surveyLink",this.surveyLink),this.isLinkCreated=!0,this.linkName=Le,this.surveyLink=wt.collectorLink,this.step=7,this.createLink=!1,this.getSurveyDetails()},wt=>{this.createSurveyLink=!1,this.tostr.error(wt.message),this.createLink=!1})}saveLanguages(){const s=this.languages.filter(g=>g.isSelected).map(g=>g.language);this.surveyService.updateDG({_id:this.surveyID,dgLanguage:s}).subscribe({next:()=>{},error:g=>{this.tostr.error("Failed to save languages")}})}createGuideBasedOnLanguage(){const s=this.languages.filter(et=>et.isSelected).map(et=>et.language),y=["Marathi","Bengali","Tamil","Telugu","Kannada","Gujarati","Malayalam","Punjabi","Odia","Urdu"],g=s.includes("English"),I=s.includes("Hindi");g&&I?s.some(et=>y.includes(et))?this.deployAi():this.createDicussionGuide():this.tostr.error("English and Hindi are required.")}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(K.I),e.rXU(ee.Ix),e.rXU(H.tw),e.rXU(e.gRc),e.rXU(Wn.I))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-dgprompt"]],viewQuery:function(y,g){if(1&y&&(e.GBs(cn,5),e.GBs(Zn,5),e.GBs(zn,5)),2&y){let I;e.mGM(I=e.lsd())&&(g.newInputRef=I.first),e.mGM(I=e.lsd())&&(g.editInputRef=I.first),e.mGM(I=e.lsd())&&(g.inputRef=I.first)}},decls:20,vars:18,consts:[["loadingSpinner",""],["viewMode",""],["inputRef",""],["showText",""],["editInputRef",""],["editMediaBlock",""],["showTextWrap",""],["noData",""],[1,"header"],[1,"logo"],["src","assets/img/Merren_name.png","alt","Logo"],["routerLink","/dashboard/project-interview",1,"backbtn",3,"ngClass"],["class","progress-container mt-5",4,"ngIf"],["class","step-content",4,"ngIf"],[4,"ngIf"],["class","DG-container",4,"ngIf"],["class","custom-modal-backdrop",4,"ngIf"],["class","branching-modal-backdrop",4,"ngIf"],["class","branching-modal",4,"ngIf"],[1,"progress-container","mt-5"],["class","progress-step",3,"active","completed",4,"ngFor","ngForOf"],[1,"progress-step"],[1,"number"],[1,"step-content"],["routerLink","/discussion-Create"],[2,"font-size","13px","color","#4B5563"],[1,"text-card"],[1,"textarea-box",3,"ngClass"],["placeholder","e.g., Understand how young professionals (25-35) in urban areas perceive and use grocery delivery services, focusing on their decision-making process, pain points, and unmet needs.",3,"ngModelChange","ngModel","disabled"],[1,"info-text"],["for","interviewDuration",2,"font-size","14px","margin","12px 0 4px","display","block","text-align","left","font-weight","700"],["id","interviewDuration",1,"duration-select","duration-select--full",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-start","mt-3"],[1,"url-box",3,"click"],[1,"fas","fa-thin","fa-link","mr-2"],["class","divider",4,"ngIf"],["class","d-flex",4,"ngIf"],["class","url-preview-card mb-2",4,"ngIf"],["class","inline-url-box",4,"ngIf"],[1,"suggestion-chips-row"],[1,"suggestion-chip",3,"click"],[1,"suggestion-label"],[1,"generate-btn","mt-5",3,"click","disabled","ngClass"],[4,"ngIf","ngIfElse"],[1,"example-box"],[3,"value"],[1,"divi
1der"],[1,"d-flex"],[1,"url-preview-card","mb-2"],[1,"left-section"],[1,"icon-box","mr-2"],[1,"fas","fa-link"],[1,"url-info"],[1,"url-text"],[1,"remove-url-btn",3,"click"],[1,"inline-url-box"],["type","text","placeholder","Enter URL (https://...)",3,"ngModelChange","blur","ngModel","ngClass"],["class","text-danger","style","text-align: left;",4,"ngIf"],[1,"btn-group"],[1,"btn-cancel",3,"click"],[1,"btn-add",3,"click","disabled"],[1,"text-danger",2,"text-align","left"],[1,"fas","fa-arrow-right",2,"margin-left","20px"],[1,"fas","fa-spinner","fa-spin",2,"margin-left","10px"],[1,"review-container"],[1,"header-content"],[1,"alert"],["class","typing",4,"ngIf"],["class","loading-card mt-5",4,"ngIf"],["class","actions",4,"ngIf"],[1,"footer-buttons","mt-4"],[1,"prev-btn",3,"click","disabled"],["class","continue-btn",3,"disabled","click",4,"ngIf"],[1,"typing"],[1,"dot"],[1,"loading-card","mt-5"],[1,"loading-section"],[1,"loading-bar","title"],[1,"loading-item"],[1,"fas","fa-sparkles"],[1,"loading-line"],[1,"loading-line","medium"],[1,"loading-line","short"],[1,"wave-animation"],["class","info-card",4,"ngFor","ngForOf"],[1,"info-card"],[1,"card-header"],[1,"icons"],["title","Move Up",1,"icon-btn",3,"click","disabled","ngClass"],[1,"fas","fa-chevron-up"],["title","Move Down",1,"icon-btn",3,"click","disabled","ngClass"],[1,"fas","fa-chevron-down"],["title","Delete",1,"icon-btn",3,"click"],[1,"fas","fa-trash-alt"],["type","text",1,"edit-input",3,"ngModelChange","blur","keyup.enter","ngModel"],[3,"click"],[1,"actions"],[1,"add-btn",3,"click"],[1,"fas","fa-plus","mr-3"],[1,"continue-btn",3,"click","disabled"],["class","fas fa-spinner fa-spin","style","margin-left: 10px;",4,"ngIf"],[1,"DG-container"],["class","container d-flex flex-column justify-content-center align-items-center ","style","height: 40vh;display: flex;",4,"ngIf"],[1,"container","d-flex","flex-column","justify-content-center","align-items-center",2,"height","40vh","display","flex"],[1,"m-auto"],["id","",1,"d-flex","flex-column","justify-content-center","align-items-center"],["role","status",1,"spinner-grow","mb-2"],[1,"sr-only"],[1,"text-center","mb-4"],[1,"title"],[1,"subtitle"],[1,"section"],[1,"section-header",3,"click"],[1,"section-title"],["src","/assets/icons/square icon.png","alt","icon"],[1,"toggle-icon"],[3,"ngClass"],["class","section-body",4,"ngIf"],["class","section",4,"ngFor","ngForOf"],[1,"end-buttons","mt-4"],[1,"prev-btn",3,"click"],[1,"section-body"],["class","question-card",4,"ngFor","ngForOf"],["class","question-card mt-2",4,"ngIf"],[1,"add-btn","mt-3",3,"click"],[1,"fas","fa-plus"],[1,"question-card"],[1,"d-flex","align-items-center"],["class","flex-grow-1",4,"ngIf","ngIfElse"],[1,"question-type"],[1,"ml-2",3,"click"],[1,"fas","fa-edit",2,"cursor","pointer","color","#2285F7"],["class","ml-auto delete-icon",4,"ngIf"],[1,"flex-grow-1"],["type","text","placeholder","Edit your question",1,"form-control",3,"ngModelChange","blur","keyup.enter","ngModel"],[1,"question-text","flex-grow-1",3,"title"],[1,"ml-auto","delete-icon"],[1,"fas","fa-trash","text-danger","ml-2",2,"cursor","pointer",3,"click"],[1,"question-card","mt-2"],["type","text","placeholder","Enter question","class","question-text edit-input",3,"ngModel","ngModelChange","keyup.enter","blur",4,"ngIf"],["class","media-upload",4,"ngIf"],["type","text","placeholder","Enter question",1,"question-text","edit-input",3,"ngModelChange","keyup.enter","blur","ngModel"],[1,"media-upload"],["type","file","accept","image/*,audio/*,video/*",3,"change","blur",4,"ngIf"],["class","mt-2",4,"ngIf"],["type","file","accept","image/*,audio/*,video/*",3,"change","blur"],[1,"mt-2"],["class","preview-img",3,"src",4,"ngIf"],["controls","",3,"src",4,"ngIf"],["controls","","width","200",3,"src",4,"ngIf"],[1,"preview-img",3,"src"],["controls","",3,"src"],["controls","","width","200",3,"src"],["class","question-card",4,"ngIf"],["type","text","class","question-text edit-input",3,"ngModel","ngModelChange","keyup.enter","blur",4,"ngIf"],["class","question-text",3,"title",4,"ngIf"],["style","width: 100%;",4,"ngIf"],["class","ml-2",4,"ngIf"],["class","ml-auto delete-icon",3,"click",4,"ngIf"],["type","text",1,"question-text","edit-input",3,"ngModelChange","keyup.enter","blur","ngModel"],[1,"question-text",3,"title"],[2,"width","100%"],["class","media-question-view",4,"ngIf","ngIfElse"],[1,"media-question-view"],[1,"question-text"],[1,"media-question-edit"],["type","text","placeholder","Edit question text",1,"form-control","mb-2",3,"ngModelChange","ngModel"],["class","text-center mt-2",4,"ngIf"],["class","mt-2 position-relative",4,"ngIf"],["type","file","accept","image/*,audio/*,video/*","class","mt-2",3,"change",4,"ngIf"],[1,"mt-3","d-flex","gap-2"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"btn","btn-outline-primary","btn-sm",3,"click"],[1,"text-center","mt-2"],["role","status",1,"spinner-border","text-primary"],[1,"mt-2","position-relative"],[2,"border","1p
1x solid #E5E7EB","padding","20px","position","relative","display","inline-block","border-radius","8px"],["class","fas fa-times-circle text-danger","style","position: absolute; top: 5px; right: 5px; cursor: pointer; font-size: 18px;",3,"click",4,"ngIf"],["class","preview-img","style","max-width: 200px; max-height: 200px; display: block;",3,"src",4,"ngIf"],["width","200","controls","",3,"src",4,"ngIf"],[1,"fas","fa-times-circle","text-danger",2,"position","absolute","top","5px","right","5px","cursor","pointer","font-size","18px",3,"click"],[1,"preview-img",2,"max-width","200px","max-height","200px","display","block",3,"src"],["width","200","controls","",3,"src"],["type","file","accept","image/*,audio/*,video/*",1,"mt-2",3,"change"],[1,"ml-2"],[1,"fas","fa-edit",2,"cursor","pointer","color","#2285F7",3,"click"],[1,"ml-auto","delete-icon",3,"click"],[1,"fas","fa-trash","text-danger","ml-2",2,"cursor","pointer"],["type","text","placeholder","Enter question","class","question-text edit-input",3,"ngModel","ngModelChange","change",4,"ngIf"],[1,"ml-auto","position-relative"],[1,"question-type",3,"click"],[1,"fas","fa-chevron-down","ml-1"],["class","type-dropdown",3,"click",4,"ngIf"],[1,"trash-icon",3,"click"],["type","text","placeholder","Enter question",1,"question-text","edit-input",3,"ngModelChange","change","ngModel"],["type","text","placeholder","Enter question",1,"question-text","edit-input",2,"width","100%",3,"ngModelChange","ngModel"],["class","mt-3","type","file","accept","image/*,audio/*,video/*",3,"change",4,"ngIf"],["class","loading-spinner mt-3",4,"ngIf"],["class","btn btn-primary mt-2",3,"disabled","click",4,"ngIf"],["type","file","accept","image/*,audio/*,video/*",1,"mt-3",3,"change"],[1,"loading-spinner","mt-3"],[1,"fas","fa-spinner","fa-spin"],[1,"btn","btn-primary","mt-2",3,"click","disabled"],[1,"type-dropdown",3,"click"],["type","text","placeholder","Edit your question",1,"form-control",3,"ngModelChange","keyup.enter","blur","ngModel"],[2,"text-align","center"],[1,"DGCard"],[1,"mt-3",3,"formGroup"],[1,"editor"],[3,"editor","toolbar"],["formControlName","editorContent",3,"editor"],["class","continue-btn",3,"disabled","ngClass","click",4,"ngIf"],[1,"continue-btn",3,"click","disabled","ngClass"],[1,"custom-modal-backdrop"],[1,"custom-modal"],[1,"text-danger"],[1,"modal-buttons"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-danger","ml-2",3,"click"],[1,"lang-container"],[2,"color","#1F2937"],[1,"select-item","mt-5"],[1,"all-btn"],["type","radio","id","Discussion_Guide","name","option",3,"change","checked"],["for","Discussion_Guide"],["src","/assets/icons/note-text-svgrepo-com 1.png"],["type","radio","id","Screener_Questions","name","option",3,"change","checked"],["for","Screener_Questions"],[1,"fa","fa-television"],["type","radio","id","language","name","option",3,"change","checked"],["for","language"],[1,"fas","fa-globe"],["type","radio","id","persona","name","option",3,"change"],["for","persona"],[1,"far","fa-user"],["type","radio","id","voice","name","option",3,"change"],["for","voice"],[1,"fas","fa-volume-off"],["type","radio","id","opening","name","option",3,"change"],["for","opening"],[1,"fas","fa-comment-dots"],["type","radio","id","pronunciation","name","option",3,"change"],["for","pronunciation"],[1,"fas","fa-microphone"],["class","select-lang mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","select-lang mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","persona-screen",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","voice-settings-container mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","opening-message-container mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","pronunciation-container mt-4",4,"ngIf"],[1,"continue-btn",3,"click"],[1,"select-lang","mt-4"],[1,"discussion-guide-container"],[1,"mb-3",2,"font-weight","500"],[1,"text-muted"],[3,"data"],[1,"discussion-guide-container","select-lang","mt-4",2,"padding","20px","width","1000px","margin","0 auto"],["class","mt-4","style","width: 100%;
1",4,"ngIf"],["class","discussion-guide-container select-lang mt-4","style","padding: 20px; width: 1000px; margin: 0 auto;",4,"ngIf"],[1,"question-section"],["class","question-card-wrapper",4,"ngFor","ngForOf"],[1,"position-relative","mb-3","d-flex","align-items-end"],["class","add-btn ml-3",3,"disabled-btn","click",4,"ngIf"],["class","custom-dropdown",4,"ngIf"],[1,"question-card-wrapper"],[1,"question-cardpre"],[1,"question-left"],[1,"question-top"],[1,"question-no"],[1,"question-bottom"],[1,"question-icon",3,"src","alt"],["title","q.text",1,"question-text"],[1,"question-actions"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"add-btn","ml-3",3,"click"],[1,"custom-dropdown"],[1,"custom-dropdown-item",3,"click"],["src","../assets/icons/Audio text.png",1,"h-22"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/i-exam-multiple-choice-svgrepo-com (1) 1.png",1,"h-22"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/123.svg",1,"h-22"],[1,"mt-4",2,"width","100%"],[1,"question-header","d-flex","mb-3"],[1,"question-badge","d-flex","align-items-center","justify-content-center"],[1,"icon-box","d-flex","align-items-center","justify-content-center"],["alt","icon",1,"question-icon",3,"src"],[1,"number-box","d-flex","align-items-center","justify-content-center"],["rows","3","placeholder","Enter your question here",1,"form-control","question-textarea","ml-2",2,"flex","1",3,"ngModelChange","ngModel"],["class","choices-section mt-3",4,"ngIf"],[1,"mt-3"],["class","btn btn-primary me-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-outline-primary",3,"click"],[1,"choices-section","mt-3"],[1,"d-flex","align-items-center","mb-2"],["src","../assets/icons/choicesicon.svg",1,"f-18"],[1,"ml-2","f-18",2,"color","#FF5630"],[1,"row"],[1,"col-md-6"],[1,"form-label"],["type","number","placeholder","1",1,"form-control",3,"ngModelChange","ngModel"],["type","number","placeholder","100",1,"form-control",3,"ngModelChange","ngModel"],["class","d-flex mb-2 align-items-center",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-3","d-flex","align-items-center"],[1,"me-3"],[1,"switch","mt-3"],["type","checkbox",3,"change","checked"],[1,"slider","round"],[1,"d-flex","mb-2","align-items-center"],["type","text",1,"form-control","mt-2",3,"ngModelChange","keydown.enter","ngModel","placeholder"],["type","button","class","btn btn-light mt-2 ms-2",3,"click",4,"ngIf"],["type","button",1,"btn","btn-light","mt-2","ms-2",3,"click"],[1,"fas","fa-trash","text-danger"],[1,"btn","btn-primary","me-2",3,"click","disabled"],[2,"font-weight","500"],[1,"branching-que"],[1,"btn-edit",3,"click"],[1,"fas","fa-edit"],[1,"btn-trash",3,"click"],[1,"fas","fa-trash"],[1,"select-lang","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[1,"checkbox-group"],["class","checkbox-item",4,"ngFor","ngForOf"],[1,"checkbox-item"],["type","checkbox",3,"change","id","checked","disabled"],[1,"mt-2",3,"value","for"],[1,"persona-screen",2,"padding","20px","width","800px","margin","0 auto"],[1,"deployment-container","mt-5"],[1,"deployment-options"],[1,"option"],["type","radio","id","generate","name","deployment","disabled",""],["for","generate"],[1,"desc"],["type","radio","id","zoom","name","deployment","disabled",""],["for","zoom"],["type","radio","id","teams","name","deployment","disabled",""],["for","teams"],["type","radio","id","google","name","deployment","disabled",""],["for","google"],[1,"voice-settings-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[1,"slider-section"],[1,"slider-container"],[1,"speed"],[1,"slider-wrapper"],["type","range","min","0.5","max","2","step","0.1","disabled","",1,"speed-slider",3,"ngModelChange","input","ngModel"],[1,"slider-value"],[1,"tone-section"],["disabled","",1,"tone-select",3,"ngModelChange","ngModel"],[1,"test-voice"],["disabled","",1,"test-btn",3,"click"],[1,"opening-message-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[2,"color","#1F2937","font-size","15px","font-weight","500"],[2,"font-size","14px","color","#4B5563","font-weight","400"],[1,"template-section"],[2,"margin-top","15px","font-size","14px","font-weight","500"],[1,"template-list"],[1,"template-option"],["type","radio","id","formal","name","template","disabled",""],["for","formal",1,"msg-title"],[2,"font-size","16px"],["type","radio","id","casual","name","template","disabled",""],["for","casual",1,"msg-title"],["type","radio","id","brief","name","template","disabled",""],["for","brief",1,"msg-title"],[1,"custom-message","mt-4"],["rows","4","placeholder","Write your custom message here","disabled","",3,"ngModelChange","ngModel"],[1,"tips-section","mt-4"],[1,"pronunciation-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[2,"color","#1F2937","font-weight","500"],[1,"pronunciation-form"],[1,"input-group"],["type","text","placeholder","e.g., Company name","disabled","",1,"input-field",3,"ngModelChange","ngModel"],["type","text","placeholder","e.g., kuhm-puh-nee","disabled","",1,"input-field",3,"ngModelChange","ngModel"],["disabled","",1,"add-btn",3,"click"],["class","pronunciation-list",4,"ngIf","ngIfElse"],[1,"pronunciation-list"],["class","pronunciation-item",4,"ngFor","ngForOf"],[1,"pronunciation-item"],[1,"word"],[1,"guide"],["disabled","",1,"delete-btn",3,"click"],[2,"color","#6B7280","font-size","14px","margin-top","10px"],[1,"DG-Deploy"],["type","radio","id","generate","name","deployment","checked",""],["type","radio","id","zoom","name","deployment"],["type","radio","id","teams","name","deployment"],["type","radio","id","google","name","deployment"],[1,"deployend-buttons","mt-4"],[1,"success-container"],[1,"success-icon"],[1,"fas","fa-check",2,"font-weight","100"],[1,"link-box","mt-5"],[1,"link-text",3,"title"],[1,"copy-btn",3,"click"],[1,"far","fa-copy"],[1,"dashboard-btn","mt-4",3,"click"],[1,"branching-modal-backdrop"],[1,"branching-modal"],[1,"branching-modal-content"],[1,"modal-header"],[1,"title-branch"],[1,"fas","fa-code-branch","btn-branch"],[1,"modal-body"],[1,"row","full"],[1,"input-select","full-width",3,"ngModelChange","change","ngModel"],["value","null","disabled","","selected","",1,"placeholder-option"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"section-label"],[1,"row",2,"gap","10px"],[1,"input-select",3,"ngModelChange","ngModel"],["class","input-select",3,"ngModel","ngModelChange",4,"ngIf"],["type","text","class","input-text","placeholder","Enter choice here",3,"ngModel","ngModelChange",4,"ngIf"],[1,"section-label","mt-20"],[1,"modal-footer"],[1,"btn","btn-outline-primary","mr-3",3,"click"],[3,"ngValue"],["value","null","disabled","","selected",""],["type","text","placeholder","Enter choice here",1,"input-text",3,"ngModelChange","ngModel"]],template:function(y,g){1&y&&(e.j41(0,"div",8)(1,"div",9),e.nrm(2,"img",10),e.k0s(),e.j41(3,"div",11),e.EFF(4," Back to Dashboard "),e.k0s()(),e.DNE(5,ti,2,2,"div",12)(6,fr,45,21,"div",13)(7,Ui,20,7,"div",14)(8,Hn,3,2,"div",15)(9,Gc,17,6,"div",14)(10,Ua,9,0,"div",16)(11,va,9,0,"div",16)(12,xl,9,0,"div",16)(13,oc,9,0,"div",16)(14,ge,49,10,"div",14)(15,Bt,45,2,"div",14)(16,Zt,15,2,"div",14)(17,yn,1,0,"div",17)(18,Hi,28,6,"div",18)(19,Pi,9,0,"div",16)),2&y&&(e.R7$(3),e.Y8G("ngClass",e.eq3(16,qn,g.isBackToDashboard)),e.R7$(2),e.Y8G("ngIf",8!=g.step),e.R7$(),e.Y8G("ngIf",1===g.step),e.R7$(),e.Y8G("ngIf",2===g.step),e.R7$(),e.Y8G("ngIf",3===g.step),e.R7$(),e.Y8G("ngIf",4===g.step),e.R7$(),e.Y8G("ngIf",g.showDeleteModal),e.R7$(),e.Y8G("ngIf",g.showDeleteModalWelcome),e.R7$(),e.Y8G("ngIf",g.showDeleteModalWarmup),e.R7$(),e.Y8G("ngIf",g.showDeleteModalWrap),e.R7$(),e.Y8G("ngIf",5===g.step),e.R7$(),e.Y8G("ngIf",6===g.step),e.R7$(),e.Y8G("ngIf",7===g.step),e.R7$(),e.Y8G("ngIf",g.isBranchingModalOpen),e.R7$(),e.Y8G("ngIf",g.isBranchingModalOpen),e.R7$(),e.Y8G("ngIf",g.showPreDeleteModal))},dependencies:[Ce.YU,Ce.Sq,Ce.bT,ee.Wk,w.qT,w.xH,w.y7,w.me,w.Q0,w.MR,w.wz,w.BC,w.cb,w.j4,w.JD,w.vS,v.NN,ur.Cl,ur.Zu],styles:['@charset "UTF-8";.header[_ngcontent-%COMP%]{padding:15px 40px;display:flex;justify-content:space-between;align-items:center}.backbtn[_ngcontent-%COMP%]{border:none;border-radius:25px;font-size:15px;cursor:pointer;width:auto;display:inline-block;font-weight:500;background-color:#2285f7;color:#fff;padding:10px 25px;transition:background-color .3s ease}.logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;width:auto}.progress-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:relative}.progress-step[_ngcontent-%COMP%]{cursor:pointer;display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;margin:0 25px}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{width:26px;height:26px;background:#ccc;color:#fff;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:14px;position:relative;z-index:1}.progress-step.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#f79522}.progress-step.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#00c951}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;transform:translateY(-50%);height:1px;width:95px;left:-120px;background:#ccc;z-index:-1}.progress-step.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{background:#00c951}.progress-step.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{background:#00c951}.progress-step.completed[_ngcontent-%COMP%]:first-child   .number[_ngcontent-%COMP%]:after{background:#00c951}.progress-step[_ngcontent-%COMP%]:first-child   .number[_ngcontent-%COMP%]:before{display:none}.progress-step[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#333;margin-top:8px}.progress-step.completed[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#00c951}.progress-step.active[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#f79522}.step-content[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px;text-align:center}.step-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:22px;font-weight:700;margin-bottom:10px;color:#1f2937;cursor:pointer}.step-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:11.9px;color:#4b5563;margin-bottom:20px;font-weight:400}.textarea-box[_ngcontent-%COMP%]{background:#f8f8f8;border:1px solid #ddd;border-radius:8px;padding:15px;margin-bottom:10px}.textarea-box[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;height:120px;border:none;outline:none;background:transparent;font-size:14px;color:#444;resize:none}.info-text[_ngcontent-%COMP%]{font-size:11px;color:#666;margin-bottom:20px;text-align:left}.generate-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:12px 20px;border-radius:25px;font-size:15px;cursor:pointer;width:100%;max-width:300px;margin:10px auto;display:block;font-weight:500}.generate-btn.disabled-btn[_ngcontent-%COMP%]{background:#d1d5db;pointer-events:none}.primary[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:14px 32px;border-radius:25px;font-size:16px;font-weight:500;margin-top:20px;cursor:pointer;width:100%;max-width:150px}.primary[_ngcontent-%COMP%]:hover{background:#e37110}.example-box[_ngcontent-%COMP%]{background:#fff7f0;border:1px solid #F79522;padding:15px 20px;margin:25px 0;font-size:15px;text-align:left;border-radius:6px}.example-box[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#f79522;font-size:14px}.text-card[_ngcontent-%COMP%]{border:1px solid #BEBEBE;padding:30px;border-radius:10px;background:#fff}.text-card[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{border:none;height:1px;background-color:#bebebe;margin:10px -30px}.suggestion-chips-row[_ngcontent-%COMP%]{display:flex;gap:12px;margin-top:14px}.suggestion-chips-row[_ngcontent-%COMP%]   .suggestion-chip[_ngcontent-%COMP%]{flex:1;margin-top:0}.suggestion-chip[_ngcontent-%COMP%]{background:#fff7ed;border:1px dashed #F79522;border-radius:8px;padding:12px 16px;margin-top:14px;cursor:pointer;transition:background .2s ease,border-color .2s ease;text-align:left}.suggestion-chip[_ngcontent-%COMP%]:hover{background:#fff0d6;border-color:#e37110}.suggestion-chip.selected[_ngcontent-%COMP%]{background:#fff0d6;border:2px solid #FFF0D6;box-shadow:#fff0d6}.suggestion-chip[_ngcontent-%COMP%]   .suggestion-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:#f79522;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}.suggestion-chip[_ngcontent-%COMP%]   .suggestion-label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:12px}.suggestion-chip[_ngcontent-%COMP%]   .suggestion-text[_ngcontent-%COMP%]{font-size:12.5px;color:#6b7280;margin:0;line-height:1.55}.continue-btn-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:20px}@media (max-width: 768px){.header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding:10px 20px}.progress-container[_ngcontent-%COMP%]{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start}.progress-step[_ngcontent-%COMP%]{margin:0 15px}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:after{width:30px}.step-content[_ngcontent-%COMP%]{padding:15px;text-align:left}.generate-btn[_ngcontent-%COMP%], .primary[_ngcontent-%COMP%]{width:100%;max-width:none}}.review-container[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]{text-align:center}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13.6px;color:#4b5563;margin-bottom:20px;font-weight:400}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{background:#fff4e5;border:1px solid #f3c38a;padding:15px;border-radius:8px;margin:20px 0}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#d97706;font-weight:500;font-size:11.9px;margin-bottom:5px}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#374151;font-weight:400;font-size:14px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]{background:#fff;border-radius:10px;box-shadow:0 2px 6px #00000014;padding:10px;margin-bottom:15px;
1display:flex;flex-direction:column}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#1f2937}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]{display:flex}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:#666;font-size:12px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]:hover{color:#111827}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{pointer-events:none;height:24px;width:24px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-desc[_ngcontent-%COMP%]{margin-top:8px;font-size:14px;color:#4b5563}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:15px;margin-top:20px}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .add-btn[_ngcontent-%COMP%], .review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .regen-btn[_ngcontent-%COMP%]{background:#f9f9f9;border:1px solid #ddd;padding:10px 15px;border-radius:25px;color:#374151;cursor:pointer;font-size:.95rem}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .regen-btn[_ngcontent-%COMP%]{background:#fff8f0;border:1px solid rgba(247,149,34,.2509803922);color:#f79522;display:flex;align-items:center}.footer-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:-100px;gap:15px}.footer-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.footer-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}.end-buttons[_ngcontent-%COMP%]{padding:20px;width:800px;margin:0 auto;display:flex;justify-content:space-between;gap:15px}.end-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.end-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}@media (max-width: 768px){.review-container[_ngcontent-%COMP%]{padding:10px}.review-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.5rem}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{flex-direction:column;gap:10px}.review-container[_ngcontent-%COMP%]   .footer-buttons[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;margin-bottom:30px}}.edit-input[_ngcontent-%COMP%]{width:180%;font-size:16px;padding:5px 0;border:none;border-bottom:1px dashed #F79522;outline:none;background:transparent}.edit-input[_ngcontent-%COMP%]:focus{border-bottom:1px dashed #F79522}.editable-text[_ngcontent-%COMP%]{margin:0;word-break:break-word;flex:1}.disabled-btn[_ngcontent-%COMP%]{pointer-events:none;opacity:.6}.url-box[_ngcontent-%COMP%]{background:#f9f9f9;border:1px solid #ddd;padding:10px 15px;border-radius:10px;cursor:pointer;font-size:.95rem}.duration-select[_ngcontent-%COMP%]{background:#f9f9f9;border:1px solid #ddd;padding:10px 12px;border-radius:10px;font-size:.95rem;color:#374151;cursor:pointer;outline:none}.duration-select[_ngcontent-%COMP%]:focus{border-color:#2285f7}.duration-select--full[_ngcontent-%COMP%]{width:100%;margin-top:10px}.inline-url-box[_ngcontent-%COMP%]{margin-top:15px;padding:15px;border-radius:6px;background:#f8f8f8;display:flex;flex-direction:column;gap:10px}.inline-url-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:10px;border:1px solid #ccc;border-radius:5px}.btn-group[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:10px;width:100%}.btn-add[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:8px 16px;border-radius:5px}.btn-cancel[_ngcontent-%COMP%]{background:#f1f1f1;border:1px solid #ddd;border:none;padding:8px 16px;border-radius:5px}.url-preview-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border:1px solid #e0e0e0;padding:10px 14px;border-radius:12px;margin-top:12px;background-color:#fff}.left-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.icon-box[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px}.url-info[_ngcontent-%COMP%]{overflow:hidden}.url-text[_ngcontent-%COMP%]{font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.remove-url-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:18px;cursor:pointer;padding:6px;border-radius:6px}.textarea-box.prompt[_ngcontent-%COMP%]{background-color:#fff}.DG-container[_ngcontent-%COMP%]{max-width:800px;margin:40px auto;padding:20px}.DGCard[_ngcontent-%COMP%]{border:1px solid #ddd;padding:20px;border-radius:20px}.DG-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.DG-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:11.9px;color:#4b5563;margin-bottom:20px;font-weight:400}.lang-container[_ngcontent-%COMP%]{width:100%;max-width:100%;padding:20px}.select-item[_ngcontent-%COMP%]{border:1px solid #ddd;width:100%;border-radius:30px;padding:5px;box-shadow:0 1px 2px #0000000d;display:flex;justify-content:center}.all-btn[_ngcontent-%COMP%]{display:flex;gap:10px}.select-lang[_ngcontent-%COMP%]{width:800px;margin:0 auto;background:#fff;border-radius:10px;padding:20px;box-shadow:0 2px 10px #0000000d;box-sizing:border-box}.select-lang[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px}.select-lang[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:#4b5563}.checkbox-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:15px;width:100%}.checkbox-item[_ngcontent-%COMP%]{flex:0 0 calc(50% - 15px);
1display:flex;gap:8px;padding:6px 14px;border:1px solid #ccc;border-radius:8px;background:#fff;cursor:pointer}.all-btn[_ngcontent-%COMP%]{display:flex;gap:15px;flex-wrap:wrap;justify-content:center;margin-bottom:-6px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{display:none}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:10px 20px;background:#f8f8f8;color:#1f2937;border-radius:30px;font-size:14px;cursor:pointer;transition:all .3s ease}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:16px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#2285f7;color:#fff}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.DG-Deploy[_ngcontent-%COMP%]{max-width:600px;margin:40px auto;padding:20px}.deployment-container[_ngcontent-%COMP%]{border:1px solid #ccc;border-radius:10px;padding:20px;font-family:Arial,sans-serif}.deployment-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin-bottom:15px;color:#1f2937}.deployment-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.option[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:12px;display:flex;align-items:flex-start;transition:border-color .3s ease,background .3s ease}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{margin-right:12px;margin-top:14px}.option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;flex-direction:column;
1cursor:pointer;width:100%}.option[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:500;font-size:13px;color:#000}.option[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#1f2937}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{color:#000}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked ~ .option[_ngcontent-%COMP%]{border-color:#1f2937;background:#f9f9f9}.success-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:30px;max-width:700px;margin:40px auto;text-align:center;font-family:Arial,sans-serif;background:#fff}.success-icon[_ngcontent-%COMP%]{width:50px;height:50px;background:#fff8f0;color:#f79522;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:20px;margin:0 auto 20px}.success-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:20px;color:#1f2937;margin-bottom:10px;font-weight:700}.success-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#555;font-size:14px;margin-bottom:20px}.link-box[_ngcontent-%COMP%]{background:#fff8f0;color:#f79522;padding:12px 15px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;font-size:14px;margin:25px auto;width:75%;max-width:400px}.link-text[_ngcontent-%COMP%]{display:inline-block;max-width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.copy-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:18px;color:#f79522;cursor:pointer}.dashboard-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;border-radius:30px;padding:12px 30px;font-size:16px;font-weight:600;cursor:pointer}.dashboard-btn[_ngcontent-%COMP%]:hover{background:#e6841b}.pronunciation-list[_ngcontent-%COMP%]{margin-top:20px}.pronunciation-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:#f9fafb;padding:10px;border-radius:6px;margin-bottom:10px;font-size:14px}.word[_ngcontent-%COMP%]{font-weight:500;color:#111827}.guide[_ngcontent-%COMP%]{color:#4b5563;margin-left:12px}.delete-btn[_ngcontent-%COMP%]{background:none;border:none;color:#dc2626;font-size:16px;cursor:pointer}.voice-settings-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.slider-section[_ngcontent-%COMP%]{margin-top:16px}.slider-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:14px;color:#374151;font-weight:500;margin-bottom:8px}.slider-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.slider-wrapper[_ngcontent-%COMP%]{position:relative;flex:1}.speed-slider[_ngcontent-%COMP%]{width:100%;accent-color:#2285F7}.speed[_ngcontent-%COMP%]{color:#6b7280;font-size:14px;font-weight:400}.option[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:not(#generate), .option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:not([for=generate]){pointer-events:none;opacity:.5}.slider-value[_ngcontent-%COMP%]{position:absolute;top:25px;margin-left:50%;transform:translate(-50%);font-size:13px;color:#4b5563;white-space:nowrap}.tone-section[_ngcontent-%COMP%]{margin-top:20px}.tone-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:14px;color:#374151;font-weight:500;margin-bottom:8px}.tone-select[_ngcontent-%COMP%]{width:100%;padding:8px 12px;border-radius:6px;border:1px solid #D1D5DB;font-size:14px;color:#111827}.test-voice[_ngcontent-%COMP%]{margin-top:24px}.test-btn[_ngcontent-%COMP%]{background-color:#2285f7;color:#fff;border:none;border-radius:6px;padding:10px 16px;font-size:14px;cursor:pointer;display:flex;align-items:center;gap:6px}.test-voice[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;color:#4b5563;margin-top:8px}.opening-message-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.template-list[_ngcontent-%COMP%]{margin-top:10px}.template-option[_ngcontent-%COMP%]{border:1px solid #ddd;padding:12px;border-radius:6px;margin-bottom:10px;cursor:pointer}.template-option.active[_ngcontent-%COMP%]{border:2px solid #2285F7;background-color:#f0f7ff}.template-option[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-right:8px}.custom-message[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;border:1px solid #ccc;padding:10px;border-radius:6px;font-size:16px}
1.custom-message[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.tips-section[_ngcontent-%COMP%]{background-color:#f9fafb;border:1px solid #E5E7EB;border-radius:6px;padding:10px}.tips-section[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{font-size:13px;color:#4b5563;padding-left:18px}.tips-section[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:4px}.tips-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#374151}.msg-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.template-option[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#4b5563}.pronunciation-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.pronunciation-form[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:16px;margin-top:16px}.input-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.input-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:14px;color:#374151;margin-bottom:6px;font-weight:500}.input-field[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px}.add-btn[_ngcontent-%COMP%]{background-color:#e5e7eb;color:#fff;border:none;border-radius:6px;padding:10px 16px;font-size:14px;cursor:pointer;transition:background .3s ease}.text-center[_ngcontent-%COMP%]{text-align:center}.title[_ngcontent-%COMP%]{font-weight:600;font-size:22px;margin-bottom:4px}.subtitle[_ngcontent-%COMP%]{color:#4b5563;font-size:13px}.section[_ngcontent-%COMP%]{background:#fff;border:1px solid #E5E7EB;border-radius:8px;margin-bottom:10px;box-shadow:0 1px 2px #0000000d}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;cursor:pointer;font-weight:500;background-color:#f9fafb}.section-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}.section-subtext[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;margin-top:2px}.toggle-icon[_ngcontent-%COMP%]{font-size:12px;color:#2285f7;font-weight:400}.section-body[_ngcontent-%COMP%]{padding:20px 16px 12px}.question-card[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-radius:6px;padding:6px 10px;margin-top:8px;border:1px solid #E5E7EB}.question-card[_ngcontent-%COMP%]   .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;min-width:0}.question-number[_ngcontent-%COMP%]{font-weight:500;margin-right:8px;flex-shrink:0}.question-text[_ngcontent-%COMP%]{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.question-type[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;border:1px solid #E5E7EB;padding:2px 6px;border-radius:4px;background-color:#f3f4f6;flex-shrink:0;margin-left:10px}.add-btn[_ngcontent-%COMP%]{margin-top:8px;background:none;border:1px solid #D1D5DB;color:#374151;cursor:pointer}.question-input[_ngcontent-%COMP%]{border:none!important;box-shadow:none!important;outline:none!important;background:transparent;font-size:14px;color:#111827;padding:0;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:middle}.question-input[_ngcontent-%COMP%]::placeholder{color:#9ca3af}.question-input[_ngcontent-%COMP%]:focus{border-bottom:1px solid #d1d5db}.type-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;right:0;background:#f3f4f6;border-radius:6px;z-index:1000;min-width:100px;font-size:12px;color:#4b5563}.type-dropdown[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:6px;cursor:pointer;transition:background .2s ease}.preview-img[_ngcontent-%COMP%]{max-width:150px;height:150px;margin-top:10px}.custom-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.custom-modal[_ngcontent-%COMP%]{background:#fff;padding:20px;border-radius:8px;text-align:center;min-width:300px}.modal-buttons[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:center}.loading-spinner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:15px;color:#555}.loading-spinner[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#007bff;font-size:18px}.discussion-guide-container[_ngcontent-%COMP%]{padding:20px}.discussion-guide-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .discussion-guide-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:20px;font-weight:600}.discussion-guide-container[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding-left:20px}.discussion-guide-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:10px;line-height:1.5}.custom-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;margin-top:8px;background-color:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 2px 8px #0000001a;width:220px;z-index:10;display:flex;flex-direction:column}.custom-dropdown-item[_ngcontent-%COMP%]{padding:10px 14px;text-align:left;border:none;background:transparent;cursor:pointer;font-size:14px}.custom-dropdown-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.f-18[_ngcontent-%COMP%]{font-size:18px}.question-section[_ngcontent-%COMP%]{margin-top:10px}.question-card-wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:10px}.question-cardpre[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;box-shadow:0 0 6px #0000001a;padding:0 6px 0 0;transition:all .3s ease}.question-left[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(180deg,#ff7043,#ff5630);color:#fff;width:70px;text-align:center}.question-top[_ngcontent-%COMP%]{font-weight:600;font-size:16px;padding:10px 0}.question-bottom[_ngcontent-%COMP%]{padding:10px 0;border-top:1px solid rgba(255,255,255,.4)}.question-no[_ngcontent-%COMP%]{font-size:12px}.question-icon[_ngcontent-%COMP%]{height:22px;width:22px}.question-text[_ngcontent-%COMP%]{flex-grow:1;margin-left:15px;font-size:16px;font-weight:500;color:#333}.question-actions[_ngcontent-%COMP%]{opacity:0;transition:opacity .3s ease}.continue-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.question-cardpre[_ngcontent-%COMP%]:hover   .question-actions[_ngcontent-%COMP%]{opacity:1}.question-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:5px;font-size:13px}.h-22[_ngcontent-%COMP%]{height:18px;width:18px;background-color:#ff4500;border-radius:3px;padding:2px}.question-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:#ff5722;border-radius:6px;overflow:hidden;width:auto;height:45px}.icon-box[_ngcontent-%COMP%], .number-box[_ngcontent-%COMP%]{color:#fff;font-weight:500;font-size:14px;padding:0 12px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{width:2px;background-color:#fff;height:100%}.typing[_ngcontent-%COMP%]{margin-top:6px}.dot[_ngcontent-%COMP%]{width:6px;height:6px;background:#6b7280;border-radius:50%;display:inline-block;margin-right:3px;animation:_ngcontent-%COMP%_blink 1s infinite}.dot[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.dot[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_blink{0%,80%{opacity:.2}40%{opacity:1}}.alert[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{white-space:pre-wrap;font-size:15px;line-height:1.45}.loading-card[_ngcontent-%COMP%]{border:1px solid #eee;border-radius:10px;padding:16px;background:#fff;box-shadow:0 0 10px #00000008;position:relative;overflow:hidden}.loading-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.loading-bar.title[_ngcontent-%COMP%]{height:12px;width:50%;background:#ddd;border-radius:6px;margin-bottom:10px}.loading-item[_ngcontent-%COMP%]{font-size:15px;font-weight:500;margin-top:5px}.loading-line[_ngcontent-%COMP%]{position:relative;height:10px;background:#f0f0f0;border-radius:5px;overflow:hidden;margin:6px 0}.loading-line[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-150px;height:100%;width:150px;background:linear-gradient(to right,transparent 0%,rgba(255,255,255,.6) 50%,transparent 100%);animation:_ngcontent-%COMP%_shimmer 1.2s infinite}.loading-line.short[_ngcontent-%COMP%]{width:70%}
1.loading-line.medium[_ngcontent-%COMP%]{width:80%!important}.loading-line[_ngcontent-%COMP%]{width:90%}@keyframes _ngcontent-%COMP%_shimmer{0%{left:-150px}to{left:100%}}.wave-animation[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;height:60px;width:200%;background:url(https://svgshare.com/i/117M.svg) repeat-x;background-size:contain;animation:_ngcontent-%COMP%_waveMove 5s linear infinite;z-index:0;opacity:.2}@keyframes _ngcontent-%COMP%_waveMove{0%{transform:translate(0)}to{transform:translate(-50%)}}.branching-container[_ngcontent-%COMP%]{display:flex;gap:30px;margin-top:20px}.title[_ngcontent-%COMP%]{font-weight:600;font-size:14px}.criteria-box[_ngcontent-%COMP%]{margin-top:15px;display:flex;gap:15px}.criteria-select[_ngcontent-%COMP%]{height:auto;border-radius:8px;border:1.5px solid #f0a84c;padding:8px}.choice-input[_ngcontent-%COMP%]{min-height:70px;border-radius:8px;border:1px solid #cfcfcf;padding:10px;resize:none}.branching-container[_ngcontent-%COMP%]{display:flex;gap:30px;align-items:stretch}.dividerbranching[_ngcontent-%COMP%]{width:1px;background:#000;height:100%}.result-box[_ngcontent-%COMP%]{margin-top:15px;display:flex;align-items:center;gap:15px}.goto-box[_ngcontent-%COMP%]{background:#eef2f7;padding:10px 20px;border-radius:6px;font-weight:600}.question-select[_ngcontent-%COMP%]{height:40px;border-radius:8px;border:1px solid #d0d0d0;padding:8px}.footer[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:flex-end;gap:15px}.left-Branching[_ngcontent-%COMP%], .right-section[_ngcontent-%COMP%]{flex:1}.btn-trash[_ngcontent-%COMP%]{border:none;background-color:#fff;color:red}.btn-edit[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#2285f7}.btn-branch[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#555}.branching-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000059;z-index:999}.branching-modal[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1000}.branching-modal-content[_ngcontent-%COMP%]{width:420px;background:#fff;border-radius:10px;padding:15px 25px 25px;box-shadow:0 8px 30px #0000001a}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-bottom:5px}.title-branch[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.row.full[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:20px}.full-width[_ngcontent-%COMP%]{width:100%!important}.section-label[_ngcontent-%COMP%]{font-size:15px;color:#444;margin-bottom:8px;display:block}.row[_ngcontent-%COMP%]{display:flex;margin-bottom:20px}.input-select[_ngcontent-%COMP%], .input-text[_ngcontent-%COMP%]{height:38px;border:1px solid #ddd;border-radius:6px;padding:0 12px;font-size:14px;width:46%}.input-select.small[_ngcontent-%COMP%]{width:100px}.input-select.large[_ngcontent-%COMP%]{flex:1}.placeholder-option[_ngcontent-%COMP%]{color:#999!important}.branching-que[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;box-shadow:0 0 6px #0000001a;padding:20px;transition:all .3s ease}.branching-que[_ngcontent-%COMP%]:hover   .question-actions[_ngcontent-%COMP%]{opacity:1}.deployend-buttons[_ngcontent-%COMP%]{width:650px;margin:0 auto;display:flex;justify-content:space-between;gap:15px}.deployend-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.deployend-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}']})}return b})();var rn=R(1355);function Sn(b,x){1&b&&(e.j41(0,"small"),e.EFF(1,"Name is required."),e.k0s())}function xi(b,x){1&b&&(e.j41(0,"small"),e.EFF(1,"Name must be at least 3 characters long."),e.k0s())}function Fr(b,x){if(1&b&&(e.j41(0,"div",15),e.DNE(1,Sn,2,0,"small",23)(2,xi,2,0,"small",23),e.k0s()),2&b){const s=e.XpG();e.R7$(),e.Y8G("ngIf",s.f.name.errors.required),e.R7$(),e.Y8G("ngIf",s.f.name.errors.minlength)}}function yr(b,x){1&b&&(e.j41(0,"small"),e.EFF(1,"Mobile number is required."),e.k0s())}function Gr(b,x){1&b&&(e.j41(0,"small"),e.EFF(1,"Enter a valid 10-digit mobile number."),e.k0s())}function Ur(b,x){if(1&b&&(e.j41(0,"div",15),e.DNE(1,yr,2,0,"small",23)(2,Gr,2,0,"small",23),e.k0s()),2&b){const s=e.XpG();e.R7$(),e.Y8G("ngIf",s.f.mobile.errors.required),e.R7$(),e.Y8G("ngIf",s.f.mobile.errors.pattern)}}function ar(b,x){if(1&b&&(e.j41(0,"p",24),e.EFF(1),e.k0s()),2&b){const s=e.XpG();e.R7$(),e.JRh(s.successMessage)}}function Yr(b,x){if(1&b&&(e.j41(0,"p",25),e.EFF(1),e.k0s()),2&b){const s=e.XpG();e.R7$(),e.JRh(s.errorMessage)}}let Ho=(()=>{class b{constructor(s,y,g,I){this.fb=s,this.http=y,this.accountsService=g,this.toastrService=I,this.submitted=!1,this.successMessage="",this.errorMessage="",this.userForm=this.fb.group({name:["",[w.k0.required,w.k0.minLength(3)]],mobile:["",[w.k0.required,w.k0.pattern("^[0-9]{10}$")]]})}get f(){return this.userForm.controls}onSubmit(){if(this.submitted=!0,this.successMessage="",this.errorMessage="",this.userForm.invali
1d)return;const s=this.userForm.value;this.accountsService.pushDemoSurvey({Name:s?.name,phoneNumber:s?.mobile}).subscribe(g=>{this.toastrService.success("Message sent successfully on your whatsapp."),this.userForm.reset(),this.submitted=!1})}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(w.ok),e.rXU(N.Qq),e.rXU(pe.u),e.rXU(H.tw))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-push-demo"]],decls:35,vars:5,consts:[[1,"col-sm-12","px-0"],[1,"header","py-4"],[1,"col-sm-12","row","m-0","p-0"],[1,"col-sm-3","m-0","row","justify-content-left"],["href","#"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/logo-print-hd 1.svg","alt",""],[1,"container","mt-5"],[1,"row","justify-content-center"],[1,"col-md-6","col-lg-6"],[1,"card","shadow"],[1,"card-body"],[1,"text-center","mb-4"],[3,"ngSubmit","formGroup"],[1,"mb-3"],[1,"form-label"],[1,"text-danger"],["type","text","formControlName","name","placeholder","Enter your name",1,"form-control"],["class","text-danger",4,"ngIf"],[1,"mb-4"],["type","text","formControlName","mobile","maxlength","10","placeholder","Enter 10-digit mobile number",1,"form-control"],["type","submit",1,"btn","btn-primary","w-100"],["class","text-success text-center mt-3",4,"ngIf"],["class","text-danger text-center mt-3",4,"ngIf"],[4,"ngIf"],[1,"text-success","text-center","mt-3"],[1,"text-danger","text-center","mt-3"]],template:function(y,g){1&y&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.nrm(5,"img",5),e.k0s()()()()(),e.j41(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"h2",11)(12,"strong"),e.EFF(13,"Merren Demo"),e.k0s()(),e.j41(14,"form",12),e.bIt("ngSubmit",function(){return g.onSubmit()}),e.j41(15,"div",13)(16,"label",14)(17,"strong"),e.EFF(18,"Name"),e.k0s(),e.j41(19,"span",15),e.EFF(20,"*"),e.k0s()(),e.nrm(21,"input",16),e.DNE(22,Fr,3,2,"div",17),e.k0s(),e.j41(23,"div",18)(24,"label",14)(25,"strong"),e.EFF(26,"Mobile Number"),e.k0s(),e.j41(27,"span",15),e.EFF(28,"*"),e.k0s()(),e.nrm(29,"input",19),e.DNE(30,Ur,3,2,"div",17),e.k0s(),e.j41(31,"button",20),e.EFF(32,"Submit"),e.k0s(),e.DNE(33,ar,2,1,"p",21)(34,Yr,2,1,"p",22),e.k0s()()()()()()),2&y&&(e.R7$(14),e.Y8G("formGroup",g.userForm),e.R7$(8),e.Y8G("ngIf",g.submitted&&g.f.name.errors),e.R7$(8),e.Y8G("ngIf",g.submitted&&g.f.mobile.errors),e.R7$(3),e.Y8G("ngIf",g.successMessage),e.R7$(),e.Y8G("ngIf",g.errorMessage))},dependencies:[Ce.bT,w.qT,w.me,w.BC,w.cb,w.tU,w.j4,w.JD]})}return b})();var Ln=R(8503);const Wa=["inputRef"],lc=b=>({"disabled-btn":b}),gs=()=>[1,2,3,4],Sr=b=>({prompt:b});function ia(b,x){if(1&b&&(e.j41(0,"div",15)(1,"span",16),e.EFF(2),e.k0s(),e.j41(3,"p"),e.EFF(4),e.k0s()()),2&b){const s=x.$implicit,y=x.index,g=e.XpG(2);e.AVh("active",g.step===s)("completed",g.step>s),e.R7$(2),e.JRh(s),e.R7$(2),e.JRh(g.stepLabels[y])}}function ra(b,x){1&b&&(e.j41(0,"div",13),e.DNE(1,ia,5,6,"div",14),e.k0s()),2&b&&(e.R7$(),e.Y8G("ngForOf",e.lJ4(1,gs)))}function No(b,x){if(1&b&&(e.j41(0,"h6",37),e.EFF(1),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.SpI(" ",s.uploadedFileName," ")}}function Ha(b,x){1&b&&e.nrm(0,"hr",38)}function Uc(b,x){1&b&&(e.j41(0,"h3",39),e.EFF(1,"Attached Reference"),e.k0s())}function oa(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",40)(1,"div",41)(2,"div",42),e.nrm(3,"i",43),e.k0s(),e.j41(4,"div",44)(5,"div",45),e.EFF(6),e.k0s()()(),e.j41(7,"button",46),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.removeUrl())}),e.EFF(8," X "),e.k0s()()}if(2&b){const s=e.XpG(2);e.R7$(6),e.JRh(s.url)}}function Aa(b,x){1&b&&(e.j41(0,"div",53),e.EFF(1," Please enter a valid URL. "),e.k0s())}function sa(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",47)(1,"input",48),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.tempUrl,g)||(I.tempUrl=g),e.Njj(g)}),e.k0s(),e.DNE(2,Aa,2,0,"div",49),e.j41(3,"div",50)(4,"button",51),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.cancelUrl())}),e.EFF(5,"Cancel"),e.k0s(),e.j41(6,"button",52),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.confirmUrl())}),e.EFF(7,"Add"),e.k0s()()()}if(2&b){const s=e.XpG(2);e.R7$(),e.R50("ngModel",s.tempUrl),e.R7$(),e.Y8G("ngIf",s.urlTouched&&s.tempUrl&&!s.isValidUrl(s.tempUrl)),e.R7$(4),e.Y8G("disabled",!s.isValidUrl(s.tempUrl))}}function di(b,x){1&b&&(e.qex(0),e.EFF(1," Generate Key Information Areas "),e.nrm(2,"i",54),e.bVm())}function bs(b,x){1&b&&(e.EFF(0," Generating... "),e.nrm(1,"i",55))}function Dl(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",17)(1,"h2"),e.EFF(2,"Upload Your Existing Discussion Guide"),e.k0s(),e.j41(3,"p",18),e.EFF(4,"Start by defining what you want to learn. We'll use this to generate the key areas to explore in y
1our research."),e.k0s(),e.j41(5,"div",19)(6,"div",20)(7,"div",21)(8,"div",22)(9,"label",23)(10,"input",24),e.bIt("change",function(g){e.eBV(s);const I=e.XpG();return e.Njj(I.onFileSelected(g))}),e.k0s(),e.j41(11,"span",25),e.nrm(12,"i",26),e.k0s(),e.j41(13,"span",27),e.EFF(14," Click to upload "),e.nrm(15,"br"),e.j41(16,"small"),e.EFF(17,".doc, .docx, .txt"),e.k0s()(),e.DNE(18,No,2,1,"h6",28),e.k0s()()()(),e.j41(19,"p",29),e.EFF(20,"Be specific about your target audience, topic, and what insights you're looking to gather. "),e.k0s(),e.DNE(21,Ha,1,0,"hr",30)(22,Uc,2,0,"h3",31)(23,oa,9,1,"div",32)(24,sa,8,3,"div",33),e.j41(25,"button",34),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.generateDG())}),e.DNE(26,di,3,0,"ng-container",35)(27,bs,2,0,"ng-template",null,0,e.C5r),e.k0s()(),e.j41(29,"div",36)(30,"strong"),e.EFF(31,"Example Research Objective"),e.k0s(),e.j41(32,"p"),e.EFF(33,'"Understand how young professionals (25-35) in urban areas perceive and use grocery delivery services, focusing on their decision-making process, pain points, and unmet needs to inform our upcoming service improvements."'),e.k0s()()()}if(2&b){const s=e.sdS(28),y=e.XpG();e.R7$(6),e.Y8G("ngClass",e.eq3(10,Sr,y.prompt&&""!==y.prompt.trim())),e.R7$(12),e.Y8G("ngIf",y.uploadedFileName),e.R7$(3),e.Y8G("ngIf",!y.showUrlModal),e.R7$(),e.Y8G("ngIf",y.url),e.R7$(),e.Y8G("ngIf",y.url),e.R7$(),e.Y8G("ngIf",y.showUrlModal),e.R7$(),e.Y8G("disabled",!y.uploadedFileName&&!y.url||y.isLoading)("ngClass",e.eq3(12,lc,!y.uploadedFileName&&!y.url)),e.R7$(),e.Y8G("ngIf",!y.isLoading)("ngIfElse",s)}}function es(b,x){1&b&&(e.j41(0,"div",62)(1,"div",63),e.nrm(2,"div",64),e.j41(3,"div",65),e.nrm(4,"i",66),e.EFF(5," Generating Key Information Areas.. "),e.nrm(6,"div",67)(7,"div",68)(8,"div",69),e.k0s()(),e.nrm(9,"div",70),e.k0s())}function Vs(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"input",74,2),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.editableName,g)||(I.editableName=g),e.Njj(g)}),e.bIt("blur",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(3);return e.Njj(I.saveArea(g))})("keyup.enter",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(3);return e.Njj(I.saveArea(g))}),e.k0s()()}if(2&b){const s=e.XpG(4);e.R7$(),e.R50("ngModel",s.editableName)}}function aa(b,x){if(1&b&&(e.j41(0,"h3"),e.EFF(1),e.k0s()),2&b){const s=e.XpG().$implicit;e.R7$(),e.JRh(s||"Click to edit")}}function Dr(b,x){if(1&b&&(e.j41(0,"div",72)(1,"div",73),e.DNE(2,Vs,3,1,"div",35)(3,aa,2,1,"ng-template",null,1,e.C5r),e.k0s()()),2&b){const s=x.index,y=e.sdS(4),g=e.XpG(3);e.R7$(2),e.Y8G("ngIf",g.editedIndex===s)("ngIfElse",y)}}function cc(b,x){if(1&b&&(e.j41(0,"div"),e.DNE(1,Dr,5,2,"div",71),e.k0s()),2&b){const s=e.XpG(2);e.R7$(),e.Y8G("ngForOf",s.keyInformationAreas)}}function ao(b,x){1&b&&e.nrm(0,"i",55)}function lo(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",75),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.onContinue())}),e.EFF(1,"Continue "),e.DNE(2,ao,1,0,"i",76),e.k0s()}if(2&b){const s=e.XpG(2);e.Y8G("disabled",s.dgisLoading),e.R7$(2),e.Y8G("ngIf",s.dgisLoading)}}function Ml(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",56)(2,"div",57)(3,"h2"),e.EFF(4,"Review your Key Information Areas"),e.k0s(),e.j41(5,"p",18),e.EFF(6,"These are the main topics we'll explore in your research. Edit them to fit your needs and arrange them in order of priority."),e.k0s()(),e.DNE(7,es,10,0,"div",58)(8,cc,2,1,"div",10),e.j41(9,"div",59)(10,"button",60),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(11,"Previous"),e.k0s(),e.DNE(12,lo,3,2,"button",61),e.k0s()()()}if(2&b){const s=e.XpG();e.R7$(7),e.Y8G("ngIf",s.isLoadingKIA),e.R7$(),e.Y8G("ngIf",!s.isLoadingKIA),e.R7$(2),e.Y8G("disabled",s.isLoadingKIA),e.R7$(2),e.Y8G("ngIf",!s.isLoadingKIA)}}function Gs(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.updateState(!0))}),e.EFF(1,"Continue to Interview Setup"),e.k0s()}}function Xa(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",77)(2,"div",78)(3,"h2"),e.EFF(4,"Finalize your Discussion Guide"),e.k0s(),e.j41(5,"p",18),e.EFF(6,"Organize your interview questions based on the key information areas."),e.k0s()(),e.j41(7,"div",79)(8,"form",80)(9,"div",81),e.nrm(10,"markdown",82),e.k0s()()(),e.j41(11,"div",83)(12,"button",84),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(13,"Previous"),e.k0s(),e.DNE(14,Gs,2,0,"button",85),e.k0s()()()}if(2&b){const s=e.XpG();e.R7$(8),e.Y8G("formGroup",s.form),e.R7$(2),e.Y8G("data",s.discussionGuide),e.R7$(4),e.Y8G("ngIf",!s.isDGEdited)}}function ts(b,x){if(1&b&&(e.j41(0,"div",118)(1,"div",119)(2,"h3",120),e.EFF(3,"Preview Discu
1ssion Guide"),e.k0s(),e.j41(4,"p",121),e.EFF(5," Review your complete discussion guide before proceeding to interview configuration. "),e.k0s(),e.nrm(6,"markdown",82),e.k0s()()),2&b){const s=e.XpG(2);e.R7$(6),e.Y8G("data",s.discussionGuide)}}function fo(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",132)(1,"div",133)(2,"div",134)(3,"div",135)(4,"div",136),e.EFF(5),e.k0s()(),e.j41(6,"div",137),e.nrm(7,"img",138),e.k0s()(),e.j41(8,"div",139),e.EFF(9),e.k0s(),e.j41(10,"div",140)(11,"button",141),e.bIt("click",function(){const g=e.eBV(s).$implicit,I=e.XpG(4);return e.Njj(I.editPreQuestion(g))}),e.EFF(12,"Edit"),e.k0s(),e.j41(13,"button",142),e.bIt("click",function(){const g=e.eBV(s).$implicit,I=e.XpG(4);return e.Njj(I.deleteInterviewQuestions(g._id))}),e.EFF(14,"Delete"),e.k0s()()()()}if(2&b){const s=x.$implicit,y=e.XpG(4);e.R7$(5),e.JRh(s.questionRefernceNo),e.R7$(2),e.Mz_("alt","",s.type," icon"),e.Y8G("src",y.questionIcons[s.type],e.B4B),e.R7$(2),e.SpI(" ",s.text," ")}}function zc(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",143),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.openBranchingModal())}),e.nrm(1,"i",129),e.EFF(2," Add Screening Criteria "),e.k0s()}if(2&b){const s=e.XpG(4);e.AVh("disabled-btn",null==s.branchData?null:s.branchData.questionId)}}function ba(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",144)(1,"a",145),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.selectQuestionType("open-ended"))}),e.nrm(2,"img",146),e.EFF(3,"\xa0 Open-ended "),e.k0s(),e.j41(4,"a",145),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.selectQuestionType("multiple-choice"))}),e.nrm(5,"img",147),e.EFF(6,"\xa0 Multiple Choice "),e.k0s(),e.j41(7,"a",145),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.selectQuestionType("numeric"))}),e.nrm(8,"img",148),e.EFF(9,"\xa0 Numeric "),e.k0s()()}}function ns(b,x){if(1&b){const s=e.RV6();e.qex(0),e.j41(1,"h3",120),e.EFF(2,"Pre Interview Questions"),e.k0s(),e.j41(3,"p",121),e.EFF(4,"Let\u2019s get to know you a bit before the chat"),e.k0s(),e.j41(5,"div",125),e.DNE(6,fo,15,5,"div",126),e.k0s(),e.j41(7,"div",127)(8,"button",128),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.toggleDropdown())}),e.nrm(9,"i",129),e.EFF(10," Add Question "),e.k0s(),e.DNE(11,zc,3,2,"button",130)(12,ba,10,0,"div",131),e.k0s(),e.bVm()}if(2&b){const s=e.XpG(3);e.R7$(6),e.Y8G("ngForOf",s.preInterviewQuestions),e.R7$(5),e.Y8G("ngIf",s.preInterviewQuestions.length>0),e.R7$(),e.Y8G("ngIf",s.showDropdown)}}function qa(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",160)(1,"div",161),e.nrm(2,"img",162),e.j41(3,"span",163),e.EFF(4,"Choices"),e.k0s()(),e.j41(5,"div",164)(6,"div",165)(7,"label",166),e.EFF(8,"Minimum Words"),e.k0s(),e.j41(9,"input",167),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.minWords,g)||(I.minWords=g),e.Njj(g)}),e.k0s()(),e.j41(10,"div",165)(11,"label",166),e.EFF(12,"Maximum Words"),e.k0s(),e.j41(13,"input",168),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.maxWords,g)||(I.maxWords=g),e.Njj(g)}),e.k0s()()()()}if(2&b){const s=e.XpG(4);e.R7$(9),e.R50("ngModel",s.minWords),e.R7$(4),e.R50("ngModel",s.maxWords)}}function Sd(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",178),e.bIt("click",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(5);return e.Njj(I.removeOption(g))}),e.nrm(1,"i",179),e.k0s()}}function $c(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",175)(1,"input",176),e.mxI("ngModelChange",function(g){const I=e.eBV(s).index,Le=e.XpG(5);return e.DH7(Le.multipleOptions[I],g)||(Le.multipleOptions[I]=g),e.Njj(g)}),e.bIt("keydown.enter",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.addOption())}),e.k0s(),e.DNE(2,Sd,2,0,"button",177),e.k0s()}if(2&b){const s=x.index,y=e.XpG(5);e.R7$(),e.Mz_("placeholder","Option ",s+1,""),e.R50("ngModel",y.multipleOptions[s]),e.R7$(),e.Y8G("ngIf",y.multipleOptions.length>1)}}function Ka(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",160)(1,"div",161),e.nrm(2,"img",162),e.j41(3,"span",163),e.EFF(4,"Choices"),e.k0s()(),e.DNE(5,$c,3,4,"div",169),e.j41(6,"button",141),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.addOption())}),e.EFF(7,"+ Add Option"),e.k0s(),e.j41(8,"div",170)(9,"h3",171),e.EFF(10,"Allow Multiple Choices"),e.k0s(),e.j41(11,"label",172)(12,"input",173),e.bIt("change",function(g){e.eBV(s);const I=e.XpG(4);return e.Njj(I.onChangeMultiChoice(g))}),e.k0s(),e.nrm(13,"span",174),e.k0s()()()}if(2&b){const s=e.XpG(4);e.R7$(5),e.Y8G("ngForOf",s.multipleOptions)("ngForTrackBy",s.trackByIndex),e.R7$(7),e.Y8G("checked",s.isMultipleChoices)}}function P(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",160)(1,"div",161),e.nrm(2,"img",162),e.j41(3,"span",163),e.EFF(4,"Choices"),e.k0s()(),e.j41(5,"div",164)(6,"div",165)(7,"label",166),e.EFF(8,"Minimum Value"),e.k0s(),e.j41(9,"input",167),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.minValue,g)||(I.minValue=g),e.Njj(g)}),e.k0s()(),e.j41(10,"div",165)(11,"label",166),e.EFF(12,"Maximum Value"),e.k0s(),e.j41(13,"input",168),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.maxValue,g)||(I.maxValue=g),e.Njj(g)}),e.k0s()()()()}if(2&b){const s=e.XpG(4);e.R7$(9),e.R50("ngModel",s.minValue),e.R7$(4),e.R50("ngModel",s.maxValue)}}function z(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",180),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.savePreInterviewQuestion())}),e.EFF(1," Save "),e.k0s()}if(2&b){const s=e.XpG(4);e.Y8G("disabled",!(null!=s.questionText&&s.questionText.trim()))}}function F(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",180),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.updatePreInterviewQuestion())}),e.EFF(1," Update "),e.k0s()}if(2&b){const s=e.XpG(4);e.Y8G("disabled",!(null!=s.questionText&&s.questionText.trim()))}}function $(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",149)(1,"div",150)(2,"div",151)(3,"div",152),e.nrm(4,"img",153),e.k0s(),e.nrm(5,"div",38),e.j41(6,"div",154),e.EFF(7),e.k0s()(),e.j41(8,"textarea",155),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(3);return e.DH7(I.questionText,g)||(I.questionText=g),e.Njj(g)}),e.k0s()(),e.DNE(9,qa,14,2,"div",156)(10,Ka,14,3,"div",156)(11,P,14,2,"div",156),e.j41(12,"div",157),e.DNE(13,z,2,1,"button",158)(14,F,2,1,"button",158),e.j41(15,"button",159),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.goBack())}),e.EFF(16,"Close"),e.k0s()()()}if(2&b){const s=e.XpG(3);e.R7$(4),e.Y8G("src",s.questionIcons[s.selectedinterviewQuestionType],e.B4B),e.R7$(3),e.SpI(" Q",s.nextQuestionNumber," "),e.R7$(),e.R50("ngModel",s.questionText),e.R7$(),e.Y8G("ngIf","o
1pen-ended"===s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf","multiple-choice"===s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf","numeric"===s.selectedinterviewQuestionType),e.R7$(2),e.Y8G("ngIf",!s.isEditing),e.R7$(),e.Y8G("ngIf",s.isEditing)}}function _e(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",122)(1,"div")(2,"h3",181),e.EFF(3,"Screening Criteria"),e.k0s()(),e.j41(4,"div",182)(5,"p"),e.EFF(6," If question is "),e.j41(7,"strong"),e.EFF(8),e.k0s(),e.EFF(9," response "),e.j41(10,"strong"),e.EFF(11),e.k0s(),e.EFF(12,", then Go to "),e.j41(13,"strong"),e.EFF(14),e.k0s()(),e.j41(15,"div",140)(16,"button",183),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.editBranch(g.branchData))}),e.nrm(17,"i",184),e.k0s(),e.j41(18,"button",185),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.deleteBranch())}),e.nrm(19,"i",186),e.k0s()()()()}if(2&b){const s=e.XpG(3);e.R7$(8),e.JRh(s.getLogicQuestionText(null==s.branchData?null:s.branchData.questionId)),e.R7$(3),e.Lme("",null==s.branchData?null:s.branchData.condition," ",null==s.branchData?null:s.branchData.option,""),e.R7$(3),e.JRh(null==s.branchData?null:s.branchData.result)}}function Be(b,x){if(1&b&&(e.j41(0,"div")(1,"div",122),e.DNE(2,ns,13,3,"ng-container",10)(3,$,17,8,"div",123),e.k0s(),e.DNE(4,_e,20,4,"div",124),e.k0s()),2&b){const s=e.XpG(2);e.R7$(2),e.Y8G("ngIf",!s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf",s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf",null==s.branchData?null:s.branchData.questionId)}}function dt(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",190)(1,"input",191),e.bIt("change",function(g){const I=e.eBV(s).$implicit;return e.Njj(I.isSelected=g.target.checked)}),e.k0s(),e.j41(2,"label",192),e.EFF(3),e.k0s()()}if(2&b){const s=x.$implicit;e.R7$(),e.FS9("id",null==s?null:s.language),e.Y8G("checked",s.isSelected),e.R7$(),e.FS9("value",null==s?null:s.language),e.FS9("for",null==s?null:s.language),e.R7$(),e.JRh(null==s?null:s.name)}}function Vt(b,x){if(1&b&&(e.j41(0,"div",187)(1,"h3"),e.EFF(2,"Select Languages"),e.k0s(),e.j41(3,"p"),e.EFF(4,"Choose all languages that your AI interviewer should support. Participants will be able to select their preferred language."),e.k0s(),e.j41(5,"div",188),e.DNE(6,dt,4,5,"div",189),e.k0s()()),2&b){const s=e.XpG(2);e.R7$(6),e.Y8G("ngForOf",s.languages)}}function Nt(b,x){1&b&&(e.j41(0,"div",193)(1,"div",194)(2,"h3"),e.EFF(3,"Choose Interviewer Persona"),e.k0s(),e.j41(4,"div",195)(5,"div",196),e.nrm(6,"input",197),e.j41(7,"label",198)(8,"span",199),e.EFF(9,"Neutral Professional"),e.k0s(),e.j41(10,"span",200),e.EFF(11,"Objective, clear, and professional tone"),e.k0s()()(),e.j41(12,"div",196),e.nrm(13,"input",201),e.j41(14,"label",202)(15,"span",199),e.EFF(16,"Friendly Conversationalist"),e.k0s(),e.j41(17,"span",200),e.EFF(18,"Warm, approachable, and engaging"),e.k0s()()(),e.j41(19,"div",196),e.nrm(20,"input",203),e.j41(21,"label",204)(22,"span",199),e.EFF(23,"Industry Expert"),e.k0s(),e.j41(24,"span",200),e.EFF(25,"Knowledgeable, analytical, and insightful"),e.k0s()()(),e.j41(26,"div",196),e.nrm(27,"input",205),e.j41(28,"label",206)(29,"span",199),e.EFF(30,"Empathetic Listener"),e.k0s(),e.j41(31,"span",200),e.EFF(32,"Understanding, patient, and supportive"),e.k0s()()(),e.j41(33,"div",196),e.nrm(34,"input",205),e.j41(35,"label",206)(36,"span",199),e.EFF(37,"Direct Investigator"),e.k0s(),e.j41(38,"span",200),e.EFF(39,"Straightforward, efficient, and to-the-point"),e.k0s()()()()()())}function bn(b,x){if(1&b&&(e.j41(0,"option",219),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.JRh(s)}}function ki(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",207)(1,"h3",88),e.EFF(2,"Voice Settings"),e.k0s(),e.j41(3,"div",208)(4,"label"),e.EFF(5,"Speaking Speed"),e.k0s(),e.j41(6,"div",209)(7,"span",210),e.EFF(8,"Slow"),e.k0s(),e.j41(9,"div",211)(10,"input",212),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.speakingSpeed,g)||(I.speakingSpeed=g),e.Njj(g)}),e.bIt("input",function(g){e.eBV(s);const I=e.XpG(2);return e.Njj(I.updateLabelPosition(g))}),e.k0s(),e.j41(11,"div",213),e.EFF(12),e.k0s()(),e.j41(13,"span",210),e.EFF(14,"Fast"),e.k0s()()(),e.j41(15,"div",214)(16,"label"),e.EFF(17,"Tone"),e.k0s(),e.j41(18,"select",215),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.tone,g)||(I.tone=g),e.Njj(g)}),e.DNE(19,bn,2,2,"option",216),e.k0s()(),e.j41(20,"div",217)(21,"button",218),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.testVoice())}),e.EFF(22,"\u25b6 Test Voice"),e.k0s(),e.j41(23,"p"),e.EFF(24,"Click to hear a sample of how your AI interviewer will sound with these settings."),e.k0s()()()}if(2&b){const s=e.XpG(2);e.R7$(10),e.R50("ngModel",s.speakingSpeed),e.R7$(),e.xc7("left",s.labelPosition,"%"),e.R7$(),e.SpI(" ",s.speakingSpeed.toFixed(1),"x "),e.R7$(6),e.R50("ngModel",s.tone),e.R7$(),e.Y8G("ngForOf",s.toneOptions)}}function Di(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",220)(1,"h3",221),e.EFF(2,"Configure Opening Message"),e.k0s(),e.j41(3,"p",222),e.EFF(4," This is the first message participants will hear when the interview begins. Choose a template or customize your own. "),e.k0s(),e.j41(5,"div",223)(6,"h4",224),e.EFF(7,"Templates"),e.k0s(),e.j41(8,"div",225)(9,"div",226),e.nrm(10,"input",227),e.j41(11,"label",228),e.EFF(12,"Formal Introduction"),e.k0s(),e.j41(13,"p",229),e.EFF(14," Hello, thank you for participating in this research interview. My name is [AI Name], and I'll be conducting this interview today. Your insights are valuable to us and will help improve our products and services. "),e.k0s()(),e.j41(15,"div",226),e.nrm(16,"input",230),e.j41(17,"label",231),e.EFF(18,"Casual Welcome"),e.k0s(),e.j41(19,"p"),e.EFF(20," Hi there! Thanks so much for taking the time to chat with me today. I'm [AI Name] and I'm excited to hear your thoughts and experiences. This is a relaxed conversation, so feel free to share whatever comes to mind. "),e.k0s()(),e.j41(21,"div",226),e.nrm(22,"input",232),e.j41(23,"label",233),e.EFF(24,"Brief Introduction"),e.k0s(),e.j41(25,"p"),e.EFF(26," Welcome to this interview. I'm [AI Name], your AI interviewer. Let's get started with our discussion. "),e.k0s()()()(),e.j41(27,"div",234)(28,"h4"),e.EFF(29,"Customize Message"),e.k0s(),e.j41(30,"textarea",235),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.customMessage,g)||(I.customMessage=g),e.Njj(g)}),e.k0s()(),e.j41(31,"div",236)(32,"h3"),e.EFF(33,"Tips for an effective opening:"),e.k0s(),e.j41(34,"ul")(35,"li"),e.EFF(36,"Introduce yourself and explain the purpose of the interview"),e.k0s(),e.j41(37,"li"),e.EFF(38,"Make participants feel comfortable to share openly"),e.k0s(),e.j41(39,"li"),e.EFF(40,"Mention the expected duration of the participant's session"),e.k0s(),e.j41(41,"li"),e.EFF(42,"Set clear expectations about the kind of input or views you want"),e.k0s(),e.j41(43,"li"),e.EFF(44,"Consider mentioning the language(s) if you're supporting multiple languages"),e.k0s()()()()}if(2&b){const s=e.XpG(2);e.R7$(30),e.R50("ngModel",s.customMessage)}}function Mr(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",247)(1,"span",248),e.EFF(2),e.k0s(),e.j41(3,"span",249),e.EFF(4),e.k0s(),e.j41(5,"button",250),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG(4);return e.Njj(I.removePronunciation(g))}),e.EFF(6,"\u2715"),e.k0s()()}if(2&b){const s=x.$implicit;e.R7$(2),e.JRh(s.word),e.R7$(2),e.JRh(s.pronunciation)}}function Ya(b,x){if(1&b&&(e.j41(0,"div",245),e.DNE(1,Mr,7,2,"div",246),e.k0s()),2&b){const s=e.XpG(3);e.R7$(),e.Y8G("ngForOf",s.pronunciationList)}}function El(b,x){1&b&&(e.j41(0,"p",251),e.EFF(1,"No custom pronunciations added yet."),e.k0s())}function kl(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",237)(1,"h3",238),e.EFF(2,"Pronunciation Dictionary"),e.k0s(),e.j41(3,"p",18),e.EFF(4," Add custom pronunciations for specific terms, names, or local words that the AI interviewer should pronounce correctly. "),e.k0s(),e.j41(5,"div",239)(6,"div",240)(7,"label"),e.EFF(8,"Word or Phrase"),e.k0s(),e.j41(9,"input",241),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.word,g)||(I.word=g),e.Njj(g)}),e.k0s()(),e.j41(10,"div",240)(11,"label"),e.EFF(12,"Pronunciation Guide"),e.k0s(),e.j41(13,"input",242),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.pronunciation,g)||(I.pronunciation=g),e.Njj(g)}),e.k0s()(),e.j41(14,"button",243),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.addPronunciation())}),e.EFF(15,"Add"),e.k0s()(),e.DNE(16,Ya,2,1,"div",244)(17,El,2,0,"ng-template",null,3,e.C5r),e.k0s()}if(2&b){const s=e.sdS(18),y=e.XpG(2);e.R7$(9),e.R50("ngModel",y.word),e.R7$(4),e.R50("ngModel",y.pronunciation),e.R7$(3),e.Y8G("ngIf",y.pronunciationList.length>0)("ngIfElse",s)}}function Qc(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",87)(2,"div",78)(3,"h2",88),e.EFF(4,"Configure Your AI Interviewer"),e.k0s(),e.j41(5,"p",18),e.EFF(6,"Customize how your AI interviewer will c
1onduct the interviews. "),e.k0s()(),e.j41(7,"div",89)(8,"div",90)(9,"input",91),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("Discussion_Guide"))}),e.k0s(),e.j41(10,"label",92),e.nrm(11,"img",93),e.EFF(12,"Discussion Guide"),e.k0s(),e.j41(13,"input",94),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("Screener_Questions"))}),e.k0s(),e.j41(14,"label",95),e.nrm(15,"i",96),e.EFF(16,"Screener Questions"),e.k0s(),e.j41(17,"input",97),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("language"))}),e.k0s(),e.j41(18,"label",98),e.nrm(19,"i",99),e.EFF(20,"Language"),e.k0s(),e.j41(21,"input",100),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("persona"))}),e.k0s(),e.j41(22,"label",101),e.nrm(23,"i",102),e.EFF(24," Persona"),e.k0s(),e.j41(25,"input",103),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("voice"))}),e.k0s(),e.j41(26,"label",104),e.nrm(27,"i",105),e.EFF(28," Voice"),e.k0s(),e.j41(29,"input",106),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("opening"))}),e.k0s(),e.j41(30,"label",107),e.nrm(31,"i",108),e.EFF(32," Opening Message"),e.k0s(),e.j41(33,"input",109),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("pronunciation"))}),e.k0s(),e.j41(34,"label",110),e.nrm(35,"i",111),e.EFF(36," Pronunciation"),e.k0s()()(),e.DNE(37,ts,7,1,"div",112)(38,Be,5,3,"div",10)(39,Vt,7,1,"div",113)(40,Nt,40,0,"div",114)(41,ki,25,6,"div",115)(42,Di,45,1,"div",116)(43,kl,19,4,"div",117),e.j41(44,"div",83)(45,"button",84),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(46,"Previous"),e.k0s(),e.j41(47,"button",86),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!0))}),e.EFF(48,"Continue to Deployment"),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(9),e.Y8G("checked","Discussion_Guide"===s.activeTab),e.R7$(4),e.Y8G("checked","Screener_Questions"===s.activeTab),e.R7$(4),e.Y8G("checked","language"===s.activeTab),e.R7$(20),e.Y8G("ngIf","Discussion_Guide"===s.activeTab),e.R7$(),e.Y8G("ngIf","Screener_Questions"===s.activeTab),e.R7$(),e.Y8G("ngIf","language"===s.activeTab),e.R7$(),e.Y8G("ngIf","persona"===s.activeTab),e.R7$(),e.Y8G("ngIf","voice"===s.activeTab),e.R7$(),e.Y8G("ngIf","opening"===s.activeTab),e.R7$(),e.Y8G("ngIf","pronunciation"===s.activeTab)}}function la(b,x){1&b&&e.nrm(0,"i",55)}function Gu(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",252)(2,"div",78)(3,"h2",88),e.EFF(4,"Deploy Your AI Interviewer"),e.k0s(),e.j41(5,"p",18),e.EFF(6,"Choose how you want to deploy your AI interviewer to participants."),e.k0s()(),e.j41(7,"div",194)(8,"h3"),e.EFF(9,"Deployment Method"),e.k0s(),e.j41(10,"div",195)(11,"div",196),e.nrm(12,"input",253),e.j41(13,"label",198)(14,"span",199),e.EFF(15,"Generate Interview URL"),e.k0s(),e.j41(16,"span",200),e.EFF(17,"Create a unique link that participants can access in their browser"),e.k0s()()(),e.j41(18,"div",196),e.nrm(19,"input",254),e.j41(20,"label",202)(21,"span",199),e.EFF(22,"Zoom Integration"),e.k0s(),e.j41(23,"span",200),e.EFF(24,"Deploy as a Zoom bot that can join scheduled meetings"),e.k0s()()(),e.j41(25,"div",196),e.nrm(26,"input",255),e.j41(27,"label",204)(28,"span",199),e.EFF(29,"Microsoft Teams Integration"),e.k0s(),e.j41(30,"span",200),e.EFF(31,"Deploy as a Teams bot that can conduct interviews in your Teams environment"),e.k0s()()(),e.j41(32,"div",196),e.nrm(33,"input",256),e.j41(34,"label",206)(35,"span",199),e.EFF(36,"Google Meet Integration"),e.k0s(),e.j41(37,"span",200),e.EFF(38,"Deploy as a Meet bot that can join Google Calendar scheduled interviews"),e.k0s()()()()(),e.j41(39,"div",257)(40,"button",84),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(41,"Back to Configuration"),e.k0s(),e.j41(42,"button",75),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.createDicussionGuide())}),e.EFF(43,"Deploy Interview "),e.DNE(44,la,1,0,"i",76),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(42),e.Y8G("disabled",s.createLink),e.R7$(2),e.Y8G("ngIf",s.createLink)}}function Pd(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",258)(2,"div",259),e.nrm(3,"i",260),e.k0s(),e.j41(4,"h2"),e.EFF(5,"Interview Ready to be deployed"),e.k0s(),e.j41(6,"p"),e.EFF(7,"Your AI interviewer is now ready to conduct interviews. Share the link below with participants."),e.k0s(),e.j41(8,"div",261)(9,"span",262),e.EFF(10),e.k0s(),e.j41(11,"button",263),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.copyNewLink(g.surveyLink))}),e.nrm(12,"i",264),e.k0s()(),e.j41(13,"button",265),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.goto())}),e.EFF(14,"View Analysis Dashboard"),e.k0s()()()}if(2&b){const s=e.XpG();e.R7$(9),e.FS9("title",s.surveyLink),e.R7$(),e.JRh(s.surveyLink)}}function Uu(b,x){1&b&&e.nrm(0,"div",266)}function Od(b,x){if(1&b&&(e.j41(0,"option",286),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("ngValue",s),e.R7$(),e.JRh(null==s?null:s.que_text)}}function Rd(b,x){if(1&b&&(e.j41(0,"option",219),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.SpI(" ",s," ")}}function Fd(b,x){if(1&b&&(e.j41(0,"option",219),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.SpI(" ",s," ")}}function Us(b,x){if(1&b){const s=e.RV6();e.j41(0,"select",279),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.selectedChoiceText,g)||(I.selectedChoiceText=g),e.Njj(g)}),e.j41(1,"option",287),e.EFF(2,"Select an Option"),e.k0s(),e.DNE(3,Fd,2,2,"option",216),e.k0s()}if(2&b){const s=e.XpG(2);e.R50("ngModel",s.selectedChoiceText),e.R7$(3),e.Y8G("ngForOf",s.multipleOptions)}}function zu(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",288),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.selectedChoiceText,g)||(I.selectedChoiceText=g),e.Njj(g)}),e.k0s()}if(2&b){const s=e.XpG(2);e.R50("ngModel",s.selectedChoiceText)}}function Wc(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",267)(1,"div",268)(2,"div",269)(3,"h3",270),e.nrm(4,"i",271),e.EFF(5," Screening Criteria"),e.k0s()(),e.j41(6,"div",272)(7,"div",273)(8,"select",274),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.DH7(I.selectedResultQuestion,g)||(I.selectedResultQuestion=g),e.Njj(g)}),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.onQuestionSelect())}),e.j41(9,"option",275),e.EFF(10,"Select a Question"),e.k0s(),e.DNE(11,Od,2,2,"option",276),e.k0s()(),e.j41(12,"p",277),e.EFF(13,"If answer to this question"),e.k0s(),e.j41(14,"div",278)(15,"select",279),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.DH7(I.selectedCriteria,g)||(I.selectedCriteria=g),e.Njj(g)}),e.j41(16,"option",275),e.EFF(17,"Select a Criteria"),e.k0s(),e.DNE(18,Rd,2,2,"option",216),e.k0s(),e.DNE(19,Us,4,2,"select",280)(20,zu,1,1,"input",281),e.k0s(),e.j41(21,"label",282),e.EFF(22,"Then end the interview"),e.k0s()(),e.j41(23,"div",283)(24,"button",284),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.closeBranchingModal())}),e.EFF(25,"Close"),e.k0s(),e.j41(26,"button",285),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.saveBranching())}),e.EFF(27,"Save"),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(8),e.R50("ngModel",s.selectedResultQuestion),e.R7$(3),e.Y8G("ngForOf",s.logicQuestions),e.R7$(4),e.R50("ngModel",s.selectedCriteria),e.R7$(3),e.Y8G("ngForOf",s.branchCriteriaToShow),e.R7$(),e.Y8G("ngIf",s.isMCQSelected&&"not empty"!==s.selectedCriteria),e.R7$(),e.Y8G("ngIf",!s.isMCQSelected&&"not empty"!==s.selectedCriteria)}}let Nd=(()=>
1{class b{constructor(s,y,g,I){this.surveyService=s,this.tostr=y,this.dashboardService=g,this.router=I,this.isBackToDashboard=!1,this.step=1,this.editedIndex=null,this.editableName="",this.stepLabels=["Research Setup","Key Information Areas","Discussion Guide","AI Interviewer Setup","Deploy & Launch"],this.activeTab="Screener_Questions",this.discussionGuide="",this.selectedinterviewQuestionType="",this.selectedInterviewId="",this.editingQuestionId=null,this.openEndedText="",this.minWords=1,this.maxWords=100,this.numericText="",this.minValue=1,this.maxValue=100,this.multipleChoiceQuestionText="",this.multipleOptions=[""],this.isMultipleChoices=!1,this.questionText="",this.showDropdown=!1,this.branchData=null,this.branchingQuestion=[],this.questionSections=[],this.logicQuestions=[],this.connectedTo=[],this.choiceText="",this.selectedQuestion=null,this.selectedBranchQuestion=null,this.selectedChoiceText="",this.selectedResultQuestion=null,this.currentQuestionText="",this.currentQuestionType="",this.currentQuestionOptions=[],this.selectedQuestionForBranch=null,this.selectedCriteria=null,this.branchCriteria=["is","isn't","contains","doesn't contain"],this.branchCriteriaText=["contains","doesn't contain","not empty"],this.numericBranchCriteria=["Greater than","Less than","Greater than or equal to","Less than or equal to","Equal to","Not equal to"],this.allowedBranchTypes=["Nominal","Numeric","open-ended"],this.isMCQSelected=!1,this.branchCriteriaToShow=[],this.questionSection=[],this.tempUrl="",this.url="",this.isActive=!0,this.urlText="",this.urlTouched=!1,this.showUrlModal=!1,this.prompt="",this.isLoading=!1,this.editedQuestionIndex=null,this.editableQuestionText="",this.allQuestions=[],this.hasChanged=!1,this.showDiscussionGuide=!1,this.initialKeyInformationAreas=[],this.languages=[{language:"English",name:"English",isSelected:!0,disabled:!1},{language:"Hindi",name:"\u0939\u093f\u0928\u094d\u0926\u0940",isSelected:!0,disabled:!1},{language:"Marathi",name:"\u092e\u0930\u093e\u0920\u0940",isSelected:!1,disabled:!0},{language:"Bengali",name:"\u09ac\u09be\u0982\u09b2\u09be",isSelected:!1,disabled:!0},{language:"Tamil",name:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",isSelected:!1,disabled:!0},{language:"Telugu",name:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",isSelected:!1,disabled:!0},{language:"Kannada",name:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",isSelected:!1,disabled:!0},{language:"Gujarati",name:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",isSelected:!1,disabled:!0},{language:"Indonesian",name:"bahasa Indonesia",isSelected:!1,disabled:!0},{language:"Spanish",name:"Spanish",isSelected:!1,disabled:!0},{language:"French",name:"Fran\xe7ais",isSelected:!1,disabled:!0},{language:"Portuguese",name:"portugu\xeas",isSelected:!1,disabled:!0},{language:"Persian",name:"\u0641\u0627\u0631\u0633\u06cc",isSelected:!1,disabled:!0},{language:"Arabic",name:"\u0639\u0631\u0628\u064a",isSelected:!1,disabled:!0},{language:"Malayalam",name:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",isSelected:!1,disabled:!0},{language:"Punjabi",name:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",isSelected:!1,disabled:!0},{language:"Odia",name:"\u0b13\u0b21\u0b3f\u0b06",isSelected:!1,disabled:!0},{language:"Afrikaans",name:"Afrikaans",isSelected:!1,disabled:!0},{language:"Urdu",name:"\u0627\u0631\u062f\u0648",isSelected:!1,disabled:!0}],this.keyInformationAreas=[],this.isDGChanged=!1,this.originalDG="",this.isDGSave=!1,this.originalDGText="",this.isDGEdited=!1,this.DGquestionLoading=!1,this.isLoadingKIA=!1,this.questionIcons={"open-ended":"../assets/icons/Audio text.png","multiple-choice":"https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/i-exam-multiple-choice-svgrepo-com (1) 1.png",numeric:"https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/123.svg"},this.preInterviewQuestions=[],this.isEditing=!1,this.isBranchingModalOpen=!1,this.createLink=!1,this.isLinkCreated=!1,this.createSurveyLink=!1,this.forceStep6=!1,this.linkName="test",this.surveyLink="",this.ongoingSurveysArr=[],this.selectedFile=null,this.uploadedFileName=""}ngOnInit(){this.editor=new ur.KE,this.getPreInterviewQuestions(),this.getAllSurveys()}getAllSurveys(){this.dashboardService.getAllSurveys().subscribe(s=>{},s=>{console.error(s)})}updateState(s){s?this.step++:this.step--}setActiveTab(s){this.activeTab=s}generateDG(){this.isBackToDashboard=!0,this.isLoading=!0,this.isLoadingKIA=!0;const y=JSON.parse(localStorage.getItem("currentUser")).email,g=new FormData;this.selectedFile&&g.append("file",this.selectedFile),this.url&&g.append("url",this.url),g.append("email",y),this.surveyService.generateDG(g).subscribe(I=>{console.log("this is dg",I),this.isBackToDashboard=!1,this.discussionGuide=I?.discussion_guide_md,this.isLoadingKIA=!1,this.keyInformationAreasString=JSON.stringify(I?.key_information_areas),this.keyInformationAreas=I?.key_information_areas||[],this.initialKeyInformationAreas=[...this.keyInformationAreas],this.step=2,this.isLoading=!1,this.originalDGText=this.discussionGuide;const Le=tr.xI.parse(this.discussionGuide);this.form=new w.gE({editorContent:new w.MJ(Le)}),this.DgSubscription&&this.DgSubscription.unsubscribe(),this.DgSubscription=this.form.get("editorContent")?.valueChanges.subscribe(et=>{const Wt=(new jr.A).turndown(et||"");this.isDGEdited=Wt.trim()!==(this.originalDGText||"").trim()}),this.isLoading=!1,localStorage.setItem("surveyId",I._id),localStorage.setItem("surveyName",I?.name),localStorage.setItem("surveyLanguages",I?.languages?.toString()||"English"),localStorage.setItem("isDGSurevy","yes")},I=>{this.tostr.error(I),this.isLoading=!1,this.isBackToDashboard=!1,this.isLoadingKIA=!1})}toggleDropdown(){this.showDropdown=!this.showDropdown}selectQuestionType(s){if(this.selectedinterviewQuestionType=s,this.showDropdown=!1,"numeric"===s&&(this.minValue=this.minValue??1,this.maxValue=this.maxValue??100),"open-ended"===s&&(this.minWords=this.minWords??1,this.maxWords=this.maxWords??100),this.preInterviewQuestions&&0!==this.preInterviewQuestions.length){const y=this.preInterviewQuestions.map(I=>parseInt(I.questionRefernceNo?.replace("Q",""),10)).filter(I=>!isNaN(I)),g=Math.max(...y);this.nextQuestionNumber=g}else this.nextQuestionNumber=1;this.nextQuestionNumber++}trackByIndex(s){return s}addOption(){this.multipleOptions.push("")}removeOption(s){this.multipleOptions.length>1?this.multipleOptions.splice(s,1):this.multipleOptions=[""]}goBack(){this.selectedinterviewQuestionType=null,this.resetQuestionForm()}onChangeMultiChoice(s){this.isMultipleChoices=s.target.checked}resetQuestionForm(){this.questionText="",this.openEndedText="",this.numericText="",this.multipleChoiceQuestionText="",this.multipleOptions=[""],this.isMultipleChoices=!1,this.minWords=null,this.maxWords=null,this.minValue=null,this.maxValue=null,this.selectedinterviewQuestionType=null,this.isEditing=!1}savePreInterviewQuestion(){const s=localStorage.getItem("surveyId");if(!this.selectedinterviewQuestionType)return void this.tostr.error("Please select a question type.");if(!s)return void this.tostr.error("Survey ID is missing.");if(!this.questionText?.trim())return void this.tostr.error("Please enter the question text.");if("open-ended"===this.selectedinterviewQuestionType||"numeric"===this.selectedinterviewQuestionType){const g="open-ended"===this.selectedinterviewQuestionType?this.minWords:this.minValue,I="open-ended"===this.selectedinterviewQuestionType?this.maxWords:this.maxValue;if(0===g&&0===I)return void this.tostr.error("Minimum and maximum values cannot both be 0.");if(0===g||0===I)return void this.tostr.error("Minimum and maximum values cannot be 0.");if(g>=I)return void this.tostr.error("Minimum value must be less than maximum value.")}const y={type:this.selectedinterviewQuestionType,text:this.questionText.trim(),interviewId:s};if("open-ended"===this.selectedinterviewQuestionType)y.min_words=this.minWords||1,y.max_words=this.maxWords||100;else if("numeric"===this.selectedinterviewQuestionType)y.min_value=this.minValue??1,y.max_value=this.maxValue??100;else if("multiple-choice"===this.selectedinterviewQuestionType){const g=this.multipleOptions.map(I=>I.trim()).filter(I=>""!==I);if(g.length<2)return void this.tostr.error("Please add at least 2 options before saving.");y.options=g,y.is_multi_choice=this.isMultipleChoices||!1}this.surveyService.savePreInterviewQuestions(y).subscribe({next:g=>{this.tostr.success("Question saved successfully."),this.getPreInterviewQuestions(),this.resetQuestionForm()},error:g=>{console.error("Error saving question:",g),this.tostr.error("Failed to save question. Please try again.")}})}getPreInterviewQuestions(){const s=localStorage.getItem("surveyId");s&&this.surveyService.fetchPreInterviewQuestions(s).subscribe({next:y=>{console.log("Pre-interview questions:",y),this.preInterviewQuestions=y||[],this.setNextQuestionNumber(),this.setBranchingData(y)},error:y=>console.error("Error fetching pre-interview questions:",y)})}setNextQuestionNumber(){if(!this.preInterviewQuestions||0===this.preInterviewQuestions.length)return void(this.nextQuestionNumber=1);const s=this.preInterviewQuestions.map(g=>parseInt(g.questionRefernceNo?.replace("Q",""),10)).filter(g=>!isNaN(g)),y=Math.max(...s);this.nextQuestionNumber=y+1,console.log("\u27a1\ufe0f Next question number:",this.nextQuestionNumber)}deleteInterviewQuestions(s){this.branchData&&this.branchData.questionId===s?this.tostr.error("You cannot delete this question because branching is applied."):this.surveyService.deletePreInterviewQuestion(s).subscribe({next:()=>{this.preInterviewQuestions=this.preInterviewQuestions.filter(y=>y._id!==s),this.tostr.success("Question deleted successfully!")},error:y=>console.error("Delete failed:",y)})}blockNonNumericPaste(s){const y=s.clipboardData?.getData("text");y&&!/^\d+$/.test(y)&&s.preventDefault()}allowOnlyNumbers(s){const y=s.which?s.which:s.keyCode;(y<48||y>57)&&s.preventDefault()}editPreQuestion(s){this.branchData&&this.branchData.questionId===s._id?this.tostr.error("You cannot Edit this question because branching is applied."):(this.isEditing=!0,this.editingQuestionId=s._id,this.selectedinterviewQuestionType=s.type,this.questionText=s.text,"open-ended"===s.type?(this.minWords=s.text_answer.min_words||1,this.maxWords=s.text_answer.max_words||100):"numeric"===s.type?(this.minValue=s.numeric.min_value||1,this.maxValue=s.numeric.max_value||100):"multiple-choice"===s.type&&(this.multipleOptions=s.options||[""],this.isMultipleChoices=s.is_multi_choice||!1))}updatePreInterviewQuestion(){const s=localStorage.getItem("surveyId");if(!this.selectedinterviewQuestionType)return void this.tostr.error("Please select a question type.");if(!s)return void this.tostr.error("Survey ID is missing.");if(!this.questionText?.trim())return void this.tostr.error("Please enter the question text.");if("open-ended"===this.selectedinterviewQuestionType||"numeric"===this.selectedinterviewQuestionType){const g="open-ended"===this.selectedinterviewQuestionType?this.minWords:this.minValue,I="open-ended"===this.selectedinterviewQuestionType?this.maxWords:this.maxValue;if(0===g&&0===I)return void this.tostr.error("Minimum and maximum values cannot both be 0.");if(0===g||0===I)return void this.tostr.error("Minimum and maximum values cannot be 0.");if(g>=I)return void this.tostr.error("Minimum value must be less than maximum value.")}const y={_id:this.editingQuestionId,type:this.selectedinterviewQuestionType,text:this.questionText.trim(),interviewId:s};if("open-ended"===this.selectedinterviewQuestionType)y.min_words=this.minWords||1,y.max_words=this.maxWords||100;else if("numeric"===this.selectedinterviewQuestionType)y.min_value=this.minValue??1,y.max_value=this.maxValue??100;else if("multiple-choice"===this.selectedinterviewQuestionType){const g=this.multipleOptions.map(I=>I.trim()).filter(I=>""!==I);if(g.length<2)return void this.tostr.error("Please add at least 2 options before updating.");y.options=g,y.is_multi_choice=this.isMultipleChoices||!1}this.surveyService.updatePreInterviewQuestion(y).subscribe({next:g=>{this.tostr.success("Question updated successfully."),this.getPreInterviewQuestions(),console.log("Question updated:",g),this.isEditing=!1,this.editingQuestionId=null,this.resetQuestionForm()},error:g=>{console.error("Error updating question:",g),this.tostr.error("Failed to update question. Please try again."),this.isEditing=!1}})}removeNewQuestion(s){s.showAddField=!1,s.newQuestionText="",s.selectedType="",s.previewUrl="",s.showTypeDropdown=!1}setBranchingData(s,y){this.questionSection=[],this.logicQuestions=[],this.branchingQuestion=[],this.connectedTo=[];let g=!1;for(const I of s){let Le={title:"Pre Interview Questions",section_id:"pre-int",que_text:I.text,que_id:I._id,type:"question",queType:I.type,translation:I.selectedLanguage};"multiple-choice"===I.type&&(Le.options=I.options),"numeric"===I.type&&(Le.minValue=I.numeric.min_value,Le.maxValue=I.numeric.max_value),"open-ended"===I.type&&(Le.minWords=I.text_answer.min_words,Le.maxWords=I.text_answer.max_words),this.questionId===I._id&&(this.currentQuestionText=I.text||I.que_text,this.currentQuestionType=I.type,"multiple-choice"===I.type&&(this.currentQuestionOptions=I.options),g=!0),this.questionId!==I._id&&this.questionSection.push(Le),this.logicQuestions.push(Le),g||!0===y&&"multiple-choice"===I.type&&this.branchingQuestion.push(Le),this.questionId===I._id&&(g=!0)}}openBranchingModal(){this.isBranchingModalOpen=!0}closeBranchingModal(){this.isBranchingModalOpen=!1,this.resetBranchFields()}saveBranching(){var s=this;return(0,ie.A)(function*(){if(!s.selectedCriteria||!s.selectedResultQuestion)return void s.tostr.error("Please fill all branching fields!");if("not empty"!==s.selectedCriteria&&!s.selectedChoiceText)return void s.tostr.error("Please enter choice text!");const y=localStorage.getItem("surveyId");if(!s.selectedResultQuestion?.que_id||!y)return void s.tostr.error("Missing Question ID or Survey ID!");const g={questionId:s.selectedResultQuestion?.que_id,condition:s.selectedCriteria,option:s.selectedChoiceText,result:"End of survey"};
1try{yield s.surveyService.savePreBranch(y,g).toPromise(),s.surveyService.getSurveyDetails(y).then(I=>{s.branchData=I?.preInterviewQuestionBranch}),s.tostr.success("Branching saved successfully!"),s.isBranchingModalOpen=!1}catch(I){console.error(I),s.tostr.error("Failed to save branching")}})()}getLogicQuestionText(s){return this.logicQuestions?.find(g=>g.que_id===s)?.que_text||s}editBranch(s){this.isBranchingModalOpen=!0;const y=this.logicQuestions.find(g=>g.que_id===s.questionId);this.selectedResultQuestion=y||null,this.onQuestionSelect(),this.selectedCriteria=s.condition,this.selectedChoiceText=s.option,this.questionId=s.questionId}deleteBranch(){const s=localStorage.getItem("surveyId");this.surveyService.savePreBranch(s,{preInterviewQuestionBranch:null}).subscribe(()=>{this.tostr.success("Branching deleted!"),this.branchData=null,this.resetBranchFields()})}resetBranchFields(){this.selectedResultQuestion=null,this.questionId=null,this.selectedCriteria=null,this.selectedChoiceText=""}onQuestionSelect(){const s=this.selectedResultQuestion;s&&("multiple-choice"===s.queType&&s.options?.length?(this.isMCQSelected=!0,this.multipleOptions=s.options,this.branchCriteriaToShow=this.branchCriteria):"numeric"===s.queType?(this.isMCQSelected=!1,this.multipleOptions=[],this.branchCriteriaToShow=this.numericBranchCriteria):(this.isMCQSelected=!1,this.multipleOptions=[],this.branchCriteriaToShow=this.branchCriteriaText),this.selectedCriteria=null,this.selectedChoiceText=null)}confirmUrl(){this.isValidUrl(this.tempUrl)?(this.url=this.tempUrl,this.showUrlModal=!1,this.urlTouched=!1,this.tempUrl=""):this.urlTouched=!0}isValidUrl(s){try{const y=new URL(s);return"http:"===y.protocol||"https:"===y.protocol}catch{return!1}}cancelUrl(){this.tempUrl="",this.showUrlModal=!1}removeUrl(){this.prompt=this.prompt.replace(this.url,"").trim(),this.url=""}createDicussionGuide(){const s=localStorage.getItem("surveyId");if(this.createLink=!0,this.surveyService.updateSurveyStatus({id:s,is_published:!0}).subscribe(wt=>{},wt=>{console.error(wt),this.tostr.error("Failed to publish survey.")}),!s)return void this.tostr.error("Survey ID not found.");const g=this.ongoingSurveysArr?.length||0;console.log(g);const Le=`campaign_${g+1}`;this.surveyService.createDicussionGuide({surveyId:s,campaignName:Le}).subscribe(wt=>{this.isLinkCreated=!0,this.linkName=Le,this.surveyLink=wt.collectorLink,this.forceStep6=!0,this.step=6,this.createLink=!1},wt=>{console.error(wt),this.createSurveyLink=!1,this.tostr.error(wt.message),this.createLink=!1})}copyNewLink(s){navigator.clipboard.writeText(s),this.tostr.success("Copied")}onContinue(){this.hasChanged||this.updateState(!0)}deployment(){this.step=5}onFileSelected(s){const y=s.target.files[0];!y||y.name.endsWith(".docx")?(this.selectedFile=y,this.uploadedFileName=y.name):alert("Please upload only .docx file")}goto(){const s=localStorage.getItem("surveyId");this.router.navigateByUrl(`/analysis/${s}`)}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(K.I),e.rXU(H.tw),e.rXU(Wn.I),e.rXU(ee.Ix))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-dg-create"]],viewQuery:function(y,g){if(1&y&&e.GBs(Wa,5),2&y){let I;e.mGM(I=e.lsd())&&(g.inputRef=I.first)}},decls:14,vars:12,consts:[["loadingSpinner",""],["viewMode",""],["inputRef",""],["noData",""],[1,"header"],[1,"logo"],["src","assets/img/Merren_name.png","alt","Logo"],["routerLink","/dashboard/project-interview",1,"backbtn",3,"ngClass"],["class","progress-container mt-5",4,"ngIf"],["class","step-content",4,"ngIf"],[4,"ngIf"],["class","branching-modal-backdrop",4,"ngIf"],["class","branching-modal",4,"ngIf"],[1,"progress-container","mt-5"],["class","progress-step",3,"active","completed",4,"ngFor","ngForOf"],[1,"progress-step"],[1,"number"],[1,"step-content"],[2,"font-size","13px","color","#4B5563"],[1,"text-card"],[3,"ngClass"],[1,"justify-content-start","mt-3"],[1,"file-upload-box"],[1,"file-upload-label"],["type","file","accept",".doc,.docx,.txt","hidden","",3,"change"],[1,"upload-icon"],[1,"fas","fa-file-upload"],[1,"upload-text"],["class","file-name",4,"ngIf"],[1,"info-text"],["class","divider",4,"ngIf"],["class","d-flex",4,"ngIf"],["class","url-preview-card mb-2",4,"ngIf"],["class","inline-url-box",4,"ngIf"],[1,"generate-btn","mt-5",3,"click","disabled","ngClass"],[4,"ngIf","ngIfElse"],[1,"example-box"],[1,"file-name"],[1,"divi
1der"],[1,"d-flex"],[1,"url-preview-card","mb-2"],[1,"left-section"],[1,"icon-box","mr-2"],[1,"fas","fa-link"],[1,"url-info"],[1,"url-text"],[1,"remove-url-btn",3,"click"],[1,"inline-url-box"],["type","text","placeholder","Enter URL (https://...)",3,"ngModelChange","ngModel"],["class","text-danger","style","text-align: left;",4,"ngIf"],[1,"btn-group"],[1,"btn-cancel",3,"click"],[1,"btn-add",3,"click","disabled"],[1,"text-danger",2,"text-align","left"],[1,"fas","fa-arrow-right",2,"margin-left","20px"],[1,"fas","fa-spinner","fa-spin",2,"margin-left","10px"],[1,"review-container"],[1,"header-content"],["class","loading-card mt-5",4,"ngIf"],[1,"footer-buttons","mt-4"],[1,"prev-btn",3,"click","disabled"],["class","continue-btn",3,"disabled","click",4,"ngIf"],[1,"loading-card","mt-5"],[1,"loading-section"],[1,"loading-bar","title"],[1,"loading-item"],[1,"fas","fa-sparkles"],[1,"loading-line"],[1,"loading-line","medium"],[1,"loading-line","short"],[1,"wave-animation"],["class","info-card",4,"ngFor","ngForOf"],[1,"info-card"],[1,"card-header"],["type","text",1,"edit-input",3,"ngModelChange","blur","keyup.enter","ngModel"],[1,"continue-btn",3,"click","disabled"],["class","fas fa-spinner fa-spin","style","margin-left: 10px;",4,"ngIf"],[1,"DG-container"],[2,"text-align","center"],[1,"DGCard"],[1,"mt-3",3,"formGroup"],[1,"editor"],[3,"data"],[1,"end-buttons","mt-4"],[1,"prev-btn",3,"click"],["class","continue-btn",3,"click",4,"ngIf"],[1,"continue-btn",3,"click"],[1,"lang-container"],[2,"color","#1F2937"],[1,"select-item","mt-5"],[1,"all-btn"],["type","radio","id","Discussion_Guide","name","option",3,"change","checked"],["for","Discussion_Guide"],["src","/assets/icons/note-text-svgrepo-com 1.png"],["type","radio","id","Screener_Questions","name","option",3,"change","checked"],["for","Screener_Questions"],[1,"fa","fa-television"],["type","radio","id","language","name","option",3,"change","checked"],["for","language"],[1,"fas","fa-globe"],["type","radio","id","persona","name","option",3,"change"],["for","persona"],[1,"far","fa-user"],["type","radio","id","voice","name","option",3,"change"],["for","voice"],[1,"fas","fa-volume-off"],["type","radio","id","opening","name","option",3,"change"],["for","opening"],[1,"fas","fa-comment-dots"],["type","radio","id","pronunciation","name","option",3,"change"],["for","pronunciation"],[1,"fas","fa-microphone"],["class","select-lang mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","select-lang mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","persona-screen",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","voice-settings-container mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","opening-message-container mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","pronunciation-container mt-4",4,"ngIf"],[1,"select-lang","mt-4"],[1,"discussion-guide-container"],[1,"mb-3",2,"font-weight","500"],[1,"text-muted"],[1,"discussion-guide-container","select-lang","mt-4",2,"padding","20px","width","1000px","margin","0 auto"],["class","mt-4","style","width: 100%;",4,"ngIf"],["class","discussion-guide-container select-lang mt-4","style","padding: 20px; width: 1000px; margin: 0 auto;",4,"ngIf"],[1,"question-section"],["class","question-card-wrapper",4,"ngFor","ngForOf"],[1,"position-relative","mb-3","d-flex","align-items-end"],[1,"add-btn",3,"click"],[1,"fas","fa-plus"],["class","add-btn ml-3",3,"disabled-btn","click",4,"ngIf"],["class","custom-dropdown",4,"ngIf"],[1,"question-card-wrapper"],[1,"question-cardpre"],[1,"question-left"],[1,"question-top"],[1,"question-no"],[1,"question-bottom"],[1,"question-icon",3,"src","alt"],["t
1itle","q.text",1,"question-text"],[1,"question-actions"],[1,"btn","btn-outline-primary","btn-sm",3,"click"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"add-btn","ml-3",3,"click"],[1,"custom-dropdown"],[1,"custom-dropdown-item",3,"click"],["src","../assets/icons/Audio text.png",1,"h-22"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/i-exam-multiple-choice-svgrepo-com (1) 1.png",1,"h-22"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/123.svg",1,"h-22"],[1,"mt-4",2,"width","100%"],[1,"question-header","d-flex","mb-3"],[1,"question-badge","d-flex","align-items-center","justify-content-center"],[1,"icon-box","d-flex","align-items-center","justify-content-center"],["alt","icon",1,"question-icon",3,"src"],[1,"number-box","d-flex","align-items-center","justify-content-center"],["rows","3","placeholder","Enter your question here",1,"form-control","question-textarea","ml-2",2,"flex","1",3,"ngModelChange","ngModel"],["class","choices-section mt-3",4,"ngIf"],[1,"mt-3"],["class","btn btn-primary me-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-outline-primary",3,"click"],[1,"choices-section","mt-3"],[1,"d-flex","align-items-center","mb-2"],["src","../assets/icons/choicesicon.svg",1,"f-18"],[1,"ml-2","f-18",2,"color","#FF5630"],[1,"row"],[1,"col-md-6"],[1,"form-label"],["type","number","placeholder","1",1,"form-control",3,"ngModelChange","ngModel"],["type","number","placeholder","100",1,"form-control",3,"ngModelChange","ngModel"],["class","d-flex mb-2 align-items-center",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-3","d-flex","align-items-center"],[1,"me-3"],[1,"switch","mt-3"],["type","checkbox",3,"change","checked"],[1,"slider","round"],[1,"d-flex","mb-2","align-items-center"],["type","text",1,"form-control","mt-2",3,"ngModelChange","keydown.enter","ngModel","placeholder"],["type","button","class","btn btn-light mt-2 ms-2",3,"click",4,"ngIf"],["type","button",1,"btn","btn-light","mt-2","ms-2",3,"click"],[1,"fas","fa-trash","text-danger"],[1,"btn","btn-primary","me-2",3,"click","disabled"],[2,"font-weight","500"],[1,"branching-que"],[1,"btn-edit",3,"click"],[1,"fas","fa-edit"],[1,"btn-trash",3,"click"],[1,"fas","fa-trash"],[1,"select-lang","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[1,"checkbox-group"],["class","checkbox-item",4,"ngFor","ngForOf"],[1,"checkbox-item"],["type","checkbox","disabled","",3,"change","id","checked"],[1,"mt-2",3,"value","for"],[1,"persona-screen",2,"padding","20px","width","800px","margin","0 auto"],[1,"deployment-container","mt-5"],[1,"deployment-options"],[1,"option"],["type","radio","id","generate","name","deployment","disabled",""],["for","generate"],[1,"title"],[1,"desc"],["type","radio","id","zoom","name","deployment","disabled",""],["for","zoom"],["type","radio","id","teams","name","deployment","disabled",""],["for","teams"],["type","radio","id","google","name","deployment","disabled",""],["for","google"],[1,"voice-settings-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[1,"slider-section"],[1,"slider-container"],[1,"speed"],[1,"slider-wrapper"],["type","range","min","0.5","max","2","step","0.1","disabled","",1,"speed-slider",3,"ngModelChange","input","ngModel"],[1,"slider-value"],[1,"tone-section"],["disabled","",1,"tone-select",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"test-voice"],["disabled","",1,"test-btn",3,"click"],[3,"value"],[1,"opening-message-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[2,"color","#1F2937","font-size","15px","font-weight","500"],[2,"font-size","14px","color","#4B5563","font-weight","400"],[1,"template-section"],[2,"margin-top","15px","font-size","14px","font-weight","500"],[1,"template-list"],[1,"template-option"],["type","radio","id","formal","name","template","disabled",""],["for","formal",1,"msg-title"],[2,"font-size","16px"],["type","radio","id","casual","name","template","disabled",""],["for","casual",1,"msg-title"],["type","radio","id","brief","name","template","disabled",""],["for","brief",1,"msg-title"],[1,"custom-message","mt-4"],["rows","4","placeholder","Write your custom message here","disabled","",3,"ngModelChange","ngModel"],[1,"tips-section","mt-4"],[1,"pronunciation-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[2,"color","#1F2937","font-weight","500"],[1,"pronunciation-form"],[1,"input-group"],["type","text","placeholder","e.g., Company name","disabled","",1,"input-field",3,"ngModelChange","ngModel"],["type","text","placeholder","e.g., kuhm-puh-nee","disabled","",1,"input-field",3,"ngModelChange","ngModel"],["disabled","",1,"add-btn",3,"click"],["class","pronunciation-list",4,"ngIf","ngIfElse"],[1,"pronunciation-list"],["class","pronunciation-item",4,"ngFor","ngForOf"],[1,"pronunciation-item"],[1,"word"],[1,"guide"],["disabled","",1,"delete-btn",3,"click"],[2,"color","#6B7280","font-size","14px","margin-top","10px"],[1,"DG-Deploy"],["type","radio","id","generate","name","deployment","checked",""],["type","radio","id","zoom","name","deployment"],["type","radio","id","teams","name","deployment"],["type","radio","id","google","name","deployment"],[1,"deployend-buttons","mt-4"],[1,"success-container"],[1,"success-icon"],[1,"fas","fa-check",2,"font-weight","100"],[1,"link-box","mt-5"],[1,"link-text",3,"title"],[1,"copy-btn",3,"click"],[1,"far","fa-copy"],[1,"dashboard-btn","mt-4",3,"click"],[1,"branching-modal-backdrop"],[1,"branching-modal"],[1,"branching-modal-content"],[1,"modal-header"],[1,"title-branch"],[1,"fas","fa-code-branch","btn-branch"],[1,"modal-body"],[1,"row","full"],[1,"input-select","full-width",3,"ngModelChange","change","ngModel"],["value","null","disabled","","selected","",1,"placeholder-option"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"section-label"],[1,"row",2,"gap","10px"],[1,"input-select",3,"ngModelChange","ngModel"],["class","input-select",3,"ngModel","ngModelChange",4,"ngIf"],["type","text","class","input-text","placeholder","Enter choice here",3,"ngModel","ngModelChange",4,"ngIf"],[1,"section-label","mt-20"],[1,"modal-footer"],[1,"btn","btn-outline-primary","mr-3",3,"click"],[1,"btn","btn-primary",3,"click"],[3,"ngValue"],["value","null","disabled","","selected",""],["type","text","placeholder","Enter choice here",1,"input-text",3,"ngModelChange","ngModel"]],template:function(y,g){1&y&&(e.j41(0,"div",4)(1,"div",5),e.nrm(2,"img",6),e.k0s(),e.j41(3,"div",7),e.EFF(4," Back to Dashboard "),e.k0s()(),e.DNE(5,ra,2,2,"div",8)(6,Dl,34,14,"div",9)(7,Ml,13,4,"div",10)(8,Xa,15,3,"div",10)(9,Qc,49,10,"div",10)(10,Gu,45,2,"div",10)(11,Pd,15,2,"div",10)(12,Uu,1,0,"div",11)(13,Wc,28,6,"div",12)),2&y&&(e.R7$(3),e.Y8G("ngClass",e.eq3(10,lc,g.isBackToDashboard)),e.R7$(2),e.Y8G("ngIf",8!=g.step),e.R7$(),e.Y8G("ngIf",1===g.step),e.R7$(),e.Y8G("ngIf",2===g.step),e.R7$(),e.Y8G("ngIf",3===g.step),e.R7$(),e.Y8G("ngIf",4===g.step),e.R7$(),e.Y8G("ngIf",5===g.step),e.R7$(),e.Y8G("ngIf",6===g.step),e.R7$(),e.Y8G("ngIf",g.isBranchingModalOpen),e.R7$(),e.Y8G("ngIf",g.isBranchingModalOpen))},dependencies:[Ce.YU,Ce.Sq,Ce.bT,ee.Wk,w.qT,w.xH,w.y7,w.me,w.Q0,w.MR,w.wz,w.BC,w.cb,w.j4,w.vS,v.NN],styles:['@charset "UTF-8";.header[_ngcontent-%COMP%]{padding:15px 40px;display:flex;justify-content:space-between;align-items:center}.backbtn[_ngcontent-%COMP%]{border:none;border-radius:25px;font-size:15px;cursor:pointer;width:auto;display:inline-block;font-weight:500;background-color:#2285f7;color:#fff;padding:10px 25px;transition:background-color .3s ease}.logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;width:auto}.progress-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:relative}.progress-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;margin:0 25px}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{width:26px;height:26px;background:#ccc;color:#fff;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:14px;position:relative;z-index:1}.progress-step.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#f79522}.progress-step.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#00c951}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;transform:translateY(-50%);height:1px;width:95px;left:-120px;background:#ccc;z-index:-1}.progress-step.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{background:#00c951}.progress-step.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{background:#00c951}.progress-step.completed[_ngcontent-%COMP%]:first-child   .number[_ngcontent-%COMP%]:after{background:#00c951}.progress-step[_ngcontent-%COMP%]:first-child   .number[_ngcontent-%COMP%]:before{display:none}.progress-step[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#333;margin-top:8px}.progress-step.completed[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#00c951}.progress-step.active[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#f79522}.step-content[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px;text-align:center}.step-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.step-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:11.9px;color:#4b5563;margin-bottom:20px;font-weight:400}.textarea-box[_ngcontent-%COMP%]{background:#f8f8f8;border:1px solid #ddd;border-radius:8px;padding:15px;margin-bottom:10px}.textarea-box[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;height:120px;border:none;outline:none;background:transparent;font-size:14px;color:#444;resize:none}.info-text[_ngcontent-%COMP%]{font-size:11px;color:#666;margin-bottom:20px;text-align:left}.generate-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:12px 20px;border-radius:25px;font-size:15px;cursor:pointer;width:100%;max-width:300px;margin:10px auto;display:block;font-weight:500}.generate-btn.disabled-btn[_ngcontent-%COMP%]{background:#d1d5db;pointer-events:none}.primary[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:14px 32px;border-radius:25px;font-size:16px;font-weight:500;margin-top:20px;cursor:pointer;width:100%;max-width:150px}.primary[_ngcontent-%COMP%]:hover{background:#e37110}.example-box[_ngcontent-%COMP%]{background:#fff7f0;border:1px solid #F79522;padding:15px 20px;margin:25px 0;font-size:15px;text-align:left;border-radius:6px}.example-box[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#f79522;font-size:14px}.text-card[_ngcontent-%COMP%]{border:1px solid #BEBEBE;padding:30px;border-radius:10px;background:#fff}.text-card[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{border:none;height:1px;background-color:#bebebe;margin:10px -30px}.continue-btn-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:20px}@media (max-width: 768px){.header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding:10px 20px}.progress-container[_ngcontent-%COMP%]{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start}.progress-step[_ngcontent-%COMP%]{margin:0 15px}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:after{width:30px}.step-content[_ngcontent-%COMP%]{padding:15px;text-align:left}.generate-btn[_ngcontent-%COMP%], .primary[_ngcontent-%COMP%]{width:100%;max-width:none}}.url-box[_ngcontent-%COMP%]{background:#f9f9f9;border:1px solid #ddd;padding:10px 15px;border-radius:10px;cursor:pointer;font-size:.95rem}.inline-url-box[_ngcontent-%COMP%]{margin-top:15px;padding:15px;border-radius:6px;background:#f8f8f8;display:flex;flex-direction:column;gap:10px}.inline-url-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:10px;border:1px solid #ccc;border-radius:5px}.btn-group[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:10px;width:100%}.btn-add[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:8px 16px;border-radius:5px}.btn-cancel[_ngcontent-%COMP%]{background:#f1f1f1;border:1px solid #ddd;border:none;padding:8px 16px;border-radius:5px}.url-preview-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border:1px solid #e0e0e0;padding:10px 14px;border-radius:12px;margin-top:12px;background-color:#fff}.DG-container[_ngcontent-%COMP%]{max-width:800px;margin:40px auto;padding:20px}.DGCard[_ngcontent-%COMP%]{border:1px solid #ddd;padding:20px;border-radius:20px}.DG-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.DG-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:11.9px;color:#4b5563;margin-bottom:20px;font-weight:400}.lang-container[_ngcontent-%COMP%]{width:100%;max-width:100%;padding:20px}.select-item[_ngcontent-%COMP%]{border:1px solid #ddd;width:100%;border-radius:30px;padding:5px;box-shadow:0 1px 2px #0000000d;display:flex;justify-content:center}.all-btn[_ngcontent-%COMP%]{display:flex;gap:10px}.select-lang[_ngcontent-%COMP%]{width:800px;margin:0 auto;background:#fff;border-radius:10px;padding:20px;box-shadow:0 2px 10px #0000000d;box-sizing:border-box}.select-lang[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px}.select-lang[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:#4b5563}.end-buttons[_ngcontent-%COMP%]{padding:20px;width:800px;margin:0 auto;display:flex;justify-content:space-between;gap:15px}.end-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.end-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}.checkbox-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:15px;width:100%}.checkbox-item[_ngcontent-%COMP%]{flex:0 0 calc(50% - 15px);
1display:flex;gap:8px;padding:6px 14px;border:1px solid #ccc;border-radius:8px;background:#fff;cursor:pointer}.all-btn[_ngcontent-%COMP%]{display:flex;gap:15px;flex-wrap:wrap;justify-content:center;margin-bottom:-6px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{display:none}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:10px 20px;background:#f8f8f8;color:#1f2937;border-radius:30px;font-size:14px;cursor:pointer;transition:all .3s ease}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:16px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#2285f7;color:#fff}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.deployment-container2[_ngcontent-%COMP%]{max-width:70%;margin:40px auto;padding:20px}.title[_ngcontent-%COMP%]{font-size:28px;font-weight:700;margin-bottom:20px}.create-btn[_ngcontent-%COMP%]{background-color:#f79522;color:#fff;border:none;padding:10px 20px;border-radius:20px;font-size:14px;font-weight:600;float:right;margin-bottom:20px;cursor:pointer}.table-wrapper[_ngcontent-%COMP%]{clear:both;margin-top:10px;border-radius:10px;overflow:hidden;border:1px solid #f0f0f0}.deployment-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.deployment-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#e5e7eb}.deployment-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .deployment-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{text-align:left;padding:12px 11px;border-bottom:1px solid #eee}.deployment-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#fafafa;font-size:13px;font-weight:500;color:#6b7280}.deployment-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#1f2937}.copy-link[_ngcontent-%COMP%]{color:#007bff;text-decoration:none;font-weight:500}.copy-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.deactivate-btn[_ngcontent-%COMP%]{background:transparent;color:#f79522;border:1px solid #f79522;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:500;cursor:pointer}.deactivate-btn[_ngcontent-%COMP%]:hover{background-color:#f79522;color:#fff}.disabled-icon[_ngcontent-%COMP%]{opacity:.5;pointer-events:none;cursor:not-allowed}.success-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:30px;max-width:700px;margin:40px auto;text-align:center;font-family:Arial,sans-serif;background:#fff}.success-icon[_ngcontent-%COMP%]{width:50px;height:50px;background:#fff8f0;color:#f79522;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:20px;margin:0 auto 20px}.success-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:20px;color:#1f2937;margin-bottom:10px;font-weight:700}.success-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#555;font-size:14px;margin-bottom:20px}.link-box[_ngcontent-%COMP%]{background:#fff8f0;color:#f79522;padding:12px 15px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;font-size:14px;margin:25px auto;width:75%;max-width:400px}.link-text[_ngcontent-%COMP%]{display:inline-block;max-width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.copy-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:18px;color:#f79522;cursor:pointer}.dashboard-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;border-radius:30px;padding:12px 30px;font-size:16px;font-weight:600;cursor:pointer}.dashboard-btn[_ngcontent-%COMP%]:hover{background:#e6841b}.DG-Deploy[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px}.deployment-container[_ngcontent-%COMP%]{border:1px solid #ccc;border-radius:10px;padding:20px;font-family:Arial,sans-serif}.deployment-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin-bottom:15px;color:#1f2937}.deployment-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.option[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:12px;display:flex;align-items:flex-start;transition:border-color .3s ease,background .3s ease}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{margin-right:12px;margin-top:14px}.option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;flex-direction:column;
1cursor:pointer;width:100%}.option[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:500;font-size:13px;color:#000}.option[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#1f2937}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{color:#000}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked ~ .option[_ngcontent-%COMP%]{border-color:#1f2937;background:#f9f9f9}.input-set[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.input-set[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:14px;color:#374151;margin-bottom:6px;font-weight:400}.input-set[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px}.add-btn[_ngcontent-%COMP%]{background-color:#e5e7eb;color:#fff;border:none;border-radius:6px;padding:10px 16px;font-size:14px;cursor:pointer;transition:background .3s ease}.pronunciation-list[_ngcontent-%COMP%]{margin-top:20px}.pronunciation-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:#f9fafb;padding:10px;border-radius:6px;margin-bottom:10px;font-size:14px}.word[_ngcontent-%COMP%]{font-weight:500;color:#111827}.guide[_ngcontent-%COMP%]{color:#4b5563;margin-left:12px}.delete-btn[_ngcontent-%COMP%]{background:none;border:none;color:#dc2626;font-size:16px;cursor:pointer}.voice-settings-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.slider-section[_ngcontent-%COMP%]{margin-top:16px}.slider-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:14px;color:#374151;font-weight:500;margin-bottom:8px}.slider-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.slider-wrapper[_ngcontent-%COMP%]{position:relative;flex:1}.speed-slider[_ngcontent-%COMP%]{width:100%;accent-color:#2285F7}.speed[_ngcontent-%COMP%]{color:#6b7280;font-size:14px;font-weight:400}.option[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:not(#generate), .option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:not([for=generate]){pointer-events:none;opacity:.5}.slider-value[_ngcontent-%COMP%]{position:absolute;top:25px;margin-left:50%;transform:translate(-50%);font-size:13px;color:#4b5563;white-space:nowrap}.tone-section[_ngcontent-%COMP%]{margin-top:20px}.tone-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:14px;color:#374151;font-weight:500;margin-bottom:8px}.tone-select[_ngcontent-%COMP%]{width:100%;padding:8px 12px;border-radius:6px;border:1px solid #D1D5DB;font-size:14px;color:#111827}.test-voice[_ngcontent-%COMP%]{margin-top:24px}.test-btn[_ngcontent-%COMP%]{background-color:#2285f7;color:#fff;border:none;border-radius:6px;padding:10px 16px;font-size:14px;cursor:pointer;display:flex;align-items:center;gap:6px}.test-voice[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;color:#4b5563;margin-top:8px}.opening-message-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.template-list[_ngcontent-%COMP%]{margin-top:10px}.template-option[_ngcontent-%COMP%]{border:1px solid #ddd;padding:12px;border-radius:6px;margin-bottom:10px;cursor:pointer}.template-option.active[_ngcontent-%COMP%]{border:2px solid #2285F7;background-color:#f0f7ff}.template-option[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-right:8px}.custom-message[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;border:1px solid #ccc;padding:10px;border-radius:6px;font-size:16px}.custom-message[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.tips-section[_ngcontent-%COMP%]{background-color:#f9fafb;border:1px solid #E5E7EB;border-radius:6px;padding:10px}.tips-section[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{font-size:13px;color:#4b5563;padding-left:18px}.tips-section[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:4px}.tips-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#374151}.msg-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.template-option[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#4b5563}.text-center[_ngcontent-%COMP%]{text-align:center}.title[_ngcontent-%COMP%]{font-weight:600;font-size:22px;margin-bottom:4px}.subtitle[_ngcontent-%COMP%]{color:#4b5563;font-size:13px}.section[_ngcontent-%COMP%]{background:#fff;border:1px solid #E5E7EB;border-radius:8px;margin-bottom:10px;box-shadow:0 1px 2px #0000000d}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;cursor:pointer;font-weight:500;background-color:#f9fafb}.section-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}.section-subtext[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;margin-top:2px}.toggle-icon[_ngcontent-%COMP%]{font-size:12px;color:#2285f7;font-weight:400}.section-body[_ngcontent-%COMP%]{padding:20px 16px 12px}.question-card[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-radius:6px;padding:6px 10px;margin-top:8px;border:1px solid #E5E7EB}.question-card[_ngcontent-%COMP%]   .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;min-width:0}.question-number[_ngcontent-%COMP%]{font-weight:500;margin-right:8px;flex-shrink:0}.question-text[_ngcontent-%COMP%]{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.question-type[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;border:1px solid #E5E7EB;padding:2px 6px;border-radius:4px;background-color:#f3f4f6;flex-shrink:0;margin-left:10px}.add-btn[_ngcontent-%COMP%]{margin-top:8px;background:none;border:1px solid #D1D5DB;color:#374151;cursor:pointer}.type-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;right:0;background:#f3f4f6;border-radius:6px;z-index:1000;min-width:100px;font-size:12px;color:#4b5563}.type-dropdown[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:6px;cursor:pointer;transition:background .2s ease}.type-dropdown[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:hover{background:#f5f5f5}.preview-img[_ngcontent-%COMP%]{max-width:150px;height:150px;margin-top:10px}.custom-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.custom-modal[_ngcontent-%COMP%]{background:#fff;padding:20px;border-radius:8px;text-align:center;min-width:300px}.modal-buttons[_ngcontent-%COMP%]{margin-top:20px;
1display:flex;justify-content:center}.loading-spinner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:15px;color:#555}.loading-spinner[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#007bff;font-size:18px}.discussion-guide-container[_ngcontent-%COMP%]{padding:20px}.discussion-guide-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .discussion-guide-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:20px;font-weight:600}.discussion-guide-container[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding-left:20px}.discussion-guide-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:10px;line-height:1.5}.custom-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;margin-top:8px;background-color:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 2px 8px #0000001a;width:220px;z-index:10;display:flex;flex-direction:column}.custom-dropdown-item[_ngcontent-%COMP%]{padding:10px 14px;text-align:left;border:none;background:transparent;cursor:pointer;font-size:14px}.custom-dropdown-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.f-18[_ngcontent-%COMP%]{font-size:18px}.question-section[_ngcontent-%COMP%]{margin-top:10px}.question-card-wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:10px}.question-cardpre[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;box-shadow:0 0 6px #0000001a;padding:0 6px 0 0;transition:all .3s ease}.question-left[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(180deg,#ff7043,#ff5630);color:#fff;width:70px;text-align:center}.question-top[_ngcontent-%COMP%]{font-weight:600;font-size:16px;padding:10px 0}.question-bottom[_ngcontent-%COMP%]{padding:10px 0;border-top:1px solid rgba(255,255,255,.4)}.question-no[_ngcontent-%COMP%]{font-size:12px}.question-icon[_ngcontent-%COMP%]{height:22px;width:22px}.question-text[_ngcontent-%COMP%]{flex-grow:1;margin-left:15px;font-size:16px;font-weight:500;color:#333}.question-actions[_ngcontent-%COMP%]{opacity:0;transition:opacity .3s ease}.continue-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.question-cardpre[_ngcontent-%COMP%]:hover   .question-actions[_ngcontent-%COMP%]{opacity:1}.question-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:5px;font-size:13px}.h-22[_ngcontent-%COMP%]{height:18px;width:18px;background-color:#ff4500;border-radius:3px;padding:2px}.question-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:#ff5722;border-radius:6px;overflow:hidden;width:auto;height:45px}.icon-box[_ngcontent-%COMP%], .number-box[_ngcontent-%COMP%]{color:#fff;font-weight:500;font-size:14px;padding:0 12px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{width:2px;background-color:#fff;height:100%}.branching-container[_ngcontent-%COMP%]{display:flex;gap:30px;margin-top:20px}.title[_ngcontent-%COMP%]{font-weight:600;font-size:14px}.criteria-box[_ngcontent-%COMP%]{margin-top:15px;display:flex;gap:15px}.criteria-select[_ngcontent-%COMP%]{height:auto;border-radius:8px;border:1.5px solid #f0a84c;padding:8px}.choice-input[_ngcontent-%COMP%]{min-height:70px;border-radius:8px;border:1px solid #cfcfcf;padding:10px;resize:none}.branching-container[_ngcontent-%COMP%]{display:flex;gap:30px;align-items:stretch}.dividerbranching[_ngcontent-%COMP%]{width:1px;background:#000;height:100%}.result-box[_ngcontent-%COMP%]{margin-top:15px;display:flex;align-items:center;gap:15px}.goto-box[_ngcontent-%COMP%]{background:#eef2f7;padding:10px 20px;border-radius:6px;font-weight:600}.question-select[_ngcontent-%COMP%]{height:40px;border-radius:8px;border:1px solid #d0d0d0;padding:8px}.footer[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:flex-end;gap:15px}.left-Branching[_ngcontent-%COMP%], .right-section[_ngcontent-%COMP%]{flex:1}.btn-trash[_ngcontent-%COMP%]{border:none;background-color:#fff;color:red}.btn-edit[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#2285f7}.btn-branch[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#555}.branching-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000059;z-index:999}.branching-modal[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1000}.branching-modal-content[_ngcontent-%COMP%]{width:420px;background:#fff;border-radius:10px;padding:15px 25px 25px;box-shadow:0 8px 30px #0000001a}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-bottom:5px}.title-branch[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.row.full[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:20px}.full-width[_ngcontent-%COMP%]{width:100%!important}.section-label[_ngcontent-%COMP%]{font-size:15px;color:#444;margin-bottom:8px;display:block}.row[_ngcontent-%COMP%]{display:flex;margin-bottom:20px}.input-select[_ngcontent-%COMP%], .input-text[_ngcontent-%COMP%]{height:38px;border:1px solid #ddd;border-radius:6px;padding:0 12px;font-size:14px;width:46%}.input-select.small[_ngcontent-%COMP%]{width:100px}
1.input-select.large[_ngcontent-%COMP%]{flex:1}.placeholder-option[_ngcontent-%COMP%]{color:#999!important}.branching-que[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;box-shadow:0 0 6px #0000001a;padding:20px;transition:all .3s ease}.branching-que[_ngcontent-%COMP%]:hover   .question-actions[_ngcontent-%COMP%]{opacity:1}.input-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:14px;color:#374151;margin-bottom:6px;font-weight:500}.input-field[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px}.pronunciation-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.pronunciation-form[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:16px;margin-top:16px}.input-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.review-container[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]{text-align:center}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13.6px;color:#4b5563;margin-bottom:20px;font-weight:400}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{background:#fff4e5;border:1px solid #f3c38a;padding:15px;border-radius:8px;margin:20px 0}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#d97706;font-weight:500;font-size:11.9px;margin-bottom:5px}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#374151;font-weight:400;font-size:14px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]{background:#fff;border-radius:10px;box-shadow:0 2px 6px #00000014;padding:10px;margin-bottom:15px;display:flex;flex-direction:column}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#1f2937}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]{display:flex}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:#666;font-size:12px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]:hover{color:#111827}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{pointer-events:none;height:24px;width:24px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-desc[_ngcontent-%COMP%]{margin-top:8px;font-size:14px;color:#4b5563}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:15px;margin-top:20px}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .add-btn[_ngcontent-%COMP%], .review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .regen-btn[_ngcontent-%COMP%]{background:#f9f9f9;border:1px solid #ddd;padding:10px 15px;border-radius:25px;cursor:pointer;color:#374151;font-size:.95rem}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .regen-btn[_ngcontent-%COMP%]{background:#fff8f0;border:1px solid rgba(247,149,34,.2509803922);color:#f79522;display:flex;align-items:center}.footer-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:-100px;gap:15px}.footer-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.footer-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}@media (max-width: 768px){.review-container[_ngcontent-%COMP%]{padding:10px}.review-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.5rem}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{flex-direction:column;gap:10px}.review-container[_ngcontent-%COMP%]   .footer-buttons[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;margin-bottom:30px}}.file-upload-box[_ngcontent-%COMP%]{width:100%}.file-upload-label[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed #d0d5dd;border-radius:10px;padding:24px;
1cursor:pointer;background:#fafafa;transition:all .3s ease}.file-upload-label[_ngcontent-%COMP%]:hover{border-color:#f79522;background:#fff7f0}.upload-icon[_ngcontent-%COMP%]{font-size:28px;margin-bottom:8px}.upload-text[_ngcontent-%COMP%]{font-size:14px;text-align:center;color:#444}.upload-text[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{color:#888}.file-name[_ngcontent-%COMP%]{margin-top:10px;font-size:14px;color:#2d3748}.deployend-buttons[_ngcontent-%COMP%]{padding:20px;width:650px;margin:0 auto;display:flex;justify-content:space-between;gap:15px}.deployend-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.deployend-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}']})}return b})();const xs=["inputRef"];function $u(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG(2);return e.Njj(I.goToStep(g+1))}),e.j41(1,"span",15),e.EFF(2),e.k0s(),e.j41(3,"p"),e.EFF(4),e.k0s()()}if(2&b){const s=x.$implicit,y=x.index,g=e.XpG(2);e.AVh("active",g.step===y+1)("completed",g.step>y+1)("disabled",y+1===1)("no-active-color",y+1===6),e.R7$(2),e.JRh(y+1),e.R7$(2),e.JRh(4===y?"DRAFT"===(null==g.surveyDetails?null:g.surveyDetails.status)?"Deploy & Launch":"Deployment":s)}}function Qu(b,x){if(1&b&&(e.j41(0,"div",12),e.DNE(1,$u,5,10,"div",13),e.k0s()),2&b){const s=e.XpG();e.R7$(),e.Y8G("ngForOf",s.stepLabels)}}function Ld(b,x){1&b&&(e.j41(0,"section",17)(1,"div",18)(2,"div",19)(3,"div",20)(4,"span",21),e.EFF(5,"Loading..."),e.k0s()(),e.j41(6,"strong"),e.EFF(7,"Loading..."),e.k0s()()()())}function Wu(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"input",32,1),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.editableQuestionText,g)||(I.editableQuestionText=g),e.Njj(g)}),e.bIt("blur",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(3);return e.Njj(I.saveQuestion(g))})("keyup.enter",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(3);return e.Njj(I.saveQuestion(g))}),e.k0s()()}if(2&b){const s=e.XpG(4);e.R7$(),e.R50("ngModel",s.editableQuestionText)}}function Hu(b,x){if(1&b&&(e.j41(0,"h3"),e.EFF(1),e.k0s()),2&b){const s=e.XpG().$implicit;e.R7$(),e.JRh(s.text)}}function lr(b,x){if(1&b&&(e.j41(0,"div",29)(1,"div",30),e.DNE(2,Wu,3,1,"div",31)(3,Hu,2,1,"ng-template",null,0,e.C5r),e.k0s()()),2&b){const s=x.index,y=e.sdS(4),g=e.XpG(3);e.R7$(),e.AVh("disabled-icon","DRAFT"!==(null==g.surveyDetails?null:g.surveyDetails.status)),e.R7$(),e.Y8G("ngIf",g.editedQuestionIndex===s)("ngIfElse",y)}}function Hc(b,x){1&b&&e.nrm(0,"i",33)}function dc(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",22)(1,"div",23)(2,"h2"),e.EFF(3,"Review your Key Information Areas"),e.k0s(),e.j41(4,"p",24),e.EFF(5,"These are the main topics we'll explore in your research. Edit them to fit your needs and arrange them in order of priority."),e.k0s()(),e.DNE(6,lr,5,4,"div",25),e.j41(7,"div",26)(8,"button",27),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.onContinue())}),e.EFF(9,"Continue "),e.DNE(10,Hc,1,0,"i",28),e.k0s()()()}if(2&b){const s=e.XpG(2);e.R7$(6),e.Y8G("ngForOf",s.allQuestions),e.R7$(2),e.Y8G("disabled",s.dgisLoading),e.R7$(2),e.Y8G("ngIf",s.dgisLoading)}}function go(b,x){if(1&b&&(e.j41(0,"div"),e.DNE(1,Ld,8,0,"section",9)(2,dc,11,3,"div",16),e.k0s()),2&b){const s=e.XpG();e.R7$(),e.Y8G("ngIf",s.isLoading),e.R7$(),e.Y8G("ngIf",!s.isLoading)}}function Ja(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",43),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.updateState(!0))}),e.EFF(1,"Continue to Interview Setup"),e.k0s()}}function Il(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",34)(2,"div",35)(3,"h2"),e.EFF(4,"Finalize your Discussion Guide"),e.k0s(),e.j41(5,"p",24),e.EFF(6,"Organize your interview questions based on the key information areas."),e.k0s()(),e.j41(7,"div",36)(8,"form",37)(9,"div",38),e.nrm(10,"markdown",39),e.k0s()()(),e.j41(11,"div",40)(12,"button",41),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(13,"Previous"),e.k0s(),e.DNE(14,Ja,2,0,"button",42),e.k0s()()()}if(2&b){const s=e.XpG();e.R7$(8),e.Y8G("formGroup",s.form),e.R7$(2),e.Y8G("data",s.discussionGuide),e.R7$(4),e.Y8G("ngIf",!s.isDGEdited)}}function ca(b,x){if(1&b&&(e.j41(0,"div",74)(1,"div",75)(2,"h3",76),e.EFF(3,"Preview Discu
1ssion Guide"),e.k0s(),e.j41(4,"p",77),e.EFF(5," Review your complete discussion guide before proceeding to interview configuration. "),e.k0s(),e.nrm(6,"markdown",39),e.k0s()()),2&b){const s=e.XpG(2);e.R7$(6),e.Y8G("data",s.discussionGuide)}}function mo(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",88)(1,"div",89)(2,"div",90)(3,"div",91)(4,"div",92),e.EFF(5),e.k0s()(),e.j41(6,"div",93),e.nrm(7,"img",94),e.k0s()(),e.j41(8,"div",95),e.EFF(9),e.k0s(),e.j41(10,"div",96)(11,"button",97),e.bIt("click",function(){const g=e.eBV(s).$implicit,I=e.XpG(4);return e.Njj(I.editPreQuestion(g))}),e.nrm(12,"i",98),e.k0s(),e.j41(13,"button",99),e.bIt("click",function(){const g=e.eBV(s).$implicit,I=e.XpG(4);return e.Njj(I.deleteInterviewQuestions(g._id))}),e.nrm(14,"i",100),e.k0s()()()()}if(2&b){const s=x.$implicit,y=e.XpG(4);e.R7$(5),e.JRh(s.questionRefernceNo),e.R7$(2),e.Mz_("alt","",s.type," icon"),e.Y8G("src",y.questionIcons[s.type],e.B4B),e.R7$(2),e.SpI(" ",s.text," "),e.R7$(2),e.AVh("disabled-icon","DRAFT"!==(null==y.surveyDetails?null:y.surveyDetails.status)),e.R7$(2),e.AVh("disabled-icon","DRAFT"!==(null==y.surveyDetails?null:y.surveyDetails.status))}}function uc(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",101),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.openBranchingModal())}),e.nrm(1,"i",85),e.EFF(2," Add Screening Criteria "),e.k0s()}if(2&b){const s=e.XpG(4);e.AVh("disabled-icon","DRAFT"!==(null==s.surveyDetails?null:s.surveyDetails.status))("disabled-icon",null==s.branchData?null:s.branchData.questionId)}}function jd(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",102)(1,"a",103),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.selectQuestionType("open-ended"))}),e.nrm(2,"img",104),e.EFF(3,"\xa0 Open-ended "),e.k0s(),e.j41(4,"a",103),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.selectQuestionType("multiple-choice"))}),e.nrm(5,"img",105),e.EFF(6,"\xa0 Multiple Choice "),e.k0s(),e.j41(7,"a",103),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.selectQuestionType("numeric"))}),e.nrm(8,"img",106),e.EFF(9,"\xa0 Numeric "),e.k0s()()}}function Xu(b,x){if(1&b){const s=e.RV6();e.qex(0),e.j41(1,"h3",76),e.EFF(2,"Pre-Interview Screening Questions"),e.k0s(),e.j41(3,"div",81),e.DNE(4,mo,15,9,"div",82),e.k0s(),e.j41(5,"div",83)(6,"button",84),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.toggleDropdown())}),e.nrm(7,"i",85),e.EFF(8," Add Question "),e.k0s(),e.DNE(9,uc,3,4,"button",86)(10,jd,10,0,"div",87),e.k0s(),e.bVm()}if(2&b){const s=e.XpG(3);e.R7$(4),e.Y8G("ngForOf",s.preInterviewQuestions),e.R7$(2),e.AVh("disabled-icon","DRAFT"!==(null==s.surveyDetails?null:s.surveyDetails.status)),e.R7$(3),e.Y8G("ngIf",s.preInterviewQuestions.length>0),e.R7$(),e.Y8G("ngIf",s.showDropdown)}}function Cs(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",119)(1,"div",120),e.nrm(2,"img",121),e.j41(3,"span",122),e.EFF(4,"Choices"),e.k0s()(),e.j41(5,"div",123)(6,"div",124)(7,"label",125),e.EFF(8,"Minimum Words"),e.k0s(),e.j41(9,"input",126),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.minWords,g)||(I.minWords=g),e.Njj(g)}),e.k0s()(),e.j41(10,"div",124)(11,"label",125),e.EFF(12,"Maximum Words"),e.k0s(),e.j41(13,"input",127),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.maxWords,g)||(I.maxWords=g),e.Njj(g)}),e.k0s()()()()}if(2&b){const s=e.XpG(4);e.R7$(9),e.R50("ngModel",s.minWords),e.R7$(4),e.R50("ngModel",s.maxWords)}}function qu(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",138),e.bIt("click",function(){e.eBV(s);const g=e.XpG().index,I=e.XpG(5);return e.Njj(I.removeOption(g))}),e.nrm(1,"i",139),e.k0s()}}function wh(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",135)(1,"input",136),e.mxI("ngModelChange",function(g){const I=e.eBV(s).index,Le=e.XpG(5);return e.DH7(Le.multipleOptions[I],g)||(Le.multipleOptions[I]=g),e.Njj(g)}),e.bIt("keydown.enter",function(){e.eBV(s);const g=e.XpG(5);return e.Njj(g.addOption())}),e.k0s(),e.DNE(2,qu,2,0,"button",137),e.k0s()}if(2&b){const s=x.index,y=e.XpG(5);e.R7$(),e.Mz_("placeholder","Option ",s+1,""),e.R50("ngModel",y.multipleOptions[s]),e.R7$(),e.Y8G("ngIf",y.multipleOptions.length>1)}}function Xc(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",119)(1,"div",120),e.nrm(2,"img",121),e.j41(3,"span",122),e.EFF(4,"Choices"),e.k0s()(),e.DNE(5,wh,3,4,"div",128),e.j41(6,"button",129),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.addOption())}),e.EFF(7,"+ Add Option"),e.k0s(),e.j41(8,"div",130)(9,"h3",131),e.EFF(10,"Allow Multiple Choices"),e.k0s(),e.j41(11,"label",132)(12,"input",133),e.bIt("change",function(g){e.eBV(s);const I=e.XpG(4);return e.Njj(I.onChangeMultiChoice(g))}),e.k0s(),e.nrm(13,"span",134),e.k0s()()()}if(2&b){const s=e.XpG(4);e.R7$(5),e.Y8G("ngForOf",s.multipleOptions)("ngForTrackBy",s.trackByIndex),e.R7$(7),e.Y8G("checked",s.isMultipleChoices)}}function qc(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",119)(1,"div",120),e.nrm(2,"img",121),e.j41(3,"span",122),e.EFF(4,"Choices"),e.k0s()(),e.j41(5,"div",140)(6,"div",124)(7,"label",125),e.EFF(8,"Minimum Value"),e.k0s(),e.j41(9,"input",126),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.minValue,g)||(I.minValue=g),e.Njj(g)}),e.k0s()(),e.j41(10,"div",124)(11,"label",125),e.EFF(12,"Maximum Value"),e.k0s(),e.j41(13,"input",127),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(4);return e.DH7(I.maxValue,g)||(I.maxValue=g),e.Njj(g)}),e.k0s()()()()}if(2&b){const s=e.XpG(4);e.R7$(9),e.R50("ngModel",s.minValue),e.R7$(4),e.R50("ngModel",s.maxValue)}}function Kc(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",141),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.savePreInterviewQuestion())}),e.EFF(1," Save "),e.k0s()}if(2&b){const s=e.XpG(4);e.Y8G("disabled",!(null!=s.questionText&&s.questionText.trim()))}}function Tl(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",141),e.bIt("click",function(){e.eBV(s);const g=e.XpG(4);return e.Njj(g.updatePreInterviewQuestion())}),e.EFF(1," Update "),e.k0s()}if(2&b){const s=e.XpG(4);e.Y8G("disabled",!(null!=s.questionText&&s.questionText.trim()))}}function pc(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",107)(1,"div",108)(2,"div",109)(3,"div",110),e.nrm(4,"img",111),e.k0s(),e.nrm(5,"div",112),e.j41(6,"div",113),e.EFF(7),e.k0s()(),e.j41(8,"textarea",114),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(3);return e.DH7(I.questionText,g)||(I.questionText=g),e.Njj(g)}),e.k0s()(),e.DNE(9,Cs,14,2,"div",115)(10,Xc,14,3,"div",115)(11,qc,14,2,"div",115),e.j41(12,"div",116),e.DNE(13,Kc,2,1,"button",117)(14,Tl,2,1,"button",117),e.j41(15,"button",118),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.goBack())}),e.EFF(16,"Close"),e.k0s()()()}if(2&b){const s=e.XpG(3);e.R7$(4),e.Y8G("src",s.questionIcons[s.selectedinterviewQuestionType],e.B4B),e.R7$(3),e.SpI(" Q",s.nextQuestionNumber," "),e.R7$(),e.R50("ngModel",s.questionText),e.R7$(),e.Y8G("ngIf","o
1pen-ended"===s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf","multiple-choice"===s.selectedinterviewQuestionType),e.R7$(),e.Y8G("ngIf","numeric"===s.selectedinterviewQuestionType),e.R7$(2),e.Y8G("ngIf",!s.isEditing),e.R7$(),e.Y8G("ngIf",s.isEditing)}}function Bd(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",78)(1,"div")(2,"h3",142),e.EFF(3,"Screening Criteria"),e.k0s()(),e.j41(4,"div",143)(5,"p"),e.EFF(6," If question is "),e.j41(7,"strong"),e.EFF(8),e.k0s(),e.EFF(9," response "),e.j41(10,"strong"),e.EFF(11),e.k0s(),e.EFF(12,", then Go to "),e.j41(13,"strong"),e.EFF(14),e.k0s()(),e.j41(15,"div",96)(16,"button",97),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.editBranch(g.branchData))}),e.nrm(17,"i",98),e.k0s(),e.j41(18,"button",99),e.bIt("click",function(){e.eBV(s);const g=e.XpG(3);return e.Njj(g.showPreDeleteModal=!0)}),e.nrm(19,"i",100),e.k0s()()()()}if(2&b){const s=e.XpG(3);e.R7$(8),e.JRh(s.getLogicQuestionText(null==s.branchData?null:s.branchData.questionId)),e.R7$(3),e.Lme("",null==s.branchData?null:s.branchData.condition," ",null==s.branchData?null:s.branchData.option,""),e.R7$(3),e.JRh(null==s.branchData?null:s.branchData.result),e.R7$(),e.AVh("disabled-icon","DRAFT"!==(null==s.surveyDetails?null:s.surveyDetails.status)),e.R7$(),e.AVh("disabled-icon","DRAFT"!==(null==s.surveyDetails?null:s.surveyDetails.status)),e.R7$(2),e.AVh("disabled-icon","DRAFT"!==(null==s.surveyDetails?null:s.surveyDetails.status))}}function Za(b,x){if(1&b&&(e.j41(0,"div")(1,"div",78),e.DNE(2,Xu,11,5,"ng-container",8)(3,pc,17,8,"div",79),e.k0s(),e.DNE(4,Bd,20,10,"div",80),e.k0s()),2&b){const s=e.XpG(2);e.R7$(2),e.Y8G("ngIf",!s.selectedinterviewQuestionType&&!s.isBranching),e.R7$(),e.Y8G("ngIf",s.selectedinterviewQuestionType&&!s.isBranching),e.R7$(),e.Y8G("ngIf",null==s.branchData?null:s.branchData.questionId)}}function li(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",146)(1,"input",147),e.bIt("change",function(g){const I=e.eBV(s).$implicit;return e.Njj(I.isSelected=g.target.checked)}),e.k0s(),e.j41(2,"label",148),e.EFF(3),e.k0s()()}if(2&b){const s=x.$implicit;e.R7$(),e.FS9("id",null==s?null:s.language),e.Y8G("checked",s.isSelected),e.R7$(),e.FS9("value",null==s?null:s.language),e.FS9("for",null==s?null:s.language),e.R7$(),e.JRh(null==s?null:s.name)}}function Vd(b,x){if(1&b&&(e.j41(0,"div",74)(1,"h3"),e.EFF(2,"Select Languages"),e.k0s(),e.j41(3,"p"),e.EFF(4,"Choose all languages that your AI interviewer should support. Participants will be able to select their preferred language."),e.k0s(),e.j41(5,"div",144),e.DNE(6,li,4,5,"div",145),e.k0s()()),2&b){const s=e.XpG(2);e.R7$(5),e.AVh("disabled-icon","DRAFT"!==(null==s.surveyDetails?null:s.surveyDetails.status)),e.R7$(),e.Y8G("ngForOf",s.languages)}}function Dh(b,x){1&b&&(e.j41(0,"div",149)(1,"div",150)(2,"h3"),e.EFF(3,"Choose Interviewer Persona"),e.k0s(),e.j41(4,"div",151)(5,"div",152),e.nrm(6,"input",153),e.j41(7,"label",154)(8,"span",155),e.EFF(9,"Neutral Professional"),e.k0s(),e.j41(10,"span",156),e.EFF(11,"Objective, clear, and professional tone"),e.k0s()()(),e.j41(12,"div",152),e.nrm(13,"input",157),e.j41(14,"label",158)(15,"span",155),e.EFF(16,"Friendly Conversationalist"),e.k0s(),e.j41(17,"span",156),e.EFF(18,"Warm, approachable, and engaging"),e.k0s()()(),e.j41(19,"div",152),e.nrm(20,"input",159),e.j41(21,"label",160)(22,"span",155),e.EFF(23,"Industry Expert"),e.k0s(),e.j41(24,"span",156),e.EFF(25,"Knowledgeable, analytical, and insightful"),e.k0s()()(),e.j41(26,"div",152),e.nrm(27,"input",161),e.j41(28,"label",162)(29,"span",155),e.EFF(30,"Empathetic Listener"),e.k0s(),e.j41(31,"span",156),e.EFF(32,"Understanding, patient, and supportive"),e.k0s()()(),e.j41(33,"div",152),e.nrm(34,"input",161),e.j41(35,"label",162)(36,"span",155),e.EFF(37,"Direct Investigator"),e.k0s(),e.j41(38,"span",156),e.EFF(39,"Straightforward, efficient, and to-the-point"),e.k0s()()()()()())}function Mh(b,x){if(1&b&&(e.j41(0,"option",175),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.JRh(s)}}function Eh(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",163)(1,"h3",45),e.EFF(2,"Voice Settings"),e.k0s(),e.j41(3,"div",164)(4,"label"),e.EFF(5,"Speaking Speed"),e.k0s(),e.j41(6,"div",165)(7,"span",166),e.EFF(8,"Slow"),e.k0s(),e.j41(9,"div",167)(10,"input",168),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.speakingSpeed,g)||(I.speakingSpeed=g),e.Njj(g)}),e.bIt("input",function(g){e.eBV(s);const I=e.XpG(2);return e.Njj(I.updateLabelPosition(g))}),e.k0s(),e.j41(11,"div",169),e.EFF(12),e.k0s()(),e.j41(13,"span",166),e.EFF(14,"Fast"),e.k0s()()(),e.j41(15,"div",170)(16,"label"),e.EFF(17,"Tone"),e.k0s(),e.j41(18,"select",171),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.tone,g)||(I.tone=g),e.Njj(g)}),e.DNE(19,Mh,2,2,"option",172),e.k0s()(),e.j41(20,"div",173)(21,"button",174),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.testVoice())}),e.EFF(22,"\u25b6 Test Voice"),e.k0s(),e.j41(23,"p"),e.EFF(24,"Click to hear a sample of how your AI interviewer will sound with these settings."),e.k0s()()()}if(2&b){const s=e.XpG(2);e.R7$(10),e.R50("ngModel",s.speakingSpeed),e.R7$(),e.xc7("left",s.labelPosition,"%"),e.R7$(),e.SpI(" ",s.speakingSpeed.toFixed(1),"x "),e.R7$(6),e.R50("ngModel",s.tone),e.R7$(),e.Y8G("ngForOf",s.toneOptions)}}function Ku(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",176)(1,"h3",177),e.EFF(2,"Configure Opening Message"),e.k0s(),e.j41(3,"p",178),e.EFF(4," This is the first message participants will hear when the interview begins. Choose a template or customize your own. "),e.k0s(),e.j41(5,"div",179)(6,"h4",180),e.EFF(7,"Templates"),e.k0s(),e.j41(8,"div",181)(9,"div",182),e.nrm(10,"input",183),e.j41(11,"label",184),e.EFF(12,"Formal Introduction"),e.k0s(),e.j41(13,"p",185),e.EFF(14," Hello, thank you for participating in this research interview. My name is [AI Name], and I'll be conducting this interview today. Your insights are valuable to us and will help improve our products and services. "),e.k0s()(),e.j41(15,"div",182),e.nrm(16,"input",186),e.j41(17,"label",187),e.EFF(18,"Casual Welcome"),e.k0s(),e.j41(19,"p"),e.EFF(20," Hi there! Thanks so much for taking the time to chat with me today. I'm [AI Name] and I'm excited to hear your thoughts and experiences. This is a relaxed conversation, so feel free to share whatever comes to mind. "),e.k0s()(),e.j41(21,"div",182),e.nrm(22,"input",188),e.j41(23,"label",189),e.EFF(24,"Brief Introduction"),e.k0s(),e.j41(25,"p"),e.EFF(26," Welcome to this interview. I'm [AI Name], your AI interviewer. Let's get started with our discussion. "),e.k0s()()()(),e.j41(27,"div",190)(28,"h4"),e.EFF(29,"Customize Message"),e.k0s(),e.j41(30,"textarea",191),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.customMessage,g)||(I.customMessage=g),e.Njj(g)}),e.k0s()(),e.j41(31,"div",192)(32,"h3"),e.EFF(33,"Tips for an effective opening:"),e.k0s(),e.j41(34,"ul")(35,"li"),e.EFF(36,"Introduce yourself and explain the purpose of the interview"),e.k0s(),e.j41(37,"li"),e.EFF(38,"Make participants feel comfortable to share openly"),e.k0s(),e.j41(39,"li"),e.EFF(40,"Mention the expected duration of the participant's session"),e.k0s(),e.j41(41,"li"),e.EFF(42,"Set clear expectations about the kind of input or views you want"),e.k0s(),e.j41(43,"li"),e.EFF(44,"Consider mentioning the language(s) if you're supporting multiple languages"),e.k0s()()()()}if(2&b){const s=e.XpG(2);e.R7$(30),e.R50("ngModel",s.customMessage)}}function Gd(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",203)(1,"span",204),e.EFF(2),e.k0s(),e.j41(3,"span",205),e.EFF(4),e.k0s(),e.j41(5,"button",206),e.bIt("click",function(){const g=e.eBV(s).index,I=e.XpG(4);return e.Njj(I.removePronunciation(g))}),e.EFF(6,"\u2715"),e.k0s()()}if(2&b){const s=x.$implicit;e.R7$(2),e.JRh(s.word),e.R7$(2),e.JRh(s.pronunciation)}}function el(b,x){if(1&b&&(e.j41(0,"div",201),e.DNE(1,Gd,7,2,"div",202),e.k0s()),2&b){const s=e.XpG(3);e.R7$(),e.Y8G("ngForOf",s.pronunciationList)}}function Ud(b,x){1&b&&(e.j41(0,"p",207),e.EFF(1,"No custom pronunciations added yet."),e.k0s())}function Yu(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",193)(1,"h3",194),e.EFF(2,"Pronunciation Dictionary"),e.k0s(),e.j41(3,"p",24),e.EFF(4," Add custom pronunciations for specific terms, names, or local words that the AI interviewer should pronounce correctly. "),e.k0s(),e.j41(5,"div",195)(6,"div",196)(7,"label"),e.EFF(8,"Word or Phrase"),e.k0s(),e.j41(9,"input",197),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.word,g)||(I.word=g),e.Njj(g)}),e.k0s()(),e.j41(10,"div",196)(11,"label"),e.EFF(12,"Pronunciation Guide"),e.k0s(),e.j41(13,"input",198),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.pronunciation,g)||(I.pronunciation=g),e.Njj(g)}),e.k0s()(),e.j41(14,"button",199),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.addPronunciation())}),e.EFF(15,"Add"),e.k0s()(),e.DNE(16,el,2,1,"div",200)(17,Ud,2,0,"ng-template",null,2,e.C5r),e.k0s()}if(2&b){const s=e.sdS(18),y=e.XpG(2);e.R7$(9),e.R50("ngModel",y.word),e.R7$(4),e.R50("ngModel",y.pronunciation),e.R7$(3),e.Y8G("ngIf",y.pronunciationList.length>0)("ngIfElse",s)}}function Ju(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",44)(2,"div",35)(3,"h2",45),e.EFF(4,"Configure Your AI Interviewer"),e.k0s(),e.j41(5,"p",24),e.EFF(6,"Customize how your AI interviewer will c
1onduct the interviews. "),e.k0s()(),e.j41(7,"div",46)(8,"div",47)(9,"input",48),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("Discussion_Guide"))}),e.k0s(),e.j41(10,"label",49),e.nrm(11,"img",50),e.EFF(12,"Discussion Guide"),e.k0s(),e.j41(13,"input",51),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("Screener_Questions"))}),e.k0s(),e.j41(14,"label",52),e.nrm(15,"i",53),e.EFF(16,"Screener Questions"),e.k0s(),e.j41(17,"input",54),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("language"))}),e.k0s(),e.j41(18,"label",55),e.nrm(19,"i",56),e.EFF(20,"Language"),e.k0s(),e.j41(21,"input",57),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("persona"))}),e.k0s(),e.j41(22,"label",58),e.nrm(23,"i",59),e.EFF(24," Persona"),e.k0s(),e.j41(25,"input",60),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("voice"))}),e.k0s(),e.j41(26,"label",61),e.nrm(27,"i",62),e.EFF(28," Voice"),e.k0s(),e.j41(29,"input",63),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("opening"))}),e.k0s(),e.j41(30,"label",64),e.nrm(31,"i",65),e.EFF(32," Opening Message"),e.k0s(),e.j41(33,"input",66),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.setActiveTab("pronunciation"))}),e.k0s(),e.j41(34,"label",67),e.nrm(35,"i",68),e.EFF(36," Pronunciation"),e.k0s()()(),e.DNE(37,ca,7,1,"div",69)(38,Za,5,3,"div",8)(39,Vd,7,3,"div",69)(40,Dh,40,0,"div",70)(41,Eh,25,6,"div",71)(42,Ku,45,1,"div",72)(43,Yu,19,4,"div",73),e.j41(44,"div",40)(45,"button",41),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(46,"Previous"),e.k0s(),e.j41(47,"button",43),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.deployment())}),e.EFF(48,"Continue to Deployment"),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(9),e.Y8G("checked","Discussion_Guide"===s.activeTab),e.R7$(4),e.Y8G("checked","Screener_Questions"===s.activeTab),e.R7$(4),e.Y8G("checked","language"===s.activeTab),e.R7$(20),e.Y8G("ngIf","Discussion_Guide"===s.activeTab),e.R7$(),e.Y8G("ngIf","Screener_Questions"===s.activeTab),e.R7$(),e.Y8G("ngIf","language"===s.activeTab),e.R7$(),e.Y8G("ngIf","persona"===s.activeTab),e.R7$(),e.Y8G("ngIf","voice"===s.activeTab),e.R7$(),e.Y8G("ngIf","opening"===s.activeTab),e.R7$(),e.Y8G("ngIf","pronunciation"===s.activeTab)}}function Zu(b,x){1&b&&e.nrm(0,"i",33)}function ep(b,x){if(1&b){const s=e.RV6();e.j41(0,"p")(1,"a",215),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.cancelDeployment())}),e.EFF(2,"Cancel Deployment"),e.k0s()()}}function Kt(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",208)(2,"div",35)(3,"h2",45),e.EFF(4,"Deploy Your AI Interviewer"),e.k0s(),e.j41(5,"p",24),e.EFF(6,"Choose how you want to deploy your AI interviewer to participants."),e.k0s()(),e.j41(7,"div",150)(8,"h3"),e.EFF(9,"Deployment Method"),e.k0s(),e.j41(10,"div",151)(11,"div",152),e.nrm(12,"input",209),e.j41(13,"label",154)(14,"span",155),e.EFF(15,"Generate Interview URL"),e.k0s(),e.j41(16,"span",156),e.EFF(17,"Create a unique link that participants can access in their browser"),e.k0s()()(),e.j41(18,"div",152),e.nrm(19,"input",210),e.j41(20,"label",158)(21,"span",155),e.EFF(22,"Zoom Integration"),e.k0s(),e.j41(23,"span",156),e.EFF(24,"Deploy as a Zoom bot that can join scheduled meetings"),e.k0s()()(),e.j41(25,"div",152),e.nrm(26,"input",211),e.j41(27,"label",160)(28,"span",155),e.EFF(29,"Microsoft Teams Integration"),e.k0s(),e.j41(30,"span",156),e.EFF(31,"Deploy as a Teams bot that can conduct interviews in your Teams environment"),e.k0s()()(),e.j41(32,"div",152),e.nrm(33,"input",212),e.j41(34,"label",162)(35,"span",155),e.EFF(36,"Google Meet Integration"),e.k0s(),e.j41(37,"span",156),e.EFF(38,"Deploy as a Meet bot that can join Google Calendar scheduled interviews"),e.k0s()()()()(),e.j41(39,"div",213)(40,"button",41),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.updateState(!1))}),e.EFF(41,"Back to Configuration"),e.k0s(),e.j41(42,"div",214)(43,"button",27),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.createDicussionGuide())}),e.EFF(44,"Deploy Interview "),e.DNE(45,Zu,1,0,"i",28),e.k0s(),e.DNE(46,ep,3,0,"p",8),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(43),e.Y8G("disabled",s.createLink),e.R7$(2),e.Y8G("ngIf",s.createLink),e.R7$(),e.Y8G("ngIf",s.newDeployment)}}function Vi(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",216)(2,"div",217),e.nrm(3,"i",218),e.k0s(),e.j41(4,"h2"),e.EFF(5,"Interview Ready to be deployed"),e.k0s(),e.j41(6,"p"),e.EFF(7,"Your AI interviewer is now ready to conduct interviews. Share the link below with participants."),e.k0s(),e.j41(8,"div",219)(9,"span",220),e.EFF(10),e.k0s(),e.j41(11,"button",221),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.copyNewLink(g.surveyLink))}),e.nrm(12,"i",222),e.k0s()(),e.j41(13,"button",223),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.goto())}),e.EFF(14,"View Analysis Dashboard"),e.k0s()()()}if(2&b){const s=e.XpG();e.R7$(9),e.FS9("title",s.surveyLink),e.R7$(),e.JRh(s.surveyLink)}}function tp(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",228),e.bIt("click",function(){e.eBV(s);const g=e.XpG(2);return e.Njj(g.createNewDeployment())}),e.EFF(1,"Create New Deployment"),e.k0s()}}function Mo(b,x){if(1&b){const s=e.RV6();e.j41(0,"a",236),e.bIt("click",function(){e.eBV(s);const g=e.XpG().$implicit,I=e.XpG(3);return e.Njj(I.copyLink(g))}),e.EFF(1,"Copy Link"),e.k0s()}if(2&b){const s=e.XpG().$implicit;e.xc7("pointer-events",0==s.isActive?"none":"unset")}}function Ci(b,x){1&b&&(e.j41(0,"span"),e.EFF(1,"NA"),e.k0s())}function np(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",237),e.bIt("click",function(){e.eBV(s);const g=e.XpG().$implicit,I=e.XpG(3);return e.Njj(I.updatePreviewAndTest(g))}),e.EFF(1),e.k0s()}if(2&b){const s=e.XpG().$implicit;e.Y8G("disabled",!s.isActive),e.R7$(),e.SpI(" ",s.isActive?"Deactivate Link":"Deactivated Link"," ")}}function hc(b,x){if(1&b){const s=e.RV6();e.j41(0,"button",238),e.bIt("click",function(){e.eBV(s);const g=e.XpG().$implicit,I=e.XpG(3);return e.Njj(I.navigate(g))}),e.EFF(1,"View Report"),e.k0s()}}function zs(b,x){if(1&b&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.nI1(7,"date"),e.k0s(),e.j41(8,"td"),e.EFF(9),e.k0s(),e.j41(10,"td")(11,"span",232),e.EFF(12),e.k0s()(),e.j41(13,"td"),e.DNE(14,Mo,2,2,"a",233)(15,Ci,2,0,"span",8),e.k0s(),e.j41(16,"td"),e.DNE(17,np,2,2,"button",234)(18,hc,2,0,"button",235),e.k0s()()),2&b){const s=x.$implicit;e.R7$(2),e.JRh(s.campaignName),e.R7$(2),e.JRh("Link"==s.collectorType?"WhatsApp":s.collectorType),e.R7$(2),e.JRh(e.i5U(7,10,s.createdAt,"MMM d, y")),e.R7$(3),e.JRh(s.noOfClicks?s.noOfClicks:"NA"),e.R7$(2),e.Y8G("ngClass",s.isActive?"text-success":"text-danger"),e.R7$(),e.SpI(" ",s.isActive?"Active":"Inactive"," "),e.R7$(2),e.Y8G("ngIf","BuyResponses"!=s.collectorType&&!s.isPush),e.R7$(),e.Y8G("ngIf",s.isPush),e.R7$(2),e.Y8G("ngIf",!s.isPush),e.R7$(),e.Y8G("ngIf",s.isPush)}}function $s(b,x){if(1&b&&(e.j41(0,"div",229)(1,"table",230)(2,"thead")(3,"tr")(4,"th"),e.EFF(5,"Campaign"),e.k0s(),e.j41(6,"th"),e.EFF(7,"Deployment Method"),e.k0s(),e.j41(8,"th"),e.EFF(9,"Created on"),e.k0s(),e.j41(10,"th"),e.EFF(11,"Clicks"),e.k0s(),e.j41(12,"th"),e.EFF(13,"Status"),e.k0s(),e.j41(14,"th"),e.EFF(15,"Get Link"),e.k0s(),e.j41(16,"th"),e.EFF(17,"Action"),e.k0s()()(),e.j41(18,"tbody"),e.DNE(19,zs,19,13,"tr",231),e.k0s()()()),2&b){const s=e.XpG(2);e.R7$(19),e.Y8G("ngForOf",s.ongoingSurveysArr)}}function zd(b,x){1&b&&(e.j41(0,"div",239)(1,"h3",240),e.EFF(2,"No data available."),e.k0s()())}function $d(b,x){if(1&b){const s=e.RV6();e.j41(0,"div")(1,"div",224)(2,"div",35)(3,"h2",155),e.EFF(4,"Deployment"),e.k0s()(),e.DNE(5,tp,2,0,"button",225)(6,$s,20,1,"div",226)(7,zd,3,0,"ng-template",null,2,e.C5r),e.j41(9,"div",227)(10,"button",43),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.goto())}),e.EFF(11,"Continue"),e.k0s()()()()}if(2&b){const s=e.sdS(8),y=e.XpG();e.R7$(5),e.Y8G("ngIf",y.ongoingSurveysArr.length>0),e.R7$(),e.Y8G("ngIf",y.ongoingSurveysArr.length>0)("ngIfElse",s)}}function ip(b,x){1&b&&(e.j41(0,"section",17)(1,"div",18)(2,"div",19)(3,"div",20)(4,"span",21),e.EFF(5,"Loading..."),e.k0s()(),e.j41(6,"strong"),e.EFF(7,"Loading..."),e.k0s()()()())}function rp(b,x){1&b&&e.nrm(0,"div",241)}function Lo(b,x){if(1&b&&(e.j41(0,"option",261),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("ngValue",s),e.R7$(),e.JRh(null==s?null:s.que_text)}}function ms(b,x){if(1&b&&(e.j41(0,"option",175),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.SpI(" ",s," ")}}function op(b,x){if(1&b&&(e.j41(0,"option",175),e.EFF(1),e.k0s()),2&b){const s=x.$implicit;e.Y8G("value",s),e.R7$(),e.SpI(" ",s," ")}}function is(b,x){if(1&b){const s=e.RV6();e.j41(0,"select",254),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.selectedChoiceText,g)||(I.selectedChoiceText=g),e.Njj(g)}),e.j41(1,"option",262),e.EFF(2,"Select an Option"),e.k0s(),e.DNE(3,op,2,2,"option",172),e.k0s()}if(2&b){const s=e.XpG(2);e.R50("ngModel",s.selectedChoiceText),e.R7$(3),e.Y8G("ngForOf",s.multipleOptions)}}function Xo(b,x){if(1&b){const s=e.RV6();e.j41(0,"input",263),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG(2);return e.DH7(I.selectedChoiceText,g)||(I.selectedChoiceText=g),e.Njj(g)}),e.k0s()}if(2&b){const s=e.XpG(2);e.R50("ngModel",s.selectedChoiceText)}}function kh(b,x){if(1&b){const s=e.RV6();e.j41(0,"div",242)(1,"div",243)(2,"div",244)(3,"h3",245),e.nrm(4,"i",246),e.EFF(5," Screening Criteria"),e.k0s()(),e.j41(6,"div",247)(7,"div",248)(8,"select",249),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.DH7(I.selectedResultQuestion,g)||(I.selectedResultQuestion=g),e.Njj(g)}),e.bIt("change",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.onQuestionSelect())}),e.j41(9,"option",250),e.EFF(10,"Select a Question"),e.k0s(),e.DNE(11,Lo,2,2,"option",251),e.k0s()(),e.j41(12,"p",252),e.EFF(13,"If answer to this question"),e.k0s(),e.j41(14,"div",253)(15,"select",254),e.mxI("ngModelChange",function(g){e.eBV(s);const I=e.XpG();return e.DH7(I.selectedCriteria,g)||(I.selectedCriteria=g),e.Njj(g)}),e.j41(16,"option",250),e.EFF(17,"Select a Criteria"),e.k0s(),e.DNE(18,ms,2,2,"option",172),e.k0s(),e.DNE(19,is,4,2,"select",255)(20,Xo,1,1,"input",256),e.k0s(),e.j41(21,"label",257),e.EFF(22,"Then end the interview"),e.k0s()(),e.j41(23,"div",258)(24,"button",259),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.closeBranchingModal())}),e.EFF(25,"Close"),e.k0s(),e.j41(26,"button",260),e.bIt("click",function(){e.eBV(s);const g=e.XpG();return e.Njj(g.saveBranching())}),e.EFF(27,"Save"),e.k0s()()()()}if(2&b){const s=e.XpG();e.R7$(8),e.R50("ngModel",s.selectedResultQuestion),e.R7$(3),e.Y8G("ngForOf",s.logicQuestions),e.R7$(4),e.R50("ngModel",s.selectedCriteria),e.R7$(3),e.Y8G("ngForOf",s.branchCriteriaToShow),e.R7$(),e.Y8G("ngIf",s.isMCQSelected&&"not empty"!==s.selectedCriteria),e.R7$(),e.Y8G("ngIf",!s.isMCQSelected&&"not empty"!==s.selectedCriteria)}}const Ih=[{path:"",redirectTo:"accounts",pathMatch:"full"},{path:"discussionguide",canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]},component:dn}
1,{path:"discussion-guide",component:bi,canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]}},{path:"discussion-guide-update",component:(()=>{class b{constructor(s,y,g,I){this.surveyService=s,this.tostr=y,this.sanitizer=g,this.router=I,this.step=0,this.ongoingSurveysArr=[],this.isLoading=!1,this.researchSummary="",this.dgisLoading=!1,this.hasChanged=!1,this.editedIndex=null,this.editableName="",this.editedQuestionIndex=null,this.editableQuestionText="",this.allQuestions=[],this.showDiscussionGuide=!1,this.initialKeyInformationAreas=[],this.showPreDeleteModal=!1,this.branchData=null,this.activeTab="Screener_Questions",this.stepLabels=["Research Setup","Key Information Areas","Discussion Guide","AI Interviewer Setup","Deployment","Analysis"],this.languages=[{language:"English",name:"English",isSelected:!0,disabled:!1},{language:"Hindi",name:"\u0939\u093f\u0928\u094d\u0926\u0940",isSelected:!0,disabled:!1},{language:"Marathi",name:"\u092e\u0930\u093e\u0920\u0940",isSelected:!1,disabled:!0},{language:"Bengali",name:"\u09ac\u09be\u0982\u09b2\u09be",isSelected:!1,disabled:!0},{language:"Tamil",name:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",isSelected:!1,disabled:!0},{language:"Telugu",name:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",isSelected:!1,disabled:!0},{language:"Kannada",name:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",isSelected:!1,disabled:!0},{language:"Gujarati",name:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",isSelected:!1,disabled:!0},{language:"Indonesian",name:"bahasa Indonesia",isSelected:!1,disabled:!0},{language:"Spanish",name:"Spanish",isSelected:!1,disabled:!0},{language:"French",name:"Fran\xe7ais",isSelected:!1,disabled:!0},{language:"Portuguese",name:"portugu\xeas",isSelected:!1,disabled:!0},{language:"Persian",name:"\u0641\u0627\u0631\u0633\u06cc",isSelected:!1,disabled:!0},{language:"Arabic",name:"\u0639\u0631\u0628\u064a",isSelected:!1,disabled:!0},{language:"Malayalam",name:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",isSelected:!1,disabled:!0},{language:"Punjabi",name:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",isSelected:!1,disabled:!0},{language:"Odia",name:"\u0b13\u0b21\u0b3f\u0b06",isSelected:!1,disabled:!0},{language:"Afrikaans",name:"Afrikaans",isSelected:!1,disabled:!0},{language:"Urdu",name:"\u0627\u0631\u062f\u0648",isSelected:!1,disabled:!0}],this.keyInformationAreas=[],this.initialQuestions=[],this.skipStepUpdate=!1,this.allSections=[],this.isquestionget=!1,this.generatedTitle="",this.discussionGuide="",this.isDGChanged=!1,this.originalDG="",this.isDGSave=!1,this.originalDGText="",this.isDGEdited=!1,this.DGquestionLoading=!1,this.surveyDetails={},this.selectedinterviewQuestionType="",this.selectedInterviewId="",this.openEndedText="",this.minWords=1,this.maxWords=100,this.numericText="",this.minValue=1,this.maxValue=100,this.multipleChoiceQuestionText="",this.multipleOptions=[""],this.isMultipleChoices=!1,this.questionText="",this.showDropdown=!1,this.questionIcons={"open-ended":"../assets/icons/Audio text.png","multiple-choice":"https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/i-exam-multiple-choice-svgrepo-com (1) 1.png",numeric:"https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/123.svg"},this.preInterviewQuestions=[],this.isEditing=!1,this.editingQuestionId=null,this.branchingQuestion=[],this.questionSections=[],this.logicQuestions=[],this.connectedTo=[],this.choiceText="",this.selectedQuestion=null,this.selectedBranchQuestion=null,this.selectedChoiceText="",this.selectedResultQuestion=null,this.currentQuestionText="",this.currentQuestionType="",this.currentQuestionOptions=[],this.selectedQuestionForBranch=null,this.selectedCriteria=null,this.branchCriteria=["is","isn't","contains","doesn't contain"],this.branchCriteriaText=["contains","doesn't contain","not empty"],this.numericBranchCriteria=["Greater than","Less than","Greater than or equal to","Less than or equal to","Equal to","Not equal to"],this.allowedBranchTypes=["Nominal","Numeric","open-ended"],this.isMCQSelected=!1,this.branchCriteriaToShow=[],this.questionSection=[],this.isBranchingModalOpen=!1,this.createLink=!1,this.isLinkCreated=!1,this.createSurveyLink=!1,this.forceStep6=!1,this.linkName="test",this.surveyLink="",this.length=0,this.pageIndex=0,this.pageSize=5,this.newDeployment=!1;for(var Le=0;Le<this.ongoingSurveysArr.count;Le++)this.ongoingSurveysArr.data.push({id:Le+1,value:"items number "+(Le+1)}),console.log("Count",this.ongoingSurveysArr.count);let et=new Date;et=new Date(et.getTime()+864e5),this.minDate=et.toISOString().split("T")[0]}
1ngOnInit(){this.editor=new ur.KE,this.getSurveyDetails(),this.getPreInterviewQuestions(),this.getOnGoingSurveys()}getSurveyDetails(){this.isLoading=!0,this.allQuestions=[];const s=localStorage.getItem("surveyId");s&&this.surveyService.getSurveyDetails(s).then(y=>{this.surveyDetails=y,this.surveyID=y._id,this.branchData=y?.preInterviewQuestionBranch||null,this.key_information_areasString=JSON.stringify(y?.key_information_areas),this.keyInformationAreas=y?.key_information_areas||[],this.initialKeyInformationAreas=JSON.parse(JSON.stringify(this.keyInformationAreas)),y.sections&&y.sections.length>0?(this.allQuestions=y.sections[0].questions||[],this.initialQuestions=JSON.parse(JSON.stringify(this.allQuestions))):(this.allQuestions=[],this.initialQuestions=[]),this.researchSummary=y?.research_summary||"",this.isLoading=!1,this.generatedTitle=y?.name||"",this.discussionGuide=y?.discussion_guide_md||"",this.originalDGText=this.discussionGuide;const g=(0,tr.xI)(y?.discussion_guide_md);if(this.originalDGText=this.discussionGuide,this.form=new w.gE({editorContent:new w.MJ(g)}),this.DgSubscription&&this.DgSubscription.unsubscribe(),this.DgSubscription=this.form.controls.editorContent.valueChanges.subscribe(I=>{const et=(new jr.A).turndown(I||"");this.isDGEdited=et.trim()!==(this.originalDGText||"").trim()}),setTimeout(()=>{this.DGquestionLoading=!1,this.isLoading=!1},2e3),console.log("Formatted DG Sections:",this.allSections),!this.skipStepUpdate&&!this.forceStep6){if(this.isquestionget)return void(this.step=3);if("OPEN"==y?.status&&this.collectorLink)return this.step=7,void(this.newDeployment=!0);this.step=2}})}goToStep(s){if(5===s)return"OPEN"==this.surveyDetails?.status&&this.collectorLink?(this.step=7,void(this.newDeployment=!0)):void(this.step=5);if(6!==s)this.step=s;else{const y=localStorage.getItem("surveyId");this.router.navigateByUrl(`/analysis/${y}`)}}copyNewLink(s){navigator.clipboard.writeText(s),this.tostr.success("Copied")}updateState(s){s?this.step++:this.step--}onContinue(){this.hasChanged||this.updateState(!0)}setActiveTab(s){this.activeTab=s}toggleDropdown(){this.showDropdown=!this.showDropdown}selectQuestionType(s){if(this.selectedinterviewQuestionType=s,this.showDropdown=!1,"numeric"===s&&(this.minValue=this.minValue??1,this.maxValue=this.maxValue??100),"open-ended"===s&&(this.minWords=this.minWords??1,this.maxWords=this.maxWords??100),this.preInterviewQuestions&&0!==this.preInterviewQuestions.length){const y=this.preInterviewQuestions.map(I=>parseInt(I.questionRefernceNo?.replace("Q",""),10)).filter(I=>!isNaN(I)),g=Math.max(...y);this.nextQuestionNumber=g}else this.nextQuestionNumber=1;this.nextQuestionNumber++}trackByIndex(s){return s}addOption(){this.multipleOptions.push("")}removeOption(s){this.multipleOptions.length>1?this.multipleOptions.splice(s,1):this.multipleOptions=[""]}goBack(){this.selectedinterviewQuestionType=null,this.resetQuestionForm()}onChangeMultiChoice(s){this.isMultipleChoices=s.target.checked}resetQuestionForm(){this.questionText="",this.openEndedText="",this.numericText="",this.multipleChoiceQuestionText="",this.multipleOptions=[""],this.isMultipleChoices=!1,this.minWords=null,this.maxWords=null,this.minValue=null,this.maxValue=null,this.selectedinterviewQuestionType=null,this.isEditing=!1}savePreInterviewQuestion(){const s=localStorage.getItem("surveyId");if(!this.selectedinterviewQuestionType)return void this.tostr.error("Please select a question type.");if(!s)return void this.tostr.error("Survey ID is missing.");if(!this.questionText?.trim())return void this.tostr.error("Please enter the question text.");if("open-ended"===this.selectedinterviewQuestionType||"numeric"===this.selectedinterviewQuestionType){const g="open-ended"===this.selectedinterviewQuestionType?this.minWords:this.minValue,I="open-ended"===this.selectedinterviewQuestionType?this.maxWords:this.maxValue;if(0===g&&0===I)return void this.tostr.error("Minimum and maximum values cannot both be 0.");if(0===g||0===I)return void this.tostr.error("Minimum and maximum values cannot be 0.");if(g>=I)return void this.tostr.error("Minimum value must be less than maximum value.")}const y={type:this.selectedinterviewQuestionType,text:this.questionText.trim(),interviewId:s};if("open-ended"===this.selectedinterviewQuestionType)y.min_words=this.minWords||1,y.max_words=this.maxWords||100;else if("numeric"===this.selectedinterviewQuestionType)y.min_value=this.minValue??1,y.max_value=this.maxValue??100;else if("multiple-choice"===this.selectedinterviewQuestionType){const g=this.multipleOptions.map(I=>I.trim()).filter(I=>""!==I);if(g.length<2)return void this.tostr.error("Please add at least 2 options before saving.");y.options=g,y.is_multi_choice=this.isMultipleChoices||!1}this.surveyService.savePreInterviewQuestions(y).subscribe({next:g=>{this.tostr.success("Question saved successfully."),this.getPreInterviewQuestions(),this.resetQuestionForm()},error:g=>{console.error("Error saving question:",g),this.tostr.error("Failed to save question. Please try again.")}})}getPreInterviewQuestions(){const s=localStorage.getItem("surveyId");s&&this.surveyService.fetchPreInterviewQuestions(s).subscribe({next:y=>{console.log("Pre-interview questions:",y),this.preInterviewQuestions=y||[],this.setNextQuestionNumber(),this.setBranchingData(y)},error:y=>console.error("Error fetching pre-interview questions:",y)})}setNextQuestionNumber(){if(!this.preInterviewQuestions||0===this.preInterviewQuestions.length)return void(this.nextQuestionNumber=1);const s=this.preInterviewQuestions.map(g=>parseInt(g.questionRefernceNo?.replace("Q",""),10)).filter(g=>!isNaN(g)),y=Math.max(...s);this.nextQuestionNumber=y+1,console.log("\u27a1\ufe0f Next question number:",this.nextQuestionNumber)}deleteInterviewQuestions(s){this.branchData&&this.branchData.questionId===s?this.tostr.error("You cannot delete this question because branching is applied."):this.surveyService.deletePreInterviewQuestion(s).subscribe({next:()=>{this.preInterviewQuestions=this.preInterviewQuestions.filter(y=>y._id!==s),this.tostr.success("Question deleted successfully!")},error:y=>console.error("Delete failed:",y)})}blockNonNumericPaste(s){const y=s.clipboardData?.getData("text");y&&!/^\d+$/.test(y)&&s.preventDefault()}allowOnlyNumbers(s){const y=s.which?s.which:s.keyCode;(y<48||y>57)&&s.preventDefault()}editPreQuestion(s){this.branchData&&this.branchData.questionId===s._id?this.tostr.error("You cannot Edit this question because branching is applied."):(this.isEditing=!0,this.editingQuestionId=s._id,this.selectedinterviewQuestionType=s.type,this.questionText=s.text,"open-ended"===s.type?(this.minWords=s.text_answer.min_words||1,this.maxWords=s.text_answer.max_words||100):"numeric"===s.type?(this.minValue=s.numeric.min_value||1,this.maxValue=s.numeric.max_value||100):"multiple-choice"===s.type&&(this.multipleOptions=s.options||[""],this.isMultipleChoices=s.is_multi_choice||!1))}updatePreInterviewQuestion(){const s=localStorage.getItem("surveyId");if(!this.selectedinterviewQuestionType)return void this.tostr.error("Please select a question type.");if(!s)return void this.tostr.error("Survey ID is missing.");if(!this.questionText?.trim())return void this.tostr.error("Please enter the question text.");if("open-ended"===this.selectedinterviewQuestionType||"numeric"===this.selectedinterviewQuestionType){const g="open-ended"===this.selectedinterviewQuestionType?this.minWords:this.minValue,I="open-ended"===this.selectedinterviewQuestionType?this.maxWords:this.maxValue;if(0===g&&0===I)return void this.tostr.error("Minimum and maximum values cannot both be 0.");if(0===g||0===I)return void this.tostr.error("Minimum and maximum values cannot be 0.");if(g>=I)return void this.tostr.error("Minimum value must be less than maximum value.")}const y={_id:this.editingQuestionId,type:this.selectedinterviewQuestionType,text:this.questionText.trim(),interviewId:s};if("open-ended"===this.selectedinterviewQuestionType)y.min_words=this.minWords||1,y.max_words=this.maxWords||100;else if("numeric"===this.selectedinterviewQuestionType)y.min_value=this.minValue??1,y.max_value=this.maxValue??100;else if("multiple-choice"===this.selectedinterviewQuestionType){const g=this.multipleOptions.map(I=>I.trim()).filter(I=>""!==I);if(g.length<2)return void this.tostr.error("Please add at least 2 options before updating.");y.options=g,y.is_multi_choice=this.isMultipleChoices||!1}this.surveyService.updatePreInterviewQuestion(y).subscribe({next:g=>{this.tostr.success("Question updated successfully."),this.getPreInterviewQuestions(),console.log("Question updated:",g),this.isEditing=!1,this.editingQuestionId=null,this.resetQuestionForm()},error:g=>{console.error("Error updating question:",g),this.tostr.error("Failed to update question. Please try again."),this.isEditing=!1}})}removeNewQuestion(s){s.showAddField=!1,s.newQuestionText="",s.selectedType="",s.previewUrl="",s.showTypeDropdown=!1}setBranchingData(s,y){this.questionSection=[],this.logicQuestions=[],this.branchingQuestion=[],this.connectedTo=[];let g=!1;for(const I of s){let Le={title:"Pre Interview Questions",section_id:"pre-int",que_text:I.text,que_id:I._id,type:"question",queType:I.type,translation:I.selectedLanguage};"multiple-choice"===I.type&&(Le.options=I.options),"numeric"===I.type&&(Le.minValue=I.numeric.min_value,Le.maxValue=I.numeric.max_value),"open-ended"===I.type&&(Le.minWords=I.text_answer.min_words,Le.maxWords=I.text_answer.max_words),this.questionId===I._id&&(this.currentQuestionText=I.text||I.que_text,this.currentQuestionType=I.type,"multiple-choice"===I.type&&(this.currentQuestionOptions=I.options),g=!0),this.questionId!==I._id&&this.questionSection.push(Le),this.logicQuestions.push(Le),g||!0===y&&"multiple-choice"===I.type&&this.branchingQuestion.push(Le),this.questionId===I._id&&(g=!0)}console.log("Branching Questions:",this.branchingQuestion),console.log("All Questions:",this.questionSection),console.log("Logic Questions:",this.logicQuestions)}openBranchingModal(){this.isBranchingModalOpen=!0}closeBranchingModal(){this.isBranchingModalOpen=!1,this.resetBranchFields()}saveBranching(){var s=this;return(0,ie.A)(function*(){if(!s.selectedCriteria||!s.selectedResultQuestion)return void s.tostr.error("Please fill all branching fields!");if("not empty"!==s.selectedCriteria&&!s.selectedChoiceText)return void s.tostr.error("Please enter choice text!");const y=localStorage.getItem("surveyId");if(!s.selectedResultQuestion?.que_id||!y)return void s.tostr.error("Missing Question ID or Survey ID!");const g={questionId:s.selectedResultQuestion?.que_id,condition:s.selectedCriteria,option:s.selectedChoiceText,result:"End of interview"};
1try{yield s.surveyService.savePreBranch(y,g).toPromise(),s.surveyService.getSurveyDetails(y).then(I=>{s.branchData=I?.preInterviewQuestionBranch}),s.tostr.success("Branching saved successfully!"),s.isBranchingModalOpen=!1}catch(I){console.error(I),s.tostr.error("Failed to save branching")}})()}getLogicQuestionText(s){return this.logicQuestions?.find(g=>g.que_id===s)?.que_text||s}editBranch(s){this.isBranchingModalOpen=!0;const y=this.logicQuestions.find(g=>g.que_id===s.questionId);this.selectedResultQuestion=y||null,this.onQuestionSelect(),this.selectedCriteria=s.condition,this.selectedChoiceText=s.option,this.questionId=s.questionId}deleteBranch(){const s=localStorage.getItem("surveyId");this.surveyService.savePreBranch(s,{preInterviewQuestionBranch:null}).subscribe(()=>{this.tostr.success("Branching deleted!"),this.branchData=null,this.showPreDeleteModal=!1,this.resetBranchFields()})}cancelDeleteBranch(){this.showPreDeleteModal=!1,this.resetBranchFields()}resetBranchFields(){this.selectedResultQuestion=null,this.questionId=null,this.selectedCriteria=null,this.selectedChoiceText=""}onQuestionSelect(){const s=this.selectedResultQuestion;s&&("multiple-choice"===s.queType&&s.options?.length?(this.isMCQSelected=!0,this.multipleOptions=s.options,this.branchCriteriaToShow=this.branchCriteria):"numeric"===s.queType?(this.isMCQSelected=!1,this.multipleOptions=[],this.branchCriteriaToShow=this.numericBranchCriteria):(this.isMCQSelected=!1,this.multipleOptions=[],this.branchCriteriaToShow=this.branchCriteriaText),this.selectedCriteria=null,this.selectedChoiceText=null)}createDicussionGuide(){this.createLink=!0;const s=localStorage.getItem("surveyId");if(this.surveyService.updateSurveyStatus({id:this.surveyID,is_published:!0}).subscribe(wt=>{},wt=>{console.error(wt),this.tostr.error("Failed to publish survey.")}),!s)return void this.tostr.error("Survey ID not found.");const g=this.ongoingSurveysArr?.length||0;console.log(g);const Le=`campaign_${g+1}`;console.log("ongoingSurveysArr \u{1f449}",this.ongoingSurveysArr),console.log("campaignName \u{1f449}",Le),this.surveyService.createDicussionGuide({surveyId:s,campaignName:Le}).subscribe(wt=>{this.isLinkCreated=!0,this.linkName=Le,this.surveyLink=wt.collectorLink,this.forceStep6=!0,this.step=7,this.createLink=!1,this.getSurveyDetails()},wt=>{console.error(wt),this.createSurveyLink=!1,this.tostr.error(wt.message),this.createLink=!1})}deployment(){this.step=5}getOnGoingSurveys(){this.surveyID=localStorage.getItem("surveyId"),this.isLoading=!0,this.surveyService.getOnGoingSurveysPage(this.surveyID,this.pageIndex*this.pageSize,this.pageSize).subscribe(s=>{console.log(s),this.ongoingSurveysArr=s.data,this.collectorLink=s.data?.[0]?.collectorLink||null,this.length=s.count,this.isLoading=!1},s=>{this.isLoading=!1,console.error(s)})}goto(){const s=localStorage.getItem("surveyId");this.router.navigateByUrl(`/analysis/${s}`)}createNewDeployment(){this.newDeployment=!0,this.step=3}cancelDeployment(){this.step=7,this.newDeployment=!1}copyLink(s){var y=document.createElement("textarea");document.body.appendChild(y),y.value=s.collectorLink,y.select(),document.execCommand("copy"),document.body.removeChild(y),this.tostr.success("Copied")}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(K.I),e.rXU(H.tw),e.rXU(p.up),e.rXU(ee.Ix))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-dg-createupdate"]],viewQuery:function(y,g){if(1&y&&e.GBs(xs,5),2&y){let I;e.mGM(I=e.lsd())&&(g.inputRef=I.first)}},decls:15,vars:10,consts:[["viewMode",""],["inputRef",""],["noData",""],[1,"header"],[1,"logo"],["src","assets/img/Merren_name.png","alt","Logo"],["routerLink","/dashboard/project-interview",1,"backbtn"],["class","progress-container mt-5",4,"ngIf"],[4,"ngIf"],["class","container d-flex flex-column justify-content-center align-items-center ","style","height: 40vh;display: flex;",4,"ngIf"],["class","branching-modal-backdrop",4,"ngIf"],["class","branching-modal",4,"ngIf"],[1,"progress-container","mt-5"],["class","progress-step",3,"active","completed","disabled","no-active-color","click",4,"ngFor","ngForOf"],[1,"progress-step",3,"click"],[1,"number"],["class","review-container",4,"ngIf"],[1,"container","d-flex","flex-column","justify-content-center","align-items-center",2,"height","40vh","display","flex"],[1,"m-auto"],["
1id","",1,"d-flex","flex-column","justify-content-center","align-items-center"],["role","status",1,"spinner-grow","mb-2"],[1,"sr-only"],[1,"review-container"],[1,"header-content"],[2,"font-size","13px","color","#4B5563"],["class","info-card",4,"ngFor","ngForOf"],[1,"footer-buttons","mt-4"],[1,"continue-btn",3,"click","disabled"],["class","fas fa-spinner fa-spin","style","margin-left: 10px;",4,"ngIf"],[1,"info-card"],[1,"card-header"],[4,"ngIf","ngIfElse"],["type","text",1,"edit-input",3,"ngModelChange","blur","keyup.enter","ngModel"],[1,"fas","fa-spinner","fa-spin",2,"margin-left","10px"],[1,"DG-container"],[2,"text-align","center"],[1,"DGCard"],[1,"mt-3",3,"formGroup"],[1,"editor"],[3,"data"],[1,"end-buttons","mt-4"],[1,"prev-btn",3,"click"],["class","continue-btn",3,"click",4,"ngIf"],[1,"continue-btn",3,"click"],[1,"lang-container"],[2,"color","#1F2937"],[1,"select-item","mt-5"],[1,"all-btn"],["type","radio","id","Discussion_Guide","name","option",3,"change","checked"],["for","Discussion_Guide"],["src","/assets/icons/note-text-svgrepo-com 1.png"],["type","radio","id","Screener_Questions","name","option",3,"change","checked"],["for","Screener_Questions"],[1,"fa","fa-television"],["type","radio","id","language","name","option",3,"change","checked"],["for","language"],[1,"fas","fa-globe"],["type","radio","id","persona","name","option",3,"change"],["for","persona"],[1,"far","fa-user"],["type","radio","id","voice","name","option",3,"change"],["for","voice"],[1,"fas","fa-volume-off"],["type","radio","id","opening","name","option",3,"change"],["for","opening"],[1,"fas","fa-comment-dots"],["type","radio","id","pronunciation","name","option",3,"change"],["for","pronunciation"],[1,"fas","fa-microphone"],["class","select-lang mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","persona-screen",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","voice-settings-container mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","opening-message-container mt-4",4,"ngIf"],["style","padding: 20px;width: 800px;margin: 0 auto; ","class","pronunciation-container mt-4",4,"ngIf"],[1,"select-lang","mt-4"],[1,"discussion-guide-container"],[1,"mb-3",2,"font-weight","500"],[1,"text-muted"],[1,"discussion-guide-container","select-lang","mt-4",2,"padding","20px","width","1000px","margin","0 auto"],["class","mt-4","style","width: 100%;",4,"ngIf"],["class","discussion-guide-container select-lang mt-4","style","padding: 20px; width: 1000px; margin: 0 auto;",4,"ngIf"],[1,"question-section"],["class","question-card-wrapper",4,"ngFor","ngForOf"],[1,"position-relative","mb-3","d-flex","align-items-end"],[1,"add-btn",3,"click"],[1,"fas","fa-plus"],["class","add-btn ml-3",3,"disabled-icon","click",4,"ngIf"],["class","custom-dropdown",4,"ngIf"],[1,"question-card-wrapper"],[1,"question-cardpre"],[1,"question-left"],[1,"question-top"],[1,"question-no"],[1,"question-bottom"],[1,"question-icon",3,"src","alt"],["t
1itle","q.text",1,"question-text"],[1,"question-actions"],[1,"btn-edit",3,"click"],[1,"fas","fa-edit"],[1,"btn-trash",3,"click"],[1,"fas","fa-trash"],[1,"add-btn","ml-3",3,"click"],[1,"custom-dropdown"],[1,"custom-dropdown-item",3,"click"],["src","../assets/icons/Audio text.png",1,"h-22"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/i-exam-multiple-choice-svgrepo-com (1) 1.png",1,"h-22"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/question-icons/123.svg",1,"h-22"],[1,"mt-4",2,"width","100%"],[1,"question-header","d-flex","mb-3"],[1,"question-badge","d-flex","align-items-center","justify-content-center"],[1,"icon-box","d-flex","align-items-center","justify-content-center"],["alt","icon",1,"question-icon",3,"src"],[1,"divider"],[1,"number-box","d-flex","align-items-center","justify-content-center"],["rows","3","placeholder","Enter your question here",1,"form-control","question-textarea","ml-2",2,"flex","1",3,"ngModelChange","ngModel"],["class","choices-section mt-3",4,"ngIf"],[1,"mt-3"],["class","btn btn-primary me-2",3,"disabled","click",4,"ngIf"],[1,"btn","btn-outline-primary",3,"click"],[1,"choices-section","mt-3"],[1,"d-flex","align-items-center","mb-2"],["src","../assets/icons/choicesicon.svg",1,"f-18"],[1,"ml-2","f-18",2,"color","#FF5630"],[1,"row"],[1,"col-md-6"],[1,"form-label"],["type","number","placeholder","1",1,"form-control",3,"ngModelChange","ngModel"],["type","number","placeholder","100",1,"form-control",3,"ngModelChange","ngModel"],["class","d-flex mb-2 align-items-center",4,"ngFor","ngForOf","ngForTrackBy"],[1,"btn","btn-outline-primary","btn-sm",3,"click"],[1,"mt-3","d-flex","align-items-center"],[1,"me-3"],[1,"switch","mt-3"],["type","checkbox",3,"change","checked"],[1,"slider","round"],[1,"d-flex","mb-2","align-items-center"],["type","text",1,"form-control","mt-2",3,"ngModelChange","keydown.enter","ngModel","placeholder"],["type","button","class","btn btn-light mt-2 ms-2",3,"click",4,"ngIf"],["type","button",1,"btn","btn-light","mt-2","ms-2",3,"click"],[1,"fas","fa-trash","text-danger"],[1,"row","d-flex"],[1,"btn","btn-primary","me-2",3,"click","disabled"],[2,"font-weight","500"],[1,"branching-que"],[1,"checkbox-group"],["class","checkbox-item",4,"ngFor","ngForOf"],[1,"checkbox-item"],["type","checkbox","disabled","",3,"change","id","checked"],[1,"mt-2",3,"value","for"],[1,"persona-screen",2,"padding","20px","width","800px","margin","0 auto"],[1,"deployment-container","mt-5"],[1,"deployment-options"],[1,"option"],["type","radio","id","generate","name","deployment","disabled",""],["for","generate"],[1,"title"],[1,"desc"],["type","radio","id","zoom","name","deployment","disabled",""],["for","zoom"],["type","radio","id","teams","name","deployment","disabled",""],["for","teams"],["type","radio","id","google","name","deployment","disabled",""],["for","google"],[1,"voice-settings-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[1,"slider-section"],[1,"slider-container"],[1,"speed"],[1,"slider-wrapper"],["type","range","min","0.5","max","2","step","0.1","disabled","",1,"speed-slider",3,"ngModelChange","input","ngModel"],[1,"slider-value"],[1,"tone-section"],["disabled","",1,"tone-select",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"test-voice"],["disabled","",1,"test-btn",3,"click"],[3,"value"],[1,"opening-message-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[2,"color","#1F2937","font-size","15px","font-weight","500"],[2,"font-size","14px","color","#4B5563","font-weight","400"],[1,"template-section"],[2,"margin-top","15px","font-size","14px","font-weight","500"],[1,"template-list"],[1,"template-option"],["type","radio","id","formal","name","template","disabled",""],["for","formal",1,"msg-title"],[2,"font-size","16px"],["type","radio","id","casual","name","template","disabled",""],["for","casual",1,"msg-title"],["type","radio","id","brief","name","template","disabled",""],["for","brief",1,"msg-title"],[1,"custom-message","mt-4"],["rows","4","placeholder","Write your custom message here","disabled","",3,"ngModelChange","ngModel"],[1,"tips-section","mt-4"],[1,"pronunciation-container","mt-4",2,"padding","20px","width","800px","margin","0 auto"],[2,"color","#1F2937","font-weight","500"],[1,"pronunciation-form"],[1,"input-set"],["type","text","placeholder","e.g., Company name","disabled","",3,"ngModelChange","ngModel"],["type","text","placeholder","e.g., kuhm-puh-nee","disabled","",3,"ngModelChange","ngModel"],["disabled","",1,"add-btn",3,"click"],["class","pronunciation-list",4,"ngIf","ngIfElse"],[1,"pronunciation-list"],["class","pronunciation-item",4,"ngFor","ngForOf"],[1,"pronunciation-item"],[1,"word"],[1,"guide"],[1,"delete-btn",3,"click"],[2,"color","#6B7280","font-size","14px","margin-top","10px"],[1,"DG-Deploy"],["type","radio","id","generate","name","deployment","checked",""],["type","radio","id","zoom","name","deployment"],["type","radio","id","teams","name","deployment"],["type","radio","id","google","name","deployment"],[1,"deployend-buttons","mt-4"],[1,"dep-end"],[3,"click"],[1,"success-container"],[1,"success-icon"],[1,"fas","fa-check",2,"font-weight","100"],[1,"link-box","mt-5"],[1,"link-text",3,"title"],[1,"copy-btn",3,"click"],[1,"far","fa-copy"],[1,"dashboard-btn","mt-4",3,"click"],[1,"deployment-container2"],["class","create-btn",3,"click",4,"ngIf"],["class","table-wrapper",4,"ngIf","ngIfElse"],[1,"footer-buttons","mt-4","mr-0"],[1,"create-btn",3,"click"],[1,"table-wrapper"],[1,"deployment-table"],[4,"ngFor","ngForOf"],[3,"ngClass"],["class","copy-link",3,"pointerEvents","click",4,"ngIf"],["class","deactivate-btn",3,"disabled","click",4,"ngIf"],["class","deactivate-btn",3,"click",4,"ngIf"],[1,"copy-link",3,"click"],[1,"deactivate-btn",3,"click","disabled"],[1,"deactivate-btn",3,"click"],[1,"mt-5",2,"text-align","center"],[2,"font-size","30px"],[1,"branching-modal-backdrop"],[1,"branching-modal"],[1,"branching-modal-content"],[1,"modal-header"],[1,"title-branch"],[1,"fas","fa-code-branch","btn-branch"],[1,"modal-body"],[1,"row","full"],[1,"input-select","full-width",3,"ngModelChange","change","ngModel"],["value","null","disabled","","selected","",1,"placeholder-option"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"section-label"],[1,"row",2,"gap","10px"],[1,"input-select",3,"ngModelChange","ngModel"],["class","input-select",3,"ngModel","ngModelChange",4,"ngIf"],["type","text","class","input-text","placeholder","Enter choice here",3,"ngModel","ngModelChange",4,"ngIf"],[1,"section-label","mt-20"],[1,"modal-footer"],[1,"btn","btn-outline-primary","mr-3",3,"click"],[1,"btn","btn-primary",3,"click"],[3,"ngValue"],["value","null","disabled","","selected",""],["type","text","placeholder","Enter choice here",1,"input-text",3,"ngModelChange","ngModel"]],template:function(y,g){1&y&&(e.j41(0,"div",3)(1,"div",4),e.nrm(2,"img",5),e.k0s(),e.j41(3,"div",6),e.EFF(4," Back to Dashboard "),e.k0s()(),e.DNE(5,Qu,2,1,"div",7)(6,go,3,2,"div",8)(7,Il,15,3,"div",8)(8,Ju,49,10,"div",8)(9,Kt,47,3,"div",8)(10,Vi,15,2,"div",8)(11,$d,12,3,"div",8)(12,ip,8,0,"section",9)(13,rp,1,0,"div",10)(14,kh,28,6,"div",11)),2&y&&(e.R7$(5),e.Y8G("ngIf",6!=g.step),e.R7$(),e.Y8G("ngIf",2===g.step&&!g.isLoading),e.R7$(),e.Y8G("ngIf",3===g.step&&!g.isLoading),e.R7$(),e.Y8G("ngIf",4===g.step&&!g.isLoading),e.R7$(),e.Y8G("ngIf",5===g.step&&!g.isLoading),e.R7$(),e.Y8G("ngIf",6===g.step&&!g.isLoading),e.R7$(),e.Y8G("ngIf",7===g.step&&!g.isLoading),e.R7$(),e.Y8G("ngIf",g.isLoading),e.R7$(),e.Y8G("ngIf",g.isBranchingModalOpen),e.R7$(),e.Y8G("ngIf",g.isBranchingModalOpen))},dependencies:[Ce.YU,Ce.Sq,Ce.bT,ee.Wk,w.qT,w.xH,w.y7,w.me,w.Q0,w.MR,w.wz,w.BC,w.cb,w.j4,w.vS,v.NN,Ce.vh],styles:['@charset "UTF-8";.header[_ngcontent-%COMP%]{padding:15px 40px;display:flex;justify-content:space-between;align-items:center}.backbtn[_ngcontent-%COMP%]{border:none;border-radius:25px;font-size:15px;cursor:pointer;width:auto;display:inline-block;font-weight:500;background-color:#2285f7;color:#fff;padding:10px 25px;transition:background-color .3s ease}.logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;width:auto}.progress-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;position:relative;max-width:1000px;margin:0 auto}.progress-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1;position:relative}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{width:32px;height:32px;background:#ccc;color:#fff;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:14px;font-weight:700;z-index:1}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{content:"";position:absolute;top:16px;left:-30%;width:60%;height:2px;background:#ccc;z-index:-1}.progress-step[_ngcontent-%COMP%]:first-child   .number[_ngcontent-%COMP%]:before{display:none}.progress-step.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#f79522}.progress-step.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#00c951}.progress-step.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{background:#00c951}.progress-step[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#333;margin-top:8px}.progress-step.completed[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#00c951}.progress-step.active[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#f79522}.progress-step.disabled[_ngcontent-%COMP%]{pointer-events:none}.progress-step.no-active-color[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#333!important}.progress-step.no-active-color.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%], .progress-step.no-active-color.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]{background:#ccc!important;color:#fff!important;box-shadow:none!important}.progress-step.no-active-color[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step.no-active-color.active[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step.no-active-color.completed[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before{background:#ccc!important}.step-content[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px;text-align:center}.step-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.step-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:11.9px;color:#4b5563;margin-bottom:20px;font-weight:400}.textarea-box[_ngcontent-%COMP%]{background:#f8f8f8;border:1px solid #ddd;border-radius:8px;padding:15px;margin-bottom:10px}.textarea-box[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;height:120px;border:none;outline:none;background:transparent;font-size:14px;color:#444;resize:none}.info-text[_ngcontent-%COMP%]{font-size:11px;color:#666;margin-bottom:20px;text-align:left}.generate-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:12px 20px;border-radius:25px;font-size:15px;cursor:pointer;width:100%;max-width:300px;margin:10px auto;display:block;font-weight:500}.generate-btn.disabled-btn[_ngcontent-%COMP%]{background:#d1d5db;pointer-events:none}.primary[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:14px 32px;border-radius:25px;font-size:16px;font-weight:500;margin-top:20px;cursor:pointer;width:100%;max-width:150px}.primary[_ngcontent-%COMP%]:hover{background:#e37110}.example-box[_ngcontent-%COMP%]{background:#fff7f0;border:1px solid #F79522;padding:15px 20px;margin:25px 0;font-size:15px;text-align:left;border-radius:6px}.example-box[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#f79522;font-size:14px}.text-card[_ngcontent-%COMP%]{border:1px solid #BEBEBE;padding:30px;border-radius:10px;background:#fff}.text-card[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{border:none;height:1px;background-color:#bebebe;margin:10px -30px}.continue-btn-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:20px}@media (max-width: 768px){.header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding:10px 20px}.progress-container[_ngcontent-%COMP%]{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start}.progress-step[_ngcontent-%COMP%]{margin:0 15px}.progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:before, .progress-step[_ngcontent-%COMP%]   .number[_ngcontent-%COMP%]:after{width:30px}.step-content[_ngcontent-%COMP%]{padding:15px;text-align:left}.generate-btn[_ngcontent-%COMP%], .primary[_ngcontent-%COMP%]{width:100%;max-width:none}}.review-container[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]{text-align:center}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.review-container[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13.6px;color:#4b5563;margin-bottom:20px;font-weight:400}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{background:#fff4e5;border:1px solid #f3c38a;padding:15px;border-radius:8px;margin:20px 0}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#d97706;font-weight:500;font-size:11.9px;margin-bottom:5px}.review-container[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#374151;font-weight:400;font-size:14px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]{background:#fff;border-radius:10px;box-shadow:0 2px 6px #00000014;padding:10px;margin-bottom:15px;
1display:flex;flex-direction:column}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#1f2937}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]{display:flex}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:#666;font-size:12px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]:hover{color:#111827}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{pointer-events:none;height:24px;width:24px}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-desc[_ngcontent-%COMP%]{margin-top:8px;font-size:14px;color:#4b5563}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:15px;margin-top:20px}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .add-btn[_ngcontent-%COMP%], .review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .regen-btn[_ngcontent-%COMP%]{background:#f9f9f9;border:1px solid #ddd;padding:10px 15px;border-radius:25px;cursor:pointer;color:#374151;font-size:.95rem}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .regen-btn[_ngcontent-%COMP%]{background:#fff8f0;border:1px solid rgba(247,149,34,.2509803922);color:#f79522;display:flex;align-items:center}.footer-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:-100px;gap:15px}.footer-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.footer-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}.end-buttons[_ngcontent-%COMP%]{padding:20px;width:800px;margin:0 auto;display:flex;justify-content:space-between;gap:15px}.end-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.end-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}@media (max-width: 768px){.review-container[_ngcontent-%COMP%]{padding:10px}.review-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.5rem}.review-container[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}.review-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{flex-direction:column;gap:10px}.review-container[_ngcontent-%COMP%]   .footer-buttons[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;margin-bottom:30px}}.edit-input[_ngcontent-%COMP%]{width:180%;font-size:16px;padding:5px 0;border:none;border-bottom:1px dashed #F79522;outline:none;background:transparent}.edit-input[_ngcontent-%COMP%]:focus{border-bottom:1px dashed #F79522}.editable-text[_ngcontent-%COMP%]{margin:0;word-break:break-word;flex:1}.disabled-btn[_ngcontent-%COMP%]{pointer-events:none;opacity:.6}.url-box[_ngcontent-%COMP%]{background:#f9f9f9;border:1px solid #ddd;padding:10px 15px;border-radius:10px;cursor:pointer;font-size:.95rem}.inline-url-box[_ngcontent-%COMP%]{margin-top:15px;padding:15px;border-radius:6px;background:#f8f8f8;display:flex;flex-direction:column;gap:10px}.inline-url-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:10px;border:1px solid #ccc;border-radius:5px}.btn-group[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:10px;width:100%}.btn-add[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;padding:8px 16px;border-radius:5px}.btn-cancel[_ngcontent-%COMP%]{background:#f1f1f1;border:1px solid #ddd;border:none;padding:8px 16px;border-radius:5px}.url-preview-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border:1px solid #e0e0e0;padding:10px 14px;border-radius:12px;margin-top:12px;background-color:#fff}.left-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.icon-box[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px}.url-info[_ngcontent-%COMP%]{overflow:hidden}.url-text[_ngcontent-%COMP%]{font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.remove-url-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:18px;cursor:pointer;padding:6px;border-radius:6px}.textarea-box.prompt[_ngcontent-%COMP%]{background-color:#fff}.DG-container[_ngcontent-%COMP%]{max-width:800px;margin:40px auto;padding:20px}.DGCard[_ngcontent-%COMP%]{border:1px solid #ddd;padding:20px;border-radius:20px}.DG-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25.5px;font-weight:700;margin-bottom:10px;color:#1f2937}.DG-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:11.9px;color:#4b5563;margin-bottom:20px;font-weight:400}.lang-container[_ngcontent-%COMP%]{width:100%;max-width:100%;padding:20px}.select-item[_ngcontent-%COMP%]{border:1px solid #ddd;width:100%;border-radius:30px;padding:5px;box-shadow:0 1px 2px #0000000d;display:flex;justify-content:center}.all-btn[_ngcontent-%COMP%]{display:flex;gap:10px}.select-lang[_ngcontent-%COMP%]{width:800px;margin:0 auto;background:#fff;border-radius:10px;padding:20px;box-shadow:0 2px 10px #0000000d;box-sizing:border-box}.select-lang[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px}.select-lang[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:#4b5563}.checkbox-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:15px;width:100%}.checkbox-item[_ngcontent-%COMP%]{flex:0 0 calc(50% - 15px);
1display:flex;gap:8px;padding:6px 14px;border:1px solid #ccc;border-radius:8px;background:#fff;cursor:pointer}.all-btn[_ngcontent-%COMP%]{display:flex;gap:15px;flex-wrap:wrap;justify-content:center;margin-bottom:-6px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{display:none}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:10px 20px;background:#f8f8f8;color:#1f2937;border-radius:30px;font-size:14px;cursor:pointer;transition:all .3s ease}.all-btn[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:16px}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#2285f7;color:#fff}.all-btn[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.deployment-container2[_ngcontent-%COMP%]{max-width:70%;margin:40px auto;padding:20px}.title[_ngcontent-%COMP%]{font-size:28px;font-weight:700;margin-bottom:20px}.create-btn[_ngcontent-%COMP%]{background-color:#f79522;color:#fff;border:none;padding:10px 20px;border-radius:20px;font-size:14px;font-weight:600;float:right;margin-bottom:20px;cursor:pointer}.table-wrapper[_ngcontent-%COMP%]{clear:both;margin-top:10px;border-radius:10px;overflow:hidden;border:1px solid #f0f0f0}.deployment-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.deployment-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#e5e7eb}.deployment-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .deployment-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{text-align:left;padding:12px 11px;border-bottom:1px solid #eee}.deployment-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#fafafa;font-size:13px;font-weight:500;color:#6b7280}.deployment-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#1f2937}.copy-link[_ngcontent-%COMP%]{color:#007bff;text-decoration:none;font-weight:500}.copy-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.deactivate-btn[_ngcontent-%COMP%]{background:transparent;color:#f79522;border:1px solid #f79522;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:500;cursor:pointer}.deactivate-btn[_ngcontent-%COMP%]:hover{background-color:#f79522;color:#fff}.disabled-icon[_ngcontent-%COMP%]{opacity:.5;pointer-events:none;cursor:not-allowed}.success-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:30px;max-width:700px;margin:40px auto;text-align:center;font-family:Arial,sans-serif;background:#fff}.success-icon[_ngcontent-%COMP%]{width:50px;height:50px;background:#fff8f0;color:#f79522;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:20px;margin:0 auto 20px}.success-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:20px;color:#1f2937;margin-bottom:10px;font-weight:700}.success-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#555;font-size:14px;margin-bottom:20px}.link-box[_ngcontent-%COMP%]{background:#fff8f0;color:#f79522;padding:12px 15px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;font-size:14px;margin:25px auto;width:75%;max-width:400px}.link-text[_ngcontent-%COMP%]{display:inline-block;max-width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.copy-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:18px;color:#f79522;cursor:pointer}.dashboard-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;border:none;border-radius:30px;padding:12px 30px;font-size:16px;font-weight:600;cursor:pointer}.dashboard-btn[_ngcontent-%COMP%]:hover{background:#e6841b}.DG-Deploy[_ngcontent-%COMP%]{max-width:700px;margin:40px auto;padding:20px}.deployment-container[_ngcontent-%COMP%]{border:1px solid #ccc;border-radius:10px;padding:20px;font-family:Arial,sans-serif}.deployment-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin-bottom:15px;color:#1f2937}.deployment-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.option[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:12px;display:flex;align-items:flex-start;transition:border-color .3s ease,background .3s ease}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{margin-right:12px;margin-top:14px}.option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;flex-direction:column;
1cursor:pointer;width:100%}.option[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:500;font-size:13px;color:#000}.option[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#1f2937}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{color:#000}.option[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked ~ .option[_ngcontent-%COMP%]{border-color:#1f2937;background:#f9f9f9}.pronunciation-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.pronunciation-form[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:16px;margin-top:16px}.input-set[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.input-set[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:14px;color:#374151;margin-bottom:6px;font-weight:400}.input-set[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px}.add-btn[_ngcontent-%COMP%]{background-color:#e5e7eb;color:#fff;border:none;border-radius:6px;padding:10px 16px;font-size:14px;cursor:pointer;transition:background .3s ease}.pronunciation-list[_ngcontent-%COMP%]{margin-top:20px}.pronunciation-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:#f9fafb;padding:10px;border-radius:6px;margin-bottom:10px;font-size:14px}.word[_ngcontent-%COMP%]{font-weight:500;color:#111827}.guide[_ngcontent-%COMP%]{color:#4b5563;margin-left:12px}.delete-btn[_ngcontent-%COMP%]{background:none;border:none;color:#dc2626;font-size:16px;cursor:pointer}.voice-settings-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.slider-section[_ngcontent-%COMP%]{margin-top:16px}.slider-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:14px;color:#374151;font-weight:500;margin-bottom:8px}.slider-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.slider-wrapper[_ngcontent-%COMP%]{position:relative;flex:1}.speed-slider[_ngcontent-%COMP%]{width:100%;accent-color:#2285F7}.speed[_ngcontent-%COMP%]{color:#6b7280;font-size:14px;font-weight:400}.option[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:not(#generate), .option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:not([for=generate]){pointer-events:none;opacity:.5}.slider-value[_ngcontent-%COMP%]{position:absolute;top:25px;margin-left:50%;transform:translate(-50%);font-size:13px;color:#4b5563;white-space:nowrap}.tone-section[_ngcontent-%COMP%]{margin-top:20px}.tone-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:14px;color:#374151;font-weight:500;margin-bottom:8px}.tone-select[_ngcontent-%COMP%]{width:100%;padding:8px 12px;border-radius:6px;border:1px solid #D1D5DB;font-size:14px;color:#111827}.test-voice[_ngcontent-%COMP%]{margin-top:24px}.test-btn[_ngcontent-%COMP%]{background-color:#2285f7;color:#fff;border:none;border-radius:6px;padding:10px 16px;font-size:14px;cursor:pointer;display:flex;align-items:center;gap:6px}.test-voice[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;color:#4b5563;margin-top:8px}.opening-message-container[_ngcontent-%COMP%]{padding:20px;border-radius:8px;border:1px solid #ddd}.template-list[_ngcontent-%COMP%]{margin-top:10px}.template-option[_ngcontent-%COMP%]{border:1px solid #ddd;padding:12px;border-radius:6px;margin-bottom:10px;cursor:pointer}.template-option.active[_ngcontent-%COMP%]{border:2px solid #2285F7;background-color:#f0f7ff}.template-option[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-right:8px}.custom-message[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;border:1px solid #ccc;padding:10px;border-radius:6px;font-size:16px}.custom-message[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.tips-section[_ngcontent-%COMP%]{background-color:#f9fafb;border:1px solid #E5E7EB;border-radius:6px;padding:10px}.tips-section[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{font-size:13px;color:#4b5563;padding-left:18px}.tips-section[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:4px}.tips-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#374151}.msg-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.template-option[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#4b5563}.text-center[_ngcontent-%COMP%]{text-align:center}.title[_ngcontent-%COMP%]{font-weight:600;font-size:22px;margin-bottom:4px}.subtitle[_ngcontent-%COMP%]{color:#4b5563;font-size:13px}.section[_ngcontent-%COMP%]{background:#fff;border:1px solid #E5E7EB;border-radius:8px;margin-bottom:10px;box-shadow:0 1px 2px #0000000d}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;cursor:pointer;font-weight:500;background-color:#f9fafb}.section-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}.section-subtext[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;margin-top:2px}.toggle-icon[_ngcontent-%COMP%]{font-size:12px;color:#2285f7;font-weight:400}.section-body[_ngcontent-%COMP%]{padding:20px 16px 12px}.question-card[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-radius:6px;padding:6px 10px;margin-top:8px;border:1px solid #E5E7EB}.question-card[_ngcontent-%COMP%]   .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;min-width:0}.question-number[_ngcontent-%COMP%]{font-weight:500;margin-right:8px;flex-shrink:0}.question-text[_ngcontent-%COMP%]{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.question-type[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;border:1px solid #E5E7EB;padding:2px 6px;border-radius:4px;background-color:#f3f4f6;flex-shrink:0;margin-left:10px}.add-btn[_ngcontent-%COMP%]{margin-top:8px;background:none;border:1px solid #D1D5DB;color:#374151;cursor:pointer}.type-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;right:0;background:#f3f4f6;border-radius:6px;z-index:1000;min-width:100px;font-size:12px;color:#4b5563}.type-dropdown[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:6px;cursor:pointer;transition:background .2s ease}.type-dropdown[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:hover{background:#f5f5f5}.preview-img[_ngcontent-%COMP%]{max-width:150px;height:150px;margin-top:10px}.custom-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.custom-modal[_ngcontent-%COMP%]{background:#fff;padding:20px;border-radius:8px;text-align:center;min-width:300px}.modal-buttons[_ngcontent-%COMP%]{margin-top:20px;
1display:flex;justify-content:center}.loading-spinner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:15px;color:#555}.loading-spinner[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#007bff;font-size:18px}.discussion-guide-container[_ngcontent-%COMP%]{padding:20px}.discussion-guide-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .discussion-guide-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-top:20px;font-weight:600}.discussion-guide-container[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding-left:20px}.discussion-guide-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:10px;line-height:1.5}.custom-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;margin-top:8px;background-color:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 2px 8px #0000001a;width:220px;z-index:10;display:flex;flex-direction:column}.custom-dropdown-item[_ngcontent-%COMP%]{padding:10px 14px;text-align:left;border:none;background:transparent;cursor:pointer;font-size:14px}.custom-dropdown-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.f-18[_ngcontent-%COMP%]{font-size:18px}.question-section[_ngcontent-%COMP%]{margin-top:10px}.question-card-wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:10px}.question-cardpre[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;box-shadow:0 0 6px #0000001a;padding:0 6px 0 0;transition:all .3s ease}.question-left[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(180deg,#ff7043,#ff5630);color:#fff;width:70px;text-align:center}.question-top[_ngcontent-%COMP%]{font-weight:600;font-size:16px;padding:10px 0}.question-bottom[_ngcontent-%COMP%]{padding:10px 0;border-top:1px solid rgba(255,255,255,.4)}.question-no[_ngcontent-%COMP%]{font-size:12px}.question-icon[_ngcontent-%COMP%]{height:22px;width:22px}.question-text[_ngcontent-%COMP%]{flex-grow:1;margin-left:15px;font-size:16px;font-weight:500;color:#333}.question-actions[_ngcontent-%COMP%]{opacity:0;transition:opacity .3s ease}.continue-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.question-cardpre[_ngcontent-%COMP%]:hover   .question-actions[_ngcontent-%COMP%]{opacity:1}.question-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:5px;font-size:13px}.h-22[_ngcontent-%COMP%]{height:18px;width:18px;background-color:#ff4500;border-radius:3px;padding:2px}.question-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:#ff5722;border-radius:6px;overflow:hidden;width:auto;height:45px}.icon-box[_ngcontent-%COMP%], .number-box[_ngcontent-%COMP%]{color:#fff;font-weight:500;font-size:14px;padding:0 12px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{width:2px;background-color:#fff;height:100%}.branching-container[_ngcontent-%COMP%]{display:flex;gap:30px;margin-top:20px}.title[_ngcontent-%COMP%]{font-weight:600;font-size:14px}.criteria-box[_ngcontent-%COMP%]{margin-top:15px;display:flex;gap:15px}.criteria-select[_ngcontent-%COMP%]{height:auto;border-radius:8px;border:1.5px solid #f0a84c;padding:8px}.choice-input[_ngcontent-%COMP%]{min-height:70px;border-radius:8px;border:1px solid #cfcfcf;padding:10px;resize:none}.branching-container[_ngcontent-%COMP%]{display:flex;gap:30px;align-items:stretch}.dividerbranching[_ngcontent-%COMP%]{width:1px;background:#000;height:100%}.result-box[_ngcontent-%COMP%]{margin-top:15px;display:flex;align-items:center;gap:15px}.goto-box[_ngcontent-%COMP%]{background:#eef2f7;padding:10px 20px;border-radius:6px;font-weight:600}.question-select[_ngcontent-%COMP%]{height:40px;border-radius:8px;border:1px solid #d0d0d0;padding:8px}.footer[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:flex-end;gap:15px}.left-Branching[_ngcontent-%COMP%], .right-section[_ngcontent-%COMP%]{flex:1}.btn-trash[_ngcontent-%COMP%]{border:none;background-color:#fff;color:red}.btn-edit[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#2285f7}.btn-branch[_ngcontent-%COMP%]{border:none;background-color:#fff;color:#555}.branching-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000059;z-index:999}.branching-modal[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1000}.branching-modal-content[_ngcontent-%COMP%]{width:420px;background:#fff;border-radius:10px;padding:15px 25px 25px;box-shadow:0 8px 30px #0000001a}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-bottom:5px}.title-branch[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.row.full[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:20px}.full-width[_ngcontent-%COMP%]{width:100%!important}.section-label[_ngcontent-%COMP%]{font-size:15px;color:#444;margin-bottom:8px;display:block}.row[_ngcontent-%COMP%]{display:flex;margin-bottom:20px}.input-select[_ngcontent-%COMP%], .input-text[_ngcontent-%COMP%]{height:38px;border:1px solid #ddd;border-radius:6px;padding:0 12px;font-size:14px;width:46%}.input-select.small[_ngcontent-%COMP%]{width:100px}
1.input-select.large[_ngcontent-%COMP%]{flex:1}.placeholder-option[_ngcontent-%COMP%]{color:#999!important}.branching-que[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:10px;box-shadow:0 0 6px #0000001a;padding:20px;transition:all .3s ease}.branching-que[_ngcontent-%COMP%]:hover   .question-actions[_ngcontent-%COMP%]{opacity:1}.deployend-buttons[_ngcontent-%COMP%]{padding:20px;width:650px;margin:0 auto;display:flex;justify-content:space-between;gap:15px}.deployend-buttons[_ngcontent-%COMP%]   .prev-btn[_ngcontent-%COMP%]{background:none;padding:10px 18px;border-radius:30px;border:1px solid #D1D5DB;cursor:pointer}.deployend-buttons[_ngcontent-%COMP%]   .continue-btn[_ngcontent-%COMP%]{background:#f79522;color:#fff;padding:10px 18px;border-radius:30px;border:none;cursor:pointer}.dep-end[_ngcontent-%COMP%]{display:flex;gap:15px}.dep-end[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#007bff;margin-top:16px;font-size:12px}']})}return b})(),canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]}},{path:"discussion-update",component:rn.M,canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]}},{path:"discussion-Create",component:Nd,canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]}},{path:"analysis/:surveyId",canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]},component:Ln.J},{path:"accounts",loadChildren:()=>R.e(213).then(R.bind(R,5213)).then(b=>b.AccountsModule)},{path:"dashboard",canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]},loadChildren:()=>Promise.all([R.e(510),R.e(922),R.e(76),R.e(216)]).then(R.bind(R,2216)).then(b=>b.DashboardModule)},{path:"survey",canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]},loadChildren:()=>Promise.all([R.e(510),R.e(922),R.e(656),R.e(796),R.e(603)]).then(R.bind(R,8603)).then(b=>b.SurveyModule)},{path:"generate-survey",component:Ht},{path:"ai-generated-survey/:surveyId/:token",component:Un},{path:"preview-dynamic-url-check",component:dr},{path:"plans/pricing-plans",component:Z},{path:"plans/pricing-plan/billing-details/:id",component:Ti},{path:"panel-contributor",canActivate:[l.q_],data:{roles:[W.X.PanelTeam]},loadChildren:()=>Promise.all([R.e(510),R.e(922),R.e(656),R.e(902),R.e(391)]).then(R.bind(R,391)).then(b=>b.PanelContributorModule)},{path:"product-contributor",canActivate:[l.q_],data:{roles:[W.X.ProductTeam]},loadChildren:()=>Promise.all([R.e(510),R.e(922),R.e(656),R.e(796),R.e(247)]).then(R.bind(R,6247)).then(b=>b.ProductContributorModule)},{path:"interview",canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]},loadChildren:()=>Promise.all([R.e(510),R.e(922),R.e(656),R.e(796),R.e(603),R.e(591)]).then(R.bind(R,2591)).then(b=>b.InterviewModule)},{path:"ai-interview",canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]},loadChildren:()=>Promise.all([R.e(510),R.e(796),R.e(324)]).then(R.bind(R,9324)).then(b=>b.AiInterviewModule)},{path:"ai-interview-analysis",canActivate:[l.q_],data:{roles:[W.X.Customer,W.X.Creator,W.X.Viewer]},loadChildren:()=>R.e(713).then(R.bind(R,4713)).then(b=>b.AiInterviewAnalysisModule)},{path:":id",component:Bn},{path:"push/demo",component:Ho},{path:"media/:id/:uid/:surveyId",component:vr},{path:"**",redirectTo:"/",pathMatch:"full"}];let Th=(()=>{class b{static#e=this.\u0275fac=function(y){return new(y||b)};static#t=this.\u0275mod=e.$C({type:b});static#n=this.\u0275inj=e.G2t({imports:[ee.iI.forRoot(Ih,{onSameUrlNavigation:"ignore"}),ee.iI]})}return b})();var Qd=R(6222);let Wd=(()=>{class b{constructor(s){this.authenticationService=s,this.title="",this.token="ast_OJvH2tQY04XjzSy34All1f"}ngOnInit(){this.onNewSession()}onNewSession(){this.authenticationService.onNewSession({}).subscribe(s=>{this.token=s?.msg?.token,console.log(this.token)},s=>{console.error(s)})}onFinish(s){console.log(s.detail.integrationDetails)}onDeactivate(s){console.log(s.detail.integrationDetails)}onKnitClose(s){console.log(s.detail.knitClosed)}static#e=this.\u0275fac=function(y){return new(y||b)(e.rXU(Qd.k))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["app-root"]],decls:1,vars:0,template:function(y,g){1&y&&e.nrm(0,"router-outlet")},dependencies:[ee.n3]})}return b})();var jn=R(9969);function ap(b){return new e.wOt(3e3,!1)}function Qs(b){switch(b.length){case 0:return new jn.sf;case 1:return b[0];default:return new jn.ui(b)}}function ol(b,x,s=new Map,y=new Map){const g=[],I=[];let Le=-1,et=null;
1if(x.forEach(wt=>{const Wt=wt.get("offset"),wn=Wt==Le,Dn=wn&&et||new Map;wt.forEach((ji,pi)=>{let Gn=pi,ii=ji;if("offset"!==pi)switch(Gn=b.normalizePropertyName(Gn,g),ii){case jn.FX:ii=s.get(pi);break;case jn.kp:ii=y.get(pi);break;default:ii=b.normalizeStyleValue(pi,Gn,ii,g)}Dn.set(Gn,ii)}),wn||I.push(Dn),et=Dn,Le=Wt}),g.length)throw function Zd(b){return new e.wOt(3502,!1)}();return I}function Zc(b,x,s,y){switch(x){case"start":b.onStart(()=>y(s&&sl(s,"start",b)));break;case"done":b.onDone(()=>y(s&&sl(s,"done",b)));break;case"destroy":b.onDestroy(()=>y(s&&sl(s,"destroy",b)))}}function sl(b,x,s){const I=mc(b.element,b.triggerName,b.fromState,b.toState,x||b.phaseName,s.totalTime??b.totalTime,!!s.disabled),Le=b._data;return null!=Le&&(I._data=Le),I}function mc(b,x,s,y,g="",I=0,Le){return{element:b,triggerName:x,fromState:s,toState:y,phaseName:g,totalTime:I,disabled:!!Le}}function Io(b,x,s){let y=b.get(x);return y||b.set(x,y=s),y}function Sh(b){const x=b.indexOf(":");return[b.substring(1,x),b.slice(x+1)]}const fp=typeof document>"u"?null:document.documentElement;function ed(b){const x=b.parentNode||b.host||null;return x===fp?null:x}let To=null,mp=!1;function td(b,x){for(;x;){if(x===b)return!0;x=ed(x)}return!1}function nu(b,x,s){if(s)return Array.from(b.querySelectorAll(x));const y=b.querySelector(x);return y?[y]:[]}let _c=(()=>{class b{validateStyleProperty(s){return function Ol(b){To||(To=function Ph(){return typeof document<"u"?document.body:null}()||{},mp=!!To.style&&"WebkitAppearance"in To.style);let x=!0;return To.style&&!function gp(b){return"ebkit"==b.substring(1,6)}(b)&&(x=b in To.style,!x&&mp&&(x="Webkit"+b.charAt(0).toUpperCase()+b.slice(1)in To.style)),x}(s)}matchesElement(s,y){return!1}containsElement(s,y){return td(s,y)}getParentElement(s){return ed(s)}query(s,y,g){return nu(s,y,g)}computeStyle(s,y,g){return g||""}animate(s,y,g,I,Le,et=[],wt){return new jn.sf(g,I)}static#e=this.\u0275fac=function(y){return new(y||b)};static#t=this.\u0275prov=e.jDH({token:b,factory:b.\u0275fac})}return b})();class vc{static#e=this.NOOP=new _c}class yc{}const yp=1e3,Ar="ng-enter",bc="ng-leave",xc="ng-trigger",ua=".ng-trigger",wa="ng-animating",zr=".ng-animating";function Ws(b){if("number"==typeof b)return b;const x=b.match(/^(-?[\.\d]+)(m?s)/);return!x||x.length<2?0:Rl(parseFloat(x[1]),x[2])}function Rl(b,x){return"s"===x?b*yp:b}function Cc(b,x,s){return b.hasOwnProperty("duration")?b:function Oh(b,x,s){let g,I=0,Le="";if("string"==typeof b){const et=b.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===et)return x.push(ap()),{duration:0,delay:0,easing:""};g=Rl(parseFloat(et[1]),et[2]);const wt=et[3];null!=wt&&(I=Rl(parseFloat(wt),et[4]));const Wt=et[5];Wt&&(Le=Wt)}else g=b;if(!s){let et=!1,wt=x.length;g<0&&(x.push(function Hd(){return new e.wOt(3100,!1)}()),et=!0),I<0&&(x.push(function Xd(){return new e.wOt(3101,!1)}()),et=!0),et&&x.splice(wt,0,ap())}return{duration:g,delay:I,easing:Le}}(b,x,s)}function Ds(b,x,s){x.forEach((y,g)=>{const I=ru(g);s&&!s.has(g)&&s.set(g,b.style[I]),b.style[I]=y})}function Da(b,x){x.forEach((s,y)=>{const g=ru(y);b.style[g]=""})}function al(b){return Array.isArray(b)?1==b.length?b[0]:(0,jn.K2)(b):b}const iu=new RegExp("{{\\s*(.+?)\\s*}}","g");function Rh(b){let x=[];if("string"==typeof b){let s;for(;s=iu.exec(b);)x.push(s[1]);iu.lastIndex=0}return x}function nd(b,x,s){const y=`${b}`,g=y.replace(iu,(I,Le)=>{let et=x[Le];return null==et&&(s.push(function Kd(b){return new e.wOt(3003,!1)}()),et=""),et.toString()});return g==y?b:g}const og=/-+([a-z0-9])/g;function ru(b){return b.replace(og,(...x)=>x[1].toUpperCase())}function rs(b,x,s){switch(x.type){case jn.If.Trigger:return b.visitTrigger(x,s);case jn.If.State:return b.visitState(x,s);case jn.If.Transition:return b.visitTransition(x,s);case jn.If.Sequence:return b.visitSequence(x,s);case jn.If.Group:return b.visitGroup(x,s);case jn.If.Animate:return b.visitAnimate(x,s);case jn.If.Keyframes:return b.visitKeyframes(x,s);case jn.If.Style:return b.visitStyle(x,s);case jn.If.Reference:return b.visitReference(x,s);case jn.If.AnimateChild:return b.visitAnimateChild(x,s);case jn.If.AnimateRef:return b.visitAnimateRef(x,s);case jn.If.Query:return b.visitQuery(x,s);case jn.If.Stagger:return b.visitStagger(x,s);default:throw function lp(b){return new e.wOt(3004,!1)}()}}function bp(b,x){return window.getComputedStyle(b)[x]}const xp=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ou extends yc{normalizePropertyName(x,s){return ru(x)}normalizeStyleValue(x,s,y,g){let I="";const Le=y.toString().trim();if(xp.has(s)&&0!==y&&"0"!==y)if("number"==typeof y)I="px";else{const et=y.match(/^[+-]?[\d\.]+([a-z]*)$/);et&&0==et[1].length&&g.push(function fc(b,x){return new e.wOt(3005,!1)}())}return Le+I}}const Mc="*";const Ea=new Set(["true","1"]),id=new Set(["false","0"]);function wp(b,x){const s=Ea.has(b)||id.has(b),y=Ea.has(x)||id.has(x);return(g,I)=>{let Le=b==Mc||b==g,et=x==Mc||x==I;return!Le&&s&&"boolean"==typeof g&&(Le=g?Ea.has(b):id.has(b)),!et&&y&&"boolean"==typeof I&&(et=I?Ea.has(x):id.has(x)),Le&&et}}const Lm=new RegExp("s*:selfs*,?","g");function Vh(b,x,s,y){return new Ms(b).build(x,s,y)}
1class Ms{constructor(x){this._driver=x}build(x,s,y){const g=new Dp(s);return this._resetContextStyleTimingState(g),rs(this,al(x),g)}_resetContextStyleTimingState(x){x.currentQuerySelector="",x.collectedStyles=new Map,x.collectedStyles.set("",new Map),x.currentTime=0}visitTrigger(x,s){let y=s.queryCount=0,g=s.depCount=0;const I=[],Le=[];return"@"==x.name.charAt(0)&&s.errors.push(function Yd(){return new e.wOt(3006,!1)}()),x.definitions.forEach(et=>{if(this._resetContextStyleTimingState(s),et.type==jn.If.State){const wt=et,Wt=wt.name;Wt.toString().split(/\s*,\s*/).forEach(wn=>{wt.name=wn,I.push(this.visitState(wt,s))}),wt.name=Wt}else if(et.type==jn.If.Transition){const wt=this.visitTransition(et,s);y+=wt.queryCount,g+=wt.depCount,Le.push(wt)}else s.errors.push(function Sl(){return new e.wOt(3007,!1)}())}),{type:jn.If.Trigger,name:x.name,states:I,transitions:Le,queryCount:y,depCount:g,options:null}}visitState(x,s){const y=this.visitStyle(x.styles,s),g=x.options&&x.options.params||null;if(y.containsDynamicStyles){const I=new Set,Le=g||{};y.styles.forEach(et=>{et instanceof Map&&et.forEach(wt=>{Rh(wt).forEach(Wt=>{Le.hasOwnProperty(Wt)||I.add(Wt)})})}),I.size&&s.errors.push(function Eo(b,x){return new e.wOt(3008,!1)}(0,I.values()))}return{type:jn.If.State,name:x.name,style:y,options:g?{params:g}:null}}visitTransition(x,s){s.queryCount=0,s.depCount=0;const y=rs(this,al(x.animation),s),g=function Fl(b,x){const s=[];return"string"==typeof b?b.split(/\s*,\s*/).forEach(y=>function Lh(b,x,s){if(":"==b[0]){const wt=function jh(b,x){switch(b){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(s,y)=>parseFloat(y)>parseFloat(s);case":decrement":return(s,y)=>parseFloat(y)<parseFloat(s);default:return x.push(function nl(b){return new e.wOt(3016,!1)}()),"* => *"}}(b,s);if("function"==typeof wt)return void x.push(wt);b=wt}const y=b.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==y||y.length<4)return s.push(function jo(b){return new e.wOt(3015,!1)}()),x;const g=y[1],I=y[2],Le=y[3];x.push(wp(g,Le)),"<"==I[0]&&(g!=Mc||Le!=Mc)&&x.push(wp(Le,g))}(y,s,x)):s.push(b),s}(x.expr,s.errors);return{type:jn.If.Transition,matchers:g,animation:y,queryCount:s.queryCount,depCount:s.depCount,options:pa(x.options)}}visitSequence(x,s){return{type:jn.If.Sequence,steps:x.steps.map(y=>rs(this,y,s)),options:pa(x.options)}}visitGroup(x,s){const y=s.currentTime;let g=0;const I=x.steps.map(Le=>{s.currentTime=y;const et=rs(this,Le,s);return g=Math.max(g,s.currentTime),et});return s.currentTime=g,{type:jn.If.Group,steps:I,options:pa(x.options)}}visitAnimate(x,s){const y=function Hs(b,x){if(b.hasOwnProperty("duration"))return b;if("number"==typeof b)return kc(Cc(b,x).duration,0,"");const s=b;if(s.split(/\s+/).some(I=>"{"==I.charAt(0)&&"{"==I.charAt(1))){const I=kc(0,0,"");return I.dynamic=!0,I.strValue=s,I}const g=Cc(s,x);return kc(g.duration,g.delay,g.easing)}(x.timings,s.errors);s.currentAnimateTimings=y;let g,I=x.styles?x.styles:(0,jn.iF)({});if(I.type==jn.If.Keyframes)g=this.visitKeyframes(I,s);else{let Le=x.styles,et=!1;
1if(!Le){et=!0;const Wt={};y.easing&&(Wt.easing=y.easing),Le=(0,jn.iF)(Wt)}s.currentTime+=y.duration+y.delay;const wt=this.visitStyle(Le,s);wt.isEmptyStep=et,g=wt}return s.currentAnimateTimings=null,{type:jn.If.Animate,timings:y,style:g,options:null}}visitStyle(x,s){const y=this._makeStyleAst(x,s);return this._validateStyleAst(y,s),y}_makeStyleAst(x,s){const y=[],g=Array.isArray(x.styles)?x.styles:[x.styles];for(let et of g)"string"==typeof et?et===jn.kp?y.push(et):s.errors.push(new e.wOt(3002,!1)):y.push(new Map(Object.entries(et)));let I=!1,Le=null;return y.forEach(et=>{if(et instanceof Map&&(et.has("easing")&&(Le=et.get("easing"),et.delete("easing")),!I))for(let wt of et.values())if(wt.toString().indexOf("{{")>=0){I=!0;break}}),{type:jn.If.Style,styles:y,easing:Le,offset:x.offset,containsDynamicStyles:I,options:null}}_validateStyleAst(x,s){const y=s.currentAnimateTimings;let g=s.currentTime,I=s.currentTime;y&&I>0&&(I-=y.duration+y.delay),x.styles.forEach(Le=>{"string"!=typeof Le&&Le.forEach((et,wt)=>{const Wt=s.collectedStyles.get(s.currentQuerySelector),wn=Wt.get(wt);let Dn=!0;wn&&(I!=g&&I>=wn.startTime&&g<=wn.endTime&&(s.errors.push(function cp(b,x,s,y,g){return new e.wOt(3010,!1)}()),Dn=!1),I=wn.startTime),Dn&&Wt.set(wt,{startTime:I,endTime:g}),s.options&&function Dc(b,x,s){const y=x.params||{},g=Rh(b);g.length&&g.forEach(I=>{y.hasOwnProperty(I)||s.push(function qd(b){return new e.wOt(3001,!1)}())})}(et,s.options,s.errors)})})}visitKeyframes(x,s){const y={type:jn.If.Keyframes,styles:[],options:null};if(!s.currentAnimateTimings)return s.errors.push(function dp(){return new e.wOt(3011,!1)}()),y;let I=0;const Le=[];let et=!1,wt=!1,Wt=0;const wn=x.steps.map(Hr=>{const to=this._makeStyleAst(Hr,s);let co=null!=to.offset?to.offset:function au(b){if("string"==typeof b)return null;let x=null;if(Array.isArray(b))b.forEach(s=>{if(s instanceof Map&&s.has("offset")){const y=s;x=parseFloat(y.get("offset")),y.delete("offset")}});else if(b instanceof Map&&b.has("offset")){const s=b;x=parseFloat(s.get("offset")),s.delete("offset")}return x}(to.styles),no=0;return null!=co&&(I++,no=to.offset=co),wt=wt||no<0||no>1,et=et||no<Wt,Wt=no,Le.push(no),to});wt&&s.errors.push(function Pl(){return new e.wOt(3012,!1)}()),et&&s.errors.push(function Jd(){return new e.wOt(3200,!1)}());const Dn=x.steps.length;let ji=0;I>0&&I<Dn?s.errors.push(function da(){return new e.wOt(3202,!1)}()):0==I&&(ji=1/(Dn-1));const pi=Dn-1,Gn=s.currentTime,ii=s.currentAnimateTimings,Er=ii.duration;return wn.forEach((Hr,to)=>{const co=ji>0?to==pi?1:ji*to:Le[to],no=co*Er;s.currentTime=Gn+ii.delay+no,ii.duration=no,this._validateStyleAst(Hr,s),Hr.offset=co,y.styles.push(Hr)}),y}visitReference(x,s){return{type:jn.If.Reference,animation:rs(this,al(x.animation),s),options:pa(x.options)}}visitAnimateChild(x,s){return s.depCount++,{type:jn.If.AnimateChild,options:pa(x.options)}}visitAnimateRef(x,s){return{type:jn.If.AnimateRef,animation:this.visitReference(x.animation,s),options:pa(x.options)}}visitQuery(x,s){const y=s.currentQuerySelector,g=x.options||{};s.queryCount++,s.currentQuery=x;const[I,Le]=function Ec(b){const x=!!b.split(/\s*,\s*/).find(s=>":self"==s);return x&&(b=b.replace(Lm,"")),b=b.replace(/@\*/g,ua).replace(/@\w+/g,s=>ua+"-"+s.slice(1)).replace(/:animating/g,zr),[b,x]}(x.selector);s.currentQuerySelector=y.length?y+" "+I:I,Io(s.collectedStyles,s.currentQuerySelector,new Map);const et=rs(this,al(x.animation),s);return s.currentQuery=null,s.currentQuerySelector=y,{type:jn.If.Query,selector:I,limit:g.limit||0,optional:!!g.optional,includeSelf:Le,animation:et,originalSelector:x.selector,options:pa(x.options)}}visitStagger(x,s){s.currentQuery||s.errors.push(function Jc(){return new e.wOt(3013,!1)}());const y="full"===x.timings?{duration:0,delay:0,easing:"full"}:Cc(x.timings,s.errors,!0);return{type:jn.If.Stagger,animation:rs(this,al(x.animation),s),timings:y,options:null}}}class Dp{constructor(x){this.errors=x,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function pa(b){return b?(b={...b}).params&&(b.params=function rd(b){return b?{...b}:null}(b.params)):b={},b}function kc(b,x,s){return{duration:b,delay:x,easing:s}}function Nl(b,x,s,y,g,I,Le=null,et=!1){return{type:1,element:b,keyframes:x,preStyleProps:s,postStyleProps:y,duration:g,delay:I,totalTime:g+I,easing:Le,subTimeline:et}}class od{constructor(){this._map=new Map}get(x){return this._map.get(x)||[]}append(x,s){let y=this._map.get(x);
vendor: 9,507 bytes, line 1
1y||this._map.set(x,y=[]),y.push(...s)}has(x){return this._map.has(x)}clear(){this._map.clear()}}const Ic=new RegExp(":enter","g"),ad=new RegExp(":leave","g");function cu(b,x,s,y,g,I=new Map,Le=new Map,et,wt,Wt=[]){return(new du).buildKeyframes(b,x,s,y,g,I,Le,et,wt,Wt)}class du{buildKeyframes(x,s,y,g,I,Le,et,wt,Wt,wn=[]){Wt=Wt||new od;const Dn=new pu(x,s,Wt,g,I,wn,[]);Dn.options=wt;const ji=wt.delay?Ws(wt.delay):0;Dn.currentTimeline.delayNextStep(ji),Dn.currentTimeline.setStyles([Le],null,Dn.errors,wt),rs(this,y,Dn);const pi=Dn.timelines.filter(Gn=>Gn.containsAnimation());if(pi.length&&et.size){let Gn;for(let ii=pi.length-1;ii>=0;ii--){const Er=pi[ii];if(Er.element===s){Gn=Er;break}}Gn&&!Gn.allowOnlyTimelineStyles()&&Gn.setStyles([et],null,Dn.errors,wt)}return pi.length?pi.map(Gn=>Gn.buildKeyframes()):[Nl(s,[],[],[],0,ji,"",!1)]}visitTrigger(x,s){}visitState(x,s){}visitTransition(x,s){}visitAnimateChild(x,s){const y=s.subInstructions.get(s.element);if(y){const g=s.createSubContext(x.options),I=s.currentTimeline.currentTime,Le=this._visitSubInstructions(y,g,g.options);I!=Le&&s.transformIntoNewTimeline(Le)}s.previousNode=x}visitAnimateRef(x,s){const y=s.createSubContext(x.options);y.transformIntoNewTimeline(),this._applyAnimationRefDelays([x.options,x.animation.options],s,y),this.visitReference(x.animation,y),s.transformIntoNewTimeline(y.currentTimeline.currentTime),s.previousNode=x}_applyAnimationRefDelays(x,s,y){for(const g of x){const I=g?.delay;if(I){const Le="number"==typeof I?I:Ws(nd(I,g?.params??{},s.errors));y.delayNextStep(Le)}}}_visitSubInstructions(x,s,y){let I=s.currentTimeline.currentTime;const Le=null!=y.duration?Ws(y.duration):null,et=null!=y.delay?Ws(y.delay):null;return 0!==Le&&x.forEach(wt=>{const Wt=s.appendInstructionToTimeline(wt,Le,et);I=Math.max(I,Wt.duration+Wt.delay)}),I}visitReference(x,s){s.updateOptions(x.options,!0),rs(this,x.animation,s),s.previousNode=x}visitSequence(x,s){const y=s.subContextCount;let g=s;const I=x.options;if(I&&(I.params||I.delay)&&(g=s.createSubContext(I),g.transformIntoNewTimeline(),null!=I.delay)){g.previousNode.type==jn.If.Style&&(g.currentTimeline.snapshotCurrentStyles(),g.previousNode=uu);const Le=Ws(I.delay);g.delayNextStep(Le)}x.steps.length&&(x.steps.forEach(Le=>rs(this,Le,g)),g.currentTimeline.applyStylesToKeyframe(),g.subContextCount>y&&g.transformIntoNewTimeline()),s.previousNode=x}visitGroup(x,s){const y=[];let g=s.currentTimeline.currentTime;const I=x.options&&x.options.delay?Ws(x.options.delay):0;x.steps.forEach(Le=>{const et=s.createSubContext(x.options);I&&et.delayNextStep(I),rs(this,Le,et),g=Math.max(g,et.currentTimeline.currentTime),y.push(et.currentTimeline)}),y.forEach(Le=>s.currentTimeline.mergeTimelineCollectedStyles(Le)),s.transformIntoNewTimeline(g),s.previousNode=x}_visitTiming(x,s){if(x.dynamic){const y=x.strValue;return Cc(s.params?nd(y,s.params,s.errors):y,s.errors)}return{duration:x.duration,delay:x.delay,easing:x.easing}}visitAnimate(x,s){const y=s.currentAnimateTimings=this._visitTiming(x.timings,s),g=s.currentTimeline;y.delay&&(s.incrementTime(y.delay),g.snapshotCurrentStyles());const I=x.style;I.type==jn.If.Keyframes?this.visitKeyframes(I,s):(s.incrementTime(y.duration),this.visitStyle(I,s),g.applyStylesToKeyframe()),s.currentAnimateTimings=null,s.previousNode=x}visitStyle(x,s){const y=s.currentTimeline,g=s.currentAnimateTimings;!g&&y.hasCurrentStyleProperties()&&y.forwardFrame();const I=g&&g.easing||x.easing;x.isEmptyStep?y.applyEmptyStep(I):y.setStyles(x.styles,I,s.errors,s.options),s.previousNode=x}visitKeyframes(x,s){const y=s.currentAnimateTimings,g=s.currentTimeline.duration,I=y.duration,et=s.createSubContext().currentTimeline;et.easing=y.easing,x.styles.forEach(wt=>{et.forwardTime((wt.offset||0)*I),et.setStyles(wt.styles,wt.easing,s.errors,s.options),et.applyStylesToKeyframe()}),s.currentTimeline.mergeTimelineCollectedStyles(et),s.transformIntoNewTimeline(g+I),s.previousNode=x}visitQuery(x,s){const y=s.currentTimeline.currentTime,g=x.options||{},I=g.delay?Ws(g.delay):0;I&&(s.previousNode.type===jn.If.Style||0==y&&s.currentTimeline.hasCurrentStyleProperties())&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=uu);let Le=y;const et=s.invokeQuery(x.selector,x.originalSelector,x.limit,x.includeSelf,!!g.optional,s.errors);s.currentQueryTotal=et.length;let wt=null;et.forEach((Wt,wn)=>{s.currentQueryIndex=wn;const Dn=s.createSubContext(x.options,Wt);I&&Dn.delayNextStep(I),Wt===s.element&&(wt=Dn.currentTimeline),rs(this,x.animation,Dn),Dn.currentTimeline.applyStylesToKeyframe(),Le=Math.max(Le,Dn.currentTimeline.currentTime)}),s.currentQueryIndex=0,s.currentQueryTotal=0,s.transformIntoNewTimeline(Le),wt&&(s.currentTimeline.mergeTimelineCollectedStyles(wt),s.currentTimeline.snapshotCurrentStyles()),s.previousNode=x}visitStagger(x,s){const y=s.parentContext,g=s.currentTimeline,I=x.timings,Le=Math.abs(I.duration),et=Le*(s.currentQueryTotal-1);let wt=Le*s.currentQueryIndex;switch(I.duration<0?"reverse":I.easing){case"reverse":wt=et-wt;break;case"full":wt=y.currentStaggerTime}const wn=s.currentTimeline;wt&&wn.delayNextStep(wt);const Dn=wn.currentTime;rs(this,x.animation,s),s.previousNode=x,y.currentStaggerTime=g.currentTime-Dn+(g.startTime-y.currentTimeline.startTime)}}const uu={};class pu{constructor(x,s,y,g,I,Le,et,wt){this._driver=x,this.element=s,this.subInstructions=y,this._enterClassName=g,this._leaveClassName=I,this.errors=Le,this.timelines=et,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=wt||new ld(this._driver,s,0),et.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(x,s){if(!x)return;const y=x;let g=this.options;null!=y.duration&&(g.duration=Ws(y.duration)),null!=y.delay&&(g.delay=Ws(y.delay));const I=y.params;if(I){let Le=g.params;Le||(Le=this.options.params={}),Object.keys(I).forEach(et=>{(!s||!Le.hasOwnProperty(et))&&(Le[et]=nd(I[et],Le,this.errors))})}}_copyOptions(){const x={};if(this.options){const s=this.options.params;if(s){const y=x.params={};Object.keys(s).forEach(g=>{y[g]=s[g]})}}return x}createSubContext(x=null,s,y){const g=s||this.element,I=new pu(this._driver,g,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(g,y||0));return I.previousNode=this.previousNode,I.currentAnimateTimings=this.currentAnimateTimings,I.options=this._copyOptions(),I.updateOptions(x),I.currentQueryIndex=this.currentQueryIndex,I.currentQueryTotal=this.currentQueryTotal,I.parentContext=this,this.subContextCount++,I}transformIntoNewTimeline(x){return this.previousNode=uu,this.currentTimeline=this.currentTimeline.fork(this.element,x),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(x,s,y){const g={duration:s??x.duration,delay:this.currentTimeline.currentTime+(y??0)+x.delay,easing:""},I=new Gh(this._driver,x.element,x.keyframes,x.preStyleProps,x.postStyleProps,g,x.stretchStartingKeyframe);return this.timelines.push(I),g}incrementTime(x){this.currentTimeline.forwardTime(this.currentTimeline.duration+x)}delayNextStep(x){x>0&&this.currentTimeline.delayNextStep(x)}invokeQuery(x,s,y,g,I,Le){let et=[];if(g&&et.push(this.element),x.length>0){x=(x=x.replace(Ic,"."+this._enterClassName)).replace(ad,"."+this._leaveClassName);let Wt=this._driver.query(this.element,x,1!=y);0!==y&&(Wt=y<0?Wt.slice(Wt.length+y,Wt.length):Wt.slice(0,y)),et.push(...Wt)}return!I&&0==et.length&&Le.push(function ko(b){return new e.wOt(3014,!1)}()),et}}class ld{constructor(x,s,y,g){this._driver=x,this.element=s,this.startTime=y,this._elementTimelineStylesLookup=g,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(s),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(s,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(x){const s=1===this._keyframes.size&&this._pendingStyles.size;this.duration||s?(this.forwardTime(this.currentTime+x),s&&this.snapshotCurrentStyles()):this.startTime+=x}fork(x,s){return this.applyStylesToKeyframe(),new ld(this._driver,x,s||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(x){this.applyStylesToKeyframe(),this.duration=x,this._loadKeyframe()}_updateStyle(x,s){this._localTimelineStyles.set(x,s),this._globalTimelineStyles.set(x,s),this._styleSummary.set(x,{time:this.currentTime,value:s})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}
1applyEmptyStep(x){x&&this._previousKeyframe.set("easing",x);for(let[s,y]of this._globalTimelineStyles)this._backFill.set(s,y||jn.kp),this._currentKeyframe.set(s,jn.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(x,s,y,g){s&&this._previousKeyframe.set("easing",s);const I=g&&g.params||{},Le=function cd(b,x){const s=new Map;let y;return b.forEach(g=>{if("*"===g){y??=x.keys();for(let I of y)s.set(I,jn.kp)}else for(let[I,Le]of g)s.set(I,Le)}),s}(x,this._globalTimelineStyles);for(let[et,wt]of Le){const Wt=nd(wt,I,y);this._pendingStyles.set(et,Wt),this._localTimelineStyles.has(et)||this._backFill.set(et,this._globalTimelineStyles.get(et)??jn.kp),this._updateStyle(et,Wt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((x,s)=>{this._currentKeyframe.set(s,x)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((x,s)=>{this._currentKeyframe.has(s)||this._currentKeyframe.set(s,x)}))}snapshotCurrentStyles(){for(let[x,s]of this._localTimelineStyles)this._pendingStyles.set(x,s),this._updateStyle(x,s)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const x=[];for(let s in this._currentKeyframe)x.push(s);return x}
1mergeTimelineCollectedStyles(x){x._styleSummary.forEach((s,y)=>{const g=this._styleSummary.get(y);(!g||s.time>g.time)&&this._updateStyle(y,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const x=new Set,s=new Set,y=1===this._keyframes.size&&0===this.duration;let g=[];this._keyframes.forEach((et,wt)=>{const Wt=new Map([...this._backFill,...et]);Wt.forEach((wn,Dn)=>{wn===jn.FX?x.add(Dn):wn===jn.kp&&s.add(Dn)}),y||Wt.set("offset",wt/this.duration),g.push(Wt)});const I=[...x.values()],Le=[...s.values()];if(y){const et=g[0],wt=new Map(et);et.set("offset",0),wt.set("offset",1),g=[et,wt]}return Nl(this.element,g,I,Le,this.duration,this.startTime,this.easing,!1)}}class Gh extends ld{constructor(x,s,y,g,I,Le,et=!1){super(x,s,Le.delay),this.keyframes=y,this.preStyleProps=g,this.postStyleProps=I,this._stretchStartingKeyframe=et,this.timings={duration:Le.duration,delay:Le.delay,easing:Le.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let x=this.keyframes,{delay:s,duration:y,easing:g}=this.timings;if(this._stretchStartingKeyframe&&s){const I=[],Le=y+s,et=s/Le,wt=new Map(x[0]);wt.set("offset",0),I.push(wt);const Wt=new Map(x[0]);Wt.set("offset",So(et)),I.push(Wt);const wn=x.length-1;for(let Dn=1;Dn<=wn;Dn++){let ji=new Map(x[Dn]);const pi=ji.get("offset");ji.set("offset",So((s+pi*y)/Le)),I.push(ji)}y=Le,s=0,g="",x=I}return Nl(this.element,x,this.preStyleProps,this.postStyleProps,y,s,g,!0)}}function So(b,x=3){const s=Math.pow(10,x-1);return Math.round(b*s)/s}function hu(b,x,s,y,g,I,Le,et,wt,Wt,wn,Dn,ji){return{type:0,element:b,triggerName:x,isRemovalTransition:g,fromState:s,fromStyles:I,toState:y,toStyles:Le,timelines:et,queriedElements:wt,preStyleProps:Wt,postStyleProps:wn,totalTime:Dn,errors:ji}}const Sc={};class _o{constructor(x,s,y){this._triggerName=x,this.ast=s,this._stateStyles=y}match(x,s,y,g){return function Mp(b,x,s,y,g){return b.some(I=>I(x,s,y,g))}(this.ast.matchers,x,s,y,g)}buildStyles(x,s,y){let g=this._stateStyles.get("*");return void 0!==x&&(g=this._stateStyles.get(x?.toString())||g),g?g.buildStyles(s,y):new Map}build(x,s,y,g,I,Le,et,wt,Wt,wn){const Dn=[],ji=this.ast.options&&this.ast.options.params||Sc,Gn=this.buildStyles(y,et&&et.params||Sc,Dn),ii=wt&&wt.params||Sc,Er=this.buildStyles(g,ii,Dn),Hr=new Set,to=new Map,co=new Map,no="void"===g,Ss={params:ka(ii,ji),delay:this.ast.options?.delay},qs=wn?[]:cu(x,s,this.ast.animation,I,Le,Gn,Er,Ss,Wt,Dn);let Vo=0;return qs.forEach(as=>{Vo=Math.max(as.duration+as.delay,Vo)}),Dn.length?hu(s,this._triggerName,y,g,no,Gn,Er,[],[],to,co,Vo,Dn):(qs.forEach(as=>{const Ks=as.element,Sa=Io(to,Ks,new Set);as.preStyleProps.forEach(Pa=>Sa.add(Pa));const xu=Io(co,Ks,new Set);as.postStyleProps.forEach(Pa=>xu.add(Pa)),Ks!==s&&Hr.add(Ks)}),hu(s,this._triggerName,y,g,no,Gn,Er,qs,[...Hr.values()],to,co,Vo))}}function ka(b,x){const s={...x};return Object.entries(b).forEach(([y,g])=>{null!=g&&(s[y]=g)}),s}class Uh{constructor(x,s,y){this.styles=x,this.defaultParams=s,this.normalizer=y}buildStyles(x,s){const y=new Map,g=ka(x,this.defaultParams);return this.styles.styles.forEach(I=>{"string"!=typeof I&&I.forEach((Le,et)=>{Le&&(Le=nd(Le,g,s));const wt=this.normalizer.normalizePropertyName(et,s);Le=this.normalizer.normalizeStyleValue(et,wt,Le,s),y.set(et,Le)})}),y}}class Pc{constructor(x,s,y){this.name=x,this.ast=s,this._normalizer=y,this.transitionFactories=[],this.states=new Map,s.states.forEach(g=>{this.states.set(g.name,new Uh(g.style,g.options&&g.options.params||{},y))}),fu(this.states,"true","1"),fu(this.states,"false","0"),s.transitions.forEach(g=>{this.transitionFactories.push(new _o(x,g,this.states))}),this.fallbackTransition=function dd(b,x,s){return new _o(b,{type:jn.If.Transition,animation:{type:jn.If.Sequence,steps:[],options:null},matchers:[(Le,et)=>!0],options:null,queryCount:0,depCount:0},x)}(x,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(x,s,y,g){return this.transitionFactories.find(Le=>Le.match(x,s,y,g))||null}matchStyles(x,s,y){return this.fallbackTransition.buildStyles(x,s,y)}}function fu(b,x,s){b.has(x)?b.has(s)||b.set(s,b.get(x)):b.has(s)&&b.set(x,b.get(s))}const Xs=new od;class Ep{constructor(x,s,y){this.bodyNode=x,this._driver=s,this._normalizer=y,this._animations=new Map,this._playersById=new Map,this.players=[]}register(x,s){const y=[],I=Vh(this._driver,s,y,[]);if(y.length)throw function eu(b){return new e.wOt(3503,!1)}();this._animations.set(x,I)}_buildPlayer(x,s,y){const g=x.element,I=ol(this._normalizer,x.keyframes,s,y);return this._driver.animate(g,I,x.duration,x.delay,x.easing,[],!0)}create(x,s,y={}){const g=[],I=this._animations.get(x);let Le;const et=new Map;if(I?(Le=cu(this._driver,s,I,Ar,bc,new Map,new Map,y,Xs,g),Le.forEach(wn=>{const Dn=Io(et,wn.element,new Map);wn.postStyleProps.forEach(ji=>Dn.set(ji,null))})):(g.push(function up(){return new e.wOt(3300,!1)}()),Le=[]),g.length)throw function pp(b){return new e.wOt(3504,!1)}();et.forEach((wn,Dn)=>{wn.forEach((ji,pi)=>{wn.set(pi,this._driver.computeStyle(Dn,pi,jn.kp))})});const Wt=Qs(Le.map(wn=>{const Dn=et.get(wn.element);return this._buildPlayer(wn,new Map,Dn)}));
1return this._playersById.set(x,Wt),Wt.onDestroy(()=>this.destroy(x)),this.players.push(Wt),Wt}destroy(x){const s=this._getPlayer(x);s.destroy(),this._playersById.delete(x);const y=this.players.indexOf(s);y>=0&&this.players.splice(y,1)}_getPlayer(x){const s=this._playersById.get(x);if(!s)throw function il(b){return new e.wOt(3301,!1)}();return s}listen(x,s,y,g){const I=mc(s,"","","");return Zc(this._getPlayer(x),y,I,g),()=>{}}command(x,s,y,g){if("register"==y)return void this.register(x,g[0]);if("create"==y)return void this.create(x,s,g[0]||{});const I=this._getPlayer(x);switch(y){case"play":I.play();break;case"pause":I.pause();break;case"reset":I.reset();break;case"restart":I.restart();break;case"finish":I.finish();break;case"init":I.init();break;case"setPosition":I.setPosition(parseFloat(g[0]));break;case"destroy":this.destroy(x)}}}const $h="ng-animate-queued",Es="ng-animate-disabled",Oc=[],Sp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vs="__ng_removed";class ud{get params(){return this.options.params}constructor(x,s=""){this.namespaceId=s;const y=x&&x.hasOwnProperty("value");if(this.value=function pd(b){return b??null}(y?x.value:x),y){const{value:I,...Le}=x;this.options=Le}else this.options={};this.options.params||(this.options.params={})}absorbOptions(x){const s=x.params;if(s){const y=this.options.params;Object.keys(s).forEach(g=>{null==y[g]&&(y[g]=s[g])})}}}const Rc="void",gu=new ud(Rc);class Wh{constructor(x,s,y){this.id=x,this.hostElement=s,this._engine=y,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
vendor: 24,655 bytes, line 1
1+x,Bo(s,this._hostClassName)}listen(x,s,y,g){if(!this._triggers.has(s))throw function xa(b,x){return new e.wOt(3302,!1)}();if(null==y||0==y.length)throw function rl(b){return new e.wOt(3303,!1)}();if(!function Op(b){return"start"==b||"done"==b}(y))throw function gc(b,x){return new e.wOt(3400,!1)}();const I=Io(this._elementListeners,x,[]),Le={name:s,phase:y,callback:g};I.push(Le);const et=Io(this._engine.statesByElement,x,new Map);return et.has(s)||(Bo(x,xc),Bo(x,xc+"-"+s),et.set(s,gu)),()=>{this._engine.afterFlush(()=>{const wt=I.indexOf(Le);wt>=0&&I.splice(wt,1),this._triggers.has(s)||et.delete(s)})}}register(x,s){return!this._triggers.has(x)&&(this._triggers.set(x,s),!0)}_getTrigger(x){const s=this._triggers.get(x);if(!s)throw function hp(b){return new e.wOt(3401,!1)}();return s}trigger(x,s,y,g=!0){const I=this._getTrigger(s),Le=new jl(this.id,s,x);let et=this._engine.statesByElement.get(x);et||(Bo(x,xc),Bo(x,xc+"-"+s),this._engine.statesByElement.set(x,et=new Map));let wt=et.get(s);const Wt=new ud(y,this.id);if(!(y&&y.hasOwnProperty("value"))&&wt&&Wt.absorbOptions(wt.options),et.set(s,Wt),wt||(wt=gu),Wt.value!==Rc&&wt.value===Wt.value){if(!function Fp(b,x){const s=Object.keys(b),y=Object.keys(x);if(s.length!=y.length)return!1;for(let g=0;g<s.length;g++){const I=s[g];if(!x.hasOwnProperty(I)||b[I]!==x[I])return!1}return!0}(wt.params,Wt.params)){const ii=[],Er=I.matchStyles(wt.value,wt.params,ii),Hr=I.matchStyles(Wt.value,Wt.params,ii);ii.length?this._engine.reportError(ii):this._engine.afterFlush(()=>{Da(x,Er),Ds(x,Hr)})}return}const ji=Io(this._engine.playersByElement,x,[]);ji.forEach(ii=>{ii.namespaceId==this.id&&ii.triggerName==s&&ii.queued&&ii.destroy()});let pi=I.matchTransition(wt.value,Wt.value,x,Wt.params),Gn=!1;if(!pi){if(!g)return;pi=I.fallbackTransition,Gn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:x,triggerName:s,transition:pi,fromState:wt,toState:Wt,player:Le,isFallbackTransition:Gn}),Gn||(Bo(x,$h),Le.onStart(()=>{Bl(x,$h)})),Le.onDone(()=>{let ii=this.players.indexOf(Le);ii>=0&&this.players.splice(ii,1);const Er=this._engine.playersByElement.get(x);if(Er){let Hr=Er.indexOf(Le);Hr>=0&&Er.splice(Hr,1)}}),this.players.push(Le),ji.push(Le),Le}deregister(x){this._triggers.delete(x),this._engine.statesByElement.forEach(s=>s.delete(x)),this._elementListeners.forEach((s,y)=>{this._elementListeners.set(y,s.filter(g=>g.name!=x))})}clearElementCache(x){this._engine.statesByElement.delete(x),this._elementListeners.delete(x);const s=this._engine.playersByElement.get(x);s&&(s.forEach(y=>y.destroy()),this._engine.playersByElement.delete(x))}_signalRemovalForInnerTriggers(x,s){const y=this._engine.driver.query(x,ua,!0);y.forEach(g=>{if(g[vs])return;const I=this._engine.fetchNamespacesByElement(g);I.size?I.forEach(Le=>Le.triggerLeaveAnimation(g,s,!1,!0)):this.clearElementCache(g)}),this._engine.afterFlushAnimationsDone(()=>y.forEach(g=>this.clearElementCache(g)))}triggerLeaveAnimation(x,s,y,g){const I=this._engine.statesByElement.get(x),Le=new Map;if(I){const et=[];if(I.forEach((wt,Wt)=>{if(Le.set(Wt,wt.value),this._triggers.has(Wt)){const wn=this.trigger(x,Wt,Rc,g);wn&&et.push(wn)}}),et.length)return this._engine.markElementAsRemoved(this.id,x,!0,s,Le),y&&Qs(et).onDone(()=>this._engine.processLeaveNode(x)),!0}return!1}prepareLeaveAnimationListeners(x){const s=this._elementListeners.get(x),y=this._engine.statesByElement.get(x);if(s&&y){const g=new Set;s.forEach(I=>{const Le=I.name;if(g.has(Le))return;g.add(Le);const wt=this._triggers.get(Le).fallbackTransition,Wt=y.get(Le)||gu,wn=new ud(Rc),Dn=new jl(this.id,Le,x);this._engine.totalQueuedPlayers++,this._queue.push({element:x,triggerName:Le,transition:wt,fromState:Wt,toState:wn,player:Dn,isFallbackTransition:!0})})}}removeNode(x,s){const y=this._engine;if(x.childElementCount&&this._signalRemovalForInnerTriggers(x,s),this.triggerLeaveAnimation(x,s,!0))return;let g=!1;if(y.totalAnimations){const I=y.players.length?y.playersByQueriedElement.get(x):[];if(I&&I.length)g=!0;else{let Le=x;for(;Le=Le.parentNode;)if(y.statesByElement.get(Le)){g=!0;break}}}if(this.prepareLeaveAnimationListeners(x),g)y.markElementAsRemoved(this.id,x,!1,s);else{const I=x[vs];(!I||I===Sp)&&(y.afterFlush(()=>this.clearElementCache(x)),y.destroyInnerAnimations(x),y._onRemovalComplete(x,s))}}insertNode(x,s){Bo(x,this._hostClassName)}drainQueuedTransitions(x){const s=[];return this._queue.forEach(y=>{const g=y.player;if(g.destroyed)return;const I=y.element,Le=this._elementListeners.get(I);Le&&Le.forEach(et=>{if(et.name==y.triggerName){const wt=mc(I,y.triggerName,y.fromState.value,y.toState.value);wt._data=x,Zc(y.player,et.phase,wt,et.callback)}}),g.markedForDestroy?this._engine.afterFlush(()=>{g.destroy()}):s.push(y)}),this._queue=[],s.sort((y,g)=>{const I=y.transition.ast.depCount,Le=g.transition.ast.depCount;return 0==I||0==Le?I-Le:this._engine.driver.containsElement(y.element,g.element)?1:-1})}destroy(x){this.players.forEach(s=>s.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,x)}}class Hh{_onRemovalComplete(x,s){this.onRemovalComplete(x,s)}constructor(x,s,y,g){this.bodyNode=x,this.driver=s,this._normalizer=y,this.scheduler=g,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(I,Le)=>{}}get queuedPlayers(){const x=[];return this._namespaceList.forEach(s=>{s.players.forEach(y=>{y.queued&&x.push(y)})}),x}createNamespace(x,s){const y=new Wh(x,s,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,s)?this._balanceNamespaceList(y,s):(this.newHostElements.set(s,y),this.collectEnterElement(s)),this._namespaceLookup[x]=y}_balanceNamespaceList(x,s){const y=this._namespaceList,g=this.namespacesByHostElement;if(y.length-1>=0){let Le=!1,et=this.driver.getParentElement(s);for(;et;){const wt=g.get(et);if(wt){const Wt=y.indexOf(wt);y.splice(Wt+1,0,x),Le=!0;break}et=this.driver.getParentElement(et)}Le||y.unshift(x)}else y.push(x);return g.set(s,x),x}register(x,s){let y=this._namespaceLookup[x];return y||(y=this.createNamespace(x,s)),y}registerTrigger(x,s,y){let g=this._namespaceLookup[x];g&&g.register(s,y)&&this.totalAnimations++}destroy(x,s){x&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const y=this._fetchNamespace(x);this.namespacesByHostElement.delete(y.hostElement);const g=this._namespaceList.indexOf(y);g>=0&&this._namespaceList.splice(g,1),y.destroy(s),delete this._namespaceLookup[x]}))}_fetchNamespace(x){return this._namespaceLookup[x]}fetchNamespacesByElement(x){const s=new Set,y=this.statesByElement.get(x);if(y)for(let g of y.values())if(g.namespaceId){const I=this._fetchNamespace(g.namespaceId);I&&s.add(I)}return s}trigger(x,s,y,g){if(hd(s)){const I=this._fetchNamespace(x);if(I)return I.trigger(s,y,g),!0}return!1}insertNode(x,s,y,g){if(!hd(s))return;const I=s[vs];if(I&&I.setForRemoval){I.setForRemoval=!1,I.setForMove=!0;const Le=this.collectedLeaveElements.indexOf(s);Le>=0&&this.collectedLeaveElements.splice(Le,1)}if(x){const Le=this._fetchNamespace(x);Le&&Le.insertNode(s,y)}g&&this.collectEnterElement(s)}collectEnterElement(x){this.collectedEnterElements.push(x)}markElementAsDisabled(x,s){s?this.disabledNodes.has(x)||(this.disabledNodes.add(x),Bo(x,Es)):this.disabledNodes.has(x)&&(this.disabledNodes.delete(x),Bl(x,Es))}removeNode(x,s,y){if(hd(s)){this.scheduler?.notify();const g=x?this._fetchNamespace(x):null;g?g.removeNode(s,y):this.markElementAsRemoved(x,s,!1,y);const I=this.namespacesByHostElement.get(s);I&&I.id!==x&&I.removeNode(s,y)}else this._onRemovalComplete(s,y)}markElementAsRemoved(x,s,y,g,I){this.collectedLeaveElements.push(s),s[vs]={namespaceId:x,setForRemoval:g,hasAnimation:y,removedBeforeQueried:!1,previousTriggersValues:I}}listen(x,s,y,g,I){return hd(s)?this._fetchNamespace(x).listen(s,y,g,I):()=>{}}_buildInstruction(x,s,y,g,I){return x.transition.build(this.driver,x.element,x.fromState.value,x.toState.value,y,g,x.fromState.options,x.toState.options,s,I)}destroyInnerAnimations(x){let s=this.driver.query(x,ua,!0);s.forEach(y=>this.destroyActiveAnimationsForElement(y)),0!=this.playersByQueriedElement.size&&(s=this.driver.query(x,zr,!0),s.forEach(y=>this.finishActiveQueriedAnimationOnElement(y)))}destroyActiveAnimationsForElement(x){const s=this.playersByElement.get(x);s&&s.forEach(y=>{y.queued?y.markedForDestroy=!0:y.destroy()})}finishActiveQueriedAnimationOnElement(x){const s=this.playersByQueriedElement.get(x);s&&s.forEach(y=>y.finish())}whenRenderingDone(){return new Promise(x=>{if(this.players.length)return Qs(this.players).onDone(()=>x());x()})}processLeaveNode(x){const s=x[vs];if(s&&s.setForRemoval){if(x[vs]=Sp,s.namespaceId){this.destroyInnerAnimations(x);const y=this._fetchNamespace(s.namespaceId);y&&y.clearElementCache(x)}this._onRemovalComplete(x,s.setForRemoval)}x.classList?.contains(Es)&&this.markElementAsDisabled(x,!1),this.driver.query(x,".ng-animate-disabled",!0).forEach(y=>{this.markElementAsDisabled(y,!1)})}flush(x=-1){let s=[];if(this.newHostElements.size&&(this.newHostElements.forEach((y,g)=>this._balanceNamespaceList(y,g)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let y=0;y<this.collectedEnterElements.length;y++)Bo(this.collectedEnterElements[y],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const y=[];try{s=this._flushAnimations(y,x)}finally{for(let g=0;g<y.length;g++)y[g]()}}else for(let y=0;y<this.collectedLeaveElements.length;y++)this.processLeaveNode(this.collectedLeaveElements[y]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(y=>y()),this._flushFns=[],this._whenQuietFns.length){const y=this._whenQuietFns;this._whenQuietFns=[],s.length?Qs(s).onDone(()=>{y.forEach(g=>g())}):y.forEach(g=>g())}}reportError(x){throw function tu(b){return new e.wOt(3402,!1)}()}_flushAnimations(x,s){const y=new od,g=[],I=new Map,Le=[],et=new Map,wt=new Map,Wt=new Map,wn=new Set;this.disabledNodes.forEach(Rn=>{wn.add(Rn);const Kn=this.driver.query(Rn,".ng-animate-queued",!0);for(let oi=0;oi<Kn.length;oi++)wn.add(Kn[oi])});const Dn=this.bodyNode,ji=Array.from(this.statesByElement.keys()),pi=fd(ji,this.collectedEnterElements),Gn=new Map;let ii=0;pi.forEach((Rn,Kn)=>{const oi=Ar+ii++;Gn.set(Kn,oi),Rn.forEach(Ki=>Bo(Ki,oi))});const Er=[],Hr=new Set,to=new Set;for(let Rn=0;Rn<this.collectedLeaveElements.length;Rn++){const Kn=this.collectedLeaveElements[Rn],oi=Kn[vs];oi&&oi.setForRemoval&&(Er.push(Kn),Hr.add(Kn),oi.hasAnimation?this.driver.query(Kn,".ng-star-inserted",!0).forEach(Ki=>Hr.add(Ki)):to.add(Kn))}const co=new Map,no=fd(ji,Array.from(Hr));no.forEach((Rn,Kn)=>{const oi=bc+ii++;co.set(Kn,oi),Rn.forEach(Ki=>Bo(Ki,oi))}),x.push(()=>{pi.forEach((Rn,Kn)=>{const oi=Gn.get(Kn);Rn.forEach(Ki=>Bl(Ki,oi))}),no.forEach((Rn,Kn)=>{const oi=co.get(Kn);Rn.forEach(Ki=>Bl(Ki,oi))}),Er.forEach(Rn=>{this.processLeaveNode(Rn)})});const Ss=[],qs=[];for(let Rn=this._namespaceList.length-1;Rn>=0;Rn--)this._namespaceList[Rn].drainQueuedTransitions(s).forEach(oi=>{const Ki=oi.player,br=oi.element;if(Ss.push(Ki),this.collectedEnterElements.length){const Po=br[vs];if(Po&&Po.setForMove){if(Po.previousTriggersValues&&Po.previousTriggersValues.has(oi.triggerName)){const pl=Po.previousTriggersValues.get(oi.triggerName),Ps=this.statesByElement.get(oi.element);if(Ps&&Ps.has(oi.triggerName)){const yd=Ps.get(oi.triggerName);yd.value=pl,Ps.set(oi.triggerName,yd)}}return void Ki.destroy()}}const Go=!Dn||!this.driver.containsElement(Dn,br),ls=co.get(br),Ra=Gn.get(br),Lr=this._buildInstruction(oi,y,Ra,ls,Go);if(Lr.errors&&Lr.errors.length)return void qs.push(Lr);if(Go)return Ki.onStart(()=>Da(br,Lr.fromStyles)),Ki.onDestroy(()=>Ds(br,Lr.toStyles)),void g.push(Ki);if(oi.isFallbackTransition)return Ki.onStart(()=>Da(br,Lr.fromStyles)),Ki.onDestroy(()=>Ds(br,Lr.toStyles)),void g.push(Ki);const jp=[];Lr.timelines.forEach(Po=>{Po.stretchStartingKeyframe=!0,this.disabledNodes.has(Po.element)||jp.push(Po)}),Lr.timelines=jp,y.append(br,Lr.timelines),Le.push({instruction:Lr,player:Ki,element:br}),Lr.queriedElements.forEach(Po=>Io(et,Po,[]).push(Ki)),Lr.preStyleProps.forEach((Po,pl)=>{if(Po.size){let Ps=wt.get(pl);Ps||wt.set(pl,Ps=new Set),Po.forEach((yd,Cu)=>Ps.add(Cu))}}),Lr.postStyleProps.forEach((Po,pl)=>{let Ps=Wt.get(pl);Ps||Wt.set(pl,Ps=new Set),Po.forEach((yd,Cu)=>Ps.add(Cu))})});if(qs.length){const Rn=[];qs.forEach(Kn=>{Rn.push(function ng(b,x){return new e.wOt(3505,!1)}())}),Ss.forEach(Kn=>Kn.destroy()),this.reportError(Rn)}const Vo=new Map,as=new Map;Le.forEach(Rn=>{const Kn=Rn.element;y.has(Kn)&&(as.set(Kn,Kn),this._beforeAnimationBuild(Rn.player.namespaceId,Rn.instruction,Vo))}),g.forEach(Rn=>{const Kn=Rn.element;this._getPreviousPlayers(Kn,!1,Rn.namespaceId,Rn.triggerName,null).forEach(Ki=>{Io(Vo,Kn,[]).push(Ki),Ki.destroy()})});const Ks=Er.filter(Rn=>ks(Rn,wt,Wt)),Sa=new Map;mu(Sa,this.driver,to,Wt,jn.kp).forEach(Rn=>{ks(Rn,wt,Wt)&&Ks.push(Rn)});const Pa=new Map;pi.forEach((Rn,Kn)=>{mu(Pa,this.driver,new Set(Rn),wt,jn.FX)}),Ks.forEach(Rn=>{const Kn=Sa.get(Rn),oi=Pa.get(Rn);Sa.set(Rn,new Map([...Kn?.entries()??[],...oi?.entries()??[]]))});const vd=[],Oa=[],Lp={};Le.forEach(Rn=>{const{element:Kn,player:oi,instruction:Ki}=Rn;if(y.has(Kn)){if(wn.has(Kn))return oi.onDestroy(()=>Ds(Kn,Ki.toStyles)),oi.disabled=!0,oi.overrideTotalTime(Ki.totalTime),void g.push(oi);let br=Lp;if(as.size>1){let ls=Kn;const Ra=[];for(;ls=ls.parentNode;){const Lr=as.get(ls);if(Lr){br=Lr;break}Ra.push(ls)}Ra.forEach(Lr=>as.set(Lr,br))}const Go=this._buildAnimation(oi.namespaceId,Ki,Vo,I,Pa,Sa);if(oi.setRealPlayer(Go),br===Lp)vd.push(oi);else{const ls=this.playersByElement.get(br);ls&&ls.length&&(oi.parentPlayer=Qs(ls)),g.push(oi)}}else Da(Kn,Ki.fromStyles),oi.onDestroy(()=>Ds(Kn,Ki.toStyles)),Oa.push(oi),wn.has(Kn)&&g.push(oi)}),Oa.forEach(Rn=>{const Kn=I.get(Rn.element);if(Kn&&Kn.length){const oi=Qs(Kn);Rn.setRealPlayer(oi)}}),g.forEach(Rn=>{Rn.parentPlayer?Rn.syncPlayerEvents(Rn.parentPlayer):Rn.destroy()});for(let Rn=0;Rn<Er.length;Rn++){const Kn=Er[Rn],oi=Kn[vs];if(Bl(Kn,bc),oi&&oi.hasAnimation)continue;let Ki=[];if(et.size){let Go=et.get(Kn);Go&&Go.length&&Ki.push(...Go);let ls=this.driver.query(Kn,zr,!0);for(let Ra=0;Ra<ls.length;Ra++){let Lr=et.get(ls[Ra]);Lr&&Lr.length&&Ki.push(...Lr)}}const br=Ki.filter(Go=>!Go.destroyed);br.length?Ia(this,Kn,br):this.processLeaveNode(Kn)}return Er.length=0,vd.forEach(Rn=>{this.players.push(Rn),Rn.onDone(()=>{Rn.destroy();const Kn=this.players.indexOf(Rn);this.players.splice(Kn,1)}),Rn.play()}),vd}afterFlush(x){this._flushFns.push(x)}afterFlushAnimationsDone(x){this._whenQuietFns.push(x)}_getPreviousPlayers(x,s,y,g,I){let Le=[];if(s){const et=this.playersByQueriedElement.get(x);et&&(Le=et)}else{const et=this.playersByElement.get(x);if(et){const wt=!I||I==Rc;et.forEach(Wt=>{Wt.queued||!wt&&Wt.triggerName!=g||Le.push(Wt)})}}return(y||g)&&(Le=Le.filter(et=>!(y&&y!=et.namespaceId||g&&g!=et.triggerName))),Le}_beforeAnimationBuild(x,s,y){const I=s.element,Le=s.isRemovalTransition?void 0:x,et=s.isRemovalTransition?void 0:s.triggerName;for(const wt of s.timelines){const Wt=wt.element,wn=Wt!==I,Dn=Io(y,Wt,[]);this._getPreviousPlayers(Wt,wn,Le,et,s.toState).forEach(pi=>{const Gn=pi.getRealPlayer();Gn.beforeDestroy&&Gn.beforeDestroy(),pi.destroy(),Dn.push(pi)})}Da(I,s.fromStyles)}_buildAnimation(x,s,y,g,I,Le){const et=s.triggerName,wt=s.element,Wt=[],wn=new Set,Dn=new Set,ji=s.timelines.map(Gn=>{const ii=Gn.element;wn.add(ii);const Er=ii[vs];if(Er&&Er.removedBeforeQueried)return new jn.sf(Gn.duration,Gn.delay);const Hr=ii!==wt,to=function _u(b){const x=[];return Rp(b,x),x}((y.get(ii)||Oc).map(Vo=>Vo.getRealPlayer())).filter(Vo=>!!Vo.element&&Vo.element===ii),co=I.get(ii),no=Le.get(ii),Ss=ol(this._normalizer,Gn.keyframes,co,no),qs=this._buildPlayer(Gn,Ss,to);if(Gn.subTimeline&&g&&Dn.add(ii),Hr){const Vo=new jl(x,et,ii);Vo.setRealPlayer(qs),Wt.push(Vo)}return qs});Wt.forEach(Gn=>{Io(this.playersByQueriedElement,Gn.element,[]).push(Gn),Gn.onDone(()=>function Xh(b,x,s){let y=b.get(x);if(y){if(y.length){const g=y.indexOf(s);y.splice(g,1)}0==y.length&&b.delete(x)}return y}(this.playersByQueriedElement,Gn.element,Gn))}),wn.forEach(Gn=>Bo(Gn,wa));const pi=Qs(ji);return pi.onDestroy(()=>{wn.forEach(Gn=>Bl(Gn,wa)),Ds(wt,s.toStyles)}),Dn.forEach(Gn=>{Io(g,Gn,[]).push(pi)}),pi}_buildPlayer(x,s,y){return s.length>0?this.driver.animate(x.element,s,x.duration,x.delay,x.easing,y):new jn.sf(x.duration,x.delay)}}class jl{constructor(x,s,y){this.namespaceId=x,this.triggerName=s,this.element=y,this._player=new jn.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(x){this._containsRealPlayer||(this._player=x,this._queuedCallbacks.forEach((s,y)=>{s.forEach(g=>Zc(x,y,void 0,g))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(x.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(x){this.totalTime=x}syncPlayerEvents(x){const s=this._player;s.triggerCallback&&x.onStart(()=>s.triggerCallback("start")),x.onDone(()=>this.finish()),x.onDestroy(()=>this.destroy())}_queueEvent(x,s){Io(this._queuedCallbacks,x,[]).push(s)}onDone(x){this.queued&&this._queueEvent("done",x),this._player.onDone(x)}onStart(x){this.queued&&this._queueEvent("start",x),this._player.onStart(x)}onDestroy(x){this.queued&&this._queueEvent("destroy",x),this._player.onDestroy(x)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(x){this.queued||this._player.setPosition(x)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(x){const s=this._player;s.triggerCallback&&s.triggerCallback(x)}}function hd(b){return b&&1===b.nodeType}function qh(b,x){const s=b.style.display;return b.style.display=x??"none",s}function mu(b,x,s,y,g){const I=[];s.forEach(wt=>I.push(qh(wt)));const Le=[];y.forEach((wt,Wt)=>{const wn=new Map;wt.forEach(Dn=>{const ji=x.computeStyle(Wt,Dn,g);wn.set(Dn,ji),(!ji||0==ji.length)&&(Wt[vs]=Pp,Le.push(Wt))}),b.set(Wt,wn)});let et=0;return s.forEach(wt=>qh(wt,I[et++])),Le}function fd(b,x){const s=new Map;if(b.forEach(et=>s.set(et,[])),0==x.length)return s;const g=new Set(x),I=new Map;function Le(et){if(!et)return 1;let wt=I.get(et);if(wt)return wt;const Wt=et.parentNode;return wt=s.has(Wt)?Wt:g.has(Wt)?1:Le(Wt),I.set(et,wt),wt}return x.forEach(et=>{const wt=Le(et);1!==wt&&s.get(wt).push(et)}),s}function Bo(b,x){b.classList?.add(x)}function Bl(b,x){b.classList?.remove(x)}function Ia(b,x,s){Qs(s).onDone(()=>b.processLeaveNode(x))}function Rp(b,x){for(let s=0;s<b.length;s++){const y=b[s];y instanceof jn.ui?Rp(y.players,x):x.push(y)}}function ks(b,x,s){const y=s.get(b);if(!y)return!1;let g=x.get(b);return g?y.forEach(I=>g.add(I)):x.set(b,y),s.delete(b),!0}class ll{constructor(x,s,y,g){this._driver=s,this._normalizer=y,this._triggerCache={},this.onRemovalComplete=(I,Le)=>{},this._transitionEngine=new Hh(x.body,s,y,g),this._timelineEngine=new Ep(x.body,s,y),this._transitionEngine.onRemovalComplete=(I,Le)=>this.onRemovalComplete(I,Le)}registerTrigger(x,s,y,g,I){const Le=x+"-"+g;let et=this._triggerCache[Le];if(!et){const wt=[],wn=Vh(this._driver,I,wt,[]);if(wt.length)throw function ws(b,x){return new e.wOt(3404,!1)}();et=function zh(b,x,s){return new Pc(b,x,s)}(g,wn,this._normalizer),this._triggerCache[Le]=et}this._transitionEngine.registerTrigger(s,g,et)}register(x,s){this._transitionEngine.register(x,s)}destroy(x,s){this._transitionEngine.destroy(x,s)}onInsert(x,s,y,g){this._transitionEngine.insertNode(x,s,y,g)}onRemove(x,s,y){this._transitionEngine.removeNode(x,s,y)}disableAnimations(x,s){this._transitionEngine.markElementAsDisabled(x,s)}process(x,s,y,g){if("@"==y.charAt(0)){const[I,Le]=Sh(y);this._timelineEngine.command(I,s,Le,g)}else this._transitionEngine.trigger(x,s,y,g)}listen(x,s,y,g,I){if("@"==y.charAt(0)){const[Le,et]=Sh(y);return this._timelineEngine.listen(Le,s,et,I)}return this._transitionEngine.listen(x,s,y,g,I)}flush(x=-1){this._transitionEngine.flush(x)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(x){this._transitionEngine.afterFlushAnimationsDone(x)}}class Fc{static#e=this.initialStylesByElement=new WeakMap;constructor(x,s,y){this._element=x,this._startStyles=s,this._endStyles=y,this._state=0;let g=Fc.initialStylesByElement.get(x);g||Fc.initialStylesByElement.set(x,g=new Map),this._initialStyles=g}start(){this._state<1&&(this._startStyles&&Ds(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ds(this._element,this._initialStyles),this._endStyles&&(Ds(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Fc.initialStylesByElement.delete(this._element),this._startStyles&&(Da(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Da(this._element,this._endStyles),this._endStyles=null),Ds(this._element,this._initialStyles),this._state=3)}}function Zr(b){let x=null;return b.forEach((s,y)=>{(function vu(b){return"display"===b||"position"===b})(y)&&(x=x||new Map,x.set(y,s))}),x}class Yh{constructor(x,s,y,g){this.element=x,this.keyframes=s,this.options=y,this._specialStyles=g,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=y.duration,this._delay=y.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(x=>x()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const x=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,x,this.options),this._finalKeyframe=x.length?x[x.length-1]:new Map;const s=()=>this._onFinish();this.domPlayer.addEventListener("finish",s),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",s)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(x){const s=[];return x.forEach(y=>{s.push(Object.fromEntries(y))}),s}_triggerWebAnimation(x,s,y){return x.animate(this._convertKeyframesToObject(s),y)}onStart(x){this._originalOnStartFns.push(x),this._onStartFns.push(x)}onDone(x){this._originalOnDoneFns.push(x),this._onDoneFns.push(x)}onDestroy(x){this._onDestroyFns.push(x)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(x=>x()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(x=>x()),this._onDestroyFns=[])}setPosition(x){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=x*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const x=new Map;this.hasStarted()&&this._finalKeyframe.forEach((y,g)=>{"offset"!==g&&x.set(g,this._finished?y:bp(this.element,g))}),this.currentSnapshot=x}triggerCallback(x){const s="start"===x?this._onStartFns:this._onDoneFns;
1s.forEach(y=>y()),s.length=0}}class Jh{validateStyleProperty(x){return!0}validateAnimatableStyleProperty(x){return!0}matchesElement(x,s){return!1}containsElement(x,s){return td(x,s)}getParentElement(x){return ed(x)}query(x,s,y){return nu(x,s,y)}computeStyle(x,s,y){return bp(x,s)}animate(x,s,y,g,I,Le=[]){const wt={duration:y,delay:g,fill:0==g?"both":"forwards"};I&&(wt.easing=I);const Wt=new Map,wn=Le.filter(pi=>pi instanceof Yh);(function Fh(b,x){return 0===b||0===x})(y,g)&&wn.forEach(pi=>{pi.currentSnapshot.forEach((Gn,ii)=>Wt.set(ii,Gn))});let Dn=function Ap(b){return b.length?b[0]instanceof Map?b:b.map(x=>new Map(Object.entries(x))):[]}(s).map(pi=>new Map(pi));Dn=function sg(b,x,s){if(s.size&&x.length){let y=x[0],g=[];if(s.forEach((I,Le)=>{y.has(Le)||g.push(Le),y.set(Le,I)}),g.length)for(let I=1;I<x.length;I++){let Le=x[I];g.forEach(et=>Le.set(et,bp(b,et)))}}return x}(x,Dn,Wt);const ji=function Kh(b,x){let s=null,y=null;return Array.isArray(x)&&x.length?(s=Zr(x[0]),x.length>1&&(y=Zr(x[x.length-1]))):x instanceof Map&&(s=Zr(x)),s||y?new Fc(b,s,y):null}(x,Dn);return new Yh(x,Dn,wt,ji)}}const cl="@.disabled";class dl{constructor(x,s,y,g){this.namespaceId=x,this.delegate=s,this.engine=y,this._onDestroy=g,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(x){this.delegate.destroyNode?.(x)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(x,s){return this.delegate.createElement(x,s)}createComment(x){return this.delegate.createComment(x)}createText(x){return this.delegate.createText(x)}appendChild(x,s){this.delegate.appendChild(x,s),this.engine.onInsert(this.namespaceId,s,x,!1)}insertBefore(x,s,y,g=!0){this.delegate.insertBefore(x,s,y),this.engine.onInsert(this.namespaceId,s,x,g)}removeChild(x,s,y){this.engine.onRemove(this.namespaceId,s,this.delegate)}selectRootElement(x,s){return this.delegate.selectRootElement(x,s)}parentNode(x){return this.delegate.parentNode(x)}nextSibling(x){return this.delegate.nextSibling(x)}setAttribute(x,s,y,g){this.delegate.setAttribute(x,s,y,g)}removeAttribute(x,s,y){this.delegate.removeAttribute(x,s,y)}addClass(x,s){this.delegate.addClass(x,s)}removeClass(x,s){this.delegate.removeClass(x,s)}setStyle(x,s,y,g){this.delegate.setStyle(x,s,y,g)}removeStyle(x,s,y){this.delegate.removeStyle(x,s,y)}setProperty(x,s,y){"@"==s.charAt(0)&&s==cl?this.disableAnimations(x,!!y):this.delegate.setProperty(x,s,y)}setValue(x,s){this.delegate.setValue(x,s)}listen(x,s,y){return this.delegate.listen(x,s,y)}disableAnimations(x,s){this.engine.disableAnimations(x,s)}}class Vl extends dl{constructor(x,s,y,g,I){super(s,y,g,I),this.factory=x,this.namespaceId=s}setProperty(x,s,y){"@"==s.charAt(0)?"."==s.charAt(1)&&s==cl?this.disableAnimations(x,y=void 0===y||!!y):this.engine.process(this.namespaceId,x,s.slice(1),y):this.delegate.setProperty(x,s,y)}listen(x,s,y){if("@"==s.charAt(0)){const g=function eo(b){switch(b){case"body":return document.body;case"document":return document;case"window":return window;default:return b}}(x);let I=s.slice(1),Le="";return"@"!=I.charAt(0)&&([I,Le]=function Gl(b){const x=b.indexOf(".");return[b.substring(0,x),b.slice(x+1)]}(I)),this.engine.listen(this.namespaceId,g,I,Le,et=>{this.factory.scheduleListenerCallback(et._data||-1,y,et)})}return this.delegate.listen(x,s,y)}}class gd{constructor(x,s,y){this.delegate=x,this.engine=s,this._zone=y,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,s.onRemovalComplete=(g,I)=>{const Le=I?.parentNode(g);Le&&I.removeChild(Le,g)}}createRenderer(x,s){const g=this.delegate.createRenderer(x,s);if(!x||!s?.data?.animation){const Wt=this._rendererCache;let wn=Wt.get(g);return wn||(wn=new dl("",g,this.engine,()=>Wt.delete(g)),Wt.set(g,wn)),wn}const I=s.id,Le=s.id+"-"+this._currentId;this._currentId++,this.engine.register(Le,x);const et=Wt=>{Array.isArray(Wt)?Wt.forEach(et):this.engine.registerTrigger(I,Le,x,Wt.name,Wt)};return s.data.animation.forEach(et),new Vl(this,Le,g,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(x,s,y){if(x>=0&&x<this._microtaskId)return void this._zone.run(()=>s(y));const g=this._animationCallbacksBuffer;0==g.length&&queueMicrotask(()=>{this._zone.run(()=>{g.forEach(I=>{const[Le,et]=I;Le(et)}),this._animationCallbacksBuffer=[]})}
1),g.push([s,y])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const Nc=[{provide:yc,useFactory:function Au(){return new ou}},{provide:ll,useClass:(()=>{class b extends ll{constructor(s,y,g){super(s,y,g,(0,e.WQX)(e.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(y){return new(y||b)(e.KVO(Ce.qQ),e.KVO(vc),e.KVO(yc))};static#t=this.\u0275prov=e.jDH({token:b,factory:b.\u0275fac})}return b})()},{provide:e._9s,useFactory:function ss(b,x,s){return new gd(b,x,s)},deps:[p.B7,ll,e.SKi]}],Is=[{provide:vc,useFactory:()=>new Jh},{provide:e.bc$,useValue:"BrowserAnimations"},...Nc],Ts=[{provide:vc,useClass:_c},{provide:e.bc$,useValue:"NoopAnimations"},...Nc];let Lc=(()=>{class b{static withConfig(s){return{ngModule:b,providers:s.disableAnimations?Ts:Is}}static#e=this.\u0275fac=function(y){return new(y||b)};static#t=this.\u0275mod=e.$C({type:b});static#n=this.\u0275inj=e.G2t({providers:Is,imports:[p.Bb]})}return b})();var bu=R(7419),md=R(964),_d=R(356);let Np=(()=>{class b{static#e=this.\u0275fac=function(y){return new(y||b)};static#t=this.\u0275mod=e.$C({type:b,bootstrap:[Wd]});static#n=this.\u0275inj=e.G2t({providers:[{provide:N.a7,useClass:l.Vw,multi:!0},{provide:N.a7,useClass:l.wZ,multi:!0},bu.Q,{provide:N.a7,useClass:md.H,multi:!0}],imports:[ee.iI,oe.cm,p.Bb,Th,Lc,N.q1,w.X1,w.YN,H._B.forRoot(),v.y2.forRoot(),_d.Nt,ur.VZ]})}return b})();p.sG().bootstrapModule(Np).catch(b=>console.error(b))},7247:en=>{en.exports=function Me(R,p,w){function N(l,W){if(!p[l]){if(!R[l]){if(v)return v(l,!0);var T=new Error("Cannot find module '"+l+"'");throw T.code="MODULE_NOT_FOUND",T}var e=p[l]={exports:{}};R[l][0].call(e.exports,function(K){return N(R[l][1][K]||K)},e,e.exports,Me,R,p,w)}return p[l].exports}for(var v=void 0,ee=0;ee<w.length;ee++)N(w[ee]);return N}({1:[function(Me,R,p){"use strict";var w=Me("./utils"),N=Me("./support"),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";p.encode=function(ee){for(var l,W,B,e,K,H,pe=[],oe=0,Ce=ee.length,we=Ce,Pe="string"!==w.getTypeOf(ee);oe<ee.length;)we=Ce-oe,B=Pe?(l=ee[oe++],W=oe<Ce?ee[oe++]:0,oe<Ce?ee[oe++]:0):(l=ee.charCodeAt(oe++),W=oe<Ce?ee.charCodeAt(oe++):0,oe<Ce?ee.charCodeAt(oe++):0),e=(3&l)<<4|W>>4,K=1<we?(15&W)<<2|B>>6:64,H=2<we?63&B:64,pe.push(v.charAt(l>>2)+v.charAt(e)+v.charAt(K)+v.charAt(H));return pe.join("")},p.decode=function(ee){var l,W,B,T,e,K,H=0,pe=0;if("data:"===ee.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");var Ce,we=3*(ee=ee.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(ee.charAt(ee.length-1)===v.charAt(64)&&we--,ee.charAt(ee.length-2)===v.charAt(64)&&we--,we%1!=0)throw new Error("Invalid base64 input, bad content length.");for(Ce=N.uint8array?new Uint8Array(0|we):new Array(0|we);H<ee.length;)l=v.indexOf(ee.charAt(H++))<<2|(T=v.indexOf(ee.charAt(H++)))>>4,W=(15&T)<<4|(e=v.indexOf(ee.charAt(H++)))>>2,B=(3&e)<<6|(K=v.indexOf(ee.charAt(H++))),Ce[pe++]=l,64!==e&&(Ce[pe++]=W),64!==K&&(Ce[pe++]=B);return Ce}},{"./support":30,"./utils":32}],2:[function(Me,R,p){"use strict";var w=Me("./external"),N=Me("./stream/DataWorker"),v=Me("./stream/Crc32Probe"),ee=Me("./stream/DataLengthProbe");function l(W,B,T,e,K){this.compressedSize=W,this.uncompressedSize=B,this.crc32=T,this.compression=e,this.compressedContent=K}l.prototype={getContentWorker:function(){var W=new N(w.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new ee("data_length")),B=this;return W.on("end",function(){if(this.streamInfo.data_length!==B.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),W},getCompressedWorker:function(){return new N(w.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(W,B,T){return W.pipe(new v).pipe(new ee("uncompressedSize")).pipe(B.compressWorker(T)).pipe(new ee("compressedSize")).withStreamInfo("compression",B)},R.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(Me,R,p){"use strict";var w=Me("./stream/GenericWorker");p.STORE={magic:"\0\0",compressWorker:function(){return new w("STORE compression")},uncompressWorker:function(){return new w("STORE decompression")}},p.DEFLATE=Me("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(Me,R,p){"use strict";var w=Me("./utils"),N=function(){for(var v,ee=[],l=0;l<256;l++){v=l;for(var W=0;W<8;W++)v=1&v?3988292384^v>>>1:v>>>1;ee[l]=v}return ee}();R.exports=function(v,ee){return void 0!==v&&v.length?"string"!==w.getTypeOf(v)?function(l,W,B,T){var e=N,K=0+B;l^=-1;for(var H=0;H<K;H++)l=l>>>8^e[255&(l^W[H])];return~l}(0|ee,v,v.length):function(l,W,B,T){var e=N,K=0+B;l^=-1;for(var H=0;H<K;H++)l=l>>>
vendor: 7,961 bytes, line 1
18^e[255&(l^W.charCodeAt(H))];return~l}(0|ee,v,v.length):0}},{"./utils":32}],5:[function(Me,R,p){"use strict";p.base64=!1,p.binary=!1,p.dir=!1,p.createFolders=!0,p.date=null,p.compression=null,p.compressionOptions=null,p.comment=null,p.unixPermissions=null,p.dosPermissions=null},{}],6:[function(Me,R,p){"use strict";var w;w=typeof Promise<"u"?Promise:Me("lie"),R.exports={Promise:w}},{lie:37}],7:[function(Me,R,p){"use strict";var w=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",N=Me("pako"),v=Me("./utils"),ee=Me("./stream/GenericWorker"),l=w?"uint8array":"array";function W(B,T){ee.call(this,"FlateWorker/"+B),this._pako=null,this._pakoAction=B,this._pakoOptions=T,this.meta={}}p.magic="\b\0",v.inherits(W,ee),W.prototype.processChunk=function(B){this.meta=B.meta,null===this._pako&&this._createPako(),this._pako.push(v.transformTo(l,B.data),!1)},W.prototype.flush=function(){ee.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},W.prototype.cleanUp=function(){ee.prototype.cleanUp.call(this),this._pako=null},W.prototype._createPako=function(){this._pako=new N[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var B=this;this._pako.onData=function(T){B.push({data:T,meta:B.meta})}},p.compressWorker=function(B){return new W("Deflate",B)},p.uncompressWorker=function(){return new W("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(Me,R,p){"use strict";function w(e,K){var H,pe="";for(H=0;H<K;H++)pe+=String.fromCharCode(255&e),e>>>=8;return pe}function N(e,K,H,pe,oe,Ce){var we,Pe,Qe=e.file,ht=e.compression,ot=Ce!==l.utf8encode,gt=v.transformTo("string",Ce(Qe.name)),je=v.transformTo("string",l.utf8encode(Qe.name)),Ct=Qe.comment,kt=v.transformTo("string",Ce(Ct)),We=v.transformTo("string",l.utf8encode(Ct)),at=je.length!==Qe.name.length,le=We.length!==Ct.length,Xe="",Mt="",Et="",Jt=Qe.dir,ct=Qe.date,Gt={crc32:0,compressedSize:0,uncompressedSize:0};K&&!H||(Gt.crc32=e.crc32,Gt.compressedSize=e.compressedSize,Gt.uncompressedSize=e.uncompressedSize);var Te=0;K&&(Te|=8),ot||!at&&!le||(Te|=2048);var Fe,ft,Ze=0,Ne=0;Jt&&(Ze|=16),"UNIX"===oe?(Ne=798,Ze|=(ft=Fe=Qe.unixPermissions,Fe||(ft=Jt?16893:33204),(65535&ft)<<16)):(Ne=20,Ze|=function(Fe){return 63&(Fe||0)}(Qe.dosPermissions)),we=ct.getUTCHours(),we<<=6,we|=ct.getUTCMinutes(),we<<=5,we|=ct.getUTCSeconds()/2,Pe=ct.getUTCFullYear()-1980,Pe<<=4,Pe|=ct.getUTCMonth()+1,Pe<<=5,Pe|=ct.getUTCDate(),at&&(Mt=w(1,1)+w(W(gt),4)+je,Xe+="up"+w(Mt.length,2)+Mt),le&&(Et=w(1,1)+w(W(kt),4)+We,Xe+="uc"+w(Et.length,2)+Et);var Je="";return Je+="\n\0",Je+=w(Te,2),Je+=ht.magic,Je+=w(we,2),Je+=w(Pe,2),Je+=w(Gt.crc32,4),Je+=w(Gt.compressedSize,4),Je+=w(Gt.uncompressedSize,4),Je+=w(gt.length,2),Je+=w(Xe.length,2),{fileRecord:B.LOCAL_FILE_HEADER+Je+gt+Xe,dirRecord:B.CENTRAL_FILE_HEADER+w(Ne,2)+Je+w(kt.length,2)+"\0\0\0\0"+w(Ze,4)+w(pe,4)+gt+Xe+kt}}var v=Me("../utils"),ee=Me("../stream/GenericWorker"),l=Me("../utf8"),W=Me("../crc32"),B=Me("../signature");function T(e,K,H,pe){ee.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=K,this.zipPlatform=H,this.encodeFileName=pe,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(T,ee),T.prototype.push=function(e){var K=e.meta.percent||0,H=this.entriesCount,pe=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,ee.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:H?(K+100*(H-pe-1))/H:100}}))},T.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var K=this.streamFiles&&!e.file.dir;if(K){var H=N(e,K,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:H.fileRecord,meta:{percent:0}})}else this.accumulate=!0},T.prototype.closedSource=function(e){this.accumulate=!1;var pe,K=this.streamFiles&&!e.file.dir,H=N(e,K,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(H.dirRecord),K)this.push({data:(pe=e,B.DATA_DESCRIPTOR+w(pe.crc32,4)+w(pe.compressedSize,4)+w(pe.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:H.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},T.prototype.flush=function(){for(var e=this.bytesWritten,K=0;K<this.dirRecords.length;K++)this.push({data:this.dirRecords[K],meta:{percent:100}});var oe,Ce,we,ht,pe=(oe=this.dirRecords.length,Ce=this.bytesWritten-e,we=e,ht=v.transformTo("string",(0,this.encodeFileName)(this.zipComment)),B.CENTRAL_DIRECTORY_END+"\0\0\0\0"+w(oe,2)+w(oe,2)+w(Ce,4)+w(we,4)+w(ht.length,2)+ht);this.push({data:pe,meta:{percent:100}})},T.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},T.prototype.registerPrevious=function(e){this._sources.push(e);var K=this;return e.on("data",function(H){K.processChunk(H)}),e.on("end",function(){K.closedSource(K.previous.streamInfo),K._sources.length?K.prepareNextSource():K.end()}),e.on("error",function(H){K.error(H)}),this},T.prototype.resume=function(){return!!ee.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},T.prototype.error=function(e){var K=this._sources;if(!ee.prototype.error.call(this,e))return!1;for(var H=0;H<K.length;H++)try{K[H].error(e)}catch{}return!0},T.prototype.lock=function(){ee.prototype.lock.call(this);for(var e=this._sources,K=0;K<e.length;K++)e[K].lock()},R.exports=T},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(Me,R,p){"use strict";var w=Me("../compressions"),N=Me("./ZipFileWorker");p.generateWorker=function(v,ee,l){var W=new N(ee.streamFiles,l,ee.platform,ee.encodeFileName),B=0;try{v.forEach(function(T,e){B++;var K=function(Ce,we){var Pe=Ce||we,Qe=w[Pe];if(!Qe)throw new Error(Pe+" is not a valid compression method !");return Qe}(e.options.compression,ee.compression),pe=e.dir,oe=e.date;e._compressWorker(K,e.options.compressionOptions||ee.compressionOptions||{}).withStreamInfo("file",{name:T,dir:pe,date:oe,comment:e.comment||"",unixPermissions:e.unixPermissions,dosPermissions:e.dosPermissions}).pipe(W)}),W.entriesCount=B}catch(T){W.error(T)}return W}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(Me,R,p){"use strict";function w(){if(!(this instanceof w))return new w;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 N=new w;for(var v in this)"function"!=typeof this[v]&&(N[v]=this[v]);return N}}(w.prototype=Me("./object")).loadAsync=Me("./load"),w.support=Me("./support"),w.defaults=Me("./defaults"),w.version="3.10.1",w.loadAsync=function(N,v){return(new w).loadAsync(N,v)},w.external=Me("./external"),R.exports=w},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(Me,R,p){"use strict";var w=Me("./utils"),N=Me("./external"),v=Me("./utf8"),ee=Me("./zipEntries"),l=Me("./stream/Crc32Probe"),W=Me("./nodejsUtils");function B(T){return new N.Promise(function(e,K){var H=T.decompressed.getContentWorker().pipe(new l);H.on("error",function(pe){K(pe)}).on("end",function(){H.streamInfo.crc32!==T.decompressed.crc32?K(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}R.exports=function(T,e){var K=this;return e=w.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:v.utf8decode}),W.isNode&&W.isStream(T)?N.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):w.prepareContent("the loaded zip f
1ile",T,!0,e.optimizedBinaryString,e.base64).then(function(H){var pe=new ee(e);return pe.load(H),pe}).then(function(H){var pe=[N.Promise.resolve(H)],oe=H.files;if(e.checkCRC32)for(var Ce=0;Ce<oe.length;Ce++)pe.push(B(oe[Ce]));return N.Promise.all(pe)}).then(function(H){for(var pe=H.shift(),oe=pe.files,Ce=0;Ce<oe.length;Ce++){var we=oe[Ce],Pe=we.fileNameStr,Qe=w.resolve(we.fileNameStr);K.file(Qe,we.decompressed,{binary:!0,optimizedBinaryString:!0,date:we.date,dir:we.dir,comment:we.fileCommentStr.length?we.fileCommentStr:null,unixPermissions:we.unixPermissions,dosPermissions:we.dosPermissions,createFolders:e.createFolders}),we.dir||(K.file(Qe).unsafeOriginalName=Pe)}return pe.zipComment.length&&(K.comment=pe.zipComment),K})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(Me,R,p){"use strict";var w=Me("../utils"),N=Me("../stream/GenericWorker");function v(ee,l){N.call(this,"Nodejs stream input adapter for "+ee),this._upstreamEnded=!1,this._bindStream(l)}w.inherits(v,N),v.prototype._bindStream=function(ee){var l=this;(this._stream=ee).pause(),ee.on("data",function(W){l.push({data:W,meta:{percent:0}})}).on("error",function(W){l.isPaused?this.generatedError=W:l.error(W)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},v.prototype.pause=function(){return!!N.prototype.pause.call(this)&&(this._stream.pause(),!0)},v.prototype.resume=function(){return!!N.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},R.exports=v},{"../stream/GenericWorker":28,"../utils":32}],13:[function(Me,R,p){"use strict";var w=Me("readable-stream").Readable;function N(v,ee,l){w.call(this,ee),this._helper=v;var W=this;v.on("data",function(B,T){W.push(B)||W._helper.pause(),l&&l(T)}).on("error",function(B){W.emit("error",B)}).on("end",function(){W.push(null)})}Me("../utils").inherits(N,w),N.prototype._read=function(){this._helper.resume()},R.exports=N},{"../utils":32,"readable-stream":16}],14:[function(Me,R,p){"use strict";R.exports={isNode:typeof Buffer<"u",newBufferFrom:function(w,N){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(w,N);if("number"==typeof w)throw new Error('The "data" argument must not be a number');return new Buffer(w,N)},allocBuffer:function(w){if(Buffer.alloc)return Buffer.alloc(w);var N=new Buffer(w);return N.fill(0),N},isBuffer:function(w){return Buffer.isBuffer(w)},isStream:function(w){return w&&"function"==typeof w.on&&"function"==typeof w.pause&&"function"==typeof w.resume}}},{}],15:[function(Me,R,p){"use strict";function w(Qe,ht,ot){var gt,je=v.getTypeOf(ht),Ct=v.extend(ot||{},W);Ct.date=Ct.date||new Date,null!==Ct.compression&&(Ct.compression=Ct.compression.toUpperCase()),"string"==typeof Ct.unixPermissions&&(Ct.unixPermissions=parseInt(Ct.unixPermissions,8)),Ct.unixPermissions&&16384&Ct.unixPermissions&&(Ct.dir=!0),Ct.dosPermissions&&16&Ct.dosPermissions&&(Ct.dir=!0),Ct.dir&&(Qe=oe(Qe)),Ct.createFolders&&(gt=pe(Qe))&&Ce.call(this,gt,!0),ot&&void 0!==ot.binary||(Ct.binary=!("string"===je&&!1===Ct.binary&&!1===Ct.base64)),(ht instanceof B&&0===ht.uncompressedSize||Ct.dir||!ht||0===ht.length)&&(Ct.base64=!1,Ct.binary=!0,ht="",Ct.compression="STORE",je="string");var We;We=ht instanceof B||ht instanceof ee?ht:K.isNode&&K.isStream(ht)?new H(Qe,ht):v.prepareContent(Qe,ht,Ct.binary,Ct.optimizedBinaryString,Ct.base64);var at=new T(Qe,We,Ct);this.files[Qe]=at}var N=Me("./utf8"),v=Me("./utils"),ee=Me("./stream/GenericWorker"),l=Me("./stream/StreamHelper"),W=Me("./defaults"),B=Me("./compressedObject"),T=Me("./zipObject"),e=Me("./generate"),K=Me("./nodejsUtils"),H=Me("./nodejs/NodejsStreamInputAdapter"),pe=function(Qe){"/"===Qe.slice(-1)&&(Qe=Qe.substring(0,Qe.length-1));var ht=Qe.lastIndexOf("/");return 0<ht?Qe.substring(0,ht):""},oe=function(Qe){return"/"!==Qe.slice(-1)&&(Qe+="/"),Qe},Ce=function(Qe,ht){return ht=void 0!==ht?ht:W.createFolders,Qe=oe(Qe),this.files[Qe]||w.call(this,Qe,null,{dir:!0,createFolders:ht}),this.files[Qe]};function we(Qe){return"[object RegExp]"===Object.prototype.toString.call(Qe)}var Pe={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 6,465 bytes, line 1
1,forEach:function(Qe){var ht,ot,gt;for(ht in this.files)gt=this.files[ht],(ot=ht.slice(this.root.length,ht.length))&&ht.slice(0,this.root.length)===this.root&&Qe(ot,gt)},filter:function(Qe){var ht=[];return this.forEach(function(ot,gt){Qe(ot,gt)&&ht.push(gt)}),ht},file:function(Qe,ht,ot){if(1!==arguments.length)return w.call(this,Qe=this.root+Qe,ht,ot),this;if(we(Qe)){var gt=Qe;return this.filter(function(Ct,kt){return!kt.dir&&gt.test(Ct)})}var je=this.files[this.root+Qe];return je&&!je.dir?je:null},folder:function(Qe){if(!Qe)return this;if(we(Qe))return this.filter(function(je,Ct){return Ct.dir&&Qe.test(je)});var ot=Ce.call(this,this.root+Qe),gt=this.clone();return gt.root=ot.name,gt},remove:function(Qe){var ht=this.files[Qe=this.root+Qe];if(ht||("/"!==Qe.slice(-1)&&(Qe+="/"),ht=this.files[Qe]),ht&&!ht.dir)delete this.files[Qe];else for(var ot=this.filter(function(je,Ct){return Ct.name.slice(0,Qe.length)===Qe}),gt=0;gt<ot.length;gt++)delete this.files[ot[gt].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Qe){var ht,ot={};try{if((ot=v.extend(Qe||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:N.utf8encode})).type=ot.type.toLowerCase(),ot.compression=ot.compression.toUpperCase(),"binarystring"===ot.type&&(ot.type="string"),!ot.type)throw new Error("No output type specified.");v.checkSupport(ot.type),"darwin"!==ot.platform&&"freebsd"!==ot.platform&&"linux"!==ot.platform&&"sunos"!==ot.platform||(ot.platform="UNIX"),"win32"===ot.platform&&(ot.platform="DOS"),ht=e.generateWorker(this,ot,ot.comment||this.comment||"")}catch(je){(ht=new ee("error")).error(je)}return new l(ht,ot.type||"string",ot.mimeType)},generateAsync:function(Qe,ht){return this.generateInternalStream(Qe).accumulate(ht)},generateNodeStream:function(Qe,ht){return(Qe=Qe||{}).type||(Qe.type="nodebuffer"),this.generateInternalStream(Qe).toNodejsStream(ht)}};R.exports=Pe},{"./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(Me,R,p){"use strict";R.exports=Me("stream")},{stream:void 0}],17:[function(Me,R,p){"use strict";var w=Me("./DataReader");function N(v){w.call(this,v);for(var ee=0;ee<this.data.length;ee++)v[ee]=255&v[ee]}Me("../utils").inherits(N,w),N.prototype.byteAt=function(v){return this.data[this.zero+v]},N.prototype.lastIndexOfSignature=function(v){for(var ee=v.charCodeAt(0),l=v.charCodeAt(1),W=v.charCodeAt(2),B=v.charCodeAt(3),T=this.length-4;0<=T;--T)if(this.data[T]===ee&&this.data[T+1]===l&&this.data[T+2]===W&&this.data[T+3]===B)return T-this.zero;return-1},N.prototype.readAndCheckSignature=function(v){var ee=v.charCodeAt(0),l=v.charCodeAt(1),W=v.charCodeAt(2),B=v.charCodeAt(3),T=this.readData(4);return ee===T[0]&&l===T[1]&&W===T[2]&&B===T[3]},N.prototype.readData=function(v){if(this.checkOffset(v),0===v)return[];var ee=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,ee},R.exports=N},{"../utils":32,"./DataReader":18}],18:[function(Me,R,p){"use strict";var w=Me("../utils");function N(v){this.data=v,this.length=v.length,this.index=0,this.zero=0}N.prototype={checkOffset:function(v){this.checkIndex(this.index+v)},checkIndex:function(v){if(this.length<this.zero+v||v<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+v+"). Corrupted zip ?")},setIndex:function(v){this.checkIndex(v),this.index=v},skip:function(v){this.setIndex(this.index+v)},byteAt:function(){},readInt:function(v){var ee,l=0;for(this.checkOffset(v),ee=this.index+v-1;ee>=this.index;ee--)l=(l<<8)+this.byteAt(ee);return this.index+=v,l},readString:function(v){return w.transformTo("string",this.readData(v))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var v=this.readInt(4);return new Date(Date.UTC(1980+(v>>25&127),(v>>21&15)-1,v>>16&31,v>>11&31,v>>5&63,(31&v)<<1))}},R.exports=N},{"../utils":32}],19:[function(Me,R,p){"use strict";var w=Me("./Uint8ArrayReader");function N(v){w.call(this,v)}Me("../utils").inherits(N,w),N.prototype.readData=function(v){this.checkOffset(v);var ee=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,ee},R.exports=N},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(Me,R,p){"use strict";var w=Me("./DataReader");function N(v){w.call(this,v)}Me("../utils").inherits(N,w),N.prototype.byteAt=function(v){return this.data.charCodeAt(this.zero+v)},N.prototype.lastIndexOfSignature=function(v){return this.data.lastIndexOf(v)-this.zero},N.prototype.readAndCheckSignature=function(v){return v===this.readData(4)},N.prototype.readData=function(v){this.checkOffset(v);var ee=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,ee},R.exports=N},{"../utils":32,"./DataReader":18}],21:[function(Me,R,p){"use strict";var w=Me("./ArrayReader");function N(v){w.call(this,v)}Me("../utils").inherits(N,w),N.prototype.readData=function(v){if(this.checkOffset(v),0===v)return new Uint8Array(0);var ee=this.data.subarray(this.zero+this.index,this.zero+this.index+v);return this.index+=v,ee},R.exports=N},{"../utils":32,"./ArrayReader":17}],22:[function(Me,R,p){"use strict";var w=Me("../utils"),N=Me("../support"),v=Me("./ArrayReader"),ee=Me("./StringReader"),l=Me("./NodeBufferReader"),W=Me("./Uint8ArrayReader");R.exports=function(B){var T=w.getTypeOf(B);return w.checkSupport(T),"string"!==T||N.uint8array?"nodebuffer"===T?new l(B):N.uint8array?new W(w.transformTo("uint8array",B)):new v(w.transformTo("array",B)):new ee(B)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(Me,R,p){"use strict";p.LOCAL_FILE_HEADER="PK\x03\x04",p.CENTRAL_FILE_HEADER="PK\x01\x02",p.CENTRAL_DIRECTORY_END="PK\x05\x06",p.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",p.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",p.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(Me,R,p){"use strict";var w=Me("./GenericWorker"),N=Me("../utils");function v(ee){w.call(this,"ConvertWorker to "+ee),this.destType=ee}N.inherits(v,w),v.prototype.processChunk=function(ee){this.push({data:N.transformTo(this.destType,ee.data),meta:ee.meta}
vendor: 4,964 bytes, line 1
1)},R.exports=v},{"../utils":32,"./GenericWorker":28}],25:[function(Me,R,p){"use strict";var w=Me("./GenericWorker"),N=Me("../crc32");function v(){w.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Me("../utils").inherits(v,w),v.prototype.processChunk=function(ee){this.streamInfo.crc32=N(ee.data,this.streamInfo.crc32||0),this.push(ee)},R.exports=v},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(Me,R,p){"use strict";var w=Me("../utils"),N=Me("./GenericWorker");function v(ee){N.call(this,"DataLengthProbe for "+ee),this.propName=ee,this.withStreamInfo(ee,0)}w.inherits(v,N),v.prototype.processChunk=function(ee){ee&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+ee.data.length),N.prototype.processChunk.call(this,ee)},R.exports=v},{"../utils":32,"./GenericWorker":28}],27:[function(Me,R,p){"use strict";var w=Me("../utils"),N=Me("./GenericWorker");function v(ee){N.call(this,"DataWorker");var l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,ee.then(function(W){l.dataIsReady=!0,l.data=W,l.max=W&&W.length||0,l.type=w.getTypeOf(W),l.isPaused||l._tickAndRepeat()},function(W){l.error(W)})}w.inherits(v,N),v.prototype.cleanUp=function(){N.prototype.cleanUp.call(this),this.data=null},v.prototype.resume=function(){return!!N.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,w.delay(this._tickAndRepeat,[],this)),!0)},v.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(w.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},v.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var ee=null,l=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":ee=this.data.substring(this.index,l);break;case"uint8array":ee=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":ee=this.data.slice(this.index,l)}return this.index=l,this.push({data:ee,meta:{percent:this.max?this.index/this.max*100:0}})},R.exports=v},{"../utils":32,"./GenericWorker":28}],28:[function(Me,R,p){"use strict";function w(N){this.name=N||"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}w.prototype={push:function(N){this.emit("data",N)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(N){this.emit("error",N)}return!0},error:function(N){return!this.isFinished&&(this.isPaused?this.generatedError=N:(this.isFinished=!0,this.emit("error",N),this.previous&&this.previous.error(N),this.cleanUp()),!0)},on:function(N,v){return this._listeners[N].push(v),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(N,v){if(this._listeners[N])for(var ee=0;ee<this._listeners[N].length;ee++)this._listeners[N][ee].call(this,v)},pipe:function(N){return N.registerPrevious(this)},registerPrevious:function(N){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=N.streamInfo,this.mergeStreamInfo(),this.previous=N;var v=this;return N.on("data",function(ee){v.processChunk(ee)}),N.on("end",function(){v.end()}),N.on("error",function(ee){v.error(ee)}),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 N=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),N=!0),this.previous&&this.previous.resume(),!N},flush:function(){},processChunk:function(N){this.push(N)},withStreamInfo:function(N,v){return this.extraStreamInfo[N]=v,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var N in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,N)&&(this.streamInfo[N]=this.extraStreamInfo[N])},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 N="Worker "+this.name;return this.previous?this.previous+" -> "+N:N}},R.exports=w},{}],29:[function(Me,R,p){"use strict";var w=Me("../utils"),N=Me("./ConvertWorker"),v=Me("./GenericWorker"),ee=Me("../base64"),l=Me("../support"),W=Me("../external"),B=null;if(l.nodestream)try{B=Me("../nodejs/NodejsStreamOutputAdapter")}catch{}function e(K,H,pe){var oe=H;switch(H){case"blob":case"arraybuffer":oe="uint8array";break;case"base64":oe="string"}try{this._internalType=oe,this._outputType=H,this._mimeType=pe,w.checkSupport(oe),this._worker=K.pipe(new N(oe)),K.lock()}catch(Ce){this._worker=new v("error"),this._worker.error(Ce)}}e.prototype={accumulate:function(K){return function T(K,H){return new W.Promise(function(pe,oe){var 
vendor: 12,412 bytes, line 1
1Ce=[],we=K._internalType,Pe=K._outputType,Qe=K._mimeType;K.on("data",function(ht,ot){Ce.push(ht),H&&H(ot)}).on("error",function(ht){Ce=[],oe(ht)}).on("end",function(){try{var ht=function(ot,gt,je){switch(ot){case"blob":return w.newBlob(w.transformTo("arraybuffer",gt),je);case"base64":return ee.encode(gt);default:return w.transformTo(ot,gt)}}(Pe,function(ot,gt){var je,Ct=0,kt=null,We=0;for(je=0;je<gt.length;je++)We+=gt[je].length;switch(ot){case"string":return gt.join("");case"array":return Array.prototype.concat.apply([],gt);case"uint8array":for(kt=new Uint8Array(We),je=0;je<gt.length;je++)kt.set(gt[je],Ct),Ct+=gt[je].length;return kt;case"nodebuffer":return Buffer.concat(gt);default:throw new Error("concat : unsupported type '"+ot+"'")}}(we,Ce),Qe);pe(ht)}catch(ot){oe(ot)}Ce=[]}).resume()})}(this,K)},on:function(K,H){var pe=this;return this._worker.on(K,"data"===K?function(oe){H.call(pe,oe.data,oe.meta)}:function(){w.delay(H,arguments,pe)}),this},resume:function(){return w.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(K){if(w.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new B(this,{objectMode:"nodebuffer"!==this._outputType},K)}},R.exports=e},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(Me,R,p){"use strict";if(p.base64=!0,p.array=!0,p.string=!0,p.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",p.nodebuffer=typeof Buffer<"u",p.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")p.blob=!1;else{var w=new ArrayBuffer(0);try{p.blob=0===new Blob([w],{type:"application/zip"}).size}catch{try{var N=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);N.append(w),p.blob=0===N.getBlob("application/zip").size}catch{p.blob=!1}}}try{p.nodestream=!!Me("readable-stream").Readable}catch{p.nodestream=!1}},{"readable-stream":16}],31:[function(Me,R,p){"use strict";for(var w=Me("./utils"),N=Me("./support"),v=Me("./nodejsUtils"),ee=Me("./stream/GenericWorker"),l=new Array(256),W=0;W<256;W++)l[W]=252<=W?6:248<=W?5:240<=W?4:224<=W?3:192<=W?2:1;function B(){ee.call(this,"utf-8 decode"),this.leftOver=null}function T(){ee.call(this,"utf-8 encode")}l[254]=l[254]=1,p.utf8encode=function(e){return N.nodebuffer?v.newBufferFrom(e,"utf-8"):function(K){var H,pe,oe,Ce,we,Pe=K.length,Qe=0;for(Ce=0;Ce<Pe;Ce++)55296==(64512&(pe=K.charCodeAt(Ce)))&&Ce+1<Pe&&56320==(64512&(oe=K.charCodeAt(Ce+1)))&&(pe=65536+(pe-55296<<10)+(oe-56320),Ce++),Qe+=pe<128?1:pe<2048?2:pe<65536?3:4;for(H=N.uint8array?new Uint8Array(Qe):new Array(Qe),Ce=we=0;we<Qe;Ce++)55296==(64512&(pe=K.charCodeAt(Ce)))&&Ce+1<Pe&&56320==(64512&(oe=K.charCodeAt(Ce+1)))&&(pe=65536+(pe-55296<<10)+(oe-56320),Ce++),pe<128?H[we++]=pe:(pe<2048?H[we++]=192|pe>>>6:(pe<65536?H[we++]=224|pe>>>12:(H[we++]=240|pe>>>18,H[we++]=128|pe>>>12&63),H[we++]=128|pe>>>6&63),H[we++]=128|63&pe);return H}(e)},p.utf8decode=function(e){return N.nodebuffer?w.transformTo("nodebuffer",e).toString("utf-8"):function(K){var H,pe,oe,Ce,we=K.length,Pe=new Array(2*we);for(H=pe=0;H<we;)if((oe=K[H++])<128)Pe[pe++]=oe;else if(4<(Ce=l[oe]))Pe[pe++]=65533,H+=Ce-1;else{for(oe&=2===Ce?31:3===Ce?15:7;1<Ce&&H<we;)oe=oe<<6|63&K[H++],Ce--;1<Ce?Pe[pe++]=65533:oe<65536?Pe[pe++]=oe:(Pe[pe++]=55296|(oe-=65536)>>10&1023,Pe[pe++]=56320|1023&oe)}return Pe.length!==pe&&(Pe.subarray?Pe=Pe.subarray(0,pe):Pe.length=pe),w.applyFromCharCode(Pe)}(e=w.transformTo(N.uint8array?"uint8array":"array",e))},w.inherits(B,ee),B.prototype.processChunk=function(e){var K=w.transformTo(N.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(N.uint8array){var H=K;(K=new Uint8Array(H.length+this.leftOver.length)).set(this.leftOver,0),K.set(H,this.leftOver.length)}else K=this.leftOver.concat(K);this.leftOver=null}var pe=function(Ce,we){var Pe;for((we=we||Ce.length)>Ce.length&&(we=Ce.length),Pe=we-1;0<=Pe&&128==(192&Ce[Pe]);)Pe--;return Pe<0||0===Pe?we:Pe+l[Ce[Pe]]>we?Pe:we}(K),oe=K;pe!==K.length&&(N.uint8array?(oe=K.subarray(0,pe),this.leftOver=K.subarray(pe,K.length)):(oe=K.slice(0,pe),this.leftOver=K.slice(pe,K.length))),this.push({data:p.utf8decode(oe),meta:e.meta})},B.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:p.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},p.Utf8DecodeWorker=B,w.inherits(T,ee),T.prototype.processChunk=function(e){this.push({data:p.utf8encode(e.data),meta:e.meta})},p.Utf8EncodeWorker=T},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(Me,R,p){"use strict";var w=Me("./support"),N=Me("./base64"),v=Me("./nodejsUtils"),ee=Me("./external");function l(H){return H}function W(H,pe){for(var oe=0;oe<H.length;++oe)pe[oe]=255&H.charCodeAt(oe);return pe}Me("setimmediate"),p.newBlob=function(H,pe){p.checkSupport("blob");try{return new Blob([H],{type:pe})}catch{try{var oe=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return oe.append(H),oe.getBlob(pe)}catch{throw new Error("Bug : can't construct the Blob.")}}};var B={stringifyByChunk:function(H,pe,oe){var Ce=[],we=0,Pe=H.length;if(Pe<=oe)return String.fromCharCode.apply(null,H);for(;we<Pe;)Ce.push(String.fromCharCode.apply(null,"array"===pe||"nodebuffer"===pe?H.slice(we,Math.min(we+oe,Pe)):H.subarray(we,Math.min(we+oe,Pe)))),we+=oe;return Ce.join("")},stringifyByChar:function(H){for(var pe="",oe=0;oe<H.length;oe++)pe+=String.fromCharCode(H[oe]);return pe},applyCanBeUsed:{uint8array:function(){try{return w.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{return!1}}(),nodebuffer:function(){try{return w.nodebuffer&&1===String.fromCharCode.apply(null,v.allocBuffer(1)).length}catch{return!1}}()}};function T(H){var pe=65536,oe=p.getTypeOf(H),Ce=!0;if("uint8array"===oe?Ce=B.applyCanBeUsed.uint8array:"nodebuffer"===oe&&(Ce=B.applyCanBeUsed.nodebuffer),Ce)for(;1<pe;)try{return B.stringifyByChunk(H,oe,pe)}catch{pe=Math.floor(pe/2)}return B.stringifyByChar(H)}function e(H,pe){for(var oe=0;oe<H.length;oe++)pe[oe]=H[oe];return pe}p.applyFromCharCode=T;var K={};K.string={string:l,array:function(H){return W(H,new Array(H.length))},arraybuffer:function(H){return K.string.uint8array(H).buffer},uint8array:function(H){return W(H,new Uint8Array(H.length))},nodebuffer:function(H){return W(H,v.allocBuffer(H.length))}},K.array={string:T,array:l,arraybuffer:function(H){return new Uint8Array(H).buffer},uint8array:function(H){return new Uint8Array(H)},nodebuffer:function(H){return v.newBufferFrom(H)}},K.arraybuffer={string:function(H){return T(new Uint8Array(H))},array:function(H){return e(new Uint8Array(H),new Array(H.byteLength))},arraybuffer:l,uint8array:function(H){return new Uint8Array(H)},nodebuffer:function(H){return v.newBufferFrom(new Uint8Array(H))}},K.uint8array={string:T,array:function(H){return e(H,new Array(H.length))},arraybuffer:function(H){return H.buffer},uint8array:l,nodebuffer:function(H){return v.newBufferFrom(H)}},K.nodebuffer={string:T,array:function(H){return e(H,new Array(H.length))},arraybuffer:function(H){return K.nodebuffer.uint8array(H).buffer},uint8array:function(H){return e(H,new Uint8Array(H.length))},nodebuffer:l},p.transformTo=function(H,pe){if(pe=pe||"",!H)return pe;p.checkSupport(H);var oe=p.getTypeOf(pe);return K[oe][H](pe)},p.resolve=function(H){for(var pe=H.split("/"),oe=[],Ce=0;Ce<pe.length;Ce++){var we=pe[Ce];"."===we||""===we&&0!==Ce&&Ce!==pe.length-1||(".."===we?oe.pop():oe.push(we))}return oe.join("/")},p.getTypeOf=function(H){return"string"==typeof H?"string":"[object Array]"===Object.prototype.toString.call(H)?"array":w.nodebuffer&&v.isBuffer(H)?"nodebuffer":w.uint8array&&H instanceof Uint8Array?"uint8array":w.arraybuffer&&H instanceof ArrayBuffer?"arraybuffer":void 0},p.checkSupport=function(H){if(!w[H.toLowerCase()])throw new Error(H+" is not supported by this platform")},p.MAX_VALUE_16BITS=65535,p.MAX_VALUE_32BITS=-1,p.pretty=function(H){var pe,oe,Ce="";for(oe=0;oe<(H||"").length;oe++)Ce+="\\x"+((pe=H.charCodeAt(oe))<16?"0":"")+pe.toString(16).toUpperCase();return Ce},p.delay=function(H,pe,oe){setImmediate(function(){H.apply(oe||null,pe||[])})},p.inherits=function(H,pe){function oe(){}oe.prototype=pe.prototype,H.prototype=new oe},p.extend=function(){var H,pe,oe={};for(H=0;H<arguments.length;H++)for(pe in arguments[H])Object.prototype.hasOwnProperty.call(arguments[H],pe)&&void 0===oe[pe]&&(oe[pe]=arguments[H][pe]);return oe},p.prepareContent=function(H,pe,oe,Ce,we){return ee.Promise.resolve(pe).then(function(Pe){return w.blob&&(Pe instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(Pe)))&&typeof FileReader<"u"?new ee.Promise(function(Qe,ht){var ot=new FileReader;ot.onload=function(gt){Qe(gt.target.result)},ot.onerror=function(gt){ht(gt.target.error)},ot.readAsArrayBuffer(Pe)}):Pe}).then(function(Pe){var ht,Qe=p.getTypeOf(Pe);return Qe?("arraybuffer"===Qe?Pe=p.transformTo("uint8array",Pe):"string"===Qe&&(we?Pe=N.decode(Pe):oe&&!0!==Ce&&(Pe=W(ht=Pe,w.uint8array?new Uint8Array(ht.length):new Array(ht.length)))),Pe):ee.Promise.reject(new Error("Can't read the data of '"+H+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(Me,R,p){"use strict";var w=Me("./reader/readerFor"),N=Me("./utils"),v=Me("./signature"),ee=Me("./zipEntry"),l=Me("./support");function W(B){this.files=[],this.loadOptions=B}W.prototype={checkSignature:function(B){if(!this.reader.readAndCheckSignature(B)){this.reader.index-=4;var T=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+N.pretty(T)+", expected "+N.pretty(B)+")")}},isSignature:function(B,T){var e=this.reader.index;this.reader.setIndex(B);var K=this.reader.readString(4)===T;return this.reader.setIndex(e),K},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 B=this.reader.readData(this.zipCommentLength),e=N.transformTo(l.uint8array?"uint8array":"array",B);this.zipComment=this.loadOptions.decodeFileName(e)},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 B,T,e,K=this.zip64EndOfCentralSize-44;0<K;)B=this.reader.readInt(2),T=this.reader.readInt(4),e=this.reader.readData(T),this.zip64ExtensibleData[B]={id:B,length:T,value:e}},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 B,T;for(B=0;B<this.files.length;B++)this.reader.setIndex((T=this.files[B]).localHeaderOffset),this.checkSignature(v.LOCAL_FILE_HEADER),T.readLocalPart(this.reader),T.handleUTF8(),T.processAttributes()},readCentralDir:function(){var B;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(v.CENTRAL_FILE_HEADER);)(B=new ee({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(B);if(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 B=this.reader.lastIndexOfSignature(v.CENTRAL_DIRECTORY_END);if(B<0)throw this.isSignature(0,v.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 f
1ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(B);var T=B;if(this.checkSignature(v.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===N.MAX_VALUE_16BITS||this.diskWithCentralDirStart===N.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===N.MAX_VALUE_16BITS||this.centralDirRecords===N.MAX_VALUE_16BITS||this.centralDirSize===N.MAX_VALUE_32BITS||this.centralDirOffset===N.MAX_VALUE_32BITS){if(this.zip64=!0,(B=this.reader.lastIndexOfSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(B),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,v.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(v.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(v.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var e=this.centralDirOffset+this.centralDirSize;this.zip64&&(e+=20,e+=12+this.zip64EndOfCentralSize);var K=T-e;if(0<K)this.isSignature(T,v.CENTRAL_FILE_HEADER)||(this.reader.zero=K);else if(K<0)throw new Error("Corrupted zip: missing "+Math.abs(K)+" bytes.")},prepareReader:function(B){this.reader=w(B)},load:function(B){this.prepareReader(B),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},R.exports=W},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(Me,R,p){"use strict";var w=Me("./reader/readerFor"),N=Me("./utils"),v=Me("./compressedObject"),ee=Me("./crc32"),l=Me("./utf8"),W=Me("./compressions"),B=Me("./support");function T(e,K){this.options=e,this.loadOptions=K}T.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var K,H;if(e.skip(22),this.fileNameLength=e.readInt(2),H=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(H),-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===(K=function(pe){for(var oe in W)if(Object.prototype.hasOwnProperty.call(W,oe)&&W[oe].magic===pe)return W[oe];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+N.pretty(this.compressionMethod)+" unknown (inner file : "+N.transformTo("string",this.fileName)+")");this.decompressed=new v(this.compressedSize,this.uncompressedSize,this.crc32,K,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var K=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(K),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=w(this.extraFields[1].value);this.uncompressedSize===N.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===N.MAX_VALUE_32BITS&&
vendor: 2,460 bytes, line 1
1(this.compressedSize=e.readInt(8)),this.localHeaderOffset===N.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===N.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var K,H,pe,oe=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<oe;)K=e.readInt(2),H=e.readInt(2),pe=e.readData(H),this.extraFields[K]={id:K,length:H,value:pe};e.setIndex(oe)},handleUTF8:function(){var e=B.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var K=this.findExtraFieldUnicodePath();if(null!==K)this.fileNameStr=K;else{var H=N.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(H)}var pe=this.findExtraFieldUnicodeComment();if(null!==pe)this.fileCommentStr=pe;else{var oe=N.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(oe)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var K=w(e.value);return 1!==K.readInt(1)||ee(this.fileName)!==K.readInt(4)?null:l.utf8decode(K.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var K=w(e.value);return 1!==K.readInt(1)||ee(this.fileComment)!==K.readInt(4)?null:l.utf8decode(K.readData(e.length-5))}return null}},R.exports=T},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(Me,R,p){"use strict";function w(K,H,pe){this.name=K,this.dir=pe.dir,this.date=pe.date,this.comment=pe.comment,this.unixPermissions=pe.unixPermissions,this.dosPermissions=pe.dosPermissions,this._data=H,this._dataBinary=pe.binary,this.options={compression:pe.compression,compressionOptions:pe.compressionOptions}}var N=Me("./stream/StreamHelper"),v=Me("./stream/DataWorker"),ee=Me("./utf8"),l=Me("./compressedObject"),W=Me("./stream/GenericWorker");w.prototype={internalStream:function(K){var H=null,pe="string";try{if(!K)throw new Error("No output type specified.");var oe="string"===(pe=K.toLowerCase())||"text"===pe;"binarystring"!==pe&&"text"!==pe||(pe="string"),H=this._decompressWorker();var Ce=!this._dataBinary;Ce&&!oe&&(H=H.pipe(new ee.Utf8EncodeWorker)),!Ce&&oe&&(H=H.pipe(new ee.Utf8DecodeWorker))}catch(we){(H=new W("error")).error(we)}return new N(H,pe,"")},async:function(K,H){return this.internalStream(K).accumulate(H)}
vendor: 20,371 bytes, line 1
1,nodeStream:function(K,H){return this.internalStream(K||"nodebuffer").toNodejsStream(H)},_compressWorker:function(K,H){if(this._data instanceof l&&this._data.compression.magic===K.magic)return this._data.getCompressedWorker();var pe=this._decompressWorker();return this._dataBinary||(pe=pe.pipe(new ee.Utf8EncodeWorker)),l.createWorkerFrom(pe,K,H)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof W?this._data:new v(this._data)}};for(var B=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],T=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},e=0;e<B.length;e++)w.prototype[B[e]]=T;R.exports=w},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(Me,R,p){(function(w){"use strict";var N,v,ee=w.MutationObserver||w.WebKitMutationObserver;if(ee){var l=0,W=new ee(K),B=w.document.createTextNode("");W.observe(B,{characterData:!0}),N=function(){B.data=l=++l%2}}else if(w.setImmediate||void 0===w.MessageChannel)N="document"in w&&"onreadystatechange"in w.document.createElement("script")?function(){var H=w.document.createElement("script");H.onreadystatechange=function(){K(),H.onreadystatechange=null,H.parentNode.removeChild(H),H=null},w.document.documentElement.appendChild(H)}:function(){setTimeout(K,0)};else{var T=new w.MessageChannel;T.port1.onmessage=K,N=function(){T.port2.postMessage(0)}}var e=[];function K(){var H,pe;v=!0;for(var oe=e.length;oe;){for(pe=e,e=[],H=-1;++H<oe;)pe[H]();oe=e.length}v=!1}R.exports=function(H){1!==e.push(H)||v||N()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(Me,R,p){"use strict";var w=Me("immediate");function N(){}var v={},ee=["REJECTED"],l=["FULFILLED"],W=["PENDING"];function B(oe){if("function"!=typeof oe)throw new TypeError("resolver must be a function");this.state=W,this.queue=[],this.outcome=void 0,oe!==N&&H(this,oe)}function T(oe,Ce,we){this.promise=oe,"function"==typeof Ce&&(this.onFulfilled=Ce,this.callFulfilled=this.otherCallFulfilled),"function"==typeof we&&(this.onRejected=we,this.callRejected=this.otherCallRejected)}function e(oe,Ce,we){w(function(){var Pe;try{Pe=Ce(we)}catch(Qe){return v.reject(oe,Qe)}Pe===oe?v.reject(oe,new TypeError("Cannot resolve promise with itself")):v.resolve(oe,Pe)})}function K(oe){var Ce=oe&&oe.then;if(oe&&("object"==typeof oe||"function"==typeof oe)&&"function"==typeof Ce)return function(){Ce.apply(oe,arguments)}}function H(oe,Ce){var we=!1;function Pe(ot){we||(we=!0,v.reject(oe,ot))}function Qe(ot){we||(we=!0,v.resolve(oe,ot))}var ht=pe(function(){Ce(Qe,Pe)});"error"===ht.status&&Pe(ht.value)}function pe(oe,Ce){var we={};try{we.value=oe(Ce),we.status="success"}catch(Pe){we.status="error",we.value=Pe}return we}(R.exports=B).prototype.finally=function(oe){if("function"!=typeof oe)return this;var Ce=this.constructor;return this.then(function(we){return Ce.resolve(oe()).then(function(){return we})},function(we){return Ce.resolve(oe()).then(function(){throw we})})},B.prototype.catch=function(oe){return this.then(null,oe)},B.prototype.then=function(oe,Ce){if("function"!=typeof oe&&this.state===l||"function"!=typeof Ce&&this.state===ee)return this;var we=new this.constructor(N);return this.state!==W?e(we,this.state===l?oe:Ce,this.outcome):this.queue.push(new T(we,oe,Ce)),we},T.prototype.callFulfilled=function(oe){v.resolve(this.promise,oe)},T.prototype.otherCallFulfilled=function(oe){e(this.promise,this.onFulfilled,oe)},T.prototype.callRejected=function(oe){v.reject(this.promise,oe)},T.prototype.otherCallRejected=function(oe){e(this.promise,this.onRejected,oe)},v.resolve=function(oe,Ce){var we=pe(K,Ce);if("error"===we.status)return v.reject(oe,we.value);var Pe=we.value;if(Pe)H(oe,Pe);else{oe.state=l,oe.outcome=Ce;for(var Qe=-1,ht=oe.queue.length;++Qe<ht;)oe.queue[Qe].callFulfilled(Ce)}return oe},v.reject=function(oe,Ce){oe.state=ee,oe.outcome=Ce;for(var we=-1,Pe=oe.queue.length;++we<Pe;)oe.queue[we].callRejected(Ce);return oe},B.resolve=function(oe){return oe instanceof this?oe:v.resolve(new this(N),oe)},B.reject=function(oe){var Ce=new this(N);return v.reject(Ce,oe)},B.all=function(oe){var Ce=this;if("[object Array]"!==Object.prototype.toString.call(oe))return this.reject(new TypeError("must be an array"));var we=oe.length,Pe=!1;if(!we)return this.resolve([]);for(var Qe=new Array(we),ht=0,ot=-1,gt=new this(N);++ot<we;)je(oe[ot],ot);return gt;function je(Ct,kt){Ce.resolve(Ct).then(function(We){Qe[kt]=We,++ht!==we||Pe||(Pe=!0,v.resolve(gt,Qe))},function(We){Pe||(Pe=!0,v.reject(gt,We))})}},B.race=function(oe){if("[object Array]"!==Object.prototype.toString.call(oe))return this.reject(new TypeError("must be an array"));var we=oe.length,Pe=!1;if(!we)return this.resolve([]);for(var Qe=-1,ht=new this(N);++Qe<we;)this.resolve(oe[Qe]).then(function(gt){Pe||(Pe=!0,v.resolve(ht,gt))},function(gt){Pe||(Pe=!0,v.reject(ht,gt))});return ht}},{immediate:36}],38:[function(Me,R,p){"use strict";var w={};(0,Me("./lib/utils/common").assign)(w,Me("./lib/deflate"),Me("./lib/inflate"),Me("./lib/zlib/constants")),R.exports=w},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(Me,R,p){"use strict";var w=Me("./zlib/deflate"),N=Me("./utils/common"),v=Me("./utils/strings"),ee=Me("./zlib/messages"),l=Me("./zlib/zstream"),W=Object.prototype.toString,B=0,T=-1,e=0,K=8;function H(oe){if(!(this instanceof H))return new H(oe);this.options=N.assign({level:T,method:K,chunkSize:16384,windowBits:15,memLevel:8,strategy:e,to:""},oe||{});var Ce=this.options;Ce.raw&&0<Ce.windowBits?Ce.windowBits=-Ce.windowBits:Ce.gzip&&0<Ce.windowBits&&Ce.windowBits<16&&(Ce.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var we=w.deflateInit2(this.strm,Ce.level,Ce.method,Ce.windowBits,Ce.memLevel,Ce.strategy);if(we!==B)throw new Error(ee[we]);if(Ce.header&&w.deflateSetHeader(this.strm,Ce.header),Ce.dictionary){var Pe;if(Pe="string"==typeof Ce.dictionary?v.string2buf(Ce.dictionary):"[object ArrayBuffer]"===W.call(Ce.dictionary)?new Uint8Array(Ce.dictionary):Ce.dictionary,(we=w.deflateSetDictionary(this.strm,Pe))!==B)throw new Error(ee[we]);this._dict_set=!0}}function pe(oe,Ce){var we=new H(Ce);if(we.push(oe,!0),we.err)throw we.msg||ee[we.err];return we.result}H.prototype.push=function(oe,Ce){var we,Pe,Qe=this.strm,ht=this.options.chunkSize;if(this.ended)return!1;Pe=Ce===~~Ce?Ce:!0===Ce?4:0,Qe.input="string"==typeof oe?v.string2buf(oe):"[object ArrayBuffer]"===W.call(oe)?new Uint8Array(oe):oe,Qe.next_in=0,Qe.avail_in=Qe.input.length;do{if(0===Qe.avail_out&&(Qe.output=new N.Buf8(ht),Qe.next_out=0,Qe.avail_out=ht),1!==(we=w.deflate(Qe,Pe))&&we!==B)return this.onEnd(we),!(this.ended=!0);0!==Qe.avail_out&&(0!==Qe.avail_in||4!==Pe&&2!==Pe)||this.onData("string"===this.options.to?v.buf2binstring(N.shrinkBuf(Qe.output,Qe.next_out)):N.shrinkBuf(Qe.output,Qe.next_out))}while((0<Qe.avail_in||0===Qe.avail_out)&&1!==we);return 4===Pe?(we=w.deflateEnd(this.strm),this.onEnd(we),this.ended=!0,we===B):2!==Pe||(this.onEnd(B),!(Qe.avail_out=0))},H.prototype.onData=function(oe){this.chunks.push(oe)},H.prototype.onEnd=function(oe){oe===B&&(this.result="string"===this.options.to?this.chunks.join(""):N.flattenChunks(this.chunks)),this.chunks=[],this.err=oe,this.msg=this.strm.msg},p.Deflate=H,p.deflate=pe,p.deflateRaw=function(oe,Ce){return(Ce=Ce||{}).raw=!0,pe(oe,Ce)},p.gzip=function(oe,Ce){return(Ce=Ce||{}).gzip=!0,pe(oe,Ce)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(Me,R,p){"use strict";var w=Me("./zlib/inflate"),N=Me("./utils/common"),v=Me("./utils/strings"),ee=Me("./zlib/constants"),l=Me("./zlib/messages"),W=Me("./zlib/zstream"),B=Me("./zlib/gzheader"),T=Object.prototype.toString;function e(H){if(!(this instanceof e))return new e(H);this.options=N.assign({chunkSize:16384,windowBits:0,to:""},H||{});var pe=this.options;pe.raw&&0<=pe.windowBits&&pe.windowBits<16&&(pe.windowBits=-pe.windowBits,0===pe.windowBits&&(pe.windowBits=-15)),!(0<=pe.windowBits&&pe.windowBits<16)||H&&H.windowBits||(pe.windowBits+=32),15<pe.windowBits&&pe.windowBits<48&&!(15&pe.windowBits)&&(pe.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new W,this.strm.avail_out=0;var oe=w.inflateInit2(this.strm,pe.windowBits);if(oe!==ee.Z_OK)throw new Error(l[oe]);this.header=new B,w.inflateGetHeader(this.strm,this.header)}function K(H,pe){var oe=new e(pe);if(oe.push(H,!0),oe.err)throw oe.msg||l[oe.err];return oe.result}e.prototype.push=function(H,pe){var oe,Ce,we,Pe,Qe,ht,ot=this.strm,gt=this.options.chunkSize,je=this.options.dictionary,Ct=!1;if(this.ended)return!1;Ce=pe===~~pe?pe:!0===pe?ee.Z_FINISH:ee.Z_NO_FLUSH,ot.input="string"==typeof H?v.binstring2buf(H):"[object ArrayBuffer]"===T.call(H)?new Uint8Array(H):H,ot.next_in=0,ot.avail_in=ot.input.length;do{if(0===ot.avail_out&&(ot.output=new N.Buf8(gt),ot.next_out=0,ot.avail_out=gt),(oe=w.inflate(ot,ee.Z_NO_FLUSH))===ee.Z_NEED_DICT&&je&&(ht="string"==typeof je?v.string2buf(je):"[object ArrayBuffer]"===T.call(je)?new Uint8Array(je):je,oe=w.inflateSetDictionary(this.strm,ht)),oe===ee.Z_BUF_ERROR&&!0===Ct&&(oe=ee.Z_OK,Ct=!1),oe!==ee.Z_STREAM_END&&oe!==ee.Z_OK)return this.onEnd(oe),!(this.ended=!0);ot.next_out&&(0!==ot.avail_out&&oe!==ee.Z_STREAM_END&&(0!==ot.avail_in||Ce!==ee.Z_FINISH&&Ce!==ee.Z_SYNC_FLUSH)||("string"===this.options.to?(we=v.utf8border(ot.output,ot.next_out),Pe=ot.next_out-we,Qe=v.buf2string(ot.output,we),ot.next_out=Pe,ot.avail_out=gt-Pe,Pe&&N.arraySet(ot.output,ot.output,we,Pe,0),this.onData(Qe)):this.onData(N.shrinkBuf(ot.output,ot.next_out)))),0===ot.avail_in&&0===ot.avail_out&&(Ct=!0)}while((0<ot.avail_in||0===ot.avail_out)&&oe!==ee.Z_STREAM_END);return oe===ee.Z_STREAM_END&&(Ce=ee.Z_FINISH),Ce===ee.Z_FINISH?(oe=w.inflateEnd(this.strm),this.onEnd(oe),this.ended=!0,oe===ee.Z_OK):Ce!==ee.Z_SYNC_FLUSH||(this.onEnd(ee.Z_OK),!(ot.avail_out=0))},e.prototype.onData=function(H){this.chunks.push(H)},e.prototype.onEnd=function(H){H===ee.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):N.flattenChunks(this.chunks)),this.chunks=[],this.err=H,this.msg=this.strm.msg},p.Inflate=e,p.inflate=K,p.inflateRaw=function(H,pe){return(pe=pe||{}).raw=!0,K(H,pe)},p.ungzip=K},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(Me,R,p){"use strict";var w=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";p.assign=function(ee){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var W=l.shift();if(W){if("object"!=typeof W)throw new TypeError(W+"must be non-object");for(var B in W)W.hasOwnProperty(B)&&(ee[B]=W[B])}}return ee},p.shrinkBuf=function(ee,l){return ee.length===l?ee:ee.subarray?ee.subarray(0,l):(ee.length=l,ee)};var N={arraySet:function(ee,l,W,B,T){if(l.subarray&&ee.subarray)ee.set(l.subarray(W,W+B),T);else for(var e=0;e<B;e++)ee[T+e]=l[W+e]},flattenChunks:function(ee){var l,W,B,T,e,K;for(l=B=0,W=ee.length;l<W;l++)B+=ee[l].length;for(K=new Uint8Array(B),l=T=0,W=ee.length;l<W;l++)K.set(e=ee[l],T),T+=e.length;return K}},v={arraySet:function(ee,l,W,B,T){for(var e=0;e<B;e++)ee[T+e]=l[W+e]},flattenChunks:function(ee){return[].concat.apply([],ee)}};p.setTyped=function(ee){ee?(p.Buf8=Uint8Array,p.Buf16=Uint16Array,p.Buf32=Int32Array,p.assign(p,N)):(p.Buf8=Array,p.Buf16=Array,p.Buf32=Array,p.assign(p,v))},p.setTyped(w)},{}],42:[function(Me,R,p){"use strict";var w=Me("./common"),N=!0,v=!0;try{String.fromCharCode.apply(null,[0])}catch{N=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{v=!1}for(var ee=new w.Buf8(256),l=0;l<256;l++)ee[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function W(B,T){if(T<65537&&(B.subarray&&v||!B.subarray&&N))return String.fromCharCode.apply(null,w.shrinkBuf(B,T));for(var e="",K=0;K<T;K++)e+=String.fromCharCode(B[K]);return e}ee[254]=ee[254]=1,p.string2buf=function(B){var T,e,K,H,pe,oe=B.length,Ce=0;for(H=0;H<oe;H++)55296==(64512&(e=B.charCodeAt(H)))&&H+1<oe&&56320==(64512&(K=B.charCodeAt(H+1)))&&(e=65536+(e-55296<<10)+(K-56320),H++),Ce+=e<128?1:e<2048?2:e<65536?3:4;for(T=new w.Buf8(Ce),H=pe=0;pe<Ce;H++)55296==(64512&(e=B.charCodeAt(H)))&&H+1<oe&&56320==(64512&(K=B.charCodeAt(H+1)))&&(e=65536+(e-55296<<10)+(K-56320),H++),e<128?T[pe++]=e:(e<2048?T[pe++]=192|e>>>6:(e<65536?T[pe++]=224|e>>>12:(T[pe++]=240|e>>>18,T[pe++]=128|e>>>12&63),T[pe++]=128|e>>>6&63),T[pe++]=128|63&e);return T},p.buf2binstring=function(B){return W(B,B.length)},p.binstring2buf=function(B){for(var T=new w.Buf8(B.length),e=0,K=T.length;e<K;e++)T[e]=B.charCodeAt(e);return T},p.buf2string=function(B,T){var e,K,H,pe,oe=T||B.length,Ce=new Array(2*oe);for(e=K=0;e<oe;)if((H=B[e++])<128)Ce[K++]=H;else if(4<(pe=ee[H]))Ce[K++]=65533,e+=pe-1;else{for(H&=2===pe?31:3===pe?15:7;1<pe&&e<oe;)H=H<<6|63&B[e++],pe--;1<pe?Ce[K++]=65533:H<65536?Ce[K++]=H:(Ce[K++]=55296|(H-=65536)>>10&1023,Ce[K++]=56320|1023&H)}return W(Ce,K)},p.utf8border=function(B,T){var e;for((T=T||B.length)>B.length&&(T=B.length),e=T-1;0<=e&&128==(192&B[e]);)e--;return e<0||0===e?T:e+ee[B[e]]>T?e:T}},{"./common":41}],43:[function(Me,R,p){"use strict";R.exports=function(w,N,v,ee){for(var l=65535&w,W=w>>>16&65535,B=0;0!==v;){for(v-=B=2e3<v?2e3:v;W=W+(l=l+N[ee++]|0)|0,--B;);l%=65521,W%=65521}return l|W<<16}},{}],44:[function(Me,R,p){"use strict";R.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_ERROR:-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(Me,R,p){"use strict";var w=function(){for(var N,v=[],ee=0;ee<256;ee++){N=ee;for(var l=0;l<8;l++)N=1&N?3988292384^N>>>1:N>>>1;v[ee]=N}return v}();R.exports=function(N,v,ee,l){var W=w,B=l+ee;N^=-1;for(var T=l;T<B;T++)N=N>>>8^W[255&(N^v[T])];return~N}},{}],46:[function(Me,R,p){"use strict";var w,N=Me("../utils/common"),v=Me("./trees"),ee=Me("./adler32"),l=Me("./crc32"),W=Me("./messages"),B=0,e=0,K=-2,oe=2,Ce=8,Pe=286,Qe=30,ht=19,ot=2*Pe+1,gt=15,je=3,Ct=258,kt=Ct+je+1,We=42,at=113;function Jt(U,Oe){return U.msg=W[Oe],Oe}function ct(U){return(U<<1)-(4<U?9:0)}function Gt(U){for(var Oe=U.length;0<=--Oe;)U[Oe]=0}function Te(U){var Oe=U.state,Ue=Oe.pending;Ue>U.avail_out&&(Ue=U.avail_out),0!==Ue&&(N.arraySet(U.output,Oe.pending_buf,Oe.pending_out,Ue,U.next_out),U.next_out+=Ue,Oe.pending_out+=Ue,U.total_out+=Ue,U.avail_out-=Ue,Oe.pending-=Ue,0===Oe.pending&&(Oe.pending_out=0))}function Ze(U,Oe){v._tr_flush_block(U,0<=U.block_start?U.block_start:-1,U.strstart-U.block_start,Oe),U.block_start=U.strstart,Te(U.strm)}function Ne(U,Oe){U.pending_buf[U.pending++]=Oe}function Je(U,Oe){U.pending_buf[U.pending++]=Oe>>>8&255,U.pending_buf[U.pending++]=255&Oe}function Fe(U,Oe){var Ue,$e,Ve=U.max_chain_length,lt=U.strstart,Rt=U.prev_length,nt=U.nice_match,xt=U.strstart>U.w_size-kt?U.strstart-(U.w_size-kt):0,St=U.window,Ht=U.w_mask,Pt=U.prev,fn=U.strstart+Ct,kn=St[lt+Rt-1],an=St[lt+Rt];U.prev_length>=U.good_match&&(Ve>>=2),nt>U.lookahead&&(nt=U.lookahead);do{if(St[(Ue=Oe)+Rt]===an&&St[Ue+Rt-1]===kn&&St[Ue]===St[lt]&&St[++Ue]===St[lt+1]){lt+=2,Ue++;do{}while(St[++lt]===St[++Ue]&&St[++lt]===St[++Ue]&&St[++lt]===St[++Ue]&&St[++lt]===St[++Ue]&&St[++lt]===St[++Ue]&&St[++lt]===St[++Ue]&&St[++lt]===St[++Ue]&&St[++lt]===St[++Ue]&&lt<fn);if($e=Ct-(fn-lt),lt=fn-Ct,Rt<$e){if(U.match_start=Oe,nt<=(Rt=$e))break;kn=St[lt+Rt-1],an=St[lt+Rt]}}}while((Oe=Pt[Oe&Ht])>xt&&0!=--Ve);return Rt<=U.lookahead?Rt:U.lookahead}function ze(U){var Oe,Ue,$e,Ve,lt,Rt,nt,xt,St,Ht,Pt=U.w_size;do{if(Ve=U.window_size-U.lookahead-U.strstart,U.strstart>=Pt+(Pt-kt)){for(N.arraySet(U.window,U.window,Pt,Pt,0),U.match_start-=Pt,U.strstart-=Pt,U.block_start-=Pt,Oe=Ue=U.hash_size;$e=U.head[--Oe],U.head[Oe]=Pt<=$e?$e-Pt:0,--Ue;);for(Oe=Ue=Pt;$e=U.prev[--Oe],U.prev[Oe]=Pt<=$e?$e-Pt:0,--Ue;);Ve+=Pt}if(0===U.strm.avail_in)break;if(nt=U.window,xt=U.strstart+U.lookahead,Ht=void 0,(St=Ve)<(Ht=(Rt=U.strm).avail_in)&&(Ht=St),Ue=0===Ht?0:(Rt.avail_in-=Ht,N.arraySet(nt,Rt.input,Rt.next_in,Ht,xt),1===Rt.state.wrap?Rt.adler=ee(Rt.adler,nt,Ht,xt):2===Rt.state.wrap&&(Rt.adler=l(Rt.adler,nt,Ht,xt)),Rt.next_in+=Ht,Rt.total_in+=Ht,Ht),U.lookahead+=Ue,U.lookahead+U.insert>=je)for(U.ins_h=U.window[lt=U.strstart-U.insert],U.ins_h=(U.ins_h<<U.hash_shift^U.window[lt+1])&U.hash_mask;U.insert&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[lt+je-1])&U.hash_mask,U.prev[lt&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=lt,lt++,U.insert--,!(U.lookahead+U.insert<je)););}while(U.lookahead<kt&&0!==U.strm.avail_in)}function ft(U,Oe){for(var Ue,$e;;){if(U.lookahead<kt){if(ze(U),U.lookahead<kt&&Oe===B)return 1;if(0===U.lookahead)break}if(Ue=0,U.lookahead>=je&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+je-1])&U.hash_mask,Ue=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),0!==Ue&&U.strstart-Ue<=U.w_size-kt&&(U.match_length=Fe(U,Ue)),U.match_length>=je)if($e=v._tr_tally(U,U.strstart-U.match_start,U.match_length-je),U.lookahead-=U.match_length,U.match_length<=U.max_lazy_match&&U.lookahead>=je){for(U.match_length--;U.strstart++,U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+je-1])&U.hash_mask,Ue=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart,0!=--U.match_length;);U.strstart++}else U.strstart+=U.match_length,U.match_length=0,U.ins_h=U.window[U.strstart],U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+1])&U.hash_mask;else $e=v._tr_tally(U,0,U.window[U.strstart]),U.lookahead--,U.strstart++;if($e&&(Ze(U,!1),0===U.strm.avail_out))return 1}return U.insert=U.strstart<je-1?U.strstart:je-1,4===Oe?(Ze(U,!0),0===U.strm.avail_out?3:4):U.last_lit&&(Ze(U,!1),0===U.strm.avail_out)?1:2}function Re(U,Oe){for(var Ue,$e,Ve;;){if(U.lookahead<kt){if(ze(U),U.lookahead<kt&&Oe===B)return 1;if(0===U.lookahead)break}if(Ue=0,U.lookahead>=je&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+je-1])&U.hash_mask,Ue=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),U.prev_length=U.match_length,U.prev_match=U.match_start,U.match_length=je-1,0!==Ue&&U.prev_length<U.max_lazy_match&&U.strstart-Ue<=U.w_size-kt&&(U.match_length=Fe(U,Ue),U.match_length<=5&&(1===U.strategy||U.match_length===je&&4096<U.strstart-U.match_start)&&(U.match_length=je-1)),U.prev_length>=je&&U.match_length<=U.prev_length){for(Ve=U.strstart+U.lookahead-je,$e=v._tr_tally(U,U.strstart-1-U.prev_match,U.prev_length-je),U.lookahead-=U.prev_length-1,U.prev_length-=2;++U.strstart<=Ve&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+je-1])&U.hash_mask,Ue=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),0!=--U.prev_length;);if(U.match_available=0,U.match_length=je-1,U.strstart++,$e&&(Ze(U,!1),0===U.strm.avail_out))return 1}else if(U.match_available){if(($e=v._tr_tally(U,0,U.window[U.strstart-1]))&&Ze(U,!1),U.strstart++,U.lookahead--,0===U.strm.avail_out)return 1}else U.match_available=1,U.strstart++,U.lookahead--}return U.match_available&&($e=v._tr_tally(U,0,U.window[U.strstart-1]),U.match_available=0),U.insert=U.strstart<je-1?U.strstart:je-1,4===Oe?(Ze(U,!0),0===U.strm.avail_out?3:4):U.last_lit&&(Ze(U,!1),0===U.strm.avail_out)?1:2}function rt(U,Oe,Ue,$e,Ve){this.good_length=U,this.max_lazy=Oe,this.nice_length=Ue,this.max_chain=$e,this.func=Ve}function Ot(){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=Ce,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 N.Buf16(2*ot),this.dyn_dtree=new N.Buf16(2*(2*
1Qe+1)),this.bl_tree=new N.Buf16(2*(2*ht+1)),Gt(this.dyn_ltree),Gt(this.dyn_dtree),Gt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new N.Buf16(gt+1),this.heap=new N.Buf16(2*Pe+1),Gt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new N.Buf16(2*Pe+1),Gt(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 It(U){var Oe;return U&&U.state?(U.total_in=U.total_out=0,U.data_type=oe,(Oe=U.state).pending=0,Oe.pending_out=0,Oe.wrap<0&&(Oe.wrap=-Oe.wrap),Oe.status=Oe.wrap?We:at,U.adler=2===Oe.wrap?0:1,Oe.last_flush=B,v._tr_init(Oe),e):Jt(U,K)}function on(U){var Ue,Oe=It(U);return Oe===e&&((Ue=U.state).window_size=2*Ue.w_size,Gt(Ue.head),Ue.max_lazy_match=w[Ue.level].max_lazy,Ue.good_match=w[Ue.level].good_length,Ue.nice_match=w[Ue.level].nice_length,Ue.max_chain_length=w[Ue.level].max_chain,Ue.strstart=0,Ue.block_start=0,Ue.lookahead=0,Ue.insert=0,Ue.match_length=Ue.prev_length=je-1,Ue.match_available=0,Ue.ins_h=0),Oe}function ue(U,Oe,Ue,$e,Ve,lt){if(!U)return K;var Rt=1;if(-1===Oe&&(Oe=6),$e<0?(Rt=0,$e=-$e):15<$e&&(Rt=2,$e-=16),Ve<1||9<Ve||Ue!==Ce||$e<8||15<$e||Oe<0||9<Oe||lt<0||4<lt)return Jt(U,K);8===$e&&($e=9);var nt=new Ot;return(U.state=nt).strm=U,nt.wrap=Rt,nt.gzhead=null,nt.w_bits=$e,nt.w_size=1<<nt.w_bits,nt.w_mask=nt.w_size-1,nt.hash_bits=Ve+7,nt.hash_size=1<<nt.hash_bits,nt.hash_mask=nt.hash_size-1,nt.hash_shift=~~((nt.hash_bits+je-1)/je),nt.window=new N.Buf8(2*nt.w_size),nt.head=new N.Buf16(nt.hash_size),nt.prev=new N.Buf16(nt.w_size),nt.lit_bufsize=1<<Ve+6,nt.pending_buf_size=4*nt.lit_bufsize,nt.pending_buf=new N.Buf8(nt.pending_buf_size),nt.d_buf=1*nt.lit_bufsize,nt.l_buf=3*nt.lit_bufsize,nt.level=Oe,nt.strategy=lt,nt.method=Ue,on(U)}w=[new rt(0,0,0,0,function(U,Oe){var Ue=65535;for(Ue>U.pending_buf_size-5&&(Ue=U.pending_buf_size-5);;){if(U.lookahead<=1){if(ze(U),0===U.lookahead&&Oe===B)return 1;if(0===U.lookahead)break}U.strstart+=U.lookahead,U.lookahead=0;var $e=U.block_start+Ue;if((0===U.strstart||U.strstart>=$e)&&(U.lookahead=U.strstart-$e,U.strstart=$e,Ze(U,!1),0===U.strm.avail_out)||U.strstart-U.block_start>=U.w_size-kt&&(Ze(U,!1),0===U.strm.avail_out))return 1}return U.insert=0,4===Oe?(Ze(U,!0),0===U.strm.avail_out?3:4):(U.strstart>U.block_start&&Ze(U,!1),1)}),new rt(4,4,8,4,ft),new rt(4,5,16,8,ft),new rt(4,6,32,32,ft),new rt(4,4,16,16,Re),new rt(8,16,32,32,Re),new rt(8,16,128,128,Re),new rt(8,32,128,256,Re),new rt(32,128,258,1024,Re),new rt(32,258,258,4096,Re)],p.deflateInit=function(U,Oe){return ue(U,Oe,Ce,15,8,0)},p.deflateInit2=ue,p.deflateReset=on,p.deflateResetKeep=It,p.deflateSetHeader=function(U,Oe){return U&&U.state?2!==U.state.wrap?K:(U.state.gzhead=Oe,e):K},p.deflate=function(U,Oe){var Ue,$e,Ve,lt;if(!U||!U.state||5<Oe||Oe<0)return U?Jt(U,K):K;if($e=U.state,!U.output||!U.input&&0!==U.avail_in||666===$e.status&&4!==Oe)return Jt(U,0===U.avail_out?-5:K);if($e.strm=U,Ue=$e.last_flush,$e.last_flush=Oe,$e.status===We)if(2===$e.wrap)U.adler=0,Ne($e,31),Ne($e,139),Ne($e,8),$e.gzhead?(Ne($e,($e.gzhead.text?1:0)+($e.gzhead.hcrc?2:0)+($e.gzhead.extra?4:0)+($e.gzhead.name?8:0)+($e.gzhead.comment?16:0)),Ne($e,255&$e.gzhead.time),Ne($e,$e.gzhead.time>>8&255),Ne($e,$e.gzhead.time>>16&255),Ne($e,$e.gzhead.time>>24&255),Ne($e,9===$e.level?2:2<=$e.strategy||$e.level<2?4:0),Ne($e,255&$e.gzhead.os),$e.gzhead.extra&&$e.gzhead.extra.length&&(Ne($e,255&$e.gzhead.extra.length),Ne($e,$e.gzhead.extra.length>>8&255)),$e.gzhead.hcrc&&(U.adler=l(U.adler,$e.pending_buf,$e.pending,0)),$e.gzindex=0,$e.status=69):(Ne($e,0),Ne($e,0),Ne($e,0),Ne($e,0),Ne($e,0),Ne($e,9===$e.level?2:2<=$e.strategy||$e.level<2?4:0),Ne($e,3),$e.status=at);else{var Rt=Ce+($e.w_bits-8<<4)<<8;Rt|=(2<=$e.strategy||$e.level<2?0:$e.level<6?1:6===$e.level?2:3)<<6,0!==$e.strstart&&(Rt|=32),Rt+=31-Rt%31,$e.status=at,Je($e,Rt),0!==$e.strstart&&(Je($e,U.adler>>>16),Je($e,65535&U.adler)),U.adler=1}if(69===$e.status)if($e.gzhead.extra){for(Ve=$e.pending;$e.gzindex<(65535&$e.gzhead.extra.length)&&($e.pending!==$e.pending_buf_size||($e.gzhead.hcrc&&$e.pen
vendor: 8,428 bytes, line 1
1ding>Ve&&(U.adler=l(U.adler,$e.pending_buf,$e.pending-Ve,Ve)),Te(U),Ve=$e.pending,$e.pending!==$e.pending_buf_size));)Ne($e,255&$e.gzhead.extra[$e.gzindex]),$e.gzindex++;$e.gzhead.hcrc&&$e.pending>Ve&&(U.adler=l(U.adler,$e.pending_buf,$e.pending-Ve,Ve)),$e.gzindex===$e.gzhead.extra.length&&($e.gzindex=0,$e.status=73)}else $e.status=73;if(73===$e.status)if($e.gzhead.name){Ve=$e.pending;do{if($e.pending===$e.pending_buf_size&&($e.gzhead.hcrc&&$e.pending>Ve&&(U.adler=l(U.adler,$e.pending_buf,$e.pending-Ve,Ve)),Te(U),Ve=$e.pending,$e.pending===$e.pending_buf_size)){lt=1;break}lt=$e.gzindex<$e.gzhead.name.length?255&$e.gzhead.name.charCodeAt($e.gzindex++):0,Ne($e,lt)}while(0!==lt);$e.gzhead.hcrc&&$e.pending>Ve&&(U.adler=l(U.adler,$e.pending_buf,$e.pending-Ve,Ve)),0===lt&&($e.gzindex=0,$e.status=91)}else $e.status=91;if(91===$e.status)if($e.gzhead.comment){Ve=$e.pending;do{if($e.pending===$e.pending_buf_size&&($e.gzhead.hcrc&&$e.pending>Ve&&(U.adler=l(U.adler,$e.pending_buf,$e.pending-Ve,Ve)),Te(U),Ve=$e.pending,$e.pending===$e.pending_buf_size)){lt=1;break}lt=$e.gzindex<$e.gzhead.comment.length?255&$e.gzhead.comment.charCodeAt($e.gzindex++):0,Ne($e,lt)}while(0!==lt);$e.gzhead.hcrc&&$e.pending>Ve&&(U.adler=l(U.adler,$e.pending_buf,$e.pending-Ve,Ve)),0===lt&&($e.status=103)}else $e.status=103;if(103===$e.status&&($e.gzhead.hcrc?($e.pending+2>$e.pending_buf_size&&Te(U),$e.pending+2<=$e.pending_buf_size&&(Ne($e,255&U.adler),Ne($e,U.adler>>8&255),U.adler=0,$e.status=at)):$e.status=at),0!==$e.pending){if(Te(U),0===U.avail_out)return $e.last_flush=-1,e}else if(0===U.avail_in&&ct(Oe)<=ct(Ue)&&4!==Oe)return Jt(U,-5);if(666===$e.status&&0!==U.avail_in)return Jt(U,-5);if(0!==U.avail_in||0!==$e.lookahead||Oe!==B&&666!==$e.status){var nt=2===$e.strategy?function(xt,St){for(var Ht;;){if(0===xt.lookahead&&(ze(xt),0===xt.lookahead)){if(St===B)return 1;break}if(xt.match_length=0,Ht=v._tr_tally(xt,0,xt.window[xt.strstart]),xt.lookahead--,xt.strstart++,Ht&&(Ze(xt,!1),0===xt.strm.avail_out))return 1}return xt.insert=0,4===St?(Ze(xt,!0),0===xt.strm.avail_out?3:4):xt.last_lit&&(Ze(xt,!1),0===xt.strm.avail_out)?1:2}($e,Oe):3===$e.strategy?function(xt,St){for(var Ht,Pt,fn,kn,an=xt.window;;){if(xt.lookahead<=Ct){if(ze(xt),xt.lookahead<=Ct&&St===B)return 1;if(0===xt.lookahead)break}if(xt.match_length=0,xt.lookahead>=je&&0<xt.strstart&&(Pt=an[fn=xt.strstart-1])===an[++fn]&&Pt===an[++fn]&&Pt===an[++fn]){kn=xt.strstart+Ct;do{}while(Pt===an[++fn]&&Pt===an[++fn]&&Pt===an[++fn]&&Pt===an[++fn]&&Pt===an[++fn]&&Pt===an[++fn]&&Pt===an[++fn]&&Pt===an[++fn]&&fn<kn);xt.match_length=Ct-(kn-fn),xt.match_length>xt.lookahead&&(xt.match_length=xt.lookahead)}if(xt.match_length>=je?(Ht=v._tr_tally(xt,1,xt.match_length-je),xt.lookahead-=xt.match_length,xt.strstart+=xt.match_length,xt.match_length=0):(Ht=v._tr_tally(xt,0,xt.window[xt.strstart]),xt.lookahead--,xt.strstart++),Ht&&(Ze(xt,!1),0===xt.strm.avail_out))return 1}return xt.insert=0,4===St?(Ze(xt,!0),0===xt.strm.avail_out?3:4):xt.last_lit&&(Ze(xt,!1),0===xt.strm.avail_out)?1:2}($e,Oe):w[$e.level].func($e,Oe);if(3!==nt&&4!==nt||($e.status=666),1===nt||3===nt)return 0===U.avail_out&&($e.last_flush=-1),e;if(2===nt&&(1===Oe?v._tr_align($e):5!==Oe&&(v._tr_stored_block($e,0,0,!1),3===Oe&&(Gt($e.head),0===$e.lookahead&&($e.strstart=0,$e.block_start=0,$e.insert=0))),Te(U),0===U.avail_out))return $e.last_flush=-1,e}return 4!==Oe?e:$e.wrap<=0?1:(2===$e.wrap?(Ne($e,255&U.adler),Ne($e,U.adler>>8&255),Ne($e,U.adler>>16&255),Ne($e,U.adler>>24&255),Ne($e,255&U.total_in),Ne($e,U.total_in>>8&255),Ne($e,U.total_in>>16&255),Ne($e,U.total_in>>24&255)):(Je($e,U.adler>>>16),Je($e,65535&U.adler)),Te(U),0<$e.wrap&&($e.wrap=-$e.wrap),0!==$e.pending?e:1)},p.deflateEnd=function(U){var Oe;return U&&U.state?(Oe=U.state.status)!==We&&69!==Oe&&73!==Oe&&91!==Oe&&103!==Oe&&Oe!==at&&666!==Oe?Jt(U,K):(U.state=null,Oe===at?Jt(U,-3):e):K},p.deflateSetDictionary=function(U,Oe){var Ue,$e,Ve,lt,Rt,nt,xt,St,Ht=Oe.length;if(!U||!U.state||2===(lt=(Ue=U.state).wrap)||1===lt&&Ue.status!==We||Ue.lookahead)return K;for(1===lt&&(U.adler=ee(U.adler,Oe,Ht,0)),Ue.wrap=0,Ht>=Ue.w_size&&(0===lt&&(Gt(Ue.head),Ue.strstart=0,Ue.block_start=0,Ue.insert=0),St=new N.Buf8(Ue.w_size),N.arraySet(St,Oe,Ht-Ue.w_size,Ue.w_size,0),Oe=St,Ht=Ue.w_size),Rt=U.avail_in,nt=U.next_in,xt=U.input,U.avail_in=Ht,U.next_in=0,U.input=Oe,ze(Ue);Ue.lookahead>=je;){for($e=Ue.strstart,Ve=Ue.lookahead-(je-1);Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[$e+je-1])&Ue.hash_mask,Ue.prev[$e&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=$e,$e++,--Ve;);Ue.strstart=$e,Ue.lookahead=je-1,ze(Ue)}return Ue.strstart+=Ue.lookahead,Ue.block_start=Ue.strstart,Ue.insert=Ue.lookahead,Ue.lookahead=0,Ue.match_length=Ue.prev_length=je-1,Ue.match_available=0,U.next_in=nt,U.input=xt,U.avail_in=Rt,Ue.wrap=lt,e},p.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(Me,R,p){"use strict";R.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(Me,R,p){"use strict";R.exports=function(w,N){var v,ee,l,W,B,T,e,K,H,pe,oe,Ce,we,Pe,Qe,ht,ot,gt,je,Ct,kt,We,at,le,Xe;le=w.input,l=(ee=w.next_in)+(w.avail_in-5),Xe=w.output,B=(W=w.next_out)-(N-w.avail_out),T=W+(w.avail_out-257),e=(v=w.state).dmax,K=v.wsize,H=v.whave,pe=v.wnext,oe=v.window,Ce=v.hold,we=v.bits,Pe=v.lencode,Qe=v.distcode,ht=(1<<v.lenbits)-1,ot=(1<<v.distbits)-1;e:do{we<15&&(Ce+=le[ee++]<<we,Ce+=le[ee++]<<(we+=8),we+=8),gt=Pe[Ce&ht];t:for(;;){if(Ce>>>=je=gt>>>24,we-=je,0==(je=gt>>>16&255))Xe[W++]=65535&gt;else{if(!(16&je)){if(!(64&je)){gt=Pe[(65535&gt)+(Ce&(1<<je)-1)];continue t}if(32&je){v.mode=12;break e}w.msg="invalid literal/length code",v.mode=30;break e}Ct=65535&gt,(je&=15)&&(we<je&&(Ce+=le[ee++]<<we,we+=8),Ct+=Ce&(1<<je)-1,Ce>>>=je,we-=je),we<15&&(Ce+=le[ee++]<<we,Ce+=le[ee++]<<(we+=8),we+=8),gt=Qe[Ce&ot];n:for(;;){if(Ce>>>=je=gt>>>24,we-=je,!(16&(je=gt>>>16&255))){if(!(64&je)){gt=Qe[(65535&gt)+(Ce&(1<<je)-1)];continue n}w.msg="invalid distance code",v.mode=30;break e}if(kt=65535&gt,we<(je&=15)&&(Ce+=le[ee++]<<we,(we+=8)<je&&(Ce+=le[ee++]<<we,we+=8)),e<(kt+=Ce&(1<<je)-1)){w.msg="invalid distance too far back",v.mode=30;break e}if(Ce>>>=je,we-=je,(je=W-B)<kt){if(H<(je=kt-je)&&v.sane){w.msg="invalid distance too far back",v.mode=30;break e}if(at=oe,(We=0)===pe){if(We+=K-je,je<Ct){for(Ct-=je;Xe[W++]=oe[We++],--je;);We=W-kt,at=Xe}}else if(pe<je){if(We+=K+pe-je,(je-=pe)<Ct){for(Ct-=je;Xe[W++]=oe[We++],--je;);if(We=0,pe<Ct){for(Ct-=je=pe;Xe[W++]=oe[We++],--je;);We=W-kt,at=Xe}}}else if(We+=pe-je,je<Ct){for(Ct-=je;Xe[W++]=oe[We++],--je;);We=W-kt,at=Xe}for(;2<Ct;)Xe[W++]=at[We++],Xe[W++]=at[We++],Xe[W++]=at[We++],Ct-=3;Ct&&(Xe[W++]=at[We++],1<Ct&&(Xe[W++]=at[We++]))}else{for(We=W-kt;Xe[W++]=Xe[We++],Xe[W++]=Xe[We++],Xe[W++]=Xe[We++],2<(Ct-=3););Ct&&(Xe[W++]=Xe[We++],1<Ct&&(Xe[W++]=Xe[We++]))}break}}break}}while(ee<l&&W<T);ee-=Ct=we>>3,Ce&=(1<<(we-=Ct<<3))-1,w.next_in=ee,w.next_out=W,w.avail_in=ee<l?l-ee+5:5-(ee-l),w.avail_out=W<T?T-W+257:257-(W-T),v.hold=Ce,v.bits=we}},{}],49:[function(Me,R,p){"use strict";var w=Me("../utils/common"),N=Me("./adler32"),v=Me("./crc32"),ee=Me("./inffast"),l=Me("./inftrees"),T=0,e=-2,K=1,H=852,pe=592;function oe(We){return(We>>>24&255)+(We>>>8&65280)+((65280&We)<<8)+((255&We)<<24)}function Ce(){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 w.Buf16(320),this.work=new w.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function we(We){var at;return We&&We.state?(We.total_in=We.total_out=(at=We.state).total=0,We.msg="",at.wrap&&(We.adler=1&at.wrap),at.mode=K,at.last=0,at.havedict=0,at.dmax=32768,at.head=null,at.hold=0,at.bits=0,at.lencode=at.lendyn=new w.Buf32(H),at.distcode=at.distdyn=new w.Buf32(pe),at.sane=1,at.back=-1,T):e}function Pe(We){var at;return We&&We.state?((at=We.state).wsize=0,at.whave=0,at.wnext=0,we(We)):e}function Qe(We,at){var le,Xe;return We&&We.state?(Xe=We.state,at<0?(le=0,at=-at):(le=1+(at>>
vendor: 5,585 bytes, line 1
14),at<48&&(at&=15)),at&&(at<8||15<at)?e:(null!==Xe.window&&Xe.wbits!==at&&(Xe.window=null),Xe.wrap=le,Xe.wbits=at,Pe(We))):e}function ht(We,at){var le,Xe;return We?(Xe=new Ce,(We.state=Xe).window=null,(le=Qe(We,at))!==T&&(We.state=null),le):e}var ot,gt,je=!0;function Ct(We){if(je){var at;for(ot=new w.Buf32(512),gt=new w.Buf32(32),at=0;at<144;)We.lens[at++]=8;for(;at<256;)We.lens[at++]=9;for(;at<280;)We.lens[at++]=7;for(;at<288;)We.lens[at++]=8;for(l(1,We.lens,0,288,ot,0,We.work,{bits:9}),at=0;at<32;)We.lens[at++]=5;l(2,We.lens,0,32,gt,0,We.work,{bits:5}),je=!1}We.lencode=ot,We.lenbits=9,We.distcode=gt,We.distbits=5}function kt(We,at,le,Xe){var Mt,Et=We.state;return null===Et.window&&(Et.wsize=1<<Et.wbits,Et.wnext=0,Et.whave=0,Et.window=new w.Buf8(Et.wsize)),Xe>=Et.wsize?(w.arraySet(Et.window,at,le-Et.wsize,Et.wsize,0),Et.wnext=0,Et.whave=Et.wsize):(Xe<(Mt=Et.wsize-Et.wnext)&&(Mt=Xe),w.arraySet(Et.window,at,le-Xe,Mt,Et.wnext),(Xe-=Mt)?(w.arraySet(Et.window,at,le-Xe,Xe,0),Et.wnext=Xe,Et.whave=Et.wsize):(Et.wnext+=Mt,Et.wnext===Et.wsize&&(Et.wnext=0),Et.whave<Et.wsize&&(Et.whave+=Mt))),0}p.inflateReset=Pe,p.inflateReset2=Qe,p.inflateResetKeep=we,p.inflateInit=function(We){return ht(We,15)},p.inflateInit2=ht,p.inflate=function(We,at){var le,Xe,Mt,Et,Jt,ct,Gt,Te,Ze,Ne,Je,Fe,ze,ft,Re,rt,Ot,It,on,ue,U,Oe,Ue,$e,Ve=0,lt=new w.Buf8(4),Rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!We||!We.state||!We.output||!We.input&&0!==We.avail_in)return e;12===(le=We.state).mode&&(le.mode=13),Jt=We.next_out,Mt=We.output,Et=We.next_in,Xe=We.input,Te=le.hold,Ze=le.bits,Ne=ct=We.avail_in,Je=Gt=We.avail_out,Oe=T;e:for(;;)switch(le.mode){case K:if(0===le.wrap){le.mode=13;break}for(;Ze<16;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if(2&le.wrap&&35615===Te){lt[le.check=0]=255&Te,lt[1]=Te>>>8&255,le.check=v(le.check,lt,2,0),Ze=Te=0,le.mode=2;break}if(le.flags=0,le.head&&(le.head.done=!1),!(1&le.wrap)||(((255&Te)<<8)+(Te>>8))%31){We.msg="incorrect header check",le.mode=30;break}if(8!=(15&Te)){We.msg="unknown compression method",le.mode=30;break}if(Ze-=4,U=8+(15&(Te>>>=4)),0===le.wbits)le.wbits=U;else if(U>le.wbits){We.msg="invalid window size",le.mode=30;break}le.dmax=1<<U,We.adler=le.check=1,le.mode=512&Te?10:12,Ze=Te=0;break;case 2:for(;Ze<16;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if(le.flags=Te,8!=(255&le.flags)){We.msg="unknown compression method",le.mode=30;break}if(57344&le.flags){We.msg="unknown header flags set",le.mode=30;break}le.head&&(le.head.text=Te>>8&1),512&le.flags&&(lt[0]=255&Te,lt[1]=Te>>>8&255,le.check=v(le.check,lt,2,0)),Ze=Te=0,le.mode=3;case 3:for(;Ze<32;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}le.head&&(le.head.time=Te),512&le.flags&&(lt[0]=255&Te,lt[1]=Te>>>8&255,lt[2]=Te>>>16&255,lt[3]=Te>>>24&255,le.check=v(le.check,lt,4,0)),Ze=Te=0,le.mode=4;case 4:for(;Ze<16;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}le.head&&(le.head.xflags=255&Te,le.head.os=Te>>8),512&le.flags&&(lt[0]=255&Te,lt[1]=Te>>>8&255,le.check=v(le.check,lt,2,0)),Ze=Te=0,le.mode=5;case 5:if(1024&le.flags){for(;Ze<16;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}le.length=Te,le.head&&(le.head.extra_len=Te),512&le.flags&&(lt[0]=255&Te,lt[1]=Te>>>8&255,le.check=v(le.check,lt,2,0)),Ze=Te=0}else le.head&&(le.head.extra=null);le.mode=6;case 6:if(1024&le.flags&&(ct<(Fe=le.length)&&(Fe=ct),Fe&&(le.head&&(U=le.head.extra_len-le.length,le.head.extra||(le.head.extra=new Array(le.head.extra_len)),w.arraySet(le.head.extra,Xe,Et,Fe,U)),512&le.flags&&(le.check=v(le.check,Xe,Fe,Et)),ct-=Fe,Et+=Fe,le.length-=Fe),le.length))break e;le.length=0,le.mode=7;case 7:if(2048&le.flags){if(0===ct)break e;for(Fe=0;U=Xe[Et+Fe++],le.head&&U&&le.length<65536&&(le.head.name+=String.fromCharCode(U)),U&&Fe<ct;);if(512&le.flags&&(le.check=v(le.check,Xe,Fe,Et)),ct-=Fe,Et+=Fe,U)break e}else le.head&&(le.head.name=null);le.length=0,le.mode=8;case 8:if(4096&le.flags){if(0===ct)break e;for(Fe=0;U=Xe[Et+Fe++],le.head&&U&&le.length<65536&&(le.head.comment+=String.fromCharCode(U)),U&&Fe<ct;);if(512&le.flags&&(le.check=v(le.check,Xe,Fe,Et)),ct-=Fe,Et+=Fe,U)break e}else le.head&&(le.head.comment=null);le.mode=9;case 9:if(512&le.flags){for(;Ze<16;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if(Te!==(65535&le.check)){We.msg="header crc mismatch",le.mode=30;break}Ze=Te=0}le.head&&(le.head.hcrc=le.flags>>9&1,le.head.done=!0),We.adler=le.check=0,le.mode=12;break;case 10:for(;Ze<32;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}We.adler=le.check=oe(Te),Ze=Te=0,le.mode=11;case 11:if(0===le.havedict)return We.next_out=Jt,We.avail_out=Gt,We.next_in=Et,We.avail_in=ct,le.hold=Te,le.bits=Ze,2;We.adler=le.check=1,le.mode=12;case 12:if(5===at||6===at)break e;case 13:if(le.last){Te>>>=7&Ze,Ze-=7&Ze,le.mode=27;break}for(;Ze<3;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}switch(le.last=1&Te,Ze-=1,3&(Te>>>=1)){case 0:le.mode=14;break;case 1:if(Ct(le),le.mode=20,6!==at)break;Te>>>=2,Ze-=2;break e;case 2:le.mode=17;break;case 3:We.msg="invalid block type",le.mode=30}Te>>>=2,Ze-=2;break;case 14:for(Te>>>=7&Ze,Ze-=7&Ze;Ze<32;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if((65535&Te)!=(Te>>>16^65535)){We.msg="invalid stored block lengths",le.mode=30;break}if(le.length=65535&Te,Ze=Te=0,le.mode=15,6===at)break e;case 15:le.mode=16;case 16:if(Fe=le.length){if(ct<Fe&&(Fe=ct),Gt<Fe&&(Fe=Gt),0===Fe)break e;w.arraySet(Mt,Xe,Et,Fe,Jt),ct-=Fe,Et+=Fe,Gt-=Fe,Jt+=Fe,le.length-=Fe;break}le.mode=12;break;case 17:for(;Ze<14;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if(le.nlen=257+(31&Te),Ze-=5,le.ndist=1+(31&(Te>>>=5)),Ze-=5,le.ncode=4+(15&(Te>>>=5)),Te>>
vendor: 10,250 bytes, line 1
1>=4,Ze-=4,286<le.nlen||30<le.ndist){We.msg="too many length or distance symbols",le.mode=30;break}le.have=0,le.mode=18;case 18:for(;le.have<le.ncode;){for(;Ze<3;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}le.lens[Rt[le.have++]]=7&Te,Te>>>=3,Ze-=3}for(;le.have<19;)le.lens[Rt[le.have++]]=0;if(le.lencode=le.lendyn,le.lenbits=7,Oe=l(0,le.lens,0,19,le.lencode,0,le.work,Ue={bits:le.lenbits}),le.lenbits=Ue.bits,Oe){We.msg="invalid code lengths set",le.mode=30;break}le.have=0,le.mode=19;case 19:for(;le.have<le.nlen+le.ndist;){for(;rt=(Ve=le.lencode[Te&(1<<le.lenbits)-1])>>>16&255,Ot=65535&Ve,!((Re=Ve>>>24)<=Ze);){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if(Ot<16)Te>>>=Re,Ze-=Re,le.lens[le.have++]=Ot;else{if(16===Ot){for($e=Re+2;Ze<$e;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if(Te>>>=Re,Ze-=Re,0===le.have){We.msg="invalid bit length repeat",le.mode=30;break}U=le.lens[le.have-1],Fe=3+(3&Te),Te>>>=2,Ze-=2}else if(17===Ot){for($e=Re+3;Ze<$e;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}Ze-=Re,U=0,Fe=3+(7&(Te>>>=Re)),Te>>>=3,Ze-=3}else{for($e=Re+7;Ze<$e;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}Ze-=Re,U=0,Fe=11+(127&(Te>>>=Re)),Te>>>=7,Ze-=7}if(le.have+Fe>le.nlen+le.ndist){We.msg="invalid bit length repeat",le.mode=30;break}for(;Fe--;)le.lens[le.have++]=U}}if(30===le.mode)break;if(0===le.lens[256]){We.msg="invalid code -- missing end-of-block",le.mode=30;break}if(le.lenbits=9,Oe=l(1,le.lens,0,le.nlen,le.lencode,0,le.work,Ue={bits:le.lenbits}),le.lenbits=Ue.bits,Oe){We.msg="invalid literal/lengths set",le.mode=30;break}if(le.distbits=6,le.distcode=le.distdyn,Oe=l(2,le.lens,le.nlen,le.ndist,le.distcode,0,le.work,Ue={bits:le.distbits}),le.distbits=Ue.bits,Oe){We.msg="invalid distances set",le.mode=30;break}if(le.mode=20,6===at)break e;case 20:le.mode=21;case 21:if(6<=ct&&258<=Gt){We.next_out=Jt,We.avail_out=Gt,We.next_in=Et,We.avail_in=ct,le.hold=Te,le.bits=Ze,ee(We,Je),Jt=We.next_out,Mt=We.output,Gt=We.avail_out,Et=We.next_in,Xe=We.input,ct=We.avail_in,Te=le.hold,Ze=le.bits,12===le.mode&&(le.back=-1);break}for(le.back=0;rt=(Ve=le.lencode[Te&(1<<le.lenbits)-1])>>>16&255,Ot=65535&Ve,!((Re=Ve>>>24)<=Ze);){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if(rt&&!(240&rt)){for(It=Re,on=rt,ue=Ot;rt=(Ve=le.lencode[ue+((Te&(1<<It+on)-1)>>It)])>>>16&255,Ot=65535&Ve,!(It+(Re=Ve>>>24)<=Ze);){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}Te>>>=It,Ze-=It,le.back+=It}if(Te>>>=Re,Ze-=Re,le.back+=Re,le.length=Ot,0===rt){le.mode=26;break}if(32&rt){le.back=-1,le.mode=12;break}if(64&rt){We.msg="invalid literal/length code",le.mode=30;break}le.extra=15&rt,le.mode=22;case 22:if(le.extra){for($e=le.extra;Ze<$e;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}le.length+=Te&(1<<le.extra)-1,Te>>>=le.extra,Ze-=le.extra,le.back+=le.extra}le.was=le.length,le.mode=23;case 23:for(;rt=(Ve=le.distcode[Te&(1<<le.distbits)-1])>>>16&255,Ot=65535&Ve,!((Re=Ve>>>24)<=Ze);){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if(!(240&rt)){for(It=Re,on=rt,ue=Ot;rt=(Ve=le.distcode[ue+((Te&(1<<It+on)-1)>>It)])>>>16&255,Ot=65535&Ve,!(It+(Re=Ve>>>24)<=Ze);){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}Te>>>=It,Ze-=It,le.back+=It}if(Te>>>=Re,Ze-=Re,le.back+=Re,64&rt){We.msg="invalid distance code",le.mode=30;break}le.offset=Ot,le.extra=15&rt,le.mode=24;case 24:if(le.extra){for($e=le.extra;Ze<$e;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}le.offset+=Te&(1<<le.extra)-1,Te>>>=le.extra,Ze-=le.extra,le.back+=le.extra}if(le.offset>le.dmax){We.msg="invalid distance too far back",le.mode=30;break}le.mode=25;case 25:if(0===Gt)break e;if(le.offset>(Fe=Je-Gt)){if((Fe=le.offset-Fe)>le.whave&&le.sane){We.msg="invalid distance too far back",le.mode=30;break}ze=Fe>le.wnext?le.wsize-(Fe-=le.wnext):le.wnext-Fe,Fe>le.length&&(Fe=le.length),ft=le.window}else ft=Mt,ze=Jt-le.offset,Fe=le.length;for(Gt<Fe&&(Fe=Gt),Gt-=Fe,le.length-=Fe;Mt[Jt++]=ft[ze++],--Fe;);0===le.length&&(le.mode=21);break;case 26:if(0===Gt)break e;Mt[Jt++]=le.length,Gt--,le.mode=21;break;case 27:if(le.wrap){for(;Ze<32;){if(0===ct)break e;ct--,Te|=Xe[Et++]<<Ze,Ze+=8}if(We.total_out+=Je-=Gt,le.total+=Je,Je&&(We.adler=le.check=le.flags?v(le.check,Mt,Je,Jt-Je):N(le.check,Mt,Je,Jt-Je)),Je=Gt,(le.flags?Te:oe(Te))!==le.check){We.msg="incorrect data check",le.mode=30;break}Ze=Te=0}le.mode=28;case 28:if(le.wrap&&le.flags){for(;Ze<32;){if(0===ct)break e;ct--,Te+=Xe[Et++]<<Ze,Ze+=8}if(Te!==(4294967295&le.total)){We.msg="incorrect length check",le.mode=30;break}Ze=Te=0}le.mode=29;case 29:Oe=1;break e;case 30:Oe=-3;break e;case 31:return-4;default:return e}return We.next_out=Jt,We.avail_out=Gt,We.next_in=Et,We.avail_in=ct,le.hold=Te,le.bits=Ze,(le.wsize||Je!==We.avail_out&&le.mode<30&&(le.mode<27||4!==at))&&kt(We,We.output,We.next_out,Je-We.avail_out)?(le.mode=31,-4):(Je-=We.avail_out,We.total_in+=Ne-=We.avail_in,We.total_out+=Je,le.total+=Je,le.wrap&&Je&&(We.adler=le.check=le.flags?v(le.check,Mt,Je,We.next_out-Je):N(le.check,Mt,Je,We.next_out-Je)),We.data_type=le.bits+(le.last?64:0)+(12===le.mode?128:0)+(20===le.mode||15===le.mode?256:0),(0==Ne&&0===Je||4===at)&&Oe===T&&(Oe=-5),Oe)},p.inflateEnd=function(We){if(!We||!We.state)return e;var at=We.state;return at.window&&(at.window=null),We.state=null,T},p.inflateGetHeader=function(We,at){var le;return We&&We.state&&2&(le=We.state).wrap?((le.head=at).done=!1,T):e},p.inflateSetDictionary=function(We,at){var le,Xe=at.length;return We&&We.state?0!==(le=We.state).wrap&&11!==le.mode?e:11===le.mode&&N(1,at,Xe,0)!==le.check?-3:kt(We,at,Xe,Xe)?(le.mode=31,-4):(le.havedict=1,T):e},p.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(Me,R,p){"use strict";var w=Me("../utils/common"),N=[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],v=[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],ee=[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],l=[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];R.exports=function(W,B,T,e,K,H,pe,oe){var Ce,we,Pe,Qe,ht,ot,gt,je,Ct,kt=oe.bits,We=0,at=0,le=0,Xe=0,Mt=0,Et=0,Jt=0,ct=0,Gt=0,Te=0,Ze=null,Ne=0,Je=new w.Buf16(16),Fe=new w.Buf16(16),ze=null,ft=0;for(We=0;We<=15;We++)Je[We]=0;for(at=0;at<e;at++)Je[B[T+at]]++;for(Mt=kt,Xe=15;1<=Xe&&0===Je[Xe];Xe--);if(Xe<Mt&&(Mt=Xe),0===Xe)return K[H++]=20971520,K[H++]=20971520,oe.bits=1,0;for(le=1;le<Xe&&0===Je[le];le++);for(Mt<le&&(Mt=le),We=ct=1;We<=15;We++)if(ct<<=1,(ct-=Je[We])<0)return-1;if(0<ct&&(0===W||1!==Xe))return-1;for(Fe[1]=0,We=1;We<15;We++)Fe[We+1]=Fe[We]+Je[We];for(at=0;at<e;at++)0!==B[T+at]&&(pe[Fe[B[T+at]]++]=at);if(ot=0===W?(Ze=ze=pe,19):1===W?(Ze=N,Ne-=257,ze=v,ft-=257,256):(Ze=ee,ze=l,-1),We=le,ht=H,Jt=at=Te=0,Pe=-1,Qe=(Gt=1<<(Et=Mt))-1,1===W&&852<Gt||2===W&&592<Gt)return 1;for(;;){for(gt=We-Jt,Ct=pe[at]<ot?(je=0,pe[at]):pe[at]>ot?(je=ze[ft+pe[at]],Ze[Ne+pe[at]]):(je=96,0),Ce=1<<We-Jt,le=we=1<<Et;K[ht+(Te>>Jt)+(we-=Ce)]=gt<<24|je<<16|Ct,0!==we;);for(Ce=1<<We-1;Te&Ce;)Ce>>=1;if(0!==Ce?(Te&=Ce-1,Te+=Ce):Te=0,at++,0==--Je[We]){if(We===Xe)break;We=B[T+pe[at]]}if(Mt<We&&(Te&Qe)!==Pe){for(0===Jt&&(Jt=Mt),ht+=le,ct=1<<(Et=We-Jt);Et+Jt<Xe&&!((ct-=Je[Et+Jt])<=0);)Et++,ct<<=1;if(Gt+=1<<Et,1===W&&852<Gt||2===W&&592<Gt)return 1;K[Pe=Te&Qe]=Mt<<24|Et<<16|ht-H}}return 0!==Te&&(K[ht+Te]=We-Jt<<24|64<<16),oe.bits=Mt,0}},{"../utils/common":41}],51:[function(Me,R,p){"use strict";R.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(Me,R,p){"use strict";var w=Me("../utils/common");function ee(Ve){for(var lt=Ve.length;0<=--lt;)Ve[lt]=0}var B=256,T=286,e=30,pe=15,oe=16,ot=[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],gt=[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],je=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],kt=new Array(576);ee(kt);var We=new Array(60);ee(We);var at=new Array(512);ee(at);var le=new Array(256);ee(le);var Xe=new Array(29);ee(Xe);var Mt,Et,Jt,ct=new Array(e);function Gt(Ve,lt,Rt,nt,xt){this.static_tree=Ve,this.extra_bits=lt,this.extra_base=Rt,this.elems=nt,this.max_length=xt,this.has_stree=Ve&&Ve.length}function Te(Ve,lt){this.dyn_tree=Ve,this.max_code=0,this.stat_desc=lt}function Ze(Ve){return Ve<256?at[Ve]:at[256+(Ve>>>7)]}function Ne(Ve,lt){Ve.pending_buf[Ve.pending++]=255&lt,Ve.pending_buf[Ve.pending++]=lt>>>8&255}function Je(Ve,lt,Rt){Ve.bi_valid>oe-Rt?(Ve.bi_buf|=lt<<Ve.bi_valid&65535,Ne(Ve,Ve.bi_buf),Ve.bi_buf=lt>>oe-Ve.bi_valid,Ve.bi_valid+=Rt-oe):(Ve.bi_buf|=lt<<Ve.bi_valid&65535,Ve.bi_valid+=Rt)}function Fe(Ve,lt,Rt){Je(Ve,Rt[2*lt],Rt[2*lt+1])}function ze(Ve,lt){for(var Rt=0;Rt|=1&Ve,Ve>>>=1,Rt<<=1,0<--lt;);return Rt>>>1}function ft(Ve,lt,Rt){var nt,xt,St=new Array(pe+1),Ht=0;for(nt=1;nt<=pe;nt++)St[nt]=Ht=Ht+Rt[nt-1]<<1;for(xt=0;xt<=lt;xt++){var Pt=Ve[2*xt+1];0!==Pt&&(Ve[2*xt]=ze(St[Pt]++,Pt))}}function Re(Ve){var lt;for(lt=0;lt<T;lt++)Ve.dyn_ltree[2*lt]=0;for(lt=0;lt<e;lt++)Ve.dyn_dtree[2*lt]=0;for(lt=0;lt<19;lt++)Ve.bl_tree[2*lt]=0;Ve.dyn_ltree[512]=1,Ve.opt_len=Ve.static_len=0,Ve.last_lit=Ve.matches=0}function rt(Ve){8<Ve.bi_valid?Ne(Ve,Ve.bi_buf):0<Ve.bi_valid&&(Ve.pending_buf[Ve.pending++]=Ve.bi_buf),Ve.bi_buf=0,Ve.bi_valid=0}function Ot(Ve,lt,Rt,nt){var xt=2*lt,St=2*Rt;return Ve[xt]<Ve[St]||Ve[xt]===Ve[St]&&nt[lt]<=nt[Rt]}function It(Ve,lt,Rt){for(var nt=Ve.heap[Rt],xt=Rt<<1;xt<=Ve.heap_len&&(xt<Ve.heap_len&&Ot(lt,Ve.heap[xt+1],Ve.heap[xt],Ve.depth)&&xt++,!Ot(lt,nt,Ve.heap[xt],Ve.depth));)Ve.heap[Rt]=Ve.heap[xt],Rt=xt,xt<<=1;Ve.heap[Rt]=nt}function on(Ve,lt,Rt){var nt,xt,St,Ht,Pt=0;if(0!==Ve.last_lit)for(;nt=Ve.pending_buf[Ve.d_buf+2*Pt]<<8|Ve.pending_buf[Ve.d_buf+2*Pt+1],xt=Ve.pending_buf[Ve.l_buf+Pt],Pt++,0===nt?Fe(Ve,xt,lt):(Fe(Ve,(St=le[xt])+B+1,lt),0!==(Ht=ot[St])&&Je(Ve,xt-=Xe[St],Ht),Fe(Ve,St=Ze(--nt),Rt),0!==(Ht=gt[St])&&Je(Ve,nt-=ct[St],Ht)),Pt<Ve.last_lit;);Fe(Ve,256,lt)}function ue(Ve,lt){var Rt,nt,xt,St=lt.dyn_tree,Ht=lt.stat_desc.static_tree,Pt=lt.stat_desc.has_stree,fn=lt.stat_desc.elems,
vendor: 6,472 bytes, line 1
1kn=-1;for(Ve.heap_len=0,Ve.heap_max=573,Rt=0;Rt<fn;Rt++)0!==St[2*Rt]?(Ve.heap[++Ve.heap_len]=kn=Rt,Ve.depth[Rt]=0):St[2*Rt+1]=0;for(;Ve.heap_len<2;)St[2*(xt=Ve.heap[++Ve.heap_len]=kn<2?++kn:0)]=1,Ve.depth[xt]=0,Ve.opt_len--,Pt&&(Ve.static_len-=Ht[2*xt+1]);for(lt.max_code=kn,Rt=Ve.heap_len>>1;1<=Rt;Rt--)It(Ve,St,Rt);for(xt=fn;Rt=Ve.heap[1],Ve.heap[1]=Ve.heap[Ve.heap_len--],It(Ve,St,1),nt=Ve.heap[1],Ve.heap[--Ve.heap_max]=Rt,Ve.heap[--Ve.heap_max]=nt,St[2*xt]=St[2*Rt]+St[2*nt],Ve.depth[xt]=(Ve.depth[Rt]>=Ve.depth[nt]?Ve.depth[Rt]:Ve.depth[nt])+1,St[2*Rt+1]=St[2*nt+1]=xt,Ve.heap[1]=xt++,It(Ve,St,1),2<=Ve.heap_len;);Ve.heap[--Ve.heap_max]=Ve.heap[1],function(an,qt){var wi,$n,Qn,Un,Wn,Oi,hn=qt.dyn_tree,Mi=qt.max_code,Fn=qt.stat_desc.static_tree,xn=qt.stat_desc.has_stree,hi=qt.stat_desc.extra_bits,Xn=qt.stat_desc.extra_base,ri=qt.stat_desc.max_length,In=0;for(Un=0;Un<=pe;Un++)an.bl_count[Un]=0;for(hn[2*an.heap[an.heap_max]+1]=0,wi=an.heap_max+1;wi<573;wi++)ri<(Un=hn[2*hn[2*($n=an.heap[wi])+1]+1]+1)&&(Un=ri,In++),hn[2*$n+1]=Un,Mi<$n||(an.bl_count[Un]++,Wn=0,Xn<=$n&&(Wn=hi[$n-Xn]),an.opt_len+=(Oi=hn[2*$n])*(Un+Wn),xn&&(an.static_len+=Oi*(Fn[2*$n+1]+Wn)));if(0!==In){do{for(Un=ri-1;0===an.bl_count[Un];)Un--;an.bl_count[Un]--,an.bl_count[Un+1]+=2,an.bl_count[ri]--,In-=2}while(0<In);for(Un=ri;0!==Un;Un--)for($n=an.bl_count[Un];0!==$n;)Mi<(Qn=an.heap[--wi])||(hn[2*Qn+1]!==Un&&(an.opt_len+=(Un-hn[2*Qn+1])*hn[2*Qn],hn[2*Qn+1]=Un),$n--)}}(Ve,lt),ft(St,kn,Ve.bl_count)}function U(Ve,lt,Rt){var nt,xt,St=-1,Ht=lt[1],Pt=0,fn=7,kn=4;for(0===Ht&&(fn=138,kn=3),lt[2*(Rt+1)+1]=65535,nt=0;nt<=Rt;nt++)xt=Ht,Ht=lt[2*(nt+1)+1],++Pt<fn&&xt===Ht||(Pt<kn?Ve.bl_tree[2*xt]+=Pt:0!==xt?(xt!==St&&Ve.bl_tree[2*xt]++,Ve.bl_tree[32]++):Pt<=10?Ve.bl_tree[34]++:Ve.bl_tree[36]++,St=xt,kn=(Pt=0)===Ht?(fn=138,3):xt===Ht?(fn=6,3):(fn=7,4))}function Oe(Ve,lt,Rt){var nt,xt,St=-1,Ht=lt[1],Pt=0,fn=7,kn=4;for(0===Ht&&(fn=138,kn=3),nt=0;nt<=Rt;nt++)if(xt=Ht,Ht=lt[2*(nt+1)+1],!(++Pt<fn&&xt===Ht)){if(Pt<kn)for(;Fe(Ve,xt,Ve.bl_tree),0!=--Pt;);else 0!==xt?(xt!==St&&(Fe(Ve,xt,Ve.bl_tree),Pt--),Fe(Ve,16,Ve.bl_tree),Je(Ve,Pt-3,2)):Pt<=10?(Fe(Ve,17,Ve.bl_tree),Je(Ve,Pt-3,3)):(Fe(Ve,18,Ve.bl_tree),Je(Ve,Pt-11,7));St=xt,kn=(Pt=0)===Ht?(fn=138,3):xt===Ht?(fn=6,3):(fn=7,4)}}ee(ct);var Ue=!1;function $e(Ve,lt,Rt,nt){var xt,St,Ht;Je(Ve,0+(nt?1:0),3),St=lt,Ht=Rt,rt(xt=Ve),Ne(xt,Ht),Ne(xt,~Ht),w.arraySet(xt.pending_buf,xt.window,St,Ht,xt.pending),xt.pending+=Ht}p._tr_init=function(Ve){Ue||(function(){var lt,Rt,nt,xt,St,Ht=new Array(pe+1);for(xt=nt=0;xt<28;xt++)for(Xe[xt]=nt,lt=0;lt<1<<ot[xt];lt++)le[nt++]=xt;for(le[nt-1]=xt,xt=St=0;xt<16;xt++)for(ct[xt]=St,lt=0;lt<1<<gt[xt];lt++)at[St++]=xt;for(St>>=7;xt<e;xt++)for(ct[xt]=St<<7,lt=0;lt<1<<gt[xt]-7;lt++)at[256+St++]=xt;for(Rt=0;Rt<=pe;Rt++)Ht[Rt]=0;for(lt=0;lt<=143;)kt[2*lt+1]=8,lt++,Ht[8]++;for(;lt<=255;)kt[2*lt+1]=9,lt++,Ht[9]++;for(;lt<=279;)kt[2*lt+1]=7,lt++,Ht[7]++;for(;lt<=287;)kt[2*lt+1]=8,lt++,Ht[8]++;for(ft(kt,287,Ht),lt=0;lt<e;lt++)We[2*lt+1]=5,We[2*lt]=ze(lt,5);Mt=new Gt(kt,ot,257,T,pe),Et=new Gt(We,gt,0,e,pe),Jt=new Gt(new Array(0),je,0,19,7)}(),Ue=!0),Ve.l_desc=new Te(Ve.dyn_ltree,Mt),Ve.d_desc=new Te(Ve.dyn_dtree,Et),Ve.bl_desc=new Te(Ve.bl_tree,Jt),Ve.bi_buf=0,Ve.bi_valid=0,Re(Ve)},p._tr_stored_block=$e,p._tr_flush_block=function(Ve,lt,Rt,nt){var xt,St,Ht=0;0<Ve.level?(2===Ve.strm.data_type&&(Ve.strm.data_type=function(Pt){var fn,kn=4093624447;for(fn=0;fn<=31;fn++,kn>>>=1)if(1&kn&&0!==Pt.dyn_ltree[2*fn])return 0;if(0!==Pt.dyn_ltree[18]||0!==Pt.dyn_ltree[20]||0!==Pt.dyn_ltree[26])return 1;for(fn=32;fn<B;fn++)if(0!==Pt.dyn_ltree[2*fn])return 1;return 0}(Ve)),ue(Ve,Ve.l_desc),ue(Ve,Ve.d_desc),Ht=function(Pt){var fn;for(U(Pt,Pt.dyn_ltree,Pt.l_desc.max_code),U(Pt,Pt.dyn_dtree,Pt.d_desc.max_code),ue(Pt,Pt.bl_desc),fn=18;3<=fn&&0===Pt.bl_tree[2*Ct[fn]+1];fn--);return Pt.opt_len+=3*(fn+1)+5+5+4,fn}(Ve),(St=Ve.static_len+3+7>>>3)<=(xt=Ve.opt_len+3+7>>>3)&&(xt=St)):xt=St=Rt+5,Rt+4<=xt&&-1!==lt?$e(Ve,lt,Rt,nt):4===Ve.strategy||St===xt?(Je(Ve,2+(nt?1:0),3),on(Ve,kt,We)):(Je(Ve,4+(nt?1:0),3),function(Pt,fn,kn,an){var qt;for(Je(Pt,fn-257,5),Je(Pt,kn-1,5),Je(Pt,an-4,4),qt=0;qt<an;qt++)Je(Pt,Pt.bl_tree[2*Ct[qt]+1],3);Oe(Pt,Pt.dyn_ltree,fn-1),Oe(Pt,Pt.dyn_dtree,kn-1)}(Ve,Ve.l_desc.max_code+1,Ve.d_desc.max_code+1,Ht+1),on(Ve,Ve.dyn_ltree,Ve.dyn_dtree)),Re(Ve),nt&&rt(Ve)},p._tr_tally=function(Ve,lt,Rt){return Ve.pending_buf[Ve.d_buf+2*Ve.last_lit]=lt>>>8&255,Ve.pending_buf[Ve.d_buf+2*Ve.last_lit+1]=255&lt,Ve.pending_buf[Ve.l_buf+Ve.last_lit]=255&Rt,Ve.last_lit++,0===lt?Ve.dyn_ltree[2*Rt]++:(Ve.matches++,lt--,Ve.dyn_ltree[2*(le[Rt]+B+1)]++,Ve.dyn_dtree[2*Ze(lt)]++),Ve.last_lit===Ve.lit_bufsize-1},p._tr_align=function(Ve){var lt;Je(Ve,2,3),Fe(Ve,256,kt),16===(lt=Ve).bi_valid?(Ne(lt,lt.bi_buf),lt.bi_buf=0,lt.bi_valid=0):8<=lt.bi_valid&&(lt.pending_buf[lt.pending++]=255&lt.bi_buf,lt.bi_buf>>=8,lt.bi_valid-=8)}},{"../utils/common":41}],53:[function(Me,R,p){"use strict";R.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(Me,R,p){(function(w){!function(N,v){"use strict";if(!N.setImmediate){var ee,l,W,B,T=1,e={},K=!1,H=N.document,pe=Object.getPrototypeOf&&Object.getPrototypeOf(N);pe=pe&&pe.setTimeout?pe:N,ee="[object process]"==={}.toString.call(N.process)?function(Pe){process.nextTick(function(){Ce(Pe)})}:function(){if(N.postMessage&&!N.importScripts){var Pe=!0,Qe=N.onmessage;return N.onmessage=function(){Pe=!1},N.postMessage("","*"),N.onmessage=Qe,Pe}}()?(B="setImmediate$"+Math.random()+"$",N.addEventListener?N.addEventListener("message",we,!1):N.attachEvent("onmessage",we),function(Pe){N.postMessage(B+Pe,"*")}):N.MessageChannel?((W=new MessageChannel).port1.onmessage=function(Pe){Ce(Pe.data)},function(Pe){W.port2.postMessage(Pe)}):H&&"onreadystatechange"in H.createElement("script")?(l=H.documentElement,function(Pe){var Qe=H.createElement("script");Qe.onreadystatechange=function(){Ce(Pe),Qe.onreadystatechange=null,l.removeChild(Qe),Qe=null},l.appendChild(Qe)}):function(Pe){setTimeout(Ce,0,Pe)},pe.setImmediate=function(Pe){"function"!=typeof Pe&&(Pe=new Function(""+Pe));for(var Qe=new Array(arguments.length-1),ht=0;ht<Qe.length;ht++)Qe[ht]=arguments[ht+1];return e[T]={callback:Pe,args:Qe},ee(T),T++},pe.clearImmediate=oe}function oe(Pe){delete e[Pe]}function Ce(Pe){if(K)setTimeout(Ce,0,Pe);else{var Qe=e[Pe];
1if(Qe){K=!0;try{!function(ht){var ot=ht.callback,gt=ht.args;switch(gt.length){case 0:ot();break;case 1:ot(gt[0]);break;case 2:ot(gt[0],gt[1]);break;case 3:ot(gt[0],gt[1],gt[2]);break;default:ot.apply(v,gt)}}(Qe)}finally{oe(Pe),K=!1}}}}function we(Pe){Pe.source===N&&"string"==typeof Pe.data&&0===Pe.data.indexOf(B)&&Ce(+Pe.data.slice(B.length))}}(typeof self>"u"?void 0===w?this:w:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)},8350:(en,Me,R)=>{"use strict";function p(W){this.message=W}R.d(Me,{A:()=>l}),(p.prototype=new Error).name="InvalidCharacterError";var w=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(W){var B=String(W).replace(/=+$/,"");if(B.length%4==1)throw new p("'atob' failed: The string to be decoded is not correctly encoded.");for(var T,e,K=0,H=0,pe="";e=B.charAt(H++);~e&&(T=K%4?64*T+e:e,K++%4)?pe+=String.fromCharCode(255&T>>(-2*K&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return pe};function v(W){this.message=W}(v.prototype=new Error).name="InvalidTokenError";const l=function ee(W,B){if("string"!=typeof W)throw new v("Invalid token specified");var T=!0===(B=B||{}).header?0:1;try{return JSON.parse(function N(W){var B=W.replace(/-/g,"+").replace(/_/g,"/");switch(B.length%4){case 0:break;case 2:B+="==";break;case 3:B+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(w(B).replace(/(.)/g,function(e,K){var H=K.charCodeAt(0).toString(16).toUpperCase();return H.length<2&&(H="0"+H),"%"+H}))}catch{return w(B)}}(W.split(".")[T]))}catch(e){throw new v("Invalid token specified: "+e.message)}}},4336:(en,Me,R)=>{"use strict";R.d(Me,{A:()=>sr});var p=R(7247),w=R.n(p),N=function(){return N=Object.assign||function(X){for(var V,he=1,S=arguments.length;he<S;he++)for(var Ie in V=arguments[he])Object.prototype.hasOwnProperty.call(V,Ie)&&(X[Ie]=V[Ie]);return X},N.apply(this,arguments)};function v(A,X,V,he){return new(V||(V=Promise))(function(Ie,C){function se(re){try{E(he.next(re))}catch(tt){C(tt)}}function G(re){try{E(he.throw(re))}catch(tt){C(tt)}}function E(re){re.done?Ie(re.value):function S(Ie){return Ie instanceof V?Ie:new V(function(C){C(Ie)})}(re.value).then(se,G)}E((he=he.apply(A,X||[])).next())})}function ee(A,X){var he,S,Ie,C,V={label:0,sent:function(){if(1&Ie[0])throw Ie[1];return Ie[1]},trys:[],ops:[]};return C={next:se(0),throw:se(1),return:se(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function se(E){return function(re){return function G(E){if(he)throw new TypeError("Generator is already executing.");for(;C&&(C=0,E[0]&&(V=0)),V;)try{if(he=1,S&&(Ie=2&E[0]?S.return:E[0]?S.throw||((Ie=S.return)&&Ie.call(S),0):S.next)&&!(Ie=Ie.call(S,E[1])).done)return Ie;switch(S=0,Ie&&(E=[2&E[0],Ie.value]),E[0]){case 0:case 1:Ie=E;break;case 4:return V.label++,{value:E[1],done:!1};case 5:V.label++,S=E[1],E=[0];continue;case 7:E=V.ops.pop(),V.trys.pop();continue;default:if(!(Ie=(Ie=V.trys).length>0&&Ie[Ie.length-1])&&(6===E[0]||2===E[0])){V=0;continue}if(3===E[0]&&(!Ie||E[1]>Ie[0]&&E[1]<Ie[3])){V.label=E[1];break}if(6===E[0]&&V.label<Ie[1]){V.label=Ie[1],Ie=E;break}if(Ie&&V.label<Ie[2]){V.label=Ie[2],V.ops.push(E);break}Ie[2]&&V.ops.pop(),V.trys.pop();continue}E=X.call(A,V)}catch(re){E=[6,re],S=0}finally{he=Ie=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,re])}}}function l(A,X,V){if(V||2===arguments.length)for(var Ie,he=0,S=X.length;he<S;he++)(Ie||!(he in X))&&(Ie||(Ie=Array.prototype.slice.call(X,0,he)),Ie[he]=X[he]);return A.concat(Ie||Array.prototype.slice.call(X))}var W=914400,B=12700,T="\r\n",K=/^[0-9a-fA-F]{6}$/,pe=27,Ce=[.05,.1,.05,.1],we_color="363636",we_pt=1,Pe={color:"888888",style:"solid",size:1,cap:"flat"},Qe="000000",ht=12,gt="LAYOUT_16x9",je="DEFAULT",kt={type:"outer",blur:3,offset:23e3/12700,angle:90,color:"000000",opacity:.35,rotateWithShape:!0},We=[.5,.5,.5,.5],at_color="000000",le={size:8,color:"FFFFFF",opacity:.75},Xe="2094734552",Mt="2094734553",Et="2094734554",Jt="2094734555",ct="2094734556",Gt="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),Te=["C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360","C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360"],Ze=["5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7","5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7"],Ne=function(A){return A.left="left",A.center="center",A.right="right",A.justify="justify",A}(Ne||{}),Je=function(A){return A.b="b",A.ctr="ctr",A.t="t",A}(Je||{}),Fe="{F7021451-1387-4CA6-816F-3879F97B5CBC}",ze=function(A){return A.arraybuffer="arraybuffer",A.base64="base64",A.binarystring="binarystring",A.blob="blob",A.nodebuffer="nodebuffer",A.uint8array="uint8array",A}(ze||{}),ft=function(A){return A.area="area",A.bar="bar",A.bar3d="bar3D",A.bubble="bubble",A.bubble3d="bubble3D",A.doughnut="doughnut",A.line="line",A.pie="pie",A.radar="radar",A.scatter="scatter",A}(ft||{}),Re=function(A){return A.accentBorderCallout1="accentBorderCallout1",A.accentBorderCallout2="accentBorderCallout2",A.accentBorderCallout3="accentBorderCallout3",A.accentC
1allout1="accentCallout1",A.accentCallout2="accentCallout2",A.accentCallout3="accentCallout3",A.actionButtonBackPrevious="actionButtonBackPrevious",A.actionButtonBeginning="actionButtonBeginning",A.actionButtonBlank="actionButtonBlank",A.actionButtonDocument="actionButtonDocument",A.actionButtonEnd="actionButtonEnd",A.actionButtonForwardNext="actionButtonForwardNext",A.actionButtonHelp="actionButtonHelp",A.actionButtonHome="actionButtonHome",A.actionButtonInformation="actionButtonInformation",A.actionButtonMovie="actionButtonMovie",A.actionButtonReturn="actionButtonReturn",A.actionButtonSound="actionButtonSound",A.arc="arc",A.bentArrow="bentArrow",A.bentUpArrow="bentUpArrow",A.bevel="bevel",A.blockArc="blockArc",A.borderCallout1="borderCallout1",A.borderCallout2="borderCallout2",A.borderCallout3="borderCallout3",A.bracePair="bracePair",A.bracketPair="bracketPair",A.callout1="callout1",A.callout2="callout2",A.callout3="callout3",A.can="can",A.chartPlus="chartPlus",A.chartStar="chartStar",A.chartX="chartX",A.chevron="chevron",A.chord="chord",A.circularArrow="circularArrow",A.cloud="cloud",A.cloudCallout="cloudCallout",A.corner="corner",A.cornerTabs="cornerTabs",A.cube="cube",A.curvedDownArrow="curvedDownArrow",A.curvedLeftArrow="curvedLeftArrow",A.curvedRightArrow="curvedRightArrow",A.curvedUpArrow="curvedUpArrow",A.custGeom="custGeom",A.decagon="decagon",A.diagStripe="diagStripe",A.diamond="diamond",A.dodecagon="dodecagon",A.donut="donut",A.doubleWave="doubleWave",A.downArrow="downArrow",A.downArrowCallout="downArrowCallout",A.ellipse="ellipse",A.ellipseRibbon="ellipseRibbon",A.ellipseRibbon2="ellipseRibbon2",A.flowChartAlternateProcess="flowChartAlternateProcess",A.flowChartCollate="flowChartCollate",A.flowChartConnector="flowChartConnector",A.flowChartDecision="flowChartDecision",A.flowChartDelay="flowChartDelay",A.flowChartDisplay="flowChartDisplay",A.flowChartDocument="flowChartDocument",A.flowChartExtract="flowChartExtract",A.flowChartInputOutput="flowChartInputOutput",A.flowChartInternalStorage="flowChartInternalStorage",A.flowChartMagneticDisk="flowChartMagneticDisk",A.flowChartMagneticDrum="flowChartMagneticDrum",A.flowChartMagneticTape="flowChartMagneticTape",A.flowChartManualInput="flowChartManualInput",A.flowChartManualOperation="flowChartManualOperation",A.flowChartMerge="flowChartMerge",A.flowChartMultidocument="flowChartMultidocument",A.flowChartOfflineStorage="flowChartOfflineStorage",A.flowChartOffpageConnector="flowChartOffpageConnector",A.flowChartOnlineStorage="flowChartOnlineStorage",A.flowChartOr="flowChartOr",A.flowChartPredefinedProcess="flowChartPredefinedProcess",A.flowChartPreparation="flowChartPreparation",A.flowChartProcess="flowChartProcess",A.flowChartPunchedCard="flowChartPunchedCard",A.flowChartPunchedTape="flowChartPunchedTape",A.flowChartSort="flowChartSort",A.flowChartSummingJunction="flowChartSummingJunction",A.flowChartTerminator="flowChartTerminator",A.folderCorner="folderCorner",A.frame="frame",A.funnel="funnel",A.gear6="gear6",A.gear9="gear9",A.halfFrame="halfFrame",A.heart="heart",A.heptagon="heptagon",A.hexagon="hexagon",A.homePlate="homePlate",A.horizontalScroll="horizontalScroll",A.irregularSeal1="irregularSeal1",A.irregularSeal2="irregularSeal2",A.leftArrow="leftArrow",A.leftArrowCallout="leftArrowCallout",A.leftBrace="leftBrace",A.leftBracket="leftBracket",A.leftCircularArrow="leftCircularArrow",A.leftRightArrow="leftRightArrow",A.leftRightArrowCallout="leftRightArrowCallout",A.leftRightCircularArrow="leftRightCircularArrow",A.leftRightRibbon="leftRightRibbon",A.leftRightUpArrow="leftRightUpArrow",A.leftUpArrow="leftUpArrow",A.lightningBolt="lightningBolt",A.line="line",A.lineInv="lineInv",A.mathDivide="mathDivide",A.mathEqual="mathEqual",A.mathMinus="mathMinus",A.mathMultiply="mathMultiply",A.mathNotEqual="mathNotEqual",A.mathPlus="mathPlus",A.moon="moon",A.noSmoking="noSmoking",A.nonIsoscelesTrapezoid="nonIsoscelesTrapezoid",A.notchedRightArrow="notchedRightArrow",A.octagon="octagon",A.parallelogram="parallelogram",A.pentagon="pentagon",A.pie="pie",A.pieWedge="pieWedge",A.plaque="plaque",A.plaqueTabs="plaqueTabs",A.plus="plus",A.quadArrow="quadArrow",A.quadArrowCallout="quadArrowCallout",A.rect="rect",A.ribbon="ribbon",A.ribbon2="ribbon2",A.rightArrow="rightArrow",A.rightArrowCallout="rightArrowCallout",A.rightBrace="rightBrace",A.rightBracket="rightBracket",A.round1Rect="round1Rect",A.round2DiagRect="round2DiagRect",A.round2SameRect="round2SameRect",A.roundRect="roundRect",A.rtTriangle="rtTriangle",A.smileyFace="smileyFace",A.snip1Rect="snip1Rect",A.snip2DiagRect="snip2DiagRect",A.snip2SameRect="snip2SameRect",A.snipRoundRect="snipRoundRect",A.squareTabs="squareTabs",A.star10="star10",A.star12="star12",A.star16="star16",A.star24="star24",A.
1star32="star32",A.star4="star4",A.star5="star5",A.star6="star6",A.star7="star7",A.star8="star8",A.stripedRightArrow="stripedRightArrow",A.sun="sun",A.swooshArrow="swooshArrow",A.teardrop="teardrop",A.trapezoid="trapezoid",A.triangle="triangle",A.upArrow="upArrow",A.upArrowCallout="upArrowCallout",A.upDownArrow="upDownArrow",A.upDownArrowCallout="upDownArrowCallout",A.uturnArrow="uturnArrow",A.verticalScroll="verticalScroll",A.wave="wave",A.wedgeEllipseCallout="wedgeEllipseCallout",A.wedgeRectCallout="wedgeRectCallout",A.wedgeRoundRectCallout="wedgeRoundRectCallout",A}(Re||{}),rt=function(A){return A.text1="tx1",A.text2="tx2",A.background1="bg1",A.background2="bg2",A.accent1="accent1",A.accent2="accent2",A.accent3="accent3",A.accent4="accent4",A.accent5="accent5",A.accent6="accent6",A}(rt||{}),Ot=function(A){return A.left="left",A.center="center",A.right="right",A.justify="justify",A}(Ot||{}),It=function(A){return A.top="top",A.middle="middle",A.bottom="bottom",A}(It||{}),on=function(A){return A.ACTION_BUTTON_BACK_OR_PREVIOUS="actionButtonBackPrevious",A.ACTION_BUTTON_BEGINNING="actionButtonBeginning",A.ACTION_BUTTON_CUSTOM="actionButtonBlank",A.ACTION_BUTTON_DOCUMENT="actionButtonDocument",A.ACTION_BUTTON_END="actionButtonEnd",A.ACTION_BUTTON_FORWARD_OR_NEXT="actionButtonForwardNext",A.ACTION_BUTTON_HELP="actionButtonHelp",A.ACTION_BUTTON_HOME="actionButtonHome",A.ACTION_BUTTON_INFORMATION="actionButtonInformation",A.ACTION_BUTTON_MOVIE="actionButtonMovie",A.ACTION_BUTTON_RETURN="actionButtonReturn",A.ACTION_BUTTON_SOUND="actionButtonSound",A.ARC="arc",A.BALLOON="wedgeRoundRectCallout",A.BENT_ARROW="bentArrow",A.BENT_UP_ARROW="bentUpArrow",A.BEVEL="bevel",A.BLOCK_ARC="blockArc",A.CAN="can",A.CHART_PLUS="chartPlus",A.CHART_STAR="chartStar",A.CHART_X="chartX",A.CHEVRON="chevron",A.CHORD="chord",A.CIRCULAR_ARROW="circularArrow",A.CLOUD="cloud",A.CLOUD_CALLOUT="cloudCallout",A.CORNER="corner",A.CORNER_TABS="cornerTabs",A.CROSS="plus",A.CUBE="cube",A.CURVED_DOWN_ARROW="curvedDownArrow",A.CURVED_DOWN_RIBBON="ellipseRibbon",A.CURVED_LEFT_ARROW="curvedLeftArrow",A.CURVED_RIGHT_ARROW="curvedRightArrow",A.CURVED_UP_ARROW="curvedUpArrow",A.CURVED_UP_RIBBON="ellipseRibbon2",A.CUSTOM_GEOMETRY="custGeom",A.DECAGON="decagon",A.DIAGONAL_STRIPE="diagStripe",A.DIAMOND="diamond",A.DODECAGON="dodecagon",A.DONUT="donut",A.DOUBLE_BRACE="bracePair",A.DOUBLE_BRACKET="bracketPair",A.DOUBLE_WAVE="doubleWave",A.DOWN_ARROW="downArrow",A.DOWN_ARROW_CALLOUT="downArrowCallout",A.DOWN_RIBBON="ribbon",A.EXPLOSION1="irregularSeal1",A.EXPLOSION2="irregularSeal2",A.FLOWCHART_ALTERNATE_PROCESS="flowChartAlternateProcess",A.FLOWCHART_CARD="flowChartPunchedCard",A.FLOWCHART_COLLATE="flowChartCollate",A.FLOWCHART_CONNECTOR="flowChartConnector",A.FLOWCHART_DATA="flowChartInputOutput",A.FLOWCHART_DECISION="flowChartDecision",A.FLOWCHART_DELAY="flowChartDelay",A.FLOWCHART_DIRECT_ACCESS_STORAGE="flowChartMagneticDrum",A.FLOWCHART_DISPLAY="flowChartDisplay",A.FLOWCHART_DOCUMENT="flowChartDocument",A.FLOWCHART_EXTRACT="flowChartExtract",A.FLOWCHART_INTERNAL_STORAGE="flowChartInternalStorage",A.FLOWCHART_MAGNETIC_DISK="flowChartMagneticDisk",A.FLOWCHART_MANUAL_INPUT="flowChartManualInput",A.FLOWCHART_MANUAL_OPERATION="flowChartManualOperation",A.FLOWCHART_MERGE="flowChartMerge",A.FLOWCHART_MULTIDOCUMENT="flowChartMultidocument",A.FLOWCHART_OFFLINE_STORAGE="flowChartOfflineStorage",A.FLOWCHART_OFFPAGE_CONNECTOR="flowChartOffpageConnector",A.FLOWCHART_OR="flowChartOr",A.FLOWCHART_PREDEFINED_PROCESS="flowChartPredefinedProcess",A.FLOWCHART_PREPARATION="flowChartPreparation",A.FLOWCHART_PROCESS="flowChartProcess",A.FLOWCHART_PUNCHED_TAPE="flowChartPunchedTape",A.FLOWCHART_SEQUENTIAL_ACCESS_STORAGE="flowChartMagneticTape",A.FLOWCHART_SORT="flowChartSort",A.FLOWCHART_STORED_DATA="flowChartOnlineStorage",A.FLOWCHART_SUMMING_JUNCTION="flowChartSummingJunction",A.FLOWCHART_TERMINATOR="flowChartTerminator",A.FOLDED_CORNER="folderCorner",A.FRAME="frame",A.FUNNEL="funnel",A.GEAR_6="gear6",A.GEAR_9="gear9",A.HALF_FRAME="halfFrame",A.HEART="heart",A.HEPTAGON="heptagon",A.HEXAGON="hexagon",A.HORIZONTAL_SCROLL="horizontalScroll",A.ISOSCELES_TRIANGLE="triangle",A.LEFT_ARROW="leftArrow",A.LEFT_ARROW_CALLOUT="leftArrowCallout",A.LEFT_BRACE="leftBrace",A.LEFT_BRACKET="leftBracket",A.LEFT_CIRCULAR_ARROW="leftCircularArrow",A.LEFT_RIGHT_ARROW="leftRightArrow",A.LEFT_RIGHT_ARROW_CALLOUT="leftRightArrowCallout",A.LEFT_RIGHT_CIRCULAR_ARROW="leftRightCircularArrow",A.LEFT_RIGHT_RIBBON="leftRightRibbon",A.LEFT_RIGHT_UP_ARROW="leftRightUpArrow",A.LEFT_UP_ARROW="leftUpArrow",A.LIGHTNING_BOLT="lightningBolt",A.LINE_CALLOUT_1="borderCallout1",A.LINE_CALLOUT_1_ACCENT_BAR="accentCallout1",A.LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR="accentBorderCallout1",A.LINE_CALLOUT_1_NO_BORDER="callout1",A.LINE_CALLOUT_2="borderCallout2",A.LINE_CALLOUT_2_ACCENT_BAR="accentCallout2",A.LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR="accentBorderCallout2",A.LINE_CALLOUT_2_NO_BORDER="callout2",A.LINE_CALLOUT_3="borderCallout3",A.LINE_CALLOUT_3_ACCENT_BAR="accentCallout3",A.LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR="accentBorderCallout3",A.LINE_CALLOUT_3_NO_BORDER="callout3",A.LINE_CALLOUT_4="borderCallout3",A.LINE_CALLOUT_4_ACCENT_BAR="accentCallout3",A.LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR="accentBorderCallout3",A.LINE_CALLOUT_4_NO_BORDER="callout3",A.LINE="line",A.LINE_INVERSE="lineInv",A.MATH_DIVIDE="mathDivide",A.MATH_EQUAL="mathEqual",A.MATH_MINUS="mathMinus",A.MATH_MULTIPLY="mathMultiply",A.MATH_NOT_EQUAL="mathNotEqual",A.MATH_PLUS="mathPlus",A.MOON="moon",A.NON_ISOSCELES_TRAPEZOID="nonIsoscelesTrapezoid",A.NOTCHED_RIGHT_ARROW="notchedRightArrow",A.NO_SYMBOL="noSmoking",A.OCTAGON="octagon",A.OVAL="ellipse",A.OVAL_CALLOUT="wedgeEllipseCallout",A.PARALLELOGRAM="parallelogram",A.PENTAGON="homePlate",A.PIE="pie",A.PIE_WEDGE="pieWedge",A.PLAQUE="plaque",A.PLAQUE_TABS="plaqueTabs",A.QUAD_ARROW="quadArrow",A.QUAD_ARROW_CALLOUT="quadArrowCallout",A.RECTANGLE="rect",A.RECTANGULAR_CALLOUT="wedgeRectCallout",A.REGULAR_PENTAGON="pentagon",A.RIGHT_ARROW="rightArrow",A.RIGHT_ARROW_CALLOUT="rightArrowCallout",A.RIGHT_BRACE="rightBrace",A.RIGHT_BRACKET="rightBracket",A.RIGHT_TRIANGLE="rtTriangle",A.ROUNDED_RECTANGLE="roundRect",A.ROUNDED_RECTANGULAR_CALLOUT="wedgeRoundRectCallout",A.ROUND_1_RECTANGLE="round1Rect",A.ROUND_2_DIAG_RECTANGLE="round2DiagRect",A.ROUND_2_SAME_RECTANGLE="round2SameRect",A.SMILEY_FACE="smileyFace",A.SNIP_1_RECTANGLE="snip1Rect",A.SNIP_2_DIAG_RECTANGLE="snip2DiagRect",A.SNIP_2_SAME_RECTANGLE="snip2SameRect",A.SNIP_ROUND_RECTANGLE="snipRoundRect",A.SQUARE_TABS="squareTabs",A.STAR_10_POINT="star10",A.STAR_12_POINT="star12",A.STAR_16_POINT="star16",A.STAR_24_POINT="star24",A.STAR_32_POINT="star32",A.STAR_4_POINT="star4",A.STAR_5_POINT="star5",A.STAR_6_POINT="star6",A.STAR_7_POINT="star7",A.STAR_8_POINT="star8",A.STRIPED_RIGHT_ARROW="stripedRightArrow",A.SUN="sun",A.SWOOSH_ARROW="swooshArrow",A.TEAR="teardrop",A.TRAPEZOID="trapezoid",A.UP_ARROW="upArrow",A.UP_ARROW_CALLOUT="upArrowCallout",A.UP_DOWN_ARROW="upDownArrow",A.UP_DOWN_ARROW_CALLOUT="upDownArrowCallout",A.UP_RIBBON="ribbon2",A.U_TURN_ARROW="uturnArrow",A.VERTICAL_SCROLL="verticalScroll",A.WAVE="wave",A}(on||{}),ue=function(A){return A.AREA="area",A.BAR="bar",A.BAR3D="bar3D",A.BUBBLE="bubble",A.BUBBLE3D="bubble3D",A.DOUGHNUT="doughnut",A.LINE="line",A.PIE="pie",A.RADAR="radar",A.SCATTER="scatter",A}(ue||{}),U=function(A){return A.TEXT1="tx1",A.TEXT2="tx2",A.BACKGROUND1="bg1",A.BACKGROUND2="bg2",A.ACCENT1="accent1",A.ACCENT2="accent2",A.ACCENT3="accent3",A.ACCENT4="accent4",A.ACCENT5="accent5",A.ACCENT6="accent6",A}(U||{}),Oe=function(A){return A.chart="chart",A.image="image",A.line="line",A.rect="rect",A.text="text",A.placeholder="placeholder",A}(Oe||{}),Ue=function(A){return A.chart="chart",A.hyperlink="hyperlink",A.image="image",A.media="media",A.online="online",A.placeholder="placeholder",A.table="table",A.tablecell="tablecell",A.text="text",A.notes="notes",A}(Ue||{}),$e=function(A){return A.title="title",A.body="body",A.image="pic",A.chart="chart",A.table="tbl",A.media="media",A}($e||{}),Ve=function(A){return A.DEFAULT="&#x2022;",A.CHECK="&#x2713;",A.STAR="&#x2605;",A.TRIANGLE="&#x25B6;",A}(Ve||{}),lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAB3CAYAAAD1oOVhAAAGAUlEQVR4Xu2dT0xcRRzHf7tAYSsc0EBSIq2xEg8mtTGebVzEqOVIolz0siRE4gGTStqKwdpWsXoyGhMuyAVJOHBgqyvLNgonDkabeCBYW/8kTUr0wsJC+Wfm0bfuvn37Znbem9mR9303mJnf/Pb7ed95M7PDI5JIJPYJV5EC7e3t1N/fT62trdqViQCIu+bVgpIHEo/Hqbe3V/sdYVKHyWSSZmZm8ilVA0oeyNjYmEnaVC2Xvr6+qg5fAOJAz4DU1dURGzFSqZRVqtMpAFIGyMjICC0vL9PExIRWKADiAYTNshYWFrRCARAOEFZcCKWtrY0GBgaUTYkBRACIE4rKZwqACALR5RQAqQCIDqcASIVAVDsFQCSAqHQKgEgCUeUUAPEBRIVTAMQnEBvK5OQkbW9vk991CoAEAMQJxc86BUACAhKUUwAkQCBBOAVAAgbi1ykAogCIH6cAiCIgsk4BEIVAZJwCIIqBVLqiBxANQFgXS0tLND4+zl08AogmIG5OSSQS1gGKwgtANAIRcQqAaAbCe6YASBWA2E6xDyeyDUl7+AKQMkDYYevm5mZHabA/Li4uUiaTsYLau8QA4gLE/hU7wajyYtv1hReDAiAOxQcHBymbzark4BkbQKom/X8d
1p9Npmpqasn4BIAYAYSnYp+4BBEAMUcCwNOCQsAKZnp62NtQOw8WmwT09PUo+ijaHsOMx7GppaaH6+nolH0Z10K2tLVpdXbW6UfV3mNqBdHd3U1NTk2rtlMRfW1uj2dlZAFGirkRQAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAGHqrm8caPzQ0WC1logbeiC7X3xJm0PvUmRzh45cuki1588FAmVn9BO6P3yF9utrqGH0MtW82S8UN9RA9v/4k7InjhcJFTs/TLVXLwmJV67S7vD7tHF5pKi46fYdosdOcOOGG8j1OcqefbFEJD9Q3GCwDhqT31HklS4A8VRgfYM2Op6k3bt/BQJl58J7lPvwg5JYNccepaMry0LPqFA7hCm39+NNyp2J0172b19QysGINj5CsRtpij57musOViH0QPJQXn6J9u7dlYJSFkbrMYolrwvDAJAC+WWdEpQz7FTgECeUCpzi6YxvvqXoM6eEhqnCSgDikEzUKUE7Aw7xuHctKB5OYU3dZlNR9syQdAaAcAYTC0pXF+39c09o2Ik+3EqxVKqiB7hbYAxZkk4pbBaEM+AQofv+wTrFwylBOQNABIGwavdfe4O2pg5elO+86l99nY58/VUF0byrYsjiSFluNlXYrOHcBar7+EogUADEQ0YRGHbzoKAASBkg2+9cpM1rV0tK2QOcXW7bLEFAARAXIF4w2DrDWoeUWaf4hQIgDiA8GPZ2iNfi0Q8UACkAIgrDbrJ385eDxaPLLrEsFAB5oG6lMPJQPLZZZKAACBGVhcG2Q+bmuLu2nk55e4jqPv1IeEoceiBeX7s2zCa5MAqdstl91vfXwaEGsv/rb5TtOFk6tWXOuJGh6KmnhO9sayrMninPx103JBtXblHkice58cINZP4Hyr5wpkgkdiChEmc4FWazLzenNKa/p0jncwDiqcD6BuWePk07t1asatZGoYQzSqA4nFJ7soNiP/+EUyfc25GI2GG53dHPrKo1g/1Cw4pIXLrzO+1c+/wg7tBbFDle/EbQcjFCPWQJCau5EoBoFpzXHYDwFNJcDiCaBed1ByA8hTSXA4hmwXndAQhPIc3lAKJZcF53AMJTSHM5gGgWnNcdgPAU0lwOIJoF53UHIDyFNJcfSiCdnZ0Ui8U0SxlMd7lcjubn561gh+Y1scFIU/0o/3sgeLO12E2k7UXKYumgFoAYdg8ACIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6ZQ4JB6PKzviYthnNy4d9h+1M5mMlVckkUjsG5dhiBMCEMPg/wuOfrZZ/RSywQAAAABJRU5ErkJggg==";function nt(A,X,V){return"string"==typeof A&&!isNaN(Number(A))&&(A=Number(A)),"number"==typeof A&&A<100?Ht(A):"number"==typeof A&&A>=100?A:"string"==typeof A&&A.includes("%")?Math.round(X&&"X"===X?parseFloat(A)/100*V.width:X&&"Y"===X?parseFloat(A)/100*V.height:parseFloat(A)/100*V.width):0}function xt(A){return A.replace(/[xy]/g,function(X){var V=16*Math.random()|0;return("x"===X?V:3&V|8).toString(16)})}function St(A){return typeof A>"u"||null==A?"":A.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function Ht(A){return"number"==typeof A&&A>100?A:("string"==typeof A&&(A=Number(A.replace(/in*/gi,""))),Math.round(W*A))}function Pt(A){var X=Number(A)||0;return isNaN(X)?0:Math.round(X*B)}function fn(A){return A=A||0,Math.round(6e4*(A>360?A-360:A))}function kn(A){var X=A.toString(16);return 1===X.length?"0"+X:X}function an(A,X,V){return(kn(A)+kn(X)+kn(V)).toUpperCase()}function qt(A,X){var V=(A||"").replace("#","");!K.test(V)&&V!==rt.background1&&V!==rt.background2&&V!==rt.text1&&V!==rt.text2&&V!==rt.accent1&&V!==rt.accent2&&V!==rt.accent3&&V!==rt.accent4&&V!==rt.accent5&&V!==rt.accent6&&(console.warn('"'.concat(V,'" is not a valid scheme color or hex RGB! "').concat(Qe,"\" used instead. Only provide 6-digit RGB or 'pptx.SchemeColor' values!")),V=Qe);var he=K.test(V)?"srgbClr":"schemeClr",S='val="'+(K.test(V)?V.toUpperCase():V)+'"';return X?"<a:".concat(he," ").concat(S,">").concat(X,"</a:").concat(he,">"):"<a:".concat(he," ").concat(S,"/>")}function $n(A){var X="solid",V="",he="",S="";return A&&("solid"===("string"==typeof A?V=A:(A.type&&(X=A.type),A.color&&(V=A.color),A.alpha&&(he+='<a:alpha val="'.concat(Math.round(1e3*(100-A.alpha)),'"/>')),A.transparency&&(he+='<a:alpha val="'.concat(Math.round(1e3*(100-A.transparency)),'"/>'))),X)?S+="<a:solidFill>".concat(qt(V,he),"</a:solidFill>"):S+=""),S}function Qn(A){return A._rels.length+A._relsChart.length+A._relsMedia.length+1}function Un(A){if(A&&"object"==typeof A)return"outer"!==A.type&&"inner"!==A.type&&"none"!==A.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),A.type="outer"),A.angle&&((isNaN(Number(A.angle))||A.angle<0||A.angle>359)&&(console.warn("Warning: shadow.angle can only be 0-359"),A.angle=270),A.angle=Math.round(Number(A.angle))),A.opacity&&((isNaN(Number(A.opacity))||A.opacity<0||A.opacity>1)&&(console.warn("Warning: shadow.opacity can only be 0-1"),A.opacity=.75),A.opacity=Number(A.opacity)),A.color&&A.color.startsWith("#")&&(console.warn('Warning: shadow.color should not include hash (#) character, , e.g. "FF0000"'),A.color=A.color.replace("#","")),A}function Oi(A,X,V,he){void 0===A&&(A=[]),void 0===X&&(X={});var Ie,S=We,C=1*W,se=0,G=0,E=[],re=nt(X.x,"X",V),tt=nt(X.y,"Y",V),$t=nt(X.w,"X",V),Qt=nt(X.h,"Y",V),zt=$t;function Lt(){var zn=0;0===E.length&&(zn=tt||Ht(S[0])),E.length>0&&(zn=Ht(X.autoPageSlideStartY||X.newSlideStartY||S[0])),C=(Qt||V.height)-zn-Ht(S[2]),E.length>1&&("number"==typeof X.autoPageSlideStartY?C=(Qt||V.height)-Ht(X.autoPageSlideStartY+S[2]):"number"==typeof X.newSlideStartY?C=(Qt||V.height)-Ht(X.newSlideStartY+S[2]):tt&&(C=(Qt||V.height)-Ht((tt/W<S[0]?tt/W:S[0])+S[2]))<Qt&&(C=Qt))}if(X.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log("| presLayout.width ................................ = ".concat((V.width/W).toFixed(1))),console.log("| presLayout.height ............................... = ".concat((V.height/W).toFixed(1))),console.log("| tableProps.x .................................... = ".concat("number"==typeof X.x?(X.x/W).toFixed(1):X.x)),console.log("| tableProps.y .................................... = ".concat("number"==typeof X.y?(X.y/W).toFixed(1):X.y)),console.log("| tableProps.w .................................... = ".concat("number"==typeof X.w?(X.w/W).toFixed(1):X.w)),console.log("| tableProps.h .................................... = ".concat("number"==typeof X.h?(X.h/W).toFixed(1):X.h)),console.log("| tableProps.slideMargin .......................... = ".concat(X.slideMargin?String(X.slideMargin):"")),console.log("| tableProps.margin ............................... = ".concat(String(X.margin))),console.log("| tableProps.colW ................................. = ".concat(String(X.colW))),console.log("| tableProps.autoPageSlideStartY .................. = ".concat(X.autoPageSlideStartY)),console.log("| tableProps.autoPageCharWeight ................... = ".concat(X.autoPageCharWeight)),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log("| tablePropX ...................................... = ".concat(re/W)),console.log("| tablePropY ...................................... = ".concat(tt/W)),console.log("| tablePropW ...................................... = ".concat($t/W)),console.log("| tablePropH ...................................... = ".concat(Qt/W)),console.log("| tableCalcW ...................................... = ".concat(zt/W))),!X.slideMargin&&0!==X.slideMargin&&(X.slideMargin=We[0]),he&&typeof he._margin<"u"?Array.isArray(he._margin)?S=he._margin:isNaN(Number(he._margin))||(S=[Number(he._margin),Number(he._margin),Number(he._margin),Number(he._margin)]):(X.slideMargin||0===X.slideMargin)&&(Array.isArray(X.slideMargin)?S=X.slideMargin:isNaN(X.slideMargin)||(S=[X.slideMargin,X.slideMargin,X.slideMargin,X.slideMargin])),X.verbose&&console.log("| arrInchMargins .................................. = [".concat(S.join(", "),"]")),(A[0]||[]).forEac
1h(function(zn){zn||(zn={_type:Ue.tablecell});var qn=zn.options||null;G+=Number(qn?.colspan?qn.colspan:1)}),X.verbose&&console.log("| numCols ......................................... = ".concat(G)),!$t&&X.colW&&(zt=Array.isArray(X.colW)?X.colW.reduce(function(zn,qn){return zn+qn})*W:X.colW*G||0,X.verbose&&console.log("| tableCalcW ...................................... = ".concat(zt/W))),Ie=zt||Ht((re?re/W:S[1])+S[3]),X.verbose&&console.log("| emuSlideTabW .................................... = ".concat((Ie/W).toFixed(1))),!X.colW||!Array.isArray(X.colW))if(X.colW&&!isNaN(Number(X.colW))){var dn=[];(A[0]||[]).forEach(function(){return dn.push(X.colW)}),X.colW=[],dn.forEach(function(qn){Array.isArray(X.colW)&&X.colW.push(qn)})}else{X.colW=[];for(var cn=0;cn<G;cn++)X.colW.push(Ie/W/G)}var Zn={rows:[]};return A.forEach(function(zn,qn){var Zi=[],Nn=0,gn=0,vn=[];zn.forEach(function(Vn){var fr,Ir,xr,Xr;vn.push({_type:Ue.tablecell,text:[],options:Vn.options}),Vn.options.margin&&Vn.options.margin[0]>=1?(null!==(fr=Vn.options)&&void 0!==fr&&fr.margin&&Vn.options.margin[0]&&Pt(Vn.options.margin[0])>Nn?Nn=Pt(Vn.options.margin[0]):X?.margin&&X.margin[0]&&Pt(X.margin[0])>Nn&&(Nn=Pt(X.margin[0])),null!==(Ir=Vn.options)&&void 0!==Ir&&Ir.margin&&Vn.options.margin[2]&&Pt(Vn.options.margin[2])>gn?gn=Pt(Vn.options.margin[2]):X?.margin&&X.margin[2]&&Pt(X.margin[2])>gn&&(gn=Pt(X.margin[2]))):(null!==(xr=Vn.options)&&void 0!==xr&&xr.margin&&Vn.options.margin[0]&&Ht(Vn.options.margin[0])>Nn?Nn=Ht(Vn.options.margin[0]):X?.margin&&X.margin[0]&&Ht(X.margin[0])>Nn&&(Nn=Ht(X.margin[0])),null!==(Xr=Vn.options)&&void 0!==Xr&&Xr.margin&&Vn.options.margin[2]&&Ht(Vn.options.margin[2])>gn?gn=Ht(Vn.options.margin[2]):X?.margin&&X.margin[2]&&Ht(X.margin[2])>gn&&(gn=Ht(X.margin[2])))}),Lt(),se+=Nn+gn,X.verbose&&0===qn&&console.log("| SLIDE [".concat(E.length,"]: emuSlideTabH ...... = ").concat((C/W).toFixed(1)," ")),zn.forEach(function(Vn,fr){var Ir,xr={_type:Ue.tablecell,_lines:null,_lineHeight:Ht((null!==(Ir=Vn.options)&&void 0!==Ir&&Ir.fontSize?Vn.options.fontSize:X.fontSize?X.fontSize:ht)*(1.67+(X.autoPageLineWeight?X.autoPageLineWeight:0))/100),text:[],options:Vn.options};xr.options.rowspan&&(xr._lineHeight=0),xr.options.autoPageCharWeight=X.autoPageCharWeight?X.autoPageCharWeight:null;var Xr=X.colW[fr];Vn.options.colspan&&Array.isArray(X.colW)&&(Xr=X.colW.filter(function(On,gr){return gr>=fr&&gr<gr+Vn.options.colspan}).reduce(function(On,gr){return On+gr})),xr._lines=function Wn(A,X,V){var he,S,Ie=2.3+(null!==(he=A.options)&&void 0!==he&&he.autoPageCharWeight?A.options.autoPageCharWeight:0),C=Math.floor(X/B*W)/((null!==(S=A.options)&&void 0!==S&&S.fontSize?A.options.fontSize:ht)/Ie),se=[],G=[],E=[],re=[];A.text&&0===A.text.toString().trim().length?G.push({_type:Ue.tablecell,text:" "}):"number"==typeof A.text||"string"==typeof A.text?G.push({_type:Ue.tablecell,text:(A.text||"").toString().trim()}):Array.isArray(A.text)&&(G=A.text),V&&(console.log("[1/4] inputCells"),G.forEach(function($t,Qt){return console.log("[1/4] [".concat(Qt+1,"] cell: ").concat(JSON.stringify($t)))}));var tt=[];return G.forEach(function($t){var Qt;"string"==typeof $t.text&&($t.text.split("\n").length>1?$t.text.split("\n").forEach(function(zt){tt.push({_type:Ue.tablecell,text:zt,options:N(N({},$t.options),{breakLine:!0})})}):tt.push({_type:Ue.tablecell,text:$t.text.trim(),options:$t.options}),!(null===(Qt=$t.options)||void 0===Qt)&&Qt.breakLine&&(V&&console.log("inputCells: new line > ".concat(JSON.stringify(tt))),E.push(tt),tt=[])),tt.length>0&&(E.push(tt),tt=[])}),V&&(console.log("[2/4] inputLines1 (".concat(E.length,")")),E.forEach(function($t,Qt){return console.log("[2/4] [".concat(Qt+1,"] line: ").concat(JSON.stringify($t)))}
1)),E.forEach(function($t){$t.forEach(function(Qt){var zt=[],mn=String(Qt.text).split(" ");mn.forEach(function(dn,cn){var Zn=N({},Qt.options);Zn?.breakLine&&(Zn.breakLine=cn+1===mn.length),zt.push({_type:Ue.tablecell,text:dn+(cn+1<mn.length?" ":""),options:Zn})}),re.push(zt)})}),V&&(console.log("[3/4] inputLines2 (".concat(re.length,")")),re.forEach(function($t){return console.log("[3/4] line: ".concat(JSON.stringify($t)))})),re.forEach(function($t){var Qt=[],zt="";$t.forEach(function(Lt){zt.length+Lt.text.length>C&&(se.push(Qt),Qt=[],zt=""),Qt.push(Lt),zt+=Lt.text.toString()}),Qt.length>0&&se.push(Qt)}),V&&(console.log("[4/4] parsedLines (".concat(se.length,")")),se.forEach(function($t,Qt){return console.log("[4/4] [Line ".concat(Qt+1,"]:\n").concat(JSON.stringify($t)))}),console.log("...............................................\n\n")),se}(Vn,Xr,!1),Zi.push(xr)}),X.verbose&&console.log("\n| SLIDE [".concat(E.length,"]: ROW [").concat(qn,"]: START..."));for(var ti=0,er=0,Or=!1;!Or;){var yi=Zi[ti],hr=vn[ti];Zi.forEach(function(Vn){Vn._lineHeight>=er&&(er=Vn._lineHeight)}),se+er>C&&(X.verbose&&(console.log("\n|-----------------------------------------------------------------------|"),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ".concat((se/W).toFixed(2)," + ").concat((yi._lineHeight/W).toFixed(2)," > ").concat(C/W)),console.log("|-----------------------------------------------------------------------|\n\n")),vn.length>0&&vn.map(function(Vn){return Vn.text.length}).reduce(function(Vn,fr){return Vn+fr})>0&&Zn.rows.push(vn),E.push(Zn),Zn={rows:[]},vn=[],zn.forEach(function(Vn){return vn.push({_type:Ue.tablecell,text:[],options:Vn.options})}),Lt(),se+=Nn+gn,X.verbose&&console.log("| SLIDE [".concat(E.length,"]: emuSlideTabH ...... = ").concat((C/W).toFixed(1)," ")),se=0,(X.addHeaderToEach||X.autoPageRepeatHeader)&&X._arrObjTabHeadRows&&X._arrObjTabHeadRows.forEach(function(Vn){var fr=[],Ir=0;Vn.forEach(function(xr){fr.push(xr),xr._lineHeight>Ir&&(Ir=xr._lineHeight)}),Zn.rows.push(fr),se+=Ir}),hr=vn[ti]);var Br=yi._lines.shift();Array.isArray(hr.text)&&(Br?hr.text=hr.text.concat(Br):0===hr.text.length&&(hr.text=hr.text.concat({_type:Ue.tablecell,text:""}))),ti===Zi.length-1&&(se+=er),ti=ti<Zi.length-1?ti+1:0,0===Zi.map(function(Vn){return Vn._lines.length}).reduce(function(Vn,fr){return Vn+fr})&&(Or=!0)}vn.length>0&&Zn.rows.push(vn),X.verbose&&console.log("- SLIDE [".concat(E.length,"]: ROW [").concat(qn,"]: ...COMPLETE ...... emuTabCurrH = ").concat((se/W).toFixed(2)," ( emuSlideTabH = ").concat((C/W).toFixed(2)," )"))}),E.push(Zn),X.verbose&&(console.log("\n|================================================|"),console.log("| FINAL: tableRowSlides.length = ".concat(E.length)),E.forEach(function(zn){return console.log(zn)}),console.log("|================================================|\n\n")),E}var Mi=0;function xn(A,X,V,he){var S;function Ie(tt){!tt||"none"===tt.style||(void 0!==tt.size&&(isNaN(Number(tt.size))||tt.size<=0)&&(console.warn("Warning: chart.gridLine.size must be greater than 0."),delete tt.size),tt.style&&!["solid","dash","dot"].includes(tt.style)&&(console.warn("Warning: chart.gridLine.style options: `solid`, `dash`, `dot`."),delete tt.style),tt.cap&&!["flat","square","round"].includes(tt.cap)&&(console.warn("Warning: chart.gridLine.cap options: `flat`, `square`, `round`."),delete tt.cap))}var C=++Mi,se={_type:null,text:null,options:null,chartRid:null},G=null,E=[];Array.isArray(X)?(X.forEach(function(tt){E=E.concat(tt.data)}),G=V||he):(E=V,G=he),E.forEach(function(tt,$t){tt._dataIndex=$t,void 0!==tt.labels&&!Array.isArray(tt.labels[0])&&(tt.labels=[tt.labels])});var re=G&&"object"==typeof G?G:{};return re._type=X,re.x=typeof re.x<"u"&&null!=re.x&&!isNaN(Number(re.x))?re.x:1,re.y=typeof re.y<"u"&&null!=re.y&&!isNaN(Number(re.y))?re.y:1,re.w=re.w||"50%",re.h=re.h||"50%",re.objectName=re.objectName?St(re.objectName):"Chart ".concat(A._slideObjects.filter(function(tt){return tt._type===Ue.chart}).length),["bar","col"].includes(re.barDir||"")||(re.barDir="col"),re._type===ue.AREA&&(["stacked","standard","percentStacked"].includes(re.barGrouping||"")||(re.barGrouping="standard")),re._type===ue.BAR&&(["clustered","
1stacked","percentStacked"].includes(re.barGrouping||"")||(re.barGrouping="clustered")),re._type===ue.BAR3D&&(["clustered","stacked","standard","percentStacked"].includes(re.barGrouping||"")||(re.barGrouping="standard")),!(null===(S=re.barGrouping)||void 0===S)&&S.includes("tacked")&&(re.barGapWidthPct||(re.barGapWidthPct=50)),re.dataLabelPosition&&((re._type===ue.AREA||re._type===ue.BAR3D||re._type===ue.DOUGHNUT||re._type===ue.RADAR)&&delete re.dataLabelPosition,re._type===ue.PIE&&(["bestFit","ctr","inEnd","outEnd"].includes(re.dataLabelPosition)||delete re.dataLabelPosition),(re._type===ue.BUBBLE||re._type===ue.BUBBLE3D||re._type===ue.LINE||re._type===ue.SCATTER)&&(["b","ctr","l","r","t"].includes(re.dataLabelPosition)||delete re.dataLabelPosition),re._type===ue.BAR&&(["stacked","percentStacked"].includes(re.barGrouping||"")||["ctr","inBase","inEnd"].includes(re.dataLabelPosition)||delete re.dataLabelPosition,["clustered"].includes(re.barGrouping||"")||["ctr","inBase","inEnd","outEnd"].includes(re.dataLabelPosition)||delete re.dataLabelPosition)),re.dataLabelBkgrdColors=!(!re.dataLabelBkgrdColors&&re.dataLabelBkgrdColors)&&re.dataLabelBkgrdColors,["b","l","r","t","tr"].includes(re.legendPos||"")||(re.legendPos="r"),["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"].includes(re.bar3DShape||"")||(re.bar3DShape="box"),["circle","dash","diamond","dot","none","square","triangle"].includes(re.lineDataSymbol||"")||(re.lineDataSymbol="circle"),["gap","span"].includes(re.displayBlanksAs||"")||(re.displayBlanksAs="span"),["standard","marker","filled"].includes(re.radarStyle||"")||(re.radarStyle="standard"),re.lineDataSymbolSize=re.lineDataSymbolSize&&!isNaN(re.lineDataSymbolSize)?re.lineDataSymbolSize:6,re.lineDataSymbolLineSize=re.lineDataSymbolLineSize&&!isNaN(re.lineDataSymbolLineSize)?Pt(re.lineDataSymbolLineSize):Pt(.75),re.layout&&["x","y","w","h"].forEach(function(tt){var $t=re.layout[tt];(isNaN(Number($t))||$t<0||$t>1)&&(console.warn("Warning: chart.layout."+tt+" can only be 0-1"),delete re.layout[tt])}),re.catGridLine=re.catGridLine||(re._type===ue.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),re.valGridLine=re.valGridLine||(re._type===ue.SCATTER?{color:"D9D9D9",size:1}:{}),re.serGridLine=re.serGridLine||(re._type===ue.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),Ie(re.catGridLine),Ie(re.valGridLine),Ie(re.serGridLine),Un(re.shadow),re.showDataTable=!(!re.showDataTable&&re.showDataTable)&&re.showDataTable,re.showDataTableHorzBorder=!(re.showDataTableHorzBorder||!re.showDataTableHorzBorder)||re.showDataTableHorzBorder,re.showDataTableVertBorder=!(re.showDataTableVertBorder||!re.showDataTableVertBorder)||re.showDataTableVertBorder,re.showDataTableOutline=!(re.showDataTableOutline||!re.showDataTableOutline)||re.showDataTableOutline,re.showDataTableKeys=!(re.showDataTableKeys||!re.showDataTableKeys)||re.showDataTableKeys,re.showLabel=!(!re.showLabel&&re.showLabel)&&re.showLabel,re.showLegend=!(!re.showLegend&&re.showLegend
1)&&re.showLegend,re.showPercent=!(re.showPercent||!re.showPercent)||re.showPercent,re.showTitle=!(!re.showTitle&&re.showTitle)&&re.showTitle,re.showValue=!(!re.showValue&&re.showValue)&&re.showValue,re.showLeaderLines=!(!re.showLeaderLines&&re.showLeaderLines)&&re.showLeaderLines,re.catAxisLineShow=!(typeof re.catAxisLineShow<"u")||re.catAxisLineShow,re.valAxisLineShow=!(typeof re.valAxisLineShow<"u")||re.valAxisLineShow,re.serAxisLineShow=!(typeof re.serAxisLineShow<"u")||re.serAxisLineShow,re.v3DRotX=!isNaN(re.v3DRotX)&&re.v3DRotX>=-90&&re.v3DRotX<=90?re.v3DRotX:30,re.v3DRotY=!isNaN(re.v3DRotY)&&re.v3DRotY>=0&&re.v3DRotY<=360?re.v3DRotY:30,re.v3DRAngAx=!(re.v3DRAngAx||!re.v3DRAngAx)||re.v3DRAngAx,re.v3DPerspective=!isNaN(re.v3DPerspective)&&re.v3DPerspective>=0&&re.v3DPerspective<=240?re.v3DPerspective:30,re.barGapWidthPct=!isNaN(re.barGapWidthPct)&&re.barGapWidthPct>=0&&re.barGapWidthPct<=1e3?re.barGapWidthPct:150,re.barGapDepthPct=!isNaN(re.barGapDepthPct)&&re.barGapDepthPct>=0&&re.barGapDepthPct<=1e3?re.barGapDepthPct:150,re.chartColors=Array.isArray(re.chartColors)?re.chartColors:re._type===ue.PIE||re._type===ue.DOUGHNUT?Ze:Te,re.chartColorsOpacity=re.chartColorsOpacity&&!isNaN(re.chartColorsOpacity)?re.chartColorsOpacity:null,re.border=re.border&&"object"==typeof re.border?re.border:null,re.border&&(!re.border.pt||isNaN(re.border.pt))&&(re.border.pt=we_pt),re.border&&(!re.border.color||"string"!=typeof re.border.color)&&(re.border.color=we_color),re.plotArea=re.plotArea||{},re.plotArea.border=re.plotArea.border&&"object"==typeof re.plotArea.border?re.plotArea.border:null,re.plotArea.border&&(!re.plotArea.border.pt||isNaN(re.plotArea.border.pt))&&(re.plotArea.border.pt=we_pt),re.plotArea.border&&(!re.plotArea.border.color||"string"!=typeof re.plotArea.border.color)&&(re.plotArea.border.color=we_color),re.border&&(re.plotArea.border=re.border),re.plotArea.fill=re.plotArea.fill||{color:null,transparency:null},re.fill&&(re.plotArea.fill.color=re.fill),re.chartArea=re.chartArea||{},re.chartArea.border=re.chartArea.border&&"object"==typeof re.chartArea.border?re.chartArea.border:null,re.chartArea.border&&(re.chartArea.border={color:re.chartArea.border.color||we_color,pt:re.chartArea.border.pt||we_pt}),re.chartArea.roundedCorners="boolean"!=typeof re.chartArea.roundedCorners||re.chartArea.roundedCorners,re.dataBorder=re.dataBorder&&"object"==typeof re.dataBorder?re.dataBorder:null,re.dataBorder&&(!re.dataBorder.pt||isNaN(re.dataBorder.pt))&&(re.dataBorder.pt=.75),re.dataBorder&&(!re.dataBorder.color||"string"!=typeof re.dataBorder.color||6!==re.dataBorder.color.length)&&(re.dataBorder.color="F9F9F9"),!re.dataLabelFormatCode&&re._type===ue.SCATTER&&(re.dataLabelFormatCode="General"),!re.dataLabelFormatCode&&(re._type===ue.PIE||re._type===ue.DOUGHNUT)&&(re.dataLabelFormatCode=re.showPercent?"0%":"General"),re.dataLabelFormatCode=re.dataLabelFormatCode&&"string"==typeof re.dataLabelFormatCode?re.dataLabelFormatCode:"#,##0",!re.dataLabelFormatScatter&&re._type===ue.SCATTER&&(re.dataLabelFormatScatter="custom"),re.lineSize="number"==typeof re.lineSize?re.lineSize:2,re.valAxisMajorUnit="number"==typeof re.valAxisMajorUnit?re.valAxisMajorUnit:null,re._type===ue.AREA||re._type===ue.BAR||re._type===ue.BAR3D||re._type===ue.LINE?re.catAxisMultiLevelLabels=!!re.catAxisMultiLevelLabels:delete re.catAxisMultiLevelLabels,se._type="chart",se.options=re,se.chartRid=Qn(A),A._relsChart.push({rId:Qn(A),data:E,opts:re,type:re._type,globalId:C,fileName:"chart".concat(C,".xml"),Target:"/ppt/charts/chart".concat(C,".xml")}),A._slideObjects.push(se),se}function hi(A,X){var V={_type:null,text:null,options:null,image:null,imageRid:null,hyperlink:null},he=X.x||0,S=X.y||0,Ie=X.w||0,C=X.h||0,se=X.sizing||null,G=X.hyperlink||"",E=X.data||"",re=X.path||"",tt=Qn(A),$t=X.objectName?St(X.objectName):"Image ".concat(A._slideObjects.filter(function(Lt){return Lt._type===Ue.image}).length);if(!re&&!E)return console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"),null;if(re&&"string"!=typeof re)return console.error("ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ".concat(String(re))),null;if(E&&"string"!=typeof E)return console.error("ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ".concat(String(E))),null;if(E&&"string"==typeof E&&!E.toLowerCase().includes("base64,"))return console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"),null;var Qt=(re.substring(re.lastIndexOf("/")+1).split("?")[0].split(".").pop().split("#")[0]||"png").toLowerCase();if(E&&/image\/(\w+);/.exec(E)&&/image\/(\w+);/.exec(E).length>0?Qt=/image\/(\w+);/.exec(E)[1]:E?.toLowerCase().includes("image/svg+xml")&&(Qt="svg"),V._type=Ue.image,V.image=re||"preencoded.png",V.options={x:he||0,y:S||0,w:Ie||1,h:C||1,altText:X.altText||"",rounding:"boolean"==typeof X.rounding&&X.rounding,sizing:se,placeholder:X.placeholder,rotate:X.rotate||0,flipV:X.flipV||!1,flipH:X.flipH||!1,transparency:X.transparency||0,objectName:$t,shadow:Un(X.shadow)},"svg"===Qt)A._relsMedia.push({path:re||E+"png",type:"image/png",extn:"png",data:E||"",rId:tt,Target:"../media/image-".concat(A._slideNum,"-").concat(A._relsMedia.length+1,".png"),isSvgPng:!0,svgSize:{w:nt(V.options.w,"X",A._presLayout),h:nt(V.options.h,"Y",A._presLayout)}}),V.imageRid=tt,A._relsMedia.push({path:re||E,type:"image/svg+xml",extn:Qt,data:E||"",rId:tt+1,Target:"../media/image-".concat(A._slideNum,"-").concat(A._relsMedia.length+1,".").concat(Qt)}),V.imageRid=tt+1;else{var zt=A._relsMedia.filter(function(Lt){return Lt.path&&Lt.path===re&&Lt.type==="image/"+Qt&&!Lt.isDuplicate})[0];A._relsMedia.push({path:re||"preencoded."+Qt,type:"image/"+Qt,extn:Qt,data:E||"",rId:tt,isDupl
1icate:!!zt?.Target,Target:zt?.Target?zt.Target:"../media/image-".concat(A._slideNum,"-").concat(A._relsMedia.length+1,".").concat(Qt)}),V.imageRid=tt}if("object"==typeof G){if(!G.url&&!G.slide)throw new Error("ERROR: `hyperlink` option requires either: `url` or `slide`");tt++,A._rels.push({type:Ue.hyperlink,data:G.slide?"slide":"dummy",rId:tt,Target:G.url||G.slide.toString()}),G._rId=tt,V.hyperlink=G}A._slideObjects.push(V)}function In(A,X,V){var he="object"==typeof V?V:{};he.line=he.line||{type:"none"};var S={_type:Ue.text,shape:X||on.RECTANGLE,options:he,text:null};if(!X)throw new Error("Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`");var Ie={type:he.line.type||"solid",color:he.line.color||"333333",transparency:he.line.transparency||0,width:he.line.width||1,dashType:he.line.dashType||"solid",beginArrowType:he.line.beginArrowType||null,endArrowType:he.line.endArrowType||null};if("object"==typeof he.line&&"none"!==he.line.type&&(he.line=Ie),he.x=he.x||(0===he.x?0:1),he.y=he.y||(0===he.y?0:1),he.w=he.w||(0===he.w?0:1),he.h=he.h||(0===he.h?0:1),he.objectName=he.objectName?St(he.objectName):"Shape ".concat(A._slideObjects.filter(function(se){return se._type===Ue.text}).length),"string"==typeof he.line){var C=Ie;C.color=String(he.line),he.line=C}"number"==typeof he.lineSize&&(he.line.width=he.lineSize),"string"==typeof he.lineDash&&(he.line.dashType=he.lineDash),"string"==typeof he.lineHead&&(he.line.beginArrowType=he.lineHead),"string"==typeof he.lineTail&&(he.line.endArrowType=he.lineTail),te(A,S),A._slideObjects.push(S)}function Xi(A,X,V,he){var S={_type:he?Ue.placeholder:Ue.text,shape:V?.shape||on.RECTANGLE,text:X&&0!==X.length?X:[{text:"",options:null}],options:V||{}};function Ie(C){if(C.placeholder||(C.color=C.color||S.options.color||A.color||Qe),(C.placeholder||he)&&(C.bullet=C.bullet||!1),C.placeholder&&A._slideLayout&&A._slideLayout._slideObjects){var se=A._slideLayout._slideObjects.filter(function(re){return"placeholder"===re._type&&re.options&&re.options.placeholder&&re.options.placeholder===C.placeholder})[0];se?.options&&(C=N(N({},C),se.options))}if(C.objectName=C.objectName?St(C.objectName):"Text ".concat(A._slideObjects.filter(function(re){return re._type===Ue.text}).length),C.shape===on.LINE){var G={type:C.line.type||"solid",color:C.line.color||"333333",transparency:C.line.transparency||0,width:C.line.width||1,dashType:C.line.dashType||"solid",beginArrowType:C.line.beginArrowType||null,endArrowType:C.line.endArrowType||null};if("object"==typeof C.line&&(C.line=G),"string"==typeof C.line){var E=G;"string"==typeof C.line&&(E.color=C.line),C.line=E}"number"==typeof C.lineSize&&(C.line.width=C.lineSize),"string"==typeof C.lineDash&&(C.line.dashType=C.lineDash),"string"==typeof C.lineHead&&(C.line.beginArrowType=C.lineHead),"string"==typeof C.lineTail&&(C.line.endArrowType=C.lineTail)}return C.line=C.line||{},C.lineSpacing=C.lineSpacing&&!isNaN(C.lineSpacing)?C.lineSpacing:null,C.lineSpacingMultiple=C.lineSpacingMultiple&&!isNaN(C.lineSpacingMultiple)?C.lineSpacingMultiple:null,C._bodyProp=C._bodyProp||{},C._bodyProp.autoFit=C.autoFit||!1,C._bodyProp.anchor=C.placeholder?null:Je.ctr,C._bodyProp.vert=C.vert||null,C._bodyProp.wrap="boolean"!=typeof C.wrap||C.wrap,(C.inset&&!isNaN(Number(C.inset))||0===C.inset)&&(C._bodyProp.lIns=Ht(C.inset),C._bodyProp.rIns=Ht(C.inset),C._bodyProp.tIns=Ht(C.inset),C._bodyProp.bIns=Ht(C.inset)),"boolean"==typeof C.underline&&!0===C.underline&&(C.underline={style:"sng"}),0===(C.align||"").toLowerCase().indexOf("c")?C._bodyProp.align=Ne.center:0===(C.align||"").toLowerCase().indexOf("l")?C._bodyProp.align=Ne.left:0===(C.align||"").toLowerCase().indexOf("r")?C._bodyProp.align=Ne.right:0===(C.align||"").toLowerCase().indexOf("j")&&(C._bodyProp.align=Ne.justify),0===(C.valign||"").toLowerCase().indexOf("b")?C._bodyProp.anchor=Je.b:0===(C.valign||"").toLowerCase().indexOf("m")?C._bodyProp.anchor=Je.ctr:0===(C.valign||"").toLowerCase().indexOf("t")&&(C._bodyProp.anchor=Je.t),Un(C.shadow),C}S.options=Ie(S.options),S.text.forEach(function(C){return C.options=Ie(C.options||{})}),te(A,S.text||""),A._slideObjects.push(S)}function it(A,X){var V;if(X.bkgd&&(X.background||(X.background={}),"string"==typeof X.bkgd?X.background.color=X.bkgd:(X.bkgd.data&&(X.background.data=X.bkgd.data),X.bkgd.path&&(X.background.path=X.bkgd.path),X.bkgd.src&&(X.background.path=X.bkgd.src))),!(null===(V=X.background)||void 0===V)&&V.fill&&(X.background.color=X.background.fill),A&&(A.path||A.data)){A.path=A.path||"preencoded.png";var he=(A.path.split(".").pop()||"png").split("?")[0];"jpg"===he&&(he="jpeg"),X._relsMedia=X._relsMedia||[];var S=X._relsMedia.length+1;X._relsMedia.push({path:A.path,type:Ue.image,extn:he,data:A.data||null,rId:S,Target:"../media/".concat((X._name||"").replace(/\s+/gi,"-"),"-image-").concat(X._rels
1Media.length+1,".").concat(he)}),X._bkgdImgRid=S}}function te(A,X){var V=[];"string"==typeof X||"number"==typeof X||(Array.isArray(X)?V=X:"object"==typeof X&&(V=[X]),V.forEach(function(he){if(Array.isArray(he))te(A,he);else if(Array.isArray(he.text))te(A,he.text);else if(he&&"object"==typeof he&&he.options&&he.options.hyperlink&&!he.options.hyperlink._rId)if("object"!=typeof he.options.hyperlink)console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` ");else if(he.options.hyperlink.url||he.options.hyperlink.slide){var S=Qn(A);A._rels.push({type:Ue.hyperlink,data:he.options.hyperlink.slide?"slide":"dummy",rId:S,Target:St(he.options.hyperlink.url)||he.options.hyperlink.slide.toString()}),he.options.hyperlink._rId=S}else console.log("ERROR: 'hyperlink requires either: `url` or `slide`'")}))}var ce=function(){function A(X){var V;this.addSlide=X.addSlide,this.getSlide=X.getSlide,this._name="Slide ".concat(X.slideNumber),this._presLayout=X.presLayout,this._rId=X.slideRId,this._rels=[],this._relsChart=[],this._relsMedia=[],this._setSlideNum=X.setSlideNum,this._slideId=X.slideId,this._slideLayout=X.slideLayout||null,this._slideNum=X.slideNumber,this._slideObjects=[],this._slideNumberProps=null!==(V=this._slideLayout)&&void 0!==V&&V._slideNumberProps?this._slideLayout._slideNumberProps:null}return Object.defineProperty(A.prototype,"bkgd",{get:function(){return this._bkgd},set:function(X){this._bkgd=X,(!this._background||!this._background.color)&&(this._background||(this._background={}),"string"==typeof X&&(this._background.color=X))},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"background",{get:function(){return this._background},set:function(X){this._background=X,X&&it(X,this)},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"color",{get:function(){return this._color},set:function(X){this._color=X},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"hidden",{get:function(){return this._hidden},set:function(X){this._hidden=X},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"slideNumber",{get:function(){return this._slideNumberProps},set:function(X){this._slideNumberProps=X,this._setSlideNum(X)},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"newAutoPagedSlides",{get:function(){return this._newAutoPagedSlides},enumerable:!1,configurable:!0}),A.prototype.addChart=function(X,V,he){return(he||{})._type=X,xn(this,X,V,he),this},A.prototype.addImage=function(X){return hi(this,X),this},A.prototype.addMedia=function(X){return function Xn(A,X){var re,V=X.x||0,he=X.y||0,S=X.w||2,Ie=X.h||2,C=X.data||"",se=X.link||"",G=X.path||"",E=X.type||"audio",tt=X
vendor: 74,413 bytes, line 1
1.cover||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAVnCAYAAACzfHDVAAAAYHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjaVcjJDYAwDEXBu6ughBfH+YnLQSwSHVA+Yrkwx7HtPHabHuEWrQ+lBBAZ6TMweBWoCwUH8quZH6VWFXVT696zxp12ARkVFEqn8wB8AAAACXBIWXMAAC4jAAAuIwF4pT92AADZLklEQVR42uzdd5hV9Z0/8M+dmcsUZmDovYOhKCiKYhR7JJuoSTCWGFI0WUxijBoTTXazVlyza4maYm9rTRSJigVsqCDNQhHBAogKCEgRMjMMU+7vj93sL8kqClLmnPt6PY+PeXZM9vP9vO8jZ+Y955xMfJLjorBrRMuSgmiViyjN1Ee2oSCyucbIBAAAAAAAAADbXaYgcoWNUZcrirpMbdRsysa69wbF+rggGrf439vSF7seF12aFUTnxvoosGIAAAAAAACAXacgoqEgF++/VRgr4r5o+Kh/pvD//F8uiII+LaPrum/EXzqui2b1ddHGKgEAAAAAAAB2rVxEQWMmWrQtjHZlA6N2w2tR84//zP8pgHu3ib6NBdG+zdqorK6KVUXZaB85j3sGAAAAAAAAaAoaG6OwIBdtyneP2PBabPzbr/1dAdx3VHRtyESHiIhcYzQrLo7WmVzkcjmPgAYAAAAAAABoSgpy0eIfS+D/LYD7fy3abC6Inn/7X2hsjELlLwAAAAAAAEDT9D8lcM1fHwddFBFxyAVR9M686PVp/gfqayKiJiLqLBMAAAAAAABgh8hGRGlEUekn/6PFEb3ikNgQk6O+KCJi6dzoksv83/cB/1X9xoiaJdmoWxlRV1dk2QAAAAAAAAA7QTZbH9muERX96v7n9t7/q6Exinq3i86LI94pjOOisHUu+uYykfmof7h+Y8Sa6aVRt74gGhs9DRoAAAAAAABgZ2lsLIi69QWxeUUmSjs0/vedwR8hk4uydSfE+wVd6qOyMfMx7/mtj9jwUtbjngEAAAAAAAB2obrqolg7IxtR/9Ffb4wo7P5GtCwobRaVH/c/UvNmNuqqPfIZAAAAAAAAYFerqy6KmjezH/v1ktpoVZBr/PgCeMN7yl8AAAAAAACApmJLHW5jUVQWNDSP+Q3ZeLco4i9/+8X6teHRzwAAAAAAAABNSd3/dLn/oLAoqqIuVhXFxhhSGB/xqGjlLwAAAAAAAECTU1eTjaK/KXSLIv7SWB+bc5ko9YxnAAAAAAAAgATJFv393bz1EeV//c8F1gMAAAAAAACQDgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKREkRUAAACwrUpLSwuGDRvWfMCAAS26du3avKysrLiioqKkZcuWzZs1a1bcvHnz0tLS0rJsNtusuLi4ebNmzUoLCgo+8/eijY2N9Zs3b66pra2tqqur21xTU1NdVVVVs2nTptqNGzdWbdiwoeYvf/nL5hUrVlQtWLBgw6xZs6pqamoaJQYAAEDaKYABAACIiIghQ4aUHnTQQW379u3bql27dq3at2/fpkWLFq2bN29eWVpa2qpZs2bNCwsLm2ez2fLCwsLyoqKi8sLCwtKknK+hoaG6vr6+qqGh4S91dXV/aWhoqNq8eXNVTU3NuqqqqvUbNmxYu2rVqjWrV69e99Zbb6177rnnPpgzZ06NTwYAAABJogAGAADIA8OGDWt+xBFHdBwwYECnLl26dGjdunXHFi1adCgtLe1YUlLSvlmzZq0KCgqK07yDwsLCssLCwrKIaPdp/zuNjY21mzdvXrdp06ZVNTU172/YsGHl2rVr31+2bNnKBQsWrHjyySffnzVrVpVPGAAAAE1Fpuexsd9HfaF+ZcSal0ptCAAAIAE6deqUPf744zvtueeeXbp3796lbdu2XSorKzuXlpZ2KS0t7VBYWFhhSztGQ0PDxpqampU1NTXL169fv+yDDz5Y9s477yybPXv2sj/96U8rVqxYUWdLAAAAbE9t9q6Jog4f/TUFMAAAQEJks9nMt7/97Y4jRozo1bdv397t2rXrXl5e3rWsrKxzcXFx+4gosKUmp7G2tnZVTU3Nso0bNy5btWrV0tdff/2tJ598cvG999672noAAADYFgpgAACAhPne977X6a9Fb/v27Xu1bNmyV1lZWa8kvXOXLauvr9/wl7/8ZdG6desWL1u2bNHChQsX/fGPf1w8derUjbYDAADAliiAAQAAmqhsNps59dRTuxx66KH9+/Tp87n27dv3Ly8v719UVOSRzXlq06ZNKzZu3Pj6+++//8abb775xqOPPvrG3XffvcpmAAAA+CsFMAAAQBNx6qmndvniF784qHfv3v3btWv3uYqKis8VFhaW2wxbUl9fv37Dhg1vfPDBB68vXrz4jccee2z+jTfeuNxmAAAA8pMCGAAAYBc45phjWn/rW9/aq3///kPatGnTv6Kiop9HOLO9NDQ0VG/cuPGtNWvWLFy4cOGcO+6445WHHnporc0AAACknwIYAABgJzjjjDO6f+lLX9qrV69eg1u3bj2orKysR0RkbIadJFddXb103bp18xcvXjz30UcffeXqq69+x1oAAADSRwEMAACwnZWWlhb86le/2u3QQw8d1r17931btmw5qLCwsMxmaEoaGhqqP/zww/nvvPPOzGeeeWbW2LFj36ipqWm0GQAAgGRTAAMAAGwHP/7xj7t+9atf3bdXr15D27Ztu1c2m21jKyRJXV3dmg8++OCVRYsWvfznP/95xh/+8IdltgIAAJA8CmAAAIBtcOKJJ7Y75ZRTDujXr9+w1q1bD81ms61shTSpq6tbt3bt2pfffPPNWbfccsvUe++9d7WtAAAANH0KYAAAgE+hoqKi4IILLhg0YsSI/bp27bpfy5YtB2YymUKbIR/kcrmGDz/8cP6777474/nnn59x4YUXvrZx40aPiwYAAGiCFMAAAAAf4/jjj2/7/e9//8D+/fsf2Lp1630KCgpKbAUiGhsbN61fv37eW2+9NeWGG2545u67715lKwAAAE2DAhgAAOB/ZLPZzAUXXPC5I4888sDu3bsfWFFRsVtEFNgMbFl1dfWSd999d8qsWbNmnnvuuS+vW7euwVYAAAB2DQUwAACQ10pLSwsuvfTSQYcccsjBXbt2HVFWVtbDVmDb1dbWrnr//fdfmDp16uRf/vKXL65evbreVgAAAHYeBTAAAJB3Bg0aVHrBBRd8fs899zywQ4cOBxQVFbWwFdj+Ghsba9euXTtrzpw5T59//vmTX3755WpbAQAA2LEUwAAAQF4YNmxY8/POO+/gIUOGHOZ9vrDz/W0ZfNFFFz07a9asKlsBAADY/hTAAABAarVq1arwyiuv3HfEiBEjO3TocFBhYWGZrcCu19DQUP3+++8/O2XKlIk/+clPZm7cuLHRVgAAALYPBTAAAJAqrVq1Kvztb3+7/3777Xd4x44dRxQWFpbbCjRdDQ0NG99///0pM2bMeOqHP/zhC8pgAACAz0YBDAAApMJZZ53V45vf/OaRvXr1GllaWtrVRiB5ampq3l28ePHEO++8c9LVV1/9jo0AAABsPQUwAACQWMOHDy+/6KKLvjB48OCjW7RoMdBGID0+/PDDV+fNmzfhvPPOe3L69Ol/sREAAIBPRwEMAAAkSqtWrQpvuOGGQ/bbb79/atOmzX6ZTCZrK5BeuVyubs2aNTNmzJjx2JgxYyavW7euwVYAAAA+ngIYAABIhB//+Mddv/e9732lZ8+e/1RcXNzWRiD/1NbWfvD2228/dssttzz029/+9l0bAQAA+L8UwAAAQJNVUVFRcO21137+4IMPPrZ169b7ZTKZAlsBIqJxzZo1M59//vnxp5122hR3BQMAAPx/CmAAAKDJOeWUUzqefvrpx/bu3ftL2Wy2jY0AH6e+vn7j0qVLH/vd7373x+uvv36ZjQAAAPlOAQwAADQJ2Ww2c+uttx5wyCGHnNC6deu9I8LdvsDWaFy7du1L06ZN+/OPfvSjZ1evXl1vJQAAQD5SAAMAALtU//79S6655pp/2nPPPY8tLy/vayPAZ1VTU7NswYIF488999wHp06dutFGAACAfKIABgAAdomf//znPU855ZQTu3btemRhYWGZjQDbW2NjY92KFSuevOWWW+689NJLF9kIAACQDxTAAADATuMxz8Cusn79+rlPP/30f5188slT6+rqcjYCAACklQIYAADY4fr27Vv8hz/84a+Pee5nI8CuUlNT8+68efPu/8EPfvDgwoULN9kIAACQNgpgAABghxkyZEjpNddc89XBgwefWFxc3MFGgKaitrZ21dy5c+/5yU9+8uc5c+bU2AgAAJAWWyqAPYoNAADYJqNHj+4wb968n06ZMuXRYcOGnaH8BZqa4uLi9sOGDTtjypQpj86bN++nJ510UntbAQAA0s4dwAAAwFY599xze33/+9//dufOnY/IZDJZGwGSIpfL1S1fvvzJG2644fbLLrvsbRsBAACSyiOgAQCAz+y8887r+53vfOfbHTt2PDyTyRTaCJBUuVyuYcWKFU/cdNNN//XrX/96sY0AAABJowAGAAC22WWXXTboG9/4xg9at249zDaAtFm7du2su++++9pzzjnnNdsAAACSQgEMAABsNcUvkE8UwQAAQJIogAEAgE9N8Qvks7Vr18665557rvv5z38+3zYAAICmaksFcGHlwOj6UV9orIqoWZG1PQAAyBO/+MUvet9xxx3nHHrooT8pLS3tYiNAPiotLe2y7777HvP973+/X1lZ2ZIpU6assxUAAKCpKetcHwXlH/01BTAAAOS5M844o/u99957zpe//OWflZeX94qIjK0AeS5TXl7e8+CDDx71/e9/v3dEvDVjxowPrQUAAGgqFMAAAMD/ceKJJ7a77777fjJq1Kh/KS8v7xOKX4B/lCkvL+99+OGHj/rWt77VfvXq1Qvnz59fbS0AAMCutqUC2DuAAQAgzwwdOrTs+uuvP6l///4nFRYWltkI20NjY2Ns2rQpqquro6amJurr62PTpk2xefPmqK+vj+rq6qivr4/NmzfHpk2boqGhYZv/fxUWFkZJSUk0a9YsioqKoqysLIqKiqJZs2ZRUlISRUVFUVpa+r9/FRQUCIjtoqGhoeq11167a8yYMffMmTOnxkYAAIBdZUvvAFYAAwBAnujUqVP2nnvuGbXXXnudnM1mK22Ej9PQ0BAbN26MDRs2/J+/Nm7cGBs3boyamprYtGlTbNq0KWpqaqK2trbJnqe4uDhKSkqitLT0f/9eUVERFRUV0aJFi//zV0VFRRQWFvog8LHq6urWvvjii7eceOKJf169enW9jQAAADubAhgAAPLcXXfdddAXv/jF00tLS7vZRn7L5XKxYcOGWLt2baxbty7Wrl37d3+tW7cuNmzYkPd7atGiRbRu3TpatWoVrVu3jjZt2vzvf27dunW0aNHCh4morq5e+sgjj1zzne98Z6ptAAAAO5MCGAAA8tTVV189+MQTTzyzoqJioG3kj8bGxli5cmUsX748Pvjgg1i9evX//n3t2rXR2NhoSZ9RYWFhtGrVKtq1axdt27b937937tw5OnTo4LHTeWbDhg3z77333qvOPPPMebYBAADsDApgAADIM1/72tfaXHrppad27979qIjQRKVUQ0NDrFq1KlasWBHvv//+//595cqVTfqRzGlXXFwcHTp0iI4dO0bnzp2jY8eO0alTp2jXrp1HS6dYLpdrfOeddx76+c9/fv2ECRPW2QgAALAjKYABACBP9OrVq9ldd931jT322OM7hYWFZTaSHh9++GG88847sXTp0njvvfdixYoVsXr16mhoaLCchCgsLIz27dtHp06dolu3btG9e/fo3r27x0mnTENDQ9W8efNu++Y3v/nHJUuWbLYRAABgR1AAAwBAHrjrrrtG/NM//dOZJSUlXWwj2davXx9Lly6Nd955539L3w8//NBiUqqysvJ/y+C//tWqVSuLSbiamppljz322G9Gjx49xTYAAIDtTQEMAAAp9qtf/arPD3/4w5+1atVqL9tIno0bN8aSJUvirbfeikWLFsV7770XmzZtspg8V1JSEl27do0+ffpE3759o3fv3lFeXm4xCbRu3bqXr7322ivGjh27yDYAAIDtRQEMAAApNGjQoNI77rjju7vttttJBQUFWRtJhtWrV8ebb74ZixcvjiVLlsTy5cujsbHRYtiigoKC6Ny5c/Tu3Tt69+4d/fr1i7Zt21pMQjQ2Nta98cYbd33rW9+6ff78+TU2AgAAfFYKYAAASJHS0tKCBx988Jj99tvvn7PZbBsbaboaGhri7bffjrfeeisWLFgQS5YscXcv201FRUX06tUr+vbtG3379o2ePXtGYWGhxTRhdXV1a2bMmHHjV77ylYdqamr85gcAALDNFMAAAJASp59+erdf/vKX51ZWVu5jG03T6tWr47XXXouFCxfGm2++GRs3brQUdooWLVpE3759Y8CAATFw4EB3CDdh69evf/E//uM//vPqq69+xzYAAIBtoQAGAICEGzRoUOm99977w969ex+byWTc4teErF+/PubNmxcLFiyIN954Q+FLk9GiRYvo169fDBgwIPbYY4+orKy0lCYkl8s1LF68eNyJJ554rcdCAwAAW0sBDAAACXbNNdcMOemkk35RVlbWyzZ2vVwuF++++27MnTs3XnvttViyZIl3+NLkFRQURK9evWLQoEExePDg6Natm6U0EdXV1UvuvvvuX//kJz+ZYxsAAMCnpQAGAIAEOuqoo1r99re//VmHDh0Ot41da9OmTTF79uyYO3duLFy4MKqqqiyFRGvevHn0798/Bg8eHHvuuWeUlJRYyi62cuXKp04//fTLJ0yYsM42AACAT6IABgCAhBk3btwRRxxxxFnZbLaNbewaVVVVMXfu3Jg7d27Mnz8/amtrLYVUKi4ujoEDB8bgwYNj8ODBUV5ebim7SF1d3ZqnnnrqqlGjRj1hGwAAwJYogAEAICFOOeWUjhdddNEvW7duvZ9t7HwrV66MWbNmxdy5c+Odd96JXC5nKeSdzp07x9577x3Dhg2LDh06WMgusHbt2hnnnXfepbfccsv7tgEAAHwUBTAAADRxpaWlBU899dQ3Bw8e/L2CggLPYt2JVqxYES+99FK89NJLsXz5cguBv/HXMnjvvfeOTp06WchO1NjYuGnu3Lk3H3744XfV1NR40TgAAPB3FMAAANCEjR49usOll176yzZt2gy3jZ1j/fr18eKLL8bMmTNj6dKlFgKfQs+ePWPfffeNYcOGRYsWLSxkJ1mzZs0L55577q/vvvvuVbYBAAD8lQIYAACaoIqKioKJEyd+c/Dgwd8vKCgotpEda8OGDfHiiy/G9OnTlb7wGfXo0SOGDx8ew4YNi4qKCgvZwdwNDAAA/CMFMAAANDGnnHJKx7Fjx/5rZWXlMNvYcerr6+PVV1+NGTNmxLx586Kurs5SYDvKZrMxZMiQ2HfffWP33XePwsJCS9mB1q5dO+MXv/jFv995550rbQMAAPKbAhgAAJqIbDabeeKJJ47fZ599fuSu3x0jl8vFwoULY/r06TF79uzYtGmTpcBOUFpaGkOGDInhw4fHgAEDLGQHaWhoqJ42bdo1Rx555J9tAwAA8pcCGAAAmoDjjz++7ZVXXvmr1q1be9fvDrBmzZqYNm1azJw5M1audHMc7EodO3aMz3/+87H//vt7X/CO+3fetDPPPPOScePGfWAbAACQfxTAAACwi9100037HXvssf9WXFzc1ja2n1wuF6+99lo8//zzMW/evKivr7cUaEKKiopizz33jBEjRsTnPve5yGQylrId1dbWrvrjH/948Q9+8INZtgEAAPlFAQwAALvIkCFDSu+///5zunTp8k+2sf2sXbs2Jk+eHNOnT48PP/zQQiABKisrY8SIEXHIIYdEeXm5hWxHy5Yte+zrX//6f86ZM6fGNgAAID9sqQAurBwYXT/qC41VETUrsrYHAADb6IILLtjt97///VVt2rQZZhvbx+LFi2P8+PFx9913xxtvvBG1tbWWAgmxadOmeOONN+LZZ5+NtWvXRps2bTweejtp0aJFv5NOOumg0tLSuc8+++xaGwEAgPQr61wfBR/zu7XuAAYAgO0sm81mJk2a9PVhw4b9pKCgwG9VfkZ1dXUxY8aMeOaZZ+K9996zEEiRfv36xSGHHBJDhw6NgoICC/mMGhsbN8+YMeOaL37xi+Pq6upyNgIAAOnlEdAAALCTHH/88W2vuuqqCyorK/exjc9mzZo18dRTT8XUqVNj06ZNFgIpVlFREZ///OfjsMMOi8rKSgv5jNavXz/r9NNPv3DcuHEf2AYAAKSTAhgAAHaC22677fNf+9rXzstms5W2se0WLVoUjz/+eMybNy9yOTewQT4pKiqKIUOGxBFHHBG9e/e2kM+grq5u3QMPPHDRySefPM02AAAgfRTAAACwA1VUVBQ8/fTTpwwcOPCUTCbjGabbIJfLxauvvhpPPvlkLFy40EIgz2UymRgwYEAcccQRMWjQIAvZ9n+3Ns6fP/+Www8//JaNGzc22ggAAKTHlgrgwsqB0fWjvtBYFVGzwuvKAABgS0488cR2EyZMuLx79+5fzmQyGRvZOo2NjTFr1qy49dZb48knn4wPPvC0UuC/rV69OmbMmBFz5syJ0tLS6NSpU/jX7NbJZDKZ9u3bD/3+978/dPny5TNfffXValsBAIB0KOtcHwXlH/O9gDuAAQBg29x66637H3vssRcWFRW1sI2tU1NTE0899VQ8++yzsWHDBgsBPlGLFi3i4IMPjsMPPzxKS/28YmvV19d/OG7cuPNPPvnk6bYBAADJ5xHQAACwHWWz2cyzzz77rSFDhvzAI5+3zqZNm2Ly5Mnx1FNPKX6BbdKiRYs47LDD4pBDDlEEb6VcLtfwyiuvXHfooYfeWVdX5yXrAACQYApgAADYTo455pjW11133cWVlZV728ant2HDhnj88cdjypQpUVtbayHAZ1ZcXBwHHnhgfPGLX4wWLTyIYWusWbNm2re//e3zn3nmGb+JAwAACeUdwAAAsB1cfvnlu1900UW/LS8v72cbn05VVVVMmDAhbrnllnjzzTejoaHBUoDtoqGhIZYsWRLPPfdc1NTURI8ePSKb9XOMT6OsrKzb17/+9SPbtm0774knnlhtIwAAkMDreu8ABgCAz+bhhx/+8qGHHnpOQUFBsW18sk2bNsUzzzwTTzzxRFRVVVkIsMOVl5fHkUceGYccckgUF/tX9afR2Ni46emnn/71Mccc87htAABAsngENAAAbKN27doVTZ48+YxevXodZxufrK6uLp5++umYOHGi4hfYJSoqKuKLX/xiHHzwwe4I/pQWLVr0x4MOOuiadevWeUwDAAAkhEdAAwDANjj22GPbPvzww7/p2LHjobaxZXV1dfHkk0/GddddF3Pnzo26ujpLAXaJzZs3x2uvvRbPPfdcRET06NEjCgsLLWYLWrduvfv3vve9fd9+++1pCxYsqLYRAABo+rb0CGgFMAAAfITLL7989wsuuOB3zZs372UbH6+xsTGmTJkS119/fbzyyiuKX6DJ2Lx5cyxYsCCmT58excXF0a1bt8hkMhbzMUpKSjp8+ctfPrJt27ZzvBcYAACaPu8ABgCArTB+/Pgjv/CFL/xLQUFBiW18vAULFsT48eNj6dKllgE0eT169IivfOUrMWjQIMvYgsbGxpqJEydecuyxxz5pGwAA0HR5BzAAAHwK7dq1K3ruued+1qNHj6/axsdbtGhR3H///bF48WLLABKnV69ecdxxx0WfPn0sYwuWLl3654MOOujy1atX19sGAAA0Pd4BDAAAn2DYsGHNn3766V936tTpC7bx0TZs2BD33Xdf/PGPf4y1a9daCJBI69evj2nTpsW6deuiZ8+eUVLiYQ8fpbKysv+3v/3t/lOmTJmyfPlyz/cHAIAmxjuAAQBgC372s5/1uP76669t0aKF54J+hJqamhg/fnzcfPPN8fbbb0cul7MUINFyuVy888478cwzz0RVVVX07t07slk/A/lHZWVl3U488cTD6+rqZkyfPv1DGwEAgCZ0va4ABgCAj3bFFVfscdZZZ11dXFzcwTb+Xi6XixkzZsR1110XCxYsiMbGRksBUqWxsTGWLFkSM2bMiPLy8ujSpUtkMhmL+RvZbLbFQQcddHibNm1mP/HEE6ttBAAAmoYtFcDeAQwAQN6aNGnSqAMOOODsTCZTaBt/b9GiRXHPPffEu+++axlA3ujWrVucdNJJ0bt3b8v4B7lcrm7y5Mm//vKXv/yIbQAAwK63pXcAK4ABAMg7paWlBTNnzjyzT58+x9vG39uwYUOMGzcuZsyY4VHPQF7KZDKx3377xde//vWoqKiwkH+waNGiP+27775X1dTUeCwEAADsQgpgAAD4H926dctOnjz5V506dRppG/9fLpeLqVOnxp///OfYuHGjhQB5r6KiIkaNGhX777+/x0L/g+XLlz9+6KGHXvLuu+/W2QYAAOwaWyqAvQMYAIC8MXz48PInnnjiynbt2o2wjf/vnXfeiWuvvTaee+652Lx5s4UARMTmzZtjzpw58dprr0XPnj2jRYsWlvI/Kioq+n7rW98aMnXq1Ofee+89f3AAAMAusKV3ACuAAQDIC9/+9rc73n777X9o0aLFANv4b1VVVXHXXXfFvffeG+vXr7cQgI+wbt26eP7552P9+vWx2267RVFRkaVERElJSefjjjvuoA8++GDKK6+88hcbAQCAnUsBDABAXjv//PP7XXzxxX8oKSnpbBv/bfr06XHttdfGokWLLAPgU3jnnXdi2rRp0bp16+jc2R8nERHZbLbyC1/4whElJSUvTp48eY2NAADAzqMABgAgb/3ud7/b60c/+tFVRUVFrWwjYs2aNXHzzTfHpEmTora21kIAtkJtbW289NJL8c4770Tfvn2jtLQ073dSWFhYNnz48C/26dNn4UMPPbTMpwQAAHYOBTAAAHnp1ltv3f+b3/zmfxYWFjbP913kcrl4/vnn4/rrr4/ly5f7cAB8BitXroxp06ZFRUVFdOvWLTKZTF7vo6CgIDto0KBDBw0atOiBBx54xycEAAB2vC0VwJmex8Z+H/WF+pURa17ym6wAACTTww8//KXDDjvsXzKZTN6/rPGDDz6I22+/Pd544w0fDIDtbMCAAfGtb30r2rRpk/e7yOVyjVOmTPn1yJEjH/LJAACAHavN3jVR1OGjv6YABgAgdV555ZXTPve5z30r3/fQ0NAQjz32WDz++ONRV1fngwGwg2Sz2Tj66KPjC1/4QhQUFOT9Pl5//fU79tprr9/7ZAAAwI6jAAYAIC9ks9nMyy+/fFafPn2Oz/ddvPvuu3HbbbfFe++954MBsJN069YtvvOd70S3bt3yfhdLliy5f5999rmypqam0ScDAAC2PwUwAACpV1paWjBr1qyzevfufVw+7yGXy8WTTz4ZDz74oLt+AXaBbDYbxxxzTBxxxBF5fzfw0qVLHxg6dOjlSmAAANj+FMAAAKRar169mk2ePHlsu3btDsrnPaxcuTJuueWWePvtt30oAHaxnj17ximnnBIdOnTI6z2sXr16yiGHHPIvS5Ys2exTAQAA28+WCuDCyoHR9aO+0FgVUbMia3sAADRpQ4cOLXvqqacub9Omzf75uoNcLhfPPPNMXH/99bF27VofCoAmYP369TFlypQoKSmJnj17RiaTycs9NG/evPtJJ500ZPLkyc+sWLHCoykAAGA7KetcHwXlH/01BTAAAIk1ZMiQ0kceeeSKVq1a7Z2vO6iuro7bb789nnjiiWhs9IRNgKaksbEx5s+fH++//34MGDAgstn8/DlLaWlpp6997WuDn3rqqadXrlxZ75MBAACfnQIYAIDUOfTQQ1s8+OCDv2/ZsuUe+bqDOXPmxNVXX+2RzwBN3PLly+OFF16Ijh075u0joUtLSzudcMIJ+7/00ktPv/3227U+FQAA8NkogAEASJVhw4Y1v++++37TsmXLQfl4/vr6+hg/fnz88Y9/jNpaP0MHSILNmzfHiy++GJs3b47ddtstCgoK8m4HxcXFbY866qg9n3vuuaeXL1/ucdAAAPAZKIABAEiNI488snLcuHG/b9GixcB8PP97770XV111VcyZM8eHASCBFi1aFC+//HL069cvWrRokXfnLykp6XDcccftP2fOnGcWLVq0yScCAAC2jQIYAIBUOPLIIyvvvPPO35aXl++Wj+d/+umn48Ybb4wPP/zQhwEgwf7yl7/ECy+8ECUlJdGrV6+8O3+zZs3aHHXUUfspgQEAYNspgAEASLxjjz227W233faH5s2b98m3s1dVVcXNN98cTz31VDQ2NvowAKRAY2NjzJ8/P5YtWxYDBgyIZs2a5dX5mzVr1uaYY4458M0333xm4cKFNT4RAACwdRTAAAAk2qGHHtritttuuzofy9+33347rrnmmli8eLEPAkAKvf/++/HKK69Enz59orKyMq/Ons1mK4888sh9Zs6c+dTSpUs3+zQAAMCnpwAGACCxjjjiiJb33nvvteXl5f3y6dy5XC4mTZoUN998c1RVVfkgAKRYVVVVTJ06NbLZbPTp0ycymUzenL24uLjtV7/61c+/8sorTy1evLjWpwEAAD4dBTAAAIl06KGHtrj33nt/l2/lb3V1ddx0000xefLkyOVyPggAeSCXy8WCBQvi3Xffjd133z2y2fz5mUyzZs1aH3300fvNmDHjSXcCAwDAp6MABgAgcYYOHVo2fvz4qysqKgbk07mXLVsWV111lUc+A+SplStXxiuvvBKf+9znoqKiIm/O3axZszZHH3300GeeeebJFStW1PkkAADAlimAAQBIlCFDhpQ++uij17Rs2XL3fDr31KlT49prr42NGzf6EADksaqqqpg+fXq0bds2unTpkjfnLikpaT9q1KihTz755JMrV66s90kAAICPt6UCuMB6AABoSjp16pSdMGHCv1dWVu6RL2dubGyMcePGxR133BF1dW56AiCitrY2br755hg/fnw0NjbmzbkrKyv3mDBhwr9369bNXQkAALCNFMAAADQZrVq1Kpw+ffolbdq02T9fzlxdXR2/+93vYtKkSd73C8DfyeVy8fjjj8fvf//7qK6uzptzt2nTZv8pU6Zc0qpVq0KfAgAA2HoKYAAAmoSKioqC2bNnX9KuXbuD8uXMS5cujYsuuijmz5/vAwDAx3r11VfjoosuiqVLl+bNmdu1a3fQ7Nmz/72iosLPrgAAYCu5iAYAoEmYOXPmz9q1a3dIvpz35ZdfjiuuuCLWrVsnfAA+0bp16+KKK66Il19+OW/O3K5du4Nnzpz5M+kDAMDWUQADALDLvfjii2N69OgxKh/Omsvl4oEHHogbbrghamtrhQ/Ap1ZbWxs33HBDPPDAA3nz2oAePXqMevHFF8dIHwAAPj0FMAAAu9SkSZO+NnDgwFPy4ax1dXVx8803x8SJE73vF4BtksvlYuLEiXHLLbdEXV1dXpx54MCBJ0+aNOlr0gcAgE9HAQwAwC7z6KOPHnXggQeekw9nXbduXfz617+OWbNmCR6Az2zmzJnx61//Ol9eJZA58MADz3n00UePkjwAAHyywsqB0fWjvtBYFVGzImtDAADsEDfeeOO+Rx999EWZTKYw7Wddvnx5XHXVVbFy5UrBA7DdbNiwIWbPnh0DBw6MioqKtB8307179/179uz56sMPP7xc+gAA5LuyzvVRUP7RX1MAAwCw011xxRV7fPe7372qoKCgWdrPOmfOnPjtb38bGzduFDwA2111dXVMmzYtOnfuHB07dkz1WTOZTOHuu+9+eJs2bV6aNGnSKukDAJDPFMAAADQZZ5xxRvef/exnvy0sLCxP+1knTJgQd999d9TX1wsegB2moaEhXnrppchms9G3b99UnzWTyRTttddeB/3lL395dubMmRukDwBAvlIAAwDQJBx00EEVf/jDH64pLi7ulOZz5nK5eOCBB+Kxxx4TOgA77c+eBQsWRF1dXfTv3z8ymUxqz1pQUFBywAEHDJs+ffqkpUuXbpY+AAD5aEsFcIH1AACwMwwaNKj0vvvuu7qsrKxXms9ZV1cX1113XUyaNEnoAOx0EydOjOuvvz7q6upSfc6ysrJef/rTn67u379/idQBAODvKYABANjhKioqCh577LGLKyoqBqb5nNXV1XHNNdfE7NmzhQ7ALvPKK6/ElVdeGVVVVak+Z4sWLQZOnDhxbEVFhZ9vAQDA33CBDADADjdz5syftW3b9sA0n3HdunVx2WWXxRtvvCFwAHa5xYsXx2WXXRZr165N9TnbtWt34MyZM38mcQAA+P8UwAAA7FBPPvnkqB49eoxK8xlXrVoVV1xxRSxfvlzgADQZK1asiCuuuCJWrlyZ6nP26NFj1KRJk0ZJHAAA/lth5cDo+lFfaKyKqFmRtSEAALbZjTfeuO+XvvSlCzOZTGp/8fDdd9+NK6+8MtatWydwAJqc6urqmDVrVvTv3z8qKytTe85u3boN79mz57yHH37Yb2MBAJAXyjrXR0H5R39NAQwAwA5x3nnn9T311FOvLigoKE7rGV977bW45pprorq6WuAANFmbN2+OGTNmRI8ePaJ9+/apPGMmkykYNGjQIYWFhVOee+45v5UFAEDqKYABANipjjrqqFb/8R//8YdmzZq1SusZX3755bj++uujrq5O4AA0eQ0NDfHSSy9Fp06dolOnTqk8Y0FBQXbYsGGfnz9//qQ33nhjk9QBAEizLRXA3gEMAMB21a1bt+wNN9zwnyUlJR3TesYpU6bEjTfeGPX19QIHIDHq6+vjxhtvjKlTp6b2jCUlJZ1uuOGG/+jWrZu7GgAAyFsKYAAAtqunn376XyorK/dI6/kmTZoUd955ZzQ2NgobgMRpbGyMO+64I5588snUnrGysnLw008//UtpAwCQrxTAAABsN88///w3unTp8k9pPd/EiRNj3LhxkcvlhA1AYuVyubj//vtTXQJ36dLlS88+++yJ0gYAIB95BzAAANvFTTfdNPzII488L5PJZNJ4vsceeyzGjx8vaABS47XXXotmzZpF3759U3m+zp0779urV695Dz/88DJpAwCQNlt6B7ACGACAz+wXv/hF7x/+8IdXFxQUNEvj+R544IF45JFHBA1A6ixYsCDq6upiwIABqTtbJpPJDBo06ODGxsbnpk6dul7aAACkiQIYAIAd5oADDqj43e9+99tmzZq1TeP5xo0bF5MmTRI0AKm1aNGi2Lx5cwwcODB1ZysoKMjut99+w5577rnH33vvvc3SBgAgLbZUAHsHMAAA2yybzWbuvPPOfyktLe2exvNNmDBB+QtAXpg0aVI89NBDqTxbaWlpj3vuuedfstlsRtIAAOQDBTAAANvs+eef/06HDh0OTePZHn744Xj44YeFDEDeeOSRR+LPf/5zKs/WoUOHw5599tlvSxkAgHygAAYAYJvcd999hw8ePPjUNJ7t/vvvjwkTJggZgLzz2GOPxX333ZfKs+25554/+NOf/nSYlAEASDvvAAYAYKudccYZ3ceMGXN5QUFBcdrONnHixHjkkUeEDEDeWrx4cWSz2ejbt2/ajpbp06fPvn/5y18mz5w5c4OkAQBIsi29A1gBDADAVhk2bFjzG2+88Q/NmjVrl7azPfroo6l99CUAbI2FCxdGUVFR9OvXL1XnKigoKD7wwAP3e/LJJx9dsWJFnaQBAEiqLRXAHgENAMBWuffee39ZWlraPW3nevzxx+PBBx8UMAD8jz//+c8xceLE1J2rtLS0x3333fdLCQMAkFYKYAAAPrVJkyaN6tSp0xEpPFeMHz9ewADwD8aPHx+TJ09O3bk6der0hUmTJn1VwgAApJFHQAMA8Kmcd955fU888cR/z2QyRWk618yZM+Puu+8WMAB8jNdeey06duwYnTt3TtW5unbtuk9BQcHzzz333DopAwCQNN4BDADAZ3LEEUe0vOKKK67NZrOVaTrXyy+/HDfffHPkcjkhA8DHyOVyMXv27OjSpUt06tQpNefKZDJF++yzz/CpU6c+9u67726WNAAASeIdwAAAbLNsNpu55ZZb/q2kpKRjms61YMGCuPnmm6OxsVHIAPAJGhsb4+abb44333wzVecqLS3tcvfdd5+fzWYzUgYAIC0UwAAAbNGkSZO+3rZt2wPTdKZly5bFDTfcEPX19QIGgE+prq4urr322li+fHmqztWuXbsDH3/88VESBgAgLTwCGgCAj3XZZZcN+upXvzo2k8mk5hcH33///bjyyiujqqpKwACwlerq6uLll1+OIUOGRHl5eWrO1aVLl31LS0unPvPMM2ukDABAEngENAAAW61///4lJ5988q8ymUxRWs60YcOG+P3vfx8bN24UMABso40bN8bvfve7VP15WlBQkP3hD394ft++fYslDABA4q9vrQAAgI/y4IMPnl1WVtYrLeeprq6O3/zmN7Fq1SrhAsBntGrVqrjyyiujuro6NWcqKyvr8/DDD58lXQAAkk4BDADA/zF+/Pgju3XrdnRazlNfX5/KdxYCwK60fPnyuO6666K+vj41Z+rRo8dXx40bd4R0AQBIMgUwAAB/53vf+16nI4444py0nCeXy8Vtt90Wb7zxhnABYDt7/fXX47bbbotcLpeaMx155JHnfvvb3+4oXQAAkkoBDADA/6qoqCi4+OKLLywsLCxPy5nGjx8fs2bNEi4A7CCzZs2Khx56KDXnKSwsrPj1r399QUVFhZ+bAQCQSC5kAQD4XxMnThxdWVk5OC3nef7552PixImCBYAd7LHHHosXXnghNeeprKzc89FHHz1RsgAAJFFh5cDo+lFfaKyKqFmRtSEAgDxxwQUX7DZq1KgLM5lMYRrO8+qrr8Ytt9ySqkdSAkBT/7O3d+/e0a5du1Scp2PHjkNzudxzU6ZMWSddAACamrLO9VHwMc/wcwcwAADRt2/f4h//+McXZzKZVPwG4HvvvRc33HBDNDY2ChcAdpKGhoa47rrrYtmyZak4T0FBQfbss88e27dv32LpAgCQqGtZKwAAYPz48T8qKyvrkYazbNiwIX7/+99HbW2tYAFgJ9u0aVP8/ve/j40bN6biPGVlZb3GjRs3RrIAACSJAhgAIM/ddNNNw/v06XN8Gs5SX18f1157baxdu1awALCLrFmzJq699tqor69PxXn69ev3jd///vdDJQsAQFIogAEA8thBBx1Uceyxx/5rRGTScJ477rgjFi9eLFgA2MUWLVoUd955Z1qOU/CNb3zj34YNG9ZcsgAAJOIC1goAAPLXzTfffFZxcXG7NJxl4sSJMX36dKECQBMxbdq0mDRpUirOUlJS0unOO+88Q6oAACSBAhgAIE/913/914FdunT5UhrO8tprr8Wf//xnoQJAEzN+/PhYsGBBKs7SrVu3o2+66abhUgUAoKlTAAMA5KEvfelLlV/5yld+lYazrFixIq6//vpobGwULAA0MY2NjXHdddfFihUr0nCczHHHHfergw46qEKyAAA0ZQpgAIA8dPXVV5+ezWYrk36OmpqauPbaa2PTpk1CBYAmatOmTXHttddGTU1N4s+SzWbb3njjjT+RKgAATZkCGAAgz9x6663Du3Tp8uWknyOXy8Utt9wSK1euFCoANHErV66MW2+9NXK5XOLP4lHQAAA0dQpgAIA8MnTo0LKvfvWrv0jDWSZMmBBz584VKgAkxJw5c+Kxxx5LxVlGjRr1i6FDh5ZJFQCApkgBDACQR+64444fFRcXd0z6OV5++eV45JFHBAoACfPQQw+l4he4SkpKOt5xxx0/lCgAAE2RAhgAIE9cfvnlu/fs2XNU0s/xwQcfxB133JGKR0gCQL7J5XJx2223xZo1axJ/lp49ex57+eWX7y5VAACaGgUwAEAe6NatW/a73/3uv2YymURf/9XX18cNN9wQ1dXVQgWAhKqqqoobb7wx6uvrE32OTCZT8N3vfvdX3bp1y0oVAICmRAEMAJAHxo8ff0pZWVmvpJ/jnnvuiaVLlwoUABJuyZIlcd999yX+HGVlZT3Hjx9/ikQBAGhKFMAAACn385//vOeAAQNGJ/0c06dPjylTpggUAFJi8uTJMWPGjMSfY8CAAaN//vOf95QoAABNhQIYACDFstls5qyzzjo3k8kk+tGEK1asiLvvvlugAJAyd911V6xYsSLRZ8hkMtmzzjrr3Gw2m5EoAABNgQIYACDFxo0b98XKysq9knyG2trauOGGG6K2tlagAJAyf/1zfvPmzYk+R2Vl5V7jxo0bKVEAAJoCBTAAQEoNHz68/OCDDz4t6ee4//77Y/ny5QIFgJRavnx5jBs3LvHnGDFixI+HDRvWXKIAAOxqCmAAgJS69dZbT8tms22TfIYZM2bEc889J0wASLnJkyfHzJkzE32G4uLitrfffvtp0gQAYFdTAAMApNBVV121R48ePb6S5DOsXLky7rrrLmECQJ64++6744MPPkj0GXr27PnVK664Yg9pAgCwKymAAQBSprS0tOAb3/jGT5N8rdfY2Bi333679/4CQB6pqamJ2267LRobG5N8jIJvfvObZ5aWlvqZGwAAu+6i1AoAANJlwoQJX6uoqBiQ5DOMHz8+Fi1aJEwAyDNvvvlmPPjgg4k+Q4sWLQY9+OCDx0gTAIBdRQEMAJAiRx55ZOWwYcN+kOQzzJ07N5544glhAkCemjhxYixYsCDRZxg+fPiPjjjiiJbSBABgV1AAAwCkyBVXXHFyUVFRRVLnr6qqijvvvDNyuZwwASBP5XK5uP3226O6ujqxZygqKmrxm9/85mRpAgCwKyiAAQBS4vzzz+/Xu3fv45J8httvvz0+/PBDYQJAnlu3bl3cfvvtiT5D7969jz///PP7SRMAgJ1NAQwAkALZbDZz6qmn/jyTyST2+m769OkxZ84cYQIAERExe/bsmDFjRmLnz2QyBaeeeurPs9lsRpoAAOxMCmAAgBT44x//eERlZeXgpM6/du3auPfeewUJAPyde+65J9atW5fY+SsrKwf/6U9/+oIkAQDYmRTAAAAJ17dv3+JDDjnkR0k+w9133x01NTXCBAD+Tk1NTdx9992JPsPBBx/8o759+xZLEwCAnUUBDACQcHfdddc3S0pKOiV1/smTJ8e8efMECQB8pLlz58azzz6b2PlLSko63nPPPd+SJAAAO4sCGAAgwb70pS9VDhw48KSkzr9mzZoYP368IAGALXrggQdizZo1iZ2/f//+Jx111FGtJAkAwM6gAAYASLArrrji1MLCwvIkzp7L5eK2226LTZs2CRIA2KJNmzbFbbfdFrlcLpHzFxYWll1++eU/kCQAADuDAhgAIKF+8Ytf9O7evftXkjr/s88+G2+88YYgAYBP5Y033ojnn38+sfN369bt6F/96ld9JAkAwI6mAAYASKgf/vCHP8pkMom8nvvggw/igQceECIAsFXGjRsX69atS+TsmUym4NRTT/2xFAEA2NEUwAAACXTdddcNa9eu3YFJnD2Xy8Udd9wRtbW1ggQAtsqmTZvizjvvTOz8bdq02f+mm27aT5IAAOxICmAAgIQpLS0t+NrXvnZ6Uud/4YUXYuHChYIEALbJq6++GjNmzEjs/Mccc8zpFRUVfiYHAMAO42ITACBhbr/99oMrKip2S+LsGzZsiHHjxgkRAPhM7r///qiqqkrk7OXl5X3/67/+6wgpAgCwoyiAAQASpKKiouCwww47Nanz33vvvYn9YS0A0HRs2LAh7r///sTOf9BBB/1zq1atCiUJAMCOoAAGAEiQ+++//+iysrKeSZx9zpw58dJLLwkRANguXnjhhViwYEEiZy8tLe32xz/+8StSBABgR1AAAwAkRN++fYv33Xfff07i7LW1tXHvvfcKEQDYru6+++6oq6tL5Oz77bffKf379y+RIgAA25sCGAAgIW6++eZRxcXFbZM4+yOPPBJr164VIgCwXa1atSoee+yxRM6ezWbb3njjjV+TIgAA25sCGAAgAYYOHVq21157fSeJs7/33nvxxBNPCBEA2CEmTpwYK1asSOTsQ4YM+c7QoUPLpAgAwPakAAYASIBrr732xKKiosqkzZ3L5eKee+6JxsZGIQIAO0R9fX3cddddkcvlEjd7UVFR5bXXXnuCFAEA2J4UwAAATdwBBxxQMWDAgG8kcfYZM2bEW2+9JUQAYId6880348UXX0zk7AMGDPjG8OHDy6UIAMD2ogAGAGjirrrqqhOKiooqkjb3pk2b4oEHHhAgALBT3H///VFbW5u4uYuKilpcffXV7gIGAGC7UQADADRhBx10UEX//v0Teffvww8/HB9++KEQAYCdYv369TFhwoREzj5w4MBvHHDAARVSBABge1AAAwA0Yf/5n/95bGFhYfOkzb1q1aqYPHmyAAGAnerpp5+O1atXJ27uwsLC8ssuu2yUBAEA2B4UwAAATdQBBxxQMWjQoNFJnP3uu++O+vp6IQIAO1V9fX3cddddiZx99913/+bQoUPLpAgAwGelAAYAaKIuv/zyYwsLC8uTNvfcuXNjwYIFAgQAdokFCxbE3LlzEzd3UVFRi9/97ndflyAAAJ+VAhgAoAkaOnRo2aBBgxL37t+6urr405/+JEAAYJf605/+FHV1dYmbe/fdd//mkCFDSiUIAMBnoQAGAGiCfvOb33ylqKioZdLmfu655xL53j0AIF1Wr14dzz33XOLmLioqann11VcfLUEAAD4LBTAAQBPTq1evZoMHD/5m0uaurq6ORx55RIAAQJPwyCOPRHV1deLmHjJkyLe6deuWlSAAANtKAQwA0MTcdNNNxxQXF7dN2twTJkyIqqoqAQIATUJVVVUifzmtuLi43a233uouYAAAtpkCGACgCWnVqlXhXnvtdVLS5l61alU8++yzAgQAmpTJkyfHqlWrEjf30KFDR7dq1apQggAAbAsFMABAE3LLLbccXlJS0jlpcz/44INRX18vQACgSamvr48HH3wwcXOXlJR0vummmw6VIAAA20IBDADQRGSz2cwBBxzw7aTNvWjRonjppZcECAA0SS+99FIsXrw4cXOPGDHiO9lsNiNBAAC2lgIYAKCJuOaaa/YuLy/vm7S5H3roocjlcgIEAJqkXC6XyLuAy8vL+1111VV7SRAAgK2lAAYAaCK+8pWvfDdpM8+bNy8WLlwoPACgSVu4cGG8+uqrrg8BAMgLCmAAgCbgsssuG1RZWblPkmbO5XIxfvx44QEAifDAAw8k7qklrVu33veSSy7pLz0AALaGAhgAoAkYNWrUCUmbefbs2bFs2TLhAQCJsGzZsnjllVcSN/cJJ5xwovQAANgaCmAAgF3sn//5nzt37NjxiCTN3NjYGA888IDwAIBEGT9+fDQ0NCRq5k6dOn1h9OjRHaQHAMCnpQAGANjFfvSjH30tk8kk6rps2rRpsWrVKuEBAImyatWqeOGFFxI1cyaTKfzpT386SnoAAHxaCmAAgF1o0KBBpX369Plqkmaur6+PCRMmCA8ASKQJEyZEXV1dombu27fvV/r27VssPQAAPg0FMADALnTZZZcdXlRUVJGkmadOnRpr164VHgCQSOvXr48pU6YkauaioqLK3/zmN0dIDwCAT0MBDACwi2Sz2cy+++57UpJmrqurc/cvAJB4jz76aOLuAt5///1PymazGekBAPBJFMAAALvI1VdfPbSsrKx3kmaeMmVKbNiwQXgAQKJt2LAhnn/++UTNXFZW1ueqq67aS3oAAHwSBTAAwC7y5S9/+bgkzVtfXx8TJ04UHACQCo8//nji7gL+0pe+dLzkAAD4JApgAIBdYPTo0R3atm07IkkzT5s2LdatWyc8ACAVPvzww5g+fXqiZm7fvv2I0aNHd5AeAABbogAGANgFfvrTn47KZDKFSZm3vr4+HnnkEcEBAKnyyCOPRH19fWLmzWQyhT/96U+/JjkAALZEAQwAsJN16tQp26dPn6OTNLO7fwGANFq3bl1MmzYtUTP36dPnmE6dOmWlBwDAx1EAAwDsZFddddUB2Wy2dVLmbWxsjEmTJgmOVOvYsWN06OCJmgD5aNKkSdHY2JiYebPZbOurrrrqAMkBAPBxFMAAADvZiBEjvp6keV988cVYtWqV4Ei1Ll26xIUXXhinnXZadO3a1UIA8siqVavipZdecj0JAEBqKIABAHaiM844o3tlZeXeSZk3l8vFxIkTBUdeyGQyMXjw4PjVr34VY8aMcUcwQB55/PHHI5fLJWbeysrKvc8444zukgMA4KMogAEAdqJTTjnlqxGRScq8CxYsiPfee09w5JVMJhN77713XHjhhTFmzJho3769pQCk3HvvvRcLFy5M1B9X/3NdCQAA/4cCGABgJ+nVq1ezXr16fTlJM3v3L/nsr0XwBRdcECeffHK0bdvWUgBSLGnXPb169fpyr169mkkOAIB/pAAGANhJrrjiioOLiopaJmXeBN4JAztEYWFhDB8+PC688MIYPXp0VFZWWgpACi1YsCCWLVuWmHmLiopaXnnllYdIDgCAf6QABgDYSYYPH/6VJM2btHfhwY5WVFQUI0aMiEsuuSRGjx4dLVu2tBSAFMnlcvH4448naub99tvvK5IDAOAfKYABAHaC0aNHd6isrByalHnXrl0bL7/8suDgI/y1CL744ovjhBNOiBYtWlgKQEq89NJLsW7dusTMW1lZudfo0aM7SA4AgL+lAAYA2AlOP/30o5J07fXMM89EQ0OD4GALiouL47DDDouxY8fGqFGjoqyszFIAEq6hoSGeeeaZJI1c8D/XmQAA8P8vEq0AAGDHymazmX79+n05KfPW1tbGlClTBAefUnFxcYwcOTIuvfTSGDVqVJSWlloKQII9//zzUVtbm5h5+/Xr9+VsNpuRHAAAf6UABgDYwX7zm9/sWVJS0jkp886YMSOqq6sFB1uppKQkRo4cGZdcckkcffTRUVJSYikACVRdXR0zZ85M0p8/na+44orBkgMA4K8UwAAAO9gXvvCFLyVl1lwuF08//bTQ4DNo3rx5HHXUUXHJJZfEyJEjI5vNWgpAwjz11FORy+USM++RRx75ZakBAPBXCmAAgB1oyJAhpZ07dz4iKfO+/vrrsWLFCsHBdlBeXh6jRo2KSy+9VBEMkDArVqyI119/PTHzdunS5fD+/ft79AQAABGhAAYA2KHGjh17aGFhYWJeCOruX9j+KioqYtSoUXHxxRfH4YcfHkVFRZYC4LpouyosLGz+H//xHwdLDQCACAUwAMAOteeeex6ZlFnXrl0b8+bNExrsIK1atYrjjz8+LrroohgxYkQUFPh2DKApmzdvXqxZsyYx8+61115HSg0AgAgFMADADnPMMce0bt269b5Jmfe5556LxsZGwcEO1qZNmxg9enRcfPHFimCAJqyxsTGee+65JP35MvyYY45pLTkAAPykAQBgBznzzDMPz2Qyibjeqq+vj6lTpwoNdqK2bdvG6NGj47zzzovhw4crggGaoBdeeCHq6+sTMWsmkyk844wzDpUaAAB+wgAAsIP079//C0mZdc6cObFhwwahwS7QqVOnOPnkk+Pf/u3fYu+9945MJmMpAE3Ehg0bYvbs2YmZd8CAAR4DDQCAAhgAYEf43ve+16mysnKPpMybpMcbQlp17tw5xowZE7/61a8UwQBNyPPPP5+YWSsrKwd/73vf6yQ1AID8pgAGANgBTj755CMiIhHtzcqVK+P1118XGjQRXbt2jTFjxsQ555wTgwcPthCAXez111+PlStXJmXczMknn3y41AAA8psCGABgB+jXr19iHv88ZcqUyOVyQoMmpnfv3nHaaafFOeecE/3797cQgF0kl8vFlClTknQd6jHQAAB5TgEMALCdnX766d0qKip2S8Ks9fX1MW3aNKFBE9anT58466yz4pxzzonddtvNQgB2gWnTpkV9fX0iZq2oqNjt9NNP7yY1AID8pQAGANjORo8efURSZp03b15s3LhRaJAAffr0ibPPPjvOPPPM6Nmzp4UA7EQbN26MefPmuR4FACARFMAAANtZr169EvPetSQ9zhD4bwMGDIhf/vKXceaZZ0b37t0tBGAnmTp1apKuRw+TGABA/lIAAwBsR2eccUb38vLyvkmYdf369fHaa68JDRJqwIAB8S//8i9x2mmnRbdunvQJsKPNnz8/Pvzww0TMWl5e3u9HP/pRF6kBAOQnBTAAwHZ03HHHHZSUWWfMmBGNjY1CgwTLZDIxePDg+Nd//dcYM2ZMdOjQwVIAdpDGxsaYMWNGYub9xje+cYjUAADykwIYAGA76tOnz8FJmDOXyyXqMYbAlmUymdh7773jwgsvjDFjxkT79u0tBWAHeOGFF5J0XXqIxAAA8pMCGABgOznppJPat2zZcvckzLpkyZJYuXKl0CBl/loEX3DBBXHyySdH27ZtLQVgO1qxYkW8/fbbiZi1srJy0PHHH+8PAgCAPKQABgDYTr773e8eGBGZJMyapMcXAluvsLAwhg8fHhdeeGGMHj06KisrLQVgO5k+fXpSRi34/ve/f6DEAADyjwIYAGA72X333Q9Nwpz19fUxc+ZMgUEeKCoqihEjRsQll1wSo0ePjpYtW1oKwGc0c+bMqK+vT8SsAwcOPFRiAAD5RwEMALAdHHTQQRUtW7bcKwmzLly4MKqrq4UGeeSvRfDFF18cJ5xwQrRo0cJSALZRVVVVvP7664mYtVWrVkOHDx9eLjUAgPyiAAYA2A7OPvvsz2cymaIkzOrxz5C/iouL47DDDouxY8fGqFGjoqyszFIAtkFSnqaSyWSy55577uclBgCQXxTAAADbwe67735AEuasra2NOXPmCAzyXHFxcYwcOTIuvfRSRTDANpg9e3bU1dUlYtY99tjjAIkBAOQXBTAAwGfUqlWrwnbt2u2fhFnnzZsXtbW1QgMiIqKkpCRGjhwZY8eOjaOPPjpKSkosBeBT2LRpU8ybNy8Rs7Zv337/iooKPwMEAMgjLv4AAD6jCy+8cPeioqKKJMz64osvCgz4P5o3bx5HHXVUXHLJJTFy5MjIZrOWAvAJZs2alYg5i4qKWlx88cWDJAYAkD8UwAAAn9GBBx6YiMfqVVdXJ+ZOFWDXKC8vj1GjRsWll16qCAb4BPPmzYuamppEzHrQQQd5DDQAQB5RAAMAfEZdu3YdnoQ5582bF/X19QIDPlFFRUWMGjUqLr744jj88MOjqKjIUgD+QV1dXbz66quJmLVLly77SwwAIH8ogAEAPoNTTjmlY3l5+W5JmPXll18WGLBVWrVqFccff3xcdNFFMWLEiCgo8C0kwN966aWXEjFnRUXFbieddFJ7iQEA5AffvQMAfAYnnnji55MwZ21tbcyfP19gwDZp06ZNjB49OsaOHasIBvgb8+fPj9ra2iSMmvnud7/7eYkBAOQH37UDAHwGn/vc5/ZLwpwLFy6Muro6gQGfyV+L4PPOOy+GDx+uCAby3ubNm2PhwoWJmLVfv37DJQYAkB98tw4AsI1atWpV2Lp1672TMKvHPwPbU6dOneLkk0+Oc889NwYNGmQhQF6bPXt2IuZs06bN3hUVFX4WCACQB1z0AQBso/PPP39gYWFheVOfs76+PubMmSMwYLvr2bNn/OQnP4nzzjsv9t5778hkMpYC5J3Zs2dHfX19k5+zqKio4vzzzx8oMQCA9FMAAwBso/3333/fJMz5+uuvR01NjcCAHaZLly4xZsyYOOecc2Lw4MEWAuSV6urqeOONNxIx64EHHriPxAAA0k8BDACwjbp27ZqIxz/PnTtXWMBO0bt37zjttNPinHPOif79+1sIkDeScr3VvXv3vaUFAJB+CmAAgG0wZMiQ0srKyj2a+py5XM7jn4Gdrk+fPnHWWWfFOeecE7vttpuFAKk3e/bsyOVyTX7Oli1b7jlo0KBSiQEApJsCGABgG5x55pl7ZjKZbFOfc9myZbFu3TqBAbtEnz594uyzz44zzzwzevbsaSFAaq1bty6WL1/e5OfMZDLZs846a4jEAADSrcgKAAC23tChQ4clYc558+YJC9jlBgwYEAMGDIgFCxbE+PHjY+nSpZYCpM68efOiS5cuTX7OffbZZ5+ImC4xAID0cgcwAMA26Nix4z5JmHP+/PnCApqMAQMGxC9/+cs47bTTolu3bhYCpEpSrrs6deq0j7QAANJNAQwAsJWOOOKIlhUVFf2a+pxVVVWxaNEigQFNSiaTicGDB8e//uu/xpgxY6JDhw6WAqTCW2+9FVVVVU1+zoqKis8deuihLSQGAJBeCmAAgK108sknD46ITFOfc/78+dHY2CgwoEnKZDKx9957x4UXXhhjxoyJ9u3bWwqQaI2NjbFgwYJE/Cv4u9/97h4SAwBILwUwAMBW2n333fdMwpze/wskwV+L4AsuuCBOPvnkaNu2raUAiZWU66/BgwfvKS0AgPQqsgIAgK3Trl27wU19xlwul5Q7UAAiIqKwsDCGDx8e++yzT0ybNi0mTJgQ69evtxggURYsWBC5XC4ymab9sJgOHToMlhYAQHq5AxgAYCsMGjSotGXLlgOa+pzvvfdebNy4UWBA4hQVFcWIESPikksuidGjR0fLli0tBUiMDz/8MJYtW9bk52zZsuXA/v37l0gMACCdFMAAAFvhxz/+8aBMJtPkn6Li7l8g6f5aBI8dOzZOOOGEaNGihaUAibBw4cImP2Mmk8n+5Cc/GSAtAIB0UgADAGyFvffee88kzJmEHzwCfBrNmjWLww47LMaOHRujRo2KsrIySwGatKT8Il5SrmsBANh63gEMALAVunbtOqSpz1hfXx9vvvmmsIBUKS4ujpEjR8bBBx8czz77bDz++ONRXV1tMUCT8+abb0Z9fX0UFTXtH7t16dJlT2kBAKSTO4ABAD6lioqKgoqKikFNfc4lS5bE5s2bBQakUklJSYwcOTLGjh0bRx99dJSUeIUl0LTU1tbG0qVLm/ycLVu2HFRaWupngwAAKeQiDwDgUzr77LP7FhYWNvlnj7722mvCAlKvefPmcdRRR8Ull1wSI0eOjGbNmlkK4HpsKxQWFpafffbZvaQFAJA+CmAAgE9p//3375+EOV9//XVhAXmjvLw8Ro0aFf/+7/8eI0eOjGw2aymA67FP6fOf//xAaQEApI8CGADgU+rRo8fuTX3G2traePvtt4UF5J2KiooYNWpUXHzxxXH44Yc3+XdvAum2ePHiRLySo1evXoOkBQCQPgpgAIBPqXXr1k3+DoklS5ZEQ0ODsIC81apVqzj++OPj4osvjhEjRkRBgW97gZ2voaEhlixZ0uTnbNOmjQIYACCFfCcMAPApDBkypLR58+a9m/qcb775prAAIqJ169YxevToGDt2rCIYcF32MZo3b95n0KBBpdICAEgX3wEDAHwKp556av9MJtPkr53eeustYQH8jTZt2sTo0aPjvPPOi+HDhyuCAddlfyOTyRT84Ac/+Jy0AADSxXe+AACfwuDBg5v84/Hq6+tj0aJFwgL4CJ06dYqTTz45/u3f/i323nvvyGQylgLsUIsXL07Eqzn23HPPgdICAEgXBTAAwKfQpUuXAU19xnfeeSfq6uqEBbAFnTt3jjFjxiiCgR2utrY23n333SRc53oPMABAyiiAAQA+hZYtW/Zv6jN6/DPAp9elS5cYM2ZMnHvuuTF48GALAfL2+iwJ17kAAGwdBTAAwCcYPnx4eUlJSeemPqfHPwNsvV69esVpp50W55xzTvTvrwMB8u/6rLS0tPPw4cPLpQUAkB4KYACAT/Ctb31rt4ho8s8IXbx4sbAAtlGfPn3irLPOinPOOSd22203CwG2i4T8gl7m29/+dj9pAQCkhwIYAOAT7L777k2+CVi7dm1s2LBBWACfUZ8+feLss8+OM888M3r27GkhwGfy4Ycfxrp165r8nAMHDlQAAwCkSJEVAABsWadOnZr8D8TefvttQQFsRwMGDIgBAwbEggULYvz48bF06VJLAbb5Oq1Vq1audwEA2GkUwAAAn6CyslIBDJCnBgwYEP3794958+bFQw89FO+++66lAFtlyZIlsddeezX1613PvgcASBEFMADAFnTq1CnbvHnzXk19ziVLlggLYAfJZDIxePDg2GOPPeLll1+OBx98MFauXGkxQGqu05o3b967Xbt2RatXr66XGABA8nkHMADAFowZM6ZnJpPJNuUZGxsbPZoUYCfIZDKx9957x4UXXhhjxoyJ9u3bWwrwiZYuXRqNjY1NesaCgoLsqaee2kNaAADp4A5gAIAt2Hvvvfs29RlXrlwZtbW1wgLYSf5aBO+5554xa9asmDBhQqxevdpigI9UW1sb77//fnTu3LlJzzls2LC+EbFIYgAAyecOYACALejRo0eTL4DfeecdQQHsAoWFhTF8+PC48MILY/To0VFZWWkpQGKv15Jw3QsAwKejAAYA2ILWrVs3+ff/vvvuu4IC2IUKCwtjxIgRcckll8To0aOjZcuWlgIk7notCde9AAB8Oh4BDQCwBc2bN+/Z1GdUAAM0kW+wi4pixIgRsd9++8WUKVPiscceiw0bNlgMEO+9914SrnsVwAAAKeEOYACAj9G/f/+SkpKSjk19TgUwQNPSrFmzOOyww2Ls2LExatSoKCsrsxTIc0m4XistLe3Ut2/fYmkBACSfAhgA4GOccMIJ3Zr69dK6deuiqqpKWABNUHFxcYwcOTJ+/etfK4Ihz1VVVcX69eub+pgF3/zmN7tLCwAg+RTAAAAfY8iQIT2b+oxJeJwgQL77axE8duzYOProo6OkpMRSIA8l4botCde/AAB8MgUwAMDH6N69e8+mPqPHPwMkR/PmzeOoo46KSy65JEaOHBnNmjWzFMgjSbhuS8L1LwAAn0wBDADwMVq1atWjqc+4bNkyQQEkTHl5eYwaNSr+/d//PUaOHBnZbNZSIA8k4botCde/AAB8MgUwAMDHqKio6NXUZ1y+fLmgAJL750yMGjUqLr744jj88MOjqKjIUiDFknDd1rJly16SAgBIPgUwAMBHyGazmbKysq5NecbGxsZYtWqVsAASrlWrVnH88cfHxRdfHCNGjIiCAt+qQxqtWrUqGhsbm/SMJSUlXbPZbEZaAADJ5rtKAICPcNxxx7UrKCgobsozrl69Ourr64UFkBKtW7eO0aNHx9ixYxXBkEJ1dXXxwQcfNOkZCwoKio877rh20gIASDbfTQIAfITPf/7zXZr6jO+//76gAFKoTZs2MXr06Dj//PNj+PDhimBIkRUrVrgOBgBgh/NdJP+PvTuPr7I888d/nSwEkhD2HUQEUVRAoIiouCtq64Jabd1arVorbqO2tlXbaavTOu38Rqffdmpbu9rWpYogsqgFRXCttAIKArJDgAAJBLKQ5JzfH8WO4+DOcp6T9/v18jWvTv657ut6hNvnk/t+AICd2G+//bL+xVcSXiAC8PF17do1Lr300rj99ttj2LBhkUq5lRWSLgn7tyTsgwEAeH8FWgAA8H917txZAAxAVujevXtceeWVsXr16njiiSdi9uzZkclkNAYSKAn7tyTsgwEAeH8CYACAnWjXrp0roAHIKj169Igrr7wyli5dGpMmTYo5c+ZoCiRMEvZvSdgHAwDw/gTAAAA7UVxc3D3baxQAAzRPffr0ibFjx8aSJUti/PjxsWDBAk2BhEjC/i0J+2AAAN6fbwADAOxESUlJz2yur7q6Ourq6gwKoBnbb7/94l/+5V/ia1/7WhxwwAEaAglQV1cX1dXV9sEAAOxWAmAAgHc5/PDDSwsKCtpmc40VFRUGBUBERPTt2zduvPHGuOGGG2LffffVEMhy2b6PKygoaDt8+PASkwIASC4BMADAu5x44oldsr3GDRs2GBQA/8uAAQPiG9/4Rtxwww3Ru3dvDQH7uE+yH+5qUgAAyeUbwAAA79KvX7+sD4DXr19vUADs1IABA+LAAw+MuXPnxoQJE2LlypWaAlkkCTe5HHDAAV0i4i3TAgBIJgEwAMC7dO/evXO21+gEMADvJ5VKxaBBg2LgwIExe/bsGD9+fKxbt05jwD4uZ/bDAAC8NwEwAMC7tG/fvlO21ygABuDDSKVSMWzYsBg6dGjMnj07HnvsMbdIwF6WhBPASdgPAwDw3gTAAADv0rp166w/8ZCEF4cAZI+3g+BDDz00XnnllZg4caK/S8A+LtH7YQAA3psAGADgXUpKSrL6xENjY2Ns3rzZoAD4yPLz8+Pwww+P4cOHx/PPPx8TJ06MqqoqjYE9aPPmzdHY2BgFBdn7Wi7b98MAALw/ATAAwLu0bNmySzbXV1lZGZlMxqAA+Njy8/Nj1KhRMXLkyHjhhRcEwbAHZTKZqKqqio4dO9oPAwCwWwiAAQDepaioKKuvvKusrDQkAHaJgoKCGDVqVIwYMSJmzpwZkydPji1btmgM7IH9XDYHwNm+HwYA4P3laQEAwP8YPnx4SX5+fkk21ygABmBXa9GiRRx//PFxxx13xNlnnx0lJSWaAs14P5efn18yfPhwfxAAACSUABgA4B2OOOKIDtleo+//ArC7FBUVxejRo+P73/9+nH322VFcXKwpsBsk4cr1JOyLAQDYOQEwAMA79O3bt1221+gEMAC729tB8B133BGnn356tGrVSlOgme3n9ttvv7YmBQCQTAJgAIB36NSpkwAYAHYoKSmJz3zmM3HnnXfG6NGjo0WLFpoCzWQ/l4R9MQAAOycABgB4hw4dOrTN9hqTcGUgALmlpKQkzj777PjOd74To0aNivz8fE2BHN/PJWFfDADAzgmAAQDeoaysrG221ygABmBvad++fVx00UVx5513xgknnBCFhYWaAjm6nysrK3MCGAAgoQTAAADvUFJS0j6b68tkMlFdXW1QAOxV7dq1i/POOy+++93vxqhRoyIvz+sF+CiSsJ8rLS0VAAMAJJT/QgMAeIfi4uK22VxfXV1dNDY2GhQAWeHtE8F33HGHIBg+gsbGxqirq7MvBgBgt/BfZgAA79CqVausPung9C8A2ahDhw5x0UUXxbe//e04/PDDBcGQA/u6oqIiJ4ABABLKf5EBALxDQUGBABgAPqauXbvGpZdeGt/61rdi2LBhkUqlNAUSuq9r0aJFW1MCAEimAi0AAPgfhYWFZdlc39atWw0JgKzXrVu3uPLKK2P16tXxxBNPxOzZsyOTyWgMJGhfl+37YgAA3psAGADgnZujgoLW2VyfE8AAJEmPHj3iyiuvjKVLl8akSZNizpw5mgIJ2ddl+74YAID35gpoAIAdWrdunZefn98ym2sUAAOQRH369ImxY8fGLbfcEgMGDNAQSMC+Lj8/v1WrVq28OwQASCCbOACAHQYNGlQSEVn9scJt27YZFACJtd9++8UNN9wQX/va1+KAAw7QEJq1BOzr8gYPHlxsUgAAySMABgDY4YADDijJ9hpramoMCoDE69u3b9x4441xww03xL777qshNEu1tbVZX2P//v1LTQoAIHl8AxgAYIeePXtm/QuuJLwoBIAPa8CAATFgwICYP39+jBs3LpYvX64pNBtJ2Nf16NGjxKQAAJJHAAwAsEOnTp0EwACwFwwYMCAOPPDAmDt3bkyYMCFWrlypKeS8JOzrunbtKgAGAEggATAAwA5lZWVZ/4Krrq7OoADISalUKgYNGhQDBw6M2bNnx4QJE2Lt2rUaQ85KQgDcpk0bV0ADACSQABgAYIeysjIngAFgL0ulUjFs2LAYOnRozJ49O8aPHx/r1q3TGHKOABgAgN1FAAwAsENJSUlxttfoBDAAzcXbQfCQIUPi5ZdfjokTJ0ZFRYXGkDOSEAAnYX8MAMD/JQAGANihqKioKNtrrKmpMSgAmpW8vLw4/PDDY/jw4fH888/HE088EZWVlRpD4iUhAG7RokWRSQEAJI8AGABgh8LCwhbZXF86nY7t27cbFADNUn5+fowaNSpGjhwZL7zwQkycODGqqqo0hsTavn17ZDKZSKVSWVtjixYtWpgUAEDyCIABAHbI9gC4oaHBkABo9goKCmLUqFExYsSImDlzZkyePDm2bNmiMSROJpOJhoaGyOaMtbCw0AlgAIAk/neTFgAA7NgYFRRk9QuuxsZGQwKAHVq0aBHHH398HHnkkfHMM8/E1KlTY9u2bRpDomR7AJzt+2MAAN5jH6cFAAA7NkZZ/oLL9c8A8H8VFRXF6NGj49hjj41nnnkmpkyZEjU1NRpDImT7DS8FBQWugAYASCABMADA2xujLH/B5QpoAHhvbwfBRx11VEyfPj2efvrpqK2t1RiymgAYAIDdIU8LAAD+QQAMAMlXUlISn/nMZ+LOO++M0aNHZ/X1uiAABgBgdxAAAwDskO1XQAuAAeDDKykpibPPPjv+7d/+LUaPHh2FhYWagv3dR5Sfn9/SlAAAkkcADADw9sYoL88JYADIMa1bt46zzz47vve978UJJ5wgCMb+7iPIz8/3LwwAQAIJgAEAdkilUlm9N2psbDQkAPiY2rVrF+edd15897vfjRNOOCEKCgo0Bfu7D94f55sSAEDyCIABAHbI9gA4nU4bEgB8Qu3bt/9nEDxq1KjIy/NqBPu799kfp0wJACB5/FcOAMAOXnABQPPRoUOHuOiii+J73/ueIJi9JpPJZHuJ/sUAAEggmzgAgP+R1QFwAl4QAkDidOzYMS666KL41re+FYcffnj4fTDs796xOc7yG3IAANg5mzgAgITsjQTAALD7dOvWLS699NL41re+FcOGDRMEs0dk+xXQeXl5/kUAAEigAi0AAPiHbH/BJQAGgN2ve/fuceWVV8ayZcviiSeeiDlz5mgKzXl/5/AIAEACCYABAHbIZDJOAAMAERGx7777xtixY2PJkiUxYcKEmD9/vqZgfwwAQCIIgAEA/ocr7gCA/2W//faLG264Id56660YP358vPnmm5rCLpPtV0Cn3IUOAJBIAmAAgB2y/QVXtr8gBIBc1rdv37jxxhvjrbfeinHjxsWiRYs0hU/MFdAAANjEAQDsXln9Bs4BDADY+/r27Rs333xz3HDDDdG7d28NIdf3d75BAgCQQE4AAwDskO0nMATAAJA9BgwYEAMGDIj58+fHI488EitXrtQUcnF/5woaAIAEcgIYAGCHVCqVzvL6DAkAssyAAQPi1ltvjbFjx0bPnj01hJza32UScEc1AAD/lxPAAAD/QwAMAHysv6MHDRoUBx98cDz//PMxadKk2LRpk8aQ+P1dtv+CJAAAO+cEMADADul0dr/fEgADQHarr6+PioqK2LZtm2aQE/u7dDrtBDAAQAI5AQwA8D+cAAYAPrK6urp4+umnY9q0acJfcm1/5wQwAEACCYABAP6HEw4AwIfW0NAQ06ZNiyeffDK2bt2qIXxkCfgGsAAYACCBBMAAADtkMpmsDoDz8ny9AwCywdvB71NPPRXV1dUaQs7u7wTAAADJJAAGANgh219wCYABYO9qbGyMGTNmxJNPPhmVlZUawieWn5+f9VtkUwIASB4BMADADplMpiGb6yssLDQkANgL0ul0zJo1KyZPnhwbN27UEHaZgoLsfjXX1NTUaEoAAAncZ2oBAMA/NDY2bs/m+gTAALBnpdPpePnll2Py5Mmxdu1aDWGXa9GiRbb/O1BvSgAAySMABgDYoampSQAMAEQmk4nZs2fH448/HuXl5RpCs93fNTY2CoABABJIAAwAsENDQ0NWv+ASAAPA7vV28PvEE0/E6tWrNYTdLtuvgM72G3IAAHiPfaYWAAD8gyugAaD5mjNnTkyaNCmWLl2qGewx2X4FtAAYACCZBMAAADs0NTU5AQwAzcyCBQtiwoQJ8dZbb2kG9nfv0tDQIAAGAEggATAAwA7Z/oJLAAwAu87ChQtj/PjxsXjxYs1gr8n2K6Cz/RckAQB4j32mFgAA/EO2B8AFBQWRl5cX6XTasADgY1q+fHmMGzcu5s+frxnsVXl5eVkfAG/fvt0JYACABBIAAwDs0NDQkPUnHFq1ahXbtm0zLAD4iFauXBmPPPKI4Jes2tclYH8sAAYASCABMADADrW1tXXZXqMAGAA+mnXr1sX48eNj9uzZkclkNISs2tdlu7q6ulqTAgBIHgEwAMAOW7du3ZrtNSbhRSEAZIP169fHY489JvjFvu4TqK6u3mpSAADJIwAGANihqqpKAAwACbdhw4Z4/PHH45VXXommpiYNwb7uE6isrHT1DABAAgmAAQB22LRpU9a/4GrZsqVBAcBOVFVVxcSJE+OFF16IxsZGDSHrJSEA3rRpkxPAAAAJJAAGANhh3bp1WR8AOwEMAP/bli1bYsKECYJfEicJ+7ry8nIBMABAAgmAAQB2WLZsmSugASAhqqurY/LkyTFz5syor6/XEBInCfu6pUuXCoABABJIAAwAsMP8+fOz/gRwcXGxQQHQrNXU1MSUKVPimWeeEfySaEnY173++uu+AQwAkEACYACAHRYsWFCXyWQaUqlUYbbW2Lp1a4MCoFmqq6uLp59+OqZNmxbbtsmkSL5s39el0+mGpUuXbjcpAIDkEQADALxDU1PTtoKCgrbZWp8AGIDmZvv27TF9+vR48sknY+tWt9GSO7J9X9fU1ORfOACAhBIAAwC8Q0NDw9ZsDoBLS0sNCYDm8ndyTJs2LZ566qmorq7WEHJOtu/rGhsb/YsHAJBQAmAAgHeor6+vbNWqVc9src8JYAByXWNjY8yYMSOefPLJqKys1BByVrbv6+rr66tMCQAgmQTAAADv0NDQkNVvmgXAAOSqdDods2bNismTJ8fGjRs1hJyX7fu6bN8XAwDw3gTAAADvUFdXV5XN9ZWWlkYqlYpMJmNYAOSETCYTr732Wjz++OOxatUqDaFZSKVSUVJSktU11tbWVpkUAEAyCYABAN5h27Ztm7K5vvz8/GjVqlXU1NQYFgCJlslkYvbs2fH4449HeXm5htCstGrVKvLz87O6xq1btzoBDACQUAJgAIB3qK6u3pztNZaVlQmAAUist4PfiRMnxpo1azSEZqmsrCzra9y2bVuVSQEAJJMAGADgHaqqqjZle43t2rWLtWvXGhYAiTNnzpyYNGlSLF26VDNo1tq1a5f1NW7atMkJYACALNbQWBgFjQ0REZFKRSavMJre/pkAGADgHSoqKqqyvcYkvDAEgHdasGBBTJgwId566y3NgITs5zZs2CAABgDIYoUFDf9MejMRqab0/+S+AmAAgHdYtWpV1r/oatu2rUEBkAgLFy6M8ePHx+LFizUD3iEJAfDq1aurTAoAIJkEwAAA77BgwYKsD4CdAAYg2y1fvjzGjRsX8+fP1wzYiST8Ql8S9sUAAOycABgA4B2eeOKJjZlMpimVSuVna41OAAOQrVauXBmPPPKI4Bc+QLb/Ql8mk2l64oknNpoUAEAyCYABAN6huro6vX379g1FRUVdsrVGJ4AByDZr166NCRMmxOzZsyOTyWgIJHw/t3379g3V1dVpkwIASCYBMADAu9TV1a0XAAPAB1u/fn089thjgl/Isf1cXV3delMCAEguATAAwLvU1dVVtGnTJmvrKykpiRYtWsT27dsNC4C9oqKiIiZOnBivvPJKNDU1aQh8BEVFRVFcXJz1+2GTAgBILgEwAMC7bN26dV2XLll7ADhSqVR07Ngx1qxZY1gA7FFVVVUxceLEeP755wW/8DF17NgxUqlU1u+HTQoAILkEwAAA71JVVZX1Jx46deokAAZgj9m8eXM8/vjj8cILL0RjY6OGwCfcx9kPAwCwOwmAAQDeZf369Vn/zbMkvDgEIPm2bNkSU6ZMiZkzZ0Z9fb2GwC7QsWNH+2EAAHYrATAAwLusXr066088JOHFIQDJVVNTE1OmTIlnnnlG8Au7WBJ+kW/VqlUCYACABBMAAwC8y9///ves/+aZABiA3aG2tjYmT54czz77bNTV1WkINNN93KuvvioABgBIMAEwAMC7PPzww+t//OMfN6RSqcJsrbFz584GBcAus3379pg+fXpMnTo1tm3bpiGwG2X7CeB0Ot3w8MMPC4ABABJMAAwA8C7V1dXpurq68latWu2TrTV26NAh8vLyIp1OGxgAH1tDQ0NMmzYtnnrqqaiurtYQ2M3y8vKiQ4cOWV1jfX39mtraWptMAIAEEwADAOxEbW3tmmwOgAsKCqJdu3axceNGwwLgI2tsbIwZM2bEk08+GZWVlRoCe0j79u2joCC7X8fV1NSUmxQAQLIJgAEAdmLz5s2r2rdvn9U1duvWTQAMwEeSTqdj1qxZMXnyZH+HwF7av2W7LVu2rDQpAIBkEwADAOzEpk2bVvfp0yera+zWrVvMmzfPsAD4QG8Hv1OmTIkNGzZoCOzF/Vu227BhwxqTAgBINgEwAMBOrFixYvWwYcOyusYkvEAEYO/KZDLx0ksvxZQpU6K83K2usLd17do162tctWrVKpMCAEg2ATAAwE7Mnz9/9ZgxY7K6xiS8QARg78hkMjF79uyYOHFirFnjMB9kiyT8At+8efP8oQEAkHACYACAnRg3btyab37zm5mISGVrjU4AA7Azc+bMiSeeeCKWLVumGZBlEvALfJlx48atNikAgGQTAAMA7MTrr79e29DQsKmwsLBDttZYXFwcZWVlsWXLFgMDIBYsWBDjx4+PJUuWaAZkobKysiguLs7qGhsaGjYuWLCgzrQAAJJNAAwA8B62bt26vF27dh2yucauXbsKgAGauYULF8b48eNj8eLFmgFZLAm3t2zbtm25SQEAJJ8AGADgPVRVVS1t167d0GyusWfPnrFw4ULDAmiGli1bFo899ljMnz9fMyABevbsmfU1VlZWLjUpAIDkEwADALyHdevWLevTp09W15iEF4kA7ForVqyIRx99VPALCZOEfdvatWuXmRQAQPIJgAEA3sPChQuXHX744VldY69evQwKoJlYtWpVjB8/PubOnRuZTEZDIGGSsG9buHDhMpMCAEg+ATAAwHuYNm3a0ksuuSSra+zevXvk5+dHU1OTgQHkqHXr1sX48eNj9uzZgl9IqIKCgkR8A/jpp59eZloAADmw/9QCAICde+ihhzbcd999W/Pz80uzdjNXUBBdunSJNWvWGBhAjqmoqIiJEyfGyy+/HOl0WkMgwbp27RoFBdn9Gq6xsbH6kUce2WBaAADJJwAGAHgf27ZtW15WVnZwNtfYq1cvATBADqmqqoqJEyfG888/74YHyBFJ+P7vtm3blpsUAEBuEAADALyPLVu2LMv2ALhnz57x0ksvGRZAwm3evDkef/zxeOGFF6KxsVFDIIck4fu/W7ZsWWpSAAC5QQAMAPA+1q9fvyzbT2z06NHDoAASbMuWLTFlypSYOXNm1NfXawjkoCTs19avX7/MpAAAcoMAGADgfSxYsGDh0KFDs7rGfffdN1KpVGQyGQMDSJCampqYMmVKPPPMM4JfyGGpVCr23XffrK9z/vz5C00LACA3CIABAN7Ho48++uYFF1yQ1TWWlJRE586dY926dQYGkAC1tbUxefLkePbZZ6Ourk5DIMd17do1WrVqlfV1/vnPf15kWgAAuUEADADwPiZNmlRVX1+/oaioqGM217nvvvsKgAGy3Pbt22P69OkxderU2LZtm4ZAM9GnT5+sr7G+vr7iySefrDItAIDcIAAGAPgAW7duXZTtAXCfPn3ipZdeMiyALNTQ0BDTpk2Lp556KqqrqzUEmpkkXP+8detWp38BAHKIABgA4ANUVFQs7NChw8hsrjEJLxYBmpvGxsaYMWNGPPnkk1FZWakh0EwlYZ9WUVHh+78AADlEAAwA8AGWLl266MADD8zqGnv16hUFBQXR2NhoYAB7WTqdjlmzZsWkSZNi06ZNGgLNWGFhYfTs2TMR+13TAgDIHQJgAIAPMHPmzEWnnnpqdm/qCgqiZ8+esWzZMgMD2EveDn4nT54cGzdu1BAg9tlnn8jPz0/CfnexaQEA5I48LQAAeH+//OUvV6bT6bpsr7NPnz6GBbAXZDKZePHFF+O73/1u3H///cJf4J+ScP1zOp2u++Uvf7nStAAAcocTwAAAH6C6ujpdXV29uE2bNodkc539+vWL6dOnGxjAHpLJZGL27NkxceLEWLNmjYYAO92fJWCvu7i6ujptWgAAuUMADADwIWzYsGFetgfA/fv3NyiAPeTVV1+NSZMmxapVqzQD2KlUKpWI/dmGDRvmmhYAQG4RAAMAfAiLFy9+o2/fvlldY1lZWXTu3DnWr19vYAC7yYIFC2L8+PGxZMkSzQDeV5cuXaK0tDQJ+9z5pgUAkFsEwAAAH8JTTz31+ujRo7O+zv33318ADLAbLFy4MMaPHx+LFy/WDOBD78uSYMqUKa+bFgBAbsnTAgCAD/aLX/xiTWNjY1W215mUF40ASbFs2bK4++674z/+4z+Ev8BHkoTv/zY0NFTee++9q00LACC3OAEMAPAhNDQ0ZDZv3jy/Q4cOI7O5TgEwwK6xYsWKePTRR2P+fDejArm7L9uyZYs/5AAAcpAAGADgQ1q3bl3WB8AdO3aMNm3axObNmw0M4GNYtWpVjB8/PubOnRuZTEZDgI+lbdu20aFDh0Tsb00LACD3CIABAD6kefPmzTvooIOyvs4DDzwwXnrpJQMD+AjWrVsX48ePj9mzZwt+gV2yH0uCuXPnzjMtAIDcIwAGAPiQ/vznP88/77zzsr7OAw44QAAM8CFVVFTEuHHjBL/ALt+PJcHDDz/sBDAAQA4SAAMAfEgTJ06srK2tXdGqVat9srnOgw8+2LAAPkBVVVVMnDgxnn/++WhqatIQYJdKwq0xNTU1yydNmlRlWgAAuUcADADwEWzYsOHvvXr1yuoAuG3bttG1a9dYu3atgQG8y+bNm+Pxxx+PF154IRobGzUE2OW6desWbdu2TcS+1rQAAHKTABgA4CNYuHDha7169Toj2+scMGCAABjgHbZs2RJTpkyJ5557LrZv364hwG6TlO//Lly48O+mBQCQmwTAAAAfwcSJE/9+wgknZH2dBx54YEyfPt3AgGavpqYmpkyZEs8880zU19drCLDbDRgwIBF1jh8//u+mBQCQmwTAAAAfwb333rv6Bz/4wfqioqLO2VznAQccEHl5eZFOpw0NaJZqa2tj8uTJ8eyzz0ZdXZ2GAHtEXl5e9O/fP+vrrK+vX3ffffeVmxgAQG4SAAMAfESVlZVzu3btmtXHgFu1ahX77LNPLFu2zMCAZqWuri6efvrpmDZtWmzbtk1DgD1qn332iVatWmV9nZs2bZpjWgAAuUsADADwES1dunR2tgfAERGDBg0SAAPNRkNDQ0ybNi2eeuqpqK6u1hBgr+2/kuCtt976m2kBAOQuATAAwEc0ffr0v48cOTLr6xw4cGBMmDDBwICc1tDQEM8991w8+eSTUVlZqSHAXt9/JcG0adP+bloAALlLAAwA8BH9x3/8x9JbbrmlOj8/v3U219mrV68oKyuLLVu2GBqQc9LpdMyaNSsmTZoUmzZt0hBgrysrK4tevXplfZ2NjY1b7rnnnmUmBgCQuwTAAAAfUW1tbXrDhg1/7dKly3HZXGcqlYqBAwfGrFmzDA3IGW8Hv5MnT46NGzdqCJA1Bg4cGKlUKuvr3Lhx4yu1tbVpEwMAyF0CYACAj+Gtt956JdsD4IgQAAM5I51Ox8svvxxTpkyJ8vJyDQGyct+VBIsWLXrFtAAAcpsAGADgYxg/fvwrRxxxRNbXedBBB0VBQUE0NjYaGpBImUwmZs+eHRMnTow1a9ZoCJCVCgoK4qCDDkpErY888ogAGAAgx+VpAQDAR/fjH/94ZX19/fpsr7OoqCj69etnYEAivfrqq3HHHXfEz3/+c+EvkNX69esXRUVFWV9nXV1d+b333rvaxAAAcpsTwAAAH9OGDRte6dGjx6ezvc5BgwbFggULDAxIjCVLlsSECRNi/vz5mgEkwuDBgxNR5/r1653+BQBoBgTAAAAf07x5815OQgA8bNiwePjhhyOTyRgakNXefPPNmDBhQixevFgzgMRIpVIxdOjQRNQ6d+7cl0wMACD3CYABAD6m++677+XRo0dnIiKVzXW2bds2evfuHcuWLTM0ICstW7YsHnvsMSd+gUTq06dPtG3bNgmlpu+9996/mhgAQO4TAAMAfEwTJ06s3Lp165LS0tK+2V7rkCFDBMBA1lmxYkU8+uijgl8g0YYMGZKIOqurqxc+/fTTm00MACD3CYABAD6B8vLyl/fff/+sD4AHDx4c48aNMzAgK6xcuTImTJgQc+fOdT09kHhJ+f7vmjVrfP8XAKCZEAADAHwCM2fOfG7//ff/fLbX2a1bt+jWrVuUl5cbGrDXrFu3LsaPHx+zZ88W/AI5oWfPntGlS5dE1DpjxoznTAwAoHkQAAMAfAK33Xbba5dcckl1fn5+62yvdciQIQJgYK9Yv359PPbYY4JfIOck5frnxsbGzbfddts8EwMAaB4EwAAAn0BlZWXThg0b/tqlS5fjsr3WQw89NCZNmmRowJ78MzKeeOKJeP7556OpqUlDgJxz6KGHJqLOioqKV6qrq9MmBgDQPAiAAQA+oXnz5s1MQgDcu3dv10ADe0RVVVVMnDgxXnjhhWhsbNQQICd17949evbsmZT9quufAQCakTwtAAD4ZP77v/97VkQk4kTFpz71KQMDdpstW7bEQw89FLfffns899xzwl8gpw0fPjwRdWYymfTdd9/9gokBADQfTgADAHxCkyZNqtqyZcuCsrKyg7K91uHDh8fjjz9uaMAuVVNTE1OmTIlnnnkm6uvrNQTIealUKg477LBE1Lply5bXp0+fvsXUAACaDwEwAMAusHz58lkDBw7M+gC4S5cu0atXr1i5cqWhAZ9YbW1tTJ48OZ599tmoq6vTEKDZ6N27d3Ts2DEx+1QTAwBoXgTAAAC7wLPPPvvCwIEDr0hCrcOGDRMAA59IXV1dPP300zFt2rTYtm2bhgDNzrBhwxJT61/+8pcXTQwAoHnxDWAAgF3g1ltvnV9fX782CbUefvjhkUqlDA34yBoaGmLq1Klx6623xuOPPy78BZqlJF3/XFdXt/rWW29dYGoAAM2LE8AAALtAQ0NDZs2aNc/16dPns9lea7t27aJPnz6xZMkSgwM+7J9xMW3atHjqqaeiurpaQ4Bmbb/99ou2bdsmotbVq1fPNDEAgOZHAAwAsIs8++yz05IQAEdEHHHEEQJg4AOl0+mYNWtWTJo0KTZt2qQhABFx5JFHJqbW6dOnTzMxAIDmxxXQAAC7yC233PJaQ0NDZRJqHT58eLRo0cLQgJ1Kp9Px3HPPxW233Rb333+/8Bdgh6KiovjUpz6ViFobGho23HLLLXNNDQCg+XECGABgF6murk6Xl5c/t88++5yR7bW2bNkyDj300Hj55ZcNDvindDodL7/8ckyZMiXKy8s1BOBdhgwZEkVFRYmodc2aNc/V1tamTQ0AoPkRAAMA7EIvvvjiM0kIgCMiRo4cKQAGIiIik8nE7NmzY+LEibFmzRoNAXif/VNSzJo161kTAwBongTAAAC70O233/7KOeecszU/P78022sdMGBAtG/f3tWu0My9+uqrMWnSpFi1apVmALyPjh07xgEHHJCIWhsbG6u/8Y1v/NXUAACaJwEwAMAutHLlyob169fP6tat2+hsrzWVSsXhhx8ekyZNMjhohubMmROTJ0+OJUuWaAbAh3D44YdHKpVKRK3r16+fVVFR0WhqAADNU54WAADsWq+++mpirts77LDDDAyamTfffDP+/d//PX7yk58IfwE+pFQqFSNGjEhMva+88sozpgYA0Hw5AQwAsIvddNNNz5166qnV+fn5rbO91m7dukX//v1j4cKFBgc5btmyZfHYY4/F/PnzNQPgIzrggAOic+fOiai1sbFxy4033jjL1AAAmi8BMADALrZy5cqG8vLyGT179vx0Euo9+uijBcCQw5YvXx7jxo0T/AJ8wv1SUpSXlz9TXl7eYGoAAM2XABgAYDeYMWPGUxdccEEiAuAhQ4ZE69ato7q62uAgh6xcuTImTJgQc+fOjUwmoyEAH1ObNm3i0EMPTUy9zz777FOmBgDQvPkGMADAbvDVr371lYaGhk1JqLWgoCCOOOIIQ4McsW7duvj5z38ed955Z8yZM0f4C/AJjRw5MvLz8xNRa0NDw8abbrrpVVMDAGjenAAGANgNKisrm1atWjW9T58+5ySh3qOPPjqefPJJQREk2Pr16+Oxxx6L2bNn+3cZYBdJpVIxatSoxNS7cuXKadXV1WmTAwBo3pwABgDYTaZNm5aY6/c6duwYAwYMMDRIoA0bNsSvf/3r+Nd//dd49dVXhb8Au9CAAQOiY8eOian36aefftLUAAAQAAMA7CZf+9rX5tTX11ckpd6jjjrK0CBBqqqq4v77749vf/vb8eKLL0ZTU5OmAOxiRx55ZGJqra+vX/eNb3zjdVMDAMAV0AAAu0ltbW16xYoVT++///6fT0K9hx56aLRt2zaqqqoMD7LYli1bYsqUKfHcc8/F9u3bNQRgN2nbtm0MGTIkMfUuX778qdraWtc/AwDgBDAAwO70xz/+cUJSas3Pz4/jjjvO0CBL1dTUxKOPPhq33XZb/OUvfxH+Auxmxx57bOTn5yel3Myvf/3rCaYGAECEABgAYLe66667llZXV89PSr1HH310tGjRwuAgi7wd/H7jG9+IqVOnRn19vaYA7GYtWrSIo48+OjH1btmy5Y177rlnhckBABDhCmgAgN3u9ddfn3T44YcPSEKtxcXFcdhhh8XMmTMNDvayurq6ePrpp2PatGmxbds2DQHYgw477LAoKSlJTL3z5s17wtQAAHibE8AAALvZ9773vanpdLohKfWecMIJkUqlDA72koaGhpg6dWrceuut8fjjjwt/AfawVCoVJ5xwQmLqTafT27/73e8+ZXIAALzNCWAAgN1s+vTpWyoqKmZ26dIlER/Y7d69e/Tv3z/efPNNw4M9qKGhIaZNmxZPPfVUVFdXawjAXnLAAQdE9+7dE1NvRUXFczNmzPAXBwAA/+QEMADAHjBr1qxEXcuXpFMvkHTpdDqee+65uP322+PRRx8V/gLsZccff3yi6p0xY8YkUwMA4J2cAAYA2AO++tWvvnT66adXFRYWtk1CvQMHDoyOHTvGhg0bDA92k3Q6HbNmzYrJkyfHxo0bNQQgC3Ts2DEGDhyYmHobGhoqb7755pdMDgCAd3ICGABgDygvL29YsWLF1MRsEvPy4sQTTzQ42A3S6XS8+OKL8Z3vfCfuv/9+4S9AFjnppJMiLy85r8tWrFgxpaKiotHkAAB4JwEwAMAe8qtf/erRiMgkpd6jjjoqysrKDA52kUwmE6+++mp873vfi1//+texdu1aTQHIImVlZXHUUUcl6q+W//7v//6zyQEA8G4CYACAPeQ///M/l1dWVv4tKfUWFhbGMcccY3CwC7wd/P785z+PNWvWaAhAFjruuOOioCA5X0urqqqa/dOf/nS1yQEA8G4CYACAPeill14al6R6jzvuuCgqKjI4+JjmzJkTd911V/z85z+P1au9owfIVkVFRYn7xbcXXnhhnMkBALAzBVoAALDnjB079pkFCxZUFhYWtktCvSUlJXHEEUfE9OnTDQ8+gjfffDPGjx8fb731lmYAJMCRRx4ZJSUliam3oaFh0zXXXPOsyQEAsDMCYACAPai8vLxh6dKlE/v3739xUmo+8cQT49lnn410Om2A8AEWLVoUjz32WCxevFgzABIiLy8vTjzxxETVvGTJkifKy8sbTA8AgJ3ucbUAAGDP+u1vfzsxIjJJqbdjx44xdOhQg4P3sXz58rj77rvjRz/6kfAXIGGGDRsWHTp0SFLJmd/85jePmxwAAO9FAAwAsIf953/+5/JNmza9kqSaTz/99EilUoYH77Jy5cr4yU9+Et///vdj/vz5GgKQMHl5eXHGGWckquZNmza9fM8996wwPQAA3osroAEA9oKXXnpp/KmnnnpYUurt2rVrDBkyJGbPnm14EBHr1q2L8ePHx+zZsyOTyWgIQEINHTo0OnfunKiaX3jhhQkmBwDA+xEAAwDsBZdffvkzS5YsWVdUVNQlKTWfccYZ8be//U3YRbO2fv36eOyxxwS/ADkglUrF6aefnqia6+rq1lx22WXTTQ8AgPcjAAYA2AsqKyub5s+f/8ihhx56dVJq7tatm1PANFsbNmyIxx9/PF555ZVoamrSEIAc8KlPfSq6du2aqJrfeOONcdXV1WnTAwDg/fgGMADAXvL1r399XDqdrktSzb4FTHNTVVUV999/f3z729+OF198UfgLkCNSqVR8+tOfTlTN6XS69pvf/OZjpgcAwAdxAhgAYC+ZMWNG9Zo1a/7Ss2fPxLx97N69ewwcODDmzJljgOS0LVu2xIQJE+KFF16IxsZGDQHIMYceemh069YtUTWvXr36qRkzZlSbHgAAH8QJYACAvejXv/71HyMiUR8SPeuss5wCJmdt27YtHn300bjtttviueeeE/4C5KC8vLwYM2ZM0srO/OpXv/qT6QEA8KH2vFoAALD3fP/733+rqqoqUR/V7dGjR3zqU58yPHJKfX19TJ06Nb71rW/F1KlTo76+XlMActSIESOiS5cuiap506ZNf73rrruWmh4AAB+GABgAYC975plnHkpazWeccUbk5dlKkjvmzZsXjz76aGzdulUzAHJYQUFBnH766Ymre9q0aQ+aHgAAH5a3dgAAe9nYsWNn1tfXr01SzZ07d47DDjvM8ACARBk5cmR06NAhUTXX1dWtHjt27POmBwDAhyUABgDYyyorK5tee+21Pyat7jPPPDMKCgoMEABIhBYtWiTy9O/s2bP/UF1dnTZBAAA+LAEwAEAWuOqqqyY0NjZWJanm9u3bx9FHH214AEAiHHfccdGmTZtE1dzQ0LDxiiuumGh6AAB8FAJgAIAssGDBgrqFCxc+lrS6R48eHYWFhQYIAGS1li1bxsknn5y4uhcuXDhu6dKl200QAICPQgAMAJAlvv71r/8pnU7XJqnmtm3bximnnGJ4AEBWO+2006K0tDRRNTc1NdV+7Wtfe8j0AAD4qATAAABZ4umnn968fPnyxF3xN3r06GjXrp0BAgBZqUOHDnH88ccnru5ly5ZNmD59+hYTBADgoxIAAwBkkbvvvvtPmUymKUk1FxYWxumnn254AEBWOvPMMxP3yYpMJtN41113/dH0AAD4OATAAABZ5Be/+MWatWvXTkta3UcccUT06tXLAAGArNK7d+847LDDEld3eXn5X+6///51JggAwMchAAYAyDIPP/zwn5JWcyqVijPPPNPwAICsMmbMmEilUomr+8EHH/yT6QEA8HEJgAEAsszXv/71NzZs2DAraXUPHDgwDj74YAMEALLCoEGDYsCAAYmru6KiYuatt966wAQBAPi4BMAAAFlo3Lhxv01i3WPGjIm8PFtMAGDvysvLizFjxiSy9j//+c+/NUEAAD7RflgLAACyz/XXXz+nqqrqr0mru1evXnHUUUcZIACwVx1zzDHRvXv3xNW9adOmV2666aa5JggAwCchAAYAyFJ/+tOf7k1i3WPGjInS0lIDBAD2ijZt2sRZZ52VyNofeOCBe00QAIBPSgAMAJClbrrpprlJPAVcXFwcZ555pgECAHvFWWedFS1btkxc3Zs2bXrl5ptvnmeCAAB8UgJgAIAsNm7cuF8lse5Ro0ZF7969DRAA2KP69OkTI0eOTGTtjz322K9MEACAXUEADACQxcaOHTu7qqrqb0mrO5VKxfnnnx+pVMoQAYA9tv/4/Oc/n8j9R2Vl5d+uueaav5kiAAC7ggAYACDLTZ069bdJrLtv374xZMgQAwQA9ojDDjsssTeQTJ48+TcmCADAriIABgDIcpdeeumLVVVVryax9s9//vNRXFxsiADAblVaWhrnn39+Imuvqqr66+WXX/6SKQIAsKsIgAEAEuChhx76WRLrLisri9NPP90AAYDd6qyzzoqSkpIklp753e9+91MTBABgVxIAAwAkwA033DB3w4YNs5JY+3HHHRd9+vQxRABgt+jbt28cddRRiay9oqJi1te//vU3TBEAgF1JAAwAkBA///nPfxoR6aTVnUql4vOf/3zk5dl6AgC7Vn5+flx00UWRSqWSWH76F7/4xX+bIgAAu5q3cAAACXHHHXe8tW7duulJrL13795xzDHHGCIAsEudcMIJ0b1790TWXl5e/pc77rjjLVMEAGBXEwADACTI3XfffW8mk2lKYu1nnXVWtG3b1hABgF2iQ4cOcfrppyey9kwm03T33Xf/3BQBANgdBMAAAAlyzz33rCgvL386ibW3bNkyzj33XEMEAHaJc889N1q0aJHI2tesWTP1xz/+8UpTBABgdxAAAwAkzA9/+MOfZzKZhiTWPnz48Bg0aJAhAgCfyKGHHhpDhw5NZO3pdLrhBz/4wS9MEQCA3UUADACQMPfee+/qRYsWPZDU+i+++OIoKSkxSADgY2ndunVcfPHFia1/4cKFf7jvvvvKTRIAgN1FAAwAkECXXXbZrxsaGjYlsfaysjJXQQMAH9u5554bpaWliay9oaFh4+WXX/47UwQAYHcSAAMAJNDs2bNrXn311V8ntf4jjjgiDj74YIMEAD6SwYMHx+GHH57Y+l955ZX7Zs+eXWOSAADsTgJgAICEOueccx6tqalZmtT6L7roomjZsqVBAgAfSsuWLeNzn/tcYuuvqalZMmbMmMdMEgCA3U0ADACQUJWVlU3Tpk37RVLrb9++fZx++ukGCQB8KGeccUa0b98+sfU/+eST91ZXV6dNEgCA3U0ADACQYOedd960qqqqV5Ja/wknnOAqaADgAx188MFx/PHHJ7b+TZs2vXzBBRc8a5IAAOwJAmAAgIT74x//eG9EZJJYeyqVigsuuMBV0ADAe2rZsmVccMEFkUqlkrqEzP333/8zkwQAYE8RAAMAJNzNN988b9WqVU8ktf6OHTsm+nt+AMDudcEFF0THjh0TW/+KFSse//rXv/6GSQIAsKcIgAEAcsCNN974k6ampq1JrX/kyJExdOhQgwQA/pdPfepTMWLEiMTW39TUVH3zzTf/t0kCALAnCYABAHLAxIkTK//+97//KslruPDCC6OsrMwwAYCIiGjTpk18/vOfT/QaZs+efd/EiRMrTRMAgD1JAAwAkCPOPvvsh2pqapYntf7S0tK46KKLDBIAiFQqFV/84hejtLQ0sWuoqal566yzznrYNAEA2NMEwAAAOaKioqJx0qRJP07yGgYPHhwjR440TABo5o444og46KCDEr2GJ5544qeVlZVNpgkAwJ4mAAYAyCGXXHLJzIqKihlJXsMFF1wQ3bp1M0wAaKZ69uyZ+KufKyoqZnzhC1+YZZoAAOwNAmAAgBzzb//2b/ek0+ntSa2/RYsWceWVV0ZhYaFhAkAzU1hYGF/60pcSvQ9Ip9Pb/+3f/u0e0wQAYG8RAAMA5Jh777139aJFix5M8hq6d+8eZ555pmECQDNzxhlnRPfu3RO9hsWLFz947733rjZNAAD2FgEwAEAO+uxnP/vL2traRL94PPHEE2Pw4MGGCQDNxKBBg+Kkk05K9Bpqa2tXn3vuub80TQAA9iYBMABADlq8eHH9uHHj/j3Ja0ilUnHJJZdE27ZtDRQAclybNm3ikksuiVQqleh1jBs37t8XL15cb6IAAOxNAmAAgBx1+eWXv1RRUTEjyWsoLS2NL3zhC4l/GQwAvLe3f+mrdevWiV5HRUXFM5dffvlLJgoAwN4mAAYAyGE33HDDXU1NTVuTvIaDDjrI94ABIId95jOfiUMOOSTRa2hqaqq+4YYbfmiaAABkAwEwAEAOGzdu3MbZs2cn/jt0p5xyiu8BA0AOOuSQQ+LTn/504tfx17/+9efjxo3baKIAAGQDATAAQI77zGc+81B1dfXCJK8hlUrFF7/4xejQoYOBAkCO6NixY3zpS19K/KceNm/ePO+00057xEQBAMgWAmAAgBxXXV2dfuCBB34UEekkr6O4uDguvfTSyMuzhQWApMvPz4/LLrssiouLk76U9P333/+ftbW1aVMFACBbeHsGANAMXH/99XMWLVr0YNLXsf/++8e5555roACQcOedd1707ds38etYuHDhH7/61a++bqIAAGQTATAAQDNxySWX/Lyurq486es4/vjjfQ8YABJs2LBhccwxxyR+HXV1dWsuvPDC+0wUAIBsIwAGAGgmXnvttdoHHnjguxGRSfI6UqlUfOlLX4oePXoYKgAkTO/evePSSy9N/Hd/IyLzwAMPfO/111+vNVUAALKNABgAoBm5+uqr/7Z06dJHk76OoqKiGDt2bJSWlhoqACRE69at46qrrorCwsLEr2X58uXjrr766r+ZKgAA2UgADADQzJx33nn/r66ubnXS19GhQ4e4/PLLIy/PlhYAsl1eXl5cfvnl0b59+8Svpb6+ft0ll1zyE1MFACBr999aAADQvLz++uu1Dz744Pcj4VdBR0QMGDAgzjrrLEMFgCw3ZsyYOPDAA3NiLY899tgPXnnllW2mCgBAthIAAwA0Q1/5ylf+umbNmqm5sJaTTz45Dj30UEMFgCw1ZMiQOOmkk3JiLWvXrv3LpZde+oKpAgCQzQTAAADN1GWXXfYf9fX1FUlfRyqViksvvTS6d+9uqACQZXr06BFf/OIXI5VKJX4tDQ0Nm6655pofmioAANlOAAwA0EzNmDGj+oEHHvhO5MBV0C1btozrr78+2rZta7AAkCXatWsX1113XbRs2TIXlpN56KGH/nXSpElVJgsAQLYTAAMANGNf+cpX/rpkyZI/58Ja2rZtG1dffXW0aNHCYAFgL2vRokVcffXVOfPLWUuXLn30iiuueNlkAQBIAgEwAEAzd+655/6ktrZ2eS6spXfv3jlzzSQAJNXbn2fYZ599cmI9tbW1y88555wfmywAAEkhAAYAaOYWLFhQ97Of/ezbmUymMRfWM2zYsDjllFMMFgD2kk9/+tMxdOjQnFhLJpNp/NnPfvbtBQsW1JksAABJIQAGACBuvfXWBfPnz78/V9Zz5plnxuDBgw0WAPaw4cOHx2c+85mcWc/8+fN/d+utty4wWQAAkkQADABARESMGTPmvpqamrdyYS2pVCouu+yy6Nmzp8ECwB7Su3fvuPjii3PmUwxbt25ddPrpp//aZAEASBoBMAAAERGxcuXKhh/+8Ie3pdPpnLjisGXLlvEv//Iv0aVLF8MFgN2sS5cucf3110dRUVFOrKepqanmu9/97jfKy8sbTBcAgKQRAAMA8E933XXX0ueff/6eXFlPaWlpXHvttVFWVma4ALCblJWVxXXXXRclJSU5s6aZM2fe/f/+3/9bZboAACSRABgAgP/l5JNPHldeXv50rqynU6dOMXbs2Jw5kQQA2aSoqCiuueaa6NixY86sqby8/MlTTz11gukCAJBUAmAAAP6PSy655K66urq1ubKefffdN6644orIy7P9BYBdJS8vL6688sro3bt3zqyprq6u/JJLLvmh6QIAkOi9uhYAAPBus2bNqn7ooYfujIh0rqxp4MCBcd555xkuAOwi559/fhxyyCG5tKT0gw8+eOesWbOqTRcAgCTLb3tQ9NzpjndbRG15oQ4BADRTEydOXDNmzJi8Tp06Dc2VNfXp0yfy8/PjzTffNGAA+ATOOuusOOmkk3JqTa+//vp9Z5555kTTBQAgCYq7N0Ze6c5/5gQwAADv6dRTT/31li1bXs+lNZ122mlx9NFHGy4AfEzHHntsnHrqqTm1pi1btrxx2mmn/cZ0AQDIBQJgAADeU0VFReONN974jcbGxqpcWtcFF1wQRx55pAEDwEd05JFHxuc+97mcWlNjY2PVzTff/I2KiopGEwYAIBcIgAEAeF9//OMf1z/yyCPfiRz6HnAqlYqLLroohgwZYsAA8CENHTo0LrrookilUrm0rPQjjzzynfvvv3+dCQMAkCsEwAAAfKBLL730hQULFvwupzbCeXnxpS99Kfbff38DBoAPcNBBB8WXvvSlyMvLrVdJCxYs+N2ll176ggkDAJBLBMAAAHwoo0eP/mVVVdXcXFpTYWFhfOUrX4kePXoYMAC8h169esUVV1wRBQUFObWuqqqqOaNHj/6lCQMAkGsEwAAAfCgVFRWNV1111S0NDQ0bcmldJSUlcfPNN8c+++xjyADwLr17946bbropiouLc2pdDQ0NG6666qqv++4vAAC5SAAMAMCHNmHChE3333//tzKZTDqX1lVcXBzXXXdddO/e3ZABYIfu3bvHtddeG61atcqpdWUymfT999//rQkTJmwyZQAAcpEAGACAj2Ts2LGz58+f/9tcW1fr1q3juuuuiw4dOhgyAM1ehw4d4rrrrovWrVvn3Nrmz5//m7Fjx842ZQAAcpUAGACAj+y44477xaZNm17MtXW1a9cubrzxxmjXrp0hA9BstW3bNmf/Pty4ceOLxx13nO/+AgCQ0wTAAAB8ZNXV1emLL774W3V1datzbW0dO3aMG2+8Mdq0aWPQADQ7ZWVlceONN0bHjh1zbm21tbWrL7zwwturq6vTJg0AQC7Lb3tQ9NzZD9LbImrLC3UIAICdWrZsWf327dtfOvbYY0/Ny8trkUtrKykpiaFDh8Zrr70WNTU1hg1As9ChQ4f42te+Fp06dcq5tTU1NW39zne+M/bBBx9cb9IAAOSC4u6NkVe6858JgAEA+NhefPHFzYcccsiyAQMGnBgRqZzaRBcXx5AhQ4TAADQLHTt2jJtuuik6dOiQi8tLjx8//ravfvWrc0waAIBc8X4BsCugAQD4RC688MIZb7zxxm9ycW3t27ePm266KSdPQgHA2zp16pTL4W+88cYbv77wwgufM2kAAJoLATAAAJ/YqFGjfrFhw4aZubi2t0Pgzp07GzQAOadz585x0003Rfv27XNyfRs2bJg5atSo+0waAIDmRAAMAMAnVltbm77sssu+V1dXtzoX19euXbu44YYbomPHjoYNQM7o0KFDXH/99dGuXbtc3Z+s/sIXvvDd2tratGkDANCc+AYwAAC7xJIlS+oj4pVRo0admpeX1yLX1ldcXBxDhw6NuXPnxrZt2wwcgETr0qVL3HjjjTl77XNTU1P1nXfeec0f/vCHdaYNAEAuer9vAAuAAQDYZWbNmlXVo0ePuYceeujoVCqVn2vra9WqVYwYMSIWLVoUlZWVBg5AIu23335x0003RVlZWU6uL51ON/z617++4fbbb3/TtAEAyFUCYAAA9phJkyatPeqoozbsu+++R+fi+goLC2P48OGxbNmy2LBhg4EDkCgDBgyIa6+9Nlq1apWza5w2bdq/XXLJJc+ZNgAAuez9AmDfAAYAYJc77bTTHn/rrbcezNX1FRUVxTXXXBNDhgwxbAASY8iQIXHNNddEUVFRzq5xwYIFvzv99NOfMG0AAJozATAAALvFEUcccc+GDRtm5ur6CgoK4sorr4wjjjjCsAFIwt/LceWVV0ZBQUHOrrG8vPypESNG/LdpAwDQ3AmAAQDYLaqrq9MXXXTRd2pra1fk7GY6Ly8uvvjiOPLIIw0cgKw1atSouPjiiyMvL3dfA23dunXxZz/72e83NDRkTBwAgObON4ABANhtli9fvr2mpuaFY4899uT8/PyWubjGVCoVgwYNikwmE4sWLTJ0ALLK6aefHueee26kUqmcXWN9fX3FDTfccM3UqVOrTBwAgObi/b4BLAAGAGC3evnll7cUFBS8cMQRR4zOy8trkYtrTKVSccABB0SnTp1i7ty5kck4fATA3lVYWBhXXHFFHHPMMTm9zsbGxuo777zzKz/72c9WmzoAAM2JABgAgL1qxowZlb169Xp98ODBJ6dSqfxcXWfPnj2jb9++8fe//z0aGxsNHoC9olWrVnH11VfHwIEDc3qd6XS64be//e2Nt9122wJTBwCguREAAwCw1z3xxBPlw4cPX9OvX79jIyJn76Hs2LFjDBw4MObMmRN1dXUGD8Ae1a5du7jxxhujT58+ub7U9JQpU779xS9+8XlTBwCgOXq/ADhPewAA2FPGjBkz9Y033vh1rq+zZ8+eceONN0bHjh0NHYA9pkuXLnHTTTdF9+7dc36tc+fO/eU555zzF1MHAID/SwAMAMAe9alPfernS5cufTjX19mlS5e49dZb48ADDzR0AHa7gQMHxje/+c3o1KlTzq/1rbfeemjEiBG/MnUAANg5ATAAAHvcsccee8/GjRtfyPV1FhcXx7XXXhsjRowwdAB2m8MPPzyuuuqqaNmyZc6vdePGjc8fffTR95g6AAC8NwEwAAB7XEVFReNxxx339crKyr/l+loLCgrisssui/PPPz9SqZThA7DLpFKpOP/88+PSSy+NgoKCnF/vpk2bXj7ssMNuqaysbDJ9AAB4bwJgAAD2isWLF9efddZZN1dXV7/ZHNZ7/PHHx5e//OUoKioyfAA+sRYtWsSXv/zlOP7445vFequrq98cM2bMN8rLyxtMHwAA3l9+24Oi585+kN4WUVteqEMAAOw2a9asaVi1atWs0aNHH1dQUNA619fbrVu3OOCAA2LevHlRX1/vAQDgYykrK4trrrkmDjrooGax3rq6uvKxY8de89RTT202fQAA+Ifi7o2RV7rznwmAAQDYq+bNm1ezevXqZ04++eTjCwoKSnN9ve3atYuRI0fG8uXLY+PGjR4AAD6S/v37x0033RRdu3ZtFuutr69fd9111335T3/6U4XpAwDA/xAAAwCQ1ebMmbMtlUq9fOSRR56Ul5eX83ckt2jRIkaMGBG1tbWxdOlSDwAAH8rxxx8fX/rSl5rN5wQaGxu33HXXXdf99Kc/XWn6AADwvwmAAQDIejNnzqzs2bPn64MHDz4plUrl5/p6U6lUHHLIIdGqVatYsGBBZDIZDwEAO5WXlxef/exn4/TTT49UKtUs1pxOp7f//ve//+o3vvGN1z0BAADwfwmAAQBIhEmTJpXvs88+8wYOHHhCKpUqaA5r3m+//WLAgAExd+5c3wUG4P8oKyuL6667LoYNG9Zs1pxOp7f/8Y9/vOmqq676qycAAAB2TgAMAEBiTJw4cc3BBx+85MADDzwulUrlNYc1t2/fPoYOHRqLFi2KLVu2eAgAiIiIffbZJ66//vro2bNns1lzJpNpnDBhwm1f/OIXn/cEAADAexMAAwCQKI8++ujy/fff/42DDjrohOZwHXRERHFxcRx11FHR2NgYb731locAoJkbPXp0XHHFFVFSUtJs1pxOpxsefvjhr15yySWzPAEAAPD+BMAAACTO+PHjVw0cOHDpAQcccGxzOQmcSqViwIAB0aVLl3jjjTeiqanJgwDQzBQVFcWll14aJ554YrP53m/EP07+Pv7447dffPHFMz0FAADwwQTAAAAk0iOPPLLs0EMPXbb//vs3mxA4IqJHjx4xZMiQePPNN2Pr1q0eBIBmonv37vEv//IvccABBzSrdWcymaYnnnji9s997nPPeAoAAODDEQADAJBYDz/88NJjjjlmY+/evY+KiGZzFKq0tDSGDx8eq1evjvXr13sQAHLcwIED45prrol27do1t6VnZsyY8YOzzjprqqcAAAA+PAEwAACJdv/99795zDHHVO6zzz5HRDMKgVu0aBGHHXZYtGzZMhYuXBjpdNrDAJBjCgoK4pxzzonzzz8/WrRo0dyWn37uuefuOuWUUyZ4EgAA4KMRAAMAkHi///3v5w8bNmxF3759j2lO10GnUqno27dvDB06NBYvXhxbtmzxMADkiJ49e8YNN9wQgwcPblbf+434x7XPU6ZM+fbpp58+2ZMAAAAfnQAYAICc8OCDDy4ZNmzYin79+jWrEDgionXr1nHEEUdEfX19LF261MMAkGCpVCpOOOGEuOKKK6JNmzbNbv07wt9vnXPOOX/xNAAAwMcjAAYAIGc89NBDS4YNG7a8X79+xza3EDg/Pz8OPvjg6NWrV8yfPz8aGho8EAAJU1JSEpdffnmccMIJkZ+f3+zWn8lkGp944olvffazn53maQAAgI9PAAwAQE556KGHlo4cOXJdnz59RqWa252ZEdG1a9cYNmxYLFu2LCorKz0QAAnRt2/fuO6662K//fZrluvPZDLpp59++rvnnHPO054GAAD4ZATAAADknD/96U+LDj300KX7779/s7sOOiKiuLg4jjzyyCgpKYk333wz0um0hwIgSxUUFMRnP/vZuPDCC6OkpKRZ9iCdTjc88sgjt5x//vnTPREAAPDJCYABAMhJDz/88NId3wQelUqlmt09mqlUKvr06RMHH3xwLFy4MLZt2+ahAMgynTt3jrFjx8bQoUOjGV5aERH/CH+feOKJ2y+88MLnPBEAALBrCIABAMhZDz300JIePXq8NmjQoGPz8vJaNMcetG3bNkaNGhVNTU2xZMkSDwVAFkilUjF69Oi48soro0OHDs22D01NTdt++9vf/stll132oqcCAAB2HQEwAAA5bdKkSeXdu3efM3jw4GYbAufn58eAAQOiV69esWDBgti+fbsHA2Avad26dVx66aVx/PHHR35+frPtQ2NjY/WvfvWrf7nuuute81QAAMCuJQAGACDnTZ48eW1jY+OMI4444uiCgoKS5tqHrl27xqhRo2Lbtm2xcuVKDwbAHpRKpWLUqFExduzY6NWrV7PuRX19/fo77rjjK9/61rcWejIAAGDXEwADANAsPP/881UbNmx45rjjjjuqsLCwrLn2obCwMAYNGhT77bdfLF68OGpraz0cALtZ+/bt44orrogTTzwxCgub9/uU2tralTfffPPVP/nJT1Z7MgAAYPcQAAMA0Gz87W9/27p27doZJ5xwwsjCwsK2zbkXnTp1ipEjR0Z1dbXTwAC70ciRI+Pqq6+OHj16NPte1NTULL/hhhuu/e1vf7vOkwEAALuPABgAgGbltdde2zpv3rynTznllKFFRUWdmnMvCgsL49BDD4399tsvFi1a5DQwwC709qnfk08+udmf+o2I2Lx587yLL774unHjxm30dAAAwO71fgFwat9zYsTOftC4LmLjq610DwCAxOrVq1fhs88++69du3Y9QTciGhoaYurUqTF58uRobGzUEICPqaCgIE499dQYPXq04HeH8vLyp4499tjvrly5skE3AABg9+swrDYKuuz8ZwJgAAByWuvWrfNeeumlm/fdd9+zdeMfVq9eHffff38sWbJEMwA+ov322y8uuugi1z2/w8KFC38/fPjwnzY0NGR0AwAA9gwBMAAAzd7zzz9/8aGHHnp1RKR0IyKTycTMmTPjz3/+c9TV1WkIwAcoKSmJ8847L0aMGBGplL9Kdki//PLL9xx77LEPagUAAOxZ7xcA+wYwAADNwn333Tfn+OOP39yrV6/DQwgcqVQqevfuHcOHD49169ZFRUWFhwTgPRxyyCExduzY6N+/v/B3h0wm0/jMM8/828knnzxONwAAYM97v28AC4ABAGg2fve7370xePDgJf369Ts6lUrl60hEcXFxjBgxInr06BFLly6N2tpaTQHYoUOHDvGFL3whzjzzzCguLtaQHZqammoeeOCBWz73uc9N1w0AANg7BMAAALDDww8/vKygoOC54cOHH1FQUFCqI//QrVu3OO6446K0tDQWL14cTU1NmgI0Wy1btoxzzjknLr300ujevbuGvENtbe2K22677arbbrvtDd0AAIC9RwAMAADv8Oyzz25avHjx0yeddNKQoqKiTjryD3l5edGnT58YOXJkbN26NVatWqUpQLNz+OGHx1e+8pUYMGBA5OXlacg7VFVV/e3CCy+8/oEHHvDdAAAA2MsEwAAA8C7z58+vefbZZ58+44wz+hcXF/fSkf/RsmXLGDJkSOyzzz6xdOnSqKmp0RQg53Xs2DG++MUvximnnBItW7bUkHdZt27dMyeffPI3Xn755W26AQAAe9/7BcCpfc+JETv7QeO6iI2vttI9AAByWmFhYer555//0sEHH3y5bvxfTU1N8fzzz8f48eOjurpaQ4Cc07p16zjzzDPjyCOPdOJ35zJ///vff3rMMcfc39DQkNEOAADIDh2G1UZBl53/TAAMAAARMWnSpM8cc8wxt6RSKdfg7ERNTU1MmTIlpk2bFg0NDRoCJF5hYWGccsopcdJJJ0VRUZGG7EQ6na6fOnXqd88555y/6AYAAGSX9wuAXQENAAAR8Yc//GHhfvvt98aAAQOOysvLkwS8S2FhYQwYMCCGDh0amzZtinXr1mkKkFiDBw+Oq666KoYOHRoFBQUashONjY1Vv//972/5whe+MEs3AAAg+/gGMAAAfAgTJkxYXV1dPf3II4/8VGFhYTsd+b9KS0vjsMMOi/79+8eaNWti8+bNmgIkRu/evePyyy+PU045JUpLSzXkPWzdunXxLbfccs33vve9hboBAADZyTeAAQDgI+jTp0+LJ5988us9evQ4TTfe3/z58+ORRx6JlStXagaQtXr16hXnnHNODBgwQDM+wKpVq5444YQTfrBy5Ur3/QMAQBbzDWAAAPgYnnnmmfOHDx9+fSqVytON95bJZGL27Nkxbty4qKio0BAga3Tu3DnOOuusGDp0aKRSKQ15/z/Lm2bNmvXDk08++THdAACA7OcbwAAA8DH85je/eX3//fd//cADDzzSd4HfWyqViu7du8cxxxwT7dq1i2XLlkV9fb3GAHtN27Zt49xzz42LL744evToIfz9AI2NjdUPPvjgLZ/97Gf/ohsAAJAMvgEMAAAf0/jx41dFxPOHHXbYiMLCwjIdeW95eXnRu3fvOOqoo6KgoCBWrlwZjY2NGgPsMcXFxXHKKafEl770pejbt2/k5bnA4YPU1tau+MEPfnD9LbfcMk83AAAgQf/94xvAAADwyQwePLjVo48++s1u3bqdpBsfTn19fTzzzDMxderU2LZtm4YAu01ZWVmceuqpceSRR0ZRkQsbPqyVK1c+/ulPf/pHixcvdm0DAAAkjG8AAwDALvLkk0+edeSRR96USqVcl/MhCYKB3eXtE7/HHnus4PcjyGQyDbNmzfoP3/sFAIDk8g1gAADYRX7/+98v6NGjx2uHHHLIyPz8fL8x+SEUFBREv3794qijjoq8vLxYtWqVq6GBT6Rly5ZxwgknxBVXXBEHHXRQFBQUaMqH1NDQsOG3v/3t1z7/+c8/oxsAAJBcroAGAIBd7Lzzzut4991339m2bdvBuvHR1NTUxLPPPhvTpk2LLVu2aAjwoZWVlcXxxx8fxxxzTBQXF2vIR1RVVfW3a6+99vZHHnlkg24AAECyuQIaAAB2g06dOhVMmzZtbN++fT8XESkd+WgaGhri+eefjyeffDI2bJBFAO/7522cdNJJccQRR0RhodvKPobMokWL/nTsscf+pLKyskk7AAAg+QTAAACwG/3hD38Ydfrpp99WUFDQRjc+unQ6Ha+++mpMnTo1Vq5cqSHAP/Xq1StOOeWUGDp0aOTl5WnIx9DY2Fg1YcKEOy666KKZugEAALlDAAwAALvZaaed1vbee+/9docOHUbqxse3fPnymDZtWrz88suRTqc1BJqhvLy8OOyww+L444+P3r17a8gnsHHjxue//OUvf3fSpElVugEAALlFAAwAAHtAYWFh6qmnnjpv+PDh16RSKXeUfgIbNmyIGTNmxHPPPRc1NTUaAs1AcXFxjBo1Ko4++ujo2LGjhnwCmUym4ZVXXvl/J5100kMNDQ0ZHQEAgNzzfgFwftuDoufOfpDeFlFb7p0VAAB8WOl0On7zm9+8Xlpa+uLgwYM/VVhYWKYrH09xcXEMGDAgjj322GjTpk2sXbs2amtrNQZyUIcOHeKMM86ISy+9NAYOHBjFxcWa8gnU1tau+slPfnLjxRdf/IybFAAAIHcVd2+MvNKd/8wJYAAA2A1OPPHENvfdd9+tnTp1Olo3PrnGxsb429/+Fs8++2wsWrRIQyAH9OvXL44++ugYNmxYFBQUaMguUFFR8cwXv/jFf5s+ffoW3QAAgNzmCmgAANhLHn744RNGjx799YKCgta6sWusX78+Zs6cGc8//3xUV1drCCRIaWlpHHnkkXHUUUdF586dNWQXaWxs3DJ16tS7PvvZz/5FNwAAoHkQAAMAwF50ySWXdP3+97//rXbt2g3VjV2nsbExXnvttXjuuedi/vz5GgJZbMCAATFq1KgYPHiw0767WFVV1atf//rXv/e73/1urW4AAEDzIQAGAIC9rF27dvlTp0699OCDD740lUrl68iutXz58nj++efj5ZdfjpqaGg2BLFBSUhLDhw+PI444Inr37q0hu1gmk2mcN2/efSeeeOJvq6urfewXAACaGQEwAABkia9//ev73Xjjjf9aWlraXzd2vXQ6HW+++WY899xz8dprr0VjY6OmwB5UUFAQgwcPjlGjRsUBBxwQeXl5mrIbVFdXL/zP//zPf/3BD36wRDcAAKB5EgADAEAWOfjgg1v9+c9/vrZ3795jIiKlI7tHZWVlvPjii/HCCy/EunXrNAR2o65du8bIkSPj8MMPj7Zt22rI7pNZunTpn88888z/t3jx4nrtAACA5ksADAAAWejuu+8eePHFF9/WqlUrd6PuZuXl5fHqq6/GSy+9FOvXr9cQ2AU6d+4cI0aMiGHDhkW3bt00ZDerqalZ9tvf/vbOm266aa5uAAAAAmAAAMhS/fr1K3r44Ycv79+//4WpVMpdqXvA8uXL46WXXoqXX345qqurNQQ+grKyshg+fHiMGDHCd333kEwmk164cOEfzj777F8sXbp0u44AAAARAmAAAMh6P/3pT4d97nOf+2bLli176Mae0dDQEHPnzo2//vWvMXfu3Ni+Xa4CO9OyZcsYNGhQDBs2LA455JAoKCjQlD2ktrZ21R//+Mc7rr322r/rBgAA8E4CYAAASIA+ffq0ePTRR69wGnjPS6fTsXTp0nj11VedDIaIaNu2bQwbNiyGDRsWffr0ibw8fyTtSZlMpuG11177+ZlnnvmnioqKRh0BAADeTQAMAAAJ8uMf//jQCy644JutWrXaRzf2vLdPBs+ePTvmzp0bdXV1mkKzUFZWFoMHD45hw4ZF//79Iz8/X1P2gpqammX333//nTfccINv/QIAAO9JAAwAAAnTrl27/HHjxp37qU996qq8vDwb870kk8nEihUrYu7cuTFnzpxYsWJFZDIZjSEnpFKp6Nu3bwwbNiwGDRoUHTt21JS9qKmpqfbVV1/92ZgxY/5cWVnZpCMAAMD7EQADAEBCffnLX+5x++23f7V9+/aH68bet2XLlnjjjTdizpw5MW/evKivr9cUEqVly5Zx8MEHx6BBg+KQQw6J0tJSTckCGzdufPG73/3uv//iF79YoxsAAMCHIQAGAIAEKywsTE2cOPGMkSNHXlNQUNBaR7JDXV1dvPnmm/HGG2/EG2+8EevXr9cUslKXLl3ioIMOioMOOigOOOCAKCoq0pQs0djYuGXmzJk/PvPMMyc2NDS4XgAAAPjQBMAAAJADjjzyyNY/+9nPrujbt++5EZGnI9mluro6Fi5cGPPnz4958+ZFZWWlprBXtGvXLg455JAYMGBA9O/fP1q39nsjWSj91ltv/fmqq676xaxZs6q1AwAA+KgEwAAAkEN++ctfjhgzZsyNrVq16q0b2SmdTsfKlStj0aJFsXDhwli8eHFs27ZNY9gtSkpKol+/ftG/f//Yf//9o1evXpGX53dEslVNTc3yRx999EdXXnnlK7oBAAB8XAJgAADIMd26dSt8+OGHPzd48ODL8vPzbdyzXCaTiTVr1sTChQtj0aJFsWjRotiyZYvG8LGUlZVF//79/xn6du/ePVKplMZkuaampprXXnvtV2PGjHmgoqKiUUcAAIBPQgAMAAA56rjjjiv7r//6r8tdC508mzdvjuXLl8eKFSti+fLlsXjx4qipqdEY/pfi4uLo169f9O7dO/bZZ5/Yd999o6ysTGMSJJPJpJcsWfLn66677pfTp0/3mx8AAMAuIQAGAIAc99Of/nTIueeee3NpaWlf3UimxsbGWLlyZSxdujSWLVsWy5cvj3Xr1kUmk9GcZiKVSkWXLl1in332iT59+kSfPn2iV69eUVBQoDkJtXXr1sUPPvjgj6699tq/6wYAALArCYABAKAZaNeuXf64cePOGTp06BUFBQWtdST56uvrY+XKlf88KbxixYpYu3ZtpNNpzUm4vLy86Nq1a+yzzz7//KdXr17RsmVLzckBjY2NW/7617/+4pxzznm0srKySUcAAIBdTQAMAADNyIknntjmnnvuuXzfffcdk0qlHB3MMdu3b481a9bEmjVrYu3atbF27dooLy+PDRs2CIazUF5eXnTs2DG6desWXbt2jW7dukW3bt2iR48eUVhYqEE5JpPJNC5ZsuRR1z0DAAC7mwAYAACaoa9+9av7Xnfdddd16NDhCN3IfY2Njf8MhNetWxfr1q2LioqKWLduXWzbtk2DdrPS0tLo3LnzP//p0qVLdO3aNbp27eoK52Ziw4YNM//rv/7rxz/60Y+W6wYAALC7CYABAKAZ++UvfznirLPOuq64uNj3gZupmpqaWL9+/T//qaioiMrKyqisrIxNmzZFY2OjJn2AgoKCaN++fbRr1y7at28fHTt2jC5dukSnTp2ic+fOUVxcrEnN1NatW98aP378PVdcccXLugEAAOwpAmAAAGjm2rVrl//ggw+eOWLEiCsLCwvb6gjvtHnz5n+GwZs2bYrKysqorq6OLVu2xJYtW6K6ujqqq6sjk8nk3NpTqVS0bt06WrduHWVlZdGmTZsoLS39X2Fvu3btok2bNh4U/peGhobKl1566efnnHPO+OrqavevAwAAe5QAGAAAiIiIoUOHFt97770XHHjggRfk5+c7ssiHlk6n/xkEV1dXR01Nzfv+k8lkora2NtLpdNTX10dTU1PU1dXt0u8U5+XlRcuWLSM/Pz+KiooiLy8vWrVqFalUKoqLi3f6T0lJSbRq1eqfgW9paWnk5eUZMB9aU1NTzYIFC/745S9/+Y+zZ8+u0REAAGBvEAADAAD/y2mnndb2rrvuurRPnz5n5+XlFeoIe9LbgfDbtm/f/r7XUBcUFESLFi3++b/fDnxhT8pkMg1LliwZd8stt/xq0qRJVToCAADsTQJgAABgp0477bS2d95554X777//5wTBAP9XJpNpWLhw4QO33nrrHwS/AABAtni/ADi/7UHRc2c/SG+LqC33/gcAAHLZokWL6u69995X0un0swcddFCnkpKS3roC8A8VFRUz/7//7/+77aKLLpq6aNGiOh0BAACyRXH3xsgr3fnPBMAAAEDMnDmz8u67736qqalpWr9+/Ypbt27dN5VKpXQGaG4ymUx6zZo1U+65555/Peeccx6cOXNmpa4AAADZRgAMAAB8KDNnzqz88Y9//Gw6nZ4uCAaak7eD37vvvvtfzz///McEvwAAQDYTAAMAAB+JIBhoLgS/AABAEgmAAQCAj+XtILisrOyFvn37diwuLu4VEYJgIBdkKioqnrv33nu/PWbMmEcEvwAAQJK8XwCc2vecGLGzHzSui9j4aivdAwAA/unqq6/u8ZWvfOX8Pn36nJWXl9dCR4CkSafT9UuXLh3/X//1Xw/84he/WKMjAABAEnUYVhsFXXb+MwEwAADwkZ1xxhntb7/99rMPPPDA8/Pz81vrCJDtmpqaqhcsWPDgd77znUcmTpzotC8AAJBoAmAAAGC3GD58eMkPf/jDzwwePPjioqKijjoCZJv6+voNr7322u9vvPHGx2fPnl2jIwAAQC4QAAMAALvV0KFDi++5556zDjnkkPOKioq66giwt9XV1a19/fXXH7z++uvHC34BAIBcIwAGAAD2iFatWuXdc889w0455ZTzO3bseJSOAHtYZsOGDbOmTJny4PXXX/9qbW1tWksAAIBcJAAGAAD2uH/913/tf/7555/dq1ev0/Ly8lroCLC7pNPp+pUrV05+4IEHHvnOd76zSEcAAIBcJwAGAAD2mjPOOKP97bfffvYBBxzw2YKCgjY6AuwqjY2NVW+++eafv/e97z06YcKETToCAAA0FwJgAABgrxs+fHjJ97///dGDBg0aU1paur+OAB9XdXX1wtdee+3Rr371q1Nfe+21Wh0BAACaGwEwAACQVb761a/ue8EFF3y6b9++ZxUUFLTWEeCDNDY2bnnrrbfG/+EPf5j4ox/9aLmOAAAAzZkAGAAAyEpDhw4t/sEPfnDy4MGDz27dunV/HQHerbq6+s2XX375weuuu+7ppUuXbtcRAAAAATAAAJDlCgsLU3ffffeQ0aNHn9G1a9fj8vLyinQFmq90Ol1XXl4+bcqUKROuvfbav+sIAADA/yYABgAAEqNPnz4t/v3f/33UyJEjz2rfvv2nIiKlK9AsZDZt2vTXF1544bGvfe1rzzntCwAA8N4EwAAAQCJddNFFXa6++uqTDzzwwLNbtmzZTUcg99TV1a1ZsGDBuJ/+9KdP3n///et0BAAA4IMJgAEAgETr1q1b4d13333k4YcffmqHDh2OyMvLK9QVSK50Ot2wcePGWbNmzZp8/fXXz6qoqGjUFQAAgA9PAAwAAOSMo48+uvWtt956/CGHHHJKu3btBkdEnq5AIqQrKytfmzdv3uQ777xz+owZM6q1BAAA4OMRAAMAADnpuOOOK/vGN75x/CGHHHJa27ZtB4bvBUO2yVRVVc2dN2/epO9///vTpk+fvkVLAAAAPjkBMAAAkPNuu+22vmedddZJffr0Oa5Vq1a9dQT2ntra2uXLly+f/uijjz51xx13vKUjAAAAu5YAGAAAaFa+9KUvdbv44ouP7t+//wlOBsMekamqqpq7cOHCv/z+97+fcd9995VrCQAAwO4jAAYAAJqtSy65pOtll112jDAYdrl0VVXVvIULF/7lV7/61bO/+93v1moJAADAniEABgAAiIirr766x/nnnz9q//33P7JNmzZDUqlUga7Ah5fJZBoqKyv/vnjx4uf+9Kc/zbr33ntX6woAAMCeJwAGAAB4l379+hV97WtfGzRy5MhRPXv2PLaoqKizrsD/VV9fv37VqlXPvPDCC8/9+7//+5zFixfX6woAAMDeJQAGAAB4H61bt8678847Bx599NFHde/efURpaen+4apomq/M1q1bF69Zs+bF5557btY3v/nNOdXV1WltAQAAyB4CYAAAgI9g8ODBrcaOHXvI8OHDD+vevfvw1q1bHxACYXJXprq6+s01a9a88sorr7z8k5/8ZN5rr71Wqy0AAADZSwAMAADwCVx//fX7nHHGGYf169dvePv27Yfm5+e31hWSrLGxsXrjxo2vvvXWWy+PHz/+lR//+McrdQUAACA5BMAAAAC70Je//OUe55xzzvA+ffoM7tix45CioqKuukI2q6+vX7t27doXFy9ePGfixImv3Xvvvat1BQAAILkEwAAAALvRl7/85R6f+cxnBvfr129Qly5dDm/ZsqVAmL2qrq5u7bp16wS+AAAAOUoADAAAsIe0atUq75prrtnn2GOPPXi//fY7uH379oeUlpb2TaVS+brDbpKuqalZtnHjxnlvvfXW3GeffXbef/3Xfy2vra1Naw0AAEBuEgADAADsRQceeGDLq6+++oAhQ4Yc3LNnz4Pbtm17sGuj+biampqqq6qqXi8vL583Z86ceb/85S/nvfjii1t1BgAAoPkQAAMAAGSZoUOHFn/xi1/cf9CgQQf26NHjwHbt2h3YqlWr3qlUKk932CFdU1OzvLKycsHq1asXzJkzZ8Gf//znJTNmzKjWGgAAgOZNAAwAAJAAxx13XNkFF1xw4MEHH3xA165dDywtLd23pKRkn1QqVag7uS2TyTRs27ZtRXV19dJ169YtfOONNxZOmDBh4YQJEzbpDgAAAO8mAAYAAEiw8847r+OJJ57Yp3///vt16dKlT5s2bfZr3bp1v/z8/GLdSZampqaa6urqxZs3b16ybt26pQsXLlzy9NNPL33ooYc26A4AAAAflgAYAAAgx7Rr1y7/kksu6TFkyJCe++67b89OnTr1Kisr61VcXNyzZcuW3VKpVL4u7R2ZTKaprq6uvKamZtWWLVtWVlRUrFy6dOnK2bNnr7r//vvXVFZWNukSAAAAn4QAGAAAoBnp1KlTwec+97luQ4cO7bnPPvv0aNeuXafWrVt3Li4u7tqyZcvORUVFnfLy8lro1MeTTqe319fXr6+rq6uoqalZW11dvb6ysnL9ihUrVr/66qurHnzwwbUVFRWNOgUAAMDuIgAGAADgfznjjDPaH3bYYZ369OnTuUuXLp3Kysral5SUtC0uLu5YVFTUrqioqG2LFi065OfnlzaXnjQ1NW3dvn37xvr6+qr6+vrKmpqaDdu2bavasmXLpnXr1lUsXbp0/Ysvvrh+4sSJlZ4gAAAA9iYBMAAAAB9Lr169CkeNGtXuoIMOatexY8ey9u3bl7Zp06Z1SUlJWXFxcetWrVq1btGiRVlRUVHrwsLC1hGRX1hYWBoR+QUFBSV5eXkFeXl5u/0/LtPpdG06nW5sbGzcFhFNDQ0NW3f83+r6+vrq7du3b6mtra2uqamp3rZtW/XmzZurN23aVL1hw4YtCxYsqJo1a1bl0qVLt5s4AAAASSAABgAAYK/q169fUffu3Vvss88+xSUlJQVv//8LCwtT3bp1+8BTxuXl5VsbGhoyb//vbdu2Na5YsaJmzZo12xcvXlyvwwAAADQn7xcAF2gPAAAAu9vixYvrdwS11boBAAAAu0+eFgAAAAAAAADkBgEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4o0AIAAAAAAACA5GhoLIyCxoaIiEilIpNXGE1v/0wADAAAAAAAAJAghQUN/0x6MxGppvT/5L6ugAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAIb/v5272ZHiusM4/FZ1NUkz9sQwOF4EyZJtpJCwysa5jSy4n1xPEqRIuQFvvfGSgIwBOzGRQAQERnx0d1UW0cgWGvKxsMGvnmfVdc7/1OJsf+oCAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoMY3JP//9K8My551lzpAk293a7QAAAAAAAAD8iIw3r+SL7TpPxuSt4/ibJJuz20QDBgAAAAAAAHhzrJPp6NvHYcyyjLl7dJTPbl/Jp6sPLufSsM+5ec7q5YOrF0OeP/SVaAAAAAAAAIA3weH7u6zfm79dWDIMSw6225w785vsx3XyzasOby5ssz69c4sAAAAAAAAAr9n69C6bC9sT93a7rKdnORin5Otxynzi1JQcfiwCAwAAAAAAALxO69O7HH68TaaT98cp85R8vbp3Nfszv8q0LHn7xMF1sjk/ZzUPmZ/MmWefhAYAAAAAAAD4oayPdjn7223Gn7x6ZrXPnetX8mBKkpv3cufDd/Pufn5FL56SzcVtNheT3dNt8tQlAwAAAAAAAHyv1sm0ySv/9XtsNWZ3I/lHkgzHi7/4XY7WYz5yiwAAAAAAAAA/Ivtcv/3nPEyS1fHa42t5+vNLyX7JoRsCAAAAAAAAePPt1/nbV3/KvePn1Xc371/NYxEYAAAAAAAA4M0yTHk2rvNo2WdzvHZqzN9v/SF3vju3evng/at5fPDLPDu1yuGyZHSVAAAAAAAAAK/XOGe4ueSvZ4e8M8xZbVe5ceuPufvy3Oqkw4+v5emDX+fuuTlLhhwsEYIBAAAAAAAAXpclGR8OuXP0TR4cPM/9z/+SRyfNDf/1TZezOp/87KdjzizJZkhO7edMy/w/nAUAAAAAAADg/zaMWcZkP8/ZLsmLacr2/MV8+cnvs/tP5/4FmLjAq1ifcioAAAAASUVORK5CYII=",
1$t=X.objectName?St(X.objectName):"Media ".concat(A._slideObjects.filter(function(mn){return mn._type===Ue.media}).length),Qt={_type:Ue.media};if(!G&&!C&&"online"!==E)throw new Error("addMedia() error: either `data` or `path` are required!");if(C&&!C.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')");if(tt&&!tt.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `cover` value lacks a base64 header! Ex: 'data:image/png;base64,iV[...]')");if("online"===E&&!se)throw new Error("addMedia() error: online videos require `link` value");if(re=X.extn||(C?C.split(";")[0].split("/")[1]:G.split(".").pop())||"mp3",Qt.mtype=E,Qt.media=G||"preencoded.mov",Qt.options={},Qt.options.x=V,Qt.options.y=he,Qt.options.w=S,Qt.options.h=Ie,Qt.options.objectName=$t,"online"===E){var zt=Qn(A);A._relsMedia.push({path:G||"preencoded"+re,data:"dummy",type:"online",extn:re,rId:zt,Target:se}),Qt.mediaRid=zt,A._relsMedia.push({path:"preencoded.png",data:tt,type:"image/png",extn:"png",rId:Qn(A),Target:"../media/image-".concat(A._slideNum,"-").concat(A._relsMedia.length+1,".png")})}else{var Lt=A._relsMedia.filter(function(dn){return dn.path&&dn.path===G&&dn.type===E+"/"+re&&!dn.isDuplicate})[0];zt=Qn(A),A._relsMedia.push({path:G||"preencoded"+re,type:E+"/"+re,extn:re,data:C||"",rId:zt,isDuplicate:!!Lt?.Target,Target:Lt?.Target?Lt.Target:"../media/media-".concat(A._slideNum,"-").concat(A._relsMedia.length+1,".").concat(re)}),Qt.mediaRid=zt,A._relsMedia.push({path:G||"preencoded"+re,type:E+"/"+re,extn:re,data:C||"",rId:Qn(A),isDuplicate:!!Lt?.Target,Target:Lt?.Target?Lt.Target:"../media/media-".concat(A._slideNum,"-").concat(A._relsMedia.length+0,".").concat(re)}),A._relsMedia.push({path:"preencoded.png",type:"image/png",extn:"png",data:tt,rId:Qn(A),Target:"../media/image-".concat(A._slideNum,"-").concat(A._relsMedia.length+1,".png")})}A._slideObjects.push(Qt)}(this,X),this},A.prototype.addNotes=function(X){return function ri(A,X){A._slideObjects.push({_type:Ue.notes,text:[{text:X}]})}(this,X),this},A.prototype.addShape=function(X,V){return In(this,X,V),this},A.prototype.addTable=function(X,V){return this._newAutoPagedSlides=function kr(A,X,V,he,S,Ie,C){var se=[A],G=V&&"object"==typeof V?V:{};if(G.objectName=G.objectName?St(G.objectName):"Table ".concat(A._slideObjects.filter(function(Qt){return Qt._type===Ue.table}).length),null===X||0===X.length||!Array.isArray(X))throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");if(!X[0]||!Array.isArray(X[0]))throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");var E=[];X.forEach(function(Qt){var zt=[];Array.isArray(Qt)?Qt.forEach(function(Lt){var mn={_type:Ue.tablecell,text:"",options:"object"==typeof Lt&&Lt.options?Lt.options:{}};"string"==typeof Lt||"number"==typeof Lt?mn.text=Lt.toString():Lt.text&&("string"==typeof Lt.text||"number"==typeof Lt.text?mn.text=Lt.text.toString():Lt.text&&(mn.text=Lt.text),Lt.options&&"object"==typeof Lt.options&&(mn.options=Lt.options)),mn.options.border=mn.options.border||G.border||[{type:"none"},{type:"none"},{type:"none"},{type:"none"}];var dn=mn.options.border;!Array.isArray(dn)&&"object"==typeof dn&&(mn.options.border=[dn,dn,dn,dn]),mn.options.border[0]||(mn.options.border[0]={type:"none"}),mn.options.border[1]||(mn.options.border[1]={type:"none"}),mn.options.border[2]||(mn.options.border[2]={type:"none"}),mn.options.border[3]||(mn.options.border[3]={type:"none"}),[0,1,2,3].forEach(function(Zn){mn.options.border[Zn]={type:mn.options.border[Zn].type||"solid",color:mn.options.border[Zn].color||"666666",pt:"number"==typeof mn.options.border[Zn].pt?mn.options.border[Zn].pt:1}}),zt.push(mn)}):(console.log("addTable: tableRows has a bad row. A row should be an array of cells. You provided:"),console.log(Qt)),E.push(zt)}),G.x=nt(G.x||(0===G.x?0:W/2),"X",S),G.y=nt(G.y||(0===G.y?0:W/2),"Y",S),G.h&&(G.h=nt(G.h,"Y",S)),G.fontSize=G.fontSize||ht,G.margin=0===G.margin||G.margin?G.margin:Ce,"number"==typeof G.margin&&(G.margin=[Number(G.margin),Number(G.margin),Number(G.margin),Number(G.margin)]),G.color||(G.color=G.color||Qe),"string"==typeof G.border?(console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"),G.border=null):Array.isArray(G.border)&&[0,1,2,3].forEach(function(Qt){G.border[Qt]=G.border[Qt]?{type:G.border[Qt].type||"solid",color:G.border[Qt].color||"666666",pt:G.border[Qt].pt||1}:{type:"none"}}),G.autoPage="boolean"==typeof G.autoPage&&G.autoPage,G.autoPageRepeatHeader="boolean"==typeof G.autoPageRepeatHeader&&G.autoPageRepeatHeader,G.autoPageHeaderRows=typeof G.autoPageHeaderRows<"u"&&!isNaN(Number(G.autoPageHeaderRows))?
1Number(G.autoPageHeaderRows):1,G.autoPageLineWeight=typeof G.autoPageLineWeight<"u"&&!isNaN(Number(G.autoPageLineWeight))?Number(G.autoPageLineWeight):0,G.autoPageLineWeight&&(G.autoPageLineWeight>1?G.autoPageLineWeight=1:G.autoPageLineWeight<-1&&(G.autoPageLineWeight=-1));var re=We;if(he&&typeof he._margin<"u"&&(Array.isArray(he._margin)?re=he._margin:isNaN(Number(he._margin))||(re=[Number(he._margin),Number(he._margin),Number(he._margin),Number(he._margin)])),G.colW){var tt=E[0].reduce(function(Qt,zt){var Lt;return null!==(Lt=zt?.options)&&void 0!==Lt&&Lt.colspan&&"number"==typeof zt.options.colspan?Qt+=zt.options.colspan:Qt+=1,Qt},0);"string"==typeof G.colW||"number"==typeof G.colW||G.colW&&Array.isArray(G.colW)&&1===G.colW.length&&tt>1?(G.w=Math.floor(Number(G.colW)*tt),G.colW=null):G.colW&&Array.isArray(G.colW)&&G.colW.length!==tt&&(console.warn("addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths."),G.colW=null)}else G.w=G.w?nt(G.w,"X",S):Math.floor(S._sizeW/W-re[1]-re[3]);G.x&&G.x<20&&(G.x=Ht(G.x)),G.y&&G.y<20&&(G.y=Ht(G.y)),G.w&&G.w<20&&(G.w=Ht(G.w)),G.h&&G.h<20&&(G.h=Ht(G.h)),E.forEach(function(Qt){Qt.forEach(function(zt,Lt){"number"==typeof zt||"string"==typeof zt?Qt[Lt]={_type:Ue.tablecell,text:String(Qt[Lt]),options:G}:"object"==typeof zt&&("number"==typeof zt.text?Qt[Lt].text=Qt[Lt].text.toString():(typeof zt.text>"u"||null===zt.text)&&(Qt[Lt].text=""),Qt[Lt].options=zt.options||{},Qt[Lt]._type=Ue.tablecell)})});var $t=[];return G&&!G.autoPage?(te(A,E),A._slideObjects.push({_type:Ue.table,arrTabRows:E,options:Object.assign({},G)})):(G.autoPageRepeatHeader&&(G._arrObjTabHeadRows=E.filter(function(Qt,zt){return zt<G.autoPageHeaderRows})),Oi(E,G,S,he).forEach(function(Qt,zt){C(A._slideNum+zt)||se.push(Ie({masterName:he?._name||null})),zt>0&&(G.y=Ht(G.autoPageSlideStartY||G.newSlideStartY||re[0]));var Lt=C(A._slideNum+zt);G.autoPage=!1,te(Lt,Qt.rows),Lt.addTable(Qt.rows,Object.assign({},G)),zt>0&&$t.push(Lt)})),$t}(this,X,V,this._slideLayout,this._presLayout,this.addSlide,this.getSlide),this},A.prototype.addText=function(X,V){return Xi(this,"string"==typeof X||"number"==typeof X?[{text:X,options:V}]:X,V,!1),this},A}();function Ae(A,X,V,he,S,Ie){var C=-1,se=1,G=null,E="";switch(A){case ue.AREA:case ue.BAR:case ue.BAR3D:case ue.LINE:case ue.RADAR:E+="<c:".concat(A,"Chart>"),A===ue.AREA&&"stacked"===V.barGrouping&&(E+='<c:grouping val="'+V.barGrouping+'"/>'),(A===ue.BAR||A===ue.BAR3D)&&(E+='<c:barDir val="'+V.barDir+'"/>',E+='<c:grouping val="'+(V.barGrouping||"clustered")+'"/>'),A===ue.RADAR&&(E+='<c:radarStyle val="'+V.radarStyle+'"/>'),E+='<c:varyColors val="0"/>
1',X.forEach(function(re){var tt;C++,E+="<c:ser>",E+='  <c:idx val="'.concat(re._dataIndex,'"/><c:order val="').concat(re._dataIndex,'"/>'),E+="  <c:tx>",E+="    <c:strRef>",E+="      <c:f>Sheet1!$"+ve(re._dataIndex+re.labels.length+1)+"$1</c:f>",E+='      <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+St(re.name)+"</c:v></c:pt></c:strCache>",E+="    </c:strRef>",E+="  </c:tx>";var $t=V.chartColors?V.chartColors[C%V.chartColors.length]:null;E+="  <c:spPr>",E+="transparent"===$t?"<a:noFill/>":V.chartColorsOpacity?"<a:solidFill>"+qt($t,'<a:alpha val="'.concat(Math.round(1e3*V.chartColorsOpacity),'"/>'))+"</a:solidFill>":"<a:solidFill>"+qt($t)+"</a:solidFill>",A===ue.LINE||A===ue.RADAR?0===V.lineSize?E+="<a:ln><a:noFill/></a:ln>":(E+='<a:ln w="'.concat(Pt(V.lineSize),'" cap="').concat(Ee(V.lineCap),'"><a:solidFill>').concat(qt($t),"</a:solidFill>"),E+='<a:prstDash val="'+(V.lineDash||"solid")+'"/><a:round/></a:ln>'):V.dataBorder&&(E+='<a:ln w="'.concat(Pt(V.dataBorder.pt),'" cap="').concat(Ee(V.lineCap),'"><a:solidFill>').concat(qt(V.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>')),E+=ye(V.shadow,kt),E+="  </c:spPr>",E+='  <c:invertIfNegative val="0"/>',A!==ue.RADAR&&(E+="<c:dLbls>",E+='<c:numFmt formatCode="'.concat(St(V.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),V.dataLabelBkgrdColors&&(E+="<c:spPr><a:solidFill>".concat(qt($t),"</a:solidFill></c:spPr>")),E+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",E+='<a:defRPr b="'.concat(V.dataLabelFontBold?1:0,'" i="').concat(V.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(100*(V.dataLabelFontSize||ht)),'" u="none">'),E+="<a:solidFill>".concat(qt(V.dataLabelColor||Qe),"</a:solidFill>"),E+='<a:latin typeface="'.concat(V.dataLabelFontFace||"Arial",'"/>'),E+="</a:defRPr></a:pPr></a:p></c:txPr>",V.dataLabelPosition&&(E+='<c:dLblPos val="'.concat(V.dataLabelPosition,'"/>')),E+='<c:showLegendKey val="0"/>',E+='<c:showVal val="'.concat(V.showValue?"1":"0",'"/>'),E+='<c:showCatName val="0"/><c:showSerName val="'.concat(V.showSerName?"1":"0",'"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>'),E+='<c:showLeaderLines val="'.concat(V.showLeaderLines?"1":"0",'"/>'),E+="</c:dLbls>"),(A===ue.LINE||A===ue.RADAR)&&(E+="<c:marker>",E+='  <c:symbol val="'+V.lineDataSymbol+'"/>',V.lineDataSymbolSize&&(E+='<c:size val="'.concat(V.lineDataSymbolSize,'"/>')),E+="  <c:spPr>",E+="    <a:solidFill>".concat(qt(V.chartColors[re._dataIndex+1>V.chartColors.length?Math.floor(Math.random()*V.chartColors.length):re._dataIndex]),"</a:solidFill>"),E+='    <a:ln w="'.concat(V.lineDataSymbolLineSize,'" cap="flat"><a:solidFill>').concat(qt(V.lineDataSymbolLineColor||$t),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'),E+="    <a:effectLst/>",E+="  </c:spPr>",E+="</c:marker>"),(A===ue.BAR||A===ue.BAR3D)&&1===X.length&&(V.chartColors&&V.chartColors!==Te&&V.chartColors.length>1||!(null===(tt=V.invertedColors)||void 0===tt)&&tt.length)&&re.values.forEach(function(Qt,zt){var Lt=Qt<0?V.invertedColors||V.chartColors||Te:V.chartColors||[];E+="  <c:dPt>",E+='    <c:idx val="'.concat(zt,'"/>'),E+='      <c:invertIfNegative val="0"/>',E+='    <c:bubble3D val="0"/>',E+="    <c:spPr>",0===V.lineSize?E+="<a:ln><a:noFill/></a:ln>":A===ue.BAR?(E+="<a:solidFill>",E+='  <a:srgbClr val="'+Lt[zt%Lt.length]+'"/>',E+="</a:solidFill>"):(E+="<a:ln>",E+="  <a:solidFill>",E+='   <a:srgbClr val="'+Lt[zt%Lt.length]+'"/>',E+="  </a:solidFill>",E+="</a:ln>"),E+=ye(V.shadow,kt),E+="    </c:spPr>",E+="  </c:dPt>"}),E+="<c:cat>",V.catLabelFormatCode?(E+="  <c:numRef>",E+="    <c:f>Sheet1!$A$2:$A$".concat(re.labels[0].length+1,"</c:f>"),E+="    <c:numCache>",E+="      <c:formatCode>"+(V.catLabelFormatCode||"General")+"</c:formatCode>",E+='      <c:ptCount val="'.concat(re.labels[0].length,'"/>'),re.labels[0].forEach(function(Qt,zt){return E+='<c:pt idx="'.concat(zt,'"><c:v>').concat(St(Qt),"</c:v></c:pt>")}),E+="    </c:numCache>",E+="  </c:numRef>"):(E+="  <c:multiLvlStrRef>",E+="    <c:f>Sheet1!$A$2:$".concat(ve(re.labels.length),"$").concat(re.labels[0].length+1,"</c:f>"),E+="    <c:multiLvlStrCache>",E+='      <c:ptCount val="'.concat(re.labels[0].length,'"/>
1'),re.labels.forEach(function(Qt){E+="<c:lvl>",Qt.forEach(function(zt,Lt){return E+='<c:pt idx="'.concat(Lt,'"><c:v>').concat(St(zt),"</c:v></c:pt>")}),E+="</c:lvl>"}),E+="    </c:multiLvlStrCache>",E+="  </c:multiLvlStrRef>"),E+="</c:cat>",E+="<c:val>",E+="  <c:numRef>",E+="<c:f>Sheet1!$".concat(ve(re._dataIndex+re.labels.length+1),"$2:$").concat(ve(re._dataIndex+re.labels.length+1),"$").concat(re.labels[0].length+1,"</c:f>"),E+="    <c:numCache>",E+="      <c:formatCode>"+(V.valLabelFormatCode||V.dataTableFormatCode||"General")+"</c:formatCode>",E+='      <c:ptCount val="'.concat(re.labels[0].length,'"/>'),re.values.forEach(function(Qt,zt){return E+='<c:pt idx="'.concat(zt,'"><c:v>').concat(Qt||0===Qt?Qt:"","</c:v></c:pt>")}),E+="    </c:numCache>",E+="  </c:numRef>",E+="</c:val>",A===ue.LINE&&(E+='<c:smooth val="'+(V.lineSmooth?"1":"0")+'"/>'),E+="</c:ser>"}),E+="  <c:dLbls>",E+='    <c:numFmt formatCode="'.concat(St(V.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),E+="    <c:txPr>",E+="      <a:bodyPr/>",E+="      <a:lstStyle/>",E+="      <a:p><a:pPr>",E+='        <a:defRPr b="'.concat(V.dataLabelFontBold?1:0,'" i="').concat(V.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(100*(V.dataLabelFontSize||ht)),'" u="none">'),E+="          <a:solidFill>"+qt(V.dataLabelColor||Qe)+"</a:solidFill>",E+='          <a:latin typeface="'+(V.dataLabelFontFace||"Arial")+'"/>',E+="        </a:defRPr>",E+="      </a:pPr></a:p>",E+="    </c:txPr>",V.dataLabelPosition&&(E+=' <c:dLblPos val="'+V.dataLabelPosition+'"/>'),E+='    <c:showLegendKey val="0"/>',E+='    <c:showVal val="'+(V.showValue?"1":"0")+'"/>',E+='    <c:showCatName val="0"/>',E+='    <c:showSerName val="'+(V.showSerName?"1":"0")+'"/>',E+='    <c:showPercent val="0"/>',E+='    <c:showBubbleSize val="0"/>',E+='    <c:showLeaderLines val="'.concat(V.showLeaderLines?"1":"0",'"/>'),E+="  </c:dLbls>",A===ue.BAR?(E+='  <c:gapWidth val="'.concat(V.barGapWidthPct,'"/>'),E+='  <c:overlap val="'.concat((V.barGrouping||"").includes("tacked")?100:V.barOverlapPct?V.barOverlapPct:0,'"/>')):A===ue.BAR3D?(E+='  <c:gapWidth val="'.concat(V.barGapWidthPct,'"/>'),E+='  <c:gapDepth val="'.concat(V.barGapDepthPct,'"/>'),E+='  <c:shape val="'+V.bar3DShape+'"/>'):A===ue.LINE&&(E+='  <c:marker val="1"/>'),E+='<c:axId val="'.concat(S,'"/><c:axId val="').concat(he,'"/><c:axId val="').concat(ct,'"/>'),E+="</c:".concat(A,"Chart>");break;case ue.SCATTER:E+="<c:"+A+"Chart>",E+='<c:scatterStyle val="lineMarker"/>',E+='<c:varyColors val="0"/>',C=-1,X.filter(function(re,tt){return tt>0}).forEach(function(re,tt){C++,E+="<c:ser>",E+='  <c:idx val="'.concat(tt,'"/>'),E+='  <c:order val="'.concat(tt,'"/>'),E+="  <c:tx>",E+="    <c:strRef>",E+="      <c:f>Sheet1!$".concat(ve(tt+2),"$1</c:f>"),E+='      <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+St(re.name)+"</c:v></c:pt></c:strCache>",E+="    </c:strRef>",E+="  </c:tx>",E+="  <c:spPr>";var $t=V.chartColors[C%V.chartColors.length];if(E+="transparent"===$t?"<a:noFill/>":V.chartColorsOpacity?"<a:solidFill>"+qt($t,'<a:alpha val="'+Math.round(1e3*V.chartColorsOpacity).toString()+'"/>')+"</a:solidFill>":"<a:solidFill>"+qt($t)+"</a:solidFill>",0===V.lineSize?E+="<a:ln><a:noFill/></a:ln>":(E+='<a:ln w="'.concat(Pt(V.lineSize),'" cap="').concat(Ee(V.lineCap),'"><a:solidFill>').concat(qt($t),"</a:solidFill>"),E+='<a:prstDash val="'.concat(V.lineDash||"solid",'"/><a:round/></a:ln>')),E+=ye(V.shadow,kt),E+="  </c:spPr>",E+="<c:marker>",E+='  <c:symbol val="'+V.lineDataSymbol+'"/>',V.lineDataSymbolSize&&(E+='<c:size val="'.concat(V.lineDataSymbolSize,'"/>')),E+="<c:spPr>",E+="<a:solidFill>".concat(qt(V.chartColors[tt+1>V.chartColors.length?Math.floor(Math.random()*V.chartColors.length):tt]),"</a:solidFill>"),E+='<a:ln w="'.concat(V.lineDataSymbolLineSize,'" cap="flat"><a:solidFill>').concat(qt(V.lineDataSymbolLineColor||V.chartColors[C%V.chartColors.length]),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'),E+="<a:effectLst/>",E+="</c:spPr>",E+="</c:marker>",V.showLabel){var Qt=xt("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");re.labels[0]&&("custom"===V.dataLabelFormatScatter||"customXY"===V.dataLabelFormatScatter)&&(E+="<c:dLbls>
1",re.labels[0].forEach(function(zt,Lt){("custom"===V.dataLabelFormatScatter||"customXY"===V.dataLabelFormatScatter)&&(E+="  <c:dLbl>",E+='    <c:idx val="'.concat(Lt,'"/>'),E+="    <c:tx>",E+="      <c:rich>",E+="            <a:bodyPr>",E+="                <a:spAutoFit/>",E+="            </a:bodyPr>",E+="            <a:lstStyle/>",E+="            <a:p>",E+="                <a:pPr>",E+="                    <a:defRPr/>",E+="                </a:pPr>",E+="              <a:r>",E+='                    <a:rPr lang="'+(V.lang||"en-US")+'" dirty="0"/>',E+="                    <a:t>"+St(zt)+"</a:t>",E+="              </a:r>","customXY"===V.dataLabelFormatScatter&&!/^ *$/.test(zt)&&(E+="              <a:r>",E+='                  <a:rPr lang="'+(V.lang||"en-US")+'" baseline="0" dirty="0"/>',E+="                  <a:t> (</a:t>",E+="              </a:r>",E+='              <a:fld id="{'+xt("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="XVALUE">',E+='                  <a:rPr lang="'+(V.lang||"en-US")+'" baseline="0"/>',E+="                  <a:pPr>",E+="                      <a:defRPr/>",E+="                  </a:pPr>",E+="                  <a:t>["+St(re.name)+"</a:t>",E+="              </a:fld>",E+="              <a:r>",E+='                  <a:rPr lang="'+(V.lang||"en-US")+'" baseline="0" dirty="0"/>',E+="                  <a:t>, </a:t>",E+="              </a:r>",E+='              <a:fld id="{'+xt("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="YVALUE">',E+='                  <a:rPr lang="'+(V.lang||"en-US")+'" baseline="0"/>',E+="                  <a:pPr>",E+="                      <a:defRPr/>",E+="                  </a:pPr>",E+="                  <a:t>["+St(re.name)+"]</a:t>",E+="              </a:fld>",E+="              <a:r>",E+='                  <a:rPr lang="'+(V.lang||"en-US")+'" baseline="0" dirty="0"/>',E+="                  <a:t>)</a:t>",E+="              </a:r>",E+='              <a:endParaRPr lang="'+(V.lang||"en-US")+'" dirty="0"/>'),E+="            </a:p>",E+="      </c:rich>",E+="    </c:tx>",E+="    <c:spPr>",E+="        <a:noFill/>",E+="        <a:ln>",E+="            <a:noFill/>",E+="        </a:ln>",E+="        <a:effectLst/>",E+="    </c:spPr>",V.dataLabelPosition&&(E+=' <c:dLblPos val="'+V.dataLabelPosition+'"/>'),E+='    <c:showLegendKey val="0"/>',E+='    <c:showVal val="0"/>',E+='    <c:showCatName val="0"/>',E+='    <c:showSerName val="0"/>',E+='    <c:showPercent val="0"/>',E+='    <c:showBubbleSize val="0"/>',E+='       <c:showLeaderLines val="1"/>',E+="    <c:extLst>",E+='      <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart"/>',E+='      <c:ext uri="{C3380CC4-5D6E-409C-BE32-E72D297353CC}" xmlns:c16="http://schemas.microsoft.com/office/drawing/2014/chart">',E+='            <c16:uniqueId val="{'.concat("00000000".substring(0,8-(Lt+1).toString().length).toString()).concat(Lt+1).concat(Qt,'}"/>'),E+="      </c:ext>",E+="        </c:extLst>",E+="</c:dLbl>")}),E+="</c:dLbls>"),"XY"===V.dataLabelFormatScatter&&(E+="<c:dLbls>",E+="    <c:spPr>",E+="        <a:noFill/>",E+="        <a:ln>",E+="            <a:noFill/>",E+="        </a:ln>",E+="          <a:effectLst/>",E+="    </c:spPr>",E+="    <c:txPr>",E+="        <a:bodyPr>",E+="            <a:spAutoFit/>",E+="        </a:bodyPr>",E+="        <a:lstStyle/>",E+="        <a:p>",E+="            <a:pPr>",E+="                <a:defRPr/>",E+="            </a:pPr>",E+='            <a:endParaRPr lang="en-US"/>',E+="        </a:p>",E+="    </c:txPr>",V.dataLabelPosition&&(E+=' <c:dLblPos val="'+V.dataLabelPosition+'"/>'),E+='    <c:showLegendKey val="0"/>',E+=' <c:showVal val="'.concat(V.showLabel?"1":"0",'"/>'),E+=' <c:showCatName val="'.concat(V.showLabel?"1":"0",'"/>'),E+=' <c:showSerName val="'.concat(V.showSerName?"1":"0",'"/>'),E+='    <c:showPercent val="0"/>',E+='    <c:showBubbleSize val="0"/>',E+="    <c:extLst>",E+='        <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',E+='            <c15:showLeaderLines val="1"/>',E+="        </c:ext>",E+="    </c:extLst>",E+="</c:dLbls>")}
11===X.length&&V.chartColors!==Te&&re.values.forEach(function(zt,Lt){var mn=zt<0?V.invertedColors||V.chartColors||Te:V.chartColors||[];E+="  <c:dPt>",E+='    <c:idx val="'.concat(Lt,'"/>'),E+='      <c:invertIfNegative val="0"/>',E+='    <c:bubble3D val="0"/>',E+="    <c:spPr>",0===V.lineSize?E+="<a:ln><a:noFill/></a:ln>":(E+="<a:solidFill>",E+=' <a:srgbClr val="'+mn[Lt%mn.length]+'"/>',E+="</a:solidFill>"),E+=ye(V.shadow,kt),E+="    </c:spPr>",E+="  </c:dPt>"}),E+="<c:xVal>",E+="  <c:numRef>",E+="    <c:f>Sheet1!$A$2:$A$".concat(X[0].values.length+1,"</c:f>"),E+="    <c:numCache>",E+="      <c:formatCode>General</c:formatCode>",E+='      <c:ptCount val="'.concat(X[0].values.length,'"/>'),X[0].values.forEach(function(zt,Lt){E+='<c:pt idx="'.concat(Lt,'"><c:v>').concat(zt||0===zt?zt:"","</c:v></c:pt>")}),E+="    </c:numCache>",E+="  </c:numRef>",E+="</c:xVal>",E+="<c:yVal>",E+="  <c:numRef>",E+="    <c:f>Sheet1!$".concat(ve(tt+2),"$2:$").concat(ve(tt+2),"$").concat(X[0].values.length+1,"</c:f>"),E+="    <c:numCache>",E+="      <c:formatCode>General</c:formatCode>",E+='      <c:ptCount val="'.concat(X[0].values.length,'"/>'),X[0].values.forEach(function(zt,Lt){E+='<c:pt idx="'.concat(Lt,'"><c:v>').concat(re.values[Lt]||0===re.values[Lt]?re.values[Lt]:"","</c:v></c:pt>")}),E+="    </c:numCache>",E+="  </c:numRef>",E+="</c:yVal>",E+='<c:smooth val="'+(V.lineSmooth?"1":"0")+'"/>',E+="</c:ser>"}),E+="  <c:dLbls>",E+='    <c:numFmt formatCode="'.concat(St(V.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),E+="    <c:txPr>",E+="      <a:bodyPr/>",E+="      <a:lstStyle/>",E+="      <a:p><a:pPr>",E+='        <a:defRPr b="'.concat(V.dataLabelFontBold?"1":"0",'" i="').concat(V.dataLabelFontItalic?"1":"0",'" strike="noStrike" sz="').concat(Math.round(100*(V.dataLabelFontSize||ht)),'" u="none">'),E+="          <a:solidFill>"+qt(V.dataLabelColor||Qe)+"</a:solidFill>",E+='          <a:latin typeface="'+(V.dataLabelFontFace||"Arial")+'"/>',E+="        </a:defRPr>",E+="      </a:pPr></a:p>",E+="    </c:txPr>",V.dataLabelPosition&&(E+=' <c:dLblPos val="'+V.dataLabelPosition+'"/>'),E+='    <c:showLegendKey val="0"/>',E+='    <c:showVal val="'+(V.showValue?"1":"0")+'"/>',E+='    <c:showCatName val="0"/>',E+='    <c:showSerName val="'+(V.showSerName?"1":"0")+'"/>',E+='    <c:showPercent val="0"/>',E+='    <c:showBubbleSize val="0"/>',E+="  </c:dLbls>",E+='<c:axId val="'.concat(S,'"/><c:axId val="').concat(he,'"/>'),E+="</c:"+A+"Chart>";break;case ue.BUBBLE:case ue.BUBBLE3D:E+="<c:bubbleChart>",E+='<c:varyColors val="0"/>',C=-1,X.filter(function(re,tt){return tt>0}).forEach(function(re,tt){C++,E+="<c:ser>",E+='  <c:idx val="'.concat(tt,'"/>'),E+='  <c:order val="'.concat(tt,'"/>'),E+="  <c:tx>",E+="    <c:strRef>",E+="      <c:f>Sheet1!$"+ve(se+1)+"$1</c:f>",E+='      <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+St(re.name)+"</c:v></c:pt></c:strCache>",E+="    </c:strRef>",E+="  </c:tx>",E+="<c:spPr>";var $t=V.chartColors[C%V.chartColors.length];E+="transparent"===$t?"<a:noFill/>":V.chartColorsOpacity?"<a:solidFill>".concat(qt($t,'<a:alpha val="'+Math.round(1e3*V.chartColorsOpacity).toString()+'"/>'),"</a:solidFill>"):"<a:solidFill>"+qt($t)+"</a:solidFill>",0===V.lineSize?E+="<a:ln><a:noFill/></a:ln>":V.dataBorder?E+='<a:ln w="'.concat(Pt(V.dataBorder.pt),'" cap="flat"><a:solidFill>').concat(qt(V.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'):(E+='<a:ln w="'.concat(Pt(V.lineSize),'" cap="flat"><a:solidFill>').concat(qt($t),"</a:solidFill>"),E+='<a:prstDash val="'.concat(V.lineDash||"solid",'"/><a:round/></a:ln>')),E+=ye(V.shadow,kt),E+="</c:spPr>",E+="<c:xVal>",E+="  <c:numRef>",E+="    <c:f>Sheet1!$A$2:$A$".concat(X[0].values.length+1,"</c:f>"),E+="    <c:numCache>",E+="      <c:formatCode>General</c:formatCode>",E+='      <c:ptCount val="'.concat(X[0].values.length,'"/>'),X[0].values.forEach(function(Qt,zt){E+='<c:pt idx="'.concat(zt,'"><c:v>').concat(Qt||0===Qt?Qt:"","</c:v></c:pt>")}),E+="    </c:numCache>",E+="  </c:numRef>",E+="</c:xVal>",E+="<c:yVal>",E+="  <c:numRef>",E+="<c:f>Sheet1!$".concat(ve(se+1),"$2:$").concat(ve(se+1),"$").concat(X[0].values.length+1,"</c:f>"),se++,E+="    <c:numCache>",E+="      <c:formatCode>General</c:formatCode>",E+='      <c:ptCount val="'.concat(X[0].values.length,'"/>
1'),X[0].values.forEach(function(Qt,zt){E+='<c:pt idx="'.concat(zt,'"><c:v>').concat(re.values[zt]||0===re.values[zt]?re.values[zt]:"","</c:v></c:pt>")}),E+="    </c:numCache>",E+="  </c:numRef>",E+="</c:yVal>",E+="  <c:bubbleSize>",E+="    <c:numRef>",E+="<c:f>Sheet1!$".concat(ve(se+1),"$2:$").concat(ve(se+1),"$").concat(re.sizes.length+1,"</c:f>"),se++,E+="      <c:numCache>",E+="        <c:formatCode>General</c:formatCode>",E+='           <c:ptCount val="'.concat(re.sizes.length,'"/>'),re.sizes.forEach(function(Qt,zt){E+='<c:pt idx="'.concat(zt,'"><c:v>').concat(Qt||"","</c:v></c:pt>")}),E+="      </c:numCache>",E+="    </c:numRef>",E+="  </c:bubbleSize>",E+='  <c:bubble3D val="'+(A===ue.BUBBLE3D?"1":"0")+'"/>',E+="</c:ser>"}),E+="<c:dLbls>",E+='<c:numFmt formatCode="'.concat(St(V.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),E+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",E+='<a:defRPr b="'.concat(V.dataLabelFontBold?1:0,'" i="').concat(V.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(100*Math.round(V.dataLabelFontSize||ht)),'" u="none">'),E+="<a:solidFill>".concat(qt(V.dataLabelColor||Qe),"</a:solidFill>"),E+='<a:latin typeface="'.concat(V.dataLabelFontFace||"Arial",'"/>'),E+="</a:defRPr></a:pPr></a:p></c:txPr>",V.dataLabelPosition&&(E+='<c:dLblPos val="'.concat(V.dataLabelPosition,'"/>')),E+='<c:showLegendKey val="0"/>',E+='<c:showVal val="'.concat(V.showValue?"1":"0",'"/>'),E+='<c:showCatName val="0"/><c:showSerName val="'.concat(V.showSerName?"1":"0",'"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>'),E+="<c:extLst>",E+='  <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',E+='    <c15:showLeaderLines val="'+(V.showLeaderLines?"1":"0")+'"/>',E+="  </c:ext>",E+="</c:extLst>",E+="</c:dLbls>",E+='<c:axId val="'.concat(S,'"/><c:axId val="').concat(he,'"/>'),E+="</c:bubbleChart>";break;case ue.DOUGHNUT:case ue.PIE:E+="<c:"+A+"Chart>",E+='  <c:varyColors val="1"/>',E+="<c:ser>",E+='  <c:idx val="0"/>',E+='  <c:order val="0"/>',E+="  <c:tx>",E+="    <c:strRef>",E+="      <c:f>Sheet1!$B$1</c:f>",E+="      <c:strCache>",E+='        <c:ptCount val="1"/>',E+='        <c:pt idx="0"><c:v>'+St((G=X[0]).name)+"</c:v></c:pt>",E+="      </c:strCache>",E+="    </c:strRef>",E+="  </c:tx>",E+="  <c:spPr>",E+='    <a:solidFill><a:schemeClr val="accent1"/></a:solidFill>',E+='    <a:ln w="9525" cap="flat"><a:solidFill><a:srgbClr val="F9F9F9"/></a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>',E+=V.dataNoEffects?"<a:effectLst/>":ye(V.shadow,kt),E+="  </c:spPr>",G.labels[0].forEach(function(re,tt){E+="<c:dPt>",E+=' <c:idx val="'.concat(tt,'"/>'),E+=' <c:bubble3D val="0"/>',E+=" <c:spPr>",E+="<a:solidFill>".concat(qt(V.chartColors[tt+1>V.chartColors.length?Math.floor(Math.random()*V.chartColors.length):tt]),"</a:solidFill>"),V.dataBorder&&(E+='<a:ln w="'.concat(Pt(V.dataBorder.pt),'" cap="flat"><a:solidFill>').concat(qt(V.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>')),E+=ye(V.shadow,kt),E+="  </c:spPr>",E+="</c:dPt>"}),E+="<c:dLbls>",G.labels[0].forEach(function(re,tt){E+="<c:dLbl>",E+=' <c:idx val="'.concat(tt,'"/>'),E+='  <c:numFmt formatCode="'.concat(St(V.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),E+="  <c:spPr/><c:txPr>",E+="   <a:bodyPr/><a:lstStyle/>",E+="   <a:p><a:pPr>",E+='   <a:defRPr sz="'.concat(Math.round(100*(V.dataLabelFontSize||ht)),'" b="').concat(V.dataLabelFontBold?1:0,'" i="').concat(V.dataLabelFontItalic?1:0,'" u="none" strike="noStrike">'),E+="    <a:solidFill>"+qt(V.dataLabelColor||Qe)+"</a:solidFill>",E+='    <a:latin typeface="'.concat(V.dataLabelFontFace||"Arial",'"/>'),E+="   </a:defRPr>",E+="      </a:pPr></a:p>",E+="    </c:txPr>",A===ue.PIE&&V.dataLabelPosition&&(E+='<c:dLblPos val="'.concat(V.dataLabelPosition,'"/>')),E+='    <c:showLegendKey val="0"/>',E+='    <c:showVal val="'+(V.showValue?"1":"0")+'"/>',E+='    <c:showCatName val="'+(V.showLabel?"1":"0")+'"/>',E+='    <c:showSerName val="'+(V.showSerName?"1":"0")+'"/>',E+='    <c:showPercent val="'+(V.showPercent?"1":"0")+'"/>',E+='    <c:showBubbleSize val="0"/>',E+="  </c:dLbl>"}),E+=' <c:numFmt formatCode="'.concat(St(V.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),E+="    <c:txPr>",E+="      <a:bodyPr/>",E+="      <a:lstStyle/>",E+="      <a:p>",E+="        <a:pPr>",E+='          <a:defRPr sz="1800" b="'.concat(V.dataLabelFontBold?"1":"0",'" i="').concat(V.dataLabelFontItalic?"1":"0",'" u="none" strike="noStrike">'),E+='            <a:solidFill><a:srgbClr val="000000"/></a:solidFill><a:latin typeface="Arial"/>',E+="          </a:defRPr>",E+="        </a:pPr>",E+="      </a:p>",E+="    </c:txPr>",E+=A===ue.PIE?'<c:dLblPos val="ctr"/>':"",E+='    <c:showLegendKey val="0"/>',E+='    <c:showVal val="0"/>',E+='    <c:showCatName val="1"/>',E+='    <c:showSerName val="0"/>',E+='    <c:showPercent val="1"/>',E+='    <c:showBubbleSize val="0"/>',E+=' <c:showLeaderLines val="'.concat(V.showLeaderLines?"1":"0",'"/>'),E+="</c:dLbls>",E+="<c:cat>",E+="  <c:strRef>",E+="    <c:f>Sheet1!$A$2:$A$".concat(G.labels[0].length+1,"</c:f>"),E+="    <c:strCache>",E+='         <c:ptCount val="'.concat(G.labels[0].length,'"/>
1'),G.labels[0].forEach(function(re,tt){E+='<c:pt idx="'.concat(tt,'"><c:v>').concat(St(re),"</c:v></c:pt>")}),E+="    </c:strCache>",E+="  </c:strRef>",E+="</c:cat>",E+="  <c:val>",E+="    <c:numRef>",E+="      <c:f>Sheet1!$B$2:$B$".concat(G.labels[0].length+1,"</c:f>"),E+="      <c:numCache>",E+='           <c:ptCount val="'.concat(G.labels[0].length,'"/>'),G.values.forEach(function(re,tt){E+='<c:pt idx="'.concat(tt,'"><c:v>').concat(re||0===re?re:"","</c:v></c:pt>")}),E+="      </c:numCache>",E+="    </c:numRef>",E+="  </c:val>",E+="  </c:ser>",E+='  <c:firstSliceAng val="'.concat(V.firstSliceAng?Math.round(V.firstSliceAng):0,'"/>'),A===ue.DOUGHNUT&&(E+='<c:holeSize val="'.concat("number"==typeof V.holeSize?V.holeSize:"50",'"/>')),E+="</c:"+A+"Chart>";break;default:E+=""}return E}function Y(A,X,V){var he="";return he+=A._type===ue.SCATTER||A._type===ue.BUBBLE||A._type===ue.BUBBLE3D?"<c:valAx>":"<c:"+(A.catLabelFormatCode?"dateAx":"catAx")+">",he+='  <c:axId val="'+X+'"/>',he+="  <c:scaling>",he+='<c:orientation val="'+(A.catAxisOrientation||"minMax")+'"/>',(A.catAxisMaxVal||0===A.catAxisMaxVal)&&(he+='<c:max val="'.concat(A.catAxisMaxVal,'"/>')),(A.catAxisMinVal||0===A.catAxisMinVal)&&(he+='<c:min val="'.concat(A.catAxisMinVal,'"/>')),he+="</c:scaling>",he+='  <c:delete val="'+(A.catAxisHidden?"1":"0")+'"/>',he+='  <c:axPos val="'+("col"===A.barDir?"b":"l")+'"/>',he+="none"!==A.catGridLine.style?be(A.catGridLine):"",A.showCatAxisTitle&&(he+=Ke({color:A.catAxisTitleColor,fontFace:A.catAxisTitleFontFace,fontSize:A.catAxisTitleFontSize,titleRotate:A.catAxisTitleRotate,title:A.catAxisTitle||"Axis Title"})),he+=A._type===ue.SCATTER||A._type===ue.BUBBLE||A._type===ue.BUBBLE3D?'  <c:numFmt formatCode="'+(A.valAxisLabelFormatCode?St(A.valAxisLabelFormatCode):"General")+'" sourceLinked="1"/>':'  <c:numFmt formatCode="'+(St(A.catLabelFormatCode)||"General")+'" sourceLinked="1"/>',A._type===ue.SCATTER?(he+='  <c:majorTickMark val="none"/>',he+='  <c:minorTickMark val="none"/>',he+='  <c:tickLblPos val="nextTo"/>'):(he+='  <c:majorTickMark val="'+(A.catAxisMajorTickMark||"out")+'"/>',he+='  <c:minorTickMark val="'+(A.catAxisMinorTickMark||"none")+'"/>',he+='  <c:tickLblPos val="'+(A.catAxisLabelPos||("col"===A.barDir?"low":"nextTo"))+'"/>'),he+="  <c:spPr>",he+='    <a:ln w="'.concat(A.catAxisLineSize?Pt(A.catAxisLineSize):B,'" cap="flat">'),he+=A.catAxisLineShow?"<a:solidFill>"+qt(A.catAxisLineColor||Pe.color)+"</a:solidFill>":"<a:noFill/>",he+='      <a:prstDash val="'+(A.catAxisLineStyle||"solid")+'"/>',he+="      <a:round/>",he+="    </a:ln>",he+="  </c:spPr>",he+="  <c:txPr>",he+=A.catAxisLabelRotate?'<a:bodyPr rot="'.concat(fn(A.catAxisLabelRotate),'"/>'):"<a:bodyPr/>",he+="    <a:lstStyle/>",he+="    <a:p>",he+="    <a:pPr>",he+='      <a:defRPr sz="'.concat(Math.round(100*(A.catAxisLabelFontSize||ht)),'" b="').concat(A.catAxisLabelFontBold?1:0,'" i="').concat(A.catAxisLabelFontItalic?1:0,'" u="none" strike="noStrike">'),he+="      <a:solidFill>"+qt(A.catAxisLabelColor||Qe)+"</a:solidFill>",he+='      <a:latin typeface="'+(A.catAxisLabelFontFace||"Arial")+'"/>',he+="   </a:defRPr>",he+="  </a:pPr>",he+='  <a:endParaRPr lang="'+(A.lang||"en-US")+'"/>',he+="  </a:p>",he+=" </c:txPr>",he+=' <c:crossAx val="'+V+'"/>',he+=" <c:".concat("number"==typeof A.valAxisCrossesAt?"crossesAt":"crosses",' val="').concat(A.valAxisCrossesAt||"autoZero",'"/>'),he+=' <c:auto val="1"/>',he+=' <c:lblAlgn val="ctr"/>',he+=' <c:noMultiLvlLbl val="'.concat(A.catAxisMultiLevelLabels?0:1,'"/>'),A.catAxisLabelFrequency&&(he+=' <c:tickLblSkip val="'+A.catAxisLabelFrequency+'"/>'),(A.catLabelFormatCode||A._type===ue.SCATTER||A._type===ue.BUBBLE||A._type===ue.BUBBLE3D)&&(A.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(function(S){A[S]&&("string"!=typeof A[S]||!["days","months","years"].includes(A[S].toLowerCase()))&&(console.warn('"'.concat(S,"\" must be one of: 'days','months','years' !")),A[S]=null)}),A.catAxisBaseTimeUnit&&(he+='<c:baseTimeUnit val="'+A.catAxisBaseTimeUnit.toLowerCase()+'"/>'),A.catAxisMajorTimeUnit&&(he+='<c:majorTimeUnit val="'+A.catAxisMajorTimeUnit.toLowerCase()+'"/>'),A.catAxisMinorTimeUnit&&(he+='<c:minorTimeUnit val="'+A.catAxisMinorTimeUnit.toLowerCase()+'"/>')),A.catAxisMajorUnit&&(he+='<c:majorUnit val="'.concat(A.catAxisMajorUnit,'"/>')),A.catAxisMinorUnit&&(he+='<c:minorUnit val="'.concat(A.catAxisMinorUnit,'"/>'))),he+(A._type===ue.SCATTER||A._type===ue.BUBBLE||A._type===ue.BUBBLE3D?"</c:valAx>
1":"</c:"+(A.catLabelFormatCode?"dateAx":"catAx")+">")}function ne(A,X){var V=X===Xe?"col"===A.barDir?"l":"b":"col"!==A.barDir?"r":"t";X===Mt&&(V="r");var he=X===Xe?Et:Jt,S="";return S+="<c:valAx>",S+='  <c:axId val="'+X+'"/>',S+="  <c:scaling>",A.valAxisLogScaleBase&&(S+='<c:logBase val="'.concat(A.valAxisLogScaleBase,'"/>')),S+='<c:orientation val="'+(A.valAxisOrientation||"minMax")+'"/>',(A.valAxisMaxVal||0===A.valAxisMaxVal)&&(S+='<c:max val="'.concat(A.valAxisMaxVal,'"/>')),(A.valAxisMinVal||0===A.valAxisMinVal)&&(S+='<c:min val="'.concat(A.valAxisMinVal,'"/>')),S+="  </c:scaling>",S+='  <c:delete val="'.concat(A.valAxisHidden?1:0,'"/>'),S+='  <c:axPos val="'+V+'"/>',"none"!==A.valGridLine.style&&(S+=be(A.valGridLine)),A.showValAxisTitle&&(S+=Ke({color:A.valAxisTitleColor,fontFace:A.valAxisTitleFontFace,fontSize:A.valAxisTitleFontSize,titleRotate:A.valAxisTitleRotate,title:A.valAxisTitle||"Axis Title"})),S+='<c:numFmt formatCode="'.concat(A.valAxisLabelFormatCode?St(A.valAxisLabelFormatCode):"General",'" sourceLinked="0"/>'),A._type===ue.SCATTER?(S+='  <c:majorTickMark val="none"/>',S+='  <c:minorTickMark val="none"/>',S+='  <c:tickLblPos val="nextTo"/>'):(S+=' <c:majorTickMark val="'+(A.valAxisMajorTickMark||"out")+'"/>',S+=' <c:minorTickMark val="'+(A.valAxisMinorTickMark||"none")+'"/>',S+=' <c:tickLblPos val="'+(A.valAxisLabelPos||("col"===A.barDir?"nextTo":"low"))+'"/>'),S+=" <c:spPr>",S+='   <a:ln w="'.concat(A.valAxisLineSize?Pt(A.valAxisLineSize):B,'" cap="flat">'),S+=A.valAxisLineShow?"<a:solidFill>"+qt(A.valAxisLineColor||Pe.color)+"</a:solidFill>":"<a:noFill/>",S+='     <a:prstDash val="'+(A.valAxisLineStyle||"solid")+'"/>',S+="     <a:round/>",S+="   </a:ln>",S+=" </c:spPr>",S+=" <c:txPr>",S+="  <a:bodyPr".concat(A.valAxisLabelRotate?' rot="'+fn(A.valAxisLabelRotate).toString()+'"':"","/>"),S+="  <a:lstStyle/>",S+="  <a:p>",S+="    <a:pPr>",S+='      <a:defRPr sz="'.concat(Math.round(100*(A.valAxisLabelFontSize||ht)),'" b="').concat(A.valAxisLabelFontBold?1:0,'" i="').concat(A.valAxisLabelFontItalic?1:0,'" u="none" strike="noStrike">'),S+="        <a:solidFill>"+qt(A.valAxisLabelColor||Qe)+"</a:solidFill>",S+='        <a:latin typeface="'+(A.valAxisLabelFontFace||"Arial")+'"/>',S+="      </a:defRPr>",S+="    </a:pPr>",S+='  <a:endParaRPr lang="'+(A.lang||"en-US")+'"/>',S+="  </a:p>",S+=" </c:txPr>",S+=' <c:crossAx val="'+he+'"/>',S+="number"==typeof A.catAxisCrossesAt?' <c:crossesAt val="'.concat(A.catAxisCrossesAt,'"/>'):"string"==typeof A.catAxisCrossesAt?' <c:crosses val="'+A.catAxisCrossesAt+'"/>':' <c:crosses val="'+("r"===V||"t"===V?"max":"autoZero")+'"/>',S+=' <c:crossBetween val="'+(A._type===ue.SCATTER||Array.isArray(A._type)&&A._type.filter(function(se){return se.type===ue.AREA}).length>0?"midCat":"between")+'"/>',A.valAxisMajorUnit&&(S+=' <c:majorUnit val="'.concat(A.valAxisMajorUnit,'"/>')),A.valAxisDisplayUnit&&(S+='<c:dispUnits><c:builtInUnit val="'.concat(A.valAxisDisplayUnit,'"/>').concat(A.valAxisDisplayUnitLabel?"<c:dispUnitsLbl/>":"","</c:dispUnits>")),S+"</c:valAx>"}function Ke(A,X,V){var he="left"===A.titleAlign||"right"===A.titleAlign?'<a:pPr algn="'.concat(A.titleAlign.substring(0,1),'">'):"<a:pPr>",S=A.titleRotate?'<a:bodyPr rot="'.concat(fn(A.titleRotate),'"/>'):"<a:bodyPr/>",Ie=A.fontSize?'sz="'.concat(Math.round(100*A.fontSize),'"'):"",C=A.titleBold?1:0,se="<c:layout/>";if(A.titlePos&&"number"==typeof A.titlePos.x&&"number"==typeof A.titlePos.y){var G=A.titlePos.x+X,E=A.titlePos.y+V,re=0===G?0:G*(G/5)/10;re>=1&&(re/=10),re>=.1&&(re/=10);var tt=0===E?0:E*(E/5)/10;tt>=1&&(tt/=10),tt>=.1&&(tt/=10),se='<c:layout><c:manualLayout><c:xMode val="edge"/><c:yMode val="edge"/><c:x val="'.concat(re,'"/><c:y val="').concat(tt,'"/></c:manualLayout></c:layout>')}return"<c:title>\n      <c:tx>\n        <c:rich>\n          ".concat(S,"\n          <a:lstStyle/>\n          <a:p>\n            ").concat(he,"\n            <a:defRPr ").concat(Ie,' b="').concat(C,'" i="0" u="none" strike="noStrike">\n              <a:solidFill>').concat(qt(A.color||Qe),'</a:solidFill>\n              <a:latin typeface="').concat(A.fontFace||"Arial",'"/>\n            </a:defRPr>\n          </a:pPr>\n          <a:r>\n            <a:rPr ').concat(Ie,' b="').concat(C,'" i="0" u="none" strike="noStrike">\n              <a:solidFill>').concat(qt(A.color||Qe),'</a:solidFill>\n              <a:latin typeface="').concat(A.fontFace||"Arial",'"/>\n            </a:rPr>\n            <a:t>').concat(St(A.title)||"","</a:t>\n          </a:r>\n        </a:p>\n        </c:rich>\n      </c:tx>\n      ").concat(se,'\n      <c:overlay val="0"/>\n    </c:title>')}function ve(A){var V=A-1;return V<=25?Gt[V]:"".concat(Gt[Math.floor(V/Gt.length-1)]).concat(Gt[V%Gt.length])}function ye(A,X){if(!A)return"<a:effectLst/>";if("object"!=typeof A)return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"<a:effectLst/>";var V="<a:effectLst>",he=N(N({},X),A),S=he.type||"outer",Ie=Pt(he.blur),C=Pt(he.offset),se=Math.round(6e4*he.angle),G=he.color,E=Math.round(1e5*he.opacity),re=he.rotateWithShape?1:0;return V+="<a:".concat(S,'Shdw sx="100000" sy="100000" kx="0" ky="0"  algn="bl" blurRad="').concat(Ie,'" rotWithShape="').concat(re,'" dist="').concat(C,'" dir="').
1concat(se,'">'),V+='<a:srgbClr val="'.concat(G,'">'),V+='<a:alpha val="'.concat(E,'"/></a:srgbClr>'),(V+="</a:".concat(S,"Shdw>"))+"</a:effectLst>"}function be(A){var X="<c:majorGridlines>";return X+=" <c:spPr>",X+='  <a:ln w="'.concat(Pt(A.size||Pe.size),'" cap="').concat(Ee(A.cap||Pe.cap),'">'),X+='  <a:solidFill><a:srgbClr val="'+(A.color||Pe.color)+'"/></a:solidFill>',X+='   <a:prstDash val="'+(A.style||Pe.style)+'"/><a:round/>',X+="  </a:ln>",(X+=" </c:spPr>")+"</c:majorGridlines>"}function Ee(A){if(!A||"flat"===A)return"flat";if("square"===A)return"sq";if("round"===A)return"rnd";throw new Error("Invalid chart line cap: ".concat(A))}function pt(A){var X=typeof window>"u"?R(9912):null,V=typeof window>"u"?R(908):null,he=[],S=A._relsMedia.filter(function(C){return"online"!==C.type&&!C.data&&(!C.path||C.path&&!C.path.includes("preencoded"))}),Ie=[];return S.forEach(function(C){Ie.includes(C.path)?C.isDuplicate=!0:(C.isDuplicate=!1,Ie.push(C.path))}),S.filter(function(C){return!C.isDuplicate}).forEach(function(C){he.push(new Promise(function(se,G){if(X&&0!==C.path.indexOf("http"))try{var E=X.readFileSync(C.path);C.data=Buffer.from(E).toString("base64"),S.filter(function(tt){return tt.isDuplicate&&tt.path===C.path}).forEach(function(tt){return tt.data=C.data}),se("done")}catch(tt){C.data=lt,S.filter(function($t){return $t.isDuplicate&&$t.path===C.path}).forEach(function($t){return $t.data=C.data}),G(new Error('ERROR: Unable to read media: "'.concat(C.path,'"\n').concat(String(tt))))}else if(X&&V&&0===C.path.indexOf("http"))V.get(C.path,function(tt){var $t="";tt.setEncoding("binary"),tt.on("data",function(Qt){return $t+=Qt}),tt.on("end",function(){C.data=Buffer.from($t,"binary").toString("base64"),S.filter(function(Qt){return Qt.isDuplicate&&Qt.path===C.path}).forEach(function(Qt){return Qt.data=C.data}),se("done")}),tt.on("error",function(Qt){C.data=lt,S.filter(function(zt){return zt.isDuplicate&&zt.path===C.path}).forEach(function(zt){return zt.data=C.data}),G(new Error("ERROR! Unable to load image (https.get): ".concat(C.path)))})});else{var re=new XMLHttpRequest;re.onload=function(){var tt=new FileReader;tt.onloadend=function(){C.data=tt.result,S.filter(function($t){return $t.isDuplicate&&$t.path===C.path}).forEach(function($t){return $t.data=C.data}),C.isSvgPng?_t(C).then(function(){se("done")}).catch(function($t){G($t)}):se("done")},tt.readAsDataURL(re.response)},re.onerror=function(tt){C.data=lt,S.filter(function($t){return $t.isDuplicate&&$t.path===C.path}).forEach(function($t){return $t.data=C.data}),G(new Error("ERROR! Unable to load image (xhr.onerror): ".concat(C.path)))},re.open("GET",C.path),re.responseType="blob",re.send()}}))}),A._relsMedia.filter(function(C){return C.isSvgPng&&C.data}).forEach(function(C){X?(C.data=lt,he.push(Promise.resolve().then(function(){return"done"}))):he.push(_t(C))}),he}function _t(A){return v(this,void 0,void 0,function(){return ee(this,function(X){switch(X.label){case 0:return[4,new Promise(function(V,he){var S=new Image;S.onload=function(){S.width+S.height===0&&S.onerror("h/w=0");var Ie=document.createElement("CANVAS"),C=Ie.getContext("2d");Ie.width=S.width,Ie.height=S.height,C.drawImage(S,0,0);try{A.data=Ie.toDataURL(A.type),V("done")}catch(se){S.onerror(se)}Ie=null},S.onerror=function(Ie){A.data=lt,he(new Error("ERROR! Unable to load image (image.onerror): ".concat(A.path)))},S.src="string"==typeof A.data?A.data:lt})];case 1:return[2,X.sent()]}})})}var tn={cover:function(A,X){var V=A.h/A.w,S=X.h/X.w>V,C=S?X.h:X.w*V,se=Math.round(5e4*(1-X.w/(S?X.h/V:X.w))),G=Math.round(5e4*(1-X.h/C));return'<a:srcRect l="'.concat(se,'" r="').concat(se,'" t="').concat(G,'" b="').concat(G,'"/><a:stretch/>')},contain:function(A,X){var V=A.h/A.w,S=X.h/X.w>V,C=S?X.w*V:X.h,se=Math.round(5e4*(1-X.w/(S?X.w:X.h/V))),G=Math.round(5e4*(1-X.h/C));return'<a:srcRect l="'.concat(se,'" r="').concat(se,'" t="').concat(G,'" b="').concat(G,'"/><a:stretch/>')},crop:function(A,X){var he=A.w-(X.x+X.w),S=X.y,Ie=A.h-(X.y+X.h),C=Math.round(X.x/A.w*1e5),se=Math.round(he/A.w*1e5),G=Math.round(S/A.h*1e5),E=Math.round(Ie/A.h*1e5);return'<a:srcRect l="'.concat(C,'" r="').concat(se,'" t="').concat(G,'" b="').concat(E,'"/><a:stretch/>')}};function ln(A){var X,V=A._name?'<p:cSld name="'+A._name+'">':"<p:cSld>",he=1;return A._bkgdImgRid?V+='<p:bg><p:bgPr><a:blipFill dpi="0" rotWithShape="1"><a:blip r:embed="rId'.concat(A._bkgdImgRid,'"><a:lum/></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></a:blipFill><a:effectLst/></p:bgPr></p:bg>'):null!==(X=A.background)&&void 0!==X&&X.color?V+="<p:bg><p:bgPr>".concat($n(A.background),"</p:bgPr></p:bg>"):!A.bkgd&&A._name&&A._name===je&&(V+='<p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg>'),V+="<p:spTree>",V+='<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>',V+='<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/>',V+='<a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>
1',A._slideObjects.forEach(function(S,Ie){var C,se,G,E,re,tt,$t,Qt,cn,zt=0,Lt=0,mn=nt("75%","X",A._presLayout),dn=0,Zn="",zn=null,qn=null,Zi=0,Nn=0,gn=null,vn=null,ti=null===(C=S.options)||void 0===C?void 0:C.sizing,er=null===(se=S.options)||void 0===se?void 0:se.rounding;void 0!==A._slideLayout&&void 0!==A._slideLayout._slideObjects&&S.options&&S.options.placeholder&&(cn=A._slideLayout._slideObjects.filter(function(On){return On.options.placeholder===S.options.placeholder})[0]),S.options=S.options||{},typeof S.options.x<"u"&&(zt=nt(S.options.x,"X",A._presLayout)),typeof S.options.y<"u"&&(Lt=nt(S.options.y,"Y",A._presLayout)),typeof S.options.w<"u"&&(mn=nt(S.options.w,"X",A._presLayout)),typeof S.options.h<"u"&&(dn=nt(S.options.h,"Y",A._presLayout));var Or=mn,yi=dn;switch(cn&&((cn.options.x||0===cn.options.x)&&(zt=nt(cn.options.x,"X",A._presLayout)),(cn.options.y||0===cn.options.y)&&(Lt=nt(cn.options.y,"Y",A._presLayout)),(cn.options.w||0===cn.options.w)&&(mn=nt(cn.options.w,"X",A._presLayout)),(cn.options.h||0===cn.options.h)&&(dn=nt(cn.options.h,"Y",A._presLayout))),S.options.flipH&&(Zn+=' flipH="1"'),S.options.flipV&&(Zn+=' flipV="1"'),S.options.rotate&&(Zn+=' rot="'.concat(fn(S.options.rotate),'"')),S._type){case Ue.table:if(qn=S.options,Zi=0,Nn=0,(zn=S.arrTabRows)[0].forEach(function(On){g
1n=On.options||null,Zi+=gn?.colspan?Number(gn.colspan):1}),vn='<p:graphicFrame><p:nvGraphicFramePr><p:cNvPr id="'.concat(he*A._slideNum+1,'" name="').concat(S.options.objectName,'"/>'),vn+='<p:cNvGraphicFramePr><a:graphicFrameLocks noGrp="1"/></p:cNvGraphicFramePr>  <p:nvPr><p:extLst><p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}"><p14:modId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1579011935"/></p:ext></p:extLst></p:nvPr></p:nvGraphicFramePr>',vn+='<p:xfrm><a:off x="'.concat(zt||(0===zt?0:W),'" y="').concat(Lt||(0===Lt?0:W),'"/><a:ext cx="').concat(mn||(0===mn?0:W),'" cy="').concat(dn||W,'"/></p:xfrm>'),vn+='<a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table"><a:tbl><a:tblPr/>',Array.isArray(qn.colW)){vn+="<a:tblGrid>";for(var hr=0;hr<Zi;hr++){var Tn=Ht(qn.colW[hr]);(null==Tn||isNaN(Tn))&&(Tn=("number"==typeof S.options.w?S.options.w:1)/Zi),vn+='<a:gridCol w="'.concat(Math.round(Tn),'"/>')}vn+="</a:tblGrid>"}else{Nn=qn.colW?qn.colW:W,S.options.w&&!qn.colW&&(Nn=Math.round(("number"==typeof S.options.w?S.options.w:1)/Zi)),vn+="<a:tblGrid>";for(var Br=0;Br<Zi;Br++)vn+='<a:gridCol w="'.concat(Nn,'"/>');vn+="</a:tblGrid>"}zn.forEach(function(On){for(var gr,Cr,Gi,ro=function(Ui){var Ii=On[Ui],Si=null===(gr=Ii.options)||void 0===gr?void 0:gr.colspan,qi=null===(Cr=Ii.options)||void 0===Cr?void 0:Cr.rowspan;if(Si&&Si>1){var mr=new Array(Si-1).fill(void 0).map(function(Tr){return{_type:Ue.tablecell,options:{rowspan:qi},_hmerge:!0}});On.splice.apply(On,l([Ui+1,0],mr,!1)),Ui+=Si}else Ui+=1;Gi=Ui},Vr=0;Vr<On.length;)ro(Vr),Vr=Gi}),zn.forEach(function(On,gr){var Cr=zn[gr+1];Cr&&On.forEach(function(ro,Gi){var Vr,Ui,Ii=ro._rowContinue||(null===(Vr=ro.options)||void 0===Vr?void 0:Vr.rowspan),Si=null===(Ui=ro.options)||void 0===Ui?void 0:Ui.colspan;Ii&&Ii>1&&Cr.splice(Gi,0,{_type:Ue.tablecell,options:{colspan:Si},_rowContinue:Ii-1,_vmerge:!0,_hmerge:ro._hmerge})})}),zn.forEach(function(On,gr){var Cr=0;Array.isArray(qn.rowH)&&qn.rowH[gr]?Cr=Ht(Number(qn.rowH[gr])):qn.rowH&&!isNaN(Number(qn.rowH))?Cr=Ht(Number(qn.rowH)):(S.options.cy||S.options.h)&&(Cr=Math.round((S.options.h?Ht(S.options.h):"number"==typeof S.options.cy?S.options.cy:1)/zn.length)),vn+='<a:tr h="'.concat(Cr,'">'),On.forEach(function(ro){var Gi,Vr,Ui,Ii,Si,qi=ro,mr={rowSpan:(null===(Gi=qi.options)||void 0===Gi?void 0:Gi.rowspan)>1?qi.options.rowspan:void 0,gridSpan:(null===(Vr=qi.options)||void 0===Vr?void 0:Vr.colspan)>1?qi.options.colspan:void 0,vMerge:qi._vmerge?1:void 0,hMerge:qi._hmerge?1:void 0},Tr=Object.keys(mr).map(function(ir){return[ir,mr[ir]]}).filter(function(ir){return!!ir[1]}).map(function(ir){var Qr=ir[1];return"".concat(String(ir[0]),'="').concat(String(Qr),'"')}).join(" ");if(Tr&&(Tr=" "+Tr),qi._hmerge||qi._vmerge)vn+="<a:tc".concat(Tr,"><a:tcPr/></a:tc>");else{var zi=qi.options||{};qi.options=zi,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach(function(ir){qn[ir]&&!zi[ir]&&0!==zi[ir]&&(zi[ir]=qn[ir])});var uo=zi.valign?' anchor="'.concat(zi.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b"),'"'):"",Ni=null!==(Ii=null===(Ui=qi._optImp)||void 0===Ui?void 0:Ui.fill)&&void 0!==Ii&&Ii.color?qi._optImp.fill.color:null!==(Si=qi._optImp)&&void 0!==Si&&Si.fill&&"string"==typeof qi._optImp.fill?qi._optImp.fill:"",Bi=(Ni=Ni||zi.fill?zi.fill:"")?$n(Ni):"",$i=0===zi.margin||zi.margin?zi.margin:Ce;!Array.isArray($i)&&"number"==typeof $i&&($i=[$i,$i,$i,$i]);var oo;oo=$i[0]>=1?' marL="'.concat(Pt($i[3]),'" marR="').concat(Pt($i[1]),'" marT="').concat(Pt($i[0]),'" marB="').concat(Pt($i[2]),'"'):' marL="'.concat(Ht($i[3]),'" marR="').concat(Ht($i[1]),'" marT="').concat(Ht($i[0]),'" marB="').concat(Ht($i[2]),'"'),vn+="<a:tc".concat(Tr,">").concat(vr(qi),"<a:tcPr").concat(oo).concat(uo,">"),zi.border&&Array.isArray(zi.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(function(ir){"none"!==zi.border[ir.idx].type?(vn+="<a:".concat(ir.name,' w="').concat(Pt(zi.border[ir.idx].pt),'" cap="flat" cmpd="sng" algn="ctr">
1'),vn+="<a:solidFill>".concat(qt(zi.border[ir.idx].color),"</a:solidFill>"),vn+='<a:prstDash val="'.concat("dash"===zi.border[ir.idx].type?"sysDash":"solid",'"/><a:round/><a:headEnd type="none" w="med" len="med"/><a:tailEnd type="none" w="med" len="med"/>'),vn+="</a:".concat(ir.name,">")):vn+="<a:".concat(ir.name,' w="0" cap="flat" cmpd="sng" algn="ctr"><a:noFill/></a:').concat(ir.name,">")}),vn+=Bi,vn+="  </a:tcPr>",vn+=" </a:tc>"}}),vn+="</a:tr>"}),vn+="      </a:tbl>",vn+="    </a:graphicData>",vn+="  </a:graphic>",V+=vn+="</p:graphicFrame>",he++;break;case Ue.text:case Ue.placeholder:if(!S.options.line&&0===dn&&(dn=.3*W),S.options._bodyProp||(S.options._bodyProp={}),S.options.margin&&Array.isArray(S.options.margin)?(S.options._bodyProp.lIns=Pt(S.options.margin[0]||0),S.options._bodyProp.rIns=Pt(S.options.margin[1]||0),S.options._bodyProp.bIns=Pt(S.options.margin[2]||0),S.options._bodyProp.tIns=Pt(S.options.margin[3]||0)):"number"==typeof S.options.margin&&(S.options._bodyProp.lIns=Pt(S.options.margin),S.options._bodyProp.rIns=Pt(S.options.margin),S.options._bodyProp.bIns=Pt(S.options.margin),S.options._bodyProp.tIns=Pt(S.options.margin)),V+="<p:sp>",V+='<p:nvSpPr><p:cNvPr id="'.concat(Ie+2,'" name="').concat(S.options.objectName,'">'),!(null===(G=S.options.hyperlink)||void 0===G)&&G.url&&(V+='<a:hlinkClick r:id="rId'.concat(S.options.hyperlink._rId,'" tooltip="').concat(S.options.hyperlink.tooltip?St(S.options.hyperlink.tooltip):"",'"/>')),!(null===(E=S.options.hyperlink)||void 0===E)&&E.slide&&(V+='<a:hlinkClick r:id="rId'.concat(S.options.hyperlink._rId,'" tooltip="').concat(S.options.hyperlink.tooltip?St(S.options.hyperlink.tooltip):"",'" action="ppaction://hlinksldjump"/>')),V+="</p:cNvPr>",V+="<p:cNvSpPr"+(null!==(re=S.options)&&void 0!==re&&re.isTextBox?' txBox="1"/>':"/>"),V+="<p:nvPr>".concat(dr("placeholder"===S._type?S:cn),"</p:nvPr>"),V+="</p:nvSpPr><p:spPr>",V+="<a:xfrm".concat(Zn,">"),V+='<a:off x="'.concat(zt,'" y="').concat(Lt,'"/>'),V+='<a:ext cx="'.concat(mn,'" cy="').concat(dn,'"/></a:xfrm>'),"custGeom"===S.shape)V+="<a:custGeom><a:avLst />
1",V+="<a:gdLst>",V+="</a:gdLst>",V+="<a:ahLst />",V+="<a:cxnLst>",V+="</a:cxnLst>",V+='<a:rect l="l" t="t" r="r" b="b" />',V+="<a:pathLst>",V+='<a:path w="'.concat(mn,'" h="').concat(dn,'">'),null===(tt=S.options.points)||void 0===tt||tt.forEach(function(On,gr){if("curve"in On)switch(On.curve.type){case"arc":V+='<a:arcTo hR="'.concat(nt(On.curve.hR,"Y",A._presLayout),'" wR="').concat(nt(On.curve.wR,"X",A._presLayout),'" stAng="').concat(fn(On.curve.stAng),'" swAng="').concat(fn(On.curve.swAng),'" />');break;case"cubic":V+='<a:cubicBezTo>\n\t\t\t\t\t\t\t\t\t<a:pt x="'.concat(nt(On.curve.x1,"X",A._presLayout),'" y="').concat(nt(On.curve.y1,"Y",A._presLayout),'" />\n\t\t\t\t\t\t\t\t\t<a:pt x="').concat(nt(On.curve.x2,"X",A._presLayout),'" y="').concat(nt(On.curve.y2,"Y",A._presLayout),'" />\n\t\t\t\t\t\t\t\t\t<a:pt x="').concat(nt(On.x,"X",A._presLayout),'" y="').concat(nt(On.y,"Y",A._presLayout),'" />\n\t\t\t\t\t\t\t\t\t</a:cubicBezTo>');break;case"quadratic":V+='<a:quadBezTo>\n\t\t\t\t\t\t\t\t\t<a:pt x="'.concat(nt(On.curve.x1,"X",A._presLayout),'" y="').concat(nt(On.curve.y1,"Y",A._presLayout),'" />\n\t\t\t\t\t\t\t\t\t<a:pt x="').concat(nt(On.x,"X",A._presLayout),'" y="').concat(nt(On.y,"Y",A._presLayout),'" />\n\t\t\t\t\t\t\t\t\t</a:quadBezTo>')}else V+="close"in On?"<a:close />":On.moveTo||0===gr?'<a:moveTo><a:pt x="'.concat(nt(On.x,"X",A._presLayout),'" y="').concat(nt(On.y,"Y",A._presLayout),'" /></a:moveTo>'):'<a:lnTo><a:pt x="'.concat(nt(On.x,"X",A._presLayout),'" y="').concat(nt(On.y,"Y",A._presLayout),'" /></a:lnTo>')}),V+="</a:path>",V+="</a:pathLst>",V+="</a:custGeom>";else{if(V+='<a:prstGeom prst="'+S.shape+'"><a:avLst>',S.options.rectRadius)V+='<a:gd name="adj" fmla="val '.concat(Math.round(S.options.rectRadius*W*1e5/Math.min(mn,dn)),'"/>');else if(S.options.angleRange){for(var Co=0;Co<2;Co++){var Vn=S.options.angleRange[Co];V+='<a:gd name="adj'.concat(Co+1,'" fmla="val ').concat(fn(Vn),'" />')}S.options.arcThicknessRatio&&(V+='<a:gd name="adj3" fmla="val '.concat(Math.round(5e4*S.options.arcThicknessRatio),'" />'))}V+="</a:avLst></a:prstGeom>"}V+=S.options.fill?$n(S.options.fill):"<a:noFill/>",S.options.line&&(V+=S.options.line.width?'<a:ln w="'.concat(Pt(S.options.line.width),'">'):"<a:ln>",S.options.line.color&&(V+=$n(S.options.line)),S.options.line.dashType&&(V+='<a:prstDash val="'.concat(S.options.line.dashType,'"/>')),S.options.line.beginArrowType&&(V+='<a:headEnd type="'.concat(S.options.line.beginArrowType,'"/>')),S.options.line.endArrowType&&(V+='<a:tailEnd type="'.concat(S.options.line.endArrowType,'"/>')),V+="</a:ln>"),S.options.shadow&&"none"!==S.options.shadow.type&&(S.options.shadow.type=S.options.shadow.type||"outer",S.options.shadow.blur=Pt(S.options.shadow.blur||8),S.options.shadow.offset=Pt(S.options.shadow.offset||4),S.options.shadow.angle=Math.round(6e4*(S.options.shadow.angle||270)),S.options.shadow.opacity=Math.round(1e5*(S.options.shadow.opacity||.75)),S.options.shadow.color=S.options.shadow.color||at_color,V+="<a:effectLst>",V+=" <a:".concat(S.options.shadow.type,"Shdw ").concat("outer"===S.options.shadow.type?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':"",' blurRad="').concat(S.options.shadow.blur,'" dist="').concat(S.options.shadow.offset,'" dir="').concat(S.options.shadow.angle,'">'),V+=' <a:srgbClr val="'.concat(S.options.shadow.color,'">'),V+=' <a:alpha val="'.concat(S.options.shadow.opacity,'"/></a:srgbClr>'),V+=" </a:outerShdw>",V+="</a:effectLst>"),V+="</p:spPr>",V+=vr(S),V+="</p:sp>";break;case Ue.image:if(V+="<p:pic>",V+="  <p:nvPicPr>",V+='<p:cNvPr id="'.concat(Ie+2,'" name="').concat(S.options.objectName,'" descr="').concat(St(S.options.altText||S.image),'">'),!(null===($t=S.hyperlink)||void 0===$t)&&$t.url&&(V+='<a:hlinkClick r:id="rId'.concat(S.hyperlink._rId,'" tooltip="').concat(S.hyperlink.tooltip?St(S.hyperlink.tooltip):"",'"/>')),!(null===(Qt=S.hyperlink)||void 0===Qt)&&Qt.slide&&(V+='<a:hlinkClick r:id="rId'.concat(S.hyperlink._rId,'" tooltip="').concat(S.hyperlink.tooltip?St(S.hyperlink.tooltip):"",'" action="ppaction://hlinksldjump"/>')),V+="    </p:cNvPr>",V+='    <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',V+="    <p:nvPr>"+dr(cn)+"</p:nvPr>",V+="  </p:nvPicPr>",V+="<p:blipFill>",(A._relsMedia||[]).filter(function(On){return On.rId===S.imageRid})[0]&&"svg"===(A._relsMedia||[]).filter(function(On){return On.rId===S.imageRid})[0].extn?(V+='<a:blip r:embed="rId'.concat(S.imageRid-1,'">'),V+=S.options.transparency?' <a:alphaModFix amt="'.concat(Math.round(1e3*(100-S.options.transparency)),'"/>'):"",V+=" <a:extLst>
1",V+='  <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">',V+='   <asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" r:embed="rId'.concat(S.imageRid,'"/>'),V+="  </a:ext>",V+=" </a:extLst>",V+="</a:blip>"):(V+='<a:blip r:embed="rId'.concat(S.imageRid,'">'),V+=S.options.transparency?'<a:alphaModFix amt="'.concat(Math.round(1e3*(100-S.options.transparency)),'"/>'):"",V+="</a:blip>"),ti?.type){var fr=ti.w?nt(ti.w,"X",A._presLayout):mn,Ir=ti.h?nt(ti.h,"Y",A._presLayout):dn,xr=nt(ti.x||0,"X",A._presLayout),Xr=nt(ti.y||0,"Y",A._presLayout);V+=tn[ti.type]({w:Or,h:yi},{w:fr,h:Ir,x:xr,y:Xr}),Or=fr,yi=Ir}else V+="  <a:stretch><a:fillRect/></a:stretch>";V+="</p:blipFill>",V+="<p:spPr>",V+=" <a:xfrm"+Zn+">",V+='  <a:off x="'.concat(zt,'" y="').concat(Lt,'"/>'),V+='  <a:ext cx="'.concat(Or,'" cy="').concat(yi,'"/>'),V+=" </a:xfrm>",V+=' <a:prstGeom prst="'.concat(er?"ellipse":"rect",'"><a:avLst/></a:prstGeom>'),S.options.shadow&&"none"!==S.options.shadow.type&&(S.options.shadow.type=S.options.shadow.type||"outer",S.options.shadow.blur=Pt(S.options.shadow.blur||8),S.options.shadow.offset=Pt(S.options.shadow.offset||4),S.options.shadow.angle=Math.round(6e4*(S.options.shadow.angle||270)),S.options.shadow.opacity=Math.round(1e5*(S.options.shadow.opacity||.75)),S.options.shadow.color=S.options.shadow.color||at_color,V+="<a:effectLst>",V+="<a:".concat(S.options.shadow.type,"Shdw ").concat("outer"===S.options.shadow.type?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':"",' blurRad="').concat(S.options.shadow.blur,'" dist="').concat(S.options.shadow.offset,'" dir="').concat(S.options.shadow.angle,'">'),V+='<a:srgbClr val="'.concat(S.options.shadow.color,'">'),V+='<a:alpha val="'.concat(S.options.shadow.opacity,'"/></a:srgbClr>'),V+="</a:".concat(S.options.shadow.type,"Shdw>"),V+="</a:effectLst>"),V+="</p:spPr>",V+="</p:pic>";break;case Ue.media:"online"===S.mtype?(V+="<p:pic>",V+=" <p:nvPicPr>",V+='<p:cNvPr id="'.concat(S.mediaRid+2,'" name="').concat(S.options.objectName,'"/>'),V+=" <p:cNvPicPr/>",V+=" <p:nvPr>",V+='  <a:videoFile r:link="rId'.concat(S.mediaRid,'"/>'),V+=" </p:nvPr>",V+=" </p:nvPicPr>",V+=' <p:blipFill><a:blip r:embed="rId'.concat(S.mediaRid+1,'"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>'),V+=" <p:spPr>",V+="  <a:xfrm".concat(Zn,'><a:off x="').concat(zt,'" y="').concat(Lt,'"/><a:ext cx="').concat(mn,'" cy="').concat(dn,'"/></a:xfrm>'),V+='  <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',V+=" </p:spPr>",V+="</p:pic>"):(V+="<p:pic>",V+=" <p:nvPicPr>",V+='<p:cNvPr id="'.concat(S.mediaRid+2,'" name="').concat(S.options.objectName,'"><a:hlinkClick r:id="" action="ppaction://media"/></p:cNvPr>'),V+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',V+=" <p:nvPr>",V+='  <a:videoFile r:link="rId'.concat(S.mediaRid,'"/>'),V+="  <p:extLst>",V+='   <p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">',V+='    <p14:media xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId'.concat(S.mediaRid+1,'"/>'),V+="   </p:ext>",V+="  </p:extLst>",V+=" </p:nvPr>",V+=" </p:nvPicPr>",V+=' <p:blipFill><a:blip r:embed="rId'.concat(S.mediaRid+2,'"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>'),V+=" <p:spPr>",V+="  <a:xfrm".concat(Zn,'><a:off x="').concat(zt,'" y="').concat(Lt,'"/><a:ext cx="').concat(mn,'" cy="').concat(dn,'"/></a:xfrm>'),V+='  <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',V+=" </p:spPr>",V+="</p:pic>");break;case Ue.chart:V+="<p:graphicFrame>",V+=" <p:nvGraphicFramePr>",V+='   <p:cNvPr id="'.concat(Ie+2,'" name="').concat(S.options.objectName,'" descr="').concat(St(S.options.altText||""),'"/>'),V+="   <p:cNvGraphicFramePr/>",V+="   <p:nvPr>".concat(dr(cn),"</p:nvPr>"),V+=" </p:nvGraphicFramePr>",V+=' <p:xfrm><a:off x="'.concat(zt,'" y="').concat(Lt,'"/><a:ext cx="').concat(mn,'" cy="').concat(dn,'"/></p:xfrm>'),V+=' <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',V+='  <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">',V+='   <c:chart r:id="rId'.concat(S.chartRid,'" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"/>'),V+="  </a:graphicData>",V+=" </a:graphic>",V+="</p:graphicFrame>";break;default:V+=""}}),A._slideNumberProps&&(A._slideNumberProps.align||(A._slideNumberProps.align="left"),V+="<p:sp>",V+=" <p:nvSpPr>",V+='  <p:cNvPr id="25" name="Slide Number Placeholder 0"/>
1<p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>',V+='  <p:nvPr><p:ph type="sldNum" sz="quarter" idx="4294967295"/></p:nvPr>',V+=" </p:nvSpPr>",V+=" <p:spPr>",V+="<a:xfrm>"+'<a:off x="'.concat(nt(A._slideNumberProps.x,"X",A._presLayout),'" y="').concat(nt(A._slideNumberProps.y,"Y",A._presLayout),'"/>')+'<a:ext cx="'.concat(A._slideNumberProps.w?nt(A._slideNumberProps.w,"X",A._presLayout):"800000",'" cy="').concat(A._slideNumberProps.h?nt(A._slideNumberProps.h,"Y",A._presLayout):"300000",'"/>')+'</a:xfrm> <a:prstGeom prst="rect"><a:avLst/></a:prstGeom> <a:extLst><a:ext uri="{C572A759-6A51-4108-AA02-DFA0A04FC94B}"><ma14:wrappingTextBoxFlag val="0" xmlns:ma14="http://schemas.microsoft.com/office/mac/drawingml/2011/main"/></a:ext></a:extLst></p:spPr>',V+="<p:txBody>",V+="<a:bodyPr",A._slideNumberProps.margin&&Array.isArray(A._slideNumberProps.margin)?(V+=' lIns="'.concat(Pt(A._slideNumberProps.margin[3]||0),'"'),V+=' tIns="'.concat(Pt(A._slideNumberProps.margin[0]||0),'"'),V+=' rIns="'.concat(Pt(A._slideNumberProps.margin[1]||0),'"'),V+=' bIns="'.concat(Pt(A._slideNumberProps.margin[2]||0),'"')):"number"==typeof A._slideNumberProps.margin&&(V+=' lIns="'.concat(Pt(A._slideNumberProps.margin||0),'"'),V+=' tIns="'.concat(Pt(A._slideNumberProps.margin||0),'"'),V+=' rIns="'.concat(Pt(A._slideNumberProps.margin||0),'"'),V+=' bIns="'.concat(Pt(A._slideNumberProps.margin||0),'"')),A._slideNumberProps.valign&&(V+=' anchor="'.concat(A._slideNumberProps.valign.replace("top","t").replace("middle","ctr").replace("bottom","b"),'"')),V+="/>",V+="  <a:lstStyle><a:lvl1pPr>",(A._slideNumberProps.fontFace||A._slideNumberProps.fontSize||A._slideNumberProps.color)&&(V+='<a:defRPr sz="'.concat(Math.round(100*(A._slideNumberProps.fontSize||12)),'">'),A._slideNumberProps.color&&(V+=$n(A._slideNumberProps.color)),A._slideNumberProps.fontFace&&(V+='<a:latin typeface="'.concat(A._slideNumberProps.fontFace,'"/><a:ea typeface="').concat(A._slideNumberProps.fontFace,'"/><a:cs typeface="').concat(A._slideNumberProps.fontFace,'"/>')),V+="</a:defRPr>"),V+="</a:lvl1pPr></a:lstStyle>",V+="<a:p>",A._slideNumberProps.align.startsWith("l")?V+='<a:pPr algn="l"/>':A._slideNumberProps.align.startsWith("c")?V+='<a:pPr algn="ctr"/>':A._slideNumberProps.align.startsWith("r")?V+='<a:pPr algn="r"/>':V+='<a:pPr algn="l"/>',V+='<a:fld id="'.concat(Fe,'" type="slidenum"><a:rPr b="').concat(A._slideNumberProps.bold?1:0,'" lang="en-US"/>'),V+="<a:t>".concat(A._slideNum,'</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p>'),V+="</p:txBody></p:sp>"),V+="</p:spTree>",V+="</p:cSld>"}function An(A,X){var V=0,he='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+T+'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';return A._rels.forEach(function(S){V=Math.max(V,S.rId),S.type.toLowerCase().includes("hyperlink")?he+="slide"===S.data?'<Relationship Id="rId'.concat(S.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slide').concat(S.Target,'.xml"/>'):'<Relationship Id="rId'.concat(S.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="').concat(S.Target,'" TargetMode="External"/>'):S.type.toLowerCase().includes("notesSlide")&&(he+='<Relationship Id="rId'.concat(S.rId,'" Target="').concat(S.Target,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"/>'))}),(A._relsChart||[]).forEach(function(S){V=Math.max(V,S.rId),he+='<Relationship Id="rId'.concat(S.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="').concat(S.Target,'"/>')}),(A._relsMedia||[]).forEach(function(S){var Ie=S.rId.toString();V=Math.max(V,S.rId),S.type.toLowerCase().includes("image")?he+='<Relationship Id="rId'+Ie+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+S.Target+'"/>':S.type.toLowerCase().includes("audio")?he.includes(' Target="'+S.Target+'"')?he+='<Relationship Id="rId'+Ie+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+S.Target+'"/>':he+='<Relationship Id="rId'+Ie+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="'+S.Target+'"/>':S.type.toLowerCase().includes("video")?he.includes(' Target="'+S.Target+'"')?he+='<Relationship Id="rId'+Ie+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+S.Target+'"/>':he+='<Relationship Id="rId'+Ie+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="'+S.Target+'"/>':S.type.toLowerCase().includes("online")&&(he.includes(' Target="'+S.Target+'"')?he+='<Relationship Id="rId'+Ie+'" Type="http://schemas.microsoft.com/office/2007/relationships/image" Target="'+S.Target+'"/>':he+='<Relationship Id="rId'+Ie+'" Target="'+S.Target+'" TargetMode="External" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"/>')}
1),X.forEach(function(S,Ie){he+='<Relationship Id="rId'.concat(V+Ie+1,'" Type="').concat(S.type,'" Target="').concat(S.target,'"/>')}),he+="</Relationships>"}function Ri(A,X){var V,he,S="",Ie="",C="",se="",G=X?"a:lvl1pPr":"a:pPr",E=Pt(pe),re="<".concat(G).concat(A.options.rtlMode?' rtl="1" ':"");if(A.options.align)switch(A.options.align){case"left":re+=' algn="l"';break;case"right":re+=' algn="r"';break;case"center":re+=' algn="ctr"';break;case"justify":re+=' algn="just"';break;default:re+=""}if(A.options.lineSpacing?Ie='<a:lnSpc><a:spcPts val="'.concat(Math.round(100*A.options.lineSpacing),'"/></a:lnSpc>'):A.options.lineSpacingMultiple&&(Ie='<a:lnSpc><a:spcPct val="'.concat(Math.round(1e5*A.options.lineSpacingMultiple),'"/></a:lnSpc>')),A.options.indentLevel&&!isNaN(Number(A.options.indentLevel))&&A.options.indentLevel>0&&(re+=' lvl="'.concat(A.options.indentLevel,'"')),A.options.paraSpaceBefore&&!isNaN(Number(A.options.paraSpaceBefore))&&A.options.paraSpaceBefore>0&&(C+='<a:spcBef><a:spcPts val="'.concat(Math.round(100*A.options.paraSpaceBefore),'"/></a:spcBef>')),A.options.paraSpaceAfter&&!isNaN(Number(A.options.paraSpaceAfter))&&A.options.paraSpaceAfter>0&&(C+='<a:spcAft><a:spcPts val="'.concat(Math.round(100*A.options.paraSpaceAfter),'"/></a:spcAft>')),"object"==typeof A.options.bullet)if(!(null===(he=null===(V=A?.options)||void 0===V?void 0:V.bullet)||void 0===he)&&he.indent&&(E=Pt(A.options.bullet.indent)),A.options.bullet.type)"number"===A.options.bullet.type.toString().toLowerCase()&&(re+=' marL="'.concat(A.options.indentLevel&&A.options.indentLevel>0?E+E*A.options.indentLevel:E,'" indent="-').concat(E,'"'),S='<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="'.concat(A.options.bullet.style||"arabicPeriod",'" startAt="').concat(A.options.bullet.numberStartAt||A.options.bullet.startAt||"1",'"/>'));else if(A.options.bullet.characterCode){var tt="&#x".concat(A.options.bullet.characterCode,";");/^[0-9A-Fa-f]{4}$/.test(A.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),tt=Ve.DEFAULT),re+=' marL="'.concat(A.options.indentLevel&&A.options.indentLevel>0?E+E*A.options.indentLevel:E,'" indent="-').concat(E,'"'),S='<a:buSzPct val="100000"/><a:buChar char="'+tt+'"/>'}else A.options.bullet.code?(tt="&#x".concat(A.options.bullet.code,";"),/^[0-9A-Fa-f]{4}$/.test(A.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),tt=Ve.DEFAULT),re+=' marL="'.concat(A.options.indentLevel&&A.options.indentLevel>0?E+E*A.options.indentLevel:E,'" indent="-').concat(E,'"'),S='<a:buSzPct val="100000"/><a:buChar char="'+tt+'"/>'):(re+=' marL="'.concat(A.options.indentLevel&&A.options.indentLevel>0?E+E*A.options.indentLevel:E,'" indent="-').concat(E,'"'),S='<a:buSzPct val="100000"/><a:buChar char="'.concat(Ve.DEFAULT,'"/>'));else A.options.bullet?(re+=' marL="'.concat(A.options.indentLevel&&A.options.indentLevel>0?E+E*A.options.indentLevel:E,'" indent="-').concat(E,'"'),S='<a:buSzPct val="100000"/><a:buChar char="'.concat(Ve.DEFAULT,'"/>')):A.options.bullet||(re+=' indent="0" marL="0"',S="<a:buNone/>");if(A.options.tabStops&&Array.isArray(A.options.tabStops)){var $t=A.options.tabStops.map(function(Qt){return'<a:tab pos="'.concat(Ht(Qt.position||1),'" algn="').concat(Qt.alignment||"l",'"/>')}).join("");se="<a:tabLst>".concat($t,"</a:tabLst>")}return re+=">"+Ie+C+S+se,X&&(re+=Ti(A.options,!0)),re+"</"+G+">"}function Ti(A,X){var V,he="",S=X?"a:defRPr":"a:rPr";if(he+="<"+S+' lang="'+(A.lang?A.lang:"en-US")+'"'+(A.lang?' altLang="en-US"':""),he+=A.fontSize?' sz="'.concat(Math.round(100*A.fontSize),'"'):"",he+=A?.bold?' b="'.concat(A.bold?"1":"0",'"'):"",he+=A?.italic?' i="'.concat(A.italic?"1":"0",'"'):"",he+=A?.strike?' strike="'.concat("string"==typeof A.strike?A.strike:"sngStrike",'"'):"","object"==typeof A.underline&&null!==(V=A.underline)&&void 0!==V&&V.style?he+=' u="'.concat(A.underline.style,'"'):"string"==typeof A.underline?he+=' u="'.concat(String(A.underline),'"'):A.hyperlink&&(he+=' u="sng"'),A.baseline?he+=' baseline="'.concat(Math.round(50*A.baseline),'"'):A.subscript?he+=' baseline="-40000"':A.superscript&&(he+=' baseline="30000"'),he+=A.charSpacing?' spc="'.concat(Math.round(100*A.charSpacing),'" kern="0"'):"",he+=' dirty="0">',(A.color||A.fontFace||A.outline||"object"==typeof A.underline&&A.underline.color)&&(A.outline&&"object"==typeof A.outline&&(he+='<a:ln w="'.concat(Pt(A.outline.size||.75),'">').concat($n(A.outline.color||"FFFFFF"),"</a:ln>")),A.color&&(he+=$n({color:A.color,transparency:A.transparency})),A.highlight&&(he+="<a:highlight>
1".concat(qt(A.highlight),"</a:highlight>")),"object"==typeof A.underline&&A.underline.color&&(he+="<a:uFill>".concat($n(A.underline.color),"</a:uFill>")),A.glow&&(he+="<a:effectLst>".concat(function wi(A,X){var V="",he=N(N({},X),A),S=Math.round(he.size*B),Ie=he.color,C=Math.round(1e5*he.opacity);return V+='<a:glow rad="'.concat(S,'">'),(V+=qt(Ie,'<a:alpha val="'.concat(C,'"/>')))+"</a:glow>"}(A.glow,le),"</a:effectLst>")),A.fontFace&&(he+='<a:latin typeface="'.concat(A.fontFace,'" pitchFamily="34" charset="0"/><a:ea typeface="').concat(A.fontFace,'" pitchFamily="34" charset="-122"/><a:cs typeface="').concat(A.fontFace,'" pitchFamily="34" charset="-120"/>'))),A.hyperlink){if("object"!=typeof A.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!A.hyperlink.url&&!A.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");A.hyperlink.url?he+='<a:hlinkClick r:id="rId'.concat(A.hyperlink._rId,'" invalidUrl="" action="" tgtFrame="" tooltip="').concat(A.hyperlink.tooltip?St(A.hyperlink.tooltip):"",'" history="1" highlightClick="0" endSnd="0"').concat(A.color?">":"/>"):A.hyperlink.slide&&(he+='<a:hlinkClick r:id="rId'.concat(A.hyperlink._rId,'" action="ppaction://hlinksldjump" tooltip="').concat(A.hyperlink.tooltip?St(A.hyperlink.tooltip):"",'"').concat(A.color?">":"/>")),A.color&&(he+=" <a:extLst>",he+='  <a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">',he+='   <ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>',he+="  </a:ext>",he+=" </a:extLst>",he+="</a:hlinkClick>")}return he+"</".concat(S,">")}function vr(A){var X=A.options||{},V=[],he=[];if(X&&A._type!==Ue.tablecell&&(typeof A.text>"u"||null===A.text))return"";var S=A._type===Ue.tablecell?"<a:txBody>":"<p:txBody>";S+=function _r(A){var X="<a:bodyPr";return A&&A._type===Ue.text&&A.options._bodyProp?(X+=A.options._bodyProp.wrap?' wrap="square"':' wrap="none"',(A.options._bodyProp.lIns||0===A.options._bodyProp.lIns)&&(X+=' lIns="'.concat(A.options._bodyProp.lIns,'"')),(A.options._bodyProp.tIns||0===A.options._bodyProp.tIns)&&(X+=' tIns="'.concat(A.options._bodyProp.tIns,'"')),(A.options._bodyProp.rIns||0===A.options._bodyProp.rIns)&&(X+=' rIns="'.concat(A.options._bodyProp.rIns,'"')),(A.options._bodyProp.bIns||0===A.options._bodyProp.bIns)&&(X+=' bIns="'.concat(A.options._bodyProp.bIns,'"')),X+=' rtlCol="0"',A.options._bodyProp.anchor&&(X+=' anchor="'+A.options._bodyProp.anchor+'"'),A.options._bodyProp.vert&&(X+=' vert="'+A.options._bodyProp.vert+'"'),X+=">",A.options.fit&&("none"===A.options.fit?X+="":"shrink"===A.options.fit?X+="<a:normAutofit/>":"resize"===A.options.fit&&(X+="<a:spAutoFit/>")),A.options.shrinkText&&(X+="<a:normAutofit/>"),X+=A.options._bodyProp.autoFit?"<a:spAutoFit/>":"",X+="</a:bodyPr>"):(X+=' wrap="square" rtlCol="0">',X+="</a:bodyPr>"),A._type===Ue.tablecell?"<a:bodyPr/>":X}(A),S+=0===X.h&&X.line&&X.align?'<a:lstStyle><a:lvl1pPr algn="l"/></a:lstStyle>':"placeholder"===A._type?"<a:lstStyle>".concat(Ri(A,!0),"</a:lstStyle>"):"<a:lstStyle/>","string"==typeof A.text||"number"==typeof A.text?V.push({text:A.text.toString(),options:X||{}}):A.text&&!Array.isArray(A.text)&&"object"==typeof A.text&&Object.keys(A.text).includes("text")?V.push({text:A.text||"",options:A.options||{}}):Array.isArray(A.text)&&(V=A.text.map(function(se){return{text:se.text,options:se.options}})),V.forEach(function(se,G){se.text||(se.text=""),se.options=se.options||X||{},0===G&&se.options&&!se.options.bullet&&X.bullet&&(se.options.bullet=X.bullet),("string"==typeof se.text||"number"==typeof se.text)&&(se.text=se.text.toString().replace(/\r*\n/g,T)),se.text.includes(T)&&null===se.text.match(/\n$/g)?se.text.split(T).forEach(function(E){se.options.breakLine=!0,he.push({text:E,options:se.options})}):he.push(se)});var Ie=[],C=[];return he.forEach(function(se,G){C.length>0&&(se.options.align||X.align)?se.options.align!==he[G-1].options.align&&(Ie.push(C),C=[]):C.length>0&&se.options.bullet&&C.length>0&&(Ie.push(C),C=[],se.options.breakLine=!1),C.push(se),C.length>0&&se.options.breakLine&&G+1<he.length&&(Ie.push(C),C=[]),G+1===he.length&&Ie.push(C)}),Ie.forEach(function(se){var G,E=!1;S+="<a:p>";var re="<a:pPr ".concat(null!==(G=se[0].options)&&void 0!==G&&G.rtlMode?' rtl="1" ':"");se.forEach(function(tt,$t){tt.options._lineIdx=$t,$t>0&&tt.options.softBreakBefore&&(S+="<a:br/>"),tt.options.align=tt.options.align||X.align,tt.options.lineSpacing=tt.options.lineSpacing||X.lineSpacing,tt.options.lineSpacingMultiple=tt.options.lineSpacingMultiple||X.lineSpacingMultiple,tt.options.indentLevel=tt.options.indentLevel||X.indentLevel,tt.options.paraSpaceBefore=tt.options.paraSpaceBefore||X.paraSpaceBefore,tt.options.paraSpaceAfter=tt.options.paraSpaceAfter||X.paraSpaceAfter,re=Ri(tt,!1),S+=re.replace("<a:pPr></a:pPr>",""),Object.entries(X).filter(function(Qt){return!(tt.options.hyperlink&&"color"===Qt[0])}
1).forEach(function(Qt){var zt=Qt[0];"bullet"!==zt&&!tt.options[zt]&&(tt.options[zt]=Qt[1])}),S+=function Bn(A){return A.text?"<a:r>".concat(Ti(A.options,!1),"<a:t>").concat(St(A.text),"</a:t></a:r>"):""}(tt),(!tt.text&&X.fontSize||tt.options.fontSize)&&(E=!0,X.fontSize=X.fontSize||tt.options.fontSize)}),A._type===Ue.tablecell&&(X.fontSize||X.fontFace)?X.fontFace?(S+='<a:endParaRPr lang="'.concat(X.lang||"en-US",'"')+(X.fontSize?' sz="'.concat(Math.round(100*X.fontSize),'"'):"")+' dirty="0">',S+='<a:latin typeface="'.concat(X.fontFace,'" charset="0"/>'),S+='<a:ea typeface="'.concat(X.fontFace,'" charset="0"/>'),S+='<a:cs typeface="'.concat(X.fontFace,'" charset="0"/>'),S+="</a:endParaRPr>"):S+='<a:endParaRPr lang="'.concat(X.lang||"en-US",'"')+(X.fontSize?' sz="'.concat(Math.round(100*X.fontSize),'"'):"")+' dirty="0"/>':S+=E?'<a:endParaRPr lang="'.concat(X.lang||"en-US",'"')+(X.fontSize?' sz="'.concat(Math.round(100*X.fontSize),'"'):"")+' dirty="0"/>':'<a:endParaRPr lang="'.concat(X.lang||"en-US",'" dirty="0"/>'),S+="</a:p>"}),S+=A._type===Ue.tablecell?"</a:txBody>":"</p:txBody>"}function dr(A){var X,V;if(!A)return"";var he=null!==(X=A.options)&&void 0!==X&&X._placeholderIdx?A.options._placeholderIdx:"",S=null!==(V=A.options)&&void 0!==V&&V._placeholderType?A.options._placeholderType:"",Ie=S&&$e[S]?$e[S].toString():"";return"<p:ph\n\t\t".concat(he?' idx="'+he.toString()+'"':"","\n\t\t").concat(Ie&&$e[Ie]?' type="'.concat(Ie,'"'):"","\n\t\t").concat(A.text&&A.text.length>0?' hasCustomPrompt="1"':"","\n\t\t/>")}function _i(A,X,V){for(var he=0;he<X.length;he++)if(X[he]._name===A[V-1]._slideLayout._name)return he+1;return 1}var sr=function(){function A(){var X=this;this._version="3.12.0",this._alignH=Ot,this._alignV=It,this._chartType=ft,this._outputType=ze,this._schemeColor=rt,this._shapeType=Re,this._charts=ue,this._colors=U,this._shapes=on,this.addNewSlide=function(C){var se=X.sections.length>0&&X.sections[X.sections.length-1]._slides.filter(function(G){return G._slideNum===X.slides[X.slides.length-1]._slideNum}).length>0;return C.sectionTitle=se?X.sections[X.sections.length-1].title:null,X.addSlide(C)}
1,this.getSlide=function(C){return X.slides.filter(function(se){return se._slideNum===C})[0]},this.setSlideNumber=function(C){X.masterSlide._slideNumberProps=C,X.slideLayouts.filter(function(se){return se._name===je})[0]._slideNumberProps=C},this.createChartMediaRels=function(C,se,G){C._relsChart.forEach(function(E){return G.push(function Z(A,X){return v(this,void 0,void 0,function(){var V;return ee(this,function(he){switch(he.label){case 0:return V=A.data,[4,new Promise(function(S,Ie){var C,se,G=new(w()),E=2*(V.length-1)+1,re=(null===(se=null===(C=V[0])||void 0===C?void 0:C.labels)||void 0===se?void 0:se.length)>1;G.folder("_rels"),G.folder("docProps"),G.folder("xl/_rels"),G.folder("xl/tables"),G.folder("xl/theme"),G.folder("xl/worksheets"),G.folder("xl/worksheets/_rels"),G.file("[Content_Types].xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">  <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>  <Default Extension="xml" ContentType="application/xml"/>  <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>  <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>  <Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>  <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>  <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>  <Override PartName="/xl/tables/table1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"/>  <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>  <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>\n'),G.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>\n'),G.file("docProps/app.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>\n'),G.file("docProps/core.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>PptxGenJS</dc:creator><cp:lastModifiedBy>PptxGenJS</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">'+(new Date).toISOString()+'</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">'+(new Date).toISOString()+"</dcterms:modified></cp:coreProperties>"),G.file("xl/_rels/workbook.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>'),G.file("xl/styles.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><numFmts count="1"><numFmt numFmtId="0" formatCode="General"/></numFmts><fonts count="4"><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="10"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="18"/><color indexed="8"/><name val="Arial"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><dxfs count="0"/><tableStyles count="0"/><colors><indexedColors><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ffff0000"/><rgbColor rgb="ff00ff00"/><rgbColor rgb="ff0000ff"/><rgbColor rgb="ffffff00"/><rgbColor rgb="ffff00ff"/><rgbColor rgb="ff00ffff"/><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ff878787"/><rgbColor rgb="fff9f9f9"/></indexedColors></colors></styleSheet>\n'),G.file("xl/theme/theme1.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic Light"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="DengXian Light"/>
1<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="DengXian"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>'),G.file("xl/workbook.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><fileVersion appName="xl" lastEdited="7" lowestEdited="6" rupBuild="10507"/><workbookPr/><bookViews><workbookView xWindow="0" yWindow="500" windowWidth="20960" windowHeight="15960"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="0" concurrentCalc="0"/></workbook>\n'),G.file("xl/worksheets/_rels/sheet1.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" Target="../tables/table1.xml"/></Relationships>\n');var tt='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(A.opts._type===ue.BUBBLE||A.opts._type===ue.BUBBLE3D)tt+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(E,'" uniqueCount="').concat(E,'">');else if(A.opts._type===ue.SCATTER)tt+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(V.length,'" uniqueCount="').concat(V.length,'">');else if(re){var $t=V.length;
1V[0].labels.forEach(function(Nn){return $t+=Nn.filter(function(gn){return gn&&""!==gn}).length}),tt+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat($t,'" uniqueCount="').concat($t,'">'),tt+="<si><t/></si>"}else{var zt=V.length+V[0].labels.length*V[0].labels[0].length+1;tt+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(V.length+V[0].labels.length*V[0].labels[0].length+V[0].labels.length,'" uniqueCount="').concat(zt,'">'),tt+='<si><t xml:space="preserve"></t></si>'}V.forEach(A.opts._type===ue.BUBBLE||A.opts._type===ue.BUBBLE3D?function(Nn,gn){0===gn?tt+="<si><t>X-Axis</t></si>":(tt+="<si><t>".concat(St(Nn.name||"Y-Axis".concat(gn)),"</t></si>"),tt+="<si><t>".concat(St("Size".concat(gn)),"</t></si>"))}:function(Nn){tt+="<si><t>".concat(St((Nn.name||" ").replace("X-Axis","X-Values")),"</t></si>")}),A.opts._type!==ue.BUBBLE&&A.opts._type!==ue.BUBBLE3D&&A.opts._type!==ue.SCATTER&&V[0].labels.slice().reverse().forEach(function(Nn){Nn.filter(function(gn){return gn&&""!==gn}).forEach(function(gn){tt+="<si><t>".concat(St(gn),"</t></si>")})}),G.file("xl/sharedStrings.xml",tt+="</sst>\n");var Lt='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(A.opts._type===ue.BUBBLE||A.opts._type===ue.BUBBLE3D){Lt+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(ve(E)).concat(E,'" totalsRowShown="0">'),Lt+='<tableColumns count="'.concat(E,'">');var mn=1;V.forEach(function(Nn,gn){0===gn?Lt+='<tableColumn id="'.concat(gn+1,'" name="X-Values"/>'):(Lt+='<tableColumn id="'.concat(gn+mn,'" name="').concat(Nn.name,'"/>
1'),mn++,Lt+='<tableColumn id="'.concat(gn+mn,'" name="Size').concat(gn,'"/>'))})}else A.opts._type===ue.SCATTER?(Lt+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(ve(V.length)).concat(V[0].values.length+1,'" totalsRowShown="0">'),Lt+='<tableColumns count="'.concat(V.length,'">'),V.forEach(function(Nn,gn){Lt+='<tableColumn id="'.concat(gn+1,'" name="').concat(0===gn?"X-Values":"Y-Value ").concat(gn,'"/>')})):(Lt+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(ve(V.length+V[0].labels.length)).concat(V[0].labels[0].length+1,'\'" totalsRowShown="0">'),Lt+='<tableColumns count="'.concat(V.length+V[0].labels.length,'">'),V[0].labels.forEach(function(Nn,gn){Lt+='<tableColumn id="'.concat(gn+1,'" name="Column').concat(gn+1,'"/>')}),V.forEach(function(Nn,gn){Lt+='<tableColumn id="'.concat(gn+V[0].labels.length+1,'" name="').concat(St(Nn.name),'"/>')}));Lt+="</tableColumns>",Lt+='<tableStyleInfo showFirstColumn="0" showLastColumn="0" showRowStripes="1" showColumnStripes="0"/>',G.file("xl/tables/table1.xml",Lt+="</table>");var dn='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(dn+='<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',dn+=A.opts._type===ue.BUBBLE||A.opts._type===ue.BUBBLE3D?'<dimension ref="A1:'.concat(ve(E)).concat(V[0].values.length+1,'"/>'):A.opts._type===ue.SCATTER?'<dimension ref="A1:'.concat(ve(V.length)).concat(V[0].values.length+1,'"/>'):'<dimension ref="A1:'.concat(ve(V.length+1)).concat(V[0].values.length+1,'"/>'),dn+='<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="B1" sqref="B1"/></sheetView></sheetViews>',dn+='<sheetFormatPr baseColWidth="10" defaultRowHeight="16"/>',A.opts._type===ue.BUBBLE||A.opts._type===ue.BUBBLE3D){dn+="<sheetData>",dn+='<row r="1" spans="1:'.concat(E,'">'),dn+='<c r="A1" t="s"><v>0</v></c>';for(var cn=1;cn<E;cn++)dn+='<c r="'.concat(ve(cn+1),'1" t="s"><v>').concat(cn,"</v></c>");dn+="</row>",V[0].values.forEach(function(Nn,gn){dn+='<row r="'.concat(gn+2,'" spans="1:').concat(E,'">'),dn+='<c r="A'.concat(gn+2,'"><v>').concat(Nn,"</v></c>");for(var vn=2,ti=1;ti<V.length;ti++)dn+='<c r="'.concat(ve(vn)).concat(gn+2,'"><v>').concat(V[ti].values[gn]||"","</v></c>"),vn++,dn+='<c r="'.concat(ve(vn)).concat(gn+2,'"><v>').concat(V[ti].sizes[gn]||"","</v></c>"),vn++;dn+="</row>"})}else if(A.opts._type===ue.SCATTER){for(dn+="<sheetData>",dn+='<row r="1" spans="1:'.concat(V.length,'">'),cn=0;cn<V.length;cn++)dn+='<c r="'.concat(ve(cn+1),'1" t="s"><v>').concat(cn,"</v></c>");dn+="</row>",V[0].values.forEach(function(Nn,gn){dn+='<row r="'.concat(gn+2,'" spans="1:').concat(V.length,'">'),dn+='<c r="A'.concat(gn+2,'"><v>').concat(Nn,"</v></c>");for(var vn=1;vn<V.length;vn++)dn+='<c r="'.concat(ve(vn+1)).concat(gn+2,'"><v>').concat(V[vn].values[gn]||0===V[vn].values[gn]?V[vn].values[gn]:"","</v></c>");dn+="</row>"})}else if(dn+="<sheetData>",re){for(dn+='<row r="1" spans="1:'.concat(V.length+V[0].labels.length,'">'),cn=0;cn<V[0].labels.length;cn++)dn+='<c r="'.concat(ve(cn+1),'1" t="s"><v>0</v></c>');for(cn=V[0].labels.length-1;cn<V.length+V[0].labels.length-1;cn++)dn+='<c r="'.concat(ve(cn+V[0].labels.length),'1" t="s"><v>').concat(cn,"</v></c>");dn+="</row>";var Zn=V.length,zn=V[0].labels[0].length,qn=V[0].labels.length,Zi=function(Nn){dn+='<row r="'.concat(Nn+2,'" spans="1:').concat(Zn+qn,'">');var gn=Zn,vn=V[0].labels.slice().reverse();vn.forEach(function(er,Or){if(er[Nn]){var hr=0===Or?1:vn[Or-1].filter(function(Tn){return Tn&&""!==Tn}).length;gn+=hr,dn+='<c r="'.concat(ve(Nn+1+Or)).concat(Nn+2,'" t="s"><v>').concat(gn,"</v></c>")}});for(var ti=0;ti<Zn;ti++)dn+='<c r="'.concat(ve(qn+ti+1)).concat(Nn+2,'"><v>').concat(V[ti].values[Nn]||0,"</v></c>");dn+="</row>"};for(cn=0;cn<zn;cn++)Zi(cn)}else{for(dn+='<row r="1" spans="1:'.concat(V.length+V[0].labels.length,'">
1'),V[0].labels.forEach(function(Nn,gn){dn+='<c r="'.concat(ve(gn+1),'1" t="s"><v>0</v></c>')}),cn=0;cn<V.length;cn++)dn+='<c r="'.concat(ve(cn+1+V[0].labels.length),'1" t="s"><v>').concat(cn+1,"</v></c>");dn+="</row>",V[0].labels[0].forEach(function(Nn,gn){dn+='<row r="'.concat(gn+2,'" spans="1:').concat(V.length+V[0].labels.length,'">');for(var vn=V[0].labels.length-1;vn>=0;vn--)dn+='<c r="'.concat(ve(V[0].labels.length-vn)).concat(gn+2,'" t="s">'),dn+="<v>".concat(V.length+gn+1,"</v>"),dn+="</c>";for(var ti=0;ti<V.length;ti++)dn+='<c r="'.concat(ve(V[0].labels.length+ti+1)).concat(gn+2,'"><v>').concat(V[ti].values[gn]||"","</v></c>");dn+="</row>"})}dn+="</sheetData>",dn+='<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>',G.file("xl/worksheets/sheet1.xml",dn+="</worksheet>\n"),G.generateAsync({type:"base64"}).then(function(Nn){X.file("ppt/embeddings/Microsoft_Excel_Worksheet".concat(A.globalId,".xlsx"),Nn,{base64:!0}),X.file("ppt/charts/_rels/"+A.fileName+".rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+'<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/package" Target="../embeddings/Microsoft_Excel_Worksheet'.concat(A.globalId,'.xlsx"/>')+"</Relationships>"),X.file("ppt/charts/".concat(A.fileName),function ie(A){var X,V,he,S,Ie='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',C=!1;if(Ie+='<c:chartSpace xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">',Ie+='<c:date1904 val="0"/>',Ie+='<c:roundedCorners val="'.concat(A.opts.chartArea.roundedCorners?"1":"0",'"/>'),Ie+="<c:chart>",A.opts.showTitle?(Ie+=Ke({title:A.opts.title||"Chart Title",color:A.opts.titleColor,fontFace:A.opts.titleFontFace,fontSize:A.opts.titleFontSize||18,titleAlign:A.opts.titleAlign,titleBold:A.opts.titleBold,titlePos:A.opts.titlePos,titleRotate:A.opts.titleRotate},A.opts.x,A.opts.y),Ie+='<c:autoTitleDeleted val="0"/>'):Ie+='<c:autoTitleDeleted val="1"/>',A.opts._type===ue.BAR3D&&(Ie+='<c:view3D><c:rotX val="'.concat(A.opts.v3DRotX,'"/><c:rotY val="').concat(A.opts.v3DRotY,'"/><c:rAngAx val="').concat(A.opts.v3DRAngAx?1:0,'"/><c:perspective val="').concat(A.opts.v3DPerspective,'"/></c:view3D>')),Ie+="<c:plotArea>",A.opts.layout?(Ie+="<c:layout>",Ie+=" <c:manualLayout>",Ie+='  <c:layoutTarget val="inner" />',Ie+='  <c:xMode val="edge" />',Ie+='  <c:yMode val="edge" />',Ie+='  <c:x val="'+(A.opts.layout.x||0)+'" />',Ie+='  <c:y val="'+(A.opts.layout.y||0)+'" />',Ie+='  <c:w val="'+(A.opts.layout.w||1)+'" />',Ie+='  <c:h val="'+(A.opts.layout.h||1)+'" />',Ie+=" </c:manualLayout>",Ie+="</c:layout>"):Ie+="<c:layout/>",Array.isArray(A.opts._type)?A.opts._type.forEach(function(se){var G=N(N({},A.opts),se.options);C=C||G.secondaryValAxis,Ie+=Ae(se.type,se.data,G,G.secondaryValAxis?Mt:Xe,G.secondaryCatAxis?Jt:Et)}):Ie+=Ae(A.opts._type,A.data,A.opts,Xe,Et),A.opts._type!==ue.PIE&&A.opts._type!==ue.DOUGHNUT){if(A.opts.valAxes&&A.opts.valAxes.length>1&&!C)throw new Error("Secondary axis must be used by one of the multiple charts");if(A.opts.catAxes){if(!A.opts.valAxes||A.opts.valAxes.length!==A.opts.catAxes.length)throw new Error("There must be the same number of value and category axes.");Ie+=Y(N(N({},A.opts),A.opts.catAxes[0]),Et,Xe)}else Ie+=Y(A.opts,Et,Xe);A.opts.valAxes?(Ie+=ne(N(N({},A.opts),A.opts.valAxes[0]),Xe),A.opts.valAxes[1]&&(Ie+=ne(N(N({},A.opts),A.opts.valAxes[1]),Mt))):(Ie+=ne(A.opts,Xe),A.opts._type===ue.BAR3D&&(Ie+=function fe(A,X,V){var he="";return he+="<c:serAx>",he+='  <c:axId val="'+X+'"/>',he+='  <c:scaling><c:orientation val="'+(A.serAxisOrientation||"minMax")+'"/></c:scaling>',he+='  <c:delete val="'+(A.serAxisHidden?"1":"0")+'"/>',he+='  <c:axPos val="'+("col"===A.barDir?"b":"l")+'"/>',he+="none"!==A.serGridLine.style?be(A.serGridLine):"",A.showSerAxisTitle&&(he+=Ke({color:A.serAxisTitleColor,fontFace:A.serAxisTitleFontFace,fontSize:A.serAxisTitleFontSize,titleRotate:A.serAxisTitleRotate,title:A.serAxisTitle||"Axis Title"})),he+='  <c:numFmt formatCode="'.concat(St(A.serLabelFormatCode)||"General",'" sourceLinked="0"/>'),he+='  <c:majorTickMark val="out"/>
1',he+='  <c:minorTickMark val="none"/>',he+='  <c:tickLblPos val="'.concat(A.serAxisLabelPos||"col"===A.barDir?"low":"nextTo",'"/>'),he+="  <c:spPr>",he+='    <a:ln w="12700" cap="flat">',he+=A.serAxisLineShow?"<a:solidFill>".concat(qt(A.serAxisLineColor||Pe.color),"</a:solidFill>"):"<a:noFill/>",he+='      <a:prstDash val="solid"/>',he+="      <a:round/>",he+="    </a:ln>",he+="  </c:spPr>",he+="  <c:txPr>",he+="    <a:bodyPr/>",he+="    <a:lstStyle/>",he+="    <a:p>",he+="    <a:pPr>",he+='    <a:defRPr sz="'.concat(Math.round(100*(A.serAxisLabelFontSize||ht)),'" b="').concat(A.serAxisLabelFontBold?"1":"0",'" i="').concat(A.serAxisLabelFontItalic?"1":"0",'" u="none" strike="noStrike">'),he+="      <a:solidFill>".concat(qt(A.serAxisLabelColor||Qe),"</a:solidFill>"),he+='      <a:latin typeface="'.concat(A.serAxisLabelFontFace||"Arial",'"/>'),he+="   </a:defRPr>",he+="  </a:pPr>",he+='  <a:endParaRPr lang="'+(A.lang||"en-US")+'"/>',he+="  </a:p>",he+=" </c:txPr>",he+=' <c:crossAx val="'+V+'"/>',he+=' <c:crosses val="autoZero"/>',A.serAxisLabelFrequency&&(he+=' <c:tickLblSkip val="'+A.serAxisLabelFrequency+'"/>'),A.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(function(S){A[S]&&("string"!=typeof A[S]||!["days","months","years"].includes(S.toLowerCase()))&&(console.warn('"'.concat(S,"\" must be one of: 'days','months','years' !")),A[S]=null)}),A.serAxisBaseTimeUnit&&(he+=' <c:baseTimeUnit  val="'.concat(A.serAxisBaseTimeUnit.toLowerCase(),'"/>')),A.serAxisMajorTimeUnit&&(he+=' <c:majorTimeUnit val="'.concat(A.serAxisMajorTimeUnit.toLowerCase(),'"/>')),A.serAxisMinorTimeUnit&&(he+=' <c:minorTimeUnit val="'.concat(A.serAxisMinorTimeUnit.toLowerCase(),'"/>')),A.serAxisMajorUnit&&(he+=' <c:majorUnit val="'.concat(A.serAxisMajorUnit,'"/>')),A.serAxisMinorUnit&&(he+=' <c:minorUnit val="'.concat(A.serAxisMinorUnit,'"/>'))),he+"</c:serAx>"}(A.opts,ct,Xe))),null!==(X=A.opts)&&void 0!==X&&X.catAxes&&null!==(V=A.opts)&&void 0!==V&&V.catAxes[1]&&(Ie+=Y(N(N({},A.opts),A.opts.catAxes[1]),Jt,Mt))}return A.opts.showDataTable&&(Ie+="<c:dTable>",Ie+='  <c:showHorzBorder val="'.concat(A.opts.showDataTableHorzBorder?1:0,'"/>'),Ie+='  <c:showVertBorder val="'.concat(A.opts.showDataTableVertBorder?1:0,'"/>'),Ie+='  <c:showOutline    val="'.concat(A.opts.showDataTableOutline?1:0,'"/>'),Ie+='  <c:showKeys       val="'.concat(A.opts.showDataTableKeys?1:0,'"/>'),Ie+="  <c:spPr>",Ie+="    <a:noFill/>",Ie+='    <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln>',Ie+="    <a:effectLst/>",Ie+="  </c:spPr>",Ie+="  <c:txPr>",Ie+='   <a:bodyPr rot="0" spcFirstLastPara="1" vertOverflow="ellipsis" vert="horz" wrap="square" anchor="ctr" anchorCtr="1"/>',Ie+="   <a:lstStyle/>",Ie+="   <a:p>",Ie+='     <a:pPr rtl="0">',Ie+='       <a:defRPr sz="'.concat(Math.round(100*(A.opts.dataTableFontSize||ht)),'" b="0" i="0" u="none" strike="noStrike" kern="1200" baseline="0">'),Ie+='         <a:solidFill><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill>',Ie+='         <a:latin typeface="+mn-lt"/>',Ie+='         <a:ea typeface="+mn-ea"/>',Ie+='         <a:cs typeface="+mn-cs"/>',Ie+="       </a:defRPr>",Ie+="     </a:pPr>",Ie+='    <a:endParaRPr lang="en-US"/>',Ie+="   </a:p>",Ie+=" </c:txPr>",Ie+="</c:dTable>"),Ie+="  <c:spPr>",Ie+=null!==(he=A.opts.plotArea.fill)&&void 0!==he&&he.color?$n(A.opts.plotArea.fill):"<a:noFill/>",Ie+=A.opts.plotArea.border?'<a:ln w="'.concat(Pt(A.opts.plotArea.border.pt),'" cap="flat">').concat($n(A.opts.plotArea.border.color),"</a:ln>"):"<a:ln><a:noFill/></a:ln>",Ie+="    <a:effectLst/>",Ie+="  </c:spPr>",Ie+="</c:plotArea>",A.opts.showLegend&&(Ie+="<c:legend>",Ie+='<c:legendPos val="'+A.opts.legendPos+'"/>',Ie+='<c:overlay val="0"/>',(A.opts.legendFontFace||A.opts.legendFontSize||A.opts.legendColor)&&(Ie+="<c:txPr>",Ie+="  <a:bodyPr/>",Ie+="  <a:lstStyle/>",Ie+="  <a:p>",Ie+="    <a:pPr>",Ie+=A.opts.legendFontSize?'<a:defRPr sz="'.concat(Math.round(100*Number(A.opts.legendFontSize)),'">'):"<a:defRPr>",A.opts.legendColor&&(Ie+=$n(A.opts.legendColor)),A.opts.legendFontFace&&(Ie+='<a:latin typeface="'+A.opts.legendFontFace+'"/>'),A.opts.legendFontFace&&(Ie+='<a:cs    typeface="'+A.opts.legendFontFace+'"/>'),Ie+="      </a:defRPr>",Ie+="    </a:pPr>",Ie+='    <a:endParaRPr lang="en-US"/>',Ie+="  </a:p>",Ie+="</c:txPr>"),Ie+="</c:legend>"),Ie+='  <c:plotVisOnly val="1"/>',Ie+='  <c:dispBlanksAs val="'+A.opts.displayBlanksAs+'"/>',A.opts._type===ue.SCATTER&&(Ie+='<c:showDLblsOverMax val="1"/>'),Ie+="</c:chart>",Ie+="<c:spPr>",Ie+=null!==(S=A.opts.chartArea.fill)&&void 0!==S&&S.color?$n(A.opts.chartArea.fill):"<a:noFill/>",Ie+=A.opts.chartArea.border?'<a:ln w="'.concat(Pt(A.opts.chartArea.border.pt),'" cap="flat">').concat($n(A.opts.chartArea.border.color),"</a:ln>"):"<a:ln><a:noFill/></a:ln>",Ie+="  <a:effectLst/>",Ie+="</c:spPr>",Ie+='<c:externalData r:id="rId1"><c:autoUpdate val="0"/></c:externalData>',Ie+="</c:chartSpace>"}(A)),S("")}).catch(function(Nn){Ie(Nn)})})];case 1:return[2,he.sent()]}})})}(E,se))}
1),C._relsMedia.forEach(function(E){if("online"!==E.type&&"hyperlink"!==E.type){var re=E.data&&"string"==typeof E.data?E.data:"";(re.includes(",")||re.includes(";"))&&re.includes(",")?re.includes(";")||(re="image/png;"+re):re="image/png;base64,"+re,se.file(E.Target.replace("..","ppt"),re.split(",").pop(),{base64:!0})}})},this.writeFileToBrowser=function(C,se){return v(X,void 0,void 0,function(){var G,E;return ee(this,function(re){switch(re.label){case 0:return(G=document.createElement("a")).setAttribute("style","display:none;"),G.dataset.interception="off",document.body.appendChild(G),window.URL.createObjectURL?(E=window.URL.createObjectURL(new Blob([se],{type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"})),G.href=E,G.download=C,G.click(),setTimeout(function(){window.URL.revokeObjectURL(E),document.body.removeChild(G)},100),[4,Promise.resolve(C)]):[3,2];case 1:return[2,re.sent()];case 2:return[2]}})})},this.exportPresentation=function(C){return v(X,void 0,void 0,function(){var se,G,E,re=this;return ee(this,function(tt){switch(tt.label){case 0:return se=[],G=[],E=new(w()),this.slides.forEach(function($t){G=G.concat(pt($t))}),this.slideLayouts.forEach(function($t){G=G.concat(pt($t))}),G=G.concat(pt(this.masterSlide)),[4,Promise.all(G).then(function(){return v(re,void 0,void 0,function(){var $t=this;return ee(this,function(Qt){switch(Qt.label){case 0:return this.slides.forEach(function(zt){zt._slideLayout&&function Se(A){(A._slideLayout._slideObjects||[]).forEach(function(X){X._type===Ue.placeholder&&0===A._slideObjects.filter(function(V){return V.options&&V.options.placeholder===X.options.placeholder}).length&&Xi(A,[{text:""}],X.options,!1)})}(zt)}),E.folder("_rels"),E.folder("docProps"),E.folder("ppt").folder("_rels"),E.folder("ppt/charts").folder("_rels"),E.folder("ppt/embeddings"),E.folder("ppt/media"),E.folder("ppt/slideLayouts").folder("_rels"),E.folder("ppt/slideMasters").folder("_rels"),E.folder("ppt/slides").folder("_rels"),E.folder("ppt/theme"),E.folder("ppt/notesMasters").folder("_rels"),E.folder("ppt/notesSlides").folder("_rels"),E.file("[Content_Types].xml",function $r(A,X,V){var he='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+T;return he+='<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">',he+='<Default Extension="xml" ContentType="application/xml"/>',he+='<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>',he+='<Default Extension="jpeg" ContentType="image/jpeg"/>',he+='<Default Extension="jpg" ContentType="image/jpg"/>',he+='<Default Extension="svg" ContentType="image/svg+xml"/>',he+='<Default Extension="png" ContentType="image/png"/>',he+='<Default Extension="gif" ContentType="image/gif"/>',he+='<Default Extension="m4v" ContentType="video/mp4"/>',he+='<Default Extension="mp4" ContentType="video/mp4"/>',A.forEach(function(S){(S._relsMedia||[]).forEach(function(Ie){"image"!==Ie.type&&"online"!==Ie.type&&"chart"!==Ie.type&&"m4v"!==Ie.extn&&!he.includes(Ie.type)&&(he+='<Default Extension="'+Ie.extn+'" ContentType="'+Ie.type+'"/>')})}),he+='<Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>',he+='<Default Extension="xlsx" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"/>',he+='<Override PartName="/ppt/presentation.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"/>',he+='<Override PartName="/ppt/notesMasters/notesMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml"/>',A.forEach(function(S,Ie){he+='<Override PartName="/ppt/slideMasters/slideMaster'.concat(Ie+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>'),he+='<Override PartName="/ppt/slides/slide'.concat(Ie+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>'),S._relsChart.forEach(function(C){he+='<Override PartName="'.concat(C.Target,'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>')})}),he+='<Override PartName="/ppt/presProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presPro
1ps+xml"/>',he+='<Override PartName="/ppt/viewProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml"/>',he+='<Override PartName="/ppt/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>',he+='<Override PartName="/ppt/tableStyles.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"/>',X.forEach(function(S,Ie){he+='<Override PartName="/ppt/slideLayouts/slideLayout'.concat(Ie+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>'),(S._relsChart||[]).forEach(function(C){he+=' <Override PartName="'+C.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'})}),A.forEach(function(S,Ie){he+='<Override PartName="/ppt/notesSlides/notesSlide'.concat(Ie+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml"/>')}),V._relsChart.forEach(function(S){he+=' <Override PartName="'+S.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'}),V._relsMedia.forEach(function(S){"image"!==S.type&&"online"!==S.type&&"chart"!==S.type&&"m4v"!==S.extn&&!he.includes(S.type)&&(he+=' <Default Extension="'+S.extn+'" ContentType="'+S.type+'"/>')}),he+=' <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>',he+=' <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>',he+="</Types>"}(this.slides,this.slideLayouts,this.masterSlide)),E.file("_rels/.rels",function tr(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T,'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n\t\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>\n\t\t<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>\n\t\t<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="ppt/presentation.xml"/>\n\t\t</Relationships>')}()),E.file("docProps/app.xml",function jr(A,X){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T,'<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n\t<TotalTime>0</TotalTime>\n\t<Words>0</Words>\n\t<Application>Microsoft Office PowerPoint</Application>\n\t<PresentationFormat>On-screen Show (16:9)</PresentationFormat>\n\t<Paragraphs>0</Paragraphs>\n\t<Slides>').concat(A.length,"</Slides>\n\t<Notes>").concat(A.length,'</Notes>\n\t<HiddenSlides>0</HiddenSlides>\n\t<MMClips>0</MMClips>\n\t<ScaleCrop>false</ScaleCrop>\n\t<HeadingPairs>\n\t\t<vt:vector size="6" baseType="variant">\n\t\t\t<vt:variant><vt:lpstr>Fonts Used</vt:lpstr></vt:variant>\n\t\t\t<vt:variant><vt:i4>2</vt:i4></vt:variant>\n\t\t\t<vt:variant><vt:lpstr>Theme</vt:lpstr></vt:variant>\n\t\t\t<vt:variant><vt:i4>1</vt:i4></vt:variant>\n\t\t\t<vt:variant><vt:lpstr>Slide Titles</vt:lpstr></vt:variant>\n\t\t\t<vt:variant><vt:i4>').concat(A.length,'</vt:i4></vt:variant>\n\t\t</vt:vector>\n\t</HeadingPairs>\n\t<TitlesOfParts>\n\t\t<vt:vector size="').concat(A.length+1+2,'" baseType="lpstr">\n\t\t\t<vt:lpstr>Arial</vt:lpstr>\n\t\t\t<vt:lpstr>Calibri</vt:lpstr>\n\t\t\t<vt:lpstr>Office Theme</vt:lpstr>\n\t\t\t').concat(A.map(function(V,he){return"<vt:lpstr>Slide ".concat(he+1,"</vt:lpstr>")}).join(""),"\n\t\t</vt:vector>\n\t</TitlesOfParts>\n\t<Company>").concat(X,"</Company>\n\t<LinksUpToDate>false</LinksUpToDate>\n\t<SharedDoc>false</SharedDoc>\n\t<HyperlinksChanged>false</HyperlinksChanged>\n\t<AppVersion>16.0000</AppVersion>\n\t</Properties>")}(this.slides,this.company)),E.file("docProps/core.xml",function ur(A,X,V,he){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n\t<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n\t\t<dc:title>'.concat(St(A),"</dc:title>\n\t\t<dc:subject>").concat(St(X),"</dc:subject>\n\t\t<dc:creator>").concat(St(V),"</dc:creator>\n\t\t<cp:lastModifiedBy>").concat(St(V),"</cp:lastModifiedBy>\n\t\t<cp:revision>").concat(he,'</cp:revision>\n\t\t<dcterms:created xsi:type="dcterms:W3CDTF">').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),'</dcterms:created>\n\t\t<dcterms:modified xsi:type="dcterms:W3CDTF">').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),"</dcterms:modified>\n\t</cp:coreProperties>")}(this.title,this.subject,this.author,this.revision)),E.file("ppt/_rels/presentation.xml.rels",function qe(A){var X=1,V='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+T;V+='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',V+='<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>';for(var he=1;he<=A.length;he++)V+='<Relationship Id="rId'.concat(++X,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide').concat(he,'.xml"/>');return X++,V+('<Relationship Id="rId'.concat(X+0,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notes
1Master" Target="notesMasters/notesMaster1.xml"/>')+'<Relationship Id="rId'.concat(X+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" Target="presProps.xml"/>')+'<Relationship Id="rId'.concat(X+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" Target="viewProps.xml"/>')+'<Relationship Id="rId'.concat(X+3,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>')+'<Relationship Id="rId'.concat(X+4,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" Target="tableStyles.xml"/>')+"</Relationships>")}(this.slides)),E.file("ppt/theme/theme1.xml",function nr(A){var X,V,he,S,Ie=null!==(X=A.theme)&&void 0!==X&&X.headFontFace?'<a:latin typeface="'.concat(null===(V=A.theme)||void 0===V?void 0:V.headFontFace,'"/>'):'<a:latin typeface="Calibri Light" panose="020F0302020204030204"/>',C=null!==(he=A.theme)&&void 0!==he&&he.bodyFontFace?'<a:latin typeface="'.concat(null===(S=A.theme)||void 0===S?void 0:S.bodyFontFace,'"/>'):'<a:latin typeface="Calibri" panose="020F0502020204030204"/>';return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont>'.concat(Ie,'<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\u6e38\u30b4\u30b7\u30c3\u30af Light"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u7b49\u7ebf Light"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont>').concat(C,'<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\u6e38\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u7b49\u7ebf"/>
1<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>')}(this)),E.file("ppt/presentation.xml",function Ji(A){var X='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T)+'<p:presentation xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" '+'xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" '.concat(A.rtlMode?'rtl="
11"':"",' saveSubsetFonts="1" autoCompressPictures="0">');X+='<p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>',X+="<p:sldIdLst>",A.slides.forEach(function(he){return X+='<p:sldId id="'.concat(he._slideId,'" r:id="rId').concat(he._rId,'"/>')}),X+="</p:sldIdLst>",X+='<p:notesMasterIdLst><p:notesMasterId r:id="rId'.concat(A.slides.length+2,'"/></p:notesMasterIdLst>'),X+='<p:sldSz cx="'.concat(A.presLayout.width,'" cy="').concat(A.presLayout.height,'"/>'),X+='<p:notesSz cx="'.concat(A.presLayout.height,'" cy="').concat(A.presLayout.width,'"/>'),X+="<p:defaultTextStyle>";for(var V=1;V<10;V++)X+="<a:lvl".concat(V,'pPr marL="').concat(457200*(V-1),'" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1">')+'<a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/>'+"</a:defRPr></a:lvl".concat(V,"pPr>");return X+="</p:defaultTextStyle>",A.sections&&A.sections.length>0&&(X+='<p:extLst><p:ext uri="{521415D9-36F7-43E2-AB2F-B90AF26B5E84}">',X+='<p14:sectionLst xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main">',A.sections.forEach(function(he){X+='<p14:section name="'.concat(St(he.title),'" id="{').concat(xt("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),'}"><p14:sldIdLst>'),he._slides.forEach(function(S){return X+='<p14:sldId id="'.concat(S._slideId,'"/>')}),X+="</p14:sldIdLst></p14:section>"}),X+="</p14:sectionLst></p:ext>",X+='<p:ext uri="{EFAFB233-063F-42B5-8137-9DF3F51BA10A}"><p15:sldGuideLst xmlns:p15="http://schemas.microsoft.com/office/powerpoint/2012/main"/></p:ext>',X+="</p:extLst>"),X+="</p:presentation>"}(this)),E.file("ppt/presProps.xml",function fi(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T,'<p:presentationPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"/>')}()),E.file("ppt/tableStyles.xml",function gi(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T,'<a:tblStyleLst xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" def="{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}"/>')}()),E.file("ppt/viewProps.xml",function pr(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T,'<p:viewPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:normalViewPr horzBarState="maximized"><p:restoredLeft sz="15611"/><p:restoredTop sz="94610"/></p:normalViewPr><p:slideViewPr>
1<p:cSldViewPr snapToGrid="0" snapToObjects="1"><p:cViewPr varScale="1"><p:scale><a:sx n="136" d="100"/><a:sy n="136" d="100"/></p:scale><p:origin x="216" y="312"/></p:cViewPr><p:guideLst/></p:cSldViewPr></p:slideViewPr><p:notesTextViewPr><p:cViewPr><p:scale><a:sx n="1" d="1"/><a:sy n="1" d="1"/></p:scale><p:origin x="0" y="0"/></p:cViewPr></p:notesTextViewPr><p:gridSpacing cx="76200" cy="76200"/></p:viewPr>')}()),this.slideLayouts.forEach(function(zt,Lt){E.file("ppt/slideLayouts/slideLayout".concat(Lt+1,".xml"),function un(A){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n\t\t<p:sldLayout xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" preserve="1">\n\t\t'.concat(ln(A),"\n\t\t<p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sldLayout>")}(zt)),E.file("ppt/slideLayouts/_rels/slideLayout".concat(Lt+1,".xml.rels"),function Pn(A,X){return An(X[A-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])}(Lt+1,$t.slideLayouts))}),this.slides.forEach(function(zt,Lt){E.file("ppt/slides/slide".concat(Lt+1,".xml"),function mt(A){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T)+'<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"'+"".concat(A?.hidden?' show="0"':"",">")+"".concat(ln(A))+"<p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sld>"}(zt)),E.file("ppt/slides/_rels/slide".concat(Lt+1,".xml.rels"),function Cn(A,X,V){return An(A[V-1],[{target:"../slideLayouts/slideLayout".concat(_i(A,X,V),".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"},{target:"../notesSlides/notesSlide".concat(V,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"}])}($t.slides,$t.slideLayouts,Lt+1)),E.file("ppt/notesSlides/notesSlide".concat(Lt+1,".xml"),function jt(A){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T,'<p:notes xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:r><a:rPr lang="en-US" dirty="0"/><a:t>').concat(St(function vt(A){var X="";return A._slideObjects.forEach(function(V){V._type===Ue.notes&&(X+=V?.text&&V.text[0]?V.text[0].text:"")}),X.replace(/\r*\n/g,T)}(A)),'</a:t></a:r><a:endParaRPr lang="en-US" dirty="0"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Number Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="10"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:fld id="').concat(Fe,'" type="slidenum"><a:rPr lang="en-US"/><a:t>').concat(A._slideNum,'</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>')}(zt)),E.file("ppt/notesSlides/_rels/notesSlide".concat(Lt+1,".xml.rels"),function si(A){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n\t\t<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n\t\t\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notes
1Master" Target="../notesMasters/notesMaster1.xml"/>\n\t\t\t<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="../slides/slide'.concat(A,'.xml"/>\n\t\t</Relationships>')}(Lt+1))}),E.file("ppt/slideMasters/slideMaster1.xml",function Xt(A,X){var V=X.map(function(S,Ie){return'<p:sldLayoutId id="'.concat(2147483649+Ie,'" r:id="rId').concat(A._rels.length+Ie+1,'"/>')}),he='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+T;return he+='<p:sldMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">',he+=ln(A),he+='<p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>',he+="<p:sldLayoutIdLst>"+V.join("")+"</p:sldLayoutIdLst>",he+='<p:hf sldNum="0" hdr="0" ftr="0" dt="0"/>',(he+='<p:txStyles> <p:titleStyle>  <a:lvl1pPr algn="ctr" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="0"/></a:spcBef><a:buNone/><a:defRPr sz="4400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mj-lt"/><a:ea typeface="+mj-ea"/><a:cs typeface="+mj-cs"/></a:defRPr></a:lvl1pPr> </p:titleStyle> <p:bodyStyle>  <a:lvl1pPr marL="342900" indent="-342900" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="3200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr>  <a:lvl2pPr marL="742950" indent="-285750" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2013"/><a:defRPr sz="2800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr>  <a:lvl3pPr marL="1143000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr>  <a:lvl4pPr marL="1600200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2013"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr>  <a:lvl5pPr marL="2057400" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\xbb"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr>  <a:lvl6pPr marL="2514600" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr>  <a:lvl7pPr marL="2971800" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr>  <a:lvl8pPr marL="3429000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr>  <a:lvl9pPr marL="3886200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:bodyStyle> <p:otherStyle>  <a:defPPr><a:defRPr lang="en-US"/></a:defPPr>  <a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr>  <a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr>  <a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr>  <a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr>  <a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr>  <a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr>  <a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr>  <a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr>  <a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:otherStyle></p:txStyles>')+"</p:sldMaster>"}(this.masterSlide,this.slideLayouts)),E.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",function Yn(A,X){var V=X.map(function(he,S){return{target:"../slideLayouts/slideLayout".concat(S+1,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}});return V.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),An(A,V)}(this.masterSlide,this.slideLayouts)),E.file("ppt/notesMasters/notesMaster1.xml",function Ut(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T,'<p:notesMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Header Placeholder 1"/>
1<p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="hdr" sz="quarter"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Date Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="dt" idx="1"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{5282F153-3F37-0F45-9E97-73ACFA13230C}" type="datetimeFigureOut"><a:rPr lang="en-US"/><a:t>7/23/19</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Image Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg" idx="2"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="1143000"/><a:ext cx="5486400" cy="3086100"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom><a:noFill/><a:ln w="12700"><a:solidFill><a:prstClr val="black"/></a:solidFill></a:ln></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="ctr"/><a:lstStyle/><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="5" name="Notes Placeholder 4"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" sz="quarter" idx="3"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="4400550"/><a:ext cx="5486400" cy="3600450"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle/><a:p><a:pPr lvl="0"/><a:r><a:rPr lang="en-US"/><a:t>Click to edit Master text styles</a:t></a:r></a:p><a:p><a:pPr lvl="1"/><a:r><a:rPr lang="en-US"/><a:t>Second level</a:t></a:r></a:p><a:p><a:pPr lvl="2"/><a:r><a:rPr lang="en-US"/><a:t>Third level</a:t></a:r></a:p><a:p><a:pPr lvl="3"/><a:r><a:rPr lang="en-US"/><a:t>Fourth level</a:t></a:r></a:p><a:p><a:pPr lvl="4"/><a:r><a:rPr lang="en-US"/><a:t>Fifth level</a:t></a:r></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="6" name="Footer Placeholder 5"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="ftr" sz="quarter" idx="4"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="7" name="Slide Number Placeholder 6"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="5"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{CE5E9CC1-C706-0F49-92D6-E571CC5EEA8F}" type="slidenum"><a:rPr lang="en-US"/><a:t>\u2039#\u203a</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4
1="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/><p:notesStyle><a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr><a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr><a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr><a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr><a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr><a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr><a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr><a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr><a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr></p:notesStyle></p:notesMaster>')}()),E.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",function Fi(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(T,'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n\t\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="../theme/theme1.xml"/>\n\t\t</Relationships>')}()),this.slideLayouts.forEach(function(zt){$t.createChartMediaRels(zt,E,se)}),this.slides.forEach(function(zt){$t.createChartMediaRels(zt,E,se)}),this.createChartMediaRels(this.masterSlide,E,se),[4,Promise.all(se).then(function(){return v($t,void 0,void 0,function(){return ee(this,function(zt){switch(zt.label){case 0:return"STREAM"!==C.outputType?[3,2]:[4,E.generateAsync({type:"nodebuffer",compression:C.compression?"DEFLATE":"STORE"})];case 1:case 3:case 5:return[2,zt.sent()];case 2:return C.outputType?[4,E.generateAsync({type:C.outputType})]:[3,4];case 4:return[4,E.generateAsync({type:"blob",compression:C.compression?"DEFLATE":"STORE"})]}})})})];case 1:return[2,Qt.sent()]}})})})];case 1:return[2,tt.sent()]}})})},this.LAYOUTS={LAYOUT_4x3:{name:"screen4x3",width:9144e3,height:6858e3},LAYOUT_16x9:{name:"screen16x9",width:9144e3,height:5143500},LAYOUT_16x10:{name:"screen16x10",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:"custom",width:12192e3,height:6858e3}},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[gt].name,_sizeW:this.LAYOUTS[gt].width,_sizeH:this.LAYOUTS[gt].height,width:this.LAYOUTS[gt].width,height:this.LAYOUTS[gt].height},this._rtlMode=!1,this._slideLayouts=[{_margin:We,_name:je,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(A.prototype,"layout",{get:function(){return this._layout},set:function(X){var V=this.LAYOUTS[X];if(!V)throw new Error("UNKNOWN-LAYOUT");this._layout=X,this._presLayout=V}
1,enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"author",{get:function(){return this._author},set:function(X){this._author=X},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"company",{get:function(){return this._company},set:function(X){this._company=X},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"revision",{get:function(){return this._revision},set:function(X){this._revision=X},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"subject",{get:function(){return this._subject},set:function(X){this._subject=X},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"theme",{get:function(){return this._theme},set:function(X){this._theme=X},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"title",{get:function(){return this._title},set:function(X){this._title=X},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(X){this._rtlMode=X},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),A.prototype.stream=function(X){return v(this,void 0,void 0,function(){return ee(this,function(V){switch(V.label){case 0:return[4,this.exportPresentation({compression:X?.compression,outputType:"STREAM"})];case 1:return[2,V.sent()]}})})},A.prototype.write=function(X){return v(this,void 0,void 0,function(){var V;return ee(this,function(S){switch(S.label){case 0:return V="object"==typeof X&&X?.outputType?X.outputType:X||null,[4,this.exportPresentation({compression:!("object"!=typeof X||!X?.compression)&&X.compression,outputType:V})];case 1:return[2,S.sent()]}})})},A.prototype.writeFile=function(X){return v(this,void 0,void 0,function(){var V,he,S,Ie,C=this;return ee(this,function(se){switch(se.label){case 0:return V=typeof window>"u"?R(9912):null,"string"==typeof X&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)"),he="object"==typeof X&&X?.fileName?X.fileName:"string"==typeof X?X:"",S=!("object"!=typeof X||!X?.compression)&&X.compression,Ie=he?he.toString().toLowerCase().endsWith(".pptx")?he:he+".pptx":"Presentation.pptx",[4,this.exportPresentation({compression:S,outputType:V?"nodebuffer":null}).then(function(G){return v(C,void 0,void 0,function(){return ee(this,function(E){switch(E.label){case 0:return V?[4,new Promise(function(re,tt){V.writeFile(Ie,G,function($t){$t?tt($t):re(Ie)})})]:[3,2];case 1:case 3:return[2,E.sent()];case 2:return[4,this.writeFileToBrowser(Ie,G)]}})})})];case 1:return[2,se.sent()]}})})},A.prototype.addSection=function(X){X?X.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var V={_type:"user",_slides:[],title:X.title};X.order?this.sections.splice(X.order,0,V):this._sections.push(V)},A.prototype.addSlide=function(X){var V="string"==typeof X?X:X?.masterName?X.masterName:"",he={_name:this.LAYOUTS[gt].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(V){var S=this.slideLayouts.filter(function(G){return G._name===V})[0];S&&(he=S)}var Ie=new ce({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:he});if(this._slides.push(Ie),X?.sectionTitle){var C=this.sections.filter(function(G){return G.title===X.sectionTitle})[0];C?C._slides.push(Ie):console.warn('addSlide: unable to find section with title: "'.concat(X.sectionTitle,'"'))}else if(this.sections&&this.sections.length>0&&!X?.sectionTitle){var se=this._sections[this.sections.length-1];"default"===se._type?se._slides.push(Ie):this._sections.push({title:"Default-".concat(this.sections.filter(function(G){return"default"===G._type}).length+1),_type:"default",_slides:[Ie]})}return Ie},A.prototype.defineLayout=function(X){X?X.name?X.width?X.height?"number"!=typeof X.height?console.warn("defineLayout `height` should be a number (inches)"):"number"!=typeof X.width&&console.warn("defineLayout `width` should be a number (inches)"):console.warn("defineLayout requires `height`"):console.warn("defineLayout requires `width`"):console.warn("defineLayout requires `name`"):console.warn("defineLayout requires `{name, width, height}`"),this.LAYOUTS[X.name]={name:X.name,_sizeW:Math.round(Number(X.width)*W),_sizeH:Math.round(Number(X.height)*W),width:Math.round(Number(X.width)*W),height:Math.round(Number(X.height)*W)}
1},A.prototype.defineSlideMaster=function(X){if(!X.title)throw new Error("defineSlideMaster() object argument requires a `title` value. (https://gitbrent.github.io/PptxGenJS/docs/masters.html)");var V={_margin:X.margin||We,_name:X.title,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3+this.slideLayouts.length+1,_slideNumberProps:X.slideNumber||null,_slideObjects:[],background:X.background||null,bkgd:X.bkgd||null};(function Fn(A,X){A.bkgd&&(X.bkgd=A.bkgd),A.objects&&Array.isArray(A.objects)&&A.objects.length>0&&A.objects.forEach(function(V,he){var S=Object.keys(V)[0],Ie=X;Oe[S]&&"chart"===S?xn(Ie,V[S].type,V[S].data,V[S].opts):Oe[S]&&"image"===S?hi(Ie,V[S]):Oe[S]&&"line"===S?In(Ie,on.LINE,V[S]):Oe[S]&&"rect"===S?In(Ie,on.RECTANGLE,V[S]):Oe[S]&&"text"===S?Xi(Ie,[{text:V[S].text}],V[S].options,!1):Oe[S]&&"placeholder"===S&&(V[S].options.placeholder=V[S].options.name,delete V[S].options.name,V[S].options._placeholderType=V[S].options.type,delete V[S].options.type,V[S].options._placeholderIdx=100+he,Xi(Ie,[{text:V[S].text}],V[S].options,!0))}),A.slideNumber&&"object"==typeof A.slideNumber&&(X._slideNumberProps=A.slideNumber)})(X,V),this.slideLayouts.push(V),(X.background||X.bkgd)&&it(X.background,V),V._slideNumberProps&&!this.masterSlide._slideNumberProps&&(this.masterSlide._slideNumberProps=V._slideNumberProps)},A.prototype.tableToSlides=function(X,V){void 0===V&&(V={}),function hn(A,X,V,he){void 0===V&&(V={});var S=V||{};S.slideMargin=S.slideMargin||0===S.slideMargin?S.slideMargin:.5;var Ie,C=[],se=[],G=[],E=[],re=[],tt=[.5,.5,.5,.5],$t=0;if(!document.getElementById(X))throw new Error('tableToSlides: Table ID "'+X+'" does not exist!');he?._margin?(Array.isArray(he._margin)?tt=he._margin:isNaN(he._margin)||(tt=[he._margin,he._margin,he._margin,he._margin]),S.slideMargin=tt):S?.slideMargin&&(Array.isArray(S.slideMargin)?tt=S.slideMargin:isNaN(S.slideMargin)||(tt=[S.slideMargin,S.slideMargin,S.slideMargin,S.slideMargin])),Ie=(S.w?Ht(S.w):A.presLayout.width)-Ht(tt[1]+tt[3]),S.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- `tableToSlides` ----------------------------------------------------|"),console.log("| tableProps.h .................................... = ".concat(S.h)),console.log("| tableProps.w .................................... = ".concat(S.w)),console.log("| pptx.presLayout.width ........................... = ".concat((A.presLayout.width/W).toFixed(1))),console.log("| pptx.presLayout.height .......................... = ".concat((A.presLayout.height/W).toFixed(1))),console.log("| emuSlideTabW .................................... = ".concat((Ie/W).toFixed(1))));var Qt=document.querySelectorAll("#".concat(X," tr:first-child th"));0===Qt.length&&(Qt=document.querySelectorAll("#".concat(X," tr:first-child td"))),Qt.forEach(function(Lt){if(Lt.getAttribute("colspan"))for(var mn=0;mn<Number(Lt.getAttribute("colspan"));mn++)re.push(Math.round(Lt.offsetWidth/Number(Lt.getAttribute("colspan"))));else re.push(Lt.offsetWidth)}),re.forEach(function(Lt){$t+=Lt}),re.forEach(function(Lt,mn){var dn=Number((Number(Ie)*(Lt/$t*100)/100/W).toFixed(2)),cn=0,Zn=document.querySelector("#".concat(X," thead tr:first-child th:nth-child(").concat(mn+1,")"));Zn&&(cn=Number(Zn.getAttribute("data-pptx-min-width")));var zn=document.querySelector("#".concat(X," thead tr:first-child th:nth-child(").concat(mn+1,")"));zn&&(cn=Number(zn.getAttribute("data-pptx-width"))),E.push(cn>dn?cn:dn)}),S.verbose&&console.log("| arrColW ......................................... = [".concat(E.join(", "),"]")),["thead","tbody","tfoot"].forEach(function(Lt){document.querySelectorAll("#".concat(X," ").concat(Lt," tr")).forEach(function(mn){var dn=[];switch(Array.from(mn.cells).forEach(function(cn){var Zn=window.getComputedStyle(cn).getPropertyValue("color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(","),zn=window.getComputedStyle(cn).getPropertyValue("background-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");("rgba(0, 0, 0, 0)"===window.getComputedStyle(cn).getPropertyValue("background-color")||window.getComputedStyle(cn).getPropertyValue("transparent"))&&(zn=["255","255","255"]);var qn={align:null,bold:"bold"===window.getComputedStyle(cn).getPropertyValue("font-weight")||Number(window.getComputedStyle(cn).getPropertyValue("font-weight"))>=500,border:null,color:an(Number(Zn[0]),Number(Zn[1]),Number(Zn[2])),fill:{color:an(Number(zn[0]),Number(zn[1]),Number(zn[2]))},fontFace:(window.getComputedStyle(cn).getPropertyValue("font-family")||"").split(",")[0].replace(/"/g,"").replace("inherit","").replace("initial","")||null,fontSize:Number(window.getComputedStyle(cn).getPropertyValue("font-size").replace(/[a-z]/gi,"")),margin:null,colspan:Number(cn.getAttribute("colspan"))||null,rowspan:Number(cn.getAttribute("rowspan"))||null,valign:null};if(["left","center","right","start","end"].includes(window.getComputedStyle(cn).getPropertyValue("text-align"))){var Zi=window.getComputedStyle(cn).getPropertyValue("text-align").replace("start","left").replace("end","right");qn.align="center"===Zi?"center":"left"===Zi?"left":"right"===Zi?"right":null}if(["top","middle","bottom"].includes(window.getComputedStyle(cn).getPropertyValue("vertical-align"))){var Nn=window.getComputedStyle(cn).getPropertyValue("vertical-align");qn.valign="top"===Nn?"top":"middle"===Nn?"middle":"bottom"===Nn?"bottom":null}window.getComputedStyle(cn).getPropertyValue("padding-left")&&(qn.margin=[0,0,0,0],["padding-top","padding-right","padding-bottom","padding-left"].forEach(function(ti,er){qn.margin[er]=Math.round(Number(window.getComputedStyle(cn).getPropertyValue(ti).replace(/\D/gi,"")))})),(window.getComputedStyle(cn).getPropertyValue("border-top-width")||window.getComputedStyle(cn).getPropertyValue("border-right-width")||window.getComputedStyle(cn).getPropertyValue("border-bottom-width")||window.getComputedStyle(cn).getPropertyValue("border-left-width"))&&(qn.border=[null,
1null,null,null],["top","right","bottom","left"].forEach(function(ti,er){var yi,Or=Math.round(Number(window.getComputedStyle(cn).getPropertyValue("border-"+ti+"-width").replace("px","")));yi=window.getComputedStyle(cn).getPropertyValue("border-"+ti+"-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");var hr=an(Number(yi[0]),Number(yi[1]),Number(yi[2]));qn.border[er]={pt:Or,color:hr}})),dn.push({_type:Ue.tablecell,text:cn.innerText,options:qn})}),Lt){case"thead":C.push(dn);break;case"tbody":se.push(dn);break;case"tfoot":G.push(dn);break;default:console.log("table parsing: unexpected table part: ".concat(Lt))}})}),S._arrObjTabHeadRows=C||null,S.colW=E,Oi(l(l(l([],C,!0),se,!0),G,!0),S,A.presLayout,he).forEach(function(Lt,mn){var dn=A.addSlide({masterName:S.masterSlideName||null});0===mn&&(S.y=S.y||tt[0]),mn>0&&(S.y=S.autoPageSlideStartY||S.newSlideStartY||tt[0]),S.verbose&&console.log("| opts.autoPageSlideStartY: ".concat(S.autoPageSlideStartY," / arrInchMargins[0]: ").concat(tt[0]," => opts.y = ").concat(S.y)),dn.addTable(Lt.rows,{x:S.x||tt[3],y:S.y,w:Number(Ie)/W,colW:E,autoPage:!1}),S.addImage&&(S.addImage.options=S.addImage.options||{},S.addImage.image&&(S.addImage.image.path||S.addImage.image.data)?dn.addImage({path:S.addImage.image.path,data:S.addImage.image.data,x:S.addImage.options.x,y:S.addImage.options.y,w:S.addImage.options.w,h:S.addImage.options.h}):console.warn("Warning: tableToSlides.addImage requires either `path` or `data`")),S.addShape&&dn.addShape(S.addShape.shapeName,S.addShape.options||{}),S.addTable&&dn.addTable(S.addTable.rows,S.addTable.options||{}
vendor: 5,483 bytes, line 1
1),S.addText&&dn.addText(S.addText.text,S.addText.options||{})})}(this,X,V,V?.masterSlideName?this.slideLayouts.filter(function(he){return he._name===V.masterSlideName})[0]:null)},A}()},4412:(en,Me,R)=>{"use strict";R.d(Me,{t:()=>w});var p=R(1413);class w extends p.B{constructor(v){super(),this._value=v}get value(){return this.getValue()}_subscribe(v){const ee=super._subscribe(v);return!ee.closed&&v.next(this._value),ee}getValue(){const{hasError:v,thrownError:ee,_value:l}=this;if(v)throw ee;return this._throwIfClosed(),l}next(v){super.next(this._value=v)}}},1985:(en,Me,R)=>{"use strict";R.d(Me,{c:()=>B});var p=R(7707),w=R(8359),N=R(3494),v=R(1203),ee=R(1026),l=R(8071),W=R(9786);let B=(()=>{class H{constructor(oe){oe&&(this._subscribe=oe)}lift(oe){const Ce=new H;return Ce.source=this,Ce.operator=oe,Ce}subscribe(oe,Ce,we){const Pe=function K(H){return H&&H instanceof p.vU||function e(H){return H&&(0,l.T)(H.next)&&(0,l.T)(H.error)&&(0,l.T)(H.complete)}(H)&&(0,w.Uv)(H)}(oe)?oe:new p.Ms(oe,Ce,we);return(0,W.Y)(()=>{const{operator:Qe,source:ht}=this;Pe.add(Qe?Qe.call(Pe,ht):ht?this._subscribe(Pe):this._trySubscribe(Pe))}),Pe}_trySubscribe(oe){try{return this._subscribe(oe)}catch(Ce){oe.error(Ce)}}forEach(oe,Ce){return new(Ce=T(Ce))((we,Pe)=>{const Qe=new p.Ms({next:ht=>{try{oe(ht)}catch(ot){Pe(ot),Qe.unsubscribe()}},error:Pe,complete:we});this.subscribe(Qe)})}_subscribe(oe){var Ce;return null===(Ce=this.source)||void 0===Ce?void 0:Ce.subscribe(oe)}[N.s](){return this}pipe(...oe){return(0,v.m)(oe)(this)}toPromise(oe){return new(oe=T(oe))((Ce,we)=>{let Pe;this.subscribe(Qe=>Pe=Qe,Qe=>we(Qe),()=>Ce(Pe))})}}return H.create=pe=>new H(pe),H})();function T(H){var pe;return null!==(pe=H??ee.$.Promise)&&void 0!==pe?pe:Promise}},1413:(en,Me,R)=>{"use strict";R.d(Me,{B:()=>W});var p=R(1985),w=R(8359);const v=(0,R(1853).L)(T=>function(){T(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=R(7908),l=R(9786);let W=(()=>{class T extends p.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(K){const H=new B(this,this);return H.operator=K,H}_throwIfClosed(){if(this.closed)throw new v}next(K){(0,l.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const H of this.currentObservers)H.next(K)}})}error(K){(0,l.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=K;const{observers:H}=this;for(;H.length;)H.shift().error(K)}})}complete(){(0,l.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:K}=this;for(;K.length;)K.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var K;return(null===(K=this.observers)||void 0===K?void 0:K.length)>0}_trySubscribe(K){return this._throwIfClosed(),super._trySubscribe(K)}_subscribe(K){return this._throwIfClosed(),this._checkFinalizedStatuses(K),this._innerSubscribe(K)}_innerSubscribe(K){const{hasError:H,isStopped:pe,observers:oe}=this;return H||pe?w.Kn:(this.currentObservers=null,oe.push(K),new w.yU(()=>{this.currentObservers=null,(0,ee.o)(oe,K)}))}_checkFinalizedStatuses(K){const{hasError:H,thrownError:pe,isStopped:oe}=this;H?K.error(pe):oe&&K.complete()}asObservable(){const K=new p.c;return K.source=this,K}}return T.create=(e,K)=>new B(e,K),T})();class B extends W{constructor(e,K){super(),this.destination=e,this.source=K}next(e){var K,H;null===(H=null===(K=this.destination)||void 0===K?void 0:K.next)||void 0===H||H.call(K,e)}error(e){var K,H;null===(H=null===(K=this.destination)||void 0===K?void 0:K.error)||void 0===H||H.call(K,e)}complete(){var e,K;null===(K=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===K||K.call(e)}_subscribe(e){var K,H;return null!==(H=null===(K=this.source)||void 0===K?void 0:K.subscribe(e))&&void 0!==H?H:w.Kn}}},7707:(en,Me,R)=>{"use strict";R.d(Me,{Ms:()=>we,vU:()=>H});var p=R(8071),w=R(8359),N=R(1026),v=R(5334),ee=R(5343);const l=T("C",void 0,void 0);function T(gt,je,Ct){return{kind:gt,value:je,error:Ct}}var e=R(9270),K=R(9786);class H extends w.yU{constructor(je){super(),this.isStopped=!1,je?(this.destination=je,(0,w.Uv)(je)&&je.add(this)):this.destination=ot}static create(je,Ct,kt){return new we(je,Ct,kt)}next(je){this.isStopped?ht(function B(gt){return T("N",gt,void 0)}(je),this):this._next(je)}error(je){this.isStopped?ht(function W(gt){return T("E",void 0,gt)}(je),this):(this.isStopped=!0,this._error(je))}complete(){this.isStopped?ht(l,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(je){this.destination.next(je)}_error(je){try{this.destination.error(je)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const pe=Function.prototype.bind;function oe(gt,je){return pe.call(gt,je)}class Ce{constructor(je){this.partialObserver=je}next(je){const{partialObserver:Ct}=this;if(Ct.next)try{Ct.next(je)}catch(kt){Pe(kt)}}error(je){const{partialObserver:Ct}=this;if(Ct.error)try{Ct.error(je)}catch(kt){Pe(kt)}else Pe(je)}complete(){const{partialObserver:je}=this;if(je.complete)try{je.complete()}catch(Ct){Pe(Ct)}}}class we extends H{constructor(je,Ct,kt){let We;if(super(),(0,p.T)(je)||!je)We={next:je??void 0,error:Ct??void 0,complete:kt??void 0};else{let at;
1this&&N.$.useDeprecatedNextContext?(at=Object.create(je),at.unsubscribe=()=>this.unsubscribe(),We={next:je.next&&oe(je.next,at),error:je.error&&oe(je.error,at),complete:je.complete&&oe(je.complete,at)}):We=je}this.destination=new Ce(We)}}function Pe(gt){N.$.useDeprecatedSynchronousErrorHandling?(0,K.l)(gt):(0,v.m)(gt)}function ht(gt,je){const{onStoppedNotification:Ct}=N.$;Ct&&e.f.setTimeout(()=>Ct(gt,je))}const ot={closed:!0,next:ee.l,error:function Qe(gt){throw gt},complete:ee.l}},8359:(en,Me,R)=>{"use strict";R.d(Me,{Kn:()=>l,yU:()=>ee,Uv:()=>W});var p=R(8071);const N=(0,R(1853).L)(T=>function(K){T(this),this.message=K?`${K.length} errors occurred during unsubscription:\n${K.map((H,pe)=>`${pe+1}) ${H.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=K});var v=R(7908);class ee{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:K}=this;if(K)if(this._parentage=null,Array.isArray(K))for(const oe of K)oe.remove(this);else K.remove(this);const{initialTeardown:H}=this;if((0,p.T)(H))try{H()}catch(oe){e=oe instanceof N?oe.errors:[oe]}const{_finalizers:pe}=this;if(pe){this._finalizers=null;for(const oe of pe)try{B(oe)}catch(Ce){e=e??[],Ce instanceof N?e=[...e,...Ce.errors]:e.push(Ce)}}if(e)throw new N(e)}}add(e){var K;if(e&&e!==this)if(this.closed)B(e);else{if(e instanceof ee){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(K=this._finalizers)&&void 0!==K?K:[]).push(e)}}_hasParent(e){const{_parentage:K}=this;return K===e||Array.isArray(K)&&K.includes(e)}_addParent(e){const{_parentage:K}=this;this._parentage=Array.isArray(K)?(K.push(e),K):K?[K,e]:e}_removeParent(e){const{_parentage:K}=this;K===e?this._parentage=null:Array.isArray(K)&&(0,v.o)(K,e)}remove(e){const{_finalizers:K}=this;K&&(0,v.o)(K,e),e instanceof ee&&e._removeParent(this)}}ee.EMPTY=(()=>{const T=new ee;return T.closed=!0,T})();const l=ee.EMPTY;function W(T){return T instanceof ee||T&&"closed"in T&&(0,p.T)(T.remove)&&(0,p.T)(T.add)&&(0,p.T)(T.unsubscribe)}function B(T){(0,p.T)(T)?T():T.unsubscribe()}},1026:(en,Me,R)=>{"use strict";R.d(Me,{$:()=>p});const p={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(en,Me,R)=>{"use strict";R.d(Me,{G:()=>l});var p=R(1985),w=R(8359),N=R(9898),v=R(4360),ee=R(9974);class l extends p.c{constructor(B,T){super(),this.source=B,this.subjectFactory=T,this._subject=null,this._refCount=0,this._connection=null,(0,ee.S)(B)&&(this.lift=B.lift)}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:B}=this;this._subject=this._connection=null,B?.unsubscribe()}connect(){let B=this._connection;if(!B){B=this._connection=new w.yU;const T=this.getSubject();B.add(this.source.subscribe((0,v._)(T,void 0,()=>{this._teardown(),T.complete()},e=>{this._teardown(),T.error(e)},()=>this._teardown()))),B.closed&&(this._connection=null,B=w.yU.EMPTY)}return B}refCount(){return(0,N.B)()(this)}}},4572:(en,Me,R)=>{"use strict";R.d(Me,{z:()=>e});var p=R(1985),w=R(3073),N=R(2806),v=R(3669),ee=R(6450),l=R(9326),W=R(8496),B=R(4360),T=R(5225);function e(...pe){const oe=(0,l.lI)(pe),Ce=(0,l.ms)(pe),{args:we,keys:Pe}=(0,w.D)(pe);if(0===we.length)return(0,N.H)([],oe);const Qe=new p.c(function K(pe,oe,Ce=v.D){return we=>{H(oe,()=>{const{length:Pe}=pe,Qe=new Array(Pe);let ht=Pe,ot=Pe;for(let gt=0;gt<Pe;gt++)H(oe,()=>{const je=(0,N.H)(pe[gt],oe);let Ct=!1;je.subscribe((0,B._)(we,kt=>{Qe[gt]=kt,Ct||(Ct=!0,ot--),ot||we.next(Ce(Qe.slice()))},()=>{--ht||we.complete()}))},we)},we)}}(we,oe,Pe?ht=>(0,W.e)(Pe,ht):v.D));return Ce?Qe.pipe((0,ee.I)(Ce)):Qe}function H(pe,oe,Ce){pe?(0,T.N)(Ce,pe,oe):oe()}},8793:(en,Me,R)=>{"use strict";R.d(Me,{x:()=>ee});var p=R(6365),N=R(9326),v=R(2806);function ee(...l){return function w(){return(0,p.U)(1)}()((0,v.H)(l,(0,N.lI)(l)))}},9030:(en,Me,R)=>{"use strict";R.d(Me,{v:()=>N});var p=R(1985),w=R(8750);function N(v){return new p.c(ee=>{(0,w.Tg)(v()).subscribe(ee)})}},983:(en,Me,R)=>{"use strict";R.d(Me,{w:()=>w});const w=new(R(1985).c)(ee=>ee.complete())},7468:(en,Me,R)=>{"use strict";R.d(Me,{p:()=>B});var p=R(1985),w=R(3073),N=R(8750),v=R(9326),ee=R(4360),l=R(6450),W=R(8496);function B(...T){const e=(0,v.ms)(T),{args:K,keys:H}=(0,w.D)(T),pe=new p.c(oe=>{const{length:Ce}=K;if(!Ce)return void oe.complete();const we=new Array(Ce);let Pe=Ce,Qe=Ce;for(let ht=0;ht<Ce;ht++){let ot=!1;(0,N.Tg)(K[ht]).subscribe((0,ee._)(oe,gt=>{ot||(ot=!0,Qe--),we[ht]=gt},()=>Pe--,void 0,()=>{(!Pe||!ot)&&(Qe||oe.next(H?(0,W.e)(H,we):we),oe.complete())}))}});return e?pe.pipe((0,l.I)(e)):pe}},2806:(en,Me,R)=>{"use strict";R.d(Me,{H:()=>Ct});var p=R(8750),w=R(941),N=R(9974);function v(kt,We=0){return(0,N.N)((at,le)=>{le.add(kt.schedule(()=>at.subscribe(le),We))})}var W=R(1985),T=R(4761),e=R(8071),K=R(5225);function pe(kt,We){if(!kt)throw new Error("Iterable cannot be null");return new W.c(at=>{(0,K.N)(at,We,()=>{const le=kt[Symbol.asyncIterator]();(0,K.N)(at,We,()=>{le.next().then(Xe=>{Xe.done?at.complete():at.next(Xe.value)})},0,!0)})})}var oe=R(5055),Ce=R(9858),we=R(7441),Pe=R(5397),Qe=R(7953),ht=R(591),ot=R(5196);function Ct(kt,We){return We?function je(kt,We){if(null!=kt){if((0,oe.l)(kt))return function ee(kt,We){return(0,p.Tg)(kt).pipe(v(We),(0,w.Q)(We))}(kt,We);if((0,we.X)(kt))return function B(kt,We){return new W.c(at=>{let le=0;return We.schedule(function(){le===kt.length?at.complete():(at.next(kt[le++]),at.closed||this.schedule())})})}(kt,We);if((0,Ce.y)(kt))return function l(kt,We){return(0,p.Tg)(kt).pipe(v(We),(0,w.Q)(We))}(kt,We);if((0,Qe.T)(kt))return pe(kt,We);if((0,Pe.x)(kt))return function H(kt,We){return new W.c(at=>{let le;return(0,K.N)(at,We,()=>{le=kt[T.l](),(0,K.N)(at,We,()=>{let Xe,Mt;try{({value:Xe,done:Mt}=le.next())}catch(Et){return void at.error(Et)}Mt?at.complete():at.next(Xe)},0,!0)}),()=>(0,e.T)(le?.return)&&le.return()})}(kt,We);if((0,ot.U)(kt))return function gt(kt,We){return pe((0,ot.C)(kt),We)}(kt,We)}throw(0,ht.L)(kt)}(kt,We):(0,p.Tg)(kt)}},3726:(en,Me,R)=>{"use strict";R.d(Me,{R:()=>e});var p=R(8750),w=R(1985),N=R(1397),v=R(7441),ee=R(8071),l=R(6450);const W=["addListener","removeListener"],B=["addEventListener","removeEventListener"],T=["on","off"];function e(Ce,we,Pe,Qe){if((0,ee.T)(Pe)&&(Qe=Pe,Pe=void 0),Qe)return e(Ce,we,Pe).pipe((0,l.I)(Qe));const[ht,ot]=function oe(Ce){return(0,ee.T)(Ce.addEventListener)&&(0,ee.T)(Ce.removeEventListener)}(Ce)?B.map(gt=>je=>Ce[gt](we,je,Pe)):function H(Ce){return(0,ee.T)(Ce.addListener)&&(0,ee.T)(Ce.removeListener)}(Ce)?W.map(K(Ce,we)):function pe(Ce){return(0,ee.T)(Ce.on)&&(0,ee.T)(Ce.off)}(Ce)?T.map(K(Ce,we)):[];if(!ht&&(0,v.X)(Ce))return(0,N.Z)(gt=>e(gt,we,Pe))((0,p.Tg)(Ce));if(!ht)throw new TypeError("Invalid event target");return new w.c(gt=>{const je=(...Ct)=>gt.next(1<Ct.length?Ct:Ct[0]);return ht(je),()=>ot(je)})}function K(Ce,we){return Pe=>Qe=>Ce[Pe](we,Qe)}},8750:(en,Me,R)=>{"use strict";R.d(Me,{Tg:()=>pe});var p=R(1635),w=R(7441),N=R(9858),v=R(1985),ee=R(5055),l=R(7953),W=R(591),B=R(5397),T=R(5196),e=R(8071),K=R(5334),H=R(3494);function pe(gt){if(gt instanceof v.c)return gt;if(null!=gt){if((0,ee.l)(gt))return function oe(gt){return new v.c(je=>{const Ct=gt[H.s]();if((0,e.T)(Ct.subscribe))return Ct.subscribe(je);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(gt);
1if((0,w.X)(gt))return function Ce(gt){return new v.c(je=>{for(let Ct=0;Ct<gt.length&&!je.closed;Ct++)je.next(gt[Ct]);je.complete()})}(gt);if((0,N.y)(gt))return function we(gt){return new v.c(je=>{gt.then(Ct=>{je.closed||(je.next(Ct),je.complete())},Ct=>je.error(Ct)).then(null,K.m)})}(gt);if((0,l.T)(gt))return Qe(gt);if((0,B.x)(gt))return function Pe(gt){return new v.c(je=>{for(const Ct of gt)if(je.next(Ct),je.closed)return;je.complete()})}(gt);if((0,T.U)(gt))return function ht(gt){return Qe((0,T.C)(gt))}(gt)}throw(0,W.L)(gt)}function Qe(gt){return new v.c(je=>{(function ot(gt,je){var Ct,kt,We,at;return(0,p.sH)(this,void 0,void 0,function*(){try{for(Ct=(0,p.xN)(gt);!(kt=yield Ct.next()).done;)if(je.next(kt.value),je.closed)return}catch(le){We={error:le}}finally{try{kt&&!kt.done&&(at=Ct.return)&&(yield at.call(Ct))}finally{if(We)throw We.error}}je.complete()})})(gt,je).catch(Ct=>je.error(Ct))})}},7786:(en,Me,R)=>{"use strict";R.d(Me,{h:()=>l});var p=R(6365),w=R(8750),N=R(983),v=R(9326),ee=R(2806);function l(...W){const B=(0,v.lI)(W),T=(0,v.R0)(W,1/0),e=W;return e.length?1===e.length?(0,w.Tg)(e[0]):(0,p.U)(T)((0,ee.H)(e,B)):N.w}},7673:(en,Me,R)=>{"use strict";R.d(Me,{of:()=>N});var p=R(9326),w=R(2806);function N(...v){const ee=(0,p.lI)(v);return(0,w.H)(v,ee)}},8810:(en,Me,R)=>{"use strict";R.d(Me,{$:()=>N});var p=R(1985),w=R(8071);function N(v,ee){const l=(0,w.T)(v)?v:()=>v,W=B=>B.error(l());return new p.c(ee?B=>ee.schedule(W,0,B):W)}},1584:(en,Me,R)=>{"use strict";R.d(Me,{O:()=>ee});var p=R(1985),w=R(3236),N=R(9470);function ee(l=0,W,B=w.b){let T=-1;return null!=W&&((0,N.m)(W)?B=W:T=W),new p.c(e=>{let K=function v(l){return l instanceof Date&&!isNaN(l)}(l)?+l-B.now():l;K<0&&(K=0);let H=0;return B.schedule(function(){e.closed||(e.next(H++),0<=T?this.schedule(void 0,T):e.complete())},K)})}},4360:(en,Me,R)=>{"use strict";R.d(Me,{_:()=>w});var p=R(7707);function w(v,ee,l,W,B){return new N(v,ee,l,W,B)}class N extends p.vU{constructor(ee,l,W,B,T,e){super(ee),this.onFinalize=T,this.shouldUnsubscribe=e,this._next=l?function(K){try{l(K)}catch(H){ee.error(H)}}:super._next,this._error=B?function(K){try{B(K)}catch(H){ee.error(H)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(K){ee.error(K)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ee;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:l}=this;super.unsubscribe(),!l&&(null===(ee=this.onFinalize)||void 0===ee||ee.call(this))}}}},3798:(en,Me,R)=>{"use strict";R.d(Me,{Z:()=>W});var p=R(3236),w=R(9974),N=R(8750),v=R(4360),l=R(1584);function W(B,T=p.E){return function ee(B){return(0,w.N)((T,e)=>{let K=!1,H=null,pe=null,oe=!1;const Ce=()=>{if(pe?.unsubscribe(),pe=null,K){K=!1;const Pe=H;H=null,e.next(Pe)}oe&&e.complete()},we=()=>{pe=null,oe&&e.complete()};T.subscribe((0,v._)(e,Pe=>{K=!0,H=Pe,pe||(0,N.Tg)(B(Pe)).subscribe(pe=(0,v._)(e,Ce,we))},()=>{oe=!0,(!K||!pe||pe.closed)&&e.complete()}))})}(()=>(0,l.O)(B,T))}},9437:(en,Me,R)=>{"use strict";R.d(Me,{W:()=>v});var p=R(8750),w=R(4360),N=R(9974);function v(ee){return(0,N.N)((l,W)=>{let e,B=null,T=!1;B=l.subscribe((0,w._)(W,void 0,void 0,K=>{e=(0,p.Tg)(ee(K,v(ee)(l))),B?(B.unsubscribe(),B=null,e.subscribe(W)):T=!0})),T&&(B.unsubscribe(),B=null,e.subscribe(W))})}},274:(en,Me,R)=>{"use strict";R.d(Me,{H:()=>N});var p=R(1397),w=R(8071);function N(v,ee){return(0,w.T)(ee)?(0,p.Z)(v,ee,1):(0,p.Z)(v,1)}},7771:(en,Me,R)=>{"use strict";R.d(Me,{B:()=>v});var p=R(3236),w=R(9974),N=R(4360);function v(ee,l=p.E){return(0,w.N)((W,B)=>{let T=null,e=null,K=null;const H=()=>{if(T){T.unsubscribe(),T=null;const oe=e;e=null,B.next(oe)}};function pe(){const oe=K+ee,Ce=l.now();if(Ce<oe)return T=this.schedule(void 0,oe-Ce),void B.add(T);H()}W.subscribe((0,N._)(B,oe=>{e=oe,K=l.now(),T||(T=l.schedule(pe,ee),B.add(T))},()=>{H(),B.complete()},void 0,()=>{e=T=null}))})}},9901:(en,Me,R)=>{"use strict";R.d(Me,{U:()=>N});var p=R(9974),w=R(4360);function N(v){return(0,p.N)((ee,l)=>{let W=!1;ee.subscribe((0,w._)(l,B=>{W=!0,l.next(B)},()=>{W||l.next(v),l.complete()}))})}},3294:(en,Me,R)=>{"use strict";R.d(Me,{F:()=>v});var p=R(3669),w=R(9974),N=R(4360);function v(l,W=p.D){return l=l??ee,(0,w.N)((B,T)=>{let e,K=!0;B.subscribe((0,N._)(T,H=>{const pe=W(H);(K||!l(e,pe))&&(K=!1,e=pe,T.next(H))}))})}function ee(l,W){return l===W}},5964:(en,Me,R)=>{"use strict";R.d(Me,{p:()=>N});var p=R(9974),w=R(4360);function N(v,ee){return(0,p.N)((l,W)=>{let B=0;l.subscribe((0,w._)(W,T=>v.call(ee,T,B++)&&W.next(T)))})}},980:(en,Me,R)=>{"use strict";R.d(Me,{j:()=>w});var p=R(9974);function w(N){return(0,p.N)((v,ee)=>{try{v.subscribe(ee)}finally{ee.add(N)}})}},1594:(en,Me,R)=>{"use strict";R.d(Me,{$:()=>W});var p=R(9350),w=R(5964),N=R(6697),v=R(9901),ee=R(3774),l=R(3669);function W(B,T){const e=arguments.length>=2;return K=>K.pipe(B?(0,w.p)((H,pe)=>B(H,pe,K)):l.D,(0,N.s)(1),e?(0,v.U)(T):(0,ee.v)(()=>new p.G))}},6354:(en,Me,R)=>{"use strict";R.d(Me,{T:()=>N});var p=R(9974),w=R(4360);function N(v,ee){return(0,p.N)((l,W)=>{let B=0;l.subscribe((0,w._)(W,T=>{W.next(v.call(ee,T,B++))}))})}},3703:(en,Me,R)=>{"use strict";R.d(Me,{u:()=>w});var p=R(6354);function w(N){return(0,p.T)(()=>N)}},6365:(en,Me,R)=>{"use strict";R.d(Me,{U:()=>N});var p=R(1397),w=R(3669);function N(v=1/0){return(0,p.Z)(w.D,v)}},1397:(en,Me,R)=>{"use strict";R.d(Me,{Z:()=>B});var p=R(6354),w=R(8750),N=R(9974),v=R(5225),ee=R(4360),W=R(8071);function B(T,e,K=1/0){return(0,W.T)(e)?B((H,pe)=>(0,p.T)((oe,Ce)=>e(H,oe,pe,Ce))((0,w.Tg)(T(H,pe))),K):("number"==typeof e&&(K=e),(0,N.N)((H,pe)=>function l(T,e,K,H,pe,oe,Ce,we){const Pe=[];let Qe=0,ht=0,ot=!1;const gt=()=>{ot&&!Pe.length&&!Qe&&e.complete()},je=kt=>Qe<H?Ct(kt):Pe.push(kt),Ct=kt=>{oe&&e.next(kt),Qe++;let We=!1;(0,w.Tg)(K(kt,ht++)).subscribe((0,ee._)(e,at=>{pe?.(at),oe?je(at):e.next(at)},()=>{We=!0},void 0,()=>{if(We)try{for(Qe--;Pe.length&&Qe<H;){const at=Pe.shift();Ce?(0,v.N)(e,Ce,()=>
1Ct(at)):Ct(at)}gt()}catch(at){e.error(at)}}))};return T.subscribe((0,ee._)(e,je,()=>{ot=!0,gt()})),()=>{we?.()}}(H,pe,T,K)))}},941:(en,Me,R)=>{"use strict";R.d(Me,{Q:()=>v});var p=R(5225),w=R(9974),N=R(4360);function v(ee,l=0){return(0,w.N)((W,B)=>{W.subscribe((0,N._)(B,T=>(0,p.N)(B,ee,()=>B.next(T),l),()=>(0,p.N)(B,ee,()=>B.complete(),l),T=>(0,p.N)(B,ee,()=>B.error(T),l)))})}},9898:(en,Me,R)=>{"use strict";R.d(Me,{B:()=>N});var p=R(9974),w=R(4360);function N(){return(0,p.N)((v,ee)=>{let l=null;v._refCount++;const W=(0,w._)(ee,void 0,void 0,void 0,()=>{if(!v||v._refCount<=0||0<--v._refCount)return void(l=null);const B=v._connection,T=l;l=null,B&&(!T||B===T)&&B.unsubscribe(),ee.unsubscribe()});v.subscribe(W),W.closed||(l=v.connect())})}},2816:(en,Me,R)=>{"use strict";R.d(Me,{S:()=>v});var p=R(9974),w=R(4360);function v(ee,l){return(0,p.N)(function N(ee,l,W,B,T){return(e,K)=>{let H=W,pe=l,oe=0;e.subscribe((0,w._)(K,Ce=>{const we=oe++;pe=H?ee(pe,Ce,we):(H=!0,Ce),B&&K.next(pe)},T&&(()=>{H&&K.next(pe),K.complete()})))}}(ee,l,arguments.length>=2,!0))}},7647:(en,Me,R)=>{"use strict";R.d(Me,{u:()=>ee});var p=R(8750),w=R(1413),N=R(7707),v=R(9974);function ee(W={}){const{connector:B=(()=>new w.B),resetOnError:T=!0,resetOnComplete:e=!0,resetOnRefCountZero:K=!0}=W;return H=>{let pe,oe,Ce,we=0,Pe=!1,Qe=!1;const ht=()=>{oe?.unsubscribe(),oe=void 0},ot=()=>{ht(),pe=Ce=void 0,Pe=Qe=!1},gt=()=>{const je=pe;ot(),je?.unsubscribe()};return(0,v.N)((je,Ct)=>{we++,!Qe&&!Pe&&ht();const kt=Ce=Ce??B();Ct.add(()=>{we--,0===we&&!Qe&&!Pe&&(oe=l(gt,K))}),kt.subscribe(Ct),!pe&&we>0&&(pe=new N.Ms({next:We=>kt.next(We),error:We=>{Qe=!0,ht(),oe=l(ot,T,We),kt.error(We)},complete:()=>{Pe=!0,ht(),oe=l(ot,e),kt.complete()}}),(0,p.Tg)(je).subscribe(pe))})(H)}}function l(W,B,...T){if(!0===B)return void W();if(!1===B)return;const e=new N.Ms({next:()=>{e.unsubscribe(),W()}});return(0,p.Tg)(B(...T)).subscribe(e)}},6496:(en,Me,R)=>{"use strict";R.d(Me,{t:()=>ee});var p=R(1413),w=R(6129);class N extends p.B{constructor(W=1/0,B=1/0,T=w.U){super(),this._bufferSize=W,this._windowTime=B,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=B===1/0,this._bufferSize=Math.max(1,W),this._windowTime=Math.max(1,B)}next(W){const{isStopped:B,_buffer:T,_infiniteTimeWindow:e,_timestampProvider:K,_windowTime:H}=this;
1B||(T.push(W),!e&&T.push(K.now()+H)),this._trimBuffer(),super.next(W)}_subscribe(W){this._throwIfClosed(),this._trimBuffer();const B=this._innerSubscribe(W),{_infiniteTimeWindow:T,_buffer:e}=this,K=e.slice();for(let H=0;H<K.length&&!W.closed;H+=T?1:2)W.next(K[H]);return this._checkFinalizedStatuses(W),B}_trimBuffer(){const{_bufferSize:W,_timestampProvider:B,_buffer:T,_infiniteTimeWindow:e}=this,K=(e?1:2)*W;if(W<1/0&&K<T.length&&T.splice(0,T.length-K),!e){const H=B.now();let pe=0;for(let oe=1;oe<T.length&&T[oe]<=H;oe+=2)pe=oe;pe&&T.splice(0,pe+1)}}}var v=R(7647);function ee(l,W,B){let T,e=!1;return l&&"object"==typeof l?({bufferSize:T=1/0,windowTime:W=1/0,refCount:e=!1,scheduler:B}=l):T=l??1/0,(0,v.u)({connector:()=>new N(T,W,B),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:e})}},9172:(en,Me,R)=>{"use strict";R.d(Me,{Z:()=>v});var p=R(8793),w=R(9326),N=R(9974);function v(...ee){const l=(0,w.lI)(ee);return(0,N.N)((W,B)=>{(l?(0,p.x)(ee,W,l):(0,p.x)(ee,W)).subscribe(B)})}},5558:(en,Me,R)=>{"use strict";R.d(Me,{n:()=>v});var p=R(8750),w=R(9974),N=R(4360);function v(ee,l){return(0,w.N)((W,B)=>{let T=null,e=0,K=!1;const H=()=>K&&!T&&B.complete();W.subscribe((0,N._)(B,pe=>{T?.unsubscribe();let oe=0;const Ce=e++;(0,p.Tg)(ee(pe,Ce)).subscribe(T=(0,N._)(B,we=>B.next(l?l(pe,we,Ce,oe++):we),()=>{T=null,H()}))},()=>{K=!0,H()}))})}},6697:(en,Me,R)=>{"use strict";R.d(Me,{s:()=>v});var p=R(983),w=R(9974),N=R(4360);function v(ee){return ee<=0?()=>p.w:(0,w.N)((l,W)=>{let B=0;l.subscribe((0,N._)(W,T=>{++B<=ee&&(W.next(T),ee<=B&&W.complete())}))})}},6977:(en,Me,R)=>{"use strict";R.d(Me,{Q:()=>ee});var p=R(9974),w=R(4360),N=R(8750),v=R(5343);function ee(l){return(0,p.N)((W,B)=>{(0,N.Tg)(l).subscribe((0,w._)(B,()=>B.complete(),v.l)),!B.closed&&W.subscribe(B)})}},8141:(en,Me,R)=>{"use strict";R.d(Me,{M:()=>ee});var p=R(8071),w=R(9974),N=R(4360),v=R(3669);function ee(l,W,B){const T=(0,p.T)(l)||W||B?{next:l,error:W,complete:B}:l;return T?(0,w.N)((e,K)=>{var H;null===(H=T.subscribe)||void 0===H||H.call(T);let pe=!0;e.subscribe((0,N._)(K,oe=>{var Ce;null===(Ce=T.next)||void 0===Ce||Ce.call(T,oe),K.next(oe)},()=>{var oe;pe=!1,null===(oe=T.complete)||void 0===oe||oe.call(T),K.complete()},oe=>{var Ce;pe=!1,null===(Ce=T.error)||void 0===Ce||Ce.call(T,oe),K.error(oe)},()=>{var oe,Ce;pe&&(null===(oe=T.unsubscribe)||void 0===oe||oe.call(T)),null===(Ce=T.finalize)||void 0===Ce||Ce.call(T)}))}):v.D}},3774:(en,Me,R)=>{"use strict";R.d(Me,{v:()=>v});var p=R(9350),w=R(9974),N=R(4360);function v(l=ee){return(0,w.N)((W,B)=>{let T=!1;W.subscribe((0,N._)(B,e=>{T=!0,B.next(e)},()=>T?B.complete():B.error(l())))})}function ee(){return new p.G}},6780:(en,Me,R)=>{"use strict";R.d(Me,{R:()=>ee});var p=R(8359);class w extends p.yU{constructor(W,B){super()}schedule(W,B=0){return this}}const N={setInterval(l,W,...B){const{delegate:T}=N;return T?.setInterval?T.setInterval(l,W,...B):setInterval(l,W,...B)},clearInterval(l){const{delegate:W}=N;return(W?.clearInterval||clearInterval)(l)},delegate:void 0};var v=R(7908);class ee extends w{constructor(W,B){super(W,B),this.scheduler=W,this.work=B,this.pending=!1}schedule(W,B=0){var T;if(this.closed)return this;this.state=W;const e=this.id,K=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(K,e,B)),this.pending=!0,this.delay=B,this.id=null!==(T=this.id)&&void 0!==T?T:this.requestAsyncId(K,this.id,B),this}requestAsyncId(W,B,T=0){return N.setInterval(W.flush.bind(W,this),T)}recycleAsyncId(W,B,T=0){if(null!=T&&this.delay===T&&!1===this.pending)return B;null!=B&&N.clearInterval(B)}execute(W,B){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const T=this._execute(W,B);if(T)return T;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,B){let e,T=!1;try{this.work(W)}catch(K){T=!0,e=K||new Error("Scheduled action threw falsy error")}if(T)return this.unsubscribe(),e}
1unsubscribe(){if(!this.closed){const{id:W,scheduler:B}=this,{actions:T}=B;this.work=this.state=this.scheduler=null,this.pending=!1,(0,v.o)(T,this),null!=W&&(this.id=this.recycleAsyncId(B,W,null)),this.delay=null,super.unsubscribe()}}}},9687:(en,Me,R)=>{"use strict";R.d(Me,{q:()=>N});var p=R(6129);class w{constructor(ee,l=w.now){this.schedulerActionCtor=ee,this.now=l}schedule(ee,l=0,W){return new this.schedulerActionCtor(this,ee).schedule(W,l)}}w.now=p.U.now;class N extends w{constructor(ee,l=w.now){super(ee,l),this.actions=[],this._active=!1}flush(ee){const{actions:l}=this;if(this._active)return void l.push(ee);let W;this._active=!0;do{if(W=ee.execute(ee.state,ee.delay))break}while(ee=l.shift());if(this._active=!1,W){for(;ee=l.shift();)ee.unsubscribe();throw W}}}},536:(en,Me,R)=>{"use strict";R.d(Me,{X:()=>W});var p=R(6780),w=R(8359);const N={schedule(T){let e=requestAnimationFrame,K=cancelAnimationFrame;const{delegate:H}=N;H&&(e=H.requestAnimationFrame,K=H.cancelAnimationFrame);const pe=e(oe=>{K=void 0,T(oe)});return new w.yU(()=>K?.(pe))},requestAnimationFrame(...T){const{delegate:e}=N;return(e?.requestAnimationFrame||requestAnimationFrame)(...T)},cancelAnimationFrame(...T){const{delegate:e}=N;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...T)},delegate:void 0};var ee=R(9687);const W=new class l extends ee.q{flush(e){this._active=!0;const K=this._scheduled;this._scheduled=void 0;const{actions:H}=this;let pe;e=e||H.shift();do{if(pe=e.execute(e.state,e.delay))break}while((e=H[0])&&e.id===K&&H.shift());if(this._active=!1,pe){for(;(e=H[0])&&e.id===K&&H.shift();)e.unsubscribe();throw pe}}}(class v extends p.R{constructor(e,K){super(e,K),this.scheduler=e,this.work=K}requestAsyncId(e,K,H=0){return null!==H&&H>0?super.requestAsyncId(e,K,H):(e.actions.push(this),e._scheduled||(e._scheduled=N.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,K,H=0){var pe;if(null!=H?H>0:this.delay>0)return super.recycleAsyncId(e,K,H);const{actions:oe}=e;null!=K&&(null===(pe=oe[oe.length-1])||void 0===pe?void 0:pe.id)!==K&&(N.cancelAnimationFrame(K),e._scheduled=void 0)}})},5007:(en,Me,R)=>{"use strict";R.d(Me,{$:()=>oe});var p=R(6780);let N,w=1;const v={};function ee(we){return we in v&&(delete v[we],!0)}const l={setImmediate(we){const Pe=w++;return v[Pe]=!0,N||(N=Promise.resolve()),N.then(()=>ee(Pe)&&we()),Pe},clearImmediate(we){ee(we)}},{setImmediate:B,clearImmediate:T}=l,e={setImmediate(...we){const{delegate:Pe}=e;return(Pe?.setImmediate||B)(...we)},clearImmediate(we){const{delegate:Pe}=e;return(Pe?.clearImmediate||T)(we)},delegate:void 0};var H=R(9687);const oe=new class pe extends H.q{flush(Pe){this._active=!0;const Qe=this._scheduled;this._scheduled=void 0;const{actions:ht}=this;let ot;Pe=Pe||ht.shift();do{if(ot=Pe.execute(Pe.state,Pe.delay))break}while((Pe=ht[0])&&Pe.id===Qe&&ht.shift());if(this._active=!1,ot){for(;(Pe=ht[0])&&Pe.id===Qe&&ht.shift();)Pe.unsubscribe();throw ot}}}(class K extends p.R{constructor(Pe,Qe){super(Pe,Qe),this.scheduler=Pe,this.work=Qe}requestAsyncId(Pe,Qe,ht=0){return null!==ht&&ht>0?super.requestAsyncId(Pe,Qe,ht):(Pe.actions.push(this),Pe._scheduled||(Pe._scheduled=e.setImmediate(Pe.flush.bind(Pe,void 0))))}recycleAsyncId(Pe,Qe,ht=0){var ot;if(null!=ht?ht>0:this.delay>0)return super.recycleAsyncId(Pe,Qe,ht);const{actions:gt}=Pe;null!=Qe&&(null===(ot=gt[gt.length-1])||void 0===ot?void 0:ot.id)!==Qe&&(e.clearImmediate(Qe),Pe._scheduled===Qe&&(Pe._scheduled=void 0))}})},3236:(en,Me,R)=>{"use strict";R.d(Me,{E:()=>N,b:()=>v});var p=R(6780);const N=new(R(9687).q)(p.R),v=N},6129:(en,Me,R)=>{"use strict";R.d(Me,{U:()=>p});const p={now:()=>(p.delegate||Date).now(),delegate:void 0}},9270:(en,Me,R)=>{"use strict";R.d(Me,{f:()=>p});const p={setTimeout(w,N,...v){const{delegate:ee}=p;return ee?.setTimeout?ee.setTimeout(w,N,...v):setTimeout(w,N,...v)},clearTimeout(w){const{delegate:N}=p;return(N?.clearTimeout||clearTimeout)(w)},delegate:void 0}},4761:(en,Me,R)=>{"use strict";R.d(Me,{l:()=>w});const w=function p(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(en,Me,R)=>{"use strict";R.d(Me,{s:()=>p});const p="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(en,Me,R)=>{"use strict";R.d(Me,{G:()=>w});const w=(0,R(1853).L)(N=>function(){N(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(en,Me,R)=>{"use strict";R.d(Me,{R0:()=>l,lI:()=>ee,ms:()=>v});var p=R(8071),w=R(9470);function N(W){return W[W.length-1]}function v(W){return(0,p.T)(N(W))?W.pop():void 0}function ee(W){return(0,w.m)(N(W))?W.pop():void 0}function l(W,B){return"number"==typeof N(W)?W.pop():B}},3073:(en,Me,R)=>{"use strict";R.d(Me,{D:()=>ee});const{isArray:p}=Array,{getPrototypeOf:w,prototype:N,keys:v}=Object;function ee(W){if(1===W.length){const B=W[0];if(p(B))return{args:B,keys:null};if(function l(W){return W&&"object"==typeof W&&w(W)===N}(B)){const T=v(B);return{args:T.map(e=>B[e]),keys:T}}}return{args:W,keys:null}}},7908:(en,Me,R)=>{"use strict";function p(w,N){if(w){const v=w.indexOf(N);0<=v&&w.splice(v,1)}}R.d(Me,{o:()=>p})},1853:(en,Me,R)=>{"use strict";function p(w){const v=w(ee=>{Error.call(ee),ee.stack=(new Error).stack});return v.prototype=Object.create(Error.prototype),v.prototype.constructor=v,v}R.d(Me,{L:()=>p})},8496:(en,Me,R)=>{"use strict";function p(w,N){return w.reduce((v,ee,l)=>(v[ee]=N[l],v),{})}R.d(Me,{e:()=>p})},9786:(en,Me,R)=>{"use strict";R.d(Me,{Y:()=>N,l:()=>v});var p=R(1026);let w=null;function N(ee){if(p.$.useDeprecatedSynchronousErrorHandling){const l=!w;if(l&&(w={errorThrown:!1,error:null}),ee(),l){const{errorThrown:W,error:B}=w;if(w=null,W)throw B}}else ee()}function v(ee){p.$.useDeprecatedSynchronousErrorHandling&&w&&(w.errorThrown=!0,w.error=ee)}},5225:(en,Me,R)=>{"use strict";function p(w,N,v,ee=0,l=!1){const W=N.schedule(function(){v(),l?w.add(this.schedule(null,ee)):this.unsubscribe()},ee);if(w.add(W),!l)return W}R.d(Me,{N:()=>p})},3669:(en,Me,R)=>{"use strict";function p(w){return w}R.d(Me,{D:()=>p})},7441:(en,Me,R)=>{"use strict";R.d(Me,{X:()=>p});const p=w=>w&&"number"==typeof w.length&&"function"!=typeof w},7953:(en,Me,R)=>{"use strict";R.d(Me,{T:()=>w});var p=R(8071);function w(N){return Symbol.asyncIterator&&(0,p.T)(N?.[Symbol.asyncIterator])}},8071:(en,Me,R)=>{"use strict";function p(w){return"function"==typeof w}R.d(Me,{T:()=>p})},5055:(en,Me,R)=>{"use strict";R.d(Me,{l:()=>N});var p=R(3494),w=R(8071);function N(v){return(0,w.T)(v[p.s])}},5397:(en,Me,R)=>{"use strict";R.d(Me,{x:()=>N});var p=R(4761),w=R(8071);function N(v){return(0,w.T)(v?.[p.l])}},4402:(en,Me,R)=>{"use strict";R.d(Me,{A:()=>N});var p=R(1985),w=R(8071);function N(v){return!!v&&(v instanceof p.c||(0,w.T)(v.lift)&&(0,w.T)(v.subscribe))}},9858:(en,Me,R)=>{"use strict";R.d(Me,{y:()=>w});var p=R(8071);function w(N){return(0,p.T)(N?.then)}},5196:(en,Me,R)=>{"use strict";R.d(Me,{C:()=>N,U:()=>v});var p=R(1635),w=R(8071);function N(ee){return(0,p.AQ)(this,arguments,function*(){const W=ee.getReader();try{for(;;){const{value:B,done:T}=yield(0,p.N3)(W.read());if(T)return yield(0,p.N3)(void 0);yield yield(0,p.N3)(B)}}finally{W.releaseLock()}})}function v(ee){return(0,w.T)(ee?.getReader)}},9470:(en,Me,R)=>{"use strict";R.d(Me,{m:()=>w});var p=R(8071);function w(N){return N&&(0,p.T)(N.schedule)}},9974:(en,Me,R)=>{"use strict";R.d(Me,{N:()=>N,S:()=>w});var p=R(8071);function w(v){return(0,p.T)(v?.lift)}function N(v){return ee=>{if(w(ee))return ee.lift(function(l){try{return v(l,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(en,Me,R)=>{"use strict";R.d(Me,{I:()=>v});var p=R(6354);const{isArray:w}=Array;function v(ee){return(0,p.T)(l=>function N(ee,l){return w(l)?ee(...l):ee(l)}(ee,l))}},5343:(en,Me,R)=>{"use strict";function p(){}R.d(Me,{l:()=>p})},1203:(en,Me,R)=>{"use strict";R.d(Me,{F:()=>w,m:()=>N});var p=R(3669);function w(...v){return N(v)}function N(v){return 0===v.length?p.D:1===v.length?v[0]:function(l){return v.reduce((W,B)=>B(W),l)}}},5334:(en,Me,R)=>{"use strict";R.d(Me,{m:()=>N});var p=R(1026),w=R(9270);function N(v){w.f.setTimeout(()=>{const{onUnhandledError:ee}=p.$;if(!ee)throw v;ee(v)})}},591:(en,Me,R)=>{"use strict";function p(w){return new TypeError(`You provided ${null!==w&&"object"==typeof w?"an invali
1d object":`'${w}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}R.d(Me,{L:()=>p})},4690:(en,Me,R)=>{"use strict";function w(ue,U){return Array(U+1).join(ue)}R.d(Me,{A:()=>on});var ee=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function l(ue){return pe(ue,ee)}var W=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function B(ue){return pe(ue,W)}var e=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function pe(ue,U){return U.indexOf(ue.nodeName)>=0}function oe(ue,U){return ue.getElementsByTagName&&U.some(function(Oe){return ue.getElementsByTagName(Oe).length})}var Ce={};function we(ue){return ue?ue.replace(/(\n+\s*)+/g,"\n"):""}function Pe(ue){for(var U in this.options=ue,this._keep=[],this._remove=[],this.blankRule={replacement:ue.blankReplacement},this.keepReplacement=ue.keepReplacement,this.defaultRule={replacement:ue.defaultReplacement},this.array=[],ue.rules)this.array.push(ue.rules[U])}function Qe(ue,U,Oe){for(var Ue=0;Ue<ue.length;Ue++){var $e=ue[Ue];if(ht($e,U,Oe))return $e}}function ht(ue,U,Oe){var Ue=ue.filter;if("string"==typeof Ue){if(Ue===U.nodeName.toLowerCase())return!0}else if(Array.isArray(Ue)){if(Ue.indexOf(U.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof Ue)throw new TypeError("`filter` needs to be a string, array, or function");if(Ue.call(ue,U,Oe))return!0}}function gt(ue){var U=ue.nextSibling||ue.parentNode;return ue.parentNode.removeChild(ue),U}function je(ue,U,Oe){return ue&&ue.parentNode===U||Oe(U)?U.nextSibling||U.parentNode:U.firstChild||U.nextSibling||U.parentNode}Ce.paragraph={filter:"p",replacement:function(ue){return"\n\n"+ue+"\n\n"}},Ce.lineBreak={filter:"br",replacement:function(ue,U,Oe){return Oe.br+"\n"}},Ce.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(ue,U,Oe){var Ue=Number(U.nodeName.charAt(1));return"setext"===Oe.headingStyle&&Ue<3?"\n\n"+ue+"\n"+w(1===Ue?"=":"-",ue.length)+"\n\n":"\n\n"+w("#",Ue)+" "+ue+"\n\n"}},Ce.blockquote={filter:"blockquote",replacement:function(ue){return"\n\n"+(ue=(ue=ue.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},Ce.list={filter:["ul","ol"],replacement:function(ue,U){var Oe=U.parentNode;return"LI"===Oe.nodeName&&Oe.lastElementChild===U?"\n"+ue:"\n\n"+ue+"\n\n"}},Ce.listItem={filter:"li",replacement:function(ue,U,Oe){ue=ue.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n    ");var Ue=Oe.bulletListMarker+"   ",$e=U.parentNode;if("OL"===$e.nodeName){var Ve=$e.getAttribute("start"),lt=Array.prototype.indexOf.call($e.children,U);Ue=(Ve?Number(Ve)+lt:lt+1)+".  "}return Ue+ue+(U.nextSibling&&!/\n$/.test(ue)?"\n":"")}},Ce.indentedCodeBlock={filter:function(ue,U){return"indented"===U.codeBlockStyle&&"PRE"===ue.nodeName&&ue.firstChild&&"CODE"===ue.firstChild.nodeName},replacement:function(ue,U,Oe){return"\n\n    "+U.firstChild.textContent.replace(/\n/g,"\n    ")+"\n\n"}},Ce.fencedCodeBlock={filter:function(ue,U){return"fenced"===U.codeBlockStyle&&"PRE"===ue.nodeName&&ue.firstChild&&"CODE"===ue.firstChild.nodeName},replacement:function(ue,U,Oe){for(var xt,$e=((U.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],Ve=U.firstChild.textContent,lt=Oe.fence.charAt(0),Rt=3,nt=new RegExp("^"+lt+"{3,}","gm");xt=nt.exec(Ve);)xt[0].length>=Rt&&(Rt=xt[0].length+1);var St=w(lt,Rt);return"\n\n"+St+$e+"\n"+Ve.replace(/\n$/,"")+"\n"+St+"\n\n"}},Ce.horizontalRule={filter:"hr",replacement:function(ue,U,Oe){return"\n\n"+Oe.hr+"\n\n"}},Ce.inlineLink={filter:function(ue,U){return"inlined"===U.linkStyle&&"A"===ue.nodeName&&ue.getAttribute("href")},replacement:function(ue,U){var Oe=U.getAttribute("href");Oe&&(Oe=Oe.replace(/([()])/g,"\\$1"));var Ue=we(U.getAttribute("title"));return Ue&&(Ue=' "'+Ue.replace(/"/g,'\\"')+'"'),"["+ue+"]("+Oe+Ue+")"}},Ce.referenceLink={filter:function(ue,U){return"referenced"===U.linkStyle&&"A"===ue.nodeName&&ue.getAttribute("href")},replacement:function(ue,U,Oe){var Ve,lt,Ue=U.getAttribute("href"),$e=we(U.getAttribute("title"));switch($e&&($e=' "'+$e+'"'),Oe.linkReferenceStyle){case"collapsed":Ve="["+ue+"][]",lt="["+ue+"]: "+Ue+$e;break;case"shortcut":Ve="["+ue+"]",lt="["+ue+"]: "+Ue+$e;break;default:var Rt=this.references.length+1;Ve="["+ue+"]["+Rt+"]",lt="["+Rt+"]: "+Ue+$e}return this.references.push(lt),Ve},references:[],append:function(ue){var U="";return this.references.length&&(U="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),U}},Ce.emphasis={filter:["em","i"],replacement:function(ue,U,Oe){return ue.trim()?Oe.emDelimiter+ue+Oe.emDelimiter:""}},Ce.strong={filter:["strong","b"],replacement:function(ue,U,Oe){return ue.trim()?Oe.strongDelimiter+ue+Oe.strongDelimiter:""}},Ce.code={filter:function(ue){return"CODE"===ue.nodeName&&!("PRE"===ue.parentNode.nodeName&&!ue.previousSibling&&!ue.nextSibling)},replacement:function(ue){if(!ue)return"";ue=ue.replace(/\r?\n|\r/g," ");for(var U=/^`|^ .*?[^ ].* $|`$/.test(ue)?" ":"",Oe="`",Ue=ue.match(/`+/gm)||[];-1!==Ue.indexOf(Oe);)Oe+="`";return Oe+U+ue+U+Oe}},Ce.image={filter:"img",replacement:function(ue,U){var Oe=we(U.getAttribute("alt")),Ue=U.getAttribute("src")||"",$e=we(U.getAttribute("title"));return Ue?"!["+Oe+"]("+Ue+($e?' "'+$e+'"':"")+")":""}},Pe.prototype={add:function(ue,U){this.array.unshift(U)},keep:function(ue){this._keep.unshift({filter:ue,replacement:this.keepReplacement})},remove:function(ue){this._remove.unshift({filter:ue,replacement:function(){return""}})},forNode:function(ue){return ue.isBlank?this.blankRule:(U=Qe(this.array,ue,this.options))||(U=Qe(this._keep,ue,this.options))||(U=Qe(this._remove,ue,this.options))?U:this.defaultRule;var U}
1,forEach:function(ue){for(var U=0;U<this.array.length;U++)ue(this.array[U],U)}};var Mt,Ct=typeof window<"u"?window:{},le=function kt(){var ue=Ct.DOMParser,U=!1;try{(new ue).parseFromString("","text/html")&&(U=!0)}catch{}return U}()?Ct.DOMParser:function We(){var ue=function(){};return ue.prototype.parseFromString=function at(){var ue=!1;try{document.implementation.createHTMLDocument("").open()}catch{Ct.ActiveXObject&&(ue=!0)}return ue}()?function(U){var Oe=new window.ActiveXObject("htmlfile");return Oe.designMode="on",Oe.open(),Oe.write(U),Oe.close(),Oe}:function(U){var Oe=document.implementation.createHTMLDocument("");return Oe.open(),Oe.write(U),Oe.close(),Oe},ue}();function Xe(ue,U){var Oe;return function ot(ue){var U=ue.element,Oe=ue.isBlock,Ue=ue.isVoid,$e=ue.isPre||function(Ht){return"PRE"===Ht.nodeName};if(U.firstChild&&!$e(U)){for(var Ve=null,lt=!1,Rt=null,nt=je(Rt,U,$e);nt!==U;){if(3===nt.nodeType||4===nt.nodeType){var xt=nt.data.replace(/[ \r\n\t]+/g," ");if((!Ve||/ $/.test(Ve.data))&&!lt&&" "===xt[0]&&(xt=xt.substr(1)),!xt){nt=gt(nt);continue}nt.data=xt,Ve=nt}else{if(1!==nt.nodeType){nt=gt(nt);continue}Oe(nt)||"BR"===nt.nodeName?(Ve&&(Ve.data=Ve.data.replace(/ $/,"")),Ve=null,lt=!1):Ue(nt)||$e(nt)?(Ve=null,lt=!0):Ve&&(lt=!1)}var St=je(Rt,nt,$e);Rt=nt,nt=St}Ve&&(Ve.data=Ve.data.replace(/ $/,""),Ve.data||gt(Ve))}}({element:Oe="string"==typeof ue?function Et(){return Mt=Mt||new le}().parseFromString('<x-turndown id="turndown-root">'+ue+"</x-turndown>","text/html").getElementById("turndown-root"):ue.cloneNode(!0),isBlock:l,isVoid:B,isPre:U.preformattedCode?Jt:null}),Oe}function Jt(ue){return"PRE"===ue.nodeName||"CODE"===ue.nodeName}function ct(ue,U){return ue.isBlock=l(ue),ue.isCode="CODE"===ue.nodeName||ue.parentNode.isCode,ue.isBlank=function Gt(ue){return!B(ue)&&!function K(ue){return pe(ue,e)}(ue)&&/^\s*$/i.test(ue.textContent)&&!function T(ue){return oe(ue,W)}(ue)&&!function H(ue){return oe(ue,e)}(ue)}(ue),ue.flankingWhitespace=function Te(ue,U){if(ue.isBlock||U.preformattedCode&&ue.isCode)return{leading:"",trailing:""};var Oe=function Ze(ue){var U=ue.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:U[1],leadingAscii:U[2],leadingNonAscii:U[3],trailing:U[4],trailingNonAscii:U[5],trailingAscii:U[6]}}(ue.textContent);return Oe.leadingAscii&&Ne("left",ue,U)&&(Oe.leading=Oe.leadingNonAscii),Oe.trailingAscii&&Ne("right",ue,U)&&(Oe.trailing=Oe.trailingNonAscii),{leading:Oe.leading,trailing:Oe.trailing}}(ue,U),ue}function Ne(ue,U,Oe){var Ue,$e,Ve;return"left"===ue?(Ue=U.previousSibling,$e=/ $/):(Ue=U.nextSibling,$e=/^ /),Ue&&(3===Ue.nodeType?Ve=$e.test(Ue.nodeValue):Oe.preformattedCode&&"CODE"===Ue.nodeName?Ve=!1:1===Ue.nodeType&&!l(Ue)&&(Ve=$e.test(Ue.textContent))),Ve}var Je=Array.prototype.reduce,Fe=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function ze(ue){if(!(this instanceof ze))return new ze(ue);this.options=function p(ue){for(var U=1;U<arguments.length;U++){var Oe=arguments[U];for(var Ue in Oe)Oe.hasOwnProperty(Ue)&&(ue[Ue]=Oe[Ue])}return ue}({},{rules:Ce,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:"  ",preformattedCode:!1,blankReplacement:function(Oe,Ue){return Ue.isBlock?"\n\n":""},keepReplacement:function(Oe,Ue){return Ue.isBlock?"\n\n"+Ue.outerHTML+"\n\n":Ue.outerHTML},defaultReplacement:function(Oe,Ue){return Ue.isBlock?"\n\n"+Oe+"\n\n":Oe}},ue),this.rules=new Pe(this.options)}function ft(ue){var U=this;return Je.call(ue.childNodes,function(Oe,Ue){var $e="";return 3===(Ue=new ct(Ue,U.options)).nodeType?$e=Ue.isCode?Ue.nodeValue:U.escape(Ue.nodeValue):1===Ue.nodeType&&($e=rt.call(U,Ue)),Ot(Oe,$e)},"")}function Re(ue){var U=this;
1return this.rules.forEach(function(Oe){"function"==typeof Oe.append&&(ue=Ot(ue,Oe.append(U.options)))}),ue.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function rt(ue){var U=this.rules.forNode(ue),Oe=ft.call(this,ue),Ue=ue.flankingWhitespace;return(Ue.leading||Ue.trailing)&&(Oe=Oe.trim()),Ue.leading+U.replacement(Oe,ue,this.options)+Ue.trailing}function Ot(ue,U){var Oe=function v(ue){for(var U=ue.length;U>0&&"\n"===ue[U-1];)U--;return ue.substring(0,U)}(ue),Ue=function N(ue){return ue.replace(/^\n*/,"")}(U),$e=Math.max(ue.length-Oe.length,U.length-Ue.length);return Oe+"\n\n".substring(0,$e)+Ue}ze.prototype={turndown:function(ue){if(!function It(ue){return null!=ue&&("string"==typeof ue||ue.nodeType&&(1===ue.nodeType||9===ue.nodeType||11===ue.nodeType))}(ue))throw new TypeError(ue+" is not a string, or an element/document/fragment node.");if(""===ue)return"";var U=ft.call(this,new Xe(ue,this.options));return Re.call(this,U)},use:function(ue){if(Array.isArray(ue))for(var U=0;U<ue.length;U++)this.use(ue[U]);else{if("function"!=typeof ue)throw new TypeError("plugin must be a Function or an Array of Functions");ue(this)}return this},addRule:function(ue,U){return this.rules.add(ue,U),this},keep:function(ue){return this.rules.keep(ue),this},remove:function(ue){return this.rules.remove(ue),this},escape:function(ue){return Fe.reduce(function(U,Oe){return U.replace(Oe[0],Oe[1])},ue)}};const on=ze},9912:()=>{},908:()=>{},9969:(en,Me,R)=>{"use strict";R.d(Me,{FX:()=>at,If:()=>p,K2:()=>l,MA:()=>H,Os:()=>ee,P:()=>oe,hZ:()=>N,i0:()=>v,i7:()=>T,iF:()=>W,kY:()=>e,kp:()=>w,sf:()=>kt,ui:()=>We,wk:()=>B});var p=function(le){return le[le.State=0]="State",le[le.Transition=1]="Transition",le[le.Sequence=2]="Sequence",le[le.Group=3]="Group",le[le.Animate=4]="Animate",le[le.Keyframes=5]="Keyframes",le[le.Style=6]="Style",le[le.Trigger=7]="Trigger",le[le.Reference=8]="Reference",le[le.AnimateChild=9]="AnimateChild",le[le.AnimateRef=10]="AnimateRef",le[le.Query=11]="Query",le[le.Stagger=12]="Stagger",le}(p||{});const w="*";function N(le,Xe){return{type:p.Trigger,name:le,definitions:Xe,options:{}}}function v(le,Xe=null){return{type:p.Animate,styles:Xe,timings:le}}function ee(le,Xe=null){return{type:p.Group,steps:le,options:Xe}}function l(le,Xe=null){return{type:p.Sequence,steps:le,options:Xe}}function W(le){return{type:p.Style,styles:le,offset:null}}function B(le,Xe,Mt){return{type:p.State,name:le,styles:Xe,options:Mt}}function T(le){return{type:p.Keyframes,steps:le}}function e(le,Xe,Mt=null){return{type:p.Transition,expr:le,animation:Xe,options:Mt}}function H(le=null){return{type:p.AnimateChild,options:le}}function oe(le,Xe,Mt=null){return{type:p.Query,selector:le,animation:Xe,options:Mt}}class kt{constructor(Xe=0,Mt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Xe+Mt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Xe=>Xe()),this._onDoneFns=[])}onStart(Xe){this._originalOnStartFns.push(Xe),this._onStartFns.push(Xe)}onDone(Xe){this._originalOnDoneFns.push(Xe),this._onDoneFns.push(Xe)}onDestroy(Xe){this._onDestroyFns.push(Xe)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Xe=>Xe()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Xe=>Xe()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Xe){this._position=this.totalTime?Xe*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Xe){const Mt="start"==Xe?this._onStartFns:this._onDoneFns;Mt.forEach(Et=>Et()),Mt.length=0}}class We{constructor(Xe){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Xe;let Mt=0,Et=0,Jt=0;const ct=this.players.length;0==ct?queueMicrotask(()=>
1this._onFinish()):this.players.forEach(Gt=>{Gt.onDone(()=>{++Mt==ct&&this._onFinish()}),Gt.onDestroy(()=>{++Et==ct&&this._onDestroy()}),Gt.onStart(()=>{++Jt==ct&&this._onStart()})}),this.totalTime=this.players.reduce((Gt,Te)=>Math.max(Gt,Te.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Xe=>Xe()),this._onDoneFns=[])}init(){this.players.forEach(Xe=>Xe.init())}onStart(Xe){this._onStartFns.push(Xe)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Xe=>Xe()),this._onStartFns=[])}onDone(Xe){this._onDoneFns.push(Xe)}onDestroy(Xe){this._onDestroyFns.push(Xe)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Xe=>Xe.play())}pause(){this.players.forEach(Xe=>Xe.pause())}restart(){this.players.forEach(Xe=>Xe.restart())}finish(){this._onFinish(),this.players.forEach(Xe=>Xe.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Xe=>Xe.destroy()),this._onDestroyFns.forEach(Xe=>Xe()),this._onDestroyFns=[])}reset(){this.players.forEach(Xe=>Xe.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Xe){const Mt=Xe*this.totalTime;this.players.forEach(Et=>{const Jt=Et.totalTime?Math.min(1,Mt/Et.totalTime):1;Et.setPosition(Jt)})}getPosition(){const Xe=this.players.reduce((Mt,Et)=>null===Mt||Et.totalTime>Mt.totalTime?Et:Mt,null);return null!=Xe?Xe.getPosition():0}beforeDestroy(){this.players.forEach(Xe=>{Xe.beforeDestroy&&Xe.beforeDestroy()})}triggerCallback(Xe){const Mt="start"==Xe?this._onStartFns:this._onDoneFns;Mt.forEach(Et=>Et()),Mt.length=0}}const at="!"},7645:(en,Me,R)=>{"use strict";R.d(Me,{Pd:()=>Ke,Au:()=>It,vr:()=>ft,vR:()=>ie,kB:()=>qt,Bu:()=>on,FN:()=>Z,GX:()=>an,Q_:()=>fe,Z7:()=>U,Ai:()=>Se,px:()=>Gt,_G:()=>Oi,w6:()=>hn,Ae:()=>Te});var p=R(177),w=R(4438),N=R(6860),v=R(1413),ee=R(8359),l=R(4412),W=R(7673),B=R(7336),T=R(8141),e=R(7771),K=R(5964),H=R(6354),pe=R(6697);function oe(ve){return(0,K.p)((ye,be)=>ve<=be)}var Ce=R(3294),we=R(6977),Pe=R(4085),Qe=R(2318),ht=R(4572),ot=R(8793),gt=R(1985),je=R(9172);const kt=new Set;let We,at=(()=>{class ve{constructor(be,Ee){this._platform=be,this._nonce=Ee,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Xe}matchMedia(be){return(this._platform.WEBKIT||this._platform.BLINK)&&function le(ve,ye){if(!kt.has(ve))try{We||(We=document.createElement("style"),ye&&(We.nonce=ye),We.setAttribute("type","text/css"),document.head.appendChild(We)),We.sheet&&(We.sheet.insertRule(`@media ${ve} {body{ }}`,0),kt.add(ve))}catch(be){console.error(be)}}(be,this._nonce),this._matchMedia(be)}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(N.OD),w.KVO(w.BIS,8))};static#t=this.\u0275prov=w.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();function Xe(ve){return{matches:"all"===ve||""===ve,media:ve,addListener:()=>{},removeListener:()=>{}}}let Mt=(()=>{class ve{constructor(be,Ee){this._mediaMatcher=be,this._zone=Ee,this._queries=new Map,this._destroySubject=new v.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(be){return Et((0,Pe.FG)(be)).some(pt=>this._registerQuery(pt).mql.matches)}observe(be){const pt=Et((0,Pe.FG)(be)).map(tn=>this._registerQuery(tn).observable);let _t=(0,ht.z)(pt);return _t=(0,ot.x)(_t.pipe((0,pe.s)(1)),_t.pipe(oe(1),(0,e.B)(0))),_t.pipe((0,H.T)(tn=>{const ln={matches:!1,breakpoints:{}};return tn.forEach(({matches:An,query:Ri})=>{ln.matches=ln.matches||An,ln.breakpoints[Ri]=An}),ln}))}_registerQuery(be){if(this._queries.has(be))return this._queries.get(be);const Ee=this._mediaMatcher.matchMedia(be),_t={observable:new gt.c(tn=>{const ln=An=>this._zone.run(()=>tn.next(An));return Ee.addListener(ln),()=>{Ee.removeListener(ln)}}).pipe((0,je.Z)(Ee),(0,H.T)(({matches:tn})=>({query:be,matches:tn})),(0,we.Q)(this._destroySubject)),mql:Ee};return this._queries.set(be,_t),_t}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(at),w.KVO(w.SKi))};static#t=this.\u0275prov=w.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();function Et(ve){return ve.map(ye=>ye.split(",")).reduce((ye,be)=>ye.concat(be)).map(ye=>ye.trim())}const ct=" ";function Gt(ve,ye,be){const Ee=Ze(ve,ye);Ee.some(pt=>pt.trim()==be.trim())||(Ee.push(be.trim()),ve.setAttribute(ye,Ee.join(ct)))}function Te(ve,ye,be){const pt=Ze(ve,ye).filter(_t=>_t!=be.trim());pt.length?ve.setAttribute(ye,pt.join(ct)):ve.removeAttribute(ye)}function Ze(ve,ye){return(ve.getAttribute(ye)||"").match(/\S+/g)||[]}const Je="cdk-describedby-message",Fe="cdk-describedby-host";let ze=0,ft=(()=>{class ve{constructor(be,Ee){this._platform=Ee,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ze++,this._document=be,this._id=(0,w.WQX)(w.sZ2)+"-"+ze++}describe(be,Ee,pt){if(!this._canBeDescribed(be,Ee))return;const _t=Re(Ee,pt);"string"!=typeof Ee?(rt(Ee,this._id),this._messageRegistry.set(_t,{messageElement:Ee,referenceCount:0})):this._messageRegistry.has(_t)||this._createMessageElement(Ee,pt),this._isElementDescribedByMessage(be,_t)||this._addMessageReference(be,_t)}removeDescription(be,Ee,pt){if(!Ee||!this._isElementNode(be))return;const _t=Re(Ee,pt);if(this._isElementDescribedByMessage(be,_t)&&this._removeMessageReference(be,_t),"string"==typeof Ee){const tn=this._messageRegistry.get(_t);tn&&0===tn.referenceCount&&this._deleteMessageElement(_t)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const be=this._document.querySelectorAll(`[${Fe}="${this._id}"]`);for(let Ee=0;Ee<be.length;Ee++)this._removeCdkDescribedByReferenceIds(be[Ee]),be[Ee].removeAttribute(Fe);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(be,Ee){const pt=this._document.createElement("div");rt(pt,this._id),pt.textContent=be,Ee&&pt.setAttribute("role",Ee),this._createMessagesContainer(),this._messagesContainer.appendChild(pt),this._messageRegistry.set(Re(be,Ee),{messageElement:pt,referenceCount:0})}_deleteMessageElement(be){this._messageRegistry.get(be)?.messageElement?.remove(),this._messageRegistry.delete(be)}_createMessagesContainer(){if(this._messagesContainer)return;const be="cdk-describedby-message-container",Ee=this._document.querySelectorAll(`.${be}[platform="server"]`);for(let _t=0;_t<Ee.length;_t++)Ee[_t].remove();const pt=this._document.createElement("div");pt.style.visibility="hidden",pt.classList.add(be),pt.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&pt.setAttribute("platform","server"),this._document.body.appendChild(pt),this._messagesContainer=pt}_removeCdkDescribedByReferenceIds(be){const Ee=Ze(be,"aria-describedby").filter(pt=>0!=pt.indexOf(Je));be.setAttribute("aria-describedby",Ee.join(" "))}_addMessageReference(be,Ee){const pt=this._messageRegistry.get(Ee);Gt(be,"aria-describedby",pt.messageElement.id),be.setAttribute(Fe,this._id),pt.referenceCount++}_removeMessageReference(be,Ee){const pt=this._messageRegistry.get(Ee);pt.referenceCount--,Te(be,"aria-describedby",pt.messageElement.id),be.removeAttribute(Fe)}_isElementDescribedByMessage(be,Ee){const pt=Ze(be,"aria-describedby"),_t=this._messageRegistry.get(Ee),tn=_t&&_t.messageElement.id;return!!tn&&-1!=pt.indexOf(tn)}_canBeDescribed(be,Ee){if(!this._isElementNode(be))return!1;if(Ee&&"object"==typeof Ee)return!0;const pt=null==Ee?"":`${Ee}`.trim(),_t=be.getAttribute("aria-label");return!(!pt||_t&&_t.trim()===pt)}_isElementNode(be){return be.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(p.qQ),w.KVO(N.OD))};static#t=this.\u0275prov=w.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();function Re(ve,ye){return"string"==typeof ve?`${ye||""}/${ve}`:ve}function rt(ve,ye){ve.id||(ve.id=`${Je}-${ye}-${ze++}`)}class Ot{constructor(ye){this._items=ye,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.B,this._typeaheadSub
1scription=ee.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=be=>be.disabled,this._pressedLetters=[],this.tabOut=new v.B,this.change=new v.B,ye instanceof w.rOR&&(this._itemChangesSubscription=ye.changes.subscribe(be=>{if(this._activeItem){const pt=be.toArray().indexOf(this._activeItem);pt>-1&&pt!==this._activeItemIndex&&(this._activeItemIndex=pt)}}))}skipPredicate(ye){return this._skipPredicateFn=ye,this}withWrap(ye=!0){return this._wrap=ye,this}withVerticalOrientation(ye=!0){return this._vertical=ye,this}withHorizontalOrientation(ye){return this._horizontal=ye,this}withAllowedModifierKeys(ye){return this._allowedModifierKeys=ye,this}withTypeAhead(ye=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,T.M)(be=>this._pressedLetters.push(be)),(0,e.B)(ye),(0,K.p)(()=>this._pressedLetters.length>0),(0,H.T)(()=>this._pressedLetters.join(""))).subscribe(be=>{const Ee=this._getItemsArray();for(let pt=1;pt<Ee.length+1;pt++){const _t=(this._activeItemIndex+pt)%Ee.length,tn=Ee[_t];if(!this._skipPredicateFn(tn)&&0===tn.getLabel().toUpperCase().trim().indexOf(be)){this.setActiveItem(_t);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(ye=!0){return this._homeAndEnd=ye,this}withPageUpDown(ye=!0,be=10){return this._pageUpAndDown={enabled:ye,delta:be},this}setActiveItem(ye){const be=this._activeItem;this.updateActiveItem(ye),this._activeItem!==be&&this.change.next(this._activeItemIndex)}onKeydown(ye){const be=ye.keyCode,pt=["altKey","ctrlKey","metaKey","shiftKey"].every(_t=>!ye[_t]||this._allowedModifierKeys.indexOf(_t)>-1);switch(be){case B.wn:return void this.tabOut.next();case B.n6:if(this._vertical&&pt){this.setNextItemActive();break}return;case B.i7:if(this._vertical&&pt){this.setPreviousItemActive();break}return;case B.LE:if(this._horizontal&&pt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case B.UQ:if(this._horizontal&&pt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case B.yZ:if(this._homeAndEnd&&pt){this.setFirstItemActive();break}return;case B.Kp:if(this._homeAndEnd&&pt){this.setLastItemActive();break}return;case B.w_:if(this._pageUpAndDown.enabled&&pt){const _t=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(_t>0?_t:0,1);break}return;case B.dB:if(this._pageUpAndDown.enabled&&pt){const _t=this._activeItemIndex+this._pageUpAndDown.delta,tn=this._getItemsArray().length;this._setActiveItemByIndex(_t<tn?_t:tn-1,-1);break}return;default:return void((pt||(0,B.rp)(ye,"shiftKey"))&&(ye.key&&1===ye.key.length?this._letterKeyStream.next(ye.key.toLocaleUpperCase()):(be>=B.A&&be<=B.Z||be>=B.f2&&be<=B.bn)&&this._letterKeyStream.next(String.fromCharCode(be))))}this._pressedLetters=[],ye.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(ye){const be=this._getItemsArray(),Ee="number"==typeof ye?ye:be.indexOf(ye);this._activeItem=be[Ee]??null,this._activeItemIndex=Ee}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(ye){this._wrap?this._setActiveInWrapMode(ye):this._setActiveInDefaultMode(ye)}_setActiveInWrapMode(ye){const be=this._getItemsArray();for(let Ee=1;Ee<=be.length;Ee++){const pt=(this._activeItemIndex+ye*Ee+be.length)%be.length;if(!this._skipPredicateFn(be[pt]))return void this.setActiveItem(pt)}}_setActiveInDefaultMode(ye){this._setActiveItemByIndex(this._activeItemIndex+ye,ye)}_setActiveItemByIndex(ye,be){const Ee=this._getItemsArray();if(Ee[ye]){for(;this._skipPredicateFn(Ee[ye]);)if(!Ee[ye+=be])return;this.setActiveItem(ye)}}_getItemsArray(){return this._items instanceof w.rOR?this._items.toArray():this._items}}
1class It extends Ot{setActiveItem(ye){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ye),this.activeItem&&this.activeItem.setActiveStyles()}}class on extends Ot{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ye){return this._origin=ye,this}setActiveItem(ye){super.setActiveItem(ye),this.activeItem&&this.activeItem.focus(this._origin)}}let U=(()=>{class ve{constructor(be){this._platform=be}isDisabled(be){return be.hasAttribute("disabled")}isVisible(be){return function Ue(ve){return!!(ve.offsetWidth||ve.offsetHeight||"function"==typeof ve.getClientRects&&ve.getClientRects().length)}(be)&&"visible"===getComputedStyle(be).visibility}isTabbable(be){if(!this._platform.isBrowser)return!1;const Ee=function Oe(ve){try{return ve.frameElement}catch{return null}}(function fn(ve){return ve.ownerDocument&&ve.ownerDocument.defaultView||window}(be));if(Ee&&(-1===St(Ee)||!this.isVisible(Ee)))return!1;let pt=be.nodeName.toLowerCase(),_t=St(be);return be.hasAttribute("contenteditable")?-1!==_t:!("iframe"===pt||"object"===pt||this._platform.WEBKIT&&this._platform.IOS&&!function Ht(ve){let ye=ve.nodeName.toLowerCase(),be="input"===ye&&ve.type;return"text"===be||"password"===be||"select"===ye||"textarea"===ye}(be))&&("audio"===pt?!!be.hasAttribute("controls")&&-1!==_t:"video"===pt?-1!==_t&&(null!==_t||this._platform.FIREFOX||be.hasAttribute("controls")):be.tabIndex>=0)}isFocusable(be,Ee){return function Pt(ve){return!function Ve(ve){return function Rt(ve){return"input"==ve.nodeName.toLowerCase()}(ve)&&"hidden"==ve.type}(ve)&&(function $e(ve){let ye=ve.nodeName.toLowerCase();return"input"===ye||"select"===ye||"button"===ye||"textarea"===ye}(ve)||function lt(ve){return function nt(ve){return"a"==ve.nodeName.toLowerCase()}(ve)&&ve.hasAttribute("href")}(ve)||ve.hasAttribute("contenteditable")||xt(ve))}(be)&&!this.isDisabled(be)&&(Ee?.ignoreVisibility||this.isVisible(be))}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(N.OD))};static#t=this.\u0275prov=w.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();function xt(ve){if(!ve.hasAttribute("tabindex")||void 0===ve.tabIndex)return!1;let ye=ve.getAttribute("tabindex");return!(!ye||isNaN(parseInt(ye,10)))}function St(ve){if(!xt(ve))return null;const ye=parseInt(ve.getAttribute("tabindex")||"",10);return isNaN(ye)?-1:ye}class kn{get enabled(){return this._enabled}set enabled(ye){this._enabled=ye,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ye,this._startAnchor),this._toggleAnchorTabIndex(ye,this._endAnchor))}constructor(ye,be,Ee,pt,_t=!1){this._element=ye,this._checker=be,this._ngZone=Ee,this._document=pt,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,_t||this.attachAnchors()}destroy(){const ye=this._startAnchor,be=this._endAnchor;ye&&(ye.removeEventListener("focus",this.startAnchorListener),ye.remove()),be&&(be.removeEventListener("focus",this.endAnchorListener),be.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(ye){return new Promise(be=>{this._executeOnStable(()=>be(this.focusInitialElement(ye)))})}focusFirstTabbableElementWhenReady(ye){return new Promise(be=>{this._executeOnStable(()=>be(this.focusFirstTabbableElement(ye)))})}focusLastTabbableElementWhenReady(ye){return new Promise(be=>{this._executeOnStable(()=>be(this.focusLastTabbableElement(ye)))})}_getRegionBoundary(ye){const be=this._element.querySelectorAll(`[cdk-focus-region-${ye}], [cdkFocusRegion${ye}], [cdk-focus-${ye}]`);return"start"==ye?be.length?be[0]:this._getFirstTabbableElement(this._element):be.length?be[be.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ye){const be=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(be){if(!this._checker.isFocusable(be)){const Ee=this._getFirstTabbableElement(be);return Ee?.focus(ye),!!Ee}return be.focus(ye),!0}return this.focusFirstTabbableElement(ye)}focusFirstTabbableElement(ye){const be=this._getRegionBoundary("start");return be&&be.focus(ye),!!be}focusLastTabbableElement(ye){const be=this._getRegionBoundary("end");return be&&be.focus(ye),!!be}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ye){if(this._checker.isFocusable(ye)&&this._checker.isTabbable(ye))return ye;const be=ye.children;for(let Ee=0;Ee<be.length;Ee++){const pt=be[Ee].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(be[Ee]):null;if(pt)return pt}return null}_getLastTabbableElement(ye){if(this._checker.isFocusable(ye)&&this._checker.isTabbable(ye))return ye;const be=ye.children;for(let Ee=be.length-1;Ee>=0;Ee--){const pt=be[Ee].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(be[Ee]):null;if(pt)return pt}return null}_createAnchor(){const ye=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ye),ye.classList.add("cdk-visually-hidden"),ye.classList.add("cdk-focus-trap-anchor"),ye.setAttribute("aria-hidden","true"),ye}_toggleAnchorTabIndex(ye,be){ye?be.setAttribute("tabindex","0"):be.removeAttribute("tabindex")}toggleAnchors(ye){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ye,this._startAnchor),this._toggleAnchorTabIndex(ye,this._endAnchor))}_executeOnStable(ye){this._ngZone.isStable?ye():this._ngZone.onStable.pipe((0,pe.s)(1)).subscribe(ye)}}let an=(()=>{class ve{constructor(be,Ee,pt){this._checker=be,this._ngZone=Ee,this._document=pt}create(be,Ee=!1){return new kn(be,this._checker,this._ngZone,this._document,Ee)}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(U),w.KVO(w.SKi),w.KVO(p.qQ))};static#t=this.\u0275prov=w.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})(),qt=(()=>{class ve{get enabled(){return this.focusTrap.enabled}set enabled(be){this.focusTrap.enabled=(0,Pe.he)(be)}get autoCapture(){return this._autoCapture}set autoCapture(be){this._autoCapture=(0,Pe.he)(be)}constructor(be,Ee,pt){this._elementRef=be,this._focusTrapFactory=Ee,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(be){const Ee=be.autoCapture;Ee&&!Ee.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,N.vc)(),this.focusTrap.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.rXU(w.aKT),w.rXU(an),w.rXU(p.qQ))};static#t=this.\u0275dir=w.FsC({type:ve,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[w.Mj6.None,"cdkTrapFocus","enabled"],autoCapture:[w.Mj6.None,"cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[w.OA$]})}return ve})();function Oi(ve){return 0===ve.buttons||0===ve.offsetX&&0===ve.offsetY}function hn(ve){const ye=ve.touches&&ve.touches[0]||ve.changedTouches&&ve.changedTouches[0];return!(!ye||-1!==ye.identifier||null!=ye.radiusX&&1!==ye.radiusX||null!=ye.radiusY&&1!==ye.radiusY)}const Mi=new w.nKC("cdk-input-modality-detector-options"),Fn={ignoreKeys:[B.A$,B.W3,B.eg,B.Ge,B.FX]},hi=(0,N.BQ)({passive:!0,capture:!0});let Xn=(()=>{class ve{get mostRecentModality(){return this._modality.value}constructor(be,Ee,pt,_t){this._platform=be,this._mostRecentTarget=null,this._modality=new l.t(null),this._lastTouchMs=0,this._onKeydown=tn=>{this._options?.ignoreKeys?.some(ln=>ln===tn.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,N.Fb)(tn))},this._onMousedown=tn=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Oi(tn)?"keyboard":"mouse"),this._mostRecentTarget=(0,N.Fb)(tn))},this._onTouchstart=tn=>{hn(tn)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,N.Fb)(tn))},this._options={...Fn,..._t},this.modalityDetected=this._modality.pipe(oe(1)),this.modalityChanged=this.modalityDetected.pipe((0,Ce.F)()),be.isBrowser&&Ee.runOutsideAngular(()=>{pt.addEventListener("keydown",this._onKeydown,hi),pt.addEventListener("mousedown",this._onMousedown,hi),pt.addEventListener("touchstart",this._onTouchstart,hi)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,hi),document.removeEventListener("mousedown",this._onMousedown,hi),document.removeEventListener("touchstart",this._onTouchstart,hi))}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(N.OD),w.KVO(w.SKi),w.KVO(p.qQ),w.KVO(Mi,8))};static#t=this.\u0275prov=w.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();const ri=new w.nKC("liveAnnouncerElement",{providedIn:"root",factory:function In(){return null}}),kr=new w.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Xi=0,Se=(()=>{class ve{constructor(be,Ee,pt,_t){this._ngZone=Ee,this._defaultOptions=_t,this._document=pt,this._liveElement=be||this._createLiveElement()}announce(be,...Ee){const pt=this._defaultOptions;let _t,tn;return 1===Ee.length&&"number"==typeof Ee[0]?tn=Ee[0]:[_t,tn]=Ee,this.clear(),clearTimeout(this._previousTimeout),_t||(_t=pt&&pt.politeness?pt.politeness:"polite"),null==tn&&pt&&(tn=pt.duration),this._liveElement.setAttribute("aria-live",_t),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ln=>this._currentResolve=ln)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=be,"number"==typeof tn&&(this._previousTimeout=setTimeout(()=>this.clear(),tn)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const be="cdk-live-announcer-element",Ee=this._document.getElementsByClassName(be),pt=this._document.createElement("div");for(let _t=0;_t<Ee.length;_t++)Ee[_t].remove();return pt.classList.add(be),pt.classList.add("cdk-visually-hidden"),pt.setAttribute("aria-atomic","true"),pt.setAttribute("aria-live","polite"),pt.id="cdk-live-announcer-"+Xi++,this._document.body.appendChild(pt),pt}_exposeAnnouncerToModals(be){const Ee=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let pt=0;pt<Ee.length;pt++){const _t=Ee[pt],tn=_t.getAttribute("aria-owns");tn?-1===tn.indexOf(be)&&_t.setAttribute("aria-owns",tn+" "+be):_t.setAttribute("aria-owns",be)}}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(ri,8),w.KVO(w.SKi),w.KVO(p.qQ),w.KVO(kr,8))};static#t=this.\u0275prov=w.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();const te=new w.nKC("cdk-focus-monitor-default-options"),ce=(0,N.BQ)({passive:!0,capture:!0});let Z=(()=>{class ve{constructor(be,Ee,pt,_t,tn){this._ngZone=be,this._platform=Ee,this._inputModalityDetector=pt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new v.B,this._rootNodeFocusAndBlurListener=ln=>{for(let Ri=(0,N.Fb)(ln);Ri;Ri=Ri.parentElement)"focus"===ln.type?this._onFocus(ln,Ri):this._onBlur(ln,Ri)},this._document=_t,this._detectionMode=tn?.detectionMode||0}monitor(be,Ee=!1){const pt=(0,Pe.i8)(be);
1if(!this._platform.isBrowser||1!==pt.nodeType)return(0,W.of)();const _t=(0,N.KT)(pt)||this._getDocument(),tn=this._elementInfo.get(pt);if(tn)return Ee&&(tn.checkChildren=!0),tn.subject;const ln={checkChildren:Ee,subject:new v.B,rootNode:_t};return this._elementInfo.set(pt,ln),this._registerGlobalListeners(ln),ln.subject}stopMonitoring(be){const Ee=(0,Pe.i8)(be),pt=this._elementInfo.get(Ee);pt&&(pt.subject.complete(),this._setClasses(Ee),this._elementInfo.delete(Ee),this._removeGlobalListeners(pt))}focusVia(be,Ee,pt){const _t=(0,Pe.i8)(be);_t===this._getDocument().activeElement?this._getClosestElementsInfo(_t).forEach(([ln,An])=>this._originChanged(ln,Ee,An)):(this._setOrigin(Ee),"function"==typeof _t.focus&&_t.focus(pt))}ngOnDestroy(){this._elementInfo.forEach((be,Ee)=>this.stopMonitoring(Ee))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(be){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(be)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:be&&this._isLastInteractionFromInputLabel(be)?"mouse":"program"}_shouldBeAttributedToTouch(be){return 1===this._detectionMode||!!be?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(be,Ee){be.classList.toggle("cdk-focused",!!Ee),be.classList.toggle("cdk-touch-focused","touch"===Ee),be.classList.toggle("cdk-keyboard-focused","keyboard"===Ee),be.classList.toggle("cdk-mouse-focused","mouse"===Ee),be.classList.toggle("cdk-program-focused","program"===Ee)}_setOrigin(be,Ee=!1){this._ngZone.runOutsideAngular(()=>{this._origin=be,this._originFromTouchInteraction="touch"===be&&Ee,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(be,Ee){const pt=this._elementInfo.get(Ee),_t=(0,N.Fb)(be);!pt||!pt.checkChildren&&Ee!==_t||this._originChanged(Ee,this._getFocusOrigin(_t),pt)}_onBlur(be,Ee){const pt=this._elementInfo.get(Ee);!pt||pt.checkChildren&&be.relatedTarget instanceof Node&&Ee.contains(be.relatedTarget)||(this._setClasses(Ee),this._emitOrigin(pt,null))}_emitOrigin(be,Ee){be.subject.observers.length&&this._ngZone.run(()=>be.subject.next(Ee))}_registerGlobalListeners(be){if(!this._platform.isBrowser)return;const Ee=be.rootNode,pt=this._rootNodeFocusListenerCount.get(Ee)||0;pt||this._ngZone.runOutsideAngular(()=>{Ee.addEventListener("focus",this._rootNodeFocusAndBlurListener,ce),Ee.addEventListener("blur",this._rootNodeFocusAndBlurListener,ce)}),this._rootNodeFocusListenerCount.set(Ee,pt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,we.Q)(this._stopInputModalityDetector)).subscribe(_t=>{this._setOrigin(_t,!0)}))}_removeGlobalListeners(be){const Ee=be.rootNode;if(this._rootNodeFocusListenerCount.has(Ee)){const pt=this._rootNodeFocusListenerCount.get(Ee);pt>1?this._rootNodeFocusListenerCount.set(Ee,pt-1):(Ee.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ce),Ee.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ce),this._rootNodeFocusListenerCount.delete(Ee))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(be,Ee,pt){this._setClasses(be,Ee),this._emitOrigin(pt,Ee),this._lastFocusOrigin=Ee}_getClosestElementsInfo(be){const Ee=[];return this._elementInfo.forEach((pt,_t)=>{(_t===be||pt.checkChildren&&_t.contains(be))&&Ee.push([_t,pt])}),Ee}_isLastInteractionFromInputLabel(be){const{_mostRecentTarget:Ee,mostRecentModality:pt}=this._inputModalityDetector;if("mouse"!==pt||!Ee||Ee===be||"INPUT"!==be.nodeName&&"TEXTAREA"!==be.nodeName||be.disabled)return!1;const _t=be.labels;if(_t)for(let tn=0;tn<_t.length;tn++)if(_t[tn].contains(Ee))return!0;return!1}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(w.SKi),w.KVO(N.OD),w.KVO(Xn),w.KVO(p.qQ,8),w.KVO(te,8))};static#t=this.\u0275prov=w.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})(),ie=(()=>{class ve{constructor(be,Ee){this._elementRef=be,this._focusMonitor=Ee,this._focusOrigin=null,this.cdkFocusChange=new w.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const be=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(be,1===be.nodeType&&be.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ee=>{this._focusOrigin=Ee,this.cdkFocusChange.emit(Ee)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.rXU(w.aKT),w.rXU(Z))};static#t=this.\u0275dir=w.FsC({type:ve,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return ve})();const Ae="cdk-high-contrast-black-on-white",Y="cdk-high-contrast-white-on-black",ne="c
1dk-high-contrast-active";let fe=(()=>{class ve{constructor(be,Ee){this._platform=be,this._document=Ee,this._breakpointSubscription=(0,w.WQX)(Mt).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const be=this._document.createElement("div");be.style.backgroundColor="rgb(1,2,3)",be.style.position="absolute",this._document.body.appendChild(be);const Ee=this._document.defaultView||window,pt=Ee&&Ee.getComputedStyle?Ee.getComputedStyle(be):null,_t=(pt&&pt.backgroundColor||"").replace(/ /g,"");switch(be.remove(),_t){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const be=this._document.body.classList;be.remove(ne,Ae,Y),this._hasCheckedHighContrastMode=!0;const Ee=this.getHighContrastMode();1===Ee?be.add(ne,Ae):2===Ee&&be.add(ne,Y)}}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(N.OD),w.KVO(p.qQ))};static#t=this.\u0275prov=w.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})(),Ke=(()=>{class ve{constructor(be){be._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(Ee){return new(Ee||ve)(w.KVO(fe))};static#t=this.\u0275mod=w.$C({type:ve});static#n=this.\u0275inj=w.G2t({imports:[Qe.w5]})}return ve})()},8203:(en,Me,R)=>{"use strict";R.d(Me,{dS:()=>W,jI:()=>T});var p=R(4438),w=R(177);const N=new p.nKC("cdk-dir-doc",{providedIn:"root",factory:function v(){return(0,p.WQX)(w.qQ)}}),ee=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let W=(()=>{class e{constructor(H){this.value="ltr",this.change=new p.bkB,H&&(this.value=function l(e){const K=e?.toLowerCase()||"";return"auto"===K&&typeof navigator<"u"&&navigator?.language?ee.test(navigator.language)?"rtl":"ltr":"rtl"===K?"rtl":"ltr"}((H.body?H.body.dir:null)||(H.documentElement?H.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(pe){return new(pe||e)(p.KVO(N,8))};static#t=this.\u0275prov=p.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),T=(()=>{class e{static#e=this.\u0275fac=function(pe){return new(pe||e)};static#t=this.\u0275mod=p.$C({type:e});static#n=this.\u0275inj=p.G2t({})}return e})()},4085:(en,Me,R)=>{"use strict";R.d(Me,{FG:()=>ee,OE:()=>N,a1:()=>l,cc:()=>B,he:()=>w,i8:()=>W,o1:()=>v});var p=R(4438);function w(T){return null!=T&&"false"!=`${T}`}function N(T,e=0){return v(T)?Number(T):e}function v(T){return!isNaN(parseFloat(T))&&!isNaN(Number(T))}function ee(T){return Array.isArray(T)?T:[T]}function l(T){return null==T?"":"string"==typeof T?T:`${T}px`}function W(T){return T instanceof p.aKT?T.nativeElement:T}function B(T,e=/\s+/){const K=[];if(null!=T){const H=Array.isArray(T)?T:`${T}`.split(e);for(const pe of H){const oe=`${pe}`.trim();oe&&K.push(oe)}}return K}},1875:(en,Me,R)=>{"use strict";R.d(Me,{T1:()=>ri,Fb:()=>Wn,O7:()=>Se,ad:()=>te,HD:()=>Ue,eg:()=>$e});var p=R(4438),w=R(177),N=R(5478),v=R(6860),ee=R(4085),l=R(7645),W=R(1413),B=R(8359),T=R(3236),e=R(1584),H=R(536),pe=R(1985),oe=R(7786),Ce=R(6977),we=R(6354),Pe=R(6697),Qe=R(9172),ht=R(8141),ot=R(5558),gt=R(8203);function je(ce,Z,ie){for(let Ae in Z)if(Z.hasOwnProperty(Ae)){const Y=Z[Ae];Y?ce.setProperty(Ae,Y,ie?.has(Ae)?"important":""):ce.removeProperty(Ae)}return ce}function Ct(ce,Z){const ie=Z?"":"none";je(ce.style,{"touch-action":Z?"":"none","-webkit-user-drag":Z?"":"none","-webkit-tap-highlight-color":Z?"":"transparent","user-select":ie,"-ms-user-select":ie,"-webkit-user-select":ie,"-moz-user-select":ie})}function kt(ce,Z,ie){je(ce.style,{position:Z?"":"fixed",top:Z?"":"0",opacity:Z?"":"0",left:Z?"":"-999em"},ie)}function We(ce,Z){return Z&&"none"!=Z?ce+" "+Z:ce}function at(ce){const Z=ce.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(ce)*Z}function Xe(ce,Z){return ce.getPropertyValue(Z).split(",").map(Ae=>Ae.trim())}function Mt(ce){const Z=ce.getBoundingClientRect();return{top:Z.top,right:Z.right,bottom:Z.bottom,left:Z.left,width:Z.width,height:Z.height,x:Z.x,y:Z.y}}function Et(ce,Z,ie){const{top:Ae,bottom:Y,left:ne,right:fe}=ce;return ie>=Ae&&ie<=Y&&Z>=ne&&Z<=fe}function Jt(ce,Z,ie){ce.top+=Z,ce.bottom=ce.top+ce.height,ce.left+=ie,ce.right=ce.left+ce.width}function ct(ce,Z,ie,Ae){const{top:Y,right:ne,bottom:fe,left:Ke,width:ve,height:ye}=ce,be=ve*Z,Ee=ye*Z;return Ae>Y-Ee&&Ae<fe+Ee&&ie>Ke-be&&ie<ne+be}class Gt{constructor(Z){this._document=Z,this.positions=new Map}clear(){this.positions.clear()}cache(Z){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),Z.forEach(ie=>{this.positions.set(ie,{scrollPosition:{top:ie.scrollTop,left:ie.scrollLeft},clientRect:Mt(ie)})})}handleScroll(Z){const ie=(0,v.Fb)(Z),Ae=this.positions.get(ie);if(!Ae)return null;const Y=Ae.scrollPosition;let ne,fe;if(ie===this._document){const ye=this.getViewportScrollPosition();ne=ye.top,fe=ye.left}else ne=ie.scrollTop,fe=ie.scrollLeft;const Ke=Y.top-ne,ve=Y.left-fe;return this.positions.forEach((ye,be)=>{ye.clientRect&&ie!==be&&ie.contains(be)&&Jt(ye.clientRect,Ke,ve)}),Y.top=ne,Y.left=fe,{top:Ke,left:ve}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Te(ce){const Z=ce.cloneNode(!0),ie=Z.querySelectorAll("[id]"),Ae=ce.nodeName.toLowerCase();Z.removeAttribute("id");for(let Y=0;Y<ie.length;Y++)ie[Y].removeAttribute("id");return"canvas"===Ae?Fe(ce,Z):("input"===Ae||"select"===Ae||"textarea"===Ae)&&Je(ce,Z),Ze("canvas",ce,Z,Fe),Ze("input, textarea, select",ce,Z,Je),Z}function Ze(ce,Z,ie,Ae){const Y=Z.querySelectorAll(ce);if(Y.length){const ne=ie.querySelectorAll(ce);for(let fe=0;fe<Y.length;fe++)Ae(Y[fe],ne[fe])}}let Ne=0;function Je(ce,Z){"file"!==Z.type&&(Z.value=ce.value),"radio"===Z.type&&Z.name&&(Z.name=`mat-clone-${Z.name}-${Ne++}`)}function Fe(ce,Z){const ie=Z.getContext("2d");if(ie)try{ie.drawImage(ce,0,0)}catch{}}const ze=(0,v.BQ)({passive:!0}),ft=(0,v.BQ)({passive:!1}),rt=new Set(["position"]);class Ot{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Z){const ie=(0,ee.he)(Z);ie!==this._disabled&&(this._disabled=ie,this._toggleNativeDragInteractions(),this._handles.forEac
1h(Ae=>Ct(Ae,ie)))}constructor(Z,ie,Ae,Y,ne,fe){this._config=ie,this._document=Ae,this._ngZone=Y,this._viewportRuler=ne,this._dragDropRegistry=fe,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new W.B,this._pointerMoveSubscription=B.yU.EMPTY,this._pointerUpSubscription=B.yU.EMPTY,this._scrollSubscription=B.yU.EMPTY,this._resizeSubscription=B.yU.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new W.B,this.started=new W.B,this.released=new W.B,this.ended=new W.B,this.entered=new W.B,this.exited=new W.B,this.dropped=new W.B,this.moved=this._moveEvents,this._pointerDown=Ke=>{if(this.beforeStarted.next(),this._handles.length){const ve=this._getTargetHandle(Ke);ve&&!this._disabledHandles.has(ve)&&!this.disabled&&this._initializeDragSequence(ve,Ke)}else this.disabled||this._initializeDragSequence(this._rootElement,Ke)},this._pointerMove=Ke=>{const ve=this._getPointerPositionOnPage(Ke);if(!this._hasStartedDragging){if(Math.abs(ve.x-this._pickupPositionOnPage.x)+Math.abs(ve.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const _t=Date.now()>=this._dragStartTime+this._getDragStartDelay(Ke),tn=this._dropContainer;if(!_t)return void this._endDragSequence(Ke);(!tn||!tn.isDragging()&&!tn.isReceiving())&&(Ke.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(Ke)))}return}Ke.preventDefault();const ye=this._getConstrainedPointerPosition(ve);if(this._hasMoved=!0,this._lastKnownPointerPosition=ve,this._updatePointerDirectionDelta(ye),this._dropContainer)this._updateActiveDropContainer(ye,ve);else{const be=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Ee=this._activeTransform;Ee.x=ye.x-be.x+this._passiveTransform.x,Ee.y=ye.y-be.y+this._passiveTransform.y,this._applyRootElementTransform(Ee.x,Ee.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:ye,event:Ke,distance:this._getDragDistance(ye),delta:this._pointerDirectionDelta})})},this._pointerUp=Ke=>{this._endDragSequence(Ke)},this._nativeDragStart=Ke=>{if(this._handles.length){const ve=this._getTargetHandle(Ke);ve&&!this._disabledHandles.has(ve)&&!this.disabled&&Ke.preventDefault()}else this.disabled||Ke.preventDefault()},this.withRootElement(Z).withParent(ie.parentDragRef||null),this._parentPositions=new Gt(Ae),fe.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Z){this._handles=Z.map(Ae=>(0,ee.i8)(Ae)),this._handles.forEach(Ae=>Ct(Ae,this.disabled)),this._toggleNativeDragInteractions();const ie=new Set;return this._disabledHandles.forEach(Ae=>{this._handles.indexOf(Ae)>-1&&ie.add(Ae)}),this._disabledHandles=ie,this}withPreviewTemplate(Z){return this._previewTemplate=Z,this}withPlaceholderTemplate(Z){return this._placeholderTemplate=Z,this}withRootElement(Z){const ie=(0,ee.i8)(Z);return ie!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{ie.addEventListener("mousedown",this._pointerDown,ft),ie.addEventListener("touchstart",this._pointerDown,ze),ie.addEventListener("dragstart",this._nativeDragStart,ft)}),this._initialTransform=void 0,this._rootElement=ie),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Z){return this._boundaryElement=Z?(0,ee.i8)(Z):null,this._resizeSubscription.unsubscribe(),Z&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Z){return this._parentDragRef=Z,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Z){!this._disabledHandles.has(Z)&&this._handles.indexOf(Z)>-1&&(this._disabledHandles.add(Z),Ct(Z,!0))}enableHandle(Z){this._disabledHandles.has(Z)&&(this._disabledHandles.delete(Z),Ct(Z,this.disabled))}withDirection(Z){return this._direction=Z,this}_withDropContainer(Z){this._dropContainer=Z}getFreeDragPosition(){const Z=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Z.x,y:Z.y}}setFreeDragPosition(Z){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Z.x,this._passiveTransform.y=Z.y,this._dropContainer||this._applyRootElementTransform(Z.x,Z.y),this}withPreviewContainer(Z){return this._previewContainer=Z,this}_sortFromLastPointerPosition(){const Z=this._lastKnownPointerPosition;Z&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Z),Z)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}
1_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Z){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:Z}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Z),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const ie=this._getPointerPositionOnPage(Z);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(ie),dropPoint:ie,event:Z})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(Z){ue(Z)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const ie=this._dropContainer;if(ie){const Ae=this._rootElement,Y=Ae.parentNode,ne=this._placeholder=this._createPlaceholderElement(),fe=this._anchor=this._anchor||this._document.createComment(""),Ke=this._getShadowRoot();Y.insertBefore(fe,Ae),this._initialTransform=Ae.style.transform||"",this._preview=this._createPreviewElement(),kt(Ae,!1,rt),this._document.body.appendChild(Y.replaceChild(ne,Ae)),this._getPreviewInsertionPoint(Y,Ke).appendChild(this._preview),this.started.next({source:this,event:Z}),ie.start(),this._initialContainer=ie,this._initialIndex=ie.getItemIndex(this)}else this.started.next({source:this,event:Z}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(ie?ie.getScrollableParents():[])}_initializeDragSequence(Z,ie){this._parentDragRef&&ie.stopPropagation();const Ae=this.isDragging(),Y=ue(ie),ne=!Y&&0!==ie.button,fe=this._rootElement,Ke=(0,v.Fb)(ie),ve=!Y&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),ye=Y?(0,l.w6)(ie):(0,l._G)(ie);if(Ke&&Ke.draggable&&"mousedown"===ie.type&&ie.preventDefault(),Ae||ne||ve||ye)return;if(this._handles.length){const pt=fe.style;this._rootElementTapHighlight=pt.webkitTapHighlightColor||"",pt.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(pt=>this._updateOnScroll(pt)),this._boundaryElement&&(this._boundaryRect=Mt(this._boundaryElement));const be=this._previewTemplate;this._pickupPositionInElement=be&&be.template&&!be.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,Z,ie);const Ee=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(ie);this._pointerDirectionDelta={x:0,y:0}
1,this._pointerPositionAtLastDirectionChange={x:Ee.x,y:Ee.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,ie)}_cleanupDragArtifacts(Z){kt(this._rootElement,!0,rt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const ie=this._dropContainer,Ae=ie.getItemIndex(this),Y=this._getPointerPositionOnPage(Z),ne=this._getDragDistance(Y),fe=ie._isOverContainer(Y.x,Y.y);this.ended.next({source:this,distance:ne,dropPoint:Y,event:Z}),this.dropped.next({item:this,currentIndex:Ae,previousIndex:this._initialIndex,container:ie,previousContainer:this._initialContainer,isPointerOverContainer:fe,distance:ne,dropPoint:Y,event:Z}),ie.drop(this,Ae,this._initialIndex,this._initialContainer,fe,ne,Y,Z),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Z,y:ie},{x:Ae,y:Y}){let ne=this._initialContainer._getSiblingContainerFromPosition(this,Z,ie);!ne&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Z,ie)&&(ne=this._initialContainer),ne&&ne!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ne,this._dropContainer.enter(this,Z,ie,ne===this._initialContainer&&ne.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ne,currentIndex:ne.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Ae,Y),this._dropContainer._sortItem(this,Z,ie,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(Z,ie):this._applyPreviewTransform(Z-this._pickupPositionInElement.x,ie-this._pickupPositionInElement.y))}_createPreviewElement(){const Z=this._previewTemplate,ie=this.previewClass,Ae=Z?Z.template:null;let Y;if(Ae&&Z){const ne=Z.matchSize?this._initialClientRect:null,fe=Z.viewContainer.createEmbeddedView(Ae,Z.context);fe.detectChanges(),Y=U(fe,this._document),this._previewRef=fe,Z.matchSize?Oe(Y,ne):Y.style.transform=It(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Y=Te(this._rootElement),Oe(Y,this._initialClientRect),this._initialTransform&&(Y.style.transform=this._initialTransform);return je(Y.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},rt),Ct(Y,!1),Y.classList.add("cdk-drag-preview"),Y.setAttribute("dir",this._direction),ie&&(Array.isArray(ie)?ie.forEach(ne=>Y.classList.add(ne)):Y.classList.add(ie)),Y}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Z=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(Z.left,Z.top);const ie=function le(ce){const Z=getComputedStyle(ce),ie=Xe(Z,"transition-property"),Ae=ie.find(Ke=>"transform"===Ke||"all"===Ke);if(!Ae)return 0;const Y=ie.indexOf(Ae),ne=Xe(Z,"transition-duration"),fe=Xe(Z,"transition-delay");return at(ne[Y])+at(fe[Y])}(this._preview);return 0===ie?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Ae=>{const Y=fe=>{(!fe||(0,v.Fb)(fe)===this._preview&&"transform"===fe.propertyName)&&(this._preview?.removeEventListener("transitionend",Y),Ae(),clearTimeout(ne))},ne=setTimeout(Y,1.5*ie);this._preview.addEventListener("transitionend",Y)}))}_createPlaceholderElement(){const Z=this._placeholderTemplate,ie=Z?Z.template:null;let Ae;return ie?(this._placeholderRef=Z.viewContainer.createEmbeddedView(ie,Z.context),this._placeholderRef.detectChanges(),Ae=U(this._placeholderRef,this._document)):Ae=Te(this._rootElement),Ae.style.pointerEvents="none",Ae.classList.add("cdk-drag-placeholder"),Ae}_getPointerPositionInElement(Z,ie,Ae){const Y=ie===this._rootElement?null:ie,ne=Y?Y.getBoundingClientRect():Z,fe=ue(Ae)?Ae.targetTouches[0]:Ae,Ke=this._getViewportScrollPosition();return{x:ne.left-Z.left+(fe.pageX-ne.left-Ke.left),y:ne.top-Z.top+(fe.pageY-ne.top-Ke.top)}}_getPointerPositionOnPage(Z){const ie=this._getViewportScrollPosition(),Ae=ue(Z)?Z.touches[0]||Z.changedTouches[0]||{pageX:0,pageY:0}:Z,Y=Ae.pageX-ie.left,ne=Ae.pageY-ie.top;if(this._ownerSVGElement){const fe=this._ownerSVGElement.getScreenCTM();if(fe){const Ke=this._ownerSVGElement.createSVGPoint();return Ke.x=Y,Ke.y=ne,Ke.matrixTransform(fe.inverse())}}return{x:Y,y:ne}}_getConstrainedPointerPosition(Z){const ie=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Ae,y:Y}=this.constrainPosition?this.constrainPosition(Z,this,this._initialClientRect,this._pickupPositionInElement):Z;if("x"===this.lockAxis||"x"===ie?Y=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===ie)&&(Ae=this._pickupPositionOnPage.x),this._boundaryRect){const{x:ne,y:fe}=this._pickupPositionInElement,Ke=this._boundaryRect,{width:ve,height:ye}=this._getPreviewRect(),be=Ke.top+fe,Ee=Ke.bottom-(ye-fe);Ae=on(Ae,Ke.left+ne,Ke.right-(ve-ne)),Y=on(Y,be,Ee)}return{x:Ae,y:Y}}_updatePointerDirectionDelta(Z){const{x:ie,y:Ae}=Z,Y=this._pointerDirectionDelta,ne=this._pointerPositionAtLastDirectionChange,fe=Math.abs(ie-ne.x),Ke=Math.abs(Ae-ne.y);return fe>this._config.pointerDirectionChangeThreshold&&(Y.x=ie>ne.x?1:-1,ne.x=ie),Ke>this._config.pointerDirectionChangeThreshold&&(Y.y=Ae>ne.y?1:-1,ne.y=Ae),Y}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Z=this._handles.length>0||!this.isDragging();Z!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Z,Ct(this._rootElement,Z))}_removeRootElementListeners(Z){Z.removeEventListener("mousedown",this._pointerDown,ft),Z.removeEventListener("touchstart",this._pointerDown,ze),Z.removeEventListener("dragstart",this._nativeDragStart,ft)}_applyRootElementTransform(Z,ie){const Ae=It(Z,ie),Y=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Y.transform&&"none"!=Y.transform?Y.transform:""),Y.transform=We(Ae,this._initialTransform)}_applyPreviewTransform(Z,ie){const Ae=this._previewTemplate?.template?void 0:this._initialTransform,Y=It(Z,ie);this._preview.style.transform=We(Y,Ae)}_getDragDistance(Z){const ie=this._pickupPositionOnPage;return ie?{x:Z.x-ie.x,y:Z.y-ie.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Z,y:ie}=this._passiveTransform;if(0===Z&&0===ie||this.isDragging()||!this._boundaryElement)return;const Ae=this._rootElement.getBoundingClientRect(),Y=this._boundaryElement.getBoundingClientRect();if(0===Y.width&&0===Y.height||0===Ae.width&&0===Ae.height)return;const ne=Y.left-Ae.left,fe=Ae.right-Y.right,Ke=Y.top-Ae.top,ve=Ae.bottom-Y.bottom;Y.width>Ae.width?(ne>0&&(Z+=ne),fe>0&&(Z-=fe)):Z=0,Y.height>Ae.height?(Ke>0&&(ie+=Ke),ve>0&&(ie-=ve)):ie=0,(Z!==this._passiveTransform.x||ie!==this._passiveTransform.y)&&this.setFreeDragPosition({y:ie,x:Z})}_getDragStartDelay(Z){const ie=this.dragStartDelay;return"number"==typeof ie?ie:ue(Z)?ie.touch:ie?ie.mouse:0}_updateOnScroll(Z){const ie=this._parentPositions.handleScroll(Z);if(ie){const Ae=(0,v.Fb)(Z);this._boundaryRect&&Ae!==this._boundaryElement&&Ae.contains(this._boundaryElement)&&Jt(this._boundaryRect,ie.top,ie.left),this._pickupPositionOnPage.x+=ie.left,this._pickupPositionOnPage.y+=ie.top,this._dropContainer||(this._activeTransform.x-=ie.left,this._activeTransform.y-=ie.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,v.KT)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Z,ie){const Ae=this._previewContainer||"global";if("parent"===Ae)return Z;if("global"===Ae){const Y=this._document;return ie||Y.fullscreenElement||Y.webkitFullscreenElement||Y.mozFullScreenElement||Y.msFullscreenElement||Y.body}return(0,ee.i8)(Ae)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(Z){return this._handles.find(ie=>Z.target&&(Z.target===ie||ie.contains(Z.target)))}}function It(ce,Z){return`translate3d(${Math.round(ce)}px, ${Math.round(Z)}px, 0)`}function on(ce,Z,ie){return Math.max(Z,Math.min(ie,ce))}function ue(ce){return"t"===ce.type[0]}function U(ce,Z){const ie=ce.rootNodes;if(1===ie.length&&ie[0].nodeType===Z.ELEMENT_NODE)return ie[0];const Ae=Z.createElement("div");return ie.forEach(Y=>Ae.appendChild(Y)),Ae}function Oe(ce,Z){ce.style.width=`${Z.width}px`,ce.style.height=`${Z.height}px`,ce.style.transform=It(Z.left,Z.top)}function Ue(ce,Z,ie){const Ae=lt(Z,ce.length-1),Y=lt(ie,ce.length-1);if(Ae===Y)return;const ne=ce[Ae],fe=Y<Ae?-1:1;for(let Ke=Ae;Ke!==Y;Ke+=fe)ce[Ke]=ce[Ke+fe];ce[Y]=ne}function $e(ce,Z,ie,Ae){const Y=lt(ie,ce.length-1),ne=lt(Ae,Z.length);ce.length&&Z.splice(ne,0,ce.splice(Y,1)[0])}function lt(ce,Z){return Math.max(0,Math.min(Z,ce))}class Rt{constructor(Z,ie){this._element=Z,this._dragDropRegistry=ie,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(Z){this.withItems(Z)}sort(Z,ie,Ae,Y){const ne=this._itemPositions,fe=this._getItemIndexFromPointerPosition(Z,ie,Ae,Y);if(-1===fe&&ne.length>0)return null;const Ke="horizontal"===this.orientation,ve=ne.findIndex(An=>An.drag===Z),ye=ne[fe],Ee=ye.clientRect,pt=ve>fe?1:-1,_t=this._getItemOffsetPx(ne[ve].clientRect,Ee,pt),tn=this._getSiblingOffsetPx(ve,ne,pt),ln=ne.slice();return Ue(ne,ve,fe),ne.forEach((An,Ri)=>{if(ln[Ri]===An)return;const Ti=An.drag===Z,Bn=Ti?_t:tn,_r=Ti?Z.getPlaceholderElement():An.drag.getRootElement();An.offset+=Bn,Ke?(_r.style.transform=We(`translate3d(${Math.round(An.offset)}px, 0, 0)`,An.initialTransform),Jt(An.clientRect,0,Bn)):(_r.style.transform=We(`translate3d(0, ${Math.round(An.offset)}px, 0)`,An.initialTransform),Jt(An.clientRect,Bn,0))}),this._previousSwap.overlaps=Et(Ee,ie,Ae),this._previousSwap.drag=ye.drag,this._previousSwap.delta=Ke?Y.x:Y.y,{previousIndex:ve,currentIndex:fe}}enter(Z,ie,Ae,Y){const ne=null==Y||Y<0?this._getItemIndexFromPointerPosition(Z,ie,Ae):Y,fe=this._activeDraggables,Ke=fe.indexOf(Z),ve=Z.getPlaceholderElement();let ye=fe[ne];if(ye===Z&&(ye=fe[ne+1]),!ye&&(null==ne||-1===ne||ne<fe.length-1)&&this._shouldEnterAsFirstChild(ie,Ae)&&(ye=fe[0]),Ke>-1&&fe.splice(Ke,1),ye&&!this._dragDropRegistry.isDragging(ye)){const be=ye.getRootElement();be.parentElement.insertBefore(ve,be),fe.splice(ne,0,Z)}
1else(0,ee.i8)(this._element).appendChild(ve),fe.push(Z);ve.style.transform="",this._cacheItemPositions()}withItems(Z){this._activeDraggables=Z.slice(),this._cacheItemPositions()}withSortPredicate(Z){this._sortPredicate=Z}reset(){this._activeDraggables.forEach(Z=>{const ie=Z.getRootElement();if(ie){const Ae=this._itemPositions.find(Y=>Y.drag===Z)?.initialTransform;ie.style.transform=Ae||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(Z){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Ae=>Ae.drag===Z)}updateOnScroll(Z,ie){this._itemPositions.forEach(({clientRect:Ae})=>{Jt(Ae,Z,ie)}),this._itemPositions.forEach(({drag:Ae})=>{this._dragDropRegistry.isDragging(Ae)&&Ae._sortFromLastPointerPosition()})}_cacheItemPositions(){const Z="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(ie=>{const Ae=ie.getVisibleElement();return{drag:ie,offset:0,initialTransform:Ae.style.transform||"",clientRect:Mt(Ae)}}).sort((ie,Ae)=>Z?ie.clientRect.left-Ae.clientRect.left:ie.clientRect.top-Ae.clientRect.top)}_getItemOffsetPx(Z,ie,Ae){const Y="horizontal"===this.orientation;let ne=Y?ie.left-Z.left:ie.top-Z.top;return-1===Ae&&(ne+=Y?ie.width-Z.width:ie.height-Z.height),ne}_getSiblingOffsetPx(Z,ie,Ae){const Y="horizontal"===this.orientation,ne=ie[Z].clientRect,fe=ie[Z+-1*Ae];let Ke=ne[Y?"width":"height"]*Ae;if(fe){const ve=Y?"left":"top",ye=Y?"right":"bottom";-1===Ae?Ke-=fe.clientRect[ve]-ne[ye]:Ke+=ne[ve]-fe.clientRect[ye]}return Ke}_shouldEnterAsFirstChild(Z,ie){if(!this._activeDraggables.length)return!1;const Ae=this._itemPositions,Y="horizontal"===this.orientation;if(Ae[0].drag!==this._activeDraggables[0]){const fe=Ae[Ae.length-1].clientRect;return Y?Z>=fe.right:ie>=fe.bottom}{const fe=Ae[0].clientRect;return Y?Z<=fe.left:ie<=fe.top}}_getItemIndexFromPointerPosition(Z,ie,Ae,Y){const ne="horizontal"===this.orientation,fe=this._itemPositions.findIndex(({drag:Ke,clientRect:ve})=>Ke!==Z&&((!Y||Ke!==this._previousSwap.drag||!this._previousSwap.overlaps||(ne?Y.x:Y.y)!==this._previousSwap.delta)&&(ne?ie>=Math.floor(ve.left)&&ie<Math.floor(ve.right):Ae>=Math.floor(ve.top)&&Ae<Math.floor(ve.bottom))));return-1!==fe&&this._sortPredicate(fe,Z)?fe:-1}}class St{constructor(Z,ie,Ae,Y,ne){this._dragDropRegistry=ie,this._ngZone=Y,this._viewportRuler=ne,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new W.B,this.entered=new W.B,this.exited=new W.B,this.dropped=new W.B,this.sorted=new W.B,this.receivingStarted=new W.B,this.receivingStopped=new W.B,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=B.yU.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new W.B,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function K(ce=0,Z=T.E){return ce<0&&(ce=0),(0,e.O)(ce,ce,Z)}(0,H.X).pipe((0,Ce.Q)(this._stopScrollTimers)).subscribe(()=>{const fe=this._scrollNode,Ke=this.autoScrollStep;1===this._verticalScrollDirection?fe.scrollBy(0,-Ke):2===this._verticalScrollDirection&&fe.scrollBy(0,Ke),1===this._horizontalScrollDirection?fe.scrollBy(-Ke,0):2===this._horizontalScrollDirection&&fe.scrollBy(Ke,0)})},this.element=(0,ee.i8)(Z),this._document=Ae,this.withScrollableParents([this.element]),ie.registerDropContainer(this),this._parentPositions=new Gt(Ae),this._sortStrategy=new Rt(this.element,ie),this._sortStrategy.withSortPredicate((fe,Ke)=>this.sortPredicate(fe,Ke,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Z,ie,Ae,Y){this._draggingStarted(),null==Y&&this.sortingDisabled&&(Y=this._draggables.indexOf(Z)),this._sortStrategy.enter(Z,ie,Ae,Y),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Z,container:this,currentIndex:this.getItemIndex(Z)})}exit(Z){this._reset(),this.exited.next({item:Z,container:this})}
1drop(Z,ie,Ae,Y,ne,fe,Ke,ve={}){this._reset(),this.dropped.next({item:Z,currentIndex:ie,previousIndex:Ae,container:this,previousContainer:Y,isPointerOverContainer:ne,distance:fe,dropPoint:Ke,event:ve})}withItems(Z){const ie=this._draggables;return this._draggables=Z,Z.forEach(Ae=>Ae._withDropContainer(this)),this.isDragging()&&(ie.filter(Y=>Y.isDragging()).every(Y=>-1===Z.indexOf(Y))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(Z){return this._sortStrategy.direction=Z,this}connectedTo(Z){return this._siblings=Z.slice(),this}withOrientation(Z){return this._sortStrategy.orientation=Z,this}withScrollableParents(Z){const ie=(0,ee.i8)(this.element);return this._scrollableElements=-1===Z.indexOf(ie)?[ie,...Z]:Z.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(Z){return this._isDragging?this._sortStrategy.getItemIndex(Z):this._draggables.indexOf(Z)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Z,ie,Ae,Y){if(this.sortingDisabled||!this._clientRect||!ct(this._clientRect,.05,ie,Ae))return;const ne=this._sortStrategy.sort(Z,ie,Ae,Y);ne&&this.sorted.next({previousIndex:ne.previousIndex,currentIndex:ne.currentIndex,container:this,item:Z})}_startScrollingIfNecessary(Z,ie){if(this.autoScrollDisabled)return;let Ae,Y=0,ne=0;if(this._parentPositions.positions.forEach((fe,Ke)=>{Ke===this._document||!fe.clientRect||Ae||ct(fe.clientRect,.05,Z,ie)&&([Y,ne]=function fn(ce,Z,ie,Ae){const Y=Ht(Z,Ae),ne=Pt(Z,ie);let fe=0,Ke=0;if(Y){const ve=ce.scrollTop;1===Y?ve>0&&(fe=1):ce.scrollHeight-ve>ce.clientHeight&&(fe=2)}if(ne){const ve=ce.scrollLeft;1===ne?ve>0&&(Ke=1):ce.scrollWidth-ve>ce.clientWidth&&(Ke=2)}return[fe,Ke]}(Ke,fe.clientRect,Z,ie),(Y||ne)&&(Ae=Ke))}),!Y&&!ne){const{width:fe,height:Ke}=this._viewportRuler.getViewportSize(),ve={width:fe,height:Ke,top:0,right:fe,bottom:Ke,left:0};Y=Ht(ve,ie),ne=Pt(ve,Z),Ae=window}Ae&&(Y!==this._verticalScrollDirection||ne!==this._horizontalScrollDirection||Ae!==this._scrollNode)&&(this._verticalScrollDirection=Y,this._horizontalScrollDirection=ne,this._scrollNode=Ae,(Y||ne)&&Ae?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Z=(0,ee.i8)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Z.msScrollSnapType||Z.scrollSnapType||"",Z.scrollSnapType=Z.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const Z=(0,ee.i8)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(Z).clientRect}_reset(){this._isDragging=!1;const Z=(0,ee.i8)(this.element).style;Z.scrollSnapType=Z.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(ie=>ie._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(Z,ie){return null!=this._clientRect&&Et(this._clientRect,Z,ie)}_getSiblingContainerFromPosition(Z,ie,Ae){return this._siblings.find(Y=>Y._canReceive(Z,ie,Ae))}_canReceive(Z,ie,Ae){if(!this._clientRect||!Et(this._clientRect,ie,Ae)||!this.enterPredicate(Z,this))return!1;const Y=this._getShadowRoot().elementFromPoint(ie,Ae);if(!Y)return!1;const ne=(0,ee.i8)(this.element);return Y===ne||ne.contains(Y)}_startReceiving(Z,ie){const Ae=this._activeSiblings;!Ae.has(Z)&&ie.every(Y=>this.enterPredicate(Y,this)||this._draggables.indexOf(Y)>-1)&&(Ae.add(Z),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:Z,receiver:this,items:ie}))}_stopReceiving(Z){this._activeSiblings.delete(Z),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:Z,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Z=>{if(this.isDragging()){const ie=this._parentPositions.handleScroll(Z);ie&&this._sortStrategy.updateOnScroll(ie.top,ie.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Z=(0,v.KT)((0,ee.i8)(this.element));this._cachedShadowRoot=Z||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Z=this._sortStrategy.getActiveItemsSnapshot().filter(ie=>ie.isDragging());
1this._siblings.forEach(ie=>ie._startReceiving(this,Z))}}function Ht(ce,Z){const{top:ie,bottom:Ae,height:Y}=ce,ne=.05*Y;return Z>=ie-ne&&Z<=ie+ne?1:Z>=Ae-ne&&Z<=Ae+ne?2:0}function Pt(ce,Z){const{left:ie,right:Ae,width:Y}=ce,ne=.05*Y;return Z>=ie-ne&&Z<=ie+ne?1:Z>=Ae-ne&&Z<=Ae+ne?2:0}const kn=(0,v.BQ)({passive:!1,capture:!0});let an=(()=>{class ce{constructor(ie,Ae){this._ngZone=ie,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Y=>Y.isDragging(),this.pointerMove=new W.B,this.pointerUp=new W.B,this.scroll=new W.B,this._preventDefaultWhileDragging=Y=>{this._activeDragInstances.length>0&&Y.preventDefault()},this._persistentTouchmoveListener=Y=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Y.preventDefault(),this.pointerMove.next(Y))},this._document=Ae}registerDropContainer(ie){this._dropInstances.has(ie)||this._dropInstances.add(ie)}registerDragItem(ie){this._dragInstances.add(ie),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,kn)})}removeDropContainer(ie){this._dropInstances.delete(ie)}removeDragItem(ie){this._dragInstances.delete(ie),this.stopDragging(ie),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,kn)}startDragging(ie,Ae){if(!(this._activeDragInstances.indexOf(ie)>-1)&&(this._activeDragInstances.push(ie),1===this._activeDragInstances.length)){const Y=Ae.type.startsWith("touch");this._globalListeners.set(Y?"touchend":"mouseup",{handler:ne=>this.pointerUp.next(ne),options:!0}).set("scroll",{handler:ne=>this.scroll.next(ne),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:kn}),Y||this._globalListeners.set("mousemove",{handler:ne=>this.pointerMove.next(ne),options:kn}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ne,fe)=>{this._document.addEventListener(fe,ne.handler,ne.options)})})}}stopDragging(ie){const Ae=this._activeDragInstances.indexOf(ie);Ae>-1&&(this._activeDragInstances.splice(Ae,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(ie){return this._activeDragInstances.indexOf(ie)>-1}scrolled(ie){const Ae=[this.scroll];return ie&&ie!==this._document&&Ae.push(new pe.c(Y=>this._ngZone.runOutsideAngular(()=>{const fe=Ke=>{this._activeDragInstances.length&&Y.next(Ke)};return ie.addEventListener("scroll",fe,!0),()=>{ie.removeEventListener("scroll",fe,!0)}}))),(0,oe.h)(...Ae)}ngOnDestroy(){this._dragInstances.forEach(ie=>this.removeDragItem(ie)),this._dropInstances.forEach(ie=>this.removeDropContainer(ie)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((ie,Ae)=>{this._document.removeEventListener(Ae,ie.handler,ie.options)}),this._globalListeners.clear()}static#e=this.\u0275fac=function(Ae){return new(Ae||ce)(p.KVO(p.SKi),p.KVO(w.qQ))};static#t=this.\u0275prov=p.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();const qt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let wi=(()=>{class ce{constructor(ie,Ae,Y,ne){this._document=ie,this._ngZone=Ae,this._viewportRuler=Y,this._dragDropRegistry=ne}createDrag(ie,Ae=qt){return new Ot(ie,Ae,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(ie){return new St(ie,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(Ae){return new(Ae||ce)(p.KVO(w.qQ),p.KVO(p.SKi),p.KVO(N.Xj),p.KVO(an))};static#t=this.\u0275prov=p.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();const $n=new p.nKC("CDK_DRAG_PARENT"),Un=new p.nKC("CdkDragHandle");let Wn=(()=>{class ce{get disabled(){return this._disabled}set disabled(ie){this._disabled=(0,ee.he)(ie),this._stateChanges.next(this)}constructor(ie,Ae){this.element=ie,this._stateChanges=new W.B,this._disabled=!1,this._parentDrag=Ae}ngOnDestroy(){this._stateChanges.complete()}static#e=this.\u0275fac=function(Ae){return new(Ae||ce)(p.rXU(p.aKT),p.rXU($n,12))};static#t=this.\u0275dir=p.FsC({type:ce,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[p.Mj6.None,"cdkDragHandleDisabled","disabled"]},standalone:!0,features:[p.Jv_([{provide:Un,useExisting:ce}])]})}return ce})();const Oi=new p.nKC("CdkDragPlaceholder"),Mi=new p.nKC("CdkDragPreview"),xn=new p.nKC("CDK_DRAG_CONFIG"),Xn=new p.nKC("CdkDropList");let ri=(()=>{class ce{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(ie){this._disabled=(0,ee.he)(ie),this._dragRef.disabled=this._disabled}constructor(ie,Ae,Y,ne,fe,Ke,ve,ye,be,Ee,pt){this.element=ie,this.dropContainer=Ae,this._ngZone=ne,this._viewContainerRef
1=fe,this._dir=ve,this._changeDetectorRef=be,this._selfHandle=Ee,this._parentDrag=pt,this._destroyed=new W.B,this.started=new p.bkB,this.released=new p.bkB,this.ended=new p.bkB,this.entered=new p.bkB,this.exited=new p.bkB,this.dropped=new p.bkB,this.moved=new pe.c(_t=>{const tn=this._dragRef.moved.pipe((0,we.T)(ln=>({source:this,pointerPosition:ln.pointerPosition,event:ln.event,delta:ln.delta,distance:ln.distance}))).subscribe(_t);return()=>{tn.unsubscribe()}}),this._dragRef=ye.createDrag(ie,{dragStartThreshold:Ke&&null!=Ke.dragStartThreshold?Ke.dragStartThreshold:5,pointerDirectionChangeThreshold:Ke&&null!=Ke.pointerDirectionChangeThreshold?Ke.pointerDirectionChangeThreshold:5,zIndex:Ke?.zIndex}),this._dragRef.data=this,ce._dragInstances.push(this),Ke&&this._assignDefaults(Ke),Ae&&(this._dragRef._withDropContainer(Ae._dropListRef),Ae.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(ie){this._dragRef.setFreeDragPosition(ie)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Pe.s)(1),(0,Ce.Q)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(ie){const Ae=ie.rootElementSelector,Y=ie.freeDragPosition;Ae&&!Ae.firstChange&&this._updateRootElement(),Y&&!Y.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const ie=ce._dragInstances.indexOf(this);ie>-1&&ce._dragInstances.splice(ie,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const ie=this.element.nativeElement;let Ae=ie;this.rootElementSelector&&(Ae=void 0!==ie.closest?ie.closest(this.rootElementSelector):ie.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Ae||ie)}_getBoundaryElement(){const ie=this.boundaryElement;return ie?"string"==typeof ie?this.element.nativeElement.closest(ie):(0,ee.i8)(ie):null}_syncInputs(ie){ie.beforeStarted.subscribe(()=>{if(!ie.isDragging()){const Ae=this._dir,Y=this.dragStartDelay,ne=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,fe=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;ie.disabled=this.disabled,ie.lockAxis=this.lockAxis,ie.dragStartDelay="object"==typeof Y&&Y?Y:(0,ee.OE)(Y),ie.constrainPosition=this.constrainPosition,ie.previewClass=this.previewClass,ie.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ne).withPreviewTemplate(fe).withPreviewContainer(this.previewContainer||"global"),Ae&&ie.withDirection(Ae.value)}}),ie.beforeStarted.pipe((0,Pe.s)(1)).subscribe(()=>{if(this._parentDrag)return void ie.withParent(this._parentDrag._dragRef);let Ae=this.element.nativeElement.parentElement;for(;Ae;){if(Ae.classList.contains("cdk-drag")){ie.withParent(ce._dragInstances.find(Y=>Y.element.nativeElement===Ae)?._dragRef||null);break}Ae=Ae.parentElement}})}_handleEvents(ie){ie.started.subscribe(Ae=>{this.started.emit({source:this,event:Ae.event}),this._changeDetectorRef.markForCheck()}),ie.released.subscribe(Ae=>{this.released.emit({source:this,event:Ae.event})}),ie.ended.subscribe(Ae=>{this.ended.emit({source:this,distance:Ae.distance,dropPoint:Ae.dropPoint,event:Ae.event}),this._changeDetectorRef.markForCheck()}),ie.entered.subscribe(Ae=>{this.entered.emit({container:Ae.container.data,item:this,currentIndex:Ae.currentIndex})}),ie.exited.subscribe(Ae=>{this.exited.emit({container:Ae.container.data,item:this})}),ie.dropped.subscribe(Ae=>{this.dropped.emit({previousIndex:Ae.previousIndex,currentIndex:Ae.currentIndex,previousContainer:Ae.previousContainer.data,container:Ae.container.data,isPointerOverContainer:Ae.isPointerOverContainer,item:this,distance:Ae.distance,dropPoint:Ae.dropPoint,event:Ae.event})})}_assignDefaults(ie){const{lockAxis:Ae,dragStartDelay:Y,constrainPosition:ne,previewClass:fe,boun
1daryElement:Ke,draggingDisabled:ve,rootElementSelector:ye,previewContainer:be}=ie;this.disabled=ve??!1,this.dragStartDelay=Y||0,Ae&&(this.lockAxis=Ae),ne&&(this.constrainPosition=ne),fe&&(this.previewClass=fe),Ke&&(this.boundaryElement=Ke),ye&&(this.rootElementSelector=ye),be&&(this.previewContainer=be)}_setupHandlesListener(){this._handles.changes.pipe((0,Qe.Z)(this._handles),(0,ht.M)(ie=>{const Ae=ie.filter(Y=>Y._parentDrag===this).map(Y=>Y.element);this._selfHandle&&this.rootElementSelector&&Ae.push(this.element),this._dragRef.withHandles(Ae)}),(0,ot.n)(ie=>(0,oe.h)(...ie.map(Ae=>Ae._stateChanges.pipe((0,Qe.Z)(Ae))))),(0,Ce.Q)(this._destroyed)).subscribe(ie=>{const Ae=this._dragRef,Y=ie.element.nativeElement;ie.disabled?Ae.disableHandle(Y):Ae.enableHandle(Y)})}static#t=this.\u0275fac=function(Ae){return new(Ae||ce)(p.rXU(p.aKT),p.rXU(Xn,12),p.rXU(w.qQ),p.rXU(p.SKi),p.rXU(p.c1b),p.rXU(xn,8),p.rXU(gt.dS,8),p.rXU(wi),p.rXU(p.gRc),p.rXU(Un,10),p.rXU($n,12))};static#n=this.\u0275dir=p.FsC({type:ce,selectors:[["","cdkDrag",""]],contentQueries:function(Ae,Y,ne){if(1&Ae&&(p.wni(ne,Mi,5),p.wni(ne,Oi,5),p.wni(ne,Un,5)),2&Ae){let fe;p.mGM(fe=p.lsd())&&(Y._previewTemplate=fe.first),p.mGM(fe=p.lsd())&&(Y._placeholderTemplate=fe.first),p.mGM(fe=p.lsd())&&(Y._handles=fe)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Ae,Y){2&Ae&&p.AVh("cdk-drag-disabled",Y.disabled)("cdk-drag-dragging",Y._dragRef.isDragging())},inputs:{data:[p.Mj6.None,"cdkDragData","data"],lockAxis:[p.Mj6.None,"cdkDragLockAxis","lockAxis"],rootElementSelector:[p.Mj6.None,"cdkDragRootElement","rootElementSelector"],boundaryElement:[p.Mj6.None,"cdkDragBoundary","boundaryElement"],dragStartDelay:[p.Mj6.None,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[p.Mj6.None,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[p.Mj6.None,"cdkDragDisabled","disabled"],constrainPosition:[p.Mj6.None,"cdkDragConstrainPosition","constrainPosition"],previewClass:[p.Mj6.None,"cdkDragPreviewClass","previewClass"],previewContainer:[p.Mj6.None,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[p.Jv_([{provide:$n,useExisting:ce}]),p.OA$]})}return ce})();const In=new p.nKC("CdkDropListGroup");let Xi=0,Se=(()=>{class ce{static#e=this._dropLists=[];get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(ie){this._dropListRef.disabled=this._disabled=(0,ee.he)(ie)}constructor(ie,Ae,Y,ne,fe,Ke,ve){this.element=ie,this._changeDetectorRef=Y,this._scrollDispatcher=ne,this._dir=fe,this._group=Ke,this._destroyed=new W.B,this.connectedTo=[],this.id="cdk-drop-list-"+Xi++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new p.bkB,this.entered=new p.bkB,this.exited=new p.bkB,this.sorted=new p.bkB,this._unsortedItems=new Set,this._dropListRef=Ae.createDropList(ie),this._dropListRef.data=this,ve&&this._assignDefaults(ve),this._dropListRef.enterPredicate=(ye,be)=>this.enterPredicate(ye.data,be.data),this._dropListRef.sortPredicate=(ye,be,Ee)=>this.sortPredicate(ye,be.data,Ee.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),ce._dropLists.push(this),Ke&&Ke._items.add(this)}addItem(ie){this._unsortedItems.add(ie),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(ie){this._unsortedItems.delete(ie),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((ie,Ae)=>ie._dragRef.getVisibleElement().compareDocumentPosition(Ae._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const ie=ce._dropLists.indexOf(this);ie>-1&&ce._dropLists.splice(ie,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(ie){this._dir&&this._dir.change.pipe((0,Qe.Z)(this._dir.value),(0,Ce.Q)(this._destroyed)).subscribe(Ae=>ie.withDirection(Ae)),ie.beforeStarted.subscribe(()=>{const Ae=(0,ee.FG)(this.connectedTo).map(Y=>"string"==typeof Y?ce._dropLists.find(fe=>fe.id===Y):Y);
1if(this._group&&this._group._items.forEach(Y=>{-1===Ae.indexOf(Y)&&Ae.push(Y)}),!this._scrollableParentsResolved){const Y=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(ne=>ne.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Y),this._scrollableParentsResolved=!0}ie.disabled=this.disabled,ie.lockAxis=this.lockAxis,ie.sortingDisabled=(0,ee.he)(this.sortingDisabled),ie.autoScrollDisabled=(0,ee.he)(this.autoScrollDisabled),ie.autoScrollStep=(0,ee.OE)(this.autoScrollStep,2),ie.connectedTo(Ae.filter(Y=>Y&&Y!==this).map(Y=>Y._dropListRef)).withOrientation(this.orientation)})}_handleEvents(ie){ie.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),ie.entered.subscribe(Ae=>{this.entered.emit({container:this,item:Ae.item.data,currentIndex:Ae.currentIndex})}),ie.exited.subscribe(Ae=>{this.exited.emit({container:this,item:Ae.item.data}),this._changeDetectorRef.markForCheck()}),ie.sorted.subscribe(Ae=>{this.sorted.emit({previousIndex:Ae.previousIndex,currentIndex:Ae.currentIndex,container:this,item:Ae.item.data})}),ie.dropped.subscribe(Ae=>{this.dropped.emit({previousIndex:Ae.previousIndex,currentIndex:Ae.currentIndex,previousContainer:Ae.previousContainer.data,container:Ae.container.data,item:Ae.item.data,isPointerOverContainer:Ae.isPointerOverContainer,distance:Ae.distance,dropPoint:Ae.dropPoint,event:Ae.event}),this._changeDetectorRef.markForCheck()}),(0,oe.h)(ie.receivingStarted,ie.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(ie){const{lockAxis:Ae,draggingDisabled:Y,sortingDisabled:ne,listAutoScrollDisabled:fe,listOrientation:Ke}=ie;this.disabled=Y??!1,this.sortingDisabled=ne??!1,this.autoScrollDisabled=fe??!1,this.orientation=Ke||"vertical",Ae&&(this.lockAxis=Ae)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(ie=>ie._dragRef))}static#t=this.\u0275fac=function(Ae){return new(Ae||ce)(p.rXU(p.aKT),p.rXU(wi),p.rXU(p.gRc),p.rXU(N.R),p.rXU(gt.dS,8),p.rXU(In,12),p.rXU(xn,8))};static#n=this.\u0275dir=p.FsC({type:ce,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Ae,Y){2&Ae&&(p.BMQ("id",Y.id),p.AVh("cdk-drop-list-disabled",Y.disabled)("cdk-drop-list-dragging",Y._dropListRef.isDragging())("cdk-drop-list-receiving",Y._dropListRef.isReceiving()))},inputs:{connectedTo:[p.Mj6.None,"cdkDropListConnectedTo","connectedTo"],data:[p.Mj6.None,"cdkDropListData","data"],orientation:[p.Mj6.None,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[p.Mj6.None,"cdkDropListLockAxis","lockAxis"],disabled:[p.Mj6.None,"cdkDropListDisabled","disabled"],sortingDisabled:[p.Mj6.None,"cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:[p.Mj6.None,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[p.Mj6.None,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[p.Mj6.None,"cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:[p.Mj6.None,"cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[p.Jv_([{provide:In,useValue:void 0},{provide:Xn,useExisting:ce}])]})}return ce})(),te=(()=>{class ce{static#e=this.\u0275fac=function(Ae){return new(Ae||ce)};static#t=this.\u0275mod=p.$C({type:ce});static#n=this.\u0275inj=p.G2t({providers:[wi],imports:[N.Gj]})}return ce})()},7336:(en,Me,R)=>{"use strict";R.d(Me,{A:()=>ze,A$:()=>B,FX:()=>l,Fm:()=>ee,G_:()=>w,Ge:()=>Qn,Kp:()=>Ce,LE:()=>ht,SJ:()=>kt,UQ:()=>Pe,W3:()=>W,Z:()=>$n,_f:()=>K,bn:()=>Te,dB:()=>oe,eg:()=>Yn,f2:()=>We,i7:()=>Qe,n6:()=>ot,rp:()=>Fi,t6:()=>H,w_:()=>pe,wn:()=>N,yZ:()=>we});const w=8,N=9,ee=13,l=16,W=17,B=18,K=27,H=32,pe=33,oe=34,Ce=35,we=36,Pe=37,Qe=38,ht=39,ot=40,kt=46,We=48,Te=57,ze=65,$n=90,Qn=91,Yn=224;function Fi(_i,...nr){return nr.length?nr.some(Ji=>_i[Ji]):_i.altKey||_i.shiftKey||_i.ctrlKey||_i.metaKey}},2318:(en,Me,R)=>{"use strict";R.d(Me,{Wv:()=>B,w5:()=>T});var p=R(4085),w=R(4438),N=R(1985),v=R(1413),ee=R(7771);let l=(()=>{class e{create(H){return typeof MutationObserver>"u"?null:new MutationObserver(H)}static#e=this.\u0275fac=function(pe){return new(pe||e)};static#t=this.\u0275prov=w.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),W=(()=>{class e{constructor(H){this._mutationObserverFactory=H,this._observedElements=new Map}
1ngOnDestroy(){this._observedElements.forEach((H,pe)=>this._cleanupObserver(pe))}observe(H){const pe=(0,p.i8)(H);return new N.c(oe=>{const we=this._observeElement(pe).subscribe(oe);return()=>{we.unsubscribe(),this._unobserveElement(pe)}})}_observeElement(H){if(this._observedElements.has(H))this._observedElements.get(H).count++;else{const pe=new v.B,oe=this._mutationObserverFactory.create(Ce=>pe.next(Ce));oe&&oe.observe(H,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(H,{observer:oe,stream:pe,count:1})}return this._observedElements.get(H).stream}_unobserveElement(H){this._observedElements.has(H)&&(this._observedElements.get(H).count--,this._observedElements.get(H).count||this._cleanupObserver(H))}_cleanupObserver(H){if(this._observedElements.has(H)){const{observer:pe,stream:oe}=this._observedElements.get(H);pe&&pe.disconnect(),oe.complete(),this._observedElements.delete(H)}}static#e=this.\u0275fac=function(pe){return new(pe||e)(w.KVO(l))};static#t=this.\u0275prov=w.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),B=(()=>{class e{get disabled(){return this._disabled}set disabled(H){this._disabled=(0,p.he)(H),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(H){this._debounce=(0,p.OE)(H),this._subscribe()}constructor(H,pe,oe){this._contentObserver=H,this._elementRef=pe,this._ngZone=oe,this.event=new w.bkB,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const H=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?H.pipe((0,ee.B)(this.debounce)):H).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(pe){return new(pe||e)(w.rXU(W),w.rXU(w.aKT),w.rXU(w.SKi))};static#t=this.\u0275dir=w.FsC({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[w.Mj6.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return e})(),T=(()=>{class e{static#e=this.\u0275fac=function(pe){return new(pe||e)};static#t=this.\u0275mod=w.$C({type:e});static#n=this.\u0275inj=w.G2t({providers:[l]})}return e})()},6860:(en,Me,R)=>{"use strict";R.d(Me,{BQ:()=>K,CZ:()=>oe,Fb:()=>ot,KT:()=>Qe,MU:()=>B,OD:()=>v,v8:()=>gt,vc:()=>ht});var p=R(4438),w=R(177);let N;try{N=typeof Intl<"u"&&Intl.v8BreakIterator}catch{N=!1}let l,v=(()=>{class je{constructor(kt){this._platformId=kt,this.isBrowser=this._platformId?(0,w.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!N)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(We){return new(We||je)(p.KVO(p.Agw))};static#t=this.\u0275prov=p.jDH({token:je,factory:je.\u0275fac,providedIn:"root"})}return je})();const W=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function B(){if(l)return l;if("object"!=typeof document||!document)return l=new Set(W),l;let je=document.createElement("input");return l=new Set(W.filter(Ct=>(je.setAttribute("type",Ct),je.type===Ct))),l}let T,pe,we;function K(je){return function e(){if(null==T&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>T=!0}))}finally{T=T||!1}return T}()?je:!!je.capture}function oe(){if(null==pe){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return pe=!1,pe;if("scrollBehavior"in document.documentElement.style)pe=!0;else{const je=Element.prototype.scrollTo;pe=!!je&&!/\{\s*\[native code\]\s*\}/.test(je.toString())}}return pe}function Qe(je){if(function Pe(){if(null==we){const je=typeof document<"u"?document.head:null;we=!(!je||!je.createShadowRoot&&!je.attachShadow)}return we}()){const Ct=je.getRootNode?je.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Ct instanceof ShadowRoot)return Ct}return null}function ht(){let je=typeof document<"u"&&document?document.activeElement:null;for(;je&&je.shadowRoot;){const Ct=je.shadowRoot.activeElement;if(Ct===je)break;je=Ct}return je}function ot(je){return je.composedPath?je.composedPath()[0]:je.target}function gt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Moc
1ha}},5478:(en,Me,R)=>{"use strict";R.d(Me,{E9:()=>Ze,Gj:()=>Te,R:()=>gt,Xj:()=>kt});var p=R(4085),w=R(4438),N=R(1413),v=R(7673),ee=R(1985),l=R(3726),T=(R(536),R(5007),R(3798)),e=R(5964),K=R(6860),H=R(177),pe=R(8203);let gt=(()=>{class Ne{constructor(Fe,ze,ft){this._ngZone=Fe,this._platform=ze,this._scrolled=new N.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ft}register(Fe){this.scrollContainers.has(Fe)||this.scrollContainers.set(Fe,Fe.elementScrolled().subscribe(()=>this._scrolled.next(Fe)))}deregister(Fe){const ze=this.scrollContainers.get(Fe);ze&&(ze.unsubscribe(),this.scrollContainers.delete(Fe))}scrolled(Fe=20){return this._platform.isBrowser?new ee.c(ze=>{this._globalSubscription||this._addGlobalListener();const ft=Fe>0?this._scrolled.pipe((0,T.Z)(Fe)).subscribe(ze):this._scrolled.subscribe(ze);return this._scrolledCount++,()=>{ft.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,v.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Fe,ze)=>this.deregister(ze)),this._scrolled.complete()}ancestorScrolled(Fe,ze){const ft=this.getAncestorScrollContainers(Fe);return this.scrolled(ze).pipe((0,e.p)(Re=>!Re||ft.indexOf(Re)>-1))}getAncestorScrollContainers(Fe){const ze=[];return this.scrollContainers.forEach((ft,Re)=>{this._scrollableContainsElement(Re,Fe)&&ze.push(Re)}),ze}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Fe,ze){let ft=(0,p.i8)(ze),Re=Fe.getElementRef().nativeElement;do{if(ft==Re)return!0}while(ft=ft.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Fe=this._getWindow();return(0,l.R)(Fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(ze){return new(ze||Ne)(w.KVO(w.SKi),w.KVO(K.OD),w.KVO(H.qQ,8))};static#t=this.\u0275prov=w.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"})}return Ne})(),kt=(()=>{class Ne{constructor(Fe,ze,ft){this._platform=Fe,this._change=new N.B,this._changeListener=Re=>{this._change.next(Re)},this._document=ft,ze.runOutsideAngular(()=>{if(Fe.isBrowser){const Re=this._getWindow();Re.addEventListener("resize",this._changeListener),Re.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Fe=this._getWindow();Fe.removeEventListener("resize",this._changeListener),Fe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Fe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Fe}getViewportRect(){const Fe=this.getViewportScrollPosition(),{width:ze,height:ft}=this.getViewportSize();return{top:Fe.top,left:Fe.left,bottom:Fe.top+ft,right:Fe.left+ze,height:ft,width:ze}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Fe=this._document,ze=this._getWindow(),ft=Fe.documentElement,Re=ft.getBoundingClientRect();return{top:-Re.top||Fe.body.scrollTop||ze.scrollY||ft.scrollTop||0,left:-Re.left||Fe.body.scrollLeft||ze.scrollX||ft.scrollLeft||0}}change(Fe=20){return Fe>0?this._change.pipe((0,T.Z)(Fe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Fe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Fe.innerWidth,height:Fe.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(ze){return new(ze||Ne)(w.KVO(K.OD),w.KVO(w.SKi),w.KVO(H.qQ,8))};static#t=this.\u0275prov=w.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"})}return Ne})(),Te=(()=>{class Ne{static#e=this.\u0275fac=function(ze){return new(ze||Ne)};static#t=this.\u0275mod=w.$C({type:Ne});static#n=this.\u0275inj=w.G2t({})}return Ne})(),Ze=(()=>{class Ne{static#e=this.\u0275fac=function(ze){return new(ze||Ne)};static#t=this.\u0275mod=w.$C({type:Ne});static#n=this.\u0275inj=w.G2t({imports:[pe.jI,Te,pe.jI,Te]})}return Ne})()},177:(en,Me,R)=>{"use strict";R.d(Me,{AJ:()=>fr,B3:()=>he,GH:()=>$t,Jj:()=>tt,MD:()=>Vn,N0:()=>qi,P9:()=>Br,PV:()=>zt,QT:()=>N,QX:()=>er,Sm:()=>we,Sq:()=>Cn,T3:()=>S,UE:()=>On,VF:()=>ee,Vy:()=>gr,Xr:()=>Vr,YU:()=>jt,ZD:()=>v,_b:()=>mt,aZ:()=>Qe,bT:()=>Fi,e1:()=>pr,fG:()=>io,fw:()=>Pe,hb:()=>
1oe,hj:()=>T,lG:()=>vn,oe:()=>yi,qQ:()=>W,ux:()=>gi,vh:()=>Zn});var p=R(4438);let w=null;function N(){return w}function v(j){w??=j}class ee{}const W=new p.nKC("");let B=(()=>{class j{historyGo(J){throw new Error("")}static#e=this.\u0275fac=function(ge){return new(ge||j)};static#t=this.\u0275prov=p.jDH({token:j,factory:()=>(0,p.WQX)(e),providedIn:"platform"})}return j})();const T=new p.nKC("");let e=(()=>{class j extends B{constructor(){super(),this._doc=(0,p.WQX)(W),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return N().getBaseHref(this._doc)}onPopState(J){const ge=N().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("popstate",J,!1),()=>ge.removeEventListener("popstate",J)}onHashChange(J){const ge=N().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("hashchange",J,!1),()=>ge.removeEventListener("hashchange",J)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(J){this._location.pathname=J}pushState(J,ge,st){this._history.pushState(J,ge,st)}replaceState(J,ge,st){this._history.replaceState(J,ge,st)}forward(){this._history.forward()}back(){this._history.back()}historyGo(J=0){this._history.go(J)}getState(){return this._history.state}static#e=this.\u0275fac=function(ge){return new(ge||j)};static#t=this.\u0275prov=p.jDH({token:j,factory:()=>new j,providedIn:"platform"})}return j})();function K(j,ke){if(0==j.length)return ke;if(0==ke.length)return j;let J=0;return j.endsWith("/")&&J++,ke.startsWith("/")&&J++,2==J?j+ke.substring(1):1==J?j+ke:j+"/"+ke}function H(j){const ke=j.match(/#|\?|$/),J=ke&&ke.index||j.length;return j.slice(0,J-("/"===j[J-1]?1:0))+j.slice(J)}function pe(j){return j&&"?"!==j[0]?"?"+j:j}let oe=(()=>{class j{historyGo(J){throw new Error("")}static#e=this.\u0275fac=function(ge){return new(ge||j)};static#t=this.\u0275prov=p.jDH({token:j,factory:()=>(0,p.WQX)(we),providedIn:"root"})}return j})();const Ce=new p.nKC("");let we=(()=>{class j extends oe{constructor(J,ge){super(),this._platformLocation=J,this._removeListenerFns=[],this._baseHref=ge??this._platformLocation.getBaseHrefFromDOM()??(0,p.WQX)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}prepareExternalUrl(J){return K(this._baseHref,J)}path(J=!1){const ge=this._platformLocation.pathname+pe(this._platformLocation.search),st=this._platformLocation.hash;return st&&J?`${ge}${st}`:ge}pushState(J,ge,st,Bt){const Zt=this.prepareExternalUrl(st+pe(Bt));this._platformLocation.pushState(J,ge,Zt)}replaceState(J,ge,st,Bt){const Zt=this.prepareExternalUrl(st+pe(Bt));this._platformLocation.replaceState(J,ge,Zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(J=0){this._platformLocation.historyGo?.(J)}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.KVO(B),p.KVO(Ce,8))};static#t=this.\u0275prov=p.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})(),Pe=(()=>{class j extends oe{constructor(J,ge){super(),this._platformLocation=J,this._baseHref="",this._removeListenerFns=[],null!=ge&&(this._baseHref=ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}path(J=!1){const ge=this._platformLocation.hash??"#";return ge.length>0?ge.substring(1):ge}prepareExternalUrl(J){const ge=K(this._baseHref,J);return ge.length>0?"#"+ge:ge}pushState(J,ge,st,Bt){let Zt=this.prepareExternalUrl(st+pe(Bt));0==Zt.length&&(Zt=this._platformLocation.pathname),this._platformLocation.pushState(J,ge,Zt)}replaceState(J,ge,st,Bt){let Zt=this.prepareExternalUrl(st+pe(Bt));0==Zt.length&&(Zt=this._platformLocation.pathname),this._platformLocation.replaceState(J,ge,Zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(J=0){this._platformLocation.historyGo?.(J)}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.KVO(B),p.KVO(Ce,8))};static#t=this.\u0275prov=p.jDH({token:j,factory:j.\u0275fac})}return j})(),Qe=(()=>
1{class j{constructor(J){this._subject=new p.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=J;const ge=this._locationStrategy.getBaseHref();this._basePath=function je(j){if(new RegExp("^(https?:)?//").test(j)){const[,J]=j.split(/\/\/[^\/]+/);return J}return j}(H(gt(ge))),this._locationStrategy.onPopState(st=>{this._subject.emit({url:this.path(!0),pop:!0,state:st.state,type:st.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(J=!1){return this.normalize(this._locationStrategy.path(J))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(J,ge=""){return this.path()==this.normalize(J+pe(ge))}normalize(J){return j.stripTrailingSlash(function ot(j,ke){if(!j||!ke.startsWith(j))return ke;const J=ke.substring(j.length);return""===J||["/",";","?","#"].includes(J[0])?J:ke}(this._basePath,gt(J)))}prepareExternalUrl(J){return J&&"/"!==J[0]&&(J="/"+J),this._locationStrategy.prepareExternalUrl(J)}go(J,ge="",st=null){this._locationStrategy.pushState(st,"",J,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+pe(ge)),st)}replaceState(J,ge="",st=null){this._locationStrategy.replaceState(st,"",J,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+pe(ge)),st)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(J=0){this._locationStrategy.historyGo?.(J)}onUrlChange(J){return this._urlChangeListeners.push(J),this._urlChangeSubscription??=this.subscribe(ge=>{this._notifyUrlChangeListeners(ge.url,ge.state)}),()=>{const ge=this._urlChangeListeners.indexOf(J);this._urlChangeListeners.splice(ge,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(J="",ge){this._urlChangeListeners.forEach(st=>st(J,ge))}subscribe(J,ge,st){return this._subject.subscribe({next:J,error:ge,complete:st})}static#e=this.normalizeQueryParams=pe;static#t=this.joinWithSlash=K;static#n=this.stripTrailingSlash=H;static#i=this.\u0275fac=function(ge){return new(ge||j)(p.KVO(oe))};static#r=this.\u0275prov=p.jDH({token:j,factory:()=>function ht(){return new Qe((0,p.KVO)(oe))}(),providedIn:"root"})}return j})();function gt(j){return j.replace(/\/index.html$/,"")}const Ct={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var kt=function(j){return j[j.Decimal=0]="Decimal",j[j.Percent=1]="Percent",j[j.Currency=2]="Currency",j[j.Scientific=3]="Scientific",j}(kt||{}),at=function(j){return j[j.Format=0]="Format",j[j.Standalone=1]="Standalone",j}(at||{}),le=function(j){return j[j.Narrow=0]="Narrow",j[j.Abbreviated=1]="Abbreviated",j[j.Wide=2]="Wide",j[j.Short=3]="Short",j}(le||{}),Xe=function(j){return j[j.Short=0]="Short",j[j.Medium=1]="Medium",j[j.Long=2]="Long",j[j.Full=3]="Full",j}(Xe||{});const Mt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Fe(j,ke){return lt((0,p.H5H)(j)[p.KH2.DateFormat],ke)}function ze(j,ke){return lt((0,p.H5H)(j)[p.KH2.TimeFormat],ke)}function ft(j,ke){return lt((0,p.H5H)(j)[p.KH2.DateTimeFormat],ke)}function Re(j,ke){const J=(0,p.H5H)(j),ge=J[p.KH2.NumberSymbols][ke];if(typeof ge>"u"){if(ke===Mt.CurrencyDecimal)return J[p.KH2.NumberSymbols][Mt.Decimal];if(ke===Mt.CurrencyGroup)return J[p.KH2.NumberSymbols][Mt.Group]}return ge}function rt(j,ke){return(0,p.H5H)(j)[p.KH2.NumberFormats][ke]}function Oe(j){if(!j[p.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${j[p.KH2.
1LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function lt(j,ke){for(let J=ke;J>-1;J--)if(typeof j[J]<"u")return j[J];throw new Error("Locale data API: locale data undefined")}function Rt(j){const[ke,J]=j.split(":");return{hours:+ke,minutes:+J}}const Ht=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pt={},fn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var kn=function(j){return j[j.Short=0]="Short",j[j.ShortGMT=1]="ShortGMT",j[j.Long=2]="Long",j[j.Extended=3]="Extended",j}(kn||{}),an=function(j){return j[j.FullYear=0]="FullYear",j[j.Month=1]="Month",j[j.Date=2]="Date",j[j.Hours=3]="Hours",j[j.Minutes=4]="Minutes",j[j.Seconds=5]="Seconds",j[j.FractionalSeconds=6]="FractionalSeconds",j[j.Day=7]="Day",j}(an||{}),qt=function(j){return j[j.DayPeriods=0]="DayPeriods",j[j.Days=1]="Days",j[j.Months=2]="Months",j[j.Eras=3]="Eras",j}(qt||{});function wi(j,ke,J,ge){let st=function Ae(j){if(ne(j))return j;if("number"==typeof j&&!isNaN(j))return new Date(j);if("string"==typeof j){if(j=j.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(j)){const[st,Bt=1,Zt=1]=j.split("-").map(yn=>+yn);return $n(st,Bt-1,Zt)}const J=parseFloat(j);if(!isNaN(j-J))return new Date(J);let ge;if(ge=j.match(Ht))return function Y(j){const ke=new Date(0);let J=0,ge=0;const st=j[8]?ke.setUTCFullYear:ke.setFullYear,Bt=j[8]?ke.setUTCHours:ke.setHours;j[9]&&(J=Number(j[9]+j[10]),ge=Number(j[9]+j[11])),st.call(ke,Number(j[1]),Number(j[2])-1,Number(j[3]));const Zt=Number(j[4]||0)-J,yn=Number(j[5]||0)-ge,Ai=Number(j[6]||0),Li=Math.floor(1e3*parseFloat("0."+(j[7]||0)));return Bt.call(ke,Zt,yn,Ai,Li),ke}(ge)}const ke=new Date(j);if(!ne(ke))throw new Error(`Unable to convert "${j}" into a date`);return ke}(j);ke=Qn(J,ke)||ke;let yn,Zt=[];for(;ke;){if(yn=fn.exec(ke),!yn){Zt.push(ke);break}{Zt=Zt.concat(yn.slice(1));const Ei=Zt.pop();if(!Ei)break;ke=Ei}}let Ai=st.getTimezoneOffset();ge&&(Ai=ce(ge,Ai),st=function ie(j,ke,J){const ge=J?-1:1,st=j.getTimezoneOffset();return function Z(j,ke){return(j=new Date(j.getTime())).setMinutes(j.getMinutes()+ke),j}(j,ge*(ce(ke,st)-st))}(st,ge,!0));let Li="";return Zt.forEach(Ei=>{const vi=function te(j){if(it[j])return it[j];let ke;switch(j){case"G":case"GG":case"GGG":ke=Fn(qt.Eras,le.Abbreviated);break;case"GGGG":ke=Fn(qt.Eras,le.Wide);break;case"GGGGG":ke=Fn(qt.Eras,le.Narrow);break;case"y":ke=hn(an.FullYear,1,0,!1,!0);break;case"yy":ke=hn(an.FullYear,2,0,!0,!0);break;case"yyy":ke=hn(an.FullYear,3,0,!1,!0);break;case"yyyy":ke=hn(an.FullYear,4,0,!1,!0);break;case"Y":ke=Se(1);break;case"YY":ke=Se(2,!0);break;case"YYY":ke=Se(3);break;case"YYYY":ke=Se(4);break;case"M":case"L":ke=hn(an.Month,1,1);break;case"MM":case"LL":ke=hn(an.Month,2,1);break;case"MMM":ke=Fn(qt.Months,le.Abbreviated);break;case"MMMM":ke=Fn(qt.Months,le.Wide);break;case"MMMMM":ke=Fn(qt.Months,le.Narrow);break;case"LLL":ke=Fn(qt.Months,le.Abbreviated,at.Standalone);break;case"LLLL":ke=Fn(qt.Months,le.Wide,at.Standalone);break;case"LLLLL":ke=Fn(qt.Months,le.Narrow,at.Standalone);break;case"w":ke=Xi(1);break;case"ww":ke=Xi(2);break;case"W":ke=Xi(1,!0);break;case"d":ke=hn(an.Date,1);break;case"dd":ke=hn(an.Date,2);break;case"c":case"cc":ke=hn(an.Day,1);break;case"ccc":ke=Fn(qt.Days,le.Abbreviated,at.Standalone);break;case"cccc":ke=Fn(qt.Days,le.Wide,at.Standalone);break;case"ccccc":ke=Fn(qt.Days,le.Narrow,at.Standalone);break;case"cccccc":ke=Fn(qt.Days,le.Short,at.Standalone);break;case"E":case"EE":case"EEE":ke=Fn(qt.Days,le.Abbreviated);break;case"EEEE":ke=Fn(qt.Days,le.Wide);break;case"EEEEE":ke=Fn(qt.Days,le.Narrow);break;case"EEEEEE":ke=Fn(qt.Days,le.Short);break;case"a":case"aa":case"aaa":ke=Fn(qt.DayPeriods,le.Abbreviated);break;case"aaaa":ke=Fn(qt.DayPeriods,le.Wide);break;case"aaaaa":ke=Fn(qt.DayPeriods,le.Narrow);break;case"b":case"bb":case"bbb":ke=Fn(qt.DayPeriods,le.Abbreviated,at.Standalone,!0);break;case"bbbb":ke=Fn(qt.DayPeriods,le.Wide,at.Standalone,!0);break;case"bbbbb":ke=Fn(qt.DayPeriods,le.Narrow,at.Standalone,!0);break;case"B":case"BB":case"BBB":ke=Fn(qt.DayPeriods,le.Abbreviated,at.Format,!0);break;case"BBBB":ke=Fn(qt.DayPeriods,le.Wide,at.Format,!0);break;case"BBBBB":ke=Fn(qt.DayPeriods,le.Narrow,at.Format,!0);break;
vendor: 16,228 bytes, line 1
1case"h":ke=hn(an.Hours,1,-12);break;case"hh":ke=hn(an.Hours,2,-12);break;case"H":ke=hn(an.Hours,1);break;case"HH":ke=hn(an.Hours,2);break;case"m":ke=hn(an.Minutes,1);break;case"mm":ke=hn(an.Minutes,2);break;case"s":ke=hn(an.Seconds,1);break;case"ss":ke=hn(an.Seconds,2);break;case"S":ke=hn(an.FractionalSeconds,1);break;case"SS":ke=hn(an.FractionalSeconds,2);break;case"SSS":ke=hn(an.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ke=hi(kn.Short);break;case"ZZZZZ":ke=hi(kn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ke=hi(kn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ke=hi(kn.Long);break;default:return null}return it[j]=ke,ke}(Ei);Li+=vi?vi(st,J,Ai):"''"===Ei?"'":Ei.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Li}function $n(j,ke,J){const ge=new Date(0);return ge.setFullYear(j,ke,J),ge.setHours(0,0,0),ge}function Qn(j,ke){const J=function Jt(j){return(0,p.H5H)(j)[p.KH2.LocaleId]}(j);if(Pt[J]??={},Pt[J][ke])return Pt[J][ke];let ge="";switch(ke){case"shortDate":ge=Fe(j,Xe.Short);break;case"mediumDate":ge=Fe(j,Xe.Medium);break;case"longDate":ge=Fe(j,Xe.Long);break;case"fullDate":ge=Fe(j,Xe.Full);break;case"shortTime":ge=ze(j,Xe.Short);break;case"mediumTime":ge=ze(j,Xe.Medium);break;case"longTime":ge=ze(j,Xe.Long);break;case"fullTime":ge=ze(j,Xe.Full);break;case"short":const st=Qn(j,"shortTime"),Bt=Qn(j,"shortDate");ge=Un(ft(j,Xe.Short),[st,Bt]);break;case"medium":const Zt=Qn(j,"mediumTime"),yn=Qn(j,"mediumDate");ge=Un(ft(j,Xe.Medium),[Zt,yn]);break;case"long":const Ai=Qn(j,"longTime"),Li=Qn(j,"longDate");ge=Un(ft(j,Xe.Long),[Ai,Li]);break;case"full":const Ei=Qn(j,"fullTime"),vi=Qn(j,"fullDate");ge=Un(ft(j,Xe.Full),[Ei,vi])}return ge&&(Pt[J][ke]=ge),ge}function Un(j,ke){return ke&&(j=j.replace(/\{([^}]+)}/g,function(J,ge){return null!=ke&&ge in ke?ke[ge]:J})),j}function Wn(j,ke,J="-",ge,st){let Bt="";(j<0||st&&j<=0)&&(st?j=1-j:(j=-j,Bt=J));let Zt=String(j);for(;Zt.length<ke;)Zt="0"+Zt;return ge&&(Zt=Zt.slice(Zt.length-ke)),Bt+Zt}function hn(j,ke,J=0,ge=!1,st=!1){return function(Bt,Zt){let yn=function Mi(j,ke){switch(j){case an.FullYear:return ke.getFullYear();case an.Month:return ke.getMonth();case an.Date:return ke.getDate();case an.Hours:return ke.getHours();case an.Minutes:return ke.getMinutes();case an.Seconds:return ke.getSeconds();case an.FractionalSeconds:return ke.getMilliseconds();case an.Day:return ke.getDay();default:throw new Error(`Unknown DateType value "${j}".`)}}(j,Bt);if((J>0||yn>-J)&&(yn+=J),j===an.Hours)0===yn&&-12===J&&(yn=12);else if(j===an.FractionalSeconds)return function Oi(j,ke){return Wn(j,3).substring(0,ke)}(yn,ke);const Ai=Re(Zt,Mt.MinusSign);return Wn(yn,ke,Ai,ge,st)}}function Fn(j,ke,J=at.Format,ge=!1){return function(st,Bt){return function xn(j,ke,J,ge,st,Bt){switch(J){case qt.Months:return function Te(j,ke,J){const ge=(0,p.H5H)(j),Bt=lt([ge[p.KH2.MonthsFormat],ge[p.KH2.MonthsStandalone]],ke);return lt(Bt,J)}(ke,st,ge)[j.getMonth()];case qt.Days:return function Gt(j,ke,J){const ge=(0,p.H5H)(j),Bt=lt([ge[p.KH2.DaysFormat],ge[p.KH2.DaysStandalone]],ke);return lt(Bt,J)}(ke,st,ge)[j.getDay()];case qt.DayPeriods:const Zt=j.getHours(),yn=j.getMinutes();if(Bt){const Li=function Ue(j){const ke=(0,p.H5H)(j);return Oe(ke),(ke[p.KH2.ExtraData][2]||[]).map(ge=>"string"==typeof ge?Rt(ge):[Rt(ge[0]),Rt(ge[1])])}(ke),Ei=function $e(j,ke,J){const ge=(0,p.H5H)(j);Oe(ge);const Bt=lt([ge[p.KH2.ExtraData][0],ge[p.KH2.ExtraData][1]],ke)||[];return lt(Bt,J)||[]}(ke,st,ge),vi=Li.findIndex(Jn=>{if(Array.isArray(Jn)){const[Hi,Pi]=Jn,bi=Zt>=Hi.hours&&yn>=Hi.minutes,rn=Zt<Pi.hours||Zt===Pi.hours&&yn<Pi.minutes;if(Hi.hours<Pi.hours){if(bi&&rn)return!0}else if(bi||rn)return!0}else if(Jn.hours===Zt&&Jn.minutes===yn)return!0;return!1});if(-1!==vi)return Ei[vi]}return function ct(j,ke,J){const ge=(0,p.H5H)(j),Bt=lt([ge[p.KH2.DayPeriodsFormat],ge[p.KH2.DayPeriodsStandalone]],ke);return lt(Bt,J)}(ke,st,ge)[Zt<12?0:1];case qt.Eras:return function Ze(j,ke){return lt((0,p.H5H)(j)[p.KH2.Eras],ke)}(ke,ge)[j.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${J}`)}}(st,Bt,j,ke,J,ge)}}function hi(j){return function(ke,J,ge){const st=-1*ge,Bt=Re(J,Mt.MinusSign),Zt=st>0?Math.floor(st/60):Math.ceil(st/60);switch(j){case kn.Short:return(st>=0?"+":"")+Wn(Zt,2,Bt)+Wn(Math.abs(st%60),2,Bt);case kn.ShortGMT:return"GMT"+(st>=0?"+":"")+Wn(Zt,1,Bt);case kn.Long:return"GMT"+(st>=0?"+":"")+Wn(Zt,2,Bt)+":"+Wn(Math.abs(st%60),2,Bt);case kn.Extended:return 0===ge?"Z":(st>=0?"+":"")+Wn(Zt,2,Bt)+":"+Wn(Math.abs(st%60),2,Bt);default:throw new Error(`Unknown zone width "${j}"`)}}}const Xn=0,ri=4;function kr(j){const ke=j.getDay(),J=0===ke?-3:ri-ke;return $n(j.getFullYear(),j.getMonth(),j.getDate()+J)}function Xi(j,ke=!1){return function(J,ge){let st;if(ke){const Bt=new Date(J.getFullYear(),J.getMonth(),1).getDay()-1,Zt=J.getDate();st=1+Math.floor((Zt+Bt)/7)}else{const Bt=kr(J),Zt=function In(j){const ke=$n(j,Xn,1).getDay();return $n(j,0,1+(ke<=ri?ri:ri+7)-ke)}(Bt.getFullYear()),yn=Bt.getTime()-Zt.getTime();st=1+Math.round(yn/6048e5)}return Wn(st,j,Re(ge,Mt.MinusSign))}}function Se(j,ke=!1){return function(J,ge){return Wn(kr(J).getFullYear(),j,Re(ge,Mt.MinusSign),ke)}}const it={};function ce(j,ke){j=j.replace(/:/g,"");const J=Date.parse("Jan 01, 1970 00:00:00 "+j)/6e4;return isNaN(J)?ke:J}function ne(j){return j instanceof Date&&!isNaN(j.valueOf())}const fe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ke=22,ve=".",ye="0",be=";",Ee=",",pt="#";function ln(j,ke,J,ge,st,Bt,Zt=!1){let yn="",Ai=!1;if(isFinite(j)){let Li=function vr(j){let ge,st,Bt,Zt,yn,ke=Math.abs(j)+"",J=0;for((st=ke.indexOf(ve))>-1&&(ke=ke.replace(ve,"")),(Bt=ke.search(/e/i))>0?(st<0&&(st=Bt),st+=+ke.slice(Bt+1),ke=ke.substring(0,Bt)):st<0&&(st=ke.length),Bt=0;ke.charAt(Bt)===ye;Bt++);if(Bt===(yn=ke.length))ge=[0],st=1;else{for(yn--;ke.charAt(yn)===ye;)yn--;for(st-=Bt,ge=[],Zt=0;Bt<=yn;Bt++,Zt++)ge[Zt]=Number(ke.charAt(Bt))}return st>Ke&&(ge=ge.splice(0,Ke-1),J=st-1,st=1),{digits:ge,exponent:J,integerLen:st}}(j);Zt&&(Li=function _r(j){if(0===j.digits[0])return j;const ke=j.digits.length-j.integerLen;return j.exponent?j.exponent+=2:(0===ke?j.digits.push(0,0):1===ke&&j.digits.push(0),j.integerLen+=2),j}(Li));let Ei=ke.minInt,vi=ke.minFrac,Jn=ke.maxFrac;if(Bt){const xi=Bt.match(fe);if(null===xi)throw new Error(`${Bt} is not a valid digit info`);const Fr=xi[1],yr=xi[3],Gr=xi[5];null!=Fr&&(Ei=$r(Fr)),null!=yr&&(vi=$r(yr)),null!=Gr?Jn=$r(Gr):null!=yr&&vi>Jn&&(Jn=vi)}!function dr(j,ke,J){if(ke>J)throw new Error(`The minimum number of digits after fraction (${ke}) is higher than the maximum (${J}).`);let ge=j.digits,st=ge.length-j.integerLen;const Bt=Math.min(Math.max(ke,st),J);let Zt=Bt+j.integerLen,yn=ge[Zt];if(Zt>0){ge.splice(Math.max(j.integerLen,Zt));for(let vi=Zt;vi<ge.length;vi++)ge[vi]=0}else{st=Math.max(0,st),j.integerLen=1,ge.length=Math.max(1,Zt=Bt+1),ge[0]=0;for(let vi=1;vi<Zt;vi++)ge[vi]=0}if(yn>=5)if(Zt-1<0){for(let vi=0;vi>Zt;vi--)ge.unshift(0),j.integerLen++;ge.unshift(1),j.integerLen++}else ge[Zt-1]++;for(;st<Math.max(0,Bt);st++)ge.push(0);let Ai=0!==Bt;const Li=ke+j.integerLen,Ei=ge.reduceRight(function(vi,Jn,Hi,Pi){return Pi[Hi]=(Jn+=vi)<10?Jn:Jn-10,Ai&&(0===Pi[Hi]&&Hi>=Li?Pi.pop():Ai=!1),Jn>=10?1:0},0);Ei&&(ge.unshift(Ei),j.integerLen++)}(Li,vi,Jn);let Hi=Li.digits,Pi=Li.integerLen;const bi=Li.exponent;let rn=[];for(Ai=Hi.every(xi=>!xi);Pi<Ei;Pi++)Hi.unshift(0);for(;Pi<0;Pi++)Hi.unshift(0);Pi>0?rn=Hi.splice(Pi,Hi.length):(rn=Hi,Hi=[0]);const Sn=[];for(Hi.length>=ke.lgSize&&Sn.unshift(Hi.splice(-ke.lgSize,Hi.length).join(""));Hi.length>ke.gSize;)Sn.unshift(Hi.splice(-ke.gSize,Hi.length).join(""));Hi.length&&Sn.unshift(Hi.join("")),yn=Sn.join(Re(J,ge)),rn.length&&(yn+=Re(J,st)+rn.join("")),bi&&(yn+=Re(J,Mt.Exponential)+"+"+bi)}else yn=Re(J,Mt.Infinity);return yn=j<0&&!Ai?ke.negPre+yn+ke.negSuf:ke.posPre+yn+ke.posSuf,yn}function Bn(j,ke="-"){const J={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ge=j.split(be),st=ge[0],Bt=ge[1],Zt=-1!==st.indexOf(ve)?st.split(ve):[st.substring(0,st.lastIndexOf(ye)+1),st.substring(st.lastIndexOf(ye)+1)],yn=Zt[0],Ai=Zt[1]||"";J.posPre=yn.substring(0,yn.indexOf(pt));for(let Ei=0;Ei<Ai.length;Ei++){const vi=Ai.charAt(Ei);vi===ye?J.minFrac=J.maxFrac=Ei+1:vi===pt?J.maxFrac=Ei+1:J.posSuf+=vi}const Li=yn.split(Ee);if(J.gSize=Li[1]?Li[1].length:0,J.lgSize=Li[2]||Li[1]?(Li[2]||Li[1]).length:0,Bt){const Ei=st.length-J.posPre.length-J.posSuf.length,vi=Bt.indexOf(pt);J.negPre=Bt.substring(0,vi).replace(/'/g,""),J.negSuf=Bt.slice(vi+Ei).replace(/'/g,"")}else J.negPre=ke+J.posPre,J.negSuf=J.posSuf;return J}function $r(j){const ke=parseInt(j);if(isNaN(ke))throw new Error("Invalid integer literal when parsing "+j);return ke}function mt(j,ke){ke=encodeURIComponent(ke);for(const J of j.split(";")){const ge=J.indexOf("="),[st,Bt]=-1==ge?[J,""]:[J.slice(0,ge),J.slice(ge+1)];if(st.trim()===ke)return decodeURIComponent(Bt)}return null}const vt=/\s+/,Ut=[];let jt=(()=>{class j{constructor(J,ge){this._ngEl=J,this._renderer=ge,this.initialClasses=Ut,this.stateMap=new Map}set klass(J){this.initialClasses=null!=J?J.trim().split(vt):Ut}set ngClass(J){this.rawClass="string"==typeof J?J.trim().split(vt):J}ngDoCheck(){for(const ge of this.initialClasses)this._updateState(ge,!0);const J=this.rawClass;if(Array.isArray(J)||J instanceof Set)for(const ge of J)this._updateState(ge,!0);else if(null!=J)for(const ge of Object.keys(J))this._updateState(ge,!!J[ge]);this._applyStateDiff()}_updateState(J,ge){const st=this.stateMap.get(J);void 0!==st?(st.enabled!==ge&&(st.changed=!0,st.enabled=ge),st.touched=!0):this.stateMap.set(J,{enabled:ge,changed:!0,touched:!0})}_applyStateDiff(){for(const J of this.stateMap){const ge=J[0],st=J[1];st.changed?(this._toggleClass(ge,st.enabled),st.changed=!1):st.touched||(st.enabled&&this._toggleClass(ge,!1),this.stateMap.delete(ge)),st.touched=!1}}_toggleClass(J,ge){(J=J.trim()).length>0&&J.split(vt).forEach(st=>{ge?this._renderer.addClass(this._ngEl.nativeElement,st):this._renderer.removeClass(this._ngEl.nativeElement,st)})}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.aKT),p.rXU(p.sFG))};static#t=this.\u0275dir=p.FsC({type:j,selectors:[["","ngClass",""]],inputs:{klass:[p.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return j})();class Pn{constructor(ke,J,ge,st){this.$implicit=ke,this.ngForOf=J,this.index=ge,this.count=st}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Cn=(()=>{class j{set ngForOf(J){this._ngForOf=J,this._ngForOfDirty=!0}set ngForTrackBy(J){this._trackByFn=J}get ngForTrackBy(){return this._trackByFn}constructor(J,ge,st){this._viewContainer=J,this._template=ge,this._differs=st,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(J){J&&(this._template=J)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const J=this._ngForOf;!this._differ&&J&&(this._differ=this._differs.find(J).create(this.ngForTrackBy))}if(this._differ){const J=this._differ.diff(this._ngForOf);J&&this._applyChanges(J)}}_applyChanges(J){const ge=this._viewContainer;J.forEachOperation((st,Bt,Zt)=>{if(null==st.previousIndex)ge.createEmbeddedView(this._template,new Pn(st.item,this._ngForOf,-1,-1),null===Zt?void 0:Zt);else if(null==Zt)ge.remove(null===Bt?void 0:Bt);else if(null!==Bt){const yn=ge.get(Bt);ge.move(yn,Zt),si(yn,st)}});for(let st=0,Bt=ge.length;st<Bt;st++){const yn=ge.get(st).context;yn.index=st,yn.count=Bt,yn.ngForOf=this._ngForOf}J.forEachIdentityChange(st=>{si(ge.get(st.currentIndex),st)})}static ngTemplateContextGuard(J,ge){return!0}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.c1b),p.rXU(p.C4Q),p.rXU(p._q3))};static#t=this.\u0275dir=p.FsC({type:j,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return j})();function si(j,ke){j.context.$implicit=ke.item}let Fi=(()=>{class j{constructor(J,ge){this._viewContainer=J,this._context=new _i,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ge}set ngIf(J){this._context.$implicit=this._context.ngIf=J,this._updateView()}set ngIfThen(J){nr("ngIfThen",J),this._thenTemplateRef=J,this._thenViewRef=null,this._updateView()}set ngIfElse(J){nr("ngIfElse",J),this._elseTemplateRef=J,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(J,ge){return!0}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.c1b),p.rXU(p.C4Q))};static#t=this.\u0275dir=p.FsC({type:j,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return j})();class _i{constructor(){this.$implicit=null,this.ngIf=null}}function nr(j,ke){if(ke&&!ke.createEmbeddedView)throw new Error(`${j} must be a TemplateRef, but received '${(0,p.Tbb)(ke)}'.`)}class fi{constructor(ke,J){this._viewContainerRef=ke,this._templateRef=J,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ke){ke&&!this._created?this.create():!ke&&this._created&&this.destroy()}}let gi=(()=>{class j{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(J){this._ngSwitch=J,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(J){this._defaultViews.push(J)}_matchCase(J){const ge=J===this._ngSwitch;return this._lastCasesMatched||=ge,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ge}_updateDefaultCases(J){if(this._defaultViews.length>0&&J!==this._defaultUsed){this._defaultUsed=J;for(const ge of this._defaultViews)ge.enforceState(J)}}static#e=this.\u0275fac=function(ge){return new(ge||j)};static#t=this.\u0275dir=p.FsC({type:j,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return j})(),pr=(()=>{class j{constructor(J,ge,st){this.ngSwitch=st,st._addCase(),this._view=new fi(J,ge)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.c1b),p.rXU(p.C4Q),p.rXU(gi,9))};static#t=this.\u0275dir=p.FsC({type:j,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return j})(),io=(()=>{class j{constructor(J,ge,st){st._addDefault(new fi(J,ge))}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.c1b),p.rXU(p.C4Q),p.rXU(gi,9))};static#t=this.\u0275dir=p.FsC({type:j,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return j})(),he=(()=>{class j{constructor(J,ge,st){this._ngEl=J,this._differs=ge,this._renderer=st,this._ngStyle=null,this._differ=null}set ngStyle(J){this._ngStyle=J,!this._differ&&J&&(this._differ=this._differs.find(J).create())}ngDoCheck(){if(this._differ){const J=this._differ.diff(this._ngStyle);J&&this._applyChanges(J)}}_setStyle(J,ge){const[st,Bt]=J.split("."),Zt=-1===st.indexOf("-")?void 0:p.czy.DashCase;null!=ge?this._renderer.setStyle(this._ngEl.nativeElement,st,Bt?`${ge}${Bt}`:ge,Zt):this._renderer.removeStyle(this._ngEl.nativeElement,st,Zt)}_applyChanges(J){J.forEachRemovedItem(ge=>this._setStyle(ge.key,null)),J.forEachAddedItem(ge=>this._setStyle(ge.key,ge.currentValue)),J.forEachChangedItem(ge=>this._setStyle(ge.key,ge.currentValue))}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.aKT),p.rXU(p.MKu),p.rXU(p.sFG))};static#t=this.\u0275dir=p.FsC({type:j,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return j})(),S=(()=>
1{class j{constructor(J){this._viewContainerRef=J,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(J){if(this._shouldRecreateView(J)){const ge=this._viewContainerRef;if(this._viewRef&&ge.remove(ge.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const st=this._createContextForwardProxy();this._viewRef=ge.createEmbeddedView(this.ngTemplateOutlet,st,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(J){return!!J.ngTemplateOutlet||!!J.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(J,ge,st)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ge,st),get:(J,ge,st)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ge,st)}})}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.c1b))};static#t=this.\u0275dir=p.FsC({type:j,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[p.OA$]})}return j})();function C(j,ke){return new p.wOt(2100,!1)}class se{createSubscription(ke,J){return(0,p.O8t)(()=>ke.subscribe({next:J,error:ge=>{throw ge}}))}dispose(ke){(0,p.O8t)(()=>ke.unsubscribe())}}class G{createSubscription(ke,J){return ke.then(J,ge=>{throw ge})}dispose(ke){}}const E=new G,re=new se;let tt=(()=>{class j{constructor(J){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=J}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(J){if(!this._obj){if(J)try{this.markForCheckOnValueUpdate=!1,this._subscribe(J)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return J!==this._obj?(this._dispose(),this.transform(J)):this._latestValue}_subscribe(J){this._obj=J,this._strategy=this._selectStrategy(J),this._subscription=this._strategy.createSubscription(J,ge=>this._updateLatestValue(J,ge))}_selectStrategy(J){if((0,p.jNT)(J))return E;if((0,p.zjR)(J))return re;throw C()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(J,ge){J===this._obj&&(this._latestValue=ge,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.gRc,16))};static#t=this.\u0275pipe=p.EJ8({name:"async",type:j,pure:!1,standalone:!0})}return j})(),$t=(()=>{class j{transform(J){if(null==J)return null;if("string"!=typeof J)throw C();return J.toLowerCase()}static#e=this.\u0275fac=function(ge){return new(ge||j)};static#t=this.\u0275pipe=p.EJ8({name:"lowercase",type:j,pure:!0,standalone:!0})}return j})();const Qt=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
10EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let zt=(()=>{class j{transform(J){if(null==J)return null;if("string"!=typeof J)throw C();return J.replace(Qt,ge=>ge[0].toUpperCase()+ge.slice(1).toLowerCase())}static#e=this.\u0275fac=function(ge){return new(ge||j)};
1static#t=this.\u0275pipe=p.EJ8({name:"titlecase",type:j,pure:!0,standalone:!0})}return j})();const dn=new p.nKC(""),cn=new p.nKC("");let Zn=(()=>{class j{constructor(J,ge,st){this.locale=J,this.defaultTimezone=ge,this.defaultOptions=st}transform(J,ge,st,Bt){if(null==J||""===J||J!=J)return null;try{return wi(J,ge??this.defaultOptions?.dateFormat??"mediumDate",Bt||this.locale,st??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Zt){throw C()}}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.xe9,16),p.rXU(dn,24),p.rXU(cn,24))};static#t=this.\u0275pipe=p.EJ8({name:"date",type:j,pure:!0,standalone:!0})}return j})(),vn=(()=>{class j{constructor(J){this.differs=J,this.keyValues=[],this.compareFn=ti}transform(J,ge=ti){if(!J||!(J instanceof Map)&&"object"!=typeof J)return null;this.differ??=this.differs.find(J).create();const st=this.differ.diff(J),Bt=ge!==this.compareFn;return st&&(this.keyValues=[],st.forEachItem(Zt=>{this.keyValues.push(function gn(j,ke){return{key:j,value:ke}}(Zt.key,Zt.currentValue))})),(st||Bt)&&(this.keyValues.sort(ge),this.compareFn=ge),this.keyValues}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.MKu,16))};static#t=this.\u0275pipe=p.EJ8({name:"keyvalue",type:j,pure:!1,standalone:!0})}return j})();function ti(j,ke){const J=j.key,ge=ke.key;if(J===ge)return 0;if(void 0===J)return 1;if(void 0===ge)return-1;if(null===J)return 1;if(null===ge)return-1;if("string"==typeof J&&"string"==typeof ge)return J<ge?-1:1;if("number"==typeof J&&"number"==typeof ge)return J-ge;if("boolean"==typeof J&&"boolean"==typeof ge)return J<ge?-1:1;const st=String(J),Bt=String(ge);return st==Bt?0:st<Bt?-1:1}let er=(()=>{class j{constructor(J){this._locale=J}transform(J,ge,st){if(!hr(J))return null;st||=this._locale;try{return function Ti(j,ke,J){return ln(j,Bn(rt(ke,kt.Decimal),Re(ke,Mt.MinusSign)),ke,Mt.Group,Mt.Decimal,J)}(Tn(J),st,ge)}catch(Bt){throw C()}}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.xe9,16))};static#t=this.\u0275pipe=p.EJ8({name:"number",type:j,pure:!0,standalone:!0})}return j})(),yi=(()=>{class j{constructor(J,ge="USD"){this._locale=J,this._defaultCurrencyCode=ge}transform(J,ge=this._defaultCurrencyCode,st="symbol",Bt,Zt){if(!hr(J))return null;Zt||=this._locale,"boolean"==typeof st&&(st=st?"symbol":"code");let yn=ge||this._defaultCurrencyCode;"code"!==st&&(yn="symbol"===st||"symbol-narrow"===st?function nt(j,ke,J="en"){const ge=function ue(j){return(0,p.H5H)(j)[p.KH2.Currencies]}(J)[j]||Ct[j]||[],st=ge[1];return"narrow"===ke&&"string"==typeof st?st:ge[0]||j}(yn,"symbol"===st?"wide":"narrow",Zt):st);try{return function An(j,ke,J,ge,st){const Zt=Bn(rt(ke,kt.Currency),Re(ke,Mt.MinusSign));return Zt.minFrac=function St(j){let ke;const J=Ct[j];return J&&(ke=J[2]),"number"==typeof ke?ke:2}(ge),Zt.maxFrac=Zt.minFrac,ln(j,Zt,ke,Mt.CurrencyGroup,Mt.CurrencyDecimal,st).replace("\xa4",J).replace("\xa4","").trim()}(Tn(J),Zt,yn,ge,Bt)}catch(Ai){throw C()}}static#e=this.\u0275fac=function(ge){return new(ge||j)(p.rXU(p.xe9,16),p.rXU(p.Ocv,16))};static#t=this.\u0275pipe=p.EJ8({name:"currency",type:j,pure:!0,standalone:!0})}return j})();function hr(j){return!(null==j||""===j||j!=j)}function Tn(j){if("string"==typeof j&&!isNaN(Number(j)-parseFloat(j)))return Number(j);if("number"!=typeof j)throw new Error(`${j} is not a number`);return j}let Br=(()=>{class j{transform(J,ge,st){if(null==J)return null;if(!this.supports(J))throw C();return J.slice(ge,st)}supports(J){return"string"==typeof J||Array.isArray(J)}static#e=this.\u0275fac=function(ge){return new(ge||j)};static#t=this.\u0275pipe=p.EJ8({name:"slice",type:j,pure:!1,standalone:!0})}return j})(),Vn=(()=>{class j{static#e=this.\u0275fac=function(ge){return new(ge||j)};static#t=this.\u0275mod=p.$C({type:j});static#n=this.\u0275inj=p.G2t({})}return j})();const fr="browser",Ir="server";function On(j){return j===fr}function gr(j){return j===Ir}let Vr=(()=>{class j{static#e=this.\u0275prov=(0,p.jDH)({token:j,providedIn:"root",factory:()=>On((0,p.WQX)(p.Agw))?new Ui((0,p.WQX)(W),window):new Si})}return j})();class Ui{constructor(ke,J){this.document=ke,this.window=J,this.offset=()=>[0,0]}setOffset(ke){this.offset=Array.isArray(ke)?()=>ke:ke}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ke){this.window.scrollTo(ke[0],ke[1])}scrollToAnchor(ke){const J=function Ii(j,ke){const J=j.getElementById(ke)||j.getElementsByName(ke)[0];if(J)return J;if("function"==typeof j.createTreeWalker&&j.body&&"function"==typeof j.body.attachShadow){const ge=j.createTreeWalker(j.body,NodeFilter.SHOW_ELEMENT);let st=ge.currentNode;for(;st;){const Bt=st.shadowRoot;if(Bt){const Zt=Bt.getElementById(ke)||Bt.querySelector(`[name="${ke}"]`);if(Zt)return Zt}st=ge.nextNode()}}return null}(this.document,ke);J&&(this.scrollToElement(J),J.focus())}setHistoryScrollRestoration(ke){this.window.history.scrollRestoration=ke}scrollToElement(ke){const J=ke.getBoundingClientRect(),ge=J.left+this.window.pageXOffset,st=J.top+this.window.pageYOffset,Bt=this.offset();this.window.scrollTo(ge-Bt[0],st-Bt[1])}}class Si{setOffset(ke){}getScrollPosition(){return[0,0]}scrollToPosition(ke){}scrollToAnchor(ke){}setHistoryScrollRestoration(ke){}}class qi{}},1626:(en,Me,R)=>{"use strict";R.d(Me,{Lr:()=>oe,Qq:()=>Fe,a7:()=>Ue,q1:()=>be}),R(467);var w=R(4438),N=R(7673),v=R(1985),ee=R(2806),l=R(274),W=R(5964),B=R(6354),T=R(980),e=R(5558),K=R(177);class H{}class pe{}class oe{constructor(mt){this.normalizedNames=new Map,this.lazyUpdate=null,mt?"string"==typeof mt?this.lazyInit=()=>{this.headers=new Map,mt.split("\n").forEach(vt=>{const Ut=vt.indexOf(":");if(Ut>0){const jt=vt.slice(0,Ut),un=jt.toLowerCase(),Xt=vt.slice(Ut+1).trim();this.maybeSetNormalizedName(jt,un),this.headers.has(un)?this.headers.get(un).push(Xt):this.headers.set(un,[Xt])}})}:typeof Headers<"u"&&mt instanceof Headers?(this.headers=new Map,mt.forEach((vt,Ut)=>{this.setHeaderEntries(Ut,vt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(mt).forEach(([vt,Ut])=>{this.setHeaderEntries(vt,Ut)})}:this.headers=new Map}has(mt){return this.init(),this.headers.has(mt.toLowerCase())}get(mt){this.init();const vt=this.headers.get(mt.toLowerCase());return vt&&vt.length>0?vt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(mt){return this.init(),this.headers.get(mt.toLowerCase())||null}append(mt,vt){return this.clone({name:mt,value:vt,op:"a"})}set(mt,vt){return this.clone({name:mt,value:vt,op:"s"})}delete(mt,vt){return this.clone({name:mt,value:vt,op:"d"})}maybeSetNormalizedName(mt,vt){this.normalizedNames.has(vt)||this.normalizedNames.set(vt,mt)}init(){this.lazyInit&&(this.lazyInit instanceof oe?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(mt=>this.applyUpdate(mt)),this.lazyUpdate=null))}
vendor: 6,563 bytes, line 1
1copyFrom(mt){mt.init(),Array.from(mt.headers.keys()).forEach(vt=>{this.headers.set(vt,mt.headers.get(vt)),this.normalizedNames.set(vt,mt.normalizedNames.get(vt))})}clone(mt){const vt=new oe;return vt.lazyInit=this.lazyInit&&this.lazyInit instanceof oe?this.lazyInit:this,vt.lazyUpdate=(this.lazyUpdate||[]).concat([mt]),vt}applyUpdate(mt){const vt=mt.name.toLowerCase();switch(mt.op){case"a":case"s":let Ut=mt.value;if("string"==typeof Ut&&(Ut=[Ut]),0===Ut.length)return;this.maybeSetNormalizedName(mt.name,vt);const jt=("a"===mt.op?this.headers.get(vt):void 0)||[];jt.push(...Ut),this.headers.set(vt,jt);break;case"d":const un=mt.value;if(un){let Xt=this.headers.get(vt);if(!Xt)return;Xt=Xt.filter(Pn=>-1===un.indexOf(Pn)),0===Xt.length?(this.headers.delete(vt),this.normalizedNames.delete(vt)):this.headers.set(vt,Xt)}else this.headers.delete(vt),this.normalizedNames.delete(vt)}}setHeaderEntries(mt,vt){const Ut=(Array.isArray(vt)?vt:[vt]).map(un=>un.toString()),jt=mt.toLowerCase();this.headers.set(jt,Ut),this.maybeSetNormalizedName(mt,jt)}forEach(mt){this.init(),Array.from(this.normalizedNames.keys()).forEach(vt=>mt(this.normalizedNames.get(vt),this.headers.get(vt)))}}class we{encodeKey(mt){return ot(mt)}encodeValue(mt){return ot(mt)}decodeKey(mt){return decodeURIComponent(mt)}decodeValue(mt){return decodeURIComponent(mt)}}const Qe=/%(\d[a-f0-9])/gi,ht={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ot(qe){return encodeURIComponent(qe).replace(Qe,(mt,vt)=>ht[vt]??mt)}function gt(qe){return`${qe}`}class je{constructor(mt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=mt.encoder||new we,mt.fromString){if(mt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Pe(qe,mt){const vt=new Map;return qe.length>0&&qe.replace(/^\?/,"").split("&").forEach(jt=>{const un=jt.indexOf("="),[Xt,Pn]=-1==un?[mt.decodeKey(jt),""]:[mt.decodeKey(jt.slice(0,un)),mt.decodeValue(jt.slice(un+1))],Cn=vt.get(Xt)||[];Cn.push(Pn),vt.set(Xt,Cn)}),vt}(mt.fromString,this.encoder)}else mt.fromObject?(this.map=new Map,Object.keys(mt.fromObject).forEach(vt=>{const Ut=mt.fromObject[vt],jt=Array.isArray(Ut)?Ut.map(gt):[gt(Ut)];this.map.set(vt,jt)})):this.map=null}has(mt){return this.init(),this.map.has(mt)}get(mt){this.init();const vt=this.map.get(mt);return vt?vt[0]:null}getAll(mt){return this.init(),this.map.get(mt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(mt,vt){return this.clone({param:mt,value:vt,op:"a"})}appendAll(mt){const vt=[];return Object.keys(mt).forEach(Ut=>{const jt=mt[Ut];Array.isArray(jt)?jt.forEach(un=>{vt.push({param:Ut,value:un,op:"a"})}):vt.push({param:Ut,value:jt,op:"a"})}),this.clone(vt)}set(mt,vt){return this.clone({param:mt,value:vt,op:"s"})}delete(mt,vt){return this.clone({param:mt,value:vt,op:"d"})}toString(){return this.init(),this.keys().map(mt=>{const vt=this.encoder.encodeKey(mt);return this.map.get(mt).map(Ut=>vt+"="+this.encoder.encodeValue(Ut)).join("&")}).filter(mt=>""!==mt).join("&")}clone(mt){const vt=new je({encoder:this.encoder});return vt.cloneFrom=this.cloneFrom||this,vt.updates=(this.updates||[]).concat(mt),vt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(mt=>this.map.set(mt,this.cloneFrom.map.get(mt))),this.updates.forEach(mt=>{switch(mt.op){case"a":case"s":const vt=("a"===mt.op?this.map.get(mt.param):void 0)||[];vt.push(gt(mt.value)),this.map.set(mt.param,vt);break;case"d":if(void 0===mt.value){this.map.delete(mt.param);break}{let Ut=this.map.get(mt.param)||[];const jt=Ut.indexOf(gt(mt.value));-1!==jt&&Ut.splice(jt,1),Ut.length>0?this.map.set(mt.param,Ut):this.map.delete(mt.param)}}}),this.cloneFrom=this.updates=null)}}class kt{constructor(){this.map=new Map}set(mt,vt){return this.map.set(mt,vt),this}get(mt){return this.map.has(mt)||this.map.set(mt,mt.defaultValue()),this.map.get(mt)}delete(mt){return this.map.delete(mt),this}has(mt){return this.map.has(mt)}keys(){return this.map.keys()}}function at(qe){return typeof ArrayBuffer<"u"&&qe instanceof ArrayBuffer}function le(qe){return typeof Blob<"u"&&qe instanceof Blob}function Xe(qe){return typeof FormData<"u"&&qe instanceof FormData}class Et{constructor(mt,vt,Ut,jt){let un;if(this.url=vt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=mt.toUpperCase(),function We(qe){switch(qe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||jt?(this.body=void 0!==Ut?Ut:null,un=jt):un=Ut,un&&(this.reportProgress=!!un.reportProgress,this.withCredentials=!!un.withCredentials,un.responseType&&(this.responseType=un.responseType),un.headers&&(this.headers=un.headers),un.context&&(this.context=un.context),un.params&&(this.params=un.params),this.transferCache=un.transferCache),this.headers??=new oe,this.context??=new kt,this.params){const Xt=this.params.toString();if(0===Xt.length)this.urlWithParams=vt;else{const Pn=vt.indexOf("?");this.urlWithParams=vt+(-1===Pn?"?":Pn<vt.length-1?"&":"")+Xt}}else this.params=new je,this.urlWithParams=vt}serializeBody(){return null===this.body?null:"string"==typeof this.body||at(this.body)||le(this.body)||Xe(this.body)||function Mt(qe){return typeof URLSearchParams<"u"&&qe instanceof URLSearchParams}(this.body)?this.body:this.body instanceof je?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Xe(this.body)?null:le(this.body)?this.body.type||null:at(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof je?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(mt={}){const vt=mt.method||this.method,Ut=mt.url||this.url,jt=mt.responseType||this.responseType,un=mt.transferCache??this.transferCache,Xt=void 0!==mt.body?mt.body:this.body,Pn=mt.withCredentials??this.withCredentials,Cn=mt.reportProgress??this.reportProgress;let si=mt.headers||this.headers,Yn=mt.params||this.params;const Fi=mt.context??this.context;return void 0!==mt.setHeaders&&(si=Object.keys(mt.setHeaders).reduce((_i,nr)=>_i.set(nr,mt.setHeaders[nr]),si)),mt.setParams&&(Yn=Object.keys(mt.setParams).reduce((_i,nr)=>_i.set(nr,mt.setParams[nr]),Yn)),new Et(vt,Ut,Xt,{params:Yn,headers:si,context:Fi,reportProgress:Cn,responseType:jt,withCredentials:Pn,transferCache:un})}}
1var Jt=function(qe){return qe[qe.Sent=0]="Sent",qe[qe.UploadProgress=1]="UploadProgress",qe[qe.ResponseHeader=2]="ResponseHeader",qe[qe.DownloadProgress=3]="DownloadProgress",qe[qe.Response=4]="Response",qe[qe.User=5]="User",qe}(Jt||{});class ct{constructor(mt,vt=Ne.Ok,Ut="OK"){this.headers=mt.headers||new oe,this.status=void 0!==mt.status?mt.status:vt,this.statusText=mt.statusText||Ut,this.url=mt.url||null,this.ok=this.status>=200&&this.status<300}}class Gt extends ct{constructor(mt={}){super(mt),this.type=Jt.ResponseHeader}clone(mt={}){return new Gt({headers:mt.headers||this.headers,status:void 0!==mt.status?mt.status:this.status,statusText:mt.statusText||this.statusText,url:mt.url||this.url||void 0})}}class Te extends ct{constructor(mt={}){super(mt),this.type=Jt.Response,this.body=void 0!==mt.body?mt.body:null}clone(mt={}){return new Te({body:void 0!==mt.body?mt.body:this.body,headers:mt.headers||this.headers,status:void 0!==mt.status?mt.status:this.status,statusText:mt.statusText||this.statusText,url:mt.url||this.url||void 0})}}class Ze extends ct{constructor(mt){super(mt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${mt.url||"(unknown url)"}`:`Http failure response for ${mt.url||"(unknown url)"}: ${mt.status} ${mt.statusText}`,this.error=mt.error||null}}var Ne=function(qe){return qe[qe.Continue=100]="Continue",qe[qe.SwitchingProtocols=101]="SwitchingProtocols",qe[qe.Processing=102]="Processing",qe[qe.EarlyHints=103]="EarlyHints",qe[qe.Ok=200]="Ok",qe[qe.Created=201]="Created",qe[qe.Accepted=202]="Accepted",qe[qe.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",qe[qe.NoContent=204]="NoContent",qe[qe.ResetContent=205]="ResetContent",qe[qe.PartialContent=206]="PartialContent",qe[qe.MultiStatus=207]="MultiStatus",qe[qe.AlreadyReported=208]="AlreadyReported",qe[qe.ImUsed=226]="ImUsed",qe[qe.MultipleChoices=300]="MultipleChoices",qe[qe.MovedPermanently=301]="MovedPermanently",qe[qe.Found=302]="Found",qe[qe.SeeOther=303]="SeeOther",qe[qe.NotModified=304]="NotModified",qe[qe.UseProxy=305]="UseProxy",qe[qe.Unused=306]="Unused",qe[qe.TemporaryRedirect=307]="TemporaryRedirect",qe[qe.PermanentRedirect=308]="PermanentRedirect",qe[qe.BadRequest=400]="BadRequest",qe[qe.Unauthorized=401]="Unauthorized",qe[qe.PaymentRequired=402]="PaymentRequired",qe[qe.Forbidden=403]="Forbidden",qe[qe.NotFound=404]="NotFound",qe[qe.MethodNotAllowed=405]="MethodNotAllowed",qe[qe.NotAcceptable=406]="NotAcceptable",qe[qe.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",qe[qe.RequestTimeout=408]="RequestTimeout",qe[qe.Conflict=409]="Conflict",qe[qe.Gone=410]="Gone",qe[qe.LengthRequired=411]="LengthRequired",qe[qe.PreconditionFailed=412]="PreconditionFailed",qe[qe.PayloadTooLarge=413]="PayloadTooLarge",qe[qe.UriTooLong=414]="UriTooLong",qe[qe.UnsupportedMediaType=415]="UnsupportedMediaType",qe[qe.RangeNotSatisfiable=416]="RangeNotSatisfiable",qe[qe.ExpectationFailed=417]="ExpectationFailed",qe[qe.ImATeapot=418]="ImATeapot",qe[qe.MisdirectedRequest=421]="MisdirectedRequest",qe[qe.UnprocessableEntity=422]="UnprocessableEntity",qe[qe.Locked=423]="Locked",qe[qe.FailedDependency=424]="FailedDependency",qe[qe.TooEarly=425]="TooEarly",qe[qe.UpgradeRequired=426]="UpgradeRequired",qe[qe.PreconditionRequired=428]="PreconditionRequired",qe[qe.TooManyRequests=429]="TooManyRequests",qe[qe.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",qe[qe.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",qe[qe.InternalServerError=500]="InternalServerError",qe[qe.NotImplemented=501]="NotImplemented",qe[qe.BadGateway=502]="BadGateway",qe[qe.ServiceUnavailable=503]="ServiceUnavailable",qe[qe.GatewayTimeout=504]="GatewayTimeout",qe[qe.HttpVersionNotSupported=505]="HttpVersionNotSupported",qe[qe.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",qe[qe.InsufficientStorage=507]="InsufficientStorage",qe[qe.LoopDetected=508]="LoopDetected",qe[qe.NotExtended=510]="NotExtended",qe[qe.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",qe}(Ne||{});function Je(qe,mt){return{body:mt,headers:qe.headers,context:qe.context,observe:qe.observe,params:qe.params,reportProgress:qe.reportProgress,responseType:qe.responseType,withCredentials:qe.withCredentials,transferCache:qe.transferCache}}let Fe=(()=>{class qe{constructor(vt){this.handler=vt}request(vt,Ut,jt={}){let un;if(vt instanceof Et)un=vt;else{let Cn,si;Cn=jt.headers instanceof oe?jt.headers:new oe(jt.headers),jt.params&&(si=jt.params instanceof je?jt.params:new je({fromObject:jt.params})),un=new Et(vt,Ut,void 0!==jt.body?jt.body:null,{headers:Cn,context:jt.context,params:si,reportProgress:jt.reportProgress,responseType:jt.responseType||"json",withCredentials:jt.withCredentials,transferCache:jt.transferCache})}const Xt=(0,N.of)(un).pipe((0,l.H)(Cn=>this.handler.handle(Cn)));if(vt instanceof Et||"events"===jt.observe)return Xt;const Pn=Xt.pipe((0,W.p)(Cn=>Cn instanceof Te));switch(jt.observe||"body"){case"body":switch(un.responseType){case"arraybuffer":return Pn.pipe((0,B.T)(Cn=>{if(null!==Cn.body&&!(Cn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Cn.body}
1));case"blob":return Pn.pipe((0,B.T)(Cn=>{if(null!==Cn.body&&!(Cn.body instanceof Blob))throw new Error("Response is not a Blob.");return Cn.body}));case"text":return Pn.pipe((0,B.T)(Cn=>{if(null!==Cn.body&&"string"!=typeof Cn.body)throw new Error("Response is not a string.");return Cn.body}));default:return Pn.pipe((0,B.T)(Cn=>Cn.body))}case"response":return Pn;default:throw new Error(`Unreachable: unhandled observe type ${jt.observe}}`)}}delete(vt,Ut={}){return this.request("DELETE",vt,Ut)}get(vt,Ut={}){return this.request("GET",vt,Ut)}head(vt,Ut={}){return this.request("HEAD",vt,Ut)}jsonp(vt,Ut){return this.request("JSONP",vt,{params:(new je).append(Ut,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(vt,Ut={}){return this.request("OPTIONS",vt,Ut)}patch(vt,Ut,jt={}){return this.request("PATCH",vt,Je(jt,Ut))}post(vt,Ut,jt={}){return this.request("POST",vt,Je(jt,Ut))}put(vt,Ut,jt={}){return this.request("PUT",vt,Je(jt,Ut))}static#e=this.\u0275fac=function(Ut){return new(Ut||qe)(w.KVO(H))};static#t=this.\u0275prov=w.jDH({token:qe,factory:qe.\u0275fac})}return qe})();function ue(qe,mt){return mt(qe)}function U(qe,mt){return(vt,Ut)=>mt.intercept(vt,{handle:jt=>qe(jt,Ut)})}const Ue=new w.nKC(""),$e=new w.nKC(""),Ve=new w.nKC(""),lt=new w.nKC("");function Rt(){let qe=null;return(mt,vt)=>{null===qe&&(qe=((0,w.WQX)(Ue,{optional:!0})??[]).reduceRight(U,ue));const Ut=(0,w.WQX)(w.TgB),jt=Ut.add();return qe(mt,vt).pipe((0,T.j)(()=>Ut.remove(jt)))}}let St=(()=>{class qe extends H{constructor(vt,Ut){super(),this.backend=vt,this.injector=Ut,this.chain=null,this.pendingTasks=(0,w.WQX)(w.TgB);const jt=(0,w.WQX)(lt,{optional:!0});this.backend=jt??vt}handle(vt){if(null===this.chain){const jt=Array.from(new Set([...this.injector.get($e),...this.injector.get(Ve,[])]));this.chain=jt.reduceRight((un,Xt)=>function Oe(qe,mt,vt){return(Ut,jt)=>(0,w.N4e)(vt,()=>mt(Ut,un=>qe(un,jt)))}(un,Xt,this.injector),ue)}const Ut=this.pendingTasks.add();return this.chain(vt,jt=>this.backend.handle(jt)).pipe((0,T.j)(()=>this.pendingTasks.remove(Ut)))}static#e=this.\u0275fac=function(Ut){return new(Ut||qe)(w.KVO(pe),w.KVO(w.uvJ))};static#t=this.\u0275prov=w.jDH({token:qe,factory:qe.\u0275fac})}return qe})();const Oi=/^\)\]\}',?\n/;let Mi=(()=>{class qe{constructor(vt){this.xhrFactory=vt}handle(vt){if("JSONP"===vt.method)throw new w.wOt(-2800,!1);const Ut=this.xhrFactory;return(Ut.\u0275loadImpl?(0,ee.H)(Ut.\u0275loadImpl()):(0,N.of)(null)).pipe((0,e.n)(()=>new v.c(un=>{const Xt=Ut.build();if(Xt.open(vt.method,vt.urlWithParams),vt.withCredentials&&(Xt.withCredentials=!0),vt.headers.forEach((fi,gi)=>Xt.setRequestHeader(fi,gi.join(","))),vt.headers.has("Accept")||Xt.setRequestHeader("Accept","application/json, text/plain, */*"),!vt.headers.has("Content-Type")){const fi=vt.detectContentTypeHeader();null!==fi&&Xt.setRequestHeader("Content-Type",fi)}if(vt.responseType){const fi=vt.responseType.toLowerCase();Xt.responseType="json"!==fi?fi:"text"}const Pn=vt.serializeBody();let Cn=null;const si=()=>{if(null!==Cn)return Cn;const fi=Xt.statusText||"OK",gi=new oe(Xt.getAllResponseHeaders()),pr=function hn(qe){return"responseURL"in qe&&qe.responseURL?qe.responseURL:/^X-Request-URL:/m.test(qe.getAllResponseHeaders())?qe.getResponseHeader("X-Request-URL"):null}(Xt)||vt.url;return Cn=new Gt({headers:gi,status:Xt.status,statusText:fi,url:pr}),Cn},Yn=()=>{let{headers:fi,status:gi,statusText:pr,url:io}=si(),sr=null;gi!==Ne.NoContent&&(sr=typeof Xt.response>"u"?Xt.responseText:Xt.response),0===gi&&(gi=sr?Ne.Ok:0);let A=gi>=200&&gi<300;if("json"===vt.responseType&&"string"==typeof sr){const X=sr;sr=sr.replace(Oi,"");try{sr=""!==sr?JSON.parse(sr):null}catch(V){sr=X,A&&(A=!1,sr={error:V,text:sr})}}A?(un.next(new Te({body:sr,headers:fi,status:gi,statusText:pr,url:io||void 0})),un.complete()):un.error(new Ze({error:sr,headers:fi,status:gi,statusText:pr,url:io||void 0}))},Fi=fi=>{const{url:gi}=si(),pr=new Ze({error:fi,status:Xt.status||0,statusText:Xt.statusText||"Unknown Error",url:gi||void 0});un.error(pr)};let _i=!1;const nr=fi=>{_i||(un.next(si()),_i=!0);let gi={type:Jt.DownloadProgress,loaded:fi.loaded};fi.lengthComputable&&(gi.total=fi.total),"text"===vt.responseType&&Xt.responseText&&(gi.partialText=Xt.responseText),un.next(gi)},Ji=fi=>{let gi={type:Jt.UploadProgress,loaded:fi.loaded};fi.lengthComputable&&(gi.total=fi.total),un.next(gi)};return Xt.addEventListener("load",Yn),Xt.addEventListener("error",Fi),Xt.addEventListener("timeout",Fi),Xt.addEventListener("abort",Fi),vt.reportProgress&&(Xt.addEventListener("progress",nr),null!==Pn&&Xt.upload&&Xt.upload.addEventListener("progress",Ji)),Xt.send(Pn),un.next({type:Jt.Sent}),()=>{Xt.removeEventListener("error",Fi),Xt.removeEventListener("abort",Fi),Xt.removeEventListener("load",Yn),Xt.removeEventListener("timeout",Fi),vt.reportProgress&&(Xt.removeEventListener("progress",nr),null!==Pn&&Xt.upload&&Xt.upload.removeEventListener("progress",Ji)),Xt.readyState!==Xt.DONE&&Xt.abort()}})))}static#e=this.\u0275fac=function(Ut){return new(Ut||qe)(w.KVO(K.N0))};static#t=this.\u0275prov=w.jDH({token:qe,factory:qe.\u0275fac})}return qe})();const Fn=new w.nKC(""),hi=new w.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),ri=new w.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class In{}let kr=(()=>{class qe{constructor(vt,Ut,jt){this.doc=vt,this.platform=Ut,this.cookieName=jt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const vt=this.doc.cookie||"";return vt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,K._b)(vt,this.cookieName),this.lastCookieString=vt),this.lastToken}static#e=this.\u0275fac=function(Ut){return new(Ut||qe)(w.KVO(K.qQ),w.KVO(w.Agw),w.KVO(hi))};static#t=this.\u0275prov=w.jDH({token:qe,factory:qe.\u0275fac})}return qe})();function Xi(qe,mt){const vt=qe.url.toLowerCase();if(!(0,w.WQX)(Fn)||"GET"===qe.method||"HEAD"===qe.method||vt.startsWith("http://")||vt.startsWith("https://"))return mt(qe);const Ut=(0,w.WQX)(In).getToken(),jt=(0,w.WQX)(ri);return null!=Ut&&!qe.headers.has(jt)&&(qe=qe.clone({headers:qe.headers.set(jt,Ut)}
1)),mt(qe)}var it=function(qe){return qe[qe.Interceptors=0]="Interceptors",qe[qe.LegacyInterceptors=1]="LegacyInterceptors",qe[qe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",qe[qe.NoXsrfProtection=3]="NoXsrfProtection",qe[qe.JsonpSupport=4]="JsonpSupport",qe[qe.RequestsMadeViaParent=5]="RequestsMadeViaParent",qe[qe.Fetch=6]="Fetch",qe}(it||{});function ce(...qe){const mt=[Fe,Mi,St,{provide:H,useExisting:St},{provide:pe,useExisting:Mi},{provide:$e,useValue:Xi,multi:!0},{provide:Fn,useValue:!0},{provide:In,useClass:kr}];for(const vt of qe)mt.push(...vt.\u0275providers);return(0,w.EmA)(mt)}const ie=new w.nKC("");function Ae(){return function te(qe,mt){return{\u0275kind:qe,\u0275providers:mt}}(it.LegacyInterceptors,[{provide:ie,useFactory:Rt},{provide:$e,useExisting:ie,multi:!0}])}let be=(()=>{class qe{static#e=this.\u0275fac=function(Ut){return new(Ut||qe)};static#t=this.\u0275mod=w.$C({type:qe});static#n=this.\u0275inj=w.G2t({providers:[ce(Ae())]})}return qe})()},4438:(en,Me,R)=>{"use strict";R.d(Me,{bc$:()=>Kh,iLQ:()=>Kv,sZ2:()=>_u,hnV:()=>jb,Hbi:()=>gk,o8S:()=>Id,BIS:()=>Fc,gRc:()=>Yb,Ql9:()=>GE,OM3:()=>Sf,Ocv:()=>qE,Z63:()=>As,aKT:()=>Ec,uvJ:()=>po,zcH:()=>Ma,bkB:()=>Hs,$GK:()=>tt,nKC:()=>jt,zZn:()=>_s,_q3:()=>o1,MKu:()=>s1,xe9:()=>Mm,Co$:()=>L0,Vns:()=>Fu,SKi:()=>yo,Xx1:()=>On,Agw:()=>ks,PLl:()=>Fp,rOR:()=>kc,sFG:()=>PC,_9s:()=>$1,czy:()=>$p,WPN:()=>Ys,kdw:()=>Cr,C4Q:()=>Mf,NYb:()=>RE,giA:()=>Nb,RxE:()=>kb,c1b:()=>Jg,gXe:()=>ds,mal:()=>Y1,L39:()=>$k,a0P:()=>Jk,Ol2:()=>Y_,w6W:()=>Sw,oH4:()=>Hb,Rfq:()=>Xi,WQX:()=>Tn,naY:()=>ek,QuC:()=>Kr,EmA:()=>Hn,fpN:()=>fk,HJs:()=>Zk,N4e:()=>Jo,O8t:()=>Wk,An2:()=>qg,H3F:()=>Ib,H8p:()=>Bs,KH2:()=>vh,TgB:()=>Zp,wOt:()=>nt,WHO:()=>Rb,e01:()=>Fb,lNU:()=>Rt,h9k:()=>hg,$MX:()=>Bp,ZF7:()=>Go,Kcf:()=>Ra,e5t:()=>Po,UyX:()=>jp,cWb:()=>Lr,osQ:()=>tf,H5H:()=>Dv,Zy3:()=>xt,mq5:()=>jy,JZv:()=>hn,LfX:()=>$r,plB:()=>Dd,jNT:()=>Xv,zjR:()=>Lb,TL$:()=>Bl,Tbb:()=>Xn,rcV:()=>br,Vt3:()=>X_,Mj6:()=>Do,GFd:()=>N0,OA$:()=>Pd,Jv_:()=>qA,aNF:()=>KA,R7$:()=>a,BMQ:()=>lv,HbH:()=>wy,ZvI:()=>Sy,AVh:()=>gv,wni:()=>DA,VBU:()=>Va,FsC:()=>Al,jDH:()=>Bn,G2t:()=>vr,$C:()=>yl,EJ8:()=>Wo,rXU:()=>f,nrm:()=>bv,eu8:()=>xv,bVm:()=>fm,qex:()=>hm,k0s:()=>pm,j41:()=>um,RV6:()=>Ly,xGo:()=>Rl,Mr5:()=>Cv,KVO:()=>yi,kS0:()=>wc,QTQ:()=>_,bIt:()=>kv,lsd:()=>kA,joV:()=>Pl,qSk:()=>cp,XpG:()=>fA,nI1:()=>lb,bMT:()=>cb,i5U:()=>db,brH:()=>ub,SdG:()=>mA,NAR:()=>gA,Y8G:()=>pv,FS9:()=>Sv,Mz_:()=>ym,lJ4:()=>JA,eq3:()=>ZA,l_i:()=>eb,sMw:()=>tb,ziG:()=>nb,mGM:()=>EA,sdS:()=>IA,Njj:()=>Mo,EBC:()=>bg,tSv:()=>Ag,eBV:()=>tp,npT:()=>gg,f$h:()=>af,B4B:()=>sf,n$t:()=>mg,muq:()=>TA,xc7:()=>fv,Kam:()=>Iv,zvX:()=>wv,DNE:()=>eh,C5r:()=>pb,EFF:()=>VA,JRh:()=>Pv,SpI:()=>Am,Lme:()=>Ov,E5c:()=>Rv,SjE:()=>Fv,DH7:()=>HA,mxI:()=>Lv,R50:()=>Nv,GBs:()=>MA}),R(467);let N=null,ee=1;const l=Symbol("SIGNAL");function W(t){const i=N;return N=t,i}function oe(t){if((!kt(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==ee)){if(!t.producerMustRecompute(t)&&!ot(t))return t.dirty=!1,void(t.lastCleanEpoch=ee);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=ee}}function ot(t){We(t);for(let i=0;i<t.producerNode.length;i++){const o=t.producerNode[i],c=t.producerLastReadVersion[i];if(c!==o.version||(oe(o),c!==o.version))return!0}return!1}function Ct(t,i){if(function at(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}(t),We(t),1===t.liveConsumerNode.length)for(let c=0;c<t.producerNode.length;c++)Ct(t.producerNode[c],t.producerIndexOfThis[c]);const o=t.liveConsumerNode.length-1;if(t.liveConsumerNode[i]=t.liveConsumerNode[o],t.liveConsumerIndexOfThis[i]=t.liveConsumerIndexOfThis[o],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,i<t.liveConsumerNode.length){const c=t.liveConsumerIndexOfThis[i],h=t.liveConsumerNode[i];We(h),h.producerIndexOfThis[c]=i}}function kt(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function We(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Gt=null;var Oe=R(1413),Ue=R(8359),$e=R(4412),Ve=R(6354);const Rt="https://g.co/ng/security#xss";class nt extends Error{constructor(i,o){super(xt(i,o)),this.code=i}
vendor: 6,513 bytes, line 1
1}function xt(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}function an(t){return{toString:t}.toString()}const wi="__parameters__";function Wn(t,i,o){return an(()=>{const c=function Un(t){return function(...o){if(t){const c=t(...o);for(const h in c)this[h]=c[h]}}}(i);function h(...m){if(this instanceof h)return c.apply(this,m),this;const D=new h(...m);return k.annotation=D,k;function k(L,ae,De){const He=L.hasOwnProperty(wi)?L[wi]:Object.defineProperty(L,wi,{value:[]})[wi];for(;He.length<=De;)He.push(null);return(He[De]=He[De]||[]).push(D),L}}return o&&(h.prototype=Object.create(o.prototype)),h.prototype.ngMetadataName=t,h.annotationCls=h,h})}const hn=globalThis;function xn(t){for(let i in t)if(t[i]===xn)return i;throw Error("Could not find renamed property on target object.")}function hi(t,i){for(const o in i)i.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=i[o])}function Xn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Xn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const o=i.indexOf("\n");return-1===o?i:i.substring(0,o)}function ri(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const kr=xn({__forward_ref__:xn});function Xi(t){return t.__forward_ref__=Xi,t.toString=function(){return Xn(this())},t}function Se(t){return it(t)?t():t}function it(t){return"function"==typeof t&&t.hasOwnProperty(kr)&&t.__forward_ref__===Xi}function Bn(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function vr(t){return{providers:t.providers||[],imports:t.imports||[]}}function dr(t){return tr(t,qe)||tr(t,vt)}function $r(t){return null!==dr(t)}function tr(t,i){return t.hasOwnProperty(i)?t[i]:null}function ur(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(Ut))?t[mt]:null}const qe=xn({\u0275prov:xn}),mt=xn({\u0275inj:xn}),vt=xn({ngInjectableDef:xn}),Ut=xn({ngInjectorDef:xn});class jt{constructor(i,o){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof o?this.__NG_ELEMENT_ID__=o:void 0!==o&&(this.\u0275prov=Bn({token:this,providedIn:o.providedIn||"root",factory:o.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fi(t){return t&&!!t.\u0275providers}const gi=xn({\u0275cmp:xn}),pr=xn({\u0275dir:xn}),io=xn({\u0275pipe:xn}),sr=xn({\u0275mod:xn}),A=xn({\u0275fac:xn}),X=xn({__NG_ELEMENT_ID__:xn}),V=xn({__NG_ENV_ID__:xn});function he(t){return"string"==typeof t?t:null==t?"":String(t)}function re(t,i){throw new nt(-201,!1)}var tt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(tt||{});let $t;function Qt(){return $t}function zt(t){const i=$t;return $t=t,i}function Lt(t,i,o){const c=dr(t);return c&&"root"==c.providedIn?void 0===c.value?c.value=c.factory():c.value:o&tt.Optional?null:void 0!==i?i:void re()}const cn={},Zn="__NG_DI_FLAG__",zn="ngTempTokenPath",Zi=/\n/gm,gn="__source";let vn;function er(t){const i=vn;return vn=t,i}function Or(t,i=tt.Default){if(void 0===vn)throw new nt(-203,!1);return null===vn?Lt(t,void 0,i):vn.get(t,i&tt.Optional?null:void 0,i)}function yi(t,i=tt.Default){return(Qt()||Or)(Se(t),i)}function Tn(t,i=tt.Default){return yi(t,Br(i))}function Br(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Co(t){const i=[];for(let o=0;o<t.length;o++){const c=Se(t[o]);if(Array.isArray(c)){if(0===c.length)throw new nt(900,!1);let h,m=tt.Default;for(let D=0;D<c.length;D++){const k=c[D],L=fr(k);"number"==typeof L?-1===L?h=k.token:m|=L:h=k}i.push(yi(h,m))}else i.push(yi(c))}return i}function Vn(t,i){return t[Zn]=i,t.prototype[Zn]=i,t}function fr(t){return t[Zn]}const On=Vn(Wn("Optional"),8),Cr=Vn(Wn("SkipSelf"),4);function Gi(t,i){return t.hasOwnProperty(A)?t[A]:null}function Ii(t,i){t.forEach(o=>Array.isArray(o)?Ii(o,i):i(o))}function Si(t,i,o){i>=t.length?t.push(o):t.splice(i,0,o)}function qi(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Bi(t,i,o){let c=oo(t,i);return c>=0?t[1|c]=o:(c=~c,function uo(t,i,o,c){let h=t.length;if(h==i)t.push(o,c);else if(1===h)t.push(c,t[0]),t[0]=o;else{for(h--,t.push(t[h-1],t[h]);h>i;)t[h]=t[h-2],h--;t[i]=o,t[i+1]=c}}(t,c,i,o)),c}function $i(t,i){const o=oo(t,i);if(o>=0)return t[1|o]}function oo(t,i){return function cs(t,i,o){let c=0,h=t.length>>o;for(;h!==c;){const m=c+(h-c>>1),D=t[m<<o];if(i===D)return m<<o;D>i?h=m:c=m+1}return~(h<<o)}(t,i,1)}const Qr={},ai=[],As=new jt(""),fa=new jt("",-1),wo=new jt("");class Qo{get(i,o=cn){if(o===cn){const c=new Error(`NullInjectorError: No provider for ${Xn(i)}!`);throw c.name="NullInjectorError",c}return o}}var ta=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(ta||{}),ds=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(ds||{}),Do=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Do||{});function us(t,i,o){let c=t.length;for(;;){const h=t.indexOf(i,o);if(-1===h)return h;if(0===h||t.charCodeAt(h-1)<=32){const m=i.length;if(h+m===c||t.charCodeAt(h+m)<=32)return h}o=h+1}}function Ns(t,i,o){let c=0;for(;c<o.length;){const h=o[c];if("number"==typeof h){if(0!==h)break;c++;const m=o[c++],D=o[c++],k=o[c++];t.setAttribute(i,D,k,m)}else{const m=h,D=o[++c];xe(m)?t.setProperty(i,m,D):t.setAttribute(i,m,D),c++}}return c}function me(t){return 3===t||4===t||6===t}function xe(t){return 64===t.charCodeAt(0)}function q(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let o=-1;for(let c=0;c<i.length;c++){const h=i[c];"number"==typeof h?o=h:0===o||Ge(t,o,h,null,-1===o||2===o?i[++c]:null)}}return t}function Ge(t,i,o,c,h){let m=0,D=t.length;if(-1===i)D=-1;else for(;m<t.length;){const k=t[m++];if("number"==typeof k){if(k===i){D=-1;break}if(k>i){D=m-1;break}}}for(;m<t.length;){const k=t[m];if("number"==typeof k)break;if(k===o){if(null===c)return void(null!==h&&(t[m+1]=h));if(c===t[m+1])return void(t[m+2]=h)}m++,null!==c&&m++,null!==h&&m++}-1!==D&&(t.splice(D,0,i),m=D+1),t.splice(m++,0,o),null!==c&&t.splice(m++,0,c),null!==h&&t.splice(m++,0,h)}const yt="ng-template";function Mn(t,i,o,c){let h=0;if(c){for(;h<i.length&&"string"==typeof i[h];h+=2)if("class"===i[h]&&-1!==us(i[h+1].toLowerCase(),o,0))return!0}else if(ni(t))return!1;if(h=i.indexOf(1,h),h>-1){let m;
1for(;++h<i.length&&"string"==typeof(m=i[h]);)if(m.toLowerCase()===o)return!0}return!1}function ni(t){return 4===t.type&&t.value!==yt}function so(t,i,o){return i===(4!==t.type||o?t.value:yt)}function Ls(t,i,o){let c=4;const h=t.attrs,m=null!==h?function tc(t){for(let i=0;i<t.length;i++)if(me(t[i]))return i;return t.length}(h):0;let D=!1;for(let k=0;k<i.length;k++){const L=i[k];if("number"!=typeof L){if(!D)if(4&c){if(c=2|1&c,""!==L&&!so(t,L,o)||""===L&&1===i.length){if(qr(c))return!1;D=!0}}else if(8&c){if(null===h||!Mn(t,h,L,o)){if(qr(c))return!1;D=!0}}else{const ae=i[++k],De=ec(L,h,ni(t),o);if(-1===De){if(qr(c))return!1;D=!0;continue}if(""!==ae){let He;if(He=De>m?"":h[De+1].toLowerCase(),2&c&&ae!==He){if(qr(c))return!1;D=!0}}}}else{if(!D&&!qr(c)&&!qr(L))return!1;if(D&&qr(L))continue;D=!1,c=L|1&c}}return qr(c)||D}function qr(t){return!(1&t)}function ec(t,i,o,c){if(null===i)return-1;let h=0;if(c||!o){let m=!1;for(;h<i.length;){const D=i[h];if(D===t)return h;if(3===D||6===D)m=!0;else{if(1===D||2===D){let k=i[++h];for(;"string"==typeof k;)k=i[++h];continue}if(4===D)break;if(0===D){h+=4;continue}}h+=m?1:2}return-1}return function Qi(t,i){let o=t.indexOf(4);if(o>-1)for(o++;o<t.length;){const c=t[o];if("number"==typeof c)return-1;if(c===i)return o;o++}return-1}(i,t)}function La(t,i,o=!1){for(let c=0;c<i.length;c++)if(Ls(t,i[c],o))return!0;return!1}function ga(t,i){e:for(let o=0;o<i.length;o++){const c=i[o];if(t.length===c.length){for(let h=0;h<t.length;h++)if(t[h]!==c[h])continue e;return!0}}return!1}function Ba(t,i){return t?":not("+i.trim()+")":i}function ml(t){let i=t[0],o=1,c=2,h="",m=!1;for(;o<t.length;){let D=t[o];if("string"==typeof D)if(2&c){const k=t[++o];h+="["+D+(k.length>0?'="'+k+'"':"")+"]"}else 8&c?h+="."+D:4&c&&(h+=" "+D);else""!==h&&!qr(D)&&(i+=Ba(m,h),h=""),c=D,m=m||!qr(c);o++}return""!==h&&(i+=Ba(m,h)),i}function Va(t){return an(()=>{const i=rc(t),o={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ta.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ds.Emulated,styles:t.styles||ai,_:null,schemas:t.schemas||null,tView:null,id:""};ma(o);const c=t.dependencies;return o.directiveDefs=js(c,!1),o.pipeDefs=js(c,!0),o.id=function Ga(t){let i=0;const o=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const h of o)i=Math.imul(31,i)+h.charCodeAt(0)|0;return i+=2147483648,"c"+i}(o),o})}function na(t){return ci(t)||rr(t)}function nc(t){return null!==t}function yl(t){return an(()=>({type:t.type,bootstrap:t.bootstrap||ai,declarations:t.declarations||ai,imports:t.imports||ai,exports:t.exports||ai,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ic(t,i){if(null==t)return Qr;const o={};for(const c in t)if(t.hasOwnProperty(c)){const h=t[c];let m,D,k=Do.None;Array.isArray(h)?(k=h[0],m=h[1],D=h[2]??m):(m=h,D=h),i?(o[m]=k!==Do.None?[c,k]:c,i[m]=D):o[m]=c}return o}function Al(t){return an(()=>{const i=rc(t);return ma(i),i})}function Wo(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function ci(t){return t[gi]||null}function rr(t){return t[pr]||null}function Rr(t){return t[io]||null}function Kr(t){const i=ci(t)||rr(t)||Rr(t);return null!==i&&i.standalone}function ei(t,i){const o=t[sr]||null;if(!o&&!0===i)throw new Error(`Type ${Xn(t)} does not have '\u0275mod' property.`);return o}function rc(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||Qr,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||ai,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ic(t.inputs,i),outputs:ic(t.outputs),debugInfo:null}}function ma(t){t.features?.forEach(i=>
vendor: 6,394 bytes, line 1
1i(t))}function js(t,i){if(!t)return null;const o=i?Rr:na;return()=>("function"==typeof t?t():t).map(c=>o(c)).filter(nc)}function Hn(t){return{\u0275providers:t}}function _a(...t){return{\u0275providers:Wr(0,t),\u0275fromNgModule:!0}}function Wr(t,...i){const o=[],c=new Set;let h;const m=D=>{o.push(D)};return Ii(i,D=>{const k=D;ps(k,m,[],c)&&(h||=[],h.push(k))}),void 0!==h&&bl(h,m),o}function bl(t,i){for(let o=0;o<t.length;o++){const{ngModule:c,providers:h}=t[o];Ua(h,m=>{i(m,c)})}}function ps(t,i,o,c){if(!(t=Se(t)))return!1;let h=null,m=ur(t);const D=!m&&ci(t);if(m||D){if(D&&!D.standalone)return!1;h=t}else{const L=t.ngModule;if(m=ur(L),!m)return!1;h=L}const k=c.has(h);if(D){if(k)return!1;if(c.add(h),D.dependencies){const L="function"==typeof D.dependencies?D.dependencies():D.dependencies;for(const ae of L)ps(ae,i,o,c)}}else{if(!m)return!1;{if(null!=m.imports&&!k){let ae;c.add(h);try{Ii(m.imports,De=>{ps(De,i,o,c)&&(ae||=[],ae.push(De))})}finally{}void 0!==ae&&bl(ae,i)}if(!k){const ae=Gi(h)||(()=>new h);i({provide:h,useFactory:ae,deps:ai},h),i({provide:wo,useValue:h,multi:!0},h),i({provide:As,useValue:()=>yi(h),multi:!0},h)}const L=m.providers;if(null!=L&&!k){const ae=t;Ua(L,De=>{i(De,ae)})}}}return h!==t&&void 0!==t.providers}function Ua(t,i){for(let o of t)fi(o)&&(o=o.\u0275providers),Array.isArray(o)?Ua(o,i):i(o)}const va=xn({provide:String,useValue:xn});function xl(t){return null!==t&&"object"==typeof t&&va in t}function Oo(t){return"function"==typeof t}const Bs=new jt(""),hs={},wl={};let Ro;function fs(){return void 0===Ro&&(Ro=new Qo),Ro}class po{}class ho extends po{get destroyed(){return this._destroyed}constructor(i,o,c,h){super(),this.parent=o,this.source=c,this.scopes=h,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qa(i,D=>this.processProvider(D)),this.records.set(fa,Fo(void 0,this)),h.has("environment")&&this.records.set(po,Fo(void 0,this));const m=this.records.get(Bs);null!=m&&"string"==typeof m.value&&this.scopes.add(m.value),this.injectorDefTypes=new Set(this.get(wo,ai,tt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const i=W(null);try{for(const c of this._ngOnDestroyHooks)c.ngOnDestroy();const o=this._onDestroyHooks;this._onDestroyHooks=[];for(const c of o)c()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),W(i)}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const o=er(this),c=zt(void 0);try{return i()}finally{er(o),zt(c)}}get(i,o=cn,c=tt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(V))return i[V](this);c=Br(c);const m=er(this),D=zt(void 0);try{if(!(c&tt.SkipSelf)){let L=this.records.get(i);if(void 0===L){const ae=function Yo(t){return"function"==typeof t||"object"==typeof t&&t instanceof jt}(i)&&dr(i);L=ae&&this.injectableDefInScope(ae)?Fo(wr(i),hs):null,this.records.set(i,L)}if(null!=L)return this.hydrate(i,L)}return(c&tt.Self?fs():this.parent).get(i,o=c&tt.Optional&&o===cn?null:o)}catch(k){if("NullInjectorError"===k.name){if((k[zn]=k[zn]||[]).unshift(Xn(i)),m)throw k;return function Ir(t,i,o,c){const h=t[zn];throw i[gn]&&h.unshift(i[gn]),t.message=function xr(t,i,o,c=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let h=Xn(i);if(Array.isArray(i))h=i.map(Xn).join(" -> ");else if("object"==typeof i){let m=[];for(let D in i)if(i.hasOwnProperty(D)){let k=i[D];m.push(D+":"+("string"==typeof k?JSON.stringify(k):Xn(k)))}h=`{${m.join(", ")}}`}return`${o}${c?"("+c+")":""}[${h}]: ${t.replace(Zi,"\n  ")}`}("\n"+t.message,h,o,c),t.ngTokenPath=h,t[zn]=null,t}(k,i,"R3InjectorError",this.source)}throw k}finally{zt(D),er(m)}}resolveInjectorInitializers(){const i=W(null),o=er(this),c=zt(void 0);try{const m=this.get(As,ai,tt.Self);for(const D of m)D()}finally{er(o),zt(c),W(i)}}toString(){const i=[],o=this.records;for(const c of o.keys())i.push(Xn(c));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(i){let o=Oo(i=Se(i))?i:Se(i&&i.provide);const c=function za(t){return xl(t)?Fo(void 0,t.useValue):Fo(Ko(t),hs)}(i);if(!Oo(i)&&!0===i.multi){let h=this.records.get(o);h||(h=Fo(void 0,hs,!0),h.factory=()=>Co(h.multi),this.records.set(o,h)),o=i,h.multi.push(i)}this.records.set(o,c)}hydrate(i,o){const c=W(null);try{return o.value===hs&&(o.value=wl,o.value=o.factory()),"object"==typeof o.value&&o.value&&function $a(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(o.value)&&this._ngOnDestroyHooks.add(o.value),o.value}finally{W(c)}}injectableDefInScope(i){if(!i.providedIn)return!1;const o=Se(i.providedIn);return"string"==typeof o?"any"===o||this.scopes.has(o):this.injectorDefTypes.has(o)}removeOnDestroy(i){const o=this._onDestroyHooks.indexOf(i);-1!==o&&this._onDestroyHooks.splice(o,1)}}function wr(t){const i=dr(t),o=null!==i?i.factory:Gi(t);if(null!==o)return o;if(t instanceof jt)throw new nt(204,!1);if(t instanceof Function)return function qo(t){if(t.length>0)throw new nt(204,!1);const o=function jr(t){return t&&(t[qe]||t[vt])||null}(t);return null!==o?()=>o.factory(t):()=>new t}(t);throw new nt(204,!1)}function Ko(t,i,o){let c;if(Oo(t)){const h=Se(t);return Gi(h)||wr(h)}if(xl(t))c=()=>Se(t.useValue);else if(function Cl(t){return!(!t||!t.useFactory)}(t))c=()=>t.useFactory(...Co(t.deps||[]));else if(function oc(t){return!(!t||!t.useExisting)}(t))c=()=>yi(Se(t.useExisting));else{const h=Se(t&&(t.useClass||t.provide));if(!function ac(t){return!!t.deps}(t))return Gi(h)||wr(h);c=()=>new h(...Co(t.deps))}return c}function Fo(t,i,o=!1){return{factory:t,value:i,multi:o?[]:void 0}}function Qa(t,i){for(const o of t)Array.isArray(o)?Qa(o,i):o&&fi(o)?Qa(o.\u0275providers,i):i(o)}function Jo(t,i){t instanceof ho&&t.assertNotDestroyed();const c=er(t),h=zt(void 0);try{return i()}finally{er(c),zt(h)}}function ya(){return void 0!==Qt()||null!=function ti(){return vn}()}const bi=0,rn=1,Sn=2,xi=3,Fr=4,yr=5,Gr=6,Ur=7,ar=8,Yr=9,Ho=10,Ln=11,Wa=12,lc=13,gs=14,Sr=15,ia=16,ra=17,No=18,Ha=19,Uc=20,oa=21,Aa=22,sa=23,di=25,bs=1,es=7,aa=9,Dr=10;var cc=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(cc||{});function ao(t){return Array.isArray(t)&&"object"==typeof t[bs]}function lo(t){return Array.isArray(t)&&!0===t[bs]}function Ml(t){return!!(4&t.flags)}
1function Gs(t){return t.componentOffset>-1}function Xa(t){return!(1&~t.flags)}function ts(t){return!!t.template}function fo(t){return!!(512&t[Sn])}class la{constructor(i,o,c){this.previousValue=i,this.currentValue=o,this.firstChange=c}isFirstChange(){return this.firstChange}}function Gu(t,i,o,c){null!==i?i.applyValueToInputSignal(i,c):t[o]=c}function Pd(){return Uu}function Uu(t){return t.type.prototype.ngOnChanges&&(t.setInput=Rd),Od}function Od(){const t=Us(this),i=t?.current;if(i){const o=t.previous;if(o===Qr)t.previous=i;else for(let c in i)o[c]=i[c];t.current=null,this.ngOnChanges(i)}}function Rd(t,i,o,c,h){const m=this.declaredInputs[c],D=Us(t)||function zu(t,i){return t[Fd]=i}(t,{previous:Qr,current:null}),k=D.current||(D.current={}),L=D.previous,ae=L[m];k[m]=new la(ae&&ae.currentValue,o,L===Qr),Gu(t,i,h,o)}Pd.ngInherit=!0;const Fd="__ngSimpleChanges__";function Us(t){return t[Fd]||null}const xs=function(t,i,o){},$u="svg";let Ld=!1;function lr(t){for(;Array.isArray(t);)t=t[bi];return t}function dc(t,i){return lr(i[t])}function go(t,i){return lr(i[t.index])}function Il(t,i){return t.data[i]}function ca(t,i){return t[i]}function mo(t,i){const o=i[t];return ao(o)?o:o[bi]}function jd(t){return!(128&~t[Sn])}function Cs(t,i){return null==i?null:t[i]}function qu(t){t[ra]=0}function wh(t){1024&t[Sn]||(t[Sn]|=1024,jd(t)&&Tl(t))}function qc(t){return!!(9216&t[Sn]||t[sa]?.dirty)}function Kc(t){t[Ho].changeDetectionScheduler?.notify(1),qc(t)?Tl(t):64&t[Sn]&&(function Wu(){return Ld}()?(t[Sn]|=1024,Tl(t)):t[Ho].changeDetectionScheduler?.notify())}function Tl(t){t[Ho].changeDetectionScheduler?.notify();let i=Za(t);for(;null!==i&&!(8192&i[Sn])&&(i[Sn]|=8192,jd(i));)i=Za(i)}function pc(t,i){if(!(256&~t[Sn]))throw new nt(911,!1);null===t[oa]&&(t[oa]=[]),t[oa].push(i)}function Za(t){const i=t[xi];return lo(i)?i[xi]:i}const li={lFrame:Kd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Gd(){return li.bindingsEnabled}function el(){return null!==li.skipHydrationRootTNode}function Kt(){return li.lFrame.lView}function Vi(){return li.lFrame.tView}function tp(t){return li.lFrame.contextLView=t,t[ar]}function Mo(t){return li.lFrame.contextLView=null,t}function Ci(){let t=np();for(;null!==t&&64===t.type;)t=t.parent;return t}function np(){return li.lFrame.currentTNode}function zs(t,i){const o=li.lFrame;o.currentTNode=t,o.isParent=i}function $s(){return li.lFrame.isParent}function zd(){li.lFrame.isParent=!1}function Lo(){const t=li.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function ms(){return li.lFrame.bindingIndex}function is(){return li.lFrame.bindingIndex++}function Xo(t){const i=li.lFrame,o=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,o}function Ih(t,i){const o=li.lFrame;o.bindingIndex=o.bindingRootIndex=t,Qd(i)}function Qd(t){li.lFrame.currentDirectiveIndex=t}function Wd(t){const i=li.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function jn(){return li.lFrame.currentQueryIndex}function Yc(t){li.lFrame.currentQueryIndex=t}function ap(t){const i=t[rn];return 2===i.type?i.declTNode:1===i.type?t[yr]:null}function Hd(t,i,o){if(o&tt.SkipSelf){let h=i,m=t;for(;!(h=h.parent,null!==h||o&tt.Host||(h=ap(m),null===h||(m=m[gs],10&h.type))););if(null===h)return!1;i=h,t=m}const c=li.lFrame=qd();return c.currentTNode=i,c.lView=t,!0}function Xd(t){const i=qd(),o=t[rn];li.lFrame=i,i.currentTNode=o.firstChild,i.lView=t,i.tView=o,i.contextLView=t,i.bindingIndex=o.bindingStartIndex,i.inI18n=!1}function qd(){const t=li.lFrame,i=null===t?null:t.child;return null===i?Kd(t):i}function Kd(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function lp(){const t=li.lFrame;return li.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fc=lp;function Yd(){const t=lp();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Eo(){return li.lFrame.selectedIndex}function tl(t){li.lFrame.selectedIndex=t}function cr(){const t=li.lFrame;return Il(t.tView,t.selectedIndex)}function cp(){li.lFrame.currentNamespace=$u}function Pl(){!function Jd(){li.lFrame.currentNamespace=null}()}let Jc=!0;function ko(){return Jc}function jo(t){Jc=t}function Nr(t,i){for(let o=i.directiveStart,c=i.directiveEnd;o<c;o++){const m=t.data[o].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:k,ngAfterViewInit:L,ngAfterViewChecked:ae,ngOnDestroy:De}=m;D&&(t.contentHooks??=[]).push(-o,D),k&&((t.contentHooks??=[]).push(o,k),(t.contentCheckHooks??=[]).push(o,k)),L&&(t.viewHooks??=[]).push(-o,L),ae&&((t.viewHooks??=[]).push(o,ae),(t.viewCheckHooks??=[]).push(o,ae)),null!=De&&(t.destroyHooks??=[]).push(o,De)}}
vendor: 4,670 bytes, line 1
1function Jr(t,i,o){eu(t,i,3,o)}function ws(t,i,o,c){(3&t[Sn])===o&&eu(t,i,o,c)}function Zd(t,i){let o=t[Sn];(3&o)===i&&(o&=16383,o+=1,t[Sn]=o)}function eu(t,i,o,c){const m=c??-1,D=i.length-1;let k=0;for(let L=void 0!==c?65535&t[ra]:0;L<D;L++)if("number"==typeof i[L+1]){if(k=i[L],null!=c&&k>=c)break}else i[L]<0&&(t[ra]+=65536),(k<m||-1==m)&&(pp(t,o,i,L),t[ra]=(4294901760&t[ra])+L+2),L++}function up(t,i){xs(4,t,i);const o=W(null);try{i.call(t)}finally{W(o),xs(5,t,i)}}function pp(t,i,o,c){const h=o[c]<0,m=o[c+1],k=t[h?-o[c]:o[c]];h?t[Sn]>>14<t[ra]>>16&&(3&t[Sn])===i&&(t[Sn]+=16384,up(k,m)):up(k,m)}const il=-1;class xa{constructor(i,o,c){this.factory=i,this.resolving=!1,this.canSeeViewProviders=o,this.injectImpl=c}}function Qs(t){return t!==il}function ol(t){return 32767&t}function sl(t,i){let o=function Zc(t){return t>>16}(t),c=i;for(;o>0;)c=c[gs],o--;return c}let mc=!0;function Io(t){const i=mc;return mc=t,i}const fp=255,ed=5;let gp=0;const To={};function Ol(t,i){const o=Ph(t,i);if(-1!==o)return o;const c=i[rn];c.firstCreatePass&&(t.injectorIndex=i.length,_p(c.data,t),_p(i,null),_p(c.blueprint,null));const h=td(t,i),m=t.injectorIndex;if(Qs(h)){const D=ol(h),k=sl(h,i),L=k[rn].data;for(let ae=0;ae<8;ae++)i[m+ae]=k[D+ae]|L[D+ae]}return i[m+8]=h,m}function _p(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Ph(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function td(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let o=0,c=null,h=i;for(;null!==h;){if(c=Ap(h),null===c)return il;if(o++,h=h[gs],-1!==c.injectorIndex)return c.injectorIndex|o<<16}return il}function nu(t,i,o){!function mp(t,i,o){let c;"string"==typeof o?c=o.charCodeAt(0)||0:o.hasOwnProperty(X)&&(c=o[X]),null==c&&(c=o[X]=gp++);const h=c&fp;i.data[t+(h>>ed)]|=1<<h}(t,i,o)}function _c(t,i,o){if(o&tt.Optional||void 0!==t)return t;re()}function vc(t,i,o,c){if(o&tt.Optional&&void 0===c&&(c=null),!(o&(tt.Self|tt.Host))){const h=t[Yr],m=zt(void 0);try{return h?h.get(i,c,o&tt.Optional):Lt(i,c,o&tt.Optional)}finally{zt(m)}}return _c(c,0,o)}function yc(t,i,o,c=tt.Default,h){if(null!==t){if(2048&i[Sn]&&!(c&tt.Self)){const D=function Oh(t,i,o,c,h){let m=t,D=i;for(;null!==m&&null!==D&&2048&D[Sn]&&!(512&D[Sn]);){const k=vp(m,D,o,c|tt.Self,To);if(k!==To)return k;let L=m.parent;if(!L){const ae=D[Uc];if(ae){const De=ae.get(o,To,c);if(De!==To)return De}L=Ap(D),D=D[gs]}m=L}return h}(t,i,o,c,To);if(D!==To)return D}const m=vp(t,i,o,c,To);if(m!==To)return m}return vc(i,o,c,h)}function vp(t,i,o,c,h){const m=function Ar(t){if("string"==typeof t)return t.charCodeAt(0)||0;const i=t.hasOwnProperty(X)?t[X]:void 0;return"number"==typeof i?i>=0?i&fp:Ws:i}(o);if("function"==typeof m){if(!Hd(i,t,c))return c&tt.Host?_c(h,0,c):vc(i,o,c,h);try{let D;if(D=m(c),null!=D||c&tt.Optional)return D;re()}finally{fc()}}else if("number"==typeof m){let D=null,k=Ph(t,i),L=il,ae=c&tt.Host?i[Sr][yr]:null;for((-1===k||c&tt.SkipSelf)&&(L=-1===k?td(t,i):i[k+8],L!==il&&xc(c,!1)?(D=i[rn],k=ol(L),i=sl(L,i)):k=-1);-1!==k;){const De=i[rn];if(bc(m,k,De.data)){const He=yp(k,i,o,D,c,ae);if(He!==To)return He}L=i[k+8],L!==il&&xc(c,i[rn].data[k+8]===ae)&&bc(m,k,i)?(D=De,k=ol(L),i=sl(L,i)):k=-1}}return h}function yp(t,i,o,c,h,m){const D=i[rn],k=D.data[t+8],De=Ac(k,D,o,null==c?Gs(k)&&mc:c!=D&&!!(3&k.type),h&tt.Host&&m===k);return null!==De?Ca(i,D,De,k):To}function Ac(t,i,o,c,h){const m=t.providerIndexes,D=i.data,k=1048575&m,L=t.directiveStart,De=m>>20,bt=h?k+De:t.directiveEnd;for(let Dt=c?k:k+De;Dt<bt;Dt++){const Ft=D[Dt];if(Dt<L&&o===Ft||Dt>=L&&Ft.type===o)return Dt}if(h){const Dt=D[L];if(Dt&&ts(Dt)&&Dt.type===o)return L}return null}function Ca(t,i,o,c){let h=t[o];const m=i.data;if(function rl(t){return t instanceof xa}(h)){const D=h;D.resolving&&function se(t,i){throw i&&i.join(" > "),new nt(-200,t)}(function S(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():he(t)}(m[o]));const k=Io(D.canSeeViewProviders);D.resolving=!0;const ae=D.injectImpl?zt(D.injectImpl):null;Hd(t,c,tt.Default);try{h=t[o]=D.factory(void 0,m,t,c),i.firstCreatePass&&o>=c.directiveStart&&function nl(t,i,o){const{ngOnChanges:c,ngOnInit:h,ngDoCheck:m}=i.type.prototype;if(c){const D=Uu(i);(o.preOrderHooks??=[]).push(t,D),(o.preOrderCheckHooks??=[]).push(t,D)}h&&(o.preOrderHooks??=[]).push(0-t,h),m&&((o.preOrderHooks??=[]).push(t,m),(o.preOrderCheckHooks??=[]).push(t,m))}(o,m[o],i)}finally{null!==ae&&zt(ae),Io(k),D.resolving=!1,fc()}}return h}function bc(t,i,o){return!!(o[i+(t>>ed)]&1<<t)}function xc(t,i){return!(t&tt.Self||t&tt.Host&&i)}
1class zr{constructor(i,o){this._tNode=i,this._lView=o}get(i,o,c){return yc(this._tNode,this._lView,i,Br(c),o)}}function Ws(){return new zr(Ci(),Kt())}function Rl(t){return an(()=>{const i=t.prototype.constructor,o=i[A]||Cc(i),c=Object.prototype;let h=Object.getPrototypeOf(t.prototype).constructor;for(;h&&h!==c;){const m=h[A]||Cc(h);if(m&&m!==o)return m;h=Object.getPrototypeOf(h)}return m=>new m})}function Cc(t){return it(t)?()=>{const i=Cc(Se(t));return i&&i()}:Gi(t)}function Ap(t){const i=t[rn],o=i.type;return 2===o?i.declTNode:1===o?t[yr]:null}function wc(t){return function rg(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const o=t.attrs;if(o){const c=o.length;let h=0;for(;h<c;){const m=o[h];if(me(m))break;if(0===m)h+=2;else if("number"==typeof m)for(h++;h<c&&"string"==typeof o[h];)h++;else{if(m===i)return o[h+1];h+=2}}}return null}(Ci(),t)}function xp(t,i=null,o=null,c){const h=ou(t,i,o,c);return h.resolveInjectorInitializers(),h}function ou(t,i=null,o=null,c,h=new Set){const m=[o||ai,_a(t)];return c=c||("object"==typeof t?void 0:Xn(t)),new ho(m,i||fs(),c||null,h)}let _s=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=cn;static#t=this.NULL=new Qo;static create(o,c){if(Array.isArray(o))return xp({name:""},c,o,"");{const h=o.name??"";return xp({name:h},o.parent,o.providers,h)}}static#n=this.\u0275prov=Bn({token:t,providedIn:"any",factory:()=>yi(fa)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Cp(t){return t.ngOriginalError}class Ma{constructor(){this._console=console}handleError(i){const o=this._findOriginalError(i);this._console.error("ERROR",i),o&&this._console.error("ORIGINAL ERROR",o)}_findOriginalError(i){let o=i&&Cp(i);for(;o&&Cp(o);)o=Cp(o);return o||null}}const Mc=new jt("",{providedIn:"root",factory:()=>Tn(Ma).handleError.bind(void 0)});let Fl=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=jh;static#t=this.__NG_ENV_ID__=o=>o}return t})();class Lh extends Fl{constructor(i){super(),this._lView=i}onDestroy(i){return pc(this._lView,i),()=>function Bd(t,i){if(null===t[oa])return;const o=t[oa].indexOf(i);-1!==o&&t[oa].splice(o,1)}(this._lView,i)}}function jh(){return new Lh(Kt())}function su(){return Ms(Ci(),Kt())}function Ms(t,i){return new Ec(go(t,i))}let Ec=(()=>{class t{constructor(o){this.nativeElement=o}static#e=this.__NG_ELEMENT_ID__=su}return t})();function rd(t){return t instanceof Ec?t.nativeElement:t}function au(t){return i=>{setTimeout(t,void 0,i)}}const Hs=class Dp extends Oe.B{constructor(i=!1){super(),this.destroyRef=void 0,this.__isAsync=i,ya()&&(this.destroyRef=Tn(Fl,{optional:!0})??void 0)}emit(i){const o=W(null);try{super.next(i)}finally{W(o)}}subscribe(i,o,c){let h=i,m=o||(()=>null),D=c;if(i&&"object"==typeof i){const L=i;h=L.next?.bind(L),m=L.error?.bind(L),D=L.complete?.bind(L)}this.__isAsync&&(m=au(m),h&&(h=au(h)),D&&(D=au(D)));const k=super.subscribe({next:h,error:m,complete:D});return i instanceof Ue.yU&&i.add(k),k}};function pa(){return this._results[Symbol.iterator]()}class kc{static#e=Symbol.iterator;get changes(){return this._changes??=new Hs}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const o=kc.prototype;o[Symbol.iterator]||(o[Symbol.iterator]=pa)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,o){return this._results.reduce(i,o)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,o){this.dirty=!1;const c=function Ui(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function Vr(t,i,o){if(t.length!==i.length)return!1;for(let c=0;c<t.length;c++){let h=t[c],m=i[c];if(o&&(h=o(h),m=o(m)),m!==h)return!1}return!0}(this._results,c,o))&&(this._results=c,this.length=c.length,this.last=c[this.length-1],this.first=c[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function Ic(t){return!(128&~t.flags)}const ad=new Map;let cu=0;const Sc="__ngContext__";function _o(t,i){ao(i)?(t[Sc]=i[Ha],function uu(t){ad.set(t[Ha],t)}(i)):t[Sc]=i}function kp(t){return Tp(t[Wa])}function Ip(t){return Tp(t[Fr])}function Tp(t){for(;null!==t&&!lo(t);)t=t[Fr];return t}let Bo;function Bl(t){Bo=t}function Ia(){if(void 0!==Bo)return Bo;if(typeof document<"u")return document;throw new nt(210,!1)}const _u=new jt("",{providedIn:"root",factory:()=>Rp}),Rp="ng",Fp=new jt(""),ks=new jt("",{providedIn:"platform",factory:()=>"unknown"}),Kh=new jt(""),Fc=new jt("",{providedIn:"root",factory:()=>Ia().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Zh=()=>null;function md(t,i,o=!1){return Zh(t,i,o)}const Hr=new jt("",{providedIn:"root",factory:()=>!1});let co,Ks;function Ss(t){return function no(){if(void 0===co&&(co=null,hn.trustedTypes))try{co=hn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return co}()?.createHTML(t)||t}function Sa(){if(void 0===Ks&&(Ks=null,hn.trustedTypes))try{Ks=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ks}function xu(t){return Sa()?.createHTML(t)||t}function vd(t){return Sa()?.createScriptURL(t)||t}class Oa{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rt})`}}class Lp extends Oa{getTypeName(){return"HTML"}}class Rn extends Oa{getTypeName(){return"Style"}}
vendor: 4,388 bytes, line 1
1class Kn extends Oa{getTypeName(){return"Script"}}class oi extends Oa{getTypeName(){return"URL"}}class Ki extends Oa{getTypeName(){return"ResourceURL"}}function br(t){return t instanceof Oa?t.changingThisBreaksApplicationSecurity:t}function Go(t,i){const o=function ls(t){return t instanceof Oa&&t.getTypeName()||null}(t);if(null!=o&&o!==i){if("ResourceURL"===o&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${o} (see ${Rt})`)}return o===i}function Ra(t){return new Lp(t)}function Lr(t){return new Rn(t)}function jp(t){return new Kn(t)}function tf(t){return new oi(t)}function Po(t){return new Ki(t)}class Ps{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const o=(new window.DOMParser).parseFromString(Ss(i),"text/html").body;return null===o?this.inertDocumentHelper.getInertBodyElement(i):(o.removeChild(o.firstChild),o)}catch{return null}}}class yd{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const o=this.inertDocument.createElement("template");return o.innerHTML=Ss(i),o}}const jm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bp(t){return(t=String(t)).match(jm)?t:"unsafe:"+t}function hl(t){const i={};for(const o of t.split(","))i[o]=!0;return i}function wu(...t){const i={};for(const o of t)for(const c in o)o.hasOwnProperty(c)&&(i[c]=!0);return i}const cg=hl("area,br,col,hr,img,wbr"),dg=hl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ug=hl("rp,rt"),Vp=wu(cg,wu(dg,hl("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wu(ug,hl("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wu(ug,dg)),nf=hl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rf=wu(nf,hl("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hl("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Um=hl("script,style,template");class zm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let o=i.firstChild,c=!0,h=[];for(;o;)if(o.nodeType===Node.ELEMENT_NODE?c=this.startElement(o):o.nodeType===Node.TEXT_NODE?this.chars(o.nodeValue):this.sanitizedSomething=!0,c&&o.firstChild)h.push(o),o=Ul(o);else for(;o;){o.nodeType===Node.ELEMENT_NODE&&this.endElement(o);let m=$m(o);if(m){o=m;break}o=h.pop()}return this.buf.join("")}startElement(i){const o=jc(i).toLowerCase();if(!Vp.hasOwnProperty(o))return this.sanitizedSomething=!0,!Um.hasOwnProperty(o);this.buf.push("<"),this.buf.push(o);const c=i.attributes;for(let h=0;h<c.length;h++){const m=c.item(h),D=m.name,k=D.toLowerCase();if(!rf.hasOwnProperty(k)){this.sanitizedSomething=!0;continue}let L=m.value;nf[k]&&(L=Bp(L)),this.buf.push(" ",D,'="',zl(L),'"')}return this.buf.push(">"),!0}endElement(i){const o=jc(i).toLowerCase();Vp.hasOwnProperty(o)&&!cg.hasOwnProperty(o)&&(this.buf.push("</"),this.buf.push(o),this.buf.push(">"))}chars(i){this.buf.push(zl(i))}}function $m(t){const i=t.nextSibling;if(i&&t!==i.previousSibling)throw pg(i);return i}function Ul(t){const i=t.firstChild;
1if(i&&function Du(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,i))throw pg(i);return i}function jc(t){const i=t.nodeName;return"string"==typeof i?i:"FORM"}function pg(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const Qm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gp=/([^\#-~ |!])/g;function zl(t){return t.replace(/&/g,"&amp;").replace(Qm,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(Gp,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let $l;function hg(t,i){let o=null;try{$l=$l||function pl(t){const i=new yd(t);return function Cu(){try{return!!(new window.DOMParser).parseFromString(Ss(""),"text/html")}catch{return!1}}()?new Ps(i):i}(t);let c=i?String(i):"";o=$l.getInertBodyElement(c);let h=5,m=c;do{if(0===h)throw new Error("Failed to sanitize html because the input is unstable");h--,c=m,m=o.innerHTML,o=$l.getInertBodyElement(c)}while(c!==m);return Ss((new zm).sanitizeChildren(Mu(o)||o))}finally{if(o){const c=Mu(o)||o;for(;c.firstChild;)c.removeChild(c.firstChild)}}}function Mu(t){return"content"in t&&function fg(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ys=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ys||{});function gg(t){const i=Eu();return i?xu(i.sanitize(Ys.HTML,t)||""):Go(t,"HTML")?xu(br(t)):hg(Ia(),he(t))}function sf(t){const i=Eu();return i?i.sanitize(Ys.URL,t)||"":Go(t,"URL")?br(t):Bp(he(t))}function af(t){const i=Eu();if(i)return vd(i.sanitize(Ys.RESOURCE_URL,t)||"");if(Go(t,"ResourceURL"))return vd(br(t));throw new nt(904,!1)}function mg(t,i,o){return function Km(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?af:sf}(i,o)(t)}function Eu(){const t=Kt();return t&&t[Ho].sanitizer}const Ym=/^>|^->|<!--|-->|--!>|<!-$/g,Jm=/(<|>)/g,Zm="\u200b$1\u200b";function Ag(t){return t.ownerDocument.defaultView}function bg(t){return t.ownerDocument}function Os(t){return t instanceof Function?t():t}var $p=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}($p||{});let pf;function hf(t,i){return pf(t,i)}function xd(t,i,o,c,h){if(null!=c){let m,D=!1;lo(c)?m=c:ao(c)&&(D=!0,c=c[bi]);const k=lr(c);0===t&&null!==o?null==h?Tg(i,o,k):wd(i,o,k,h||null,!0):1===t&&null!==o?wd(i,o,k,h||null,!0):2===t?function Pu(t,i,o){const c=Wp(t,i);c&&function Sg(t,i,o,c){t.removeChild(i,o,c)}(t,c,i,o)}(i,k,D):3===t&&i.destroyNode(k),null!=m&&function jg(t,i,o,c,h){const m=o[es];m!==lr(o)&&xd(i,t,c,m,h);for(let k=Dr;k<o.length;k++){const L=o[k];Xp(L[rn],L,t,i,c,m)}}(i,t,m,o,h)}}function ku(t,i){return t.createComment(function _g(t){return t.replace(Ym,i=>i.replace(Jm,Zm))}(i))}function Fa(t,i,o){return t.createElement(i,o)}function kg(t,i){i[Ho].changeDetectionScheduler?.notify(1),Xp(t,i,i[Ln],2,null,null)}function Ig(t,i){const o=t[aa],c=o.indexOf(i);o.splice(c,1)}function Iu(t,i){if(t.length<=Dr)return;const o=Dr+i,c=t[o];if(c){const h=c[ia];null!==h&&h!==t&&Ig(h,c),i>0&&(t[o-1][Fr]=c[Fr]);const m=qi(t,Dr+i);!function Eg(t,i){kg(t,i),i[bi]=null,i[yr]=null}(c[rn],c);const D=m[No];null!==D&&D.detachView(m[rn]),c[xi]=null,c[Fr]=null,c[Sn]&=-129}return c}function ff(t,i){if(!(256&i[Sn])){const o=i[Ln];o.destroyNode&&Xp(t,i,o,3,null,null),function u_(t){let i=t[Wa];if(!i)return gf(t[rn],t);for(;i;){let o=null;if(ao(i))o=i[Wa];else{const c=i[Dr];c&&(o=c)}if(!o){for(;i&&!i[Fr]&&i!==t;)ao(i)&&gf(i[rn],i),i=i[xi];null===i&&(i=t),ao(i)&&gf(i[rn],i),o=i&&i[Fr]}i=o}}(i)}}function gf(t,i){if(256&i[Sn])return;const o=W(null);try{i[Sn]&=-129,i[Sn]|=256,i[sa]&&function gt(t){if(We(t),kt(t))for(let i=0;i<t.producerNode.length;i++)Ct(t.producerNode[i],t.producerIndexOfThis[i]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}(i[sa]),function f_(t,i){let o;if(null!=t&&null!=(o=t.destroyHooks))for(let c=0;c<o.length;c+=2){const h=i[o[c]];if(!(h instanceof xa)){const m=o[c+1];if(Array.isArray(m))for(let D=0;D<m.length;D+=2){const k=h[m[D]],L=m[D+1];xs(4,k,L);try{L.call(k)}finally{xs(5,k,L)}}else{xs(4,h,m);try{m.call(h)}finally{xs(5,h,m)}}}}}(t,i),function A1(t,i){const o=t.cleanup,c=i[Ur];if(null!==o)for(let m=0;m<o.length-1;m+=2)if("string"==typeof o[m]){const D=o[m+3];D>=0?c[D]():c[-D].unsubscribe(),m+=2}else o[m].call(c[o[m+1]]);null!==c&&(i[Ur]=null);const h=i[oa];if(null!==h){i[oa]=null;for(let m=0;m<h.length;m++)(0,h[m])()}}
vendor: 4,891 bytes, line 1
1(t,i),1===i[rn].type&&i[Ln].destroy();const c=i[ia];if(null!==c&&lo(i[xi])){c!==i[xi]&&Ig(c,i);const h=i[No];null!==h&&h.detachView(t)}!function ld(t){ad.delete(t[Ha])}(i)}finally{W(o)}}function mf(t,i,o){return function g_(t,i,o){let c=i;for(;null!==c&&40&c.type;)c=(i=c).parent;if(null===c)return o[bi];{const{componentOffset:h}=c;if(h>-1){const{encapsulation:m}=t.data[c.directiveStart+h];if(m===ds.None||m===ds.Emulated)return null}return go(c,o)}}(t,i.parent,o)}function wd(t,i,o,c,h){t.insertBefore(i,o,c,h)}function Tg(t,i,o){t.appendChild(i,o)}function Tu(t,i,o,c,h){null!==c?wd(t,i,o,c,h):Tg(t,i,o)}function Wp(t,i){return t.parentNode(i)}function Og(t,i,o){return Rs(t,i,o)}let _f,Rs=function m_(t,i,o){return 40&t.type?go(t,o):null};function Hp(t,i,o,c){const h=mf(t,c,i),m=i[Ln],k=Og(c.parent||i[yr],c,i);if(null!=h)if(Array.isArray(o))for(let L=0;L<o.length;L++)Tu(m,h,o[L],k,!1);else Tu(m,h,o,k,!1);void 0!==_f&&_f(m,c,i,o,h)}function Su(t,i){if(null!==i){const o=i.type;if(3&o)return go(i,t);if(4&o)return vf(-1,t[i.index]);if(8&o){const c=i.child;if(null!==c)return Su(t,c);{const h=t[i.index];return lo(h)?vf(-1,h):lr(h)}}if(32&o)return hf(i,t)()||lr(t[i.index]);{const c=Fg(t,i);return null!==c?Array.isArray(c)?c[0]:Su(Za(t[Sr]),c):Su(t,i.next)}}return null}function Fg(t,i){return null!==i?t[Sr][yr].projection[i.projection]:null}function vf(t,i){const o=Dr+t+1;if(o<i.length){const c=i[o],h=c[rn].firstChild;if(null!==h)return Su(c,h)}return i[es]}function yf(t,i,o,c,h,m,D){for(;null!=o;){const k=c[o.index],L=o.type;if(D&&0===i&&(k&&_o(lr(k),c),o.flags|=2),32&~o.flags)if(8&L)yf(t,i,o.child,c,h,m,!1),xd(i,t,h,k,m);else if(32&L){const ae=hf(o,c);let De;for(;De=ae();)xd(i,t,h,De,m);xd(i,t,h,k,m)}else 16&L?Lg(t,i,c,o,h,m):xd(i,t,h,k,m);o=D?o.projectionNext:o.next}}function Xp(t,i,o,c,h,m){yf(o,c,t.firstChild,i,h,m,!1)}function Lg(t,i,o,c,h,m){const D=o[Sr],L=D[yr].projection[c.projection];if(Array.isArray(L))for(let ae=0;ae<L.length;ae++)xd(i,t,h,L[ae],m);else{let ae=L;const De=D[xi];Ic(c)&&(ae.flags|=128),yf(t,i,ae,De,h,m,!0)}}function d(t,i,o){""===o?t.removeAttribute(i,"class"):t.setAttribute(i,"class",o)}function n(t,i,o){const{mergedAttrs:c,classes:h,styles:m}=o;null!==c&&Ns(t,i,c),null!==h&&d(t,i,h),null!==m&&function v_(t,i,o){t.setAttribute(i,"style",o)}(t,i,m)}const r={};function a(t=1){u(Vi(),Kt(),Eo()+t,!1)}function u(t,i,o,c){if(!c)if(3&~i[Sn]){const m=t.preOrderHooks;null!==m&&ws(i,m,0,o)}else{const m=t.preOrderCheckHooks;null!==m&&Jr(i,m,o)}tl(o)}function f(t,i=tt.Default){const o=Kt();return null===o?yi(t,i):yc(Ci(),o,Se(t),i)}function _(){throw new Error("invalid")}function M(t,i,o,c,h,m){const D=W(null);try{let k=null;h&Do.SignalBased&&(k=i[c][l]),null!==k&&void 0!==k.transformFn&&(m=k.transformFn(m)),h&Do.HasDecoratorInputTransform&&(m=t.inputTransforms[c].call(i,m)),null!==t.setInput?t.setInput(i,k,m,o,c):Gu(i,k,c,m)}finally{W(D)}}function Q(t,i,o,c,h,m,D,k,L,ae,De){const He=i.blueprint.slice();return He[bi]=h,He[Sn]=204|c,(null!==ae||t&&2048&t[Sn])&&(He[Sn]|=2048),qu(He),He[xi]=He[gs]=t,He[ar]=o,He[Ho]=D||t&&t[Ho],He[Ln]=k||t&&t[Ln],He[Yr]=L||t&&t[Yr]||null,He[yr]=m,He[Ha]=function du(){return cu++}(),He[Gr]=De,He[Uc]=ae,He[Sr]=2==i.type?t[Sr]:He,He}function de(t,i,o,c,h){let m=t.data[i];if(null===m)m=function Ye(t,i,o,c,h){const m=np(),D=$s(),L=t.data[i]=function Xl(t,i,o,c,h,m){let D=i?i.injectorIndex:-1,k=0;return el()&&(k|=128),{type:o,index:c,insertBeforeIndex:null,injectorIndex:D,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:k,providerIndexes:0,value:h,attrs:m,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,D?m:m&&m.parent,o,i,c,h);return null===t.firstChild&&(t.firstChild=L),null!==m&&(D?null==m.child&&null!==L.parent&&(m.child=L):null===m.next&&(m.next=L,L.prev=m)),L}(t,i,o,c,h),function kh(){return li.lFrame.inI18n}()&&(m.flags|=32);else if(64&m.type){m.type=o,m.value=c,m.attrs=h;const D=function hc(){const t=li.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();m.injectorIndex=null===D?-1:D.injectorIndex}return zs(m,!0),m}function ut(t,i,o,c){if(0===o)return-1;const h=i.length;for(let m=0;m<o;m++)i.push(c),t.blueprint.push(c),t.data.push(null);return h}function Tt(t,i,o,c,h){const m=Eo(),D=2&c;try{tl(-1),D&&i.length>di&&u(t,i,di,!1),xs(D?2:0,h),o(c,h)}finally{tl(m),xs(D?3:1,h)}}function At(t,i,o){if(Ml(i)){const c=W(null);try{const m=i.directiveEnd;for(let D=i.directiveStart;D<m;D++){const k=t.data[D];k.contentQueries&&k.contentQueries(1,o[D],D)}}finally{W(c)}}}function nn(t,i,o){Gd()&&(function Fx(t,i,o,c){const h=o.directiveStart,m=o.directiveEnd;
1Gs(o)&&function Ux(t,i,o){const c=go(i,t),h=mi(o);let D=16;o.signals?D=4096:o.onPush&&(D=64);const k=Gg(t,Q(t,h,null,D,c,i,null,t[Ho].rendererFactory.createRenderer(c,o),null,null,null));t[i.index]=k}(i,o,t.data[h+o.componentOffset]),t.firstCreatePass||Ol(o,i),_o(c,i);const D=o.initialInputs;for(let k=h;k<m;k++){const L=t.data[k],ae=Ca(i,t,k,o);_o(ae,i),null!==D&&zx(0,k-h,ae,L,0,D),ts(L)&&(mo(o.index,i)[ar]=Ca(i,t,k,o))}}(t,i,o,go(o,i)),!(64&~o.flags)&&C1(t,i,o))}function En(t,i,o=go){const c=i.localNames;if(null!==c){let h=i.index+1;for(let m=0;m<c.length;m+=2){const D=c[m+1],k=-1===D?o(i,t):t[D];t[h++]=k}}}function mi(t){const i=t.tView;return null===i||i.incompleteFirstPass?t.tView=vo(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):i}function vo(t,i,o,c,h,m,D,k,L,ae,De){const He=di+c,bt=He+h,Dt=function Wl(t,i){const o=[];for(let c=0;c<i;c++)o.push(c<t?null:r);return o}(He,bt),Ft="function"==typeof ae?ae():ae;return Dt[rn]={type:t,blueprint:Dt,template:o,queries:null,viewQuery:k,declTNode:i,data:Dt.slice().fill(null,He),bindingStartIndex:He,expandoStartIndex:bt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof m?m():m,pipeRegistry:"function"==typeof D?D():D,firstChild:null,schemas:L,consts:Ft,incompleteFirstPass:!1,ssrId:De}}let ys=()=>null;function Ou(t,i,o,c,h){for(let m in i){if(!i.hasOwnProperty(m))continue;const D=i[m];if(void 0===D)continue;c??={};let k,L=Do.None;Array.isArray(D)?(k=D[0],L=D[1]):k=D;let ae=m;if(null!==h){if(!h.hasOwnProperty(m))continue;ae=h[m]}0===t?Vg(c,o,ae,k,L):Vg(c,o,ae,k)}return c}function Vg(t,i,o,c,h){let m;t.hasOwnProperty(o)?(m=t[o]).push(i,c):m=t[o]=[i,c],void 0!==h&&m.push(h)}function Js(t,i,o,c,h,m,D,k){const L=go(i,o);let De,ae=i.inputs;!k&&null!=ae&&(De=ae[c])?(C_(t,o,De,c,h),Gs(i)&&function Sx(t,i){const o=mo(i,t);16&o[Sn]||(o[Sn]|=64)}(o,i.index)):3&i.type&&(c=function Tx(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(c),h=null!=D?D(h,i.value||"",c):h,m.setProperty(L,c,h))}function y_(t,i,o,c){if(Gd()){const h=null===c?null:{"":-1},m=function Lx(t,i){const o=t.directiveRegistry;let c=null,h=null;if(o)for(let m=0;m<o.length;m++){const D=o[m];if(La(i,D.selectors,!1))if(c||(c=[]),ts(D))if(null!==D.findHostDirectiveDefs){const k=[];h=h||new Map,D.findHostDirectiveDefs(D,k,h),c.unshift(...k,D),A_(t,i,k.length)}else c.unshift(D),A_(t,i,0);else h=h||new Map,D.findHostDirectiveDefs?.(D,c,h),c.push(D)}return null===c?null:[c,h]}(t,o);let D,k;null===m?D=k=null:[D,k]=m,null!==D&&x1(t,i,o,D,h,k),h&&function jx(t,i,o){if(i){const c=t.localNames=[];for(let h=0;h<i.length;h+=2){const m=o[i[h+1]];if(null==m)throw new nt(-301,!1);c.push(i[h],m)}}}(o,c,h)}o.mergedAttrs=q(o.mergedAttrs,o.attrs)}function x1(t,i,o,c,h,m){for(let ae=0;ae<c.length;ae++)nu(Ol(o,i),t,c[ae].type);!function Vx(t,i,o){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+o,t.providerIndexes=i}(o,t.data.length,c.length);for(let ae=0;ae<c.length;ae++){const De=c[ae];De.providersResolver&&De.providersResolver(De)}let D=!1,k=!1,L=ut(t,i,c.length,null);for(let ae=0;ae<c.length;ae++){const De=c[ae];o.mergedAttrs=q(o.mergedAttrs,De.hostAttrs),Gx(t,o,i,L,De),Bx(L,De,h),null!==De.contentQueries&&(o.flags|=4),(null!==De.hostBindings||null!==De.hostAttrs||0!==De.hostVars)&&(o.flags|=64);const He=De.type.prototype;!D&&(He.ngOnChanges||He.ngOnInit||He.ngDoCheck)&&((t.preOrderHooks??=[]).push(o.index),D=!0),!k&&(He.ngOnChanges||He.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(o.index),k=!0),L++}!function Ix(t,i,o){const h=i.directiveEnd,m=t.data,D=i.attrs,k=[];let L=null,ae=null;for(let De=i.directiveStart;De<h;De++){const He=m[De],bt=o?o.get(He):null,Ft=bt?bt.outputs:null;L=Ou(0,He.inputs,De,L,bt?bt.inputs:null),ae=Ou(1,He.outputs,De,ae,Ft);const Yt=null===L||null===D||ni(i)?null:$x(L,De,D);k.push(Yt)}null!==L&&(L.hasOwnProperty("class")&&(i.flags|=8),L.hasOwnProperty("style")&&(i.flags|=16)),i.initialInputs=k,i.inputs=L,i.outputs=ae}(t,o,m)}function C1(t,i,o){const c=o.directiveStart,h=o.directiveEnd,m=o.index,D=function Th(){return li.lFrame.currentDirectiveIndex}();try{tl(m);for(let k=c;k<h;k++){const L=t.data[k],ae=i[k];Qd(k),(null!==L.hostBindings||0!==L.hostVars||null!==L.hostAttrs)&&Nx(L,ae)}}finally{tl(-1),Qd(D)}}function Nx(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}
1function A_(t,i,o){i.componentOffset=o,(t.components??=[]).push(i.index)}function Bx(t,i,o){if(o){if(i.exportAs)for(let c=0;c<i.exportAs.length;c++)o[i.exportAs[c]]=t;ts(i)&&(o[""]=t)}}function Gx(t,i,o,c,h){t.data[c]=h;const m=h.factory||(h.factory=Gi(h.type)),D=new xa(m,ts(h),f);t.blueprint[c]=D,o[c]=D,function Ox(t,i,o,c,h){const m=h.hostBindings;if(m){let D=t.hostBindingOpCodes;null===D&&(D=t.hostBindingOpCodes=[]);const k=~i.index;(function Rx(t){let i=t.length;for(;i>0;){const o=t[--i];if("number"==typeof o&&o<0)return o}return 0})(D)!=k&&D.push(k),D.push(o,c,m)}}(t,i,c,ut(t,o,h.hostVars,r),h)}function ql(t,i,o,c,h,m){const D=go(t,i);!function b_(t,i,o,c,h,m,D){if(null==m)t.removeAttribute(i,h,o);else{const k=null==D?he(m):D(m,c||"",h);t.setAttribute(i,h,k,o)}}(i[Ln],D,m,t.value,o,c,h)}function zx(t,i,o,c,h,m){const D=m[i];if(null!==D)for(let k=0;k<D.length;)M(c,o,D[k++],D[k++],D[k++],D[k++])}function $x(t,i,o){let c=null,h=0;for(;h<o.length;){const m=o[h];if(0!==m)if(5!==m){if("number"==typeof m)break;if(t.hasOwnProperty(m)){null===c&&(c=[]);const D=t[m];for(let k=0;k<D.length;k+=3)if(D[k]===i){c.push(m,D[k+1],D[k+2],o[h+1]);break}}h+=2}else h+=2;else h+=4}return c}function w1(t,i,o,c){return[t,!0,0,i,null,c,null,o,null,null]}function D1(t,i){const o=t.contentQueries;if(null!==o){const c=W(null);try{for(let h=0;h<o.length;h+=2){const D=o[h+1];if(-1!==D){const k=t.data[D];Yc(o[h]),k.contentQueries(2,i[D],D)}}}finally{W(c)}}}function Gg(t,i){return t[Wa]?t[lc][Fr]=i:t[Wa]=i,t[lc]=i,i}function x_(t,i,o){Yc(0);const c=W(null);try{i(t,o)}finally{W(c)}}function M1(t){return t[Ur]||(t[Ur]=[])}function E1(t){return t.cleanup||(t.cleanup=[])}function k1(t,i,o){return(null===t||ts(t))&&(o=function Hc(t){for(;Array.isArray(t);){if("object"==typeof t[bs])return t;t=t[bi]}return null}(o[i.index])),o[Ln]}function Ug(t,i){const o=t[Yr],c=o?o.get(Ma,null):null;c&&c.handleError(i)}function C_(t,i,o,c,h){for(let m=0;m<o.length;){const D=o[m++],k=o[m++],L=o[m++];M(t.data[D],i[D],c,k,L,h)}}function Vc(t,i,o){const c=dc(i,t);!function Mg(t,i,o){t.setValue(i,o)}(t[Ln],c,o)}function Qx(t,i){const o=mo(i,t),c=o[rn];!function Wx(t,i){for(let o=i.length;o<t.blueprint.length;o++)i.push(t.blueprint[o])}(c,o);const h=o[bi];null!==h&&null===o[Gr]&&(o[Gr]=md(h,o[Yr])),w_(c,o,o[ar])}function w_(t,i,o){Xd(i);try{const c=t.viewQuery;null!==c&&x_(1,c,o);const h=t.template;null!==h&&Tt(t,i,h,1,o),t.firstCreatePass&&(t.firstCreatePass=!1),i[No]?.finishViewCreation(t),t.staticContentQueries&&D1(t,i),t.staticViewQueries&&x_(2,t.viewQuery,o);const m=t.components;null!==m&&function Hx(t,i){for(let o=0;o<i.length;o++)Qx(t,i[o])}(i,m)}
1catch(c){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),c}finally{i[Sn]&=-5,Yd()}}function Kp(t,i){return!i||null===i.firstChild||Ic(t)}function xf(t,i,o,c=!0){const h=i[rn];if(function p_(t,i,o,c){const h=Dr+c,m=o.length;c>0&&(o[h-1][Fr]=i),c<m-Dr?(i[Fr]=o[h],Si(o,Dr+c,i)):(o.push(i),i[Fr]=null),i[xi]=o;const D=i[ia];null!==D&&o!==D&&function h_(t,i){const o=t[aa];i[Sr]!==i[xi][xi][Sr]&&(t[Sn]|=cc.HasTransplantedViews),null===o?t[aa]=[i]:o.push(i)}(D,i);const k=i[No];null!==k&&k.insertView(t),Kc(i),i[Sn]|=128}(h,i,t,o),c){const D=vf(o,t),k=i[Ln],L=Wp(k,t[es]);null!==L&&function Cd(t,i,o,c,h,m){c[bi]=h,c[yr]=i,Xp(t,c,o,1,h,m)}(h,t[yr],k,i,L,D)}const m=i[Gr];null!==m&&null!==m.firstChild&&(m.firstChild=null)}function Cf(t,i,o,c,h=!1){for(;null!==o;){const m=i[o.index];null!==m&&c.push(lr(m)),lo(m)&&T1(m,c);const D=o.type;if(8&D)Cf(t,i,o.child,c);else if(32&D){const k=hf(o,i);let L;for(;L=k();)c.push(L)}else if(16&D){const k=Fg(i,o);if(Array.isArray(k))c.push(...k);else{const L=Za(i[Sr]);Cf(L[rn],L,k,c,!0)}}o=h?o.projectionNext:o.next}return c}function T1(t,i){for(let o=Dr;o<t.length;o++){const c=t[o],h=c[rn].firstChild;null!==h&&Cf(c[rn],c,h,i)}t[es]!==t[bi]&&i.push(t[es])}let S1=[];const Yx={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Tl(t.lView)},consumerOnSignalRead(){this.lView[sa]=this}},P1=100;function zg(t,i=!0,o=0){const c=t[Ho],h=c.rendererFactory;h.begin?.();try{!function Jx(t,i){M_(t,i);let o=0;for(;qc(t);){if(o===P1)throw new nt(103,!1);o++,M_(t,1)}}(t,o)}catch(D){throw i&&Ug(t,D),D}finally{h.end?.(),c.inlineEffectRunner?.flush()}}function Zx(t,i,o,c){const h=i[Sn];if(!(256&~h))return;i[Ho].inlineEffectRunner?.flush(),Xd(i);let D=null,k=null;(function eC(t){return 2!==t.type})(t)&&(k=function Xx(t){return t[sa]??function qx(t){const i=S1.pop()??Object.create(Yx);return i.lView=t,i}(t)}(i),D=function Qe(t){return t&&(t.nextProducerIndex=0),W(t)}(k));try{qu(i),function op(t){return li.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==o&&Tt(t,i,o,2,c);const L=!(3&~h);if(L){const He=t.preOrderCheckHooks;null!==He&&Jr(i,He,null)}else{const He=t.preOrderHooks;null!==He&&ws(i,He,0,null),Zd(i,0)}if(function tC(t){for(let i=kp(t);null!==i;i=Ip(i)){if(!(i[Sn]&cc.HasTransplantedViews))continue;const o=i[aa];for(let c=0;c<o.length;c++){wh(o[c])}}}(i),O1(i,0),null!==t.contentQueries&&D1(t,i),L){const He=t.contentCheckHooks;null!==He&&Jr(i,He)}else{const He=t.contentHooks;null!==He&&ws(i,He,1),Zd(i,1)}!function O(t,i){const o=t.hostBindingOpCodes;if(null!==o)try{for(let c=0;c<o.length;c++){const h=o[c];if(h<0)tl(~h);else{const m=h,D=o[++c],k=o[++c];Ih(D,m),k(2,i[m])}}}finally{tl(-1)}}(t,i);const ae=t.components;null!==ae&&F1(i,ae,0);const De=t.viewQuery;if(null!==De&&x_(2,De,c),L){const He=t.viewCheckHooks;null!==He&&Jr(i,He)}else{const He=t.viewHooks;null!==He&&ws(i,He,2),Zd(i,2)}if(!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[Aa]){for(const He of i[Aa])He();i[Aa]=null}i[Sn]&=-73}catch(L){throw Tl(i),L}finally{null!==k&&(function ht(t,i){if(W(i),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(kt(t))for(let o=t.nextProducerIndex;o<t.producerNode.length;o++)Ct(t.producerNode[o],t.producerIndexOfThis[o]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(k,D),function Kx(t){t.lView[sa]!==t&&(t.lView=null,S1.push(t))}(k)),Yd()}}function O1(t,i){for(let o=kp(t);null!==o;o=Ip(o))for(let c=Dr;c<o.length;c++)R1(o[c],i)}function nC(t,i,o){R1(mo(i,t),o)}function R1(t,i){jd(t)&&M_(t,i)}function M_(t,i){const c=t[rn],h=t[Sn],m=t[sa];let D=!!(0===i&&16&h);if(D||=!!(64&h&&0===i),D||=!!(1024&h),D||=!(!m?.dirty||!ot(m)),m&&(m.dirty=!1),t[Sn]&=-9217,D)Zx(c,t,c.template,t[ar]);else if(8192&h){O1(t,1);const k=c.components;
1null!==k&&F1(t,k,1)}}function F1(t,i,o){for(let c=0;c<i.length;c++)nC(t,i[c],o)}function wf(t){for(t[Ho].changeDetectionScheduler?.notify();t;){t[Sn]|=64;const i=Za(t);if(fo(t)&&!i)return t;t=i}return null}class Df{get rootNodes(){const i=this._lView,o=i[rn];return Cf(o,i,o.firstChild,[])}constructor(i,o,c=!0){this._lView=i,this._cdRefInjectingView=o,this.notifyErrorHandler=c,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ar]}set context(i){this._lView[ar]=i}get destroyed(){return!(256&~this._lView[Sn])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const i=this._lView[xi];if(lo(i)){const o=i[8],c=o?o.indexOf(this):-1;c>-1&&(Iu(i,c),qi(o,c))}this._attachedToViewContainer=!1}ff(this._lView[rn],this._lView)}onDestroy(i){pc(this._lView,i)}markForCheck(){wf(this._cdRefInjectingView||this._lView)}detach(){this._lView[Sn]&=-129}reattach(){Kc(this._lView),this._lView[Sn]|=128}detectChanges(){this._lView[Sn]|=1024,zg(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,kg(this._lView[rn],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=i,Kc(this._lView)}}let Mf=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=oC}return t})();const iC=Mf,rC=class extends iC{constructor(i,o,c){super(),this._declarationLView=i,this._declarationTContainer=o,this.elementRef=c}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,o){return this.createEmbeddedViewImpl(i,o)}createEmbeddedViewImpl(i,o,c){const h=function bf(t,i,o,c){const h=W(null);try{const m=i.tView,L=Q(t,m,o,4096&t[Sn]?4096:16,null,i,null,null,c?.injector??null,c?.embeddedViewInjector??null,c?.dehydratedView??null);L[ia]=t[i.index];const De=t[No];return null!==De&&(L[No]=De.createEmbeddedView(m)),w_(m,L,o),L}finally{W(h)}}(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:o,dehydratedView:c});return new Df(h)}};function oC(){return $g(Ci(),Kt())}function $g(t,i){return 4&t.type?new rC(i,t,Ms(t,i)):null}class qg{}class IC{}class U1{}class SC{resolveComponentFactory(i){throw function TC(t){const i=Error(`No component factory found for ${Xn(t)}.`);return i.ngComponent=t,i}(i)}}let Sf=(()=>{class t{static#e=this.NULL=new SC}return t})();class $1{}let PC=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function OC(){const t=Kt(),o=mo(Ci().index,t);return(ao(o)?o:t)[Ln]}()}return t})(),RC=(()=>{class t{static#e=this.\u0275prov=Bn({token:t,providedIn:"root",factory:()=>null})}return t})();const P_={},Q1=new Set;function Kl(t){Q1.has(t)||(Q1.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function W1(...t){}class yo{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:c=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Hs(!1),this.onMicrotaskEmpty=new Hs(!1),this.onStable=new Hs(!1),this.onError=new Hs(!1),typeof Zone>"u")throw new nt(908,!1);Zone.assertZonePatched();const h=this;h._nesting=0,h._outer=h._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(h._inner=h._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(h._inner=h._inner.fork(Zone.longStackTraceZoneSpec)),h.shouldCoalesceEventChangeDetection=!c&&o,h.shouldCoalesceRunChangeDetection=c,h.lastRequestAnimationFrameId=-1,h.nativeRequestAnimationFrame=function FC(){const t="function"==typeof hn.requestAnimationFrame;let i=hn[t?"requestAnimationFrame":"setTimeout"],o=hn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&o){const c=i[Zone.__symbol__("OriginalDelegate")];c&&(i=c);const h=o[Zone.__symbol__("OriginalDelegate")];h&&(o=h)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:o}}().nativeRequestAnimationFrame,function jC(t){const i=()=>{!function LC(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(hn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,R_(t),t.isCheckStableRunning=!0,O_(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),R_(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(o,c,h,m,D,k)=>{if(function BC(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(k))return o.invokeTask(h,m,D,k);try{return H1(t),o.invokeTask(h,m,D,k)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===m.type||t.shouldCoalesceRunChangeDetection)&&i(),X1(t)}},onInvoke:(o,c,h,m,D,k,L)=>{try{return H1(t),o.invoke(h,m,D,k,L)}finally{t.shouldCoalesceRunChangeDetection&&i(),X1(t)}},onHasTask:(o,c,h,m)=>{o.hasTask(h,m),c===h&&("microTask"==m.change?(t._hasPendingMicrotasks=m.microTask,R_(t),O_(t)):"macroTask"==m.change&&(t.hasPendingMacrotasks=m.macroTask))},onHandleError:(o,c,h,m)=>(o.handleError(h,m),t.runOutsideAngular(()=>t.onError.emit(m)),!1)})}(h)}
1static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!yo.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(yo.isInAngularZone())throw new nt(909,!1)}run(i,o,c){return this._inner.run(i,o,c)}runTask(i,o,c,h){const m=this._inner,D=m.scheduleEventTask("NgZoneEvent: "+h,i,NC,W1,W1);try{return m.runTask(D,o,c)}finally{m.cancelTask(D)}}runGuarded(i,o,c){return this._inner.runGuarded(i,o,c)}runOutsideAngular(i){return this._outer.run(i)}}const NC={};function O_(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function R_(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function H1(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function X1(t){t._nesting--,O_(t)}class q1{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Hs,this.onMicrotaskEmpty=new Hs,this.onStable=new Hs,this.onError=new Hs}run(i,o,c){return i.apply(o,c)}runGuarded(i,o,c){return i.apply(o,c)}runOutsideAngular(i){return i()}runTask(i,o,c,h){return i.apply(o,c)}}var Ru=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Ru||{});const K1={destroy(){}};function Y1(t,i){!i&&function Zo(t){if(!ya())throw new nt(-203,!1)}();const o=i?.injector??Tn(_s);if(!function Ql(t){return"browser"===(t??Tn(_s)).get(ks)}(o))return K1;Kl("NgAfterNextRender");const c=o.get(Pf),h=c.handler??=new Z1,m=i?.phase??Ru.MixedReadWrite,D=()=>{h.unregister(L),k()},k=o.get(Fl).onDestroy(D),L=Jo(o,()=>new J1(m,()=>{D(),t()}));return h.register(L),{destroy:D}}class J1{constructor(i,o){this.phase=i,this.callbackFn=o,this.zone=Tn(yo),this.errorHandler=Tn(Ma,{optional:!0}),Tn(qg,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(i){this.errorHandler?.handleError(i)}}}class Z1{constructor(){this.executingCallbacks=!1,this.buckets={[Ru.EarlyRead]:new Set,[Ru.Write]:new Set,[Ru.MixedReadWrite]:new Set,[Ru.Read]:new Set},this.deferredCallbacks=new Set}register(i){(this.executingCallbacks?this.deferredCallbacks:this.buckets[i.phase]).add(i)}unregister(i){this.buckets[i.phase].delete(i),this.deferredCallbacks.delete(i)}execute(){this.executingCallbacks=!0;for(const i of Object.values(this.buckets))for(const o of i)o.invoke();this.executingCallbacks=!1;for(const i of this.deferredCallbacks)this.buckets[i.phase].add(i);this.deferredCallbacks.clear()}destroy(){for(const i of Object.values(this.buckets))i.clear();this.deferredCallbacks.clear()}}let Pf=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const c of o)c()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Bn({token:t,providedIn:"root",factory:()=>new t})}return t})();function Dd(t){return!!ei(t)}function Yg(t,i,o){let c=o?t.styles:null,h=o?t.classes:null,m=0;
1if(null!==i)for(let D=0;D<i.length;D++){const k=i[D];"number"==typeof k?m=k:1==m?h=ri(h,k):2==m&&(c=ri(c,k+": "+i[++D]+";"))}o?t.styles=c:t.stylesWithoutHost=c,o?t.classes=h:t.classesWithoutHost=h}class n0 extends Sf{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const o=ci(i);return new Ff(o,this.ngModule)}}function r0(t){const i=[];for(const o in t){if(!t.hasOwnProperty(o))continue;const c=t[o];void 0!==c&&i.push({propName:Array.isArray(c)?c[0]:c,templateName:o})}return i}class o0{constructor(i,o){this.injector=i,this.parentInjector=o}get(i,o,c){c=Br(c);const h=this.injector.get(i,P_,c);return h!==P_||o===P_?h:this.parentInjector.get(i,o,c)}}class Ff extends U1{get inputs(){const i=this.componentDef,o=i.inputTransforms,c=r0(i.inputs);if(null!==o)for(const h of c)o.hasOwnProperty(h.propName)&&(h.transform=o[h.propName]);return c}get outputs(){return r0(this.componentDef.outputs)}constructor(i,o){super(),this.componentDef=i,this.ngModule=o,this.componentType=i.type,this.selector=function _l(t){return t.map(ml).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!o}create(i,o,c,h){const m=W(null);try{let D=(h=h||this.ngModule)instanceof po?h:h?.injector;D&&null!==this.componentDef.getStandaloneInjector&&(D=this.componentDef.getStandaloneInjector(D)||D);const k=D?new o0(i,D):i,L=k.get($1,null);if(null===L)throw new nt(407,!1);const ae=k.get(RC,null),bt={rendererFactory:L,sanitizer:ae,inlineEffectRunner:null,afterRenderEventManager:k.get(Pf,null),changeDetectionScheduler:k.get(qg,null)},Dt=L.createRenderer(null,this.componentDef),Ft=this.componentDef.selectors[0][0]||"div",Yt=c?function Hl(t,i,o,c){const m=c.get(Hr,!1)||o===ds.ShadowDom,D=t.selectRootElement(i,m);return function Bc(t){ys(t)}(D),D}(Dt,c,this.componentDef.encapsulation,k):Fa(Dt,Ft,function $C(t){const i=t.toLowerCase();return"svg"===i?$u:"math"===i?"math":null}(Ft));let pn=512;this.componentDef.signals?pn|=4096:this.componentDef.onPush||(pn|=16);let _n=null;null!==Yt&&(_n=md(Yt,k,!0));const sn=vo(0,null,null,1,0,null,null,null,null,null,null),ui=Q(null,sn,null,pn,null,null,bt,Dt,k,null,_n);let or,Pr;Xd(ui);try{const $o=this.componentDef;let ea,Ch=null;$o.findHostDirectiveDefs?(ea=[],Ch=new Map,$o.findHostDirectiveDefs($o,ea,Ch),ea.push($o)):ea=[$o];const kx=function WC(t,i){const o=t[rn],c=di;return t[c]=i,de(o,c,2,"#host",null)}(ui,Yt),eI=function HC(t,i,o,c,h,m,D){const k=h[rn];!function XC(t,i,o,c){for(const h of t)i.mergedAttrs=q(i.mergedAttrs,h.hostAttrs);null!==i.mergedAttrs&&(Yg(i,i.mergedAttrs,!0),null!==o&&n(c,o,i))}(c,t,i,D);let L=null;null!==i&&(L=md(i,h[Yr]));const ae=m.rendererFactory.createRenderer(i,o);let De=16;o.signals?De=4096:o.onPush&&(De=64);const He=Q(h,mi(o),null,De,h[t.index],t,m,ae,null,null,L);return k.firstCreatePass&&A_(k,t,c.length-1),Gg(h,He),h[t.index]=He}(kx,Yt,$o,ea,ui,bt,Dt);Pr=Il(sn,di),Yt&&function KC(t,i,o,c){if(c)Ns(t,o,["ng-version","17.3.2"]);else{const{attrs:h,classes:m}=function vl(t){const i=[],o=[];let c=1,h=2;for(;c<t.length;){let m=t[c];if("string"==typeof m)2===h?""!==m&&i.push(m,t[++c]):8===h&&o.push(m);else{if(!qr(h))break;h=m}c++}return{attrs:i,classes:o}}(i.selectors[0]);h&&Ns(t,o,h),m&&m.length>0&&d(t,o,m.join(" "))}}(Dt,$o,Yt,c),void 0!==o&&function YC(t,i,o){const c=t.projection=[];for(let h=0;h<i.length;h++){const m=o[h];c.push(null!=m?Array.from(m):null)}}(Pr,this.ngContentSelectors,o),or=function qC(t,i,o,c,h,m){const D=Ci(),k=h[rn],L=go(D,h);x1(k,h,D,o,null,c);for(let De=0;De<o.length;De++)_o(Ca(h,k,D.directiveStart+De,D),h);C1(k,h,D),L&&_o(L,h);const ae=Ca(h,k,D.directiveStart+D.componentOffset,D);if(t[ar]=h[ar]=ae,null!==m)for(const De of m)De(ae,i);return At(k,D,h),ae}(eI,$o,ea,Ch,ui,[JC]),w_(sn,ui,null)}finally{Yd()}return new QC(this.componentType,or,Ms(Pr,ui),ui,Pr)}finally{W(m)}}}class QC extends IC{constructor(i,o,c,h,m){super(),this.location=c,this._rootLView=h,this._tNode=m,this.previousInputValues=null,this.instance=o,this.hostView=this.changeDetectorRef=new Df(h,void 0,!1),this.componentType=i}
vendor: 5,158 bytes, line 1
1setInput(i,o){const c=this._tNode.inputs;let h;if(null!==c&&(h=c[i])){if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),o))return;const m=this._rootLView;C_(m[rn],m,h,i,o),this.previousInputValues.set(i,o),wf(mo(this._tNode.index,m))}}get injector(){return new zr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}function JC(){const t=Ci();Nr(Kt()[rn],t)}let Jg=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=ZC}return t})();function ZC(){return l0(Ci(),Kt())}const ew=Jg,s0=class extends ew{constructor(i,o,c){super(),this._lContainer=i,this._hostTNode=o,this._hostLView=c}get element(){return Ms(this._hostTNode,this._hostLView)}get injector(){return new zr(this._hostTNode,this._hostLView)}get parentInjector(){const i=td(this._hostTNode,this._hostLView);if(Qs(i)){const o=sl(i,this._hostLView),c=ol(i);return new zr(o[rn].data[c+8],o)}return new zr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const o=a0(this._lContainer);return null!==o&&o[i]||null}get length(){return this._lContainer.length-Dr}createEmbeddedView(i,o,c){let h,m;"number"==typeof c?h=c:null!=c&&(h=c.index,m=c.injector);const k=i.createEmbeddedViewImpl(o||{},m,null);return this.insertImpl(k,h,Kp(this._hostTNode,null)),k}createComponent(i,o,c,h,m){const D=i&&!function Zt(t){return"function"==typeof t}(i);let k;if(D)k=o;else{const Ft=o||{};k=Ft.index,c=Ft.injector,h=Ft.projectableNodes,m=Ft.environmentInjector||Ft.ngModuleRef}const L=D?i:new Ff(ci(i)),ae=c||this.parentInjector;if(!m&&null==L.ngModule){const Yt=(D?ae:this.parentInjector).get(po,null);Yt&&(m=Yt)}ci(L.componentType??{});const Dt=L.create(ae,h,null,m);return this.insertImpl(Dt.hostView,k,Kp(this._hostTNode,null)),Dt}insert(i,o){return this.insertImpl(i,o,!0)}insertImpl(i,o,c){const h=i._lView;if(function Xu(t){return lo(t[xi])}(h)){const k=this.indexOf(i);if(-1!==k)this.detach(k);else{const L=h[xi],ae=new s0(L,L[yr],L[xi]);ae.detach(ae.indexOf(i))}}const m=this._adjustIndex(o),D=this._lContainer;return xf(D,h,m,c),i.attachToViewContainerRef(),Si(j_(D),m,i),i}move(i,o){return this.insert(i,o)}indexOf(i){const o=a0(this._lContainer);return null!==o?o.indexOf(i):-1}remove(i){const o=this._adjustIndex(i,-1),c=Iu(this._lContainer,o);c&&(qi(j_(this._lContainer),o),ff(c[rn],c))}detach(i){const o=this._adjustIndex(i,-1),c=Iu(this._lContainer,o);return c&&null!=qi(j_(this._lContainer),o)?new Df(c):null}_adjustIndex(i,o=0){return i??this.length+o}};function a0(t){return t[8]}function j_(t){return t[8]||(t[8]=[])}function l0(t,i){let o;const c=i[t.index];return lo(c)?o=c:(o=w1(c,i,null,t),i[t.index]=o,Gg(i,o)),c0(o,i,t,c),new s0(o,t,i)}let c0=function u0(t,i,o,c){if(t[es])return;let h;h=8&o.type?lr(c):function tw(t,i){const o=t[Ln],c=o.createComment(""),h=go(i,t);return wd(o,Wp(o,h),c,function Pg(t,i){return t.nextSibling(i)}(o,h),!1),c}(i,o),t[es]=h},B_=()=>!1;class V_{constructor(i){this.queryList=i,this.matches=null}clone(){return new V_(this.queryList)}setDirty(){this.queryList.setDirty()}}class G_{constructor(i=[]){this.queries=i}createEmbeddedView(i){const o=i.queries;if(null!==o){const c=null!==i.contentQueries?i.contentQueries[0]:o.length,h=[];for(let m=0;m<c;m++){const D=o.getByIndex(m);h.push(this.queries[D.indexInDeclarationView].clone())}return new G_(h)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}finishViewCreation(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let o=0;o<this.queries.length;o++)null!==W_(i,o).matches&&this.queries[o].setDirty()}}class p0{constructor(i,o,c=null){this.flags=o,this.read=c,this.predicate="string"==typeof i?function cw(t){return t.split(",").map(i=>i.trim())}(i):i}}class U_{constructor(i=[]){this.queries=i}elementStart(i,o){for(let c=0;c<this.queries.length;c++)this.queries[c].elementStart(i,o)}elementEnd(i){for(let o=0;o<this.queries.length;o++)this.queries[o].elementEnd(i)}embeddedTView(i){let o=null;for(let c=0;c<this.length;c++){const h=null!==o?o.length:0,m=this.getByIndex(c).embeddedTView(i,h);m&&(m.indexInDeclarationView=c,null!==o?o.push(m):o=[m])}return null!==o?new U_(o):null}template(i,o){for(let c=0;c<this.queries.length;c++)this.queries[c].template(i,o)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}}class z_{constructor(i,o=-1){this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=o}elementStart(i,o){this.isApplyingToNode(o)&&this.matchTNode(i,o)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,o){this.elementStart(i,o)}embeddedTView(i,o){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,o),new z_(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1&~this.metadata.flags){const o=this._declarationNodeIndex;let c=i.parent;for(;null!==c&&8&c.type&&c.index!==o;)c=c.parent;return o===(null!==c?c.index:-1)}return this._appliesToNextNode}
1matchTNode(i,o){const c=this.metadata.predicate;if(Array.isArray(c))for(let h=0;h<c.length;h++){const m=c[h];this.matchTNodeWithReadOption(i,o,ow(o,m)),this.matchTNodeWithReadOption(i,o,Ac(o,i,m,!1,!1))}else c===Mf?4&o.type&&this.matchTNodeWithReadOption(i,o,-1):this.matchTNodeWithReadOption(i,o,Ac(o,i,c,!1,!1))}matchTNodeWithReadOption(i,o,c){if(null!==c){const h=this.metadata.read;if(null!==h)if(h===Ec||h===Jg||h===Mf&&4&o.type)this.addMatch(o.index,-2);else{const m=Ac(o,i,h,!1,!1);null!==m&&this.addMatch(o.index,m)}else this.addMatch(o.index,c)}}addMatch(i,o){null===this.matches?this.matches=[i,o]:this.matches.push(i,o)}}function ow(t,i){const o=t.localNames;if(null!==o)for(let c=0;c<o.length;c+=2)if(o[c]===i)return o[c+1];return null}function aw(t,i,o,c){return-1===o?function sw(t,i){return 11&t.type?Ms(t,i):4&t.type?$g(t,i):null}(i,t):-2===o?function lw(t,i,o){return o===Ec?Ms(i,t):o===Mf?$g(i,t):o===Jg?l0(i,t):void 0}(t,i,c):Ca(t,t[rn],o,i)}function h0(t,i,o,c){const h=i[No].queries[c];if(null===h.matches){const m=t.data,D=o.matches,k=[];for(let L=0;null!==D&&L<D.length;L+=2){const ae=D[L];k.push(ae<0?null:aw(i,m[ae],D[L+1],o.metadata.read))}h.matches=k}return h.matches}function $_(t,i,o,c){const h=t.queries.getByIndex(o),m=h.matches;if(null!==m){const D=h0(t,i,h,o);for(let k=0;k<m.length;k+=2){const L=m[k];if(L>0)c.push(D[k/2]);else{const ae=m[k+1],De=i[-L];for(let He=Dr;He<De.length;He++){const bt=De[He];bt[ia]===bt[xi]&&$_(bt[rn],bt,ae,c)}if(null!==De[aa]){const He=De[aa];for(let bt=0;bt<He.length;bt++){const Dt=He[bt];$_(Dt[rn],Dt,ae,c)}}}}}return c}function f0(t,i,o){const c=new kc(!(4&~o));return function Yi(t,i,o,c){const h=M1(i);h.push(o),t.firstCreatePass&&E1(t).push(c,h.length-1)}(t,i,c,c.destroy),(i[No]??=new G_).queries.push(new V_(c))-1}function _0(t,i,o){null===t.queries&&(t.queries=new U_),t.queries.track(new z_(i,o))}function W_(t,i){return t.queries.getByIndex(i)}function v0(t,i){const o=t[rn],c=W_(o,i);return c.crossesNgTemplate?$_(o,t,i,[]):h0(o,t,c,i)}function b0(t){return function y0(t){return"function"==typeof t&&void 0!==t[l]}(t)&&"function"==typeof t.set}function X_(t){let i=function P0(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),o=!0;const c=[t];for(;i;){let h;if(ts(t))h=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new nt(903,!1);h=i.\u0275dir}if(h){if(o){c.push(h);const D=t;D.inputs=em(t.inputs),D.inputTransforms=em(t.inputTransforms),D.declaredInputs=em(t.declaredInputs),D.outputs=em(t.outputs);const k=h.hostBindings;k&&Dw(t,k);const L=h.viewQuery,ae=h.contentQueries;if(L&&Cw(t,L),ae&&ww(t,ae),bw(t,h),hi(t.outputs,h.outputs),ts(h)&&h.data.animation){const De=t.data;De.animation=(De.animation||[]).concat(h.data.animation)}}const m=h.features;if(m)for(let D=0;D<m.length;D++){const k=m[D];k&&k.ngInherit&&k(t),k===X_&&(o=!1)}}i=Object.getPrototypeOf(i)}!function xw(t){let i=0,o=null;for(let c=t.length-1;c>=0;c--){const h=t[c];h.hostVars=i+=h.hostVars,h.hostAttrs=q(h.hostAttrs,o=q(o,h.hostAttrs))}}(c)}function bw(t,i){for(const o in i.inputs){if(!i.inputs.hasOwnProperty(o)||t.inputs.hasOwnProperty(o))continue;const c=i.inputs[o];if(void 0!==c&&(t.inputs[o]=c,t.declaredInputs[o]=i.declaredInputs[o],null!==i.inputTransforms)){const h=Array.isArray(c)?c[0]:c;if(!i.inputTransforms.hasOwnProperty(h))continue;t.inputTransforms??={},t.inputTransforms[h]=i.inputTransforms[h]}}}function em(t){return t===Qr?{}:t===ai?[]:t}function Cw(t,i){const o=t.viewQuery;t.viewQuery=o?(c,h)=>{i(c,h),o(c,h)}:i}function ww(t,i){const o=t.contentQueries;t.contentQueries=o?(c,h,m)=>{i(c,h,m),o(c,h,m)}:i}function Dw(t,i){const o=t.hostBindings;t.hostBindings=o?(c,h)=>{i(c,h),o(c,h)}:i}function N0(t){const i=t.inputConfig,o={};for(const c in i)if(i.hasOwnProperty(c)){const h=i[c];Array.isArray(h)&&h[3]&&(o[c]=h[3])}t.inputTransforms=o}class Fu{}class L0{}function Sw(t,i){return new q_(t,i??null,[])}class q_ extends Fu{constructor(i,o,c){super(),this._parent=o,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new n0(this);const h=ei(i);this._bootstrapComponents=Os(h.bootstrap),this._r3Injector=ou(i,o,[{provide:Fu,useValue:this},{provide:Sf,useValue:this.componentFactoryResolver},...c],Xn(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializer
vendor: 13,489 bytes, line 1
1s(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(o=>o()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class K_ extends L0{constructor(i){super(),this.moduleType=i}create(i){return new q_(this.moduleType,i,[])}}class j0 extends Fu{constructor(i){super(),this.componentFactoryResolver=new n0(this),this.instance=null;const o=new ho([...i.providers,{provide:Fu,useValue:this},{provide:Sf,useValue:this.componentFactoryResolver}],i.parent||fs(),i.debugName,new Set(["environment"]));this.injector=o,i.runEnvironmentInitializers&&o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function Y_(t,i,o=null){return new j0({providers:t,parent:i,debugName:o,runEnvironmentInitializers:!0}).injector}let Zp=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new $e.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(c){return new(c||t)};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nm(t){return!!J_(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function J_(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Yl(t,i,o){return t[i]=o}function Ao(t,i,o){return!Object.is(t[i],o)&&(t[i]=o,!0)}function Nu(t,i,o,c){const h=Ao(t,i,o);return Ao(t,i+1,c)||h}function im(t,i,o,c,h){const m=Nu(t,i,o,c);return Ao(t,i+2,h)||m}function Na(t,i,o,c,h,m){const D=Nu(t,i,o,c);return Nu(t,i+2,h,m)||D}function eh(t,i,o,c,h,m,D,k){const L=Kt(),ae=Vi(),De=t+di,He=ae.firstCreatePass?function jw(t,i,o,c,h,m,D,k,L){const ae=i.consts,De=de(i,t,4,D||null,Cs(ae,k));y_(i,o,De,Cs(ae,L)),Nr(i,De);const He=De.tView=vo(2,De,c,h,m,i.directiveRegistry,i.pipeRegistry,null,i.schemas,ae,null);return null!==i.queries&&(i.queries.template(i,De),He.queries=i.queries.embeddedTView(De)),De}(De,ae,L,i,o,c,h,m,D):ae.data[De];zs(He,!1);const bt=B0(ae,L,He,t);ko()&&Hp(ae,L,bt,He),_o(bt,L);const Dt=w1(bt,L,bt,He);return L[De]=Dt,Gg(L,Dt),function d0(t,i,o){return B_(t,i,o)}(Dt,He,L),Xa(He)&&nn(ae,L,He),null!=D&&En(L,He,k),eh}let B0=function V0(t,i,o,c){return jo(!0),i[Ln].createComment("")};function lv(t,i,o,c){const h=Kt();return Ao(h,is(),i)&&(Vi(),ql(cr(),h,t,i,o,c)),lv}function lh(t,i,o,c){return Ao(t,is(),o)?i+he(o)+c:r}function cm(t,i){return t<<17|i<<2}function kd(t){return t>>17&32767}function cv(t){return 2|t}function ju(t){return(131068&t)>>2}function dv(t,i){return-131069&t|i<<2}function uv(t){return 1|t}function _y(t,i,o,c){const h=t[o+1],m=null===i;let D=c?kd(h):ju(h),k=!1;for(;0!==D&&(!1===k||m);){const ae=t[D+1];w2(t[D],i)&&(k=!0,t[D+1]=c?uv(ae):cv(ae)),D=c?kd(ae):ju(ae)}k&&(t[o+1]=c?cv(h):uv(h))}function w2(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&oo(t,i)>=0}const Uo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function vy(t){return t.substring(Uo.key,Uo.keyEnd)}function D2(t){return t.substring(Uo.value,Uo.valueEnd)}function yy(t,i){const o=Uo.textEnd;return o===i?-1:(i=Uo.keyEnd=function k2(t,i,o){for(;i<o&&t.charCodeAt(i)>32;)i++;return i}(t,Uo.key=i,o),mh(t,i,o))}function Ay(t,i){const o=Uo.textEnd;let c=Uo.key=mh(t,i,o);return o===c?-1:(c=Uo.keyEnd=function I2(t,i,o){let c;for(;i<o&&(45===(c=t.charCodeAt(i))||95===c||(-33&c)>=65&&(-33&c)<=90||c>=48&&c<=57);)i++;return i}(t,c,o),c=xy(t,c,o),c=Uo.value=mh(t,c,o),c=Uo.valueEnd=function T2(t,i,o){let c=-1,h=-1,m=-1,D=i,k=D;for(;D<o;){const L=t.charCodeAt(D++);if(59===L)return k;34===L||39===L?k=D=Cy(t,L,D,o):i===D-4&&85===m&&82===h&&76===c&&40===L?k=D=Cy(t,41,D,o):L>32&&(k=D),m=h,h=c,c=-33&L}return k}(t,c,o),xy(t,c,o))}function by(t){Uo.key=0,Uo.keyEnd=0,Uo.value=0,Uo.valueEnd=0,Uo.textEnd=t.length}function mh(t,i,o){for(;i<o&&t.charCodeAt(i)<=32;)i++;return i}function xy(t,i,o,c){return(i=mh(t,i,o))<o&&i++,i}function Cy(t,i,o,c){let h=-1,m=o;for(;m<c;){const D=t.charCodeAt(m++);if(D==i&&92!==h)return m;h=92==D&&92===h?0:D}throw new Error}function pv(t,i,o){const c=Kt();return Ao(c,is(),i)&&Js(Vi(),cr(),c,t,i,c[Ln],o,!1),pv}function hv(t,i,o,c,h){const D=h?"class":"style";C_(t,o,i.inputs[D],D,c)}function fv(t,i,o){return fl(t,i,o,!1),fv}function gv(t,i){return fl(t,i,null,!0),gv}function S2(t,i){for(let o=function E2(t){return by(t),Ay(t,mh(t,0,Uo.textEnd))}(i);o>=0;o=Ay(i,o))Ey(t,vy(i),D2(i))}function wy(t){gl(L2,Zl,t,!0)}function Zl(t,i){for(let o=function M2(t){return by(t),yy(t,mh(t,0,Uo.textEnd))}(i);o>=0;o=yy(i,o))Bi(t,vy(i),!0)}function fl(t,i,o,c){const h=Kt(),m=Vi(),D=Xo(2);m.firstUpdatePass&&My(m,t,D,c),i!==r&&Ao(h,D,i)&&ky(m,m.data[Eo()],h,h[Ln],t,h[D+1]=function B2(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Xn(br(t)))),t}(i,o),c,D)}function gl(t,i,o,c){const h=Vi(),m=Xo(2);h.firstUpdatePass&&My(h,null,m,c);const D=Kt();if(o!==r&&Ao(D,m,o)){const k=h.data[Eo()];if(Ty(k,c)&&!Dy(h,m)){let L=c?k.classesWithoutHost:k.stylesWithoutHost;null!==L&&(o=ri(L,o||"")),hv(h,k,D,o,c)}else!function j2(t,i,o,c,h,m,D,k){h===r&&(h=ai);let L=0,ae=0,De=0<h.length?h[0]:null,He=0<m.length?m[0]:null;for(;null!==De||null!==He;){const bt=L<h.length?h[L+1]:void 0,Dt=ae<m.length?m[ae+1]:void 0;let Yt,Ft=null;De===He?(L+=2,ae+=2,bt!==Dt&&(Ft=He,Yt=Dt)):null===He||null!==De&&De<He?(L+=2,Ft=De):(ae+=2,Ft=He,Yt=Dt),null!==Ft&&ky(t,i,o,c,Ft,Yt,D,k),De=L<h.length?h[L]:null,He=ae<m.length?m[ae]:null}}(h,k,D,D[Ln],D[m+1],D[m+1]=function N2(t,i,o){if(null==o||""===o)return ai;const c=[],h=br(o);if(Array.isArray(h))for(let m=0;m<h.length;m++)t(c,h[m],!0);else if("object"==typeof h)for(const m in h)h.hasOwnProperty(m)&&t(c,m,h[m]);else"string"==typeof h&&i(c,h);return c}(t,i,o),c,m)}}function Dy(t,i){return i>=t.expandoStartIndex}function My(t,i,o,c){const h=t.data;if(null===h[o+1]){const m=h[Eo()],D=Dy(t,o);Ty(m,c)&&null===i&&!D&&(i=!1),i=function P2(t,i,o,c){const h=Wd(t);let m=c?i.residualClasses:i.residualStyles;if(null===h)0===(c?i.classBindings:i.styleBindings)&&(o=Uf(o=mv(null,t,i,o,c),i.attrs,c),m=null);else{const D=i.directiveStylingLast;if(-1===D||t[D]!==h)if(o=mv(h,t,i,o,c),null===m){let L=function O2(t,i,o){const c=o?i.classBindings:i.styleBindings;if(0!==ju(c))return t[kd(c)]}(t,i,c);void 0!==L&&Array.isArray(L)&&(L=mv(null,t,i,L[1],c),L=Uf(L,i.attrs,c),function R2(t,i,o,c){t[kd(o?i.classBindings:i.styleBindings)]=c}(t,i,c,L))}else m=function F2(t,i,o){let c;const h=i.directiveEnd;for(let m=1+i.directiveStylingLast;m<h;m++)c=Uf(c,t[m].hostAttrs,o);return Uf(c,i.attrs,o)}(t,i,c)}return void 0!==m&&(c?i.residualClasses=m:i.residualStyles=m),o}(h,m,i,c),function x2(t,i,o,c,h,m){let D=m?i.classBindings:i.styleBindings,k=kd(D),L=ju(D);t[c]=o;let De,ae=!1;if(Array.isArray(o)?(De=o[1],(null===De||oo(o,De)>0)&&(ae=!0)):De=o,h)if(0!==L){const bt=kd(t[k+1]);t[c+1]=cm(bt,k),0!==bt&&(t[bt+1]=dv(t[bt+1],c)),t[k+1]=function A2(t,i){return 131071&t|i<<17}(t[k+1],c)}else t[c+1]=cm(k,0),0!==k&&(t[k+1]=dv(t[k+1],c)),k=c;else t[c+1]=cm(L,0),0===k?k=c:t[L+1]=dv(t[L+1],c),L=c;ae&&(t[c+1]=cv(t[c+1])),_y(t,De,c,!0),_y(t,De,c,!1),function C2(t,i,o,c,h){const m=h?t.residualClasses:t.residualStyles;null!=m&&"string"==typeof i&&oo(m,i)>=0&&(o[c+1]=uv(o[c+1]))}(i,De,t,c,m),D=cm(k,L),m?i.classBindings=D:i.styleBindings=D}(h,m,i,o,D,c)}}function mv(t,i,o,c,h){let m=null;const D=o.directiveEnd;let k=o.directiveStylingLast;for(-1===k?k=o.directiveStart:k++;k<D&&(m=i[k],c=Uf(c,m.hostAttrs,h),m!==t);)k++;return null!==t&&(o.directiveStylingLast=k),c}function Uf(t,i,o){const c=o?1:2;let h=-1;if(null!==i)for(let m=0;m<i.length;m++){const D=i[m];"number"==typeof D?h=D:h===c&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Bi(t,D,!!o||i[++m]))}return void 0===t?null:t}function Ey(t,i,o){Bi(t,i,br(o))}function L2(t,i,o){const c=String(i);""!==c&&!c.includes(" ")&&Bi(t,c,o)}function ky(t,i,o,c,h,m,D,k){if(!(3&i.type))return;const L=t.data,ae=L[k+1],De=function b2(t){return!(1&~t)}(ae)?Iy(L,i,o,h,ju(ae),D):void 0;dm(De)||(dm(m)||function y2(t){return!(2&~t)}(ae)&&(m=Iy(L,null,o,h,k,D)),function Bg(t,i,o,c,h){if(i)h?t.addClass(o,c):t.removeClass(o,c);else{let m=-1===c.indexOf("-")?void 0:$p.DashCase;null==h?t.removeStyle(o,c,m):("string"==typeof h&&h.endsWith("!important")&&(h=h.slice(0,-10),m|=$p.Important),t.setStyle(o,c,h,m))}}(c,D,dc(Eo(),o),h,m))}function Iy(t,i,o,c,h,m){const D=null===i;let k;for(;h>0;){const L=t[h],ae=Array.isArray(L),De=ae?L[1]:L,He=null===De;let bt=o[h+1];bt===r&&(bt=He?ai:void 0);let Dt=He?$i(bt,c):De===c?bt:void 0;if(ae&&!dm(Dt)&&(Dt=$i(L,c)),dm(Dt)&&(k=Dt,D))return k;const Ft=t[h+1];h=D?kd(Ft):ju(Ft)}if(null!==i){let L=m?i.residualClasses:i.residualStyles;null!=L&&(k=$i(L,c))}return k}function dm(t){return void 0!==t}function Ty(t,i){return!!(t.flags&(i?8:16))}function Sy(t,i,o){gl(Bi,Zl,lh(Kt(),t,i,o),!0)}function um(t,i,o,c){const h=Kt(),m=Vi(),D=di+t,k=h[Ln],L=m.firstCreatePass?function aD(t,i,o,c,h,m){const D=i.consts,L=de(i,t,2,c,Cs(D,h));return y_(i,o,L,Cs(D,m)),null!==L.attrs&&Yg(L,L.attrs,!1),null!==L.mergedAttrs&&Yg(L,L.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,L),L}(D,m,h,i,o,c):m.data[D],ae=Fy(m,h,L,k,i,t);h[D]=ae;const De=Xa(L);return zs(L,!0),n(k,ae,L),!function jf(t){return!(32&~t.flags)}(L)&&ko()&&Hp(m,h,ae,L),0===function Mh(){return li.lFrame.elementDepthCount}()&&_o(ae,h),function Eh(){li.lFrame.elementDepthCount++}(),De&&(nn(m,h,L),At(m,L,h)),null!==c&&En(h,L),um}function pm(){let t=Ci();$s()?zd():(t=t.parent,zs(t,!1));const i=t;(function Ud(t){return li.skipHydrationRootTNode===t})(i)&&function ep(){li.skipHydrationRootTNode=null}(),function Ku(){li.lFrame.elementDepthCount--}();const o=Vi();return o.firstCreatePass&&(Nr(o,t),Ml(t)&&o.queries.elementEnd(t)),null!=i.classesWithoutHost&&function tu(t){return!!(8&t.flags)}(i)&&hv(o,i,Kt(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function tg(t){return!!(16&t.flags)}(i)&&hv(o,i,Kt(),i.stylesWithoutHost,!1),pm}function bv(t,i,o,c){return um(t,i,o,c),pm(),bv}let Fy=(t,i,o,c,h,m)=>(jo(!0),Fa(c,h,function da(){return li.lFrame.currentNamespace}()));function hm(t,i,o){const c=Kt(),h=Vi(),m=t+di,D=h.firstCreatePass?function dD(t,i,o,c,h){const m=i.consts,D=Cs(m,c),k=de(i,t,8,"ng-container",D);return null!==D&&Yg(k,D,!0),y_(i,o,k,Cs(m,h)),null!==i.queries&&i.queries.elementStart(i,k),k}(m,h,c,i,o):h.data[m];zs(D,!0);const k=Ny(h,c,D,t);return c[m]=k,ko()&&Hp(h,c,k,D),_o(k,c),Xa(D)&&(nn(h,c,D),At(h,D,c)),null!=o&&En(c,D),hm}function fm(){let t=Ci();const i=Vi();return $s()?zd():(t=t.parent,zs(t,!1)),i.firstCreatePass&&(Nr(i,t),Ml(t)&&i.queries.elementEnd(t)),fm}function xv(t,i,o){return hm(t,i,o),fm(),xv}let Ny=(t,i,o,c)=>(jo(!0),ku(i[Ln],""));function Ly(){return Kt()}function Cv(t,i,o){const c=Kt();return Ao(c,is(),i)&&Js(Vi(),cr(),c,t,i,c[Ln],o,!0),Cv}function wv(t,i,o){const c=Kt();if(Ao(c,is(),i)){const m=Vi(),D=cr();Js(m,D,c,t,i,k1(Wd(m.data),D,c),o,!0)}return wv}const Bu=void 0;var fD=["en",[["a","p"],["AM","PM"],Bu],[["AM","PM"],Bu,Bu],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Bu,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Bu,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Bu,"{1} 'at' {0}",Bu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function hD(t){const o=Math.floor(Math.abs(t)),c=t.toString().replace(/^[^.]*\.?/,"").length;return 1===o&&0===c?1:5}];let _h={};function Dv(t){const i=function gD(t){return t.toLowerCase().replace(/_/g,"-")}(t);let o=By(i);if(o)return o;const c=i.split("-")[0];if(o=By(c),o)return o;if("en"===c)return fD;throw new nt(701,!1)}function jy(t){return Dv(t)[vh.PluralCase]}function By(t){return t in _h||(_h[t]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[t]),_h[t]}var vh=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(vh||{});const yh="en-US";let Vy=yh;
1function kv(t,i,o,c){const h=Kt(),m=Vi(),D=Ci();return Tv(m,h,h[Ln],D,t,i,c),kv}function Iv(t,i){const o=Ci(),c=Kt(),h=Vi();return Tv(h,c,k1(Wd(h.data),o,c),o,t,i),Iv}function Tv(t,i,o,c,h,m,D){const k=Xa(c),ae=t.firstCreatePass&&E1(t),De=i[ar],He=M1(i);let bt=!0;if(3&c.type||D){const Yt=go(c,i),pn=D?D(Yt):Yt,_n=He.length,sn=D?or=>D(lr(or[c.index])):c.index;let ui=null;if(!D&&k&&(ui=function uM(t,i,o,c){const h=t.cleanup;if(null!=h)for(let m=0;m<h.length-1;m+=2){const D=h[m];if(D===o&&h[m+1]===c){const k=i[Ur],L=h[m+2];return k.length>L?k[L]:null}"string"==typeof D&&(m+=2)}return null}(t,i,h,c.index)),null!==ui)(ui.__ngLastListenerFn__||ui).__ngNextListenerFn__=m,ui.__ngLastListenerFn__=m,bt=!1;else{m=hA(c,i,De,m,!1);const or=o.listen(pn,h,m);He.push(m,or),ae&&ae.push(h,sn,_n,_n+1)}}else m=hA(c,i,De,m,!1);const Dt=c.outputs;let Ft;if(bt&&null!==Dt&&(Ft=Dt[h])){const Yt=Ft.length;if(Yt)for(let pn=0;pn<Yt;pn+=2){const Pr=i[Ft[pn]][Ft[pn+1]].subscribe(m),$o=He.length;He.push(m,Pr),ae&&ae.push(h,c.index,$o,-($o+1))}}}function pA(t,i,o,c){const h=W(null);try{return xs(6,i,o),!1!==o(c)}catch(m){return Ug(t,m),!1}finally{xs(7,i,o),W(h)}}function hA(t,i,o,c,h){return function m(D){if(D===Function)return c;wf(t.componentOffset>-1?mo(t.index,i):i);let L=pA(i,o,c,D),ae=m.__ngNextListenerFn__;for(;ae;)L=pA(i,o,ae,D)&&L,ae=ae.__ngNextListenerFn__;return h&&!1===L&&D.preventDefault(),L}}function fA(t=1){return function Sl(t){return(li.lFrame.contextLView=function Xc(t,i){for(;t>0;)i=i[gs],t--;return i}(t,li.lFrame.contextLView))[ar]}(t)}function pM(t,i){let o=null;const c=function ja(t){const i=t.attrs;if(null!=i){const o=i.indexOf(5);if(!(1&o))return i[o+1]}return null}(t);for(let h=0;h<i.length;h++){const m=i[h];if("*"!==m){if(null===c?La(t,m,!0):ga(c,m))return h}else o=h}return o}function gA(t){const i=Kt()[Sr][yr];if(!i.projection){const c=i.projection=function mr(t,i){const o=[];for(let c=0;c<t;c++)o.push(i);return o}(t?t.length:1,null),h=c.slice();let m=i.child;for(;null!==m;){const D=t?pM(m,t):0;null!==D&&(h[D]?h[D].projectionNext=m:c[D]=m,h[D]=m),m=m.next}}}function mA(t,i=0,o){const c=Kt(),h=Vi(),m=de(h,di+t,16,null,o||null);null===m.projection&&(m.projection=i),zd(),(!c[Gr]||el())&&32&~m.flags&&function __(t,i,o){Lg(i[Ln],0,i,o,mf(t,o,i),Og(o.parent||i[yr],o,i))}(h,c,m)}function Sv(t,i,o){return ym(t,"",i,"",o),Sv}function ym(t,i,o,c,h){const m=Kt(),D=lh(m,i,o,c);return D!==r&&Js(Vi(),cr(),m,t,D,m[Ln],h,!1),ym}function DA(t,i,o,c){!function m0(t,i,o,c){const h=Vi();if(h.firstCreatePass){const m=Ci();_0(h,new p0(i,o,c),m.index),function dw(t,i){const o=t.contentQueries||(t.contentQueries=[]);i!==(o.length?o[o.length-1]:-1)&&o.push(t.queries.length-1,i)}(h,t),!(2&~o)&&(h.staticContentQueries=!0)}return f0(h,Kt(),o)}(t,i,o,c)}function MA(t,i,o){!function g0(t,i,o){const c=Vi();return c.firstCreatePass&&(_0(c,new p0(t,i,o),-1),!(2&~i)&&(c.staticViewQueries=!0)),f0(c,Kt(),i)}(t,i,o)}function EA(t){const i=Kt(),o=Vi(),c=jn();Yc(c+1);const h=W_(o,c);if(t.dirty&&function uc(t){return!(4&~t[Sn])}(i)===!(2&~h.metadata.flags)){if(null===h.matches)t.reset([]);else{const m=v0(i,c);t.reset(m,rd),t.notifyOnChanges()}return!0}return!1}function kA(){return function Q_(t,i){return t[No].queries[i].queryList}(Kt(),jn())}function IA(t){return ca(function $d(){return li.lFrame.contextLView}(),di+t)}function TA(t,i,o){!function Jl(t){gl(Ey,S2,t,!1)}(lh(Kt(),t,i,o))}function VA(t,i=""){const o=Kt(),c=Vi(),h=t+di,m=c.firstCreatePass?de(c,h,1,i,null):c.data[h],D=GA(c,o,m,i,t);o[h]=D,ko()&&Hp(c,o,D,m),zs(m,!1)}let GA=(t,i,o,c,h)=>(jo(!0),function Qp(t,i){return t.createText(i)}(i[Ln],c));function Pv(t){return Am("",t,""),Pv}function Am(t,i,o){const c=Kt(),h=lh(c,t,i,o);return h!==r&&Vc(c,Eo(),h),Am}function Ov(t,i,o,c,h){const m=Kt(),D=function ch(t,i,o,c,h,m){const k=Nu(t,ms(),o,h);return Xo(2),k?i+he(o)+c+he(h)+m:r}(m,t,i,o,c,h);return D!==r&&Vc(m,Eo(),D),Ov}function Rv(t,i,o,c,h,m,D){const k=Kt(),L=function dh(t,i,o,c,h,m,D,k){const ae=im(t,ms(),o,h,D);return Xo(3),ae?i+he(o)+c+he(h)+m+he(D)+k:r}(k,t,i,o,c,h,m,D);return L!==r&&Vc(k,Eo(),L),Rv}function Fv(t,i,o,c,h,m,D,k,L,ae,De){const He=Kt(),bt=function ph(t,i,o,c,h,m,D,k,L,ae,De,He){const bt=ms();let Dt=Na(t,bt,o,h,D,L);return Dt=Ao(t,bt+4,De)||Dt,Xo(5),Dt?i+he(o)+c+he(h)+m+he(D)+k+he(L)+ae+he(De)+He:r}(He,t,i,o,c,h,m,D,k,L,ae,De);return bt!==r&&Vc(He,Eo(),bt),Fv}function Nv(t,i,o){b0(i)&&(i=i());const c=Kt();return Ao(c,is(),i)&&Js(Vi(),cr(),c,t,i,c[Ln],o,!1),Nv}function HA(t,i){const o=b0(t);return o&&t.set(i),o}function Lv(t,i){const o=Kt(),c=Vi(),h=Ci();return Tv(c,o,o[Ln],h,t,i),Lv}function jv(t,i,o,c,h){if(t=Se(t),Array.isArray(t))for(let m=0;m<t.length;m++)jv(t[m],i,o,c,h);else{const m=Vi(),D=Kt(),k=Ci();let L=Oo(t)?t:Se(t.provide);const ae=Ko(t),De=1048575&k.providerIndexes,He=k.directiveStart,bt=k.providerIndexes>>20;if(Oo(t)||!t.multi){const Dt=new xa(ae,h,f),Ft=Vv(L,i,h?De:De+bt,He);-1===Ft?(nu(Ol(k,D),m,L),Bv(m,t,i.length),i.push(L),k.directiveStart++,k.directiveEnd++,h&&(k.providerIndexes+=1048576),o.push(Dt),D.push(Dt)):(o[Ft]=Dt,D[Ft]=Dt)}else{const Dt=Vv(L,i,De+bt,He),Ft=Vv(L,i,De,De+bt),pn=Ft>=0&&o[Ft];if(h&&!pn||!h&&!(Dt>=0&&o[Dt])){nu(Ol(k,D),m,L);const _n=function TM(t,i,o,c,h){const m=new xa(t,o,f);return m.multi=[],m.index=i,m.componentProviders=0,XA(m,h,c&&!o),m}(h?IM:kM,o.length,h,c,ae);!h&&pn&&(o[Ft].providerFactory=_n),Bv(m,t,i.length,0),i.push(L),k.directiveStart++,k.directiveEnd++,h&&(k.providerIndexes+=1048576),o.push(_n),D.push(_n)}else Bv(m,t,Dt>-1?Dt:Ft,XA(o[h?Ft:Dt],ae,!h&&c));!h&&c&&pn&&o[Ft].componentProviders++}}}function Bv(t,i,o,c){const h=Oo(i),m=function sc(t){return!!t.useClass}(i);if(h||m){const L=(m?Se(i.useClass):i).prototype.ngOnDestroy;if(L){const ae=t.destroyHooks||(t.destroyHooks=[]);if(!h&&i.multi){const De=ae.indexOf(o);-1===De?ae.push(o,[c,L]):ae[De+1].push(c,L)}else ae.push(o,L)}}}function XA(t,i,o){return o&&t.componentProviders++,t.multi.push(i)-1}function Vv(t,i,o,c){for(let h=o;h<c;h++)if(i[h]===t)return h;return-1}function kM(t,i,o,c){return Gv(this.multi,[])}function IM(t,i,o,c){const h=this.multi;let m;if(this.providerFactory){const D=this.providerFactory.componentProviders,k=Ca(o,o[rn],this.providerFactory.index,c);m=k.slice(0,D),Gv(h,m);for(let L=D;L<k.length;L++)m.push(k[L])}else m=[],Gv(h,m);return m}function Gv(t,i){for(let o=0;o<t.length;o++)i.push((0,t[o])());return i}function qA(t,i=[]){return o=>{o.providersResolver=(c,h)=>function EM(t,i,o){const c=Vi();if(c.firstCreatePass){const h=ts(t);jv(o,c.data,c.blueprint,h,!0),jv(i,c.data,c.blueprint,h,!1)}}(c,h?h(t):t,i)}}let SM=(()=>{class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const c=Wr(0,o.type),h=c.length>0?Y_([c],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,h)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Bn({token:t,providedIn:"environment",factory:()=>new t(yi(po))})}return t})();function KA(t){Kl("NgStandalone"),t.getStandaloneInjector=i=>i.get(SM).getOrCreateStandaloneInjector(t)}function JA(t,i,o){const c=Lo()+t,h=Kt();return h[c]===r?Yl(h,c,o?i.call(o):i()):function Lf(t,i){return t[i]}(h,c)}
1function ZA(t,i,o,c){return ib(Kt(),Lo(),t,i,o,c)}function eb(t,i,o,c,h){return rb(Kt(),Lo(),t,i,o,c,h)}function tb(t,i,o,c,h,m){return ob(Kt(),Lo(),t,i,o,c,h,m)}function nb(t,i,o,c,h,m,D){return function sb(t,i,o,c,h,m,D,k,L){const ae=i+o;return Na(t,ae,h,m,D,k)?Yl(t,ae+4,L?c.call(L,h,m,D,k):c(h,m,D,k)):qf(t,ae+4)}(Kt(),Lo(),t,i,o,c,h,m,D)}function qf(t,i){const o=t[i];return o===r?void 0:o}function ib(t,i,o,c,h,m){const D=i+o;return Ao(t,D,h)?Yl(t,D+1,m?c.call(m,h):c(h)):qf(t,D+1)}function rb(t,i,o,c,h,m,D){const k=i+o;return Nu(t,k,h,m)?Yl(t,k+2,D?c.call(D,h,m):c(h,m)):qf(t,k+2)}function ob(t,i,o,c,h,m,D,k){const L=i+o;return im(t,L,h,m,D)?Yl(t,L+3,k?c.call(k,h,m,D):c(h,m,D)):qf(t,L+3)}function lb(t,i){const o=Vi();let c;const h=t+di;o.firstCreatePass?(c=function BM(t,i){if(i)for(let o=i.length-1;o>=0;o--){const c=i[o];if(t===c.name)return c}}(i,o.pipeRegistry),o.data[h]=c,c.onDestroy&&(o.destroyHooks??=[]).push(h,c.onDestroy)):c=o.data[h];const m=c.factory||(c.factory=Gi(c.type)),k=zt(f);try{const L=Io(!1),ae=m();return Io(L),function mM(t,i,o,c){o>=t.data.length&&(t.data[o]=null,t.blueprint[o]=null),i[o]=c}(o,Kt(),h,ae),ae}finally{zt(k)}}function cb(t,i,o){const c=t+di,h=Kt(),m=ca(h,c);return Kf(h,c)?ib(h,Lo(),i,m.transform,o,m):m.transform(o)}function db(t,i,o,c){const h=t+di,m=Kt(),D=ca(m,h);return Kf(m,h)?rb(m,Lo(),i,D.transform,o,c,D):D.transform(o,c)}function ub(t,i,o,c,h){const m=t+di,D=Kt(),k=ca(D,m);return Kf(D,m)?ob(D,Lo(),i,k.transform,o,c,h,k):k.transform(o,c,h)}function Kf(t,i){return t[rn].data[i].pure}function pb(t,i){return $g(t,i)}class kb{constructor(i){this.full=i;const o=i.split(".");this.major=o[0],this.minor=o[1],this.patch=o.slice(2).join(".")}}let Ib=(()=>{class t{log(o){console.log(o)}warn(o){console.warn(o)}static#e=this.\u0275fac=function(c){return new(c||t)};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const Rb=new jt(""),Fb=new jt("");let Hv,RE=(()=>{class t{constructor(o,c,h){this._ngZone=o,this.registry=c,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Hv||(function FE(t){Hv=t}(h),h.addToWindow(c)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{yo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(c=>!c.updateCb||!c.updateCb(o)||(clearTimeout(c.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,c,h){let m=-1;c&&c>0&&(m=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==m),o()},c)),this._callbacks.push({doneCb:o,timeoutId:m,updateCb:h})}whenStable(o,c,h){if(h&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(o,c,h),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,c,h){return[]}static#e=this.\u0275fac=function(c){return new(c||t)(yi(yo),yi(Nb),yi(Fb))};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac})}return t})(),Nb=(()=>{class t{constructor(){this._applications=new Map}registerApplication(o,c){this._applications.set(o,c)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,c=!0){return Hv?.findTestabilityInTree(this,o,c)??null}static#e=this.\u0275fac=function(c){return new(c||t)};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function Xv(t){return!!t&&"function"==typeof t.then}
1function Lb(t){return!!t&&"function"==typeof t.subscribe}const jb=new jt("");let qv=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,c)=>{this.resolve=o,this.reject=c}),this.appInits=Tn(jb,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const o=[];for(const h of this.appInits){const m=h();if(Xv(m))o.push(m);else if(Lb(m)){const D=new Promise((k,L)=>{m.subscribe({complete:k,error:L})});o.push(D)}}const c=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{c()}).catch(h=>{this.reject(h)}),0===o.length&&c(),this.initialized=!0}static#e=this.\u0275fac=function(c){return new(c||t)};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Kv=new jt("");function Gb(t,i){return Array.isArray(i)?i.reduce(Gb,t):{...t,...i}}let Id=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Tn(Mc),this.afterRenderEffectManager=Tn(Pf),this.externalTestViews=new Set,this.beforeRender=new Oe.B,this.afterTick=new Oe.B,this.componentTypes=[],this.components=[],this.isStable=Tn(Zp).hasPendingTasks.pipe((0,Ve.T)(o=>!o)),this._injector=Tn(po)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,c){const h=o instanceof U1;if(!this._injector.get(qv).done)throw!h&&Kr(o),new nt(405,!1);let D;D=h?o:this._injector.get(Sf).resolveComponentFactory(o),this.componentTypes.push(D.componentType);const k=function NE(t){return t.isBoundToModule}(D)?void 0:this._injector.get(Fu),ae=D.create(_s.NULL,[],c||D.selector,k),De=ae.location.nativeElement,He=ae.injector.get(Rb,null);return He?.registerApplication(De),ae.onDestroy(()=>{this.detachView(ae.hostView),wm(this.components,ae),He?.unregisterApplication(De)}),this._loadComponent(ae),ae}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new nt(101,!1);const c=W(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(h){this.internalErrorHandler(h)}finally{this.afterTick.next(),this._runningTick=!1,W(c)}}detectChangesInAttachedViews(o){let c=0;const h=this.afterRenderEffectManager;for(;;){if(c===P1)throw new nt(103,!1);if(o){const m=0===c;this.beforeRender.next(m);for(let{_lView:D,notifyErrorHandler:k}of this._views)jE(D,m,k)}if(c++,h.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:m})=>Yv(m))&&(h.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:m})=>Yv(m))))break}}attachView(o){const c=o;this._views.push(c),c.attachToAppRef(this)}detachView(o){const c=o;wm(this._views,c),c.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const c=this._injector.get(Kv,[]);[...this._bootstrapListeners,...c].forEach(h=>h(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>wm(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new nt(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(c){return new(c||t)};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wm(t,i){const o=t.indexOf(i);o>-1&&t.splice(o,1)}function jE(t,i,o){!i&&!Yv(t)||function BE(t,i,o){let c;o?(c=0,t[Sn]|=1024):c=64&t[Sn]?0:1,zg(t,i,c)}(t,o,i)}function Yv(t){return qc(t)}class VE{constructor(i,o){this.ngModuleFactory=i,this.componentFactories=o}}let GE=(()=>{class t{compileModuleSync(o){return new K_(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const c=this.compileModuleSync(o),m=Os(ei(o).declarations).reduce((D,k)=>{const L=ci(k);return L&&D.push(new Ff(L)),D},[]);return new VE(c,m)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}
1clearCacheFor(o){}getModuleId(o){}static#e=this.\u0275fac=function(c){return new(c||t)};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$E=(()=>{class t{constructor(){this.zone=Tn(yo),this.applicationRef=Tn(Id)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(c){return new(c||t)};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function QE(){const t=Tn(yo),i=Tn(Ma);return o=>t.runOutsideAngular(()=>i.handleError(o))}let HE=(()=>{class t{constructor(){this.subscription=new Ue.yU,this.initialized=!1,this.zone=Tn(yo),this.pendingTasks=Tn(Zp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{yo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{yo.assertInAngularZone(),o??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(c){return new(c||t)};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Mm=new jt("",{providedIn:"root",factory:()=>Tn(Mm,tt.Optional|tt.SkipSelf)||function XE(){return typeof $localize<"u"&&$localize.locale||yh}()}),qE=new jt("",{providedIn:"root",factory:()=>"USD"}),Jv=new jt("");let Qb=(()=>{class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,c){const h=function VC(t="zone.js",i){return"noop"===t?new q1:"zone.js"===t?new yo(i):t}(c?.ngZone,function $b(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:c?.ngZoneEventCoalescing,runCoalescing:c?.ngZoneRunCoalescing}));return h.run(()=>{const m=function Pw(t,i,o){return new q_(t,i,o)}(o.moduleType,this.injector,function zb(t){return[{provide:yo,useFactory:t},{provide:As,multi:!0,useFactory:()=>{const i=Tn($E,{optional:!0});return()=>i.initialize()}},{provide:As,multi:!0,useFactory:()=>{const i=Tn(HE);return()=>{i.initialize()}}},{provide:Mc,useFactory:QE}]}(()=>h)),D=m.injector.get(Ma,null);return h.runOutsideAngular(()=>{const k=h.onError.subscribe({next:L=>{D.handleError(L)}});m.onDestroy(()=>{wm(this._modules,m),k.unsubscribe()})}),function Vb(t,i,o){try{const c=o();return Xv(c)?c.catch(h=>{throw i.runOutsideAngular(()=>t.handleError(h)),h}):c}catch(c){throw i.runOutsideAngular(()=>t.handleError(c)),c}}(D,h,()=>{const k=m.injector.get(qv);return k.runInitializers(),k.donePromise.then(()=>(function Gy(t){"string"==typeof t&&(Vy=t.toLowerCase().replace(/_/g,"-"))}(m.injector.get(Mm,yh)||yh),this._moduleDoBootstrap(m),m))})})}bootstrapModule(o,c=[]){const h=Gb({},c);return function zE(t,i,o){const c=new K_(o);return Promise.resolve(c)}(0,0,o).then(m=>this.bootstrapModuleFactory(m,h))}_moduleDoBootstrap(o){const c=o.injector.get(Id);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(h=>c.bootstrap(h));else{if(!o.instance.ngDoBootstrap)throw new nt(-403,!1);o.instance.ngDoBootstrap(c)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new nt(404,!1);this._modules.slice().forEach(c=>c.destroy()),this._destroyListeners.forEach(c=>c());const o=this._injector.get(Jv,null);o&&(o.forEach(c=>c()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(c){return new(c||t)(yi(_s))};static#t=this.\u0275prov=Bn({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Td=null;const Wb=new jt("");function Hb(t,i,o=[]){const c=`Platform: ${i}`,h=new jt(c);return(m=[])=>{let D=Zv();if(!D||D.injector.get(Wb,!1)){const k=[...o,...m,{provide:h,useValue:!0}];t?t(k):function YE(t){if(Td&&!Td.get(Wb,!1))throw new nt(400,!1);(function Bb(){!function Ze(t){Gt=t}(()=>{throw new nt(600,!1)})})(),Td=t;const i=t.get(Qb);(function qb(t){t.get(Fp,null)?.forEach(o=>o())})(t)}(function Xb(t=[],i){return _s.create({name:i,providers:[{provide:Bs,useValue:"platform"},{provide:Jv,useValue:new Set([()=>Td=null])},...t]})}(k,c))}return function JE(t){const i=Zv();if(!i)throw new nt(401,!1);return i}()}}function Zv(){return Td?.get(Qb)??null}function ek(){return!1}let Yb=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=tk}return t})();function tk(t){return function nk(t,i,o){if(Gs(t)&&!o){const c=mo(t.index,i);return new Df(c,c)}return 47&t.type?new Df(i[Sr],i):null}(Ci(),Kt(),!(16&~t))}class tx{constructor(){}supports(i){return nm(i)}create(i){return new ak(i)}}const sk=(t,i)=>i;class ak{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||sk}forEachItem(i){let o;for(o=this._itHead;null!==o;o=o._next)i(o)}forEachOperation(i){let o=this._itHead,c=this._removalsHead,h=0,m=null;for(;o||c;){const D=!c||o&&o.currentIndex<ix(c,h,m)?o:c,k=ix(D,h,m),L=D.currentIndex;if(D===c)h--,c=c._nextRemoved;else if(o=o._next,null==D.previousIndex)h++;else{m||(m=[]);const ae=k-h,De=L-h;if(ae!=De){for(let bt=0;bt<ae;bt++){const Dt=bt<m.length?m[bt]:m[bt]=0,Ft=Dt+bt;De<=Ft&&Ft<ae&&(m[bt]=Dt+1)}m[D.previousIndex]=De-ae}}k!==L&&i(D,k,L)}}forEachPreviousItem(i){let o;for(o=this._previousItHead;null!==o;o=o._nextPrevious)i(o)}forEachAddedItem(i){let o;for(o=this._additionsHead;null!==o;o=o._nextAdded)i(o)}forEachMovedItem(i){let o;for(o=this._movesHead;null!==o;o=o._nextMoved)i(o)}forEachRemovedItem(i){let o;for(o=this._removalsHead;null!==o;o=o._nextRemoved)i(o)}forEachIdentityChange(i){let o;for(o=this._identityChangesHead;null!==o;o=o._nextIdentityChange)i(o)}diff(i){if(null==i&&(i=[]),!nm(i))throw new nt(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let h,m,D,o=this._itHead,c=!1;if(Array.isArray(i)){this.length=i.length;for(let k=0;k<this.length;k++)m=i[k],D=this._trackByFn(k,m),null!==o&&Object.is(o.trackById,D)?(c&&(o=this._verifyReinsertion(o,m,D,k)),Object.is(o.item,m)||this._addIdentityChange(o,m)):(o=this._mismatch(o,m,D,k),c=!0),o=o._next}else h=0,function Nw(t,i){if(Array.isArray(t))for(let o=0;o<t.length;o++)i(t[o]);else{const o=t[Symbol.iterator]();let c;for(;!(c=o.next()).done;)i(c.value)}}(i,k=>{D=this._trackByFn(h,k),null!==o&&Object.is(o.trackById,D)?(c&&(o=this._verifyReinsertion(o,k,D,h)),Object.is(o.item,k)||this._addIdentityChange(o,k)):(o=this._mismatch(o,k,D,h),c=!0),o=o._next,h++}),this.length=h;return this._truncate(o),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,o,c,h){let m;return null===i?m=this._itTail:(m=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._reinsertAfter(i,m,h)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(c,h))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._moveAfter(i,m,h)):i=this._addAfter(new lk(o,c),m,h),i}_verifyReinsertion(i,o,c,h){let m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);return null!==m?i=this._reinsertAfter(m,i._prev,h):i.currentIndex!=h&&
vendor: 4,426 bytes, line 1
1(i.currentIndex=h,this._addToMoves(i,h)),i}_truncate(i){for(;null!==i;){const o=i._next;this._addToRemovals(this._unlink(i)),i=o}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,o,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const h=i._prevRemoved,m=i._nextRemoved;return null===h?this._removalsHead=m:h._nextRemoved=m,null===m?this._removalsTail=h:m._prevRemoved=h,this._insertAfter(i,o,c),this._addToMoves(i,c),i}_moveAfter(i,o,c){return this._unlink(i),this._insertAfter(i,o,c),this._addToMoves(i,c),i}_addAfter(i,o,c){return this._insertAfter(i,o,c),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,o,c){const h=null===o?this._itHead:o._next;return i._next=h,i._prev=o,null===h?this._itTail=i:h._prev=i,null===o?this._itHead=i:o._next=i,null===this._linkedRecords&&(this._linkedRecords=new nx),this._linkedRecords.put(i),i.currentIndex=c,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const o=i._prev,c=i._next;return null===o?this._itHead=c:o._next=c,null===c?this._itTail=o:c._prev=o,i}_addToMoves(i,o){return i.previousIndex===o||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new nx),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,o){return i.item=o,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class lk{constructor(i,o){this.item=i,this.trackById=o,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ck{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,o){let c;for(c=this._head;null!==c;c=c._nextDup)if((null===o||o<=c.currentIndex)&&Object.is(c.trackById,i))return c;return null}remove(i){const o=i._prevDup,c=i._nextDup;return null===o?this._head=c:o._nextDup=c,null===c?this._tail=o:c._prevDup=o,null===this._head}}class nx{constructor(){this.map=new Map}put(i){const o=i.trackById;let c=this.map.get(o);c||(c=new ck,this.map.set(o,c)),c.add(i)}get(i,o){const h=this.map.get(i);return h?h.get(i,o):null}remove(i){const o=i.trackById;return this.map.get(o).remove(i)&&this.map.delete(o),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ix(t,i,o){const c=t.previousIndex;if(null===c)return c;let h=0;return o&&c<o.length&&(h=o[c]),c+i+h}class rx{constructor(){}supports(i){return i instanceof Map||J_(i)}create(){return new dk}}class dk{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(i){let o;for(o=this._mapHead;null!==o;o=o._next)i(o)}forEachPreviousItem(i){let o;for(o=this._previousMapHead;null!==o;o=o._nextPrevious)i(o)}forEachChangedItem(i){let o;for(o=this._changesHead;null!==o;o=o._nextChanged)i(o)}forEachAddedItem(i){let o;for(o=this._additionsHead;null!==o;o=o._nextAdded)i(o)}forEachRemovedItem(i){let o;for(o=this._removalsHead;null!==o;o=o._nextRemoved)i(o)}diff(i){if(i){if(!(i instanceof Map||J_(i)))throw new nt(900,!1)}else i=new Map;return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let o=this._mapHead;
vendor: 2,062 bytes, line 1
1if(this._appendAfter=null,this._forEach(i,(c,h)=>{if(o&&o.key===h)this._maybeAddToChanges(o,c),this._appendAfter=o,o=o._next;else{const m=this._getOrCreateRecordForKey(h,c);o=this._insertBeforeOrAppend(o,m)}}),o){o._prev&&(o._prev._next=null),this._removalsHead=o;for(let c=o;null!==c;c=c._nextRemoved)c===this._mapHead&&(this._mapHead=null),this._records.delete(c.key),c._nextRemoved=c._next,c.previousValue=c.currentValue,c.currentValue=null,c._prev=null,c._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,o){if(i){const c=i._prev;return o._next=i,o._prev=c,i._prev=o,c&&(c._next=o),i===this._mapHead&&(this._mapHead=o),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=o,o._prev=this._appendAfter):this._mapHead=o,this._appendAfter=o,null}_getOrCreateRecordForKey(i,o){if(this._records.has(i)){const h=this._records.get(i);this._maybeAddToChanges(h,o);const m=h._prev,D=h._next;return m&&(m._next=D),D&&(D._prev=m),h._next=null,h._prev=null,h}const c=new uk(i);return this._records.set(i,c),c.currentValue=o,this._addToAdditions(c),c}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,o){Object.is(o,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=o,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,o){i instanceof Map?i.forEach(o):Object.keys(i).forEac
1h(c=>o(i[c],c))}}class uk{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ox(){return new o1([new tx])}let o1=(()=>{class t{static#e=this.\u0275prov=Bn({token:t,providedIn:"root",factory:ox});constructor(o){this.factories=o}static create(o,c){if(null!=c){const h=c.factories.slice();o=o.concat(h)}return new t(o)}static extend(o){return{provide:t,useFactory:c=>t.create(o,c||ox()),deps:[[t,new Cr,new On]]}}find(o){const c=this.factories.find(h=>h.supports(o));if(null!=c)return c;throw new nt(901,!1)}}return t})();function sx(){return new s1([new rx])}let s1=(()=>{class t{static#e=this.\u0275prov=Bn({token:t,providedIn:"root",factory:sx});constructor(o){this.factories=o}static create(o,c){if(c){const h=c.factories.slice();o=o.concat(h)}return new t(o)}static extend(o){return{provide:t,useFactory:c=>t.create(o,c||sx()),deps:[[t,new Cr,new On]]}}find(o){const c=this.factories.find(h=>h.supports(o));if(c)return c;throw new nt(901,!1)}}return t})();const fk=Hb(null,"core",[]);let gk=(()=>{class t{constructor(o){}static#e=this.\u0275fac=function(c){return new(c||t)(yi(Id))};static#t=this.\u0275mod=yl({type:t});static#n=this.\u0275inj=vr({})}return t})();function $k(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function Wk(t){const i=W(null);try{return t()}finally{W(i)}}function Jk(t,i){const o=ci(t),c=i.elementInjector||fs();return new Ff(o).create(c,i.projectableNodes,i.hostElement,i.environmentInjector)}function Zk(t){const i=ci(t);if(!i)return null;const o=new Ff(i);return{get selector(){return o.selector},get type(){return o.componentType},get inputs(){return o.inputs},get outputs(){return o.outputs},get ngContentSelectors(){return o.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}},9417:(en,Me,R)=>{"use strict";R.d(Me,{$R:()=>zn,BC:()=>Rt,Fm:()=>tt,JD:()=>vn,MJ:()=>_i,MR:()=>Qt,Q0:()=>se,R_:()=>$i,VZ:()=>Gi,X1:()=>Ns,YN:()=>us,YS:()=>Ii,Yp:()=>ai,Zm:()=>e,cV:()=>si,cb:()=>nt,cz:()=>Pe,gE:()=>ie,j4:()=>cn,k0:()=>ot,kq:()=>B,me:()=>oe,ok:()=>Qo,qT:()=>Ie,tU:()=>Ni,v8:()=>Zi,vO:()=>Ue,vS:()=>S,wz:()=>yi,xH:()=>hr,xq:()=>Si,y7:()=>Ir,zX:()=>Cr});var p=R(4438),w=R(177),N=R(2806),v=R(7468),ee=R(6354);let l=(()=>{class me{constructor(q,Ge){this._renderer=q,this._elementRef=Ge,this.onChange=yt=>{},this.onTouched=()=>{}}setProperty(q,Ge){this._renderer.setProperty(this._elementRef.nativeElement,q,Ge)}registerOnTouched(q){this.onTouched=q}registerOnChange(q){this.onChange=q}setDisabledState(q){this.setProperty("disabled",q)}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(p.sFG),p.rXU(p.aKT))};static#t=this.\u0275dir=p.FsC({type:me})}return me})(),W=(()=>{class me extends l{static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,features:[p.Vt3]})}return me})();const B=new p.nKC(""),T={provide:B,useExisting:(0,p.Rfq)(()=>e),multi:!0};let e=(()=>{class me extends W{writeValue(q){this.setProperty("checked",q)}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Ge,yt){1&Ge&&p.bIt("change",function(ni){return yt.onChange(ni.target.checked)})("blur",function(){return yt.onTouched()})},features:[p.Jv_([T]),p.Vt3]})}return me})();const K={provide:B,useExisting:(0,p.Rfq)(()=>oe),multi:!0},pe=new p.nKC("");let oe=(()=>{class me extends l{constructor(q,Ge,yt){super(q,Ge),this._compositionMode=yt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function H(){const me=(0,w.QT)()?(0,w.QT)().getUserAgent():"";return/android (\d+)/.test(me.toLowerCase())}())}writeValue(q){this.setProperty("value",q??"")}_handleInput(q){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(q)}_compositionStart(){this._composing=!0}_compositionEnd(q){this._composing=!1,this._compositionMode&&this.onChange(q)}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(p.sFG),p.rXU(p.aKT),p.rXU(pe,8))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Ge,yt){1&Ge&&p.bIt("input",function(ni){return yt._handleInput(ni.target.value)})("blur",function(){return yt.onTouched()})("compositionstart",function(){return yt._compositionStart()})("compositionend",function(ni){return yt._compositionEnd(ni.target.value)})},features:[p.Jv_([K]),p.Vt3]})}return me})();function Ce(me){return null==me||("string"==typeof me||Array.isArray(me))&&0===me.length}function we(me){return null!=me&&"number"==typeof me.length}const Pe=new p.nKC(""),Qe=new p.nKC(""),ht=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ot{static min(xe){return gt(xe)}static max(xe){return je(xe)}static required(xe){return Ct(xe)}static requiredTrue(xe){return kt(xe)}static email(xe){return function We(me){return Ce(me.value)||ht.test(me.value)?null:{email:!0}}(xe)}static minLength(xe){return function at(me){return xe=>Ce(xe.value)||!we(xe.value)?null:xe.value.length<me?{minlength:{requiredLength:me,actualLength:xe.value.length}}:null}(xe)}static maxLength(xe){return le(xe)}static pattern(xe){return Xe(xe)}static nullValidator(xe){return null}static compose(xe){return Ne(xe)}static composeAsync(xe){return Fe(xe)}}function gt(me){return xe=>{if(Ce(xe.value)||Ce(me))return null;const q=parseFloat(xe.value);return!isNaN(q)&&q<me?{min:{min:me,actual:xe.value}}:null}}function je(me){return xe=>{if(Ce(xe.value)||Ce(me))return null;const q=parseFloat(xe.value);return!isNaN(q)&&q>me?{max:{max:me,actual:xe.value}}:null}}function Ct(me){return Ce(me.value)?{required:!0}:null}function kt(me){return!0===me.value?null:{required:!0}}function le(me){return xe=>we(xe.value)&&xe.value.length>me?{maxlength:{requiredLength:me,actualLength:xe.value.length}}:null}function Xe(me){if(!me)return Mt;let xe,q;return"string"==typeof me?(q="","^"!==me.charAt(0)&&(q+="^"),q+=me,"$"!==me.charAt(me.length-1)&&(q+="$"),xe=new RegExp(q)):(q=me.toString(),xe=me),Ge=>{if(Ce(Ge.value))return null;const yt=Ge.value;return xe.test(yt)?null:{pattern:{requiredPattern:q,actualValue:yt}}}}function Mt(me){return null}function Et(me){return null!=me}function Jt(me){return(0,p.jNT)(me)?(0,N.H)(me):me}function ct(me){let xe={};return me.forEach(q=>{xe=null!=q?{...xe,...q}:xe}),0===Object.keys(xe).length?null:xe}function Gt(me,xe){return xe.map(q=>q(me))}function Ze(me){return me.map(xe=>function Te(me){return!me.validate}(xe)?xe:q=>xe.validate(q))}function Ne(me){if(!me)return null;const xe=me.filter(Et);return 0==xe.length?null:function(q){return ct(Gt(q,xe))}}function Je(me){return null!=me?Ne(Ze(me)):null}function Fe(me){if(!me)return null;const xe=me.filter(Et);return 0==xe.length?null:function(q){const Ge=Gt(q,xe).map(Jt);return(0,v.p)(Ge).pipe((0,ee.T)(ct))}}function ze(me){return null!=me?Fe(Ze(me)):null}function ft(me,xe){return null===me?[xe]:Array.isArray(me)?[...me,xe]:[me,xe]}function Re(me){return me._rawValidators}function rt(me){return me._rawAsyncValidators}function Ot(me){return me?Array.isArray(me)?me:[me]:[]}function It(me,xe){return Array.isArray(me)?me.includes(xe):me===xe}function on(me,xe){const q=Ot(xe);return Ot(me).forEach(yt=>{It(q,yt)||q.push(yt)}),q}function ue(me,xe){return Ot(xe).filter(q=>!It(me,q))}class U{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(xe){this._rawValidators=xe||[],this._composedValidatorFn=Je(this._rawValidators)}_setAsyncValidators(xe){this._rawAsyncValidators=xe||[],this._composedAsyncValidatorFn=ze(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(xe){this._onDestroyCallbacks.push(xe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(xe=>xe()),this._onDestroyCallbacks=[]}
1reset(xe=void 0){this.control&&this.control.reset(xe)}hasError(xe,q){return!!this.control&&this.control.hasError(xe,q)}getError(xe,q){return this.control?this.control.getError(xe,q):null}}class Oe extends U{get formDirective(){return null}get path(){return null}}class Ue extends U{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $e{constructor(xe){this._cd=xe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Rt=(()=>{class me extends $e{constructor(q){super(q)}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(Ue,2))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ge,yt){2&Ge&&p.AVh("ng-untouched",yt.isUntouched)("ng-touched",yt.isTouched)("ng-pristine",yt.isPristine)("ng-dirty",yt.isDirty)("ng-valid",yt.isValid)("ng-invalid",yt.isInvalid)("ng-pending",yt.isPending)},features:[p.Vt3]})}return me})(),nt=(()=>{class me extends $e{constructor(q){super(q)}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(Oe,10))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ge,yt){2&Ge&&p.AVh("ng-untouched",yt.isUntouched)("ng-touched",yt.isTouched)("ng-pristine",yt.isPristine)("ng-dirty",yt.isDirty)("ng-valid",yt.isValid)("ng-invalid",yt.isInvalid)("ng-pending",yt.isPending)("ng-submitted",yt.isSubmitted)},features:[p.Vt3]})}return me})();const xn="VALID",hi="INVALID",Xn="PENDING",ri="DISABLED";function In(me){return(it(me)?me.validators:me)||null}function Xi(me,xe){return(it(xe)?xe.asyncValidators:me)||null}function it(me){return null!=me&&!Array.isArray(me)&&"object"==typeof me}function te(me,xe,q){const Ge=me.controls;if(!(xe?Object.keys(Ge):Ge).length)throw new p.wOt(1e3,"");if(!Ge[q])throw new p.wOt(1001,"")}function ce(me,xe,q){me._forEachChild((Ge,yt)=>{if(void 0===q[yt])throw new p.wOt(1002,"")})}class Z{constructor(xe,q){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(xe),this._assignAsyncValidators(q)}get validator(){return this._composedValidatorFn}set validator(xe){this._rawValidators=this._composedValidatorFn=xe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(xe){this._rawAsyncValidators=this._composedAsyncValidatorFn=xe}get parent(){return this._parent}get valid(){return this.status===xn}get invalid(){return this.status===hi}get pending(){return this.status==Xn}get disabled(){return this.status===ri}get enabled(){return this.status!==ri}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(xe){this._assignValidators(xe)}setAsyncValidators(xe){this._assignAsyncValidators(xe)}addValidators(xe){this.setValidators(on(xe,this._rawValidators))}addAsyncValidators(xe){this.setAsyncValidators(on(xe,this._rawAsyncValidators))}removeValidators(xe){this.setValidators(ue(xe,this._rawValidators))}removeAsyncValidators(xe){this.setAsyncValidators(ue(xe,this._rawAsyncValidators))}hasValidator(xe){return It(this._rawValidators,xe)}hasAsyncValidator(xe){return It(this._rawAsyncValidators,xe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(xe={}){this.touched=!0,this._parent&&!xe.onlySelf&&this._parent.markAsTouched(xe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(xe=>xe.markAllAsTouched())}markAsUntouched(xe={}
vendor: 4,583 bytes, line 1
1){this.touched=!1,this._pendingTouched=!1,this._forEachChild(q=>{q.markAsUntouched({onlySelf:!0})}),this._parent&&!xe.onlySelf&&this._parent._updateTouched(xe)}markAsDirty(xe={}){this.pristine=!1,this._parent&&!xe.onlySelf&&this._parent.markAsDirty(xe)}markAsPristine(xe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(q=>{q.markAsPristine({onlySelf:!0})}),this._parent&&!xe.onlySelf&&this._parent._updatePristine(xe)}markAsPending(xe={}){this.status=Xn,!1!==xe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!xe.onlySelf&&this._parent.markAsPending(xe)}disable(xe={}){const q=this._parentMarkedDirty(xe.onlySelf);this.status=ri,this.errors=null,this._forEachChild(Ge=>{Ge.disable({...xe,onlySelf:!0})}),this._updateValue(),!1!==xe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...xe,skipPristineCheck:q}),this._onDisabledChange.forEach(Ge=>Ge(!0))}enable(xe={}){const q=this._parentMarkedDirty(xe.onlySelf);this.status=xn,this._forEachChild(Ge=>{Ge.enable({...xe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:xe.emitEvent}),this._updateAncestors({...xe,skipPristineCheck:q}),this._onDisabledChange.forEach(Ge=>Ge(!1))}_updateAncestors(xe){this._parent&&!xe.onlySelf&&(this._parent.updateValueAndValidity(xe),xe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(xe){this._parent=xe}getRawValue(){return this.value}updateValueAndValidity(xe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xn||this.status===Xn)&&this._runAsyncValidator(xe.emitEvent)),!1!==xe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!xe.onlySelf&&this._parent.updateValueAndValidity(xe)}_updateTreeValidity(xe={emitEvent:!0}){this._forEachChild(q=>q._updateTreeValidity(xe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:xe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ri:xn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(xe){if(this.asyncValidator){this.status=Xn,this._hasOwnPendingAsyncValidator=!0;const q=Jt(this.asyncValidator(this));this._asyncValidationSubscription=q.subscribe(Ge=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ge,{emitEvent:xe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(xe,q={}){this.errors=xe,this._updateControlsErrors(!1!==q.emitEvent)}get(xe){let q=xe;return null==q||(Array.isArray(q)||(q=q.split(".")),0===q.length)?null:q.reduce((Ge,yt)=>Ge&&Ge._find(yt),this)}getError(xe,q){const Ge=q?this.get(q):this;return Ge&&Ge.errors?Ge.errors[xe]:null}hasError(xe,q){return!!this.getError(xe,q)}get root(){let xe=this;for(;xe._parent;)xe=xe._parent;return xe}_updateControlsErrors(xe){this.status=this._calculateStatus(),xe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(xe)}_initObservables(){this.valueChanges=new p.bkB,this.statusChanges=new p.bkB}_calculateStatus(){return this._allControlsDisabled()?ri:this.errors?hi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xn)?Xn:this._anyControlsHaveStatus(hi)?hi:xn}_anyControlsHaveStatus(xe){return this._anyControls(q=>q.status===xe)}_anyControlsDirty(){return this._anyControls(xe=>xe.dirty)}_anyControlsTouched(){return this._anyControls(xe=>xe.touched)}_updatePristine(xe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!xe.onlySelf&&this._parent._updatePristine(xe)}_updateTouched(xe={}){this.touched=this._anyControlsTouched(),this._parent&&!xe.onlySelf&&this._parent._updateTouched(xe)}_registerOnCollectionChange(xe){this._onCollectionChange=xe}_setUpdateStrategy(xe){it(xe)&&null!=xe.updateOn&&(this._updateOn=xe.updateOn)}_parentMarkedDirty(xe){return!xe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(xe){return null}_assignValidators(xe){this._rawValidators=Array.isArray(xe)?xe.slice():xe,this._composedValidatorFn=function kr(me){return Array.isArray(me)?Je(me):me||null}(this._rawValidators)}_assignAsyncValidators(xe){this._rawAsyncValidators=Array.isArray(xe)?xe.slice():xe,this._composedAsyncValidatorFn=function Se(me){return Array.isArray(me)?ze(me):me||null}(this._rawAsyncValidators)}}class ie extends Z{constructor(xe,q,Ge){super(In(q),Xi(Ge,q)),this.controls=xe,this._initOb
vendor: 5,533 bytes, line 1
1servables(),this._setUpdateStrategy(q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(xe,q){return this.controls[xe]?this.controls[xe]:(this.controls[xe]=q,q.setParent(this),q._registerOnCollectionChange(this._onCollectionChange),q)}addControl(xe,q,Ge={}){this.registerControl(xe,q),this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}removeControl(xe,q={}){this.controls[xe]&&this.controls[xe]._registerOnCollectionChange(()=>{}),delete this.controls[xe],this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}setControl(xe,q,Ge={}){this.controls[xe]&&this.controls[xe]._registerOnCollectionChange(()=>{}),delete this.controls[xe],q&&this.registerControl(xe,q),this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}contains(xe){return this.controls.hasOwnProperty(xe)&&this.controls[xe].enabled}setValue(xe,q={}){ce(this,0,xe),Object.keys(xe).forEach(Ge=>{te(this,!0,Ge),this.controls[Ge].setValue(xe[Ge],{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q)}patchValue(xe,q={}){null!=xe&&(Object.keys(xe).forEach(Ge=>{const yt=this.controls[Ge];yt&&yt.patchValue(xe[Ge],{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q))}reset(xe={},q={}){this._forEachChild((Ge,yt)=>{Ge.reset(xe?xe[yt]:null,{onlySelf:!0,emitEvent:q.emitEvent})}),this._updatePristine(q),this._updateTouched(q),this.updateValueAndValidity(q)}getRawValue(){return this._reduceChildren({},(xe,q,Ge)=>(xe[Ge]=q.getRawValue(),xe))}_syncPendingControls(){let xe=this._reduceChildren(!1,(q,Ge)=>!!Ge._syncPendingControls()||q);return xe&&this.updateValueAndValidity({onlySelf:!0}),xe}_forEachChild(xe){Object.keys(this.controls).forEach(q=>{const Ge=this.controls[q];Ge&&xe(Ge,q)})}_setUpControls(){this._forEachChild(xe=>{xe.setParent(this),xe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(xe){for(const[q,Ge]of Object.entries(this.controls))if(this.contains(q)&&xe(Ge))return!0;return!1}_reduceValue(){return this._reduceChildren({},(q,Ge,yt)=>((Ge.enabled||this.disabled)&&(q[yt]=Ge.value),q))}_reduceChildren(xe,q){let Ge=xe;return this._forEachChild((yt,Mn)=>{Ge=q(Ge,yt,Mn)}),Ge}_allControlsDisabled(){for(const xe of Object.keys(this.controls))if(this.controls[xe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(xe){return this.controls.hasOwnProperty(xe)?this.controls[xe]:null}}class fe extends ie{}const ve=new p.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ye}),ye="always";function be(me,xe){return[...xe.path,me]}function Ee(me,xe,q=ye){ln(me,xe),xe.valueAccessor.writeValue(me.value),(me.disabled||"always"===q)&&xe.valueAccessor.setDisabledState?.(me.disabled),function Ri(me,xe){xe.valueAccessor.registerOnChange(q=>{me._pendingValue=q,me._pendingChange=!0,me._pendingDirty=!0,"change"===me.updateOn&&Bn(me,xe)})}(me,xe),function _r(me,xe){const q=(Ge,yt)=>{xe.valueAccessor.writeValue(Ge),yt&&xe.viewToModelUpdate(Ge)};me.registerOnChange(q),xe._registerOnDestroy(()=>{me._unregisterOnChange(q)})}(me,xe),function Ti(me,xe){xe.valueAccessor.registerOnTouched(()=>{me._pendingTouched=!0,"blur"===me.updateOn&&me._pendingChange&&Bn(me,xe),"submit"!==me.updateOn&&me.markAsTouched()})}(me,xe),function tn(me,xe){if(xe.valueAccessor.setDisabledState){const q=Ge=>{xe.valueAccessor.setDisabledState(Ge)};me.registerOnDisabledChange(q),xe._registerOnDestroy(()=>{me._unregisterOnDisabledChange(q)})}}(me,xe)}function pt(me,xe,q=!0){const Ge=()=>{};xe.valueAccessor&&(xe.valueAccessor.registerOnChange(Ge),xe.valueAccessor.registerOnTouched(Ge)),An(me,xe),me&&(xe._invokeOnDestroyCallbacks(),me._registerOnCollectionChange(()=>{}))}function _t(me,xe){me.forEach(q=>{q.registerOnValidatorChange&&q.registerOnValidatorChange(xe)})}function ln(me,xe){const q=Re(me);null!==xe.validator?me.setValidators(ft(q,xe.validator)):"function"==typeof q&&me.setValidators([q]);const Ge=rt(me);null!==xe.asyncValidator?me.setAsyncValidators(ft(Ge,xe.asyncValidator)):"function"==typeof Ge&&me.setAsyncValidators([Ge]);const yt=()=>me.updateValueAndValidity();_t(xe._rawValidators,yt),_t(xe._rawAsyncValidators,yt)}function An(me,xe){let q=!1;if(null!==me){if(null!==xe.validator){const yt=Re(me);if(Array.isArray(yt)&&yt.length>0){const Mn=yt.filter(ni=>ni!==xe.validator);Mn.length!==yt.length&&(q=!0,me.setValidators(Mn))}}if(null!==xe.asyncValidator){const yt=rt(me);if(Array.isArray(yt)&&yt.length>0){const Mn=yt.filter(ni=>ni!==xe.asyncValidator);Mn.length!==yt.length&&(q=!0,me.setAsyncValidators(Mn))}}}const Ge=()=>{};return _t(xe._rawValidators,Ge),_t(xe._rawAsyncValidators,Ge),q}function Bn(me,xe){me._pendingDirty&&me.markAsDirty(),me.setValue(me._pendingValue,{emitModelToViewChange:!1}),xe.viewToModelUpdate(me._pendingValue),me._pendingChange=!1}function vr(me,xe){ln(me,xe)}function mt(me,xe){if(!me.hasOwnProperty("model"))return!1;const q=me.model;return!!q.isFirstChange()||!Object.is(xe,q.currentValue)}function Ut(me,xe){me._syncPendingControls(),xe.forEach(q=>{const Ge=q.control;"submit"===Ge.updateOn&&Ge._pendingChange&&(q.viewToModelUpdate(Ge._pendingValue),Ge._pendingChange=!1)})}function jt(me,xe){if(!xe)return null;let q,Ge,yt;return Array.isArray(xe),xe.forEach(Mn=>{Mn.constructor===oe?q=Mn:function vt(me){return Object.getPrototypeOf(me.constructor)===W}(Mn)?Ge=Mn:yt=Mn}),yt||Ge||q||null}const Pn={provide:Oe,useExisting:(0,p.Rfq)(()=>si)}
1,Cn=Promise.resolve();let si=(()=>{class me extends Oe{constructor(q,Ge,yt){super(),this.callSetDisabledState=yt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new p.bkB,this.form=new ie({},Je(q),ze(Ge))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(q){Cn.then(()=>{const Ge=this._findContainer(q.path);q.control=Ge.registerControl(q.name,q.control),Ee(q.control,q,this.callSetDisabledState),q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(q)})}getControl(q){return this.form.get(q.path)}removeControl(q){Cn.then(()=>{const Ge=this._findContainer(q.path);Ge&&Ge.removeControl(q.name),this._directives.delete(q)})}addFormGroup(q){Cn.then(()=>{const Ge=this._findContainer(q.path),yt=new ie({});vr(yt,q),Ge.registerControl(q.name,yt),yt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(q){Cn.then(()=>{const Ge=this._findContainer(q.path);Ge&&Ge.removeControl(q.name)})}getFormGroup(q){return this.form.get(q.path)}updateModel(q,Ge){Cn.then(()=>{this.form.get(q.path).setValue(Ge)})}setValue(q){this.control.setValue(q)}onSubmit(q){return this.submitted=!0,Ut(this.form,this._directives),this.ngSubmit.emit(q),"dialog"===q?.target?.method}onReset(){this.resetForm()}resetForm(q=void 0){this.form.reset(q),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(q){return q.pop(),q.length?this.form.get(q):this.form}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(Pe,10),p.rXU(Qe,10),p.rXU(ve,8))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ge,yt){1&Ge&&p.bIt("submit",function(ni){return yt.onSubmit(ni)})("reset",function(){return yt.onReset()})},inputs:{options:[p.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p.Jv_([Pn]),p.Vt3]})}return me})();function Yn(me,xe){const q=me.indexOf(xe);q>-1&&me.splice(q,1)}function Fi(me){return"object"==typeof me&&null!==me&&2===Object.keys(me).length&&"value"in me&&"disabled"in me}const _i=class extends Z{constructor(xe=null,q,Ge){super(In(q),Xi(Ge,q)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(xe),this._setUpdateStrategy(q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),it(q)&&(q.nonNullable||q.initialValueIsDefault)&&(this.defaultValue=Fi(xe)?xe.value:xe)}setValue(xe,q={}){this.value=this._pendingValue=xe,this._onChange.length&&!1!==q.emitModelToViewChange&&this._onChange.forEach(Ge=>Ge(this.value,!1!==q.emitViewToModelChange)),this.updateValueAndValidity(q)}patchValue(xe,q={}){this.setValue(xe,q)}reset(xe=this.defaultValue,q={}){this._applyFormState(xe),this.markAsPristine(q),this.markAsUntouched(q),this.setValue(this.value,q),this._pendingChange=!1}_updateValue(){}_anyControls(xe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(xe){this._onChange.push(xe)}_unregisterOnChange(xe){Yn(this._onChange,xe)}registerOnDisabledChange(xe){this._onDisabledChange.push(xe)}_unregisterOnDisabledChange(xe){Yn(this._onDisabledChange,xe)}_forEachChild(xe){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(xe){Fi(xe)?(this.value=this._pendingValue=xe.value,xe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=xe}};let fi=(()=>{class me extends Oe{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return be(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,features:[p.Vt3]})}return me})();const V={provide:Ue,useExisting:(0,p.Rfq)(()=>S)},he=Promise.resolve();let S=(()=>{class me extends Ue{constructor(q,Ge,yt,Mn,ni,so){super(),this._changeDetectorRef=ni,this.callSetDisabledState=so,this.control=new _i,this._registered=!1,this.name="",this.update=new p.bkB,this._parent=q,this._setValidators(Ge),this._setAsyncValidators(yt),this.valueAccessor=jt(0,Mn)}ngOnChanges(q){if(this._checkForErrors(),!this._registered||"name"in q){if(this._registered&&(this._checkName(),this.formDirective)){const Ge=q.name.previousValue;this.formDirective.removeControl({name:Ge,path:this._getPath(Ge)})}this._setUpControl()}"isDisabled"in q&&this._updateDisabled(q),mt(q,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(q){this.viewModel=q,this.update.emit(q)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ee(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(q){he.then(()=>{this.control.setValue(q,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(q){const Ge=q.isDisabled.currentValue,yt=0!==Ge&&(0,p.L39)(Ge);he.then(()=>{yt&&!this.control.disabled?this.control.disable():!yt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(q){return this._parent?be(q,this._parent):[q]}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(Oe,9),p.rXU(Pe,10),p.rXU(Qe,10),p.rXU(B,10),p.rXU(p.gRc,8),p.rXU(ve,8))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[p.Mj6.None,"disabled","isDisabled"],model:[p.Mj6.None,"ngModel","model"],options:[p.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[p.Jv_([V]),p.Vt3,p.OA$]})}return me})(),Ie=(()=>{class me{static#e=this.\u0275fac=function(Ge){return new(Ge||me)};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return me})();const C={provide:B,useExisting:(0,p.Rfq)(()=>se),multi:!0};let se=(()=>{class me extends W{writeValue(q){this.setProperty("value",q??"")}registerOnChange(q){this.onChange=Ge=>{q(""==Ge?null:parseFloat(Ge))}}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ge,yt){1&Ge&&p.bIt("input",function(ni){return yt.onChange(ni.target.value)})("blur",function(){return yt.onTouched()})},features:[p.Jv_([C]),p.Vt3]})}return me})();const G={provide:B,useExisting:(0,p.Rfq)(()=>tt),multi:!0};let re=(()=>{class me{constructor(){this._accessors=[]}add(q,Ge){this._accessors.push([q,Ge])}remove(q){for(let Ge=this._accessors.length-1;Ge>=0;--Ge)if(this._accessors[Ge][1]===q)return void this._accessors.splice(Ge,1)}select(q){this._accessors.forEach(Ge=>{this._isSameGroup(Ge,q)&&Ge[1]!==q&&Ge[1].fireUncheck(q.value)})}_isSameGroup(q,Ge){return!!q[0].control&&q[0]._parent===Ge._control._parent&&q[1].name===Ge.name}static#e=this.\u0275fac=function(Ge){return new(Ge||me)};static#t=this.\u0275prov=p.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})(),tt=(()=>{class me extends W{constructor(q,Ge,yt,Mn){super(q,Ge),this._registry=yt,this._injector=Mn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,p.WQX)(ve,{optional:!0})??ye}ngOnInit(){this._control=this._injector.get(Ue),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(q){this._state=q===this.value,this.setProperty("checked",this._state)}registerOnChange(q){this._fn=q,this.onChange=()=>{q(this.value),this._registry.select(this)}}setDisabledState(q){(this.setDisabledStateFired||q||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",q),this.setDisabledStateFired=!0}fireUncheck(q){this.writeValue(q)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(p.sFG),p.rXU(p.aKT),p.rXU(re),p.rXU(p.zZn))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Ge,yt){1&Ge&&p.bIt("change",function(){return yt.onChange()})("blur",function(){return yt.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[p.Jv_([G]),p.Vt3]})}return me})();const $t={provide:B,useExisting:(0,p.Rfq)(()=>Qt),multi:!0};let Qt=(()=>{class me extends W{writeValue(q){this.setProperty("value",parseFloat(q))}registerOnChange(q){this.onChange=Ge=>{q(""==Ge?null:parseFloat(Ge))}}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(Ge,yt){1&Ge&&p.bIt("change",function(ni){return yt.onChange(ni.target.value)})("input",function(ni){return yt.onChange(ni.target.value)})("blur",function(){return yt.onTouched()})},features:[p.Jv_([$t]),p.Vt3]})}return me})();
1const zt=new p.nKC(""),dn={provide:Oe,useExisting:(0,p.Rfq)(()=>cn)};let cn=(()=>{class me extends Oe{constructor(q,Ge,yt){super(),this.callSetDisabledState=yt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new p.bkB,this._setValidators(q),this._setAsyncValidators(Ge)}ngOnChanges(q){this._checkFormPresent(),q.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(An(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(q){const Ge=this.form.get(q.path);return Ee(Ge,q,this.callSetDisabledState),Ge.updateValueAndValidity({emitEvent:!1}),this.directives.push(q),Ge}getControl(q){return this.form.get(q.path)}removeControl(q){pt(q.control||null,q,!1),function un(me,xe){const q=me.indexOf(xe);q>-1&&me.splice(q,1)}(this.directives,q)}addFormGroup(q){this._setUpFormContainer(q)}removeFormGroup(q){this._cleanUpFormContainer(q)}getFormGroup(q){return this.form.get(q.path)}addFormArray(q){this._setUpFormContainer(q)}removeFormArray(q){this._cleanUpFormContainer(q)}getFormArray(q){return this.form.get(q.path)}updateModel(q,Ge){this.form.get(q.path).setValue(Ge)}onSubmit(q){return this.submitted=!0,Ut(this.form,this.directives),this.ngSubmit.emit(q),"dialog"===q?.target?.method}onReset(){this.resetForm()}resetForm(q=void 0){this.form.reset(q),this.submitted=!1}_updateDomValue(){this.directives.forEach(q=>{const Ge=q.control,yt=this.form.get(q.path);Ge!==yt&&(pt(Ge||null,q),(me=>me instanceof _i)(yt)&&(Ee(yt,q,this.callSetDisabledState),q.control=yt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(q){const Ge=this.form.get(q.path);vr(Ge,q),Ge.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(q){if(this.form){const Ge=this.form.get(q.path);Ge&&function dr(me,xe){return An(me,xe)}(Ge,q)&&Ge.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ln(this.form,this),this._oldForm&&An(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(Pe,10),p.rXU(Qe,10),p.rXU(ve,8))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["","formGroup",""]],hostBindings:function(Ge,yt){1&Ge&&p.bIt("submit",function(ni){return yt.onSubmit(ni)})("reset",function(){return yt.onReset()})},inputs:{form:[p.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p.Jv_([dn]),p.Vt3,p.OA$]})}return me})();const Zn={provide:Oe,useExisting:(0,p.Rfq)(()=>zn)};let zn=(()=>{class me extends fi{constructor(q,Ge,yt){super(),this.name=null,this._parent=q,this._setValidators(Ge),this._setAsyncValidators(yt)}_checkParentType(){Nn(this._parent)}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(Oe,13),p.rXU(Pe,10),p.rXU(Qe,10))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["","formGroupName",""]],inputs:{name:[p.Mj6.None,"formGroupName","name"]},features:[p.Jv_([Zn]),p.Vt3]})}return me})();const qn={provide:Oe,useExisting:(0,p.Rfq)(()=>Zi)};let Zi=(()=>{class me extends Oe{constructor(q,Ge,yt){super(),this.name=null,this._parent=q,this._setValidators(Ge),this._setAsyncValidators(yt)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return be(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Nn(this._parent)}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(Oe,13),p.rXU(Pe,10),p.rXU(Qe,10))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["","formArrayName",""]],inputs:{name:[p.Mj6.None,"formArrayName","name"]},features:[p.Jv_([qn]),p.Vt3]})}return me})();function Nn(me){return!(me instanceof zn||me instanceof cn||me instanceof Zi)}const gn={provide:Ue,useExisting:(0,p.Rfq)(()=>
1vn)};let vn=(()=>{class me extends Ue{set isDisabled(q){}static#e=this._ngModelWarningSentOnce=!1;constructor(q,Ge,yt,Mn,ni){super(),this._ngModelWarningConfig=ni,this._added=!1,this.name=null,this.update=new p.bkB,this._ngModelWarningSent=!1,this._parent=q,this._setValidators(Ge),this._setAsyncValidators(yt),this.valueAccessor=jt(0,Mn)}ngOnChanges(q){this._added||this._setUpControl(),mt(q,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(q){this.viewModel=q,this.update.emit(q)}get path(){return be(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(Oe,13),p.rXU(Pe,10),p.rXU(Qe,10),p.rXU(B,10),p.rXU(zt,8))};static#n=this.\u0275dir=p.FsC({type:me,selectors:[["","formControlName",""]],inputs:{name:[p.Mj6.None,"formControlName","name"],isDisabled:[p.Mj6.None,"disabled","isDisabled"],model:[p.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[p.Jv_([gn]),p.Vt3,p.OA$]})}return me})();const ti={provide:B,useExisting:(0,p.Rfq)(()=>yi),multi:!0};function er(me,xe){return null==me?`${xe}`:(xe&&"object"==typeof xe&&(xe="Object"),`${me}: ${xe}`.slice(0,50))}let yi=(()=>{class me extends W{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(q){this._compareWith=q}writeValue(q){this.value=q;const yt=er(this._getOptionId(q),q);this.setProperty("value",yt)}registerOnChange(q){this.onChange=Ge=>{this.value=this._getOptionValue(Ge),q(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(q){for(const Ge of this._optionMap.keys())if(this._compareWith(this._optionMap.get(Ge),q))return Ge;return null}_getOptionValue(q){const Ge=function Or(me){return me.split(":")[0]}(q);return this._optionMap.has(Ge)?this._optionMap.get(Ge):q}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Ge,yt){1&Ge&&p.bIt("change",function(ni){return yt.onChange(ni.target.value)})("blur",function(){return yt.onTouched()})},inputs:{compareWith:"compareWith"},features:[p.Jv_([ti]),p.Vt3]})}return me})(),hr=(()=>{class me{constructor(q,Ge,yt){this._element=q,this._renderer=Ge,this._select=yt,this._select&&(this.id=this._select._registerOption())}set ngValue(q){null!=this._select&&(this._select._optionMap.set(this.id,q),this._setElementValue(er(this.id,q)),this._select.writeValue(this._select.value))}set value(q){this._setElementValue(q),this._select&&this._select.writeValue(this._select.value)}_setElementValue(q){this._renderer.setProperty(this._element.nativeElement,"value",q)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(p.aKT),p.rXU(p.sFG),p.rXU(yi,9))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return me})();const Tn={provide:B,useExisting:(0,p.Rfq)(()=>fr),multi:!0};function Br(me,xe){return null==me?`${xe}`:("string"==typeof xe&&(xe=`'${xe}'`),xe&&"object"==typeof xe&&(xe="Object"),`${me}: ${xe}`.slice(0,50))}let fr=(()=>{class me extends W{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(q){this._compareWith=q}writeValue(q){let Ge;if(this.value=q,Array.isArray(q)){const yt=q.map(Mn=>this._getOptionId(Mn));Ge=(Mn,ni)=>{Mn._setSelected(yt.indexOf(ni.toString())>-1)}}else Ge=(yt,Mn)=>{yt._setSelected(!1)};this._optionMap.forEach(Ge)}registerOnChange(q){this.onChange=Ge=>{const yt=[],Mn=Ge.selectedOptions;if(void 0!==Mn){const ni=Mn;for(let so=0;so<ni.length;so++){const qr=this._getOptionValue(ni[so].value);yt.push(qr)}}else{const ni=Ge.options;for(let so=0;so<ni.length;so++){const Ls=ni[so];if(Ls.selected){const qr=this._getOptionValue(Ls.value);yt.push(qr)}}}this.value=yt,q(yt)}}_registerOption(q){const Ge=(this._idCounter++).toString();return this._optionMap.set(Ge,q),Ge}_getOptionId(q){for(const Ge of this._optionMap.keys())if(this._compareWith(this._optionMap.get(Ge)._value,q))return Ge;return null}_getOptionValue(q){const Ge=function Co(me){return me.split(":")[0]}(q);return this._optionMap.has(Ge)?this._optionMap.get(Ge)._value:q}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(Ge,yt){1&Ge&&p.bIt("change",function(ni){return yt.onChange(ni.target)})("blur",function(){return yt.onTouched()})},inputs:{compareWith:"compareWith"},features:[p.Jv_([Tn]),p.Vt3]})}return me})(),Ir=(()=>{class me{constructor(q,Ge,yt){this._element=q,this._renderer=Ge,this._select=yt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(q){null!=this._select&&(this._value=q,this._setElementValue(Br(this.id,q)),this._select.writeValue(this._select.value))}set value(q){this._select?(this._value=q,this._setElementValue(Br(this.id,q)),this._select.writeValue(this._select.value)):this._setElementValue(q)}_setElementValue(q){this._renderer.setProperty(this._element.nativeElement,"value",q)}_setSelected(q){this._renderer.setProperty(this._element.nativeElement,"selected",q)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Ge){return new(Ge||me)(p.rXU(p.aKT),p.rXU(p.sFG),p.rXU(fr,9))};static#t=this.\u0275dir=p.FsC({type:me,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return me})();function Xr(me){return"number"==typeof me?me:parseFloat(me)}let On=(()=>{class me{constructor(){this._validator=Mt}ngOnChanges(q){if(this.inputName in q){const Ge=this.normalizeInput(q[this.inputName].currentValue);this._enabled=this.enabled(Ge),this._validator=this._enabled?this.createValidator(Ge):Mt,this._onChange&&this._onChange()}}validate(q){return this._validator(q)}registerOnValidatorChange(q){this._onChange=q}enabled(q){return null!=q}static#e=this.\u0275fac=function(Ge){return new(Ge||me)};static#t=this.\u0275dir=p.FsC({type:me,features:[p.OA$]})}return me})();const gr={provide:Pe,useExisting:(0,p.Rfq)(()=>Cr),multi:!0};let Cr=(()=>{class me extends On{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=q=>Xr(q),this.createValidator=q=>je(q)}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ge,yt){2&Ge&&p.BMQ("max",yt._enabled?yt.max:null)},inputs:{max:"max"},features:[p.Jv_([gr]),p.Vt3]})}return me})();const ro={provide:Pe,useExisting:(0,p.Rfq)(()=>Gi),multi:!0};let Gi=(()=>{class me extends On{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=q=>Xr(q),this.createValidator=q=>gt(q)}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ge,yt){2&Ge&&p.BMQ("min",yt._enabled?yt.min:null)},inputs:{min:"min"},features:[p.Jv_([ro]),p.Vt3]})}return me})();const Vr={provide:Pe,useExisting:(0,p.Rfq)(()=>Ii),multi:!0},Ui={provide:Pe,useExisting:(0,p.Rfq)(()=>Si),multi:!0};let Ii=(()=>{class me extends On{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=p.L39,this.createValidator=q=>Ct}enabled(q){return q}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ge,yt){2&Ge&&p.BMQ("required",yt._enabled?"":null)},inputs:{required:"required"},features:[p.Jv_([Vr]),p.Vt3]})}return me})(),Si=(()=>{class me extends Ii{constructor(){super(...arguments),this.createValidator=q=>kt}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ge,yt){2&Ge&&p.BMQ("required",yt._enabled?"":null)},features:[p.Jv_([Ui]),p.Vt3]})}return me})();const uo={provide:Pe,useExisting:(0,p.Rfq)(()=>Ni),multi:!0};let Ni=(()=>{class me extends On{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=q=>function xr(me){return"number"==typeof me?me:parseInt(me,10)}(q),this.createValidator=q=>le(q)}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Ge,yt){2&Ge&&p.BMQ("maxlength",yt._enabled?yt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[p.Jv_([uo]),p.Vt3]})}return me})();const Bi={provide:Pe,useExisting:(0,p.Rfq)(()=>$i),multi:!0};let $i=(()=>{class me extends On{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=q=>q,this.createValidator=q=>Xe(q)}static#e=this.\u0275fac=(()=>{let q;return function(yt){return(q||(q=p.xGo(me)))(yt||me)}})();static#t=this.\u0275dir=p.FsC({type:me,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Ge,yt){2&Ge&&p.BMQ("pattern",yt._enabled?yt.pattern:null)},inputs:{pattern:"pattern"},features:[p.Jv_([Bi]),p.Vt3]})}return me})(),Qr=(()=>{class me{static#e=this.\u0275fac=function(Ge){return new(Ge||me)};static#t=this.\u0275mod=p.$C({type:me});static#n=this.\u0275inj=p.G2t({})}return me})();class ai extends Z{constructor(xe,q,Ge){super(In(q),Xi(Ge,q)),this.controls=xe,this._initOb
1servables(),this._setUpdateStrategy(q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(xe){return this.controls[this._adjustIndex(xe)]}push(xe,q={}){this.controls.push(xe),this._registerControl(xe),this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}insert(xe,q,Ge={}){this.controls.splice(xe,0,q),this._registerControl(q),this.updateValueAndValidity({emitEvent:Ge.emitEvent})}removeAt(xe,q={}){let Ge=this._adjustIndex(xe);Ge<0&&(Ge=0),this.controls[Ge]&&this.controls[Ge]._registerOnCollectionChange(()=>{}),this.controls.splice(Ge,1),this.updateValueAndValidity({emitEvent:q.emitEvent})}setControl(xe,q,Ge={}){let yt=this._adjustIndex(xe);yt<0&&(yt=0),this.controls[yt]&&this.controls[yt]._registerOnCollectionChange(()=>{}),this.controls.splice(yt,1),q&&(this.controls.splice(yt,0,q),this._registerControl(q)),this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(xe,q={}){ce(this,0,xe),xe.forEach((Ge,yt)=>{te(this,!1,yt),this.at(yt).setValue(Ge,{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q)}patchValue(xe,q={}){null!=xe&&(xe.forEach((Ge,yt)=>{this.at(yt)&&this.at(yt).patchValue(Ge,{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q))}reset(xe=[],q={}){this._forEachChild((Ge,yt)=>{Ge.reset(xe[yt],{onlySelf:!0,emitEvent:q.emitEvent})}),this._updatePristine(q),this._updateTouched(q),this.updateValueAndValidity(q)}getRawValue(){return this.controls.map(xe=>xe.getRawValue())}clear(xe={}){this.controls.length<1||(this._forEachChild(q=>q._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:xe.emitEvent}))}_adjustIndex(xe){return xe<0?xe+this.length:xe}_syncPendingControls(){let xe=this.controls.reduce((q,Ge)=>!!Ge._syncPendingControls()||q,!1);return xe&&this.updateValueAndValidity({onlySelf:!0}),xe}_forEachChild(xe){this.controls.forEach((q,Ge)=>{xe(q,Ge)})}_updateValue(){this.value=this.controls.filter(xe=>xe.enabled||this.disabled).map(xe=>xe.value)}_anyControls(xe){return this.controls.some(q=>q.enabled&&xe(q))}_setUpControls(){this._forEachChild(xe=>this._registerControl(xe))}_allControlsDisabled(){for(const xe of this.controls)if(xe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(xe){xe.setParent(this),xe._registerOnCollectionChange(this._onCollectionChange)}_find(xe){return this.at(xe)??null}}function wo(me){return!!me&&(void 0!==me.asyncValidators||void 0!==me.validators||void 0!==me.updateOn)}let Qo=(()=>{class me{constructor(){this.useNonNullable=!1}get nonNullable(){const q=new me;return q.useNonNullable=!0,q}group(q,Ge=null){const yt=this._reduceControls(q);let Mn={};return wo(Ge)?Mn=Ge:null!==Ge&&(Mn.validators=Ge.validator,Mn.asyncValidators=Ge.asyncValidator),new ie(yt,Mn)}record(q,Ge=null){const yt=this._reduceControls(q);return new fe(yt,Ge)}control(q,Ge,yt){let Mn={};return this.useNonNullable?(wo(Ge)?Mn=Ge:(Mn.validators=Ge,Mn.asyncValidators=yt),new _i(q,{...Mn,nonNullable:!0})):new _i(q,Ge,yt)}array(q,Ge,yt){const Mn=q.map(ni=>this._createControl(ni));return new ai(Mn,Ge,yt)}_reduceControls(q){const Ge={};return Object.keys(q).forEach(yt=>{Ge[yt]=this._createControl(q[yt])}),Ge}_createControl(q){return q instanceof _i||q instanceof Z?q:Array.isArray(q)?this.control(q[0],q.length>1?q[1]:null,q.length>2?q[2]:null):this.control(q)}static#e=this.\u0275fac=function(Ge){return new(Ge||me)};static#t=this.\u0275prov=p.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})(),us=(()=>{class me{static withConfig(q){return{ngModule:me,providers:[{provide:ve,useValue:q.callSetDisabledState??ye}]}}static#e=this.\u0275fac=function(Ge){return new(Ge||me)};static#t=this.\u0275mod=p.$C({type:me});static#n=this.\u0275inj=p.G2t({imports:[Qr]})}return me})(),Ns=(()=>{class me{static withConfig(q){return{ngModule:me,providers:[{provide:zt,useValue:q.warnOnNgModelWithFormControl??"always"},{provide:ve,useValue:q.callSetDisabledState??ye}]}}static#e=this.\u0275fac=function(Ge){return new(Ge||me)};static#t=this.\u0275mod=p.$C({type:me});static#n=this.\u0275inj=p.G2t({imports:[Qr]})}return me})()},345:(en,Me,R)=>{"use strict";R.d(Me,{B7:()=>We,Bb:()=>$e,hE:()=>Rt,sG:()=>ue,up:()=>Oi});var p=R(4438),w=R(177);class N extends w.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class v extends N{static makeCurrent(){(0,w.ZD)(new v)}
1onAndCancel(it,te,ce){return it.addEventListener(te,ce),()=>{it.removeEventListener(te,ce)}}dispatchEvent(it,te){it.dispatchEvent(te)}remove(it){it.parentNode&&it.parentNode.removeChild(it)}createElement(it,te){return(te=te||this.getDefaultDocument()).createElement(it)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(it){return it.nodeType===Node.ELEMENT_NODE}isShadowRoot(it){return it instanceof DocumentFragment}getGlobalEventTarget(it,te){return"window"===te?window:"document"===te?it:"body"===te?it.body:null}getBaseHref(it){const te=function l(){return ee=ee||document.querySelector("base"),ee?ee.getAttribute("href"):null}();return null==te?null:function W(Se){return new URL(Se,document.baseURI).pathname}(te)}resetBaseElement(){ee=null}getUserAgent(){return window.navigator.userAgent}getCookie(it){return(0,w._b)(document.cookie,it)}}let ee=null,T=(()=>{class Se{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(ce){return new(ce||Se)};static#t=this.\u0275prov=p.jDH({token:Se,factory:Se.\u0275fac})}return Se})();const e=new p.nKC("");let K=(()=>{class Se{constructor(te,ce){this._zone=ce,this._eventNameToPlugin=new Map,te.forEach(Z=>{Z.manager=this}),this._plugins=te.slice().reverse()}addEventListener(te,ce,Z){return this._findPluginFor(ce).addEventListener(te,ce,Z)}getZone(){return this._zone}_findPluginFor(te){let ce=this._eventNameToPlugin.get(te);if(ce)return ce;if(ce=this._plugins.find(ie=>ie.supports(te)),!ce)throw new p.wOt(5101,!1);return this._eventNameToPlugin.set(te,ce),ce}static#e=this.\u0275fac=function(ce){return new(ce||Se)(p.KVO(e),p.KVO(p.SKi))};static#t=this.\u0275prov=p.jDH({token:Se,factory:Se.\u0275fac})}return Se})();class H{constructor(it){this._doc=it}}const pe="ng-app-id";let oe=(()=>{class Se{constructor(te,ce,Z,ie={}){this.doc=te,this.appId=ce,this.nonce=Z,this.platformId=ie,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,w.Vy)(ie),this.resetHostNodes()}addStyles(te){for(const ce of te)1===this.changeUsageCount(ce,1)&&this.onStyleAdded(ce)}removeStyles(te){for(const ce of te)this.changeUsageCount(ce,-1)<=0&&this.onStyleRemoved(ce)}ngOnDestroy(){const te=this.styleNodesInDOM;te&&(te.forEach(ce=>ce.remove()),te.clear());for(const ce of this.getAllStyles())this.onStyleRemoved(ce);this.resetHostNodes()}addHost(te){this.hostNodes.add(te);for(const ce of this.getAllStyles())this.addStyleToHost(te,ce)}removeHost(te){this.hostNodes.delete(te)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(te){for(const ce of this.hostNodes)this.addStyleToHost(ce,te)}onStyleRemoved(te){const ce=this.styleRef;ce.get(te)?.elements?.forEach(Z=>Z.remove()),ce.delete(te)}collectServerRenderedStyles(){const te=this.doc.head?.querySelectorAll(`style[${pe}="${this.appId}"]`);if(te?.length){const ce=new Map;return te.forEach(Z=>{null!=Z.textContent&&ce.set(Z.textContent,Z)}),ce}return null}changeUsageCount(te,ce){const Z=this.styleRef;if(Z.has(te)){const ie=Z.get(te);return ie.usage+=ce,ie.usage}return Z.set(te,{usage:ce,elements:[]}),ce}getStyleElement(te,ce){const Z=this.styleNodesInDOM,ie=Z?.get(ce);if(ie?.parentNode===te)return Z.delete(ce),ie.removeAttribute(pe),ie;{const Ae=this.doc.createElement("style");return this.nonce&&Ae.setAttribute("nonce",this.nonce),Ae.textContent=ce,this.platformIsServer&&Ae.setAttribute(pe,this.appId),te.appendChild(Ae),Ae}}addStyleToHost(te,ce){const Z=this.getStyleElement(te,ce),ie=this.styleRef,Ae=ie.get(ce)?.elements;Ae?Ae.push(Z):ie.set(ce,{elements:[Z],usage:1})}resetHostNodes(){const te=this.hostNodes;te.clear(),te.add(this.doc.head)}static#e=this.\u0275fac=function(ce){return new(ce||Se)(p.KVO(w.qQ),p.KVO(p.sZ2),p.KVO(p.BIS,8),p.KVO(p.Agw))};static#t=this.\u0275prov=p.jDH({token:Se,factory:Se.\u0275fac})}return Se})();const Ce={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g,gt=new p.nKC("",{providedIn:"root",factory:()=>!0});function kt(Se,it){return it.map(te=>te.replace(we,Se))}let We=(()=>
1{class Se{constructor(te,ce,Z,ie,Ae,Y,ne,fe=null){this.eventManager=te,this.sharedStylesHost=ce,this.appId=Z,this.removeStylesOnCompDestroy=ie,this.doc=Ae,this.platformId=Y,this.ngZone=ne,this.nonce=fe,this.rendererByCompId=new Map,this.platformIsServer=(0,w.Vy)(Y),this.defaultRenderer=new at(te,Ae,ne,this.platformIsServer)}createRenderer(te,ce){if(!te||!ce)return this.defaultRenderer;this.platformIsServer&&ce.encapsulation===p.gXe.ShadowDom&&(ce={...ce,encapsulation:p.gXe.Emulated});const Z=this.getOrCreateRenderer(te,ce);return Z instanceof ct?Z.applyToHost(te):Z instanceof Jt&&Z.applyStyles(),Z}getOrCreateRenderer(te,ce){const Z=this.rendererByCompId;let ie=Z.get(ce.id);if(!ie){const Ae=this.doc,Y=this.ngZone,ne=this.eventManager,fe=this.sharedStylesHost,Ke=this.removeStylesOnCompDestroy,ve=this.platformIsServer;switch(ce.encapsulation){case p.gXe.Emulated:ie=new ct(ne,fe,ce,this.appId,Ke,Ae,Y,ve);break;case p.gXe.ShadowDom:return new Et(ne,fe,te,ce,Ae,Y,this.nonce,ve);default:ie=new Jt(ne,fe,ce,Ke,Ae,Y,ve)}Z.set(ce.id,ie)}return ie}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(ce){return new(ce||Se)(p.KVO(K),p.KVO(oe),p.KVO(p.sZ2),p.KVO(gt),p.KVO(w.qQ),p.KVO(p.Agw),p.KVO(p.SKi),p.KVO(p.BIS))};static#t=this.\u0275prov=p.jDH({token:Se,factory:Se.\u0275fac})}return Se})();class at{constructor(it,te,ce,Z){this.eventManager=it,this.doc=te,this.ngZone=ce,this.platformIsServer=Z,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(it,te){return te?this.doc.createElementNS(Ce[te]||te,it):this.doc.createElement(it)}createComment(it){return this.doc.createComment(it)}createText(it){return this.doc.createTextNode(it)}appendChild(it,te){(Mt(it)?it.content:it).appendChild(te)}insertBefore(it,te,ce){it&&(Mt(it)?it.content:it).insertBefore(te,ce)}removeChild(it,te){it&&it.removeChild(te)}selectRootElement(it,te){let ce="string"==typeof it?this.doc.querySelector(it):it;if(!ce)throw new p.wOt(-5104,!1);return te||(ce.textContent=""),ce}parentNode(it){return it.parentNode}nextSibling(it){return it.nextSibling}setAttribute(it,te,ce,Z){if(Z){te=Z+":"+te;const ie=Ce[Z];ie?it.setAttributeNS(ie,te,ce):it.setAttribute(te,ce)}else it.setAttribute(te,ce)}removeAttribute(it,te,ce){if(ce){const Z=Ce[ce];Z?it.removeAttributeNS(Z,te):it.removeAttribute(`${ce}:${te}`)}else it.removeAttribute(te)}addClass(it,te){it.classList.add(te)}removeClass(it,te){it.classList.remove(te)}setStyle(it,te,ce,Z){Z&(p.czy.DashCase|p.czy.Important)?it.style.setProperty(te,ce,Z&p.czy.Important?"important":""):it.style[te]=ce}removeStyle(it,te,ce){ce&p.czy.DashCase?it.style.removeProperty(te):it.style[te]=""}setProperty(it,te,ce){null!=it&&(it[te]=ce)}setValue(it,te){it.nodeValue=te}listen(it,te,ce){if("string"==typeof it&&!(it=(0,w.QT)().getGlobalEventTarget(this.doc,it)))throw new Error(`Unsupported event target ${it} for event ${te}`);return this.eventManager.addEventListener(it,te,this.decoratePreventDefault(ce))}decoratePreventDefault(it){return te=>{if("__ngUnwrap__"===te)return it;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>it(te)):it(te))&&te.preventDefault()}}}function Mt(Se){return"TEMPLATE"===Se.tagName&&void 0!==Se.content}class Et extends at{constructor(it,te,ce,Z,ie,Ae,Y,ne){super(it,ie,Ae,ne),this.sharedStylesHost=te,this.hostEl=ce,this.shadowRoot=ce.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const fe=kt(Z.id,Z.styles);for(const Ke of fe){const ve=document.createElement("style");Y&&ve.setAttribute("nonce",Y),ve.textContent=Ke,this.shadowRoot.appendChild(ve)}}nodeOrShadowRoot(it){return it===this.hostEl?this.shadowRoot:it}appendChild(it,te){return super.appendChild(this.nodeOrShadowRoot(it),te)}insertBefore(it,te,ce){return super.insertBefore(this.nodeOrShadowRoot(it),te,ce)}removeChild(it,te){return super.removeChild(this.nodeOrShadowRoot(it),te)}parentNode(it){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(it)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}
1class Jt extends at{constructor(it,te,ce,Z,ie,Ae,Y,ne){super(it,ie,Ae,Y),this.sharedStylesHost=te,this.removeStylesOnCompDestroy=Z,this.styles=ne?kt(ne,ce.styles):ce.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ct extends Jt{constructor(it,te,ce,Z,ie,Ae,Y,ne){const fe=Z+"-"+ce.id;super(it,te,ce,ie,Ae,Y,ne,fe),this.contentAttr=function je(Se){return"_ngcontent-%COMP%".replace(we,Se)}(fe),this.hostAttr=function Ct(Se){return"_nghost-%COMP%".replace(we,Se)}(fe)}applyToHost(it){this.applyStyles(),this.setAttribute(it,this.hostAttr,"")}createElement(it,te){const ce=super.createElement(it,te);return super.setAttribute(ce,this.contentAttr,""),ce}}let Gt=(()=>{class Se extends H{constructor(te){super(te)}supports(te){return!0}addEventListener(te,ce,Z){return te.addEventListener(ce,Z,!1),()=>this.removeEventListener(te,ce,Z)}removeEventListener(te,ce,Z){return te.removeEventListener(ce,Z)}static#e=this.\u0275fac=function(ce){return new(ce||Se)(p.KVO(w.qQ))};static#t=this.\u0275prov=p.jDH({token:Se,factory:Se.\u0275fac})}return Se})();const Te=["alt","control","meta","shift"],Ze={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ne={alt:Se=>Se.altKey,control:Se=>Se.ctrlKey,meta:Se=>Se.metaKey,shift:Se=>Se.shiftKey};let Je=(()=>{class Se extends H{constructor(te){super(te)}supports(te){return null!=Se.parseEventName(te)}addEventListener(te,ce,Z){const ie=Se.parseEventName(ce),Ae=Se.eventCallback(ie.fullKey,Z,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.QT)().onAndCancel(te,ie.domEventName,Ae))}static parseEventName(te){const ce=te.toLowerCase().split("."),Z=ce.shift();if(0===ce.length||"keydown"!==Z&&"keyup"!==Z)return null;const ie=Se._normalizeKey(ce.pop());let Ae="",Y=ce.indexOf("code");if(Y>-1&&(ce.splice(Y,1),Ae="code."),Te.forEach(fe=>{const Ke=ce.indexOf(fe);Ke>-1&&(ce.splice(Ke,1),Ae+=fe+".")}),Ae+=ie,0!=ce.length||0===ie.length)return null;const ne={};return ne.domEventName=Z,ne.fullKey=Ae,ne}static matchEventFullKeyCode(te,ce){let Z=Ze[te.key]||te.key,ie="";return ce.indexOf("code.")>-1&&(Z=te.code,ie="code."),!(null==Z||!Z)&&(Z=Z.toLowerCase()," "===Z?Z="space":"."===Z&&(Z="dot"),Te.forEach(Ae=>{Ae!==Z&&(0,Ne[Ae])(te)&&(ie+=Ae+".")}),ie+=Z,ie===ce)}static eventCallback(te,ce,Z){return ie=>{Se.matchEventFullKeyCode(ie,te)&&Z.runGuarded(()=>ce(ie))}}static _normalizeKey(te){return"esc"===te?"escape":te}static#e=this.\u0275fac=function(ce){return new(ce||Se)(p.KVO(w.qQ))};static#t=this.\u0275prov=p.jDH({token:Se,factory:Se.\u0275fac})}return Se})();const ue=(0,p.oH4)(p.fpN,"browser",[{provide:p.Agw,useValue:w.AJ},{provide:p.PLl,useValue:function rt(){v.makeCurrent()},multi:!0},{provide:w.qQ,useFactory:function It(){return(0,p.TL$)(document),document},deps:[]}]),U=new p.nKC(""),Oe=[{provide:p.e01,useClass:class B{addToWindow(it){p.JZv.getAngularTestability=(ce,Z=!0)=>{const ie=it.findTestabilityInTree(ce,Z);if(null==ie)throw new p.wOt(5103,!1);return ie},p.JZv.getAllAngularTestabilities=()=>it.getAllTestabilities(),p.JZv.getAllAngularRootElements=()=>it.getAllRootElements(),p.JZv.frameworkStabilizers||(p.JZv.frameworkStabilizers=[]),p.JZv.frameworkStabilizers.push(ce=>{const Z=p.JZv.getAllAngularTestabilities();let ie=Z.length;const Ae=function(){ie--,0==ie&&ce()};Z.forEach(Y=>{Y.whenStable(Ae)})})}findTestabilityInTree(it,te,ce){return null==te?null:it.getTestability(te)??(ce?(0,w.QT)().isShadowRoot(te)?this.findTestabilityInTree(it,te.host,!0):this.findTestabilityInTree(it,te.parentElement,!0):null)}},deps:[]},{provide:p.WHO,useClass:p.NYb,deps:[p.SKi,p.giA,p.e01]},{provide:p.NYb,useClass:p.NYb,deps:[p.SKi,p.giA,p.e01]}],Ue=[{provide:p.H8p,useValue:"root"},{provide:p.zcH,useFactory:function Ot(){return new p.zcH},deps:[]},{provide:e,useClass:Gt,multi:!0,deps:[w.qQ,p.SKi,p.Agw]},{provide:e,useClass:Je,multi:!0,deps:[w.qQ]},We,oe,K,{provide:p._9s,useExisting:We},{provide:w.N0,useClass:T,deps:[]},[]];let $e=(()=>{class Se{constructor(te){}static withServerTransition(te){return{ngModule:Se,providers:[{provide:p.sZ2,useValue:te.appId}]}}static#e=this.\u0275fac=function(ce){return new(ce||Se)(p.KVO(U,12))};static#t=this.\u0275mod=p.$C({type:Se});static#n=this.\u0275inj=p.G2t({providers:[...Ue,...Oe],imports:[w.MD,p.Hbi]})}return Se})(),Rt=(()=>{class Se{constructor(te){this._doc=te}getTitle(){return this._doc.title}setTitle(te){this._doc.title=te||""}static#e=this.\u0275fac=function(ce){return new(ce||Se)(p.KVO(w.qQ))};static#t=this.\u0275prov=p.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})(),Oi=(()=>{class Se{static#e=this.\u0275fac=function(ce){return new(ce||Se)};static#t=this.\u0275prov=p.jDH({token:Se,factory:function(ce){let Z=null;return Z=ce?new(ce||Se):p.KVO(hn),Z},providedIn:"root"})}return Se})(),hn=(()=>{class Se extends Oi{constructor(te){super(),this._doc=te}sanitize(te,ce){if(null==ce)return null;switch(te){case p.WPN.NONE:return ce;case p.WPN.HTML:return(0,p.ZF7)(ce,"HTML")?(0,p.rcV)(ce):(0,p.h9k)(this._doc,String(ce)).toString();case p.WPN.STYLE:return(0,p.ZF7)(ce,"Style")?(0,p.rcV)(ce):ce;case p.WPN.SCRIPT:if((0,p.ZF7)(ce,"Script"))return(0,p.rcV)(ce);throw new p.wOt(5200,!1);case p.WPN.URL:return(0,p.ZF7)(ce,"URL")?(0,p.rcV)(ce):(0,p.$MX)(String(ce));case p.WPN.RESOURCE_URL:if((0,p.ZF7)(ce,"ResourceURL"))return(0,p.rcV)(ce);throw new p.wOt(5201,!1);default:throw new p.wOt(5202,!1)}}bypassSecurityTrustHtml(te){return(0,p.Kcf)(te)}bypassSecurityTrustStyle(te){return(0,p.cWb)(te)}bypassSecurityTrustScript(te){return(0,p.UyX)(te)}
1bypassSecurityTrustUrl(te){return(0,p.osQ)(te)}bypassSecurityTrustResourceUrl(te){return(0,p.e5t)(te)}static#e=this.\u0275fac=function(ce){return new(ce||Se)(p.KVO(w.qQ))};static#t=this.\u0275prov=p.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})()},1188:(en,Me,R)=>{"use strict";R.d(Me,{nX:()=>zn,_d:()=>Ie,j5:()=>_i,wF:()=>si,L6:()=>Ji,Z:()=>Cn,Ix:()=>Jn,Wk:()=>bi,wQ:()=>rn,iI:()=>ao,n3:()=>yi});var p=R(4438),w=R(4402),N=R(2806),v=R(7673),ee=R(4412),l=R(4572),W=R(9350),B=R(8793),T=R(9030),e=R(1203),K=R(8810),H=R(983),pe=R(17),oe=R(1413),Ce=R(8359),we=R(177),Pe=R(6354),Qe=R(5558),ht=R(6697),ot=R(9172),gt=R(5964),je=R(1397),Ct=R(1594),kt=R(274),We=R(8141),at=R(9437),le=R(2816),Xe=R(9901),Mt=R(9974),Et=R(4360);function Jt(P){return P<=0?()=>H.w:(0,Mt.N)((z,F)=>{let $=[];z.subscribe((0,Et._)(F,_e=>{$.push(_e),P<$.length&&$.shift()},()=>{for(const _e of $)F.next(_e);F.complete()},void 0,()=>{$=null}))})}var ct=R(3774),Gt=R(3669),Ze=R(3703),Ne=R(980),Je=R(9898),Fe=R(6977),ze=R(6365),ft=R(345);const Re="primary",rt=Symbol("RouteTitle");class Ot{constructor(z){this.params=z||{}}has(z){return Object.prototype.hasOwnProperty.call(this.params,z)}get(z){if(this.has(z)){const F=this.params[z];return Array.isArray(F)?F[0]:F}return null}getAll(z){if(this.has(z)){const F=this.params[z];return Array.isArray(F)?F:[F]}return[]}get keys(){return Object.keys(this.params)}}function It(P){return new Ot(P)}function on(P,z,F){const $=F.path.split("/");if($.length>P.length||"full"===F.pathMatch&&(z.hasChildren()||$.length<P.length))return null;const _e={};for(let Be=0;Be<$.length;Be++){const dt=$[Be],Vt=P[Be];if(dt.startsWith(":"))_e[dt.substring(1)]=Vt;else if(dt!==Vt.path)return null}return{consumed:P.slice(0,$.length),posParams:_e}}function U(P,z){const F=P?Oe(P):void 0,$=z?Oe(z):void 0;if(!F||!$||F.length!=$.length)return!1;let _e;for(let Be=0;Be<F.length;Be++)if(_e=F[Be],!Ue(P[_e],z[_e]))return!1;return!0}function Oe(P){return[...Object.keys(P),...Object.getOwnPropertySymbols(P)]}function Ue(P,z){if(Array.isArray(P)&&Array.isArray(z)){if(P.length!==z.length)return!1;const F=[...P].sort(),$=[...z].sort();return F.every((_e,Be)=>$[Be]===_e)}return P===z}function $e(P){return P.length>0?P[P.length-1]:null}function Ve(P){return(0,w.A)(P)?P:(0,p.jNT)(P)?(0,N.H)(Promise.resolve(P)):(0,v.of)(P)}const lt={exact:function St(P,z,F){if(!Qn(P.segments,z.segments)||!kn(P.segments,z.segments,F)||P.numberOfChildren!==z.numberOfChildren)return!1;for(const $ in z.children)if(!P.children[$]||!St(P.children[$],z.children[$],F))return!1;return!0},subset:Pt},Rt={exact:function xt(P,z){return U(P,z)},subset:function Ht(P,z){return Object.keys(z).length<=Object.keys(P).length&&Object.keys(z).every(F=>Ue(P[F],z[F]))},ignored:()=>!0};function nt(P,z,F){return lt[F.paths](P.root,z.root,F.matrixParams)&&Rt[F.queryParams](P.queryParams,z.queryParams)&&!("exact"===F.fragment&&P.fragment!==z.fragment)}function Pt(P,z,F){return fn(P,z,z.segments,F)}function fn(P,z,F,$){if(P.segments.length>F.length){const _e=P.segments.slice(0,F.length);return!(!Qn(_e,F)||z.hasChildren()||!kn(_e,F,$))}if(P.segments.length===F.length){if(!Qn(P.segments,F)||!kn(P.segments,F,$))return!1;for(const _e in z.children)if(!P.children[_e]||!Pt(P.children[_e],z.children[_e],$))return!1;return!0}{const _e=F.slice(0,P.segments.length),Be=F.slice(P.segments.length);return!!(Qn(P.segments,_e)&&kn(P.segments,_e,$)&&P.children[Re])&&fn(P.children[Re],z,Be,$)}}function kn(P,z,F){return z.every(($,_e)=>Rt[F](P[_e].parameters,$.parameters))}class an{constructor(z=new qt([],{}),F={},$=null){this.root=z,this.queryParams=F,this.fragment=$}get queryParamMap(){return this._queryParamMap??=It(this.queryParams),this._queryParamMap}toString(){return hn.serialize(this)}}class qt{constructor(z,F){this.segments=z,this.children=F,this.parent=null,Object.values(F).forEach($=>$.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mi(this)}}class wi{constructor(z,F){this.path=z,this.parameters=F}get parameterMap(){return this._parameterMap??=It(this.parameters),this._parameterMap}toString(){return Xi(this)}}function Qn(P,z){return P.length===z.length&&P.every((F,$)=>F.path===z[$].path)}let Wn=(()=>{class P{static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:()=>new Oi,providedIn:"root"})}return P})();class Oi{parse(z){const F=new Ke(z);return new an(F.parseRootSegment(),F.parseQueryParams(),F.parseFragment())}serialize(z){const F=`/${Fn(z.root,!0)}`,$=function it(P){const z=Object.entries(P).map(([F,$])=>Array.isArray($)?$.map(_e=>`${hi(F)}=${hi(_e)}`).join("&"):`${hi(F)}=${hi($)}`).filter(F=>F);return z.length?`?${z.join("&")}`:""}(z.queryParams);return`${F}${$}${"string"==typeof z.fragment?`#${function Xn(P){return encodeURI(P)}(z.fragment)}`:""}`}}const hn=new Oi;function Mi(P){return P.segments.map(z=>Xi(z)).join("/")}function Fn(P,z){if(!P.hasChildren())return Mi(P);
1if(z){const F=P.children[Re]?Fn(P.children[Re],!1):"",$=[];return Object.entries(P.children).forEach(([_e,Be])=>{_e!==Re&&$.push(`${_e}:${Fn(Be,!1)}`)}),$.length>0?`${F}(${$.join("//")})`:F}{const F=function Un(P,z){let F=[];return Object.entries(P.children).forEach(([$,_e])=>{$===Re&&(F=F.concat(z(_e,$)))}),Object.entries(P.children).forEach(([$,_e])=>{$!==Re&&(F=F.concat(z(_e,$)))}),F}(P,($,_e)=>_e===Re?[Fn(P.children[Re],!1)]:[`${_e}:${Fn($,!1)}`]);return 1===Object.keys(P.children).length&&null!=P.children[Re]?`${Mi(P)}/${F[0]}`:`${Mi(P)}/(${F.join("//")})`}}function xn(P){return encodeURIComponent(P).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hi(P){return xn(P).replace(/%3B/gi,";")}function ri(P){return xn(P).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function In(P){return decodeURIComponent(P)}function kr(P){return In(P.replace(/\+/g,"%20"))}function Xi(P){return`${ri(P.path)}${function Se(P){return Object.entries(P).map(([z,F])=>`;${ri(z)}=${ri(F)}`).join("")}(P.parameters)}`}const te=/^[^\/()?;#]+/;function ce(P){const z=P.match(te);return z?z[0]:""}const Z=/^[^\/()?;=#]+/,Ae=/^[^=?&#]+/,ne=/^[^&#]+/;class Ke{constructor(z){this.url=z,this.remaining=z}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}parseQueryParams(){const z={};if(this.consumeOptional("?"))do{this.parseQueryParam(z)}while(this.consumeOptional("&"));return z}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const z=[];for(this.peekStartsWith("(")||z.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),z.push(this.parseSegment());let F={};this.peekStartsWith("/(")&&(this.capture("/"),F=this.parseParens(!0));let $={};return this.peekStartsWith("(")&&($=this.parseParens(!1)),(z.length>0||Object.keys(F).length>0)&&($[Re]=new qt(z,F)),$}parseSegment(){const z=ce(this.remaining);if(""===z&&this.peekStartsWith(";"))throw new p.wOt(4009,!1);return this.capture(z),new wi(In(z),this.parseMatrixParams())}parseMatrixParams(){const z={};for(;this.consumeOptional(";");)this.parseParam(z);return z}parseParam(z){const F=function ie(P){const z=P.match(Z);return z?z[0]:""}(this.remaining);if(!F)return;this.capture(F);let $="";if(this.consumeOptional("=")){const _e=ce(this.remaining);_e&&($=_e,this.capture($))}z[In(F)]=In($)}parseQueryParam(z){const F=function Y(P){const z=P.match(Ae);return z?z[0]:""}(this.remaining);if(!F)return;this.capture(F);let $="";if(this.consumeOptional("=")){const dt=function fe(P){const z=P.match(ne);return z?z[0]:""}(this.remaining);dt&&($=dt,this.capture($))}const _e=kr(F),Be=kr($);if(z.hasOwnProperty(_e)){let dt=z[_e];Array.isArray(dt)||(dt=[dt],z[_e]=dt),dt.push(Be)}else z[_e]=Be}parseParens(z){const F={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const $=ce(this.remaining),_e=this.remaining[$.length];if("/"!==_e&&")"!==_e&&";"!==_e)throw new p.wOt(4010,!1);let Be;$.indexOf(":")>-1?(Be=$.slice(0,$.indexOf(":")),this.capture(Be),this.capture(":")):z&&(Be=Re);const dt=this.parseChildren();F[Be]=1===Object.keys(dt).length?dt[Re]:new qt([],dt),this.consumeOptional("//")}return F}peekStartsWith(z){return this.remaining.startsWith(z)}consumeOptional(z){return!!this.peekStartsWith(z)&&(this.remaining=this.remaining.substring(z.length),!0)}capture(z){if(!this.consumeOptional(z))throw new p.wOt(4011,!1)}}function ve(P){return P.segments.length>0?new qt([],{[Re]:P}):P}function ye(P){const z={};for(const[$,_e]of Object.entries(P.children)){const Be=ye(_e);if($===Re&&0===Be.segments.length&&Be.hasChildren())for(const[dt,Vt]of Object.entries(Be.children))z[dt]=Vt;else(Be.segments.length>0||Be.hasChildren())&&(z[$]=Be)}return function be(P){if(1===P.numberOfChildren&&P.children[Re]){const z=P.children[Re];return new qt(P.segments.concat(z.segments),z.children)}return P}(new qt(P.segments,z))}function Ee(P){return P instanceof an}function _t(P){let z;const _e=ve(function F(Be){const dt={};for(const Nt of Be.children){const bn=F(Nt);dt[Nt.outlet]=bn}const Vt=new qt(Be.url,dt);return Be===P&&(z=Vt),Vt}(P.root));return z??_e}function tn(P,z,F,$){let _e=P;for(;_e.parent;)_e=_e.parent;if(0===z.length)return Ri(_e,_e,_e,F,$);const Be=function _r(P){if("string"==typeof P[0]&&1===P.length&&"/"===P[0])return new Bn(!0,0,P);let z=0,F=!1;const $=P.reduce((_e,Be,dt)=>{if("object"==typeof Be&&null!=Be){if(Be.outlets){const Vt={};
1return Object.entries(Be.outlets).forEach(([Nt,bn])=>{Vt[Nt]="string"==typeof bn?bn.split("/"):bn}),[..._e,{outlets:Vt}]}if(Be.segmentPath)return[..._e,Be.segmentPath]}return"string"!=typeof Be?[..._e,Be]:0===dt?(Be.split("/").forEach((Vt,Nt)=>{0==Nt&&"."===Vt||(0==Nt&&""===Vt?F=!0:".."===Vt?z++:""!=Vt&&_e.push(Vt))}),_e):[..._e,Be]},[]);return new Bn(F,z,$)}(z);if(Be.toRoot())return Ri(_e,_e,new qt([],{}),F,$);const dt=function dr(P,z,F){if(P.isAbsolute)return new vr(z,!0,0);if(!F)return new vr(z,!1,NaN);if(null===F.parent)return new vr(F,!0,0);const $=ln(P.commands[0])?0:1;return function $r(P,z,F){let $=P,_e=z,Be=F;for(;Be>_e;){if(Be-=_e,$=$.parent,!$)throw new p.wOt(4005,!1);_e=$.segments.length}return new vr($,!1,_e-Be)}(F,F.segments.length-1+$,P.numberOfDoubleDots)}(Be,_e,P),Vt=dt.processChildren?ur(dt.segmentGroup,dt.index,Be.commands):jr(dt.segmentGroup,dt.index,Be.commands);return Ri(_e,dt.segmentGroup,Vt,F,$)}function ln(P){return"object"==typeof P&&null!=P&&!P.outlets&&!P.segmentPath}function An(P){return"object"==typeof P&&null!=P&&P.outlets}function Ri(P,z,F,$,_e){let dt,Be={};$&&Object.entries($).forEach(([Nt,bn])=>{Be[Nt]=Array.isArray(bn)?bn.map(ki=>`${ki}`):`${bn}`}),dt=P===z?F:Ti(P,z,F);const Vt=ve(ye(dt));return new an(Vt,Be,_e)}function Ti(P,z,F){const $={};return Object.entries(P.children).forEach(([_e,Be])=>{$[_e]=Be===z?F:Ti(Be,z,F)}),new qt(P.segments,$)}class Bn{constructor(z,F,$){if(this.isAbsolute=z,this.numberOfDoubleDots=F,this.commands=$,z&&$.length>0&&ln($[0]))throw new p.wOt(4003,!1);const _e=$.find(An);if(_e&&_e!==$e($))throw new p.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vr{constructor(z,F,$){this.segmentGroup=z,this.processChildren=F,this.index=$}}function jr(P,z,F){if(P??=new qt([],{}),0===P.segments.length&&P.hasChildren())return ur(P,z,F);const $=function qe(P,z,F){let $=0,_e=z;const Be={match:!1,pathIndex:0,commandIndex:0};for(;_e<P.segments.length;){if($>=F.length)return Be;const dt=P.segments[_e],Vt=F[$];if(An(Vt))break;const Nt=`${Vt}`,bn=$<F.length-1?F[$+1]:null;if(_e>0&&void 0===Nt)break;if(Nt&&bn&&"object"==typeof bn&&void 0===bn.outlets){if(!jt(Nt,bn,dt))return Be;$+=2}else{if(!jt(Nt,{},dt))return Be;$++}_e++}return{match:!0,pathIndex:_e,commandIndex:$}}(P,z,F),_e=F.slice($.commandIndex);if($.match&&$.pathIndex<P.segments.length){const Be=new qt(P.segments.slice(0,$.pathIndex),{});return Be.children[Re]=new qt(P.segments.slice($.pathIndex),P.children),ur(Be,0,_e)}return $.match&&0===_e.length?new qt(P.segments,{}):$.match&&!P.hasChildren()?mt(P,z,F):$.match?ur(P,0,_e):mt(P,z,F)}function ur(P,z,F){if(0===F.length)return new qt(P.segments,{});{const $=function tr(P){return An(P[0])?P[0].outlets:{[Re]:P}}(F),_e={};if(Object.keys($).some(Be=>Be!==Re)&&P.children[Re]&&1===P.numberOfChildren&&0===P.children[Re].segments.length){const Be=ur(P.children[Re],z,F);return new qt(P.segments,Be.children)}return Object.entries($).forEach(([Be,dt])=>{"string"==typeof dt&&(dt=[dt]),null!==dt&&(_e[Be]=jr(P.children[Be],z,dt))}),Object.entries(P.children).forEach(([Be,dt])=>{void 0===$[Be]&&(_e[Be]=dt)}),new qt(P.segments,_e)}}function mt(P,z,F){const $=P.segments.slice(0,z);let _e=0;for(;_e<F.length;){const Be=F[_e];if(An(Be)){const Nt=vt(Be.outlets);return new qt($,Nt)}if(0===_e&&ln(F[0])){$.push(new wi(P.segments[z].path,Ut(F[0]))),_e++;continue}const dt=An(Be)?Be.outlets[Re]:`${Be}`,Vt=_e<F.length-1?F[_e+1]:null;dt&&Vt&&ln(Vt)?($.push(new wi(dt,Ut(Vt))),_e+=2):($.push(new wi(dt,{})),_e++)}return new qt($,{})}function vt(P){const z={};return Object.entries(P).forEach(([F,$])=>{"string"==typeof $&&($=[$]),null!==$&&(z[F]=mt(new qt([],{}),0,$))}),z}function Ut(P){const z={};return Object.entries(P).forEach(([F,$])=>z[F]=`${$}`),z}function jt(P,z,F){return P==F.path&&U(z,F.parameters)}const un="imperative";var Xt=function(P){return P[P.NavigationStart=0]="NavigationStart",P[P.NavigationEnd=1]="NavigationEnd",P[P.NavigationCancel=2]="NavigationCancel",P[P.NavigationError=3]="NavigationError",P[P.RoutesRecognized=4]="RoutesRecognized",P[P.ResolveStart=5]="ResolveStart",P[P.ResolveEnd=6]="ResolveEnd",P[P.GuardsCheckStart=7]="GuardsCheckStart",P[P.GuardsCheckEnd=8]="GuardsCheckEnd",P[P.RouteConfigLoadStart=9]="RouteConfigLoadStart",P[P.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",P[P.ChildActivationStart=11]="ChildActivationStart",P[P.ChildActivationEnd=12]="ChildActivationEnd",P[P.ActivationStart=13]="ActivationStart",P[P.ActivationEnd=14]="ActivationEnd",P[P.Scroll=15]="Scroll",P[P.NavigationSkipped=16]="NavigationSkipped",P}(Xt||{});class Pn{constructor(z,F){this.id=z,this.url=F}}class Cn extends Pn{constructor(z,F,$="imperative",_e=null){super(z,F),this.type=Xt.NavigationStart,this.navigationTrigger=$,this.restoredState=_e}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class si extends Pn{constructor(z,F,$){super(z,F),this.urlAfterRedirects=$,this.type=Xt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Yn=function(P){return P[P.Redirect=0]="Redirect",P[P.SupersededByNewNavigation=1]="SupersededByNewNavigation",P[P.NoDataFromRe
1solver=2]="NoDataFromResolver",P[P.GuardRejected=3]="GuardRejected",P}(Yn||{}),Fi=function(P){return P[P.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",P[P.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",P}(Fi||{});class _i extends Pn{constructor(z,F,$,_e){super(z,F),this.reason=$,this.code=_e,this.type=Xt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class nr extends Pn{constructor(z,F,$,_e){super(z,F),this.reason=$,this.code=_e,this.type=Xt.NavigationSkipped}}class Ji extends Pn{constructor(z,F,$,_e){super(z,F),this.error=$,this.target=_e,this.type=Xt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class fi extends Pn{constructor(z,F,$,_e){super(z,F),this.urlAfterRedirects=$,this.state=_e,this.type=Xt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gi extends Pn{constructor(z,F,$,_e){super(z,F),this.urlAfterRedirects=$,this.state=_e,this.type=Xt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pr extends Pn{constructor(z,F,$,_e,Be){super(z,F),this.urlAfterRedirects=$,this.state=_e,this.shouldActivate=Be,this.type=Xt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class io extends Pn{constructor(z,F,$,_e){super(z,F),this.urlAfterRedirects=$,this.state=_e,this.type=Xt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr extends Pn{constructor(z,F,$,_e){super(z,F),this.urlAfterRedirects=$,this.state=_e,this.type=Xt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class A{constructor(z){this.route=z,this.type=Xt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class X{constructor(z){this.route=z,this.type=Xt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class V{constructor(z){this.snapshot=z,this.type=Xt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class he{constructor(z){this.snapshot=z,this.type=Xt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S{constructor(z){this.snapshot=z,this.type=Xt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ie{constructor(z){this.snapshot=z,this.type=Xt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class C{constructor(z,F,$){this.routerEvent=z,this.position=F,this.anchor=$,this.type=Xt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class se{}class G{constructor(z){this.url=z}}class re{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new tt,this.attachRef=null}}let tt=(()=>{class P{constructor(){this.contexts=new Map}onChildOutletCreated(F,$){const _e=this.getOrCreateContext(F);_e.outlet=$,this.contexts.set(F,_e)}onChildOutletDestroyed(F){const $=this.getContext(F);$&&($.outlet=null,$.attachRef=null)}onOutletDeactivated(){const F=this.contexts;return this.contexts=new Map,F}onOutletReAttached(F){this.contexts=F}getOrCreateContext(F){let $=this.getContext(F);return $||($=new re,this.contexts.set(F,$)),$}getContext(F){return this.contexts.get(F)||null}static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();class $t{constructor(z){this._root=z}get root(){return this._root.value}
1parent(z){const F=this.pathFromRoot(z);return F.length>1?F[F.length-2]:null}children(z){const F=Qt(z,this._root);return F?F.children.map($=>$.value):[]}firstChild(z){const F=Qt(z,this._root);return F&&F.children.length>0?F.children[0].value:null}siblings(z){const F=zt(z,this._root);return F.length<2?[]:F[F.length-2].children.map(_e=>_e.value).filter(_e=>_e!==z)}pathFromRoot(z){return zt(z,this._root).map(F=>F.value)}}function Qt(P,z){if(P===z.value)return z;for(const F of z.children){const $=Qt(P,F);if($)return $}return null}function zt(P,z){if(P===z.value)return[z];for(const F of z.children){const $=zt(P,F);if($.length)return $.unshift(z),$}return[]}class Lt{constructor(z,F){this.value=z,this.children=F}toString(){return`TreeNode(${this.value})`}}function mn(P){const z={};return P&&P.children.forEach(F=>z[F.value.outlet]=F),z}class dn extends $t{constructor(z,F){super(z),this.snapshot=F,gn(this,z)}toString(){return this.snapshot.toString()}}function cn(P){const z=function Zn(P){const Be=new Zi([],{},{},"",{},Re,P,null,{});return new Nn("",new Lt(Be,[]))}(P),F=new ee.t([new wi("",{})]),$=new ee.t({}),_e=new ee.t({}),Be=new ee.t({}),dt=new ee.t(""),Vt=new zn(F,$,Be,dt,_e,Re,P,z.root);return Vt.snapshot=z.root,new dn(new Lt(Vt,[]),z)}class zn{constructor(z,F,$,_e,Be,dt,Vt,Nt){this.urlSubject=z,this.paramsSubject=F,this.queryParamsSubject=$,this.fragmentSubject=_e,this.dataSubject=Be,this.outlet=dt,this.component=Vt,this._futureSnapshot=Nt,this.title=this.dataSubject?.pipe((0,Pe.T)(bn=>bn[rt]))??(0,v.of)(void 0),this.url=z,this.params=F,this.queryParams=$,this.fragment=_e,this.data=Be}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,Pe.T)(z=>It(z))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,Pe.T)(z=>It(z))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qn(P,z,F="emptyOnly"){let $;const{routeConfig:_e}=P;return $=null===z||"always"!==F&&""!==_e?.path&&(z.component||z.routeConfig?.loadComponent)?{params:{...P.params},data:{...P.data},resolve:{...P.data,...P._resolvedData??{}}}:{params:{...z.params,...P.params},data:{...z.data,...P.data},resolve:{...P.data,...z.data,..._e?.data,...P._resolvedData}},_e&&Or(_e)&&($.resolve[rt]=_e.title),$}class Zi{get title(){return this.data?.[rt]}constructor(z,F,$,_e,Be,dt,Vt,Nt,bn){this.url=z,this.params=F,this.queryParams=$,this.fragment=_e,this.data=Be,this.outlet=dt,this.component=Vt,this.routeConfig=Nt,this._resolve=bn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=It(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=It(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map($=>$.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Nn extends $t{constructor(z,F){super(F),this.url=z,gn(this,F)}toString(){return vn(this._root)}}function gn(P,z){z.value._routerState=P,z.children.forEach(F=>gn(P,F))}function vn(P){const z=P.children.length>0?` { ${P.children.map(vn).join(", ")} } `:"";return`${P.value}${z}`}function ti(P){if(P.snapshot){const z=P.snapshot,F=P._futureSnapshot;P.snapshot=F,U(z.queryParams,F.queryParams)||P.queryParamsSubject.next(F.queryParams),z.fragment!==F.fragment&&P.fragmentSubject.next(F.fragment),U(z.params,F.params)||P.paramsSubject.next(F.params),function ue(P,z){if(P.length!==z.length)return!1;for(let F=0;F<P.length;++F)if(!U(P[F],z[F]))return!1;return!0}(z.url,F.url)||P.urlSubject.next(F.url),U(z.data,F.data)||P.dataSubject.next(F.data)}else P.snapshot=P._futureSnapshot,P.dataSubject.next(P._futureSnapshot.data)}function er(P,z){const F=U(P.params,z.params)&&function $n(P,z){return Qn(P,z)&&P.every((F,$)=>U(F.parameters,z[$].parameters))}(P.url,z.url);return F&&!(!P.parent!=!z.parent)&&(!P.parent||er(P.parent,z.parent))}function Or(P){return"string"==typeof P.title||null===P.title}let yi=(()=>{class P{constructor(){this.activated=null,this._activatedRoute=null,this.name=Re,this.activateEvents=new p.bkB,this.deactivateEvents=new p.bkB,this.attachEvents=new p.bkB,this.detachEvents=new p.bkB,this.parentContexts=(0,p.WQX)(tt),this.location=(0,p.WQX)(p.c1b),this.changeDetector=(0,p.WQX)(p.gRc),this.environmentInjector=(0,p.WQX)(p.uvJ),this.inputBinder=(0,p.WQX)(Tn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(F){if(F.name){const{firstChange:$,previousValue:_e}=F.name;if($)return;this.isTrackedInParentContexts(_e)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(_e)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(F){return this.parentContexts.getContext(F)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const F=this.parentContexts.getContext(this.name);F?.route&&(F.attachRef?this.attach(F.attachRef,F.route):this.activateWith(F.route,F.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new p.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new p.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new p.wOt(4012,!1);this.location.detach();const F=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(F.instance),F}attach(F,$){this.activated=F,this._activatedRoute=$,this.location.insert(F.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(F.instance)}deactivate(){if(this.activated){const F=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(F)}}activateWith(F,$){if(this.isActivated)throw new p.wOt(4013,!1);this._activatedRoute=F;const _e=this.location,dt=F.snapshot.component,Vt=this.parentContexts.getOrCreateContext(this.name).children,Nt=ne
1w hr(F,Vt,_e.injector);this.activated=_e.createComponent(dt,{index:_e.length,injector:Nt,environmentInjector:$??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275dir=p.FsC({type:P,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[p.OA$]})}return P})();class hr{constructor(z,F,$){this.route=z,this.childContexts=F,this.parent=$,this.__ngOutletInjector=!0}get(z,F){return z===zn?this.route:z===tt?this.childContexts:this.parent.get(z,F)}}const Tn=new p.nKC("");let Br=(()=>{class P{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(F){this.unsubscribeFromRouteData(F),this.subscribeToRouteData(F)}unsubscribeFromRouteData(F){this.outletDataSubscriptions.get(F)?.unsubscribe(),this.outletDataSubscriptions.delete(F)}subscribeToRouteData(F){const{activatedRoute:$}=F,_e=(0,l.z)([$.queryParams,$.params,$.data]).pipe((0,Qe.n)(([Be,dt,Vt],Nt)=>(Vt={...Be,...dt,...Vt},0===Nt?(0,v.of)(Vt):Promise.resolve(Vt)))).subscribe(Be=>{if(!F.isActivated||!F.activatedComponentRef||F.activatedRoute!==$||null===$.component)return void this.unsubscribeFromRouteData(F);const dt=(0,p.HJs)($.component);if(dt)for(const{templateName:Vt}of dt.inputs)F.activatedComponentRef.setInput(Vt,Be[Vt]);else this.unsubscribeFromRouteData(F)});this.outletDataSubscriptions.set(F,_e)}static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac})}return P})();function Vn(P,z,F){if(F&&P.shouldReuseRoute(z.value,F.value.snapshot)){const $=F.value;$._futureSnapshot=z.value;const _e=function fr(P,z,F){return z.children.map($=>{for(const _e of F.children)if(P.shouldReuseRoute($.value,_e.value.snapshot))return Vn(P,$,_e);return Vn(P,$)})}(P,z,F);return new Lt($,_e)}{if(P.shouldAttach(z.value)){const Be=P.retrieve(z.value);if(null!==Be){const dt=Be.route;return dt.value._futureSnapshot=z.value,dt.children=z.children.map(Vt=>Vn(P,Vt)),dt}}const $=function Ir(P){return new zn(new ee.t(P.url),new ee.t(P.params),new ee.t(P.queryParams),new ee.t(P.fragment),new ee.t(P.data),P.outlet,P.component,P)}(z.value),_e=z.children.map(Be=>Vn(P,Be));return new Lt($,_e)}}const xr="ngNavigationCancelingError";function Xr(P,z){const{redirectTo:F,navigationBehaviorOptions:$}=Ee(z)?{redirectTo:z,navigationBehaviorOptions:void 0}:z,_e=On(!1,Yn.Redirect);return _e.url=F,_e.navigationBehaviorOptions=$,_e}function On(P,z){const F=new Error(`NavigationCancelingError: ${P||""}`);return F[xr]=!0,F.cancellationCode=z,F}function Cr(P){return!!P&&P[xr]}let ro=(()=>{class P{static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275cmp=p.VBU({type:P,selectors:[["ng-component"]],standalone:!0,features:[p.aNF],decls:1,vars:0,template:function($,_e){1&$&&p.nrm(0,"router-outlet")},dependencies:[yi],encapsulation:2})}return P})();function uo(P){const z=P.children&&P.children.map(uo),F=z?{...P,children:z}:{...P};return!F.component&&!F.loadComponent&&(z||F.loadChildren)&&F.outlet&&F.outlet!==Re&&(F.component=ro),F}function Ni(P){return P.outlet||Re}function $i(P){if(!P)return null;if(P.routeConfig?._injector)return P.routeConfig._injector;for(let z=P.parent;z;z=z.parent){const F=z.routeConfig;if(F?._loadedInjector)return F._loadedInjector;if(F?._injector)return F._injector}return null}class cs{constructor(z,F,$,_e,Be){this.routeReuseStrategy=z,this.futureState=F,this.currState=$,this.forwardEvent=_e,this.inputBindingEnabled=Be}activate(z){const F=this.futureState._root,$=this.currState?this.currState._root:null;this.deactivateChildRoutes(F,$,z),ti(this.futureState.root),this.activateChildRoutes(F,$,z)}deactivateChildRoutes(z,F,$){const _e=mn(F);z.children.forEach(Be=>{const dt=Be.value.outlet;this.deactivateRoutes(Be,_e[dt],$),delete _e[dt]}),Object.values(_e).forEach(Be=>{this.deactivateRouteAndItsChildren(Be,$)})}deactivateRoutes(z,F,$){const _e=z.value,Be=F?F.value:null;if(_e===Be)if(_e.component){const dt=$.getContext(_e.outlet);dt&&this.deactivateChildRoutes(z,F,dt.children)}else this.deactivateChildRoutes(z,F,$);else Be&&this.deactivateRouteAndItsChildren(F,$)}deactivateRouteAndItsChildren(z,F){z.value.component&&this.routeReuseStrategy.shouldDetach(z.value.snapshot)?this.detachAndStoreRouteSubtree(z,F):this.deactivateRouteAndOutlet(z,F)}detachAndStoreRouteSubtree(z,F){const $=F.getContext(z.value.outlet),_e=$&&z.value.component?$.children:F,Be=mn(z);for(const dt of Object.values(Be))this.deactivateRouteAndItsChildren(dt,_e);if($&&$.outlet){const dt=$.outlet.detach(),Vt=$.children.onOutletDeactivated();this.routeReuseStrategy.store(z.value.snapshot,{componentRef:dt,route:z,contexts:Vt})}}deactivateRouteAndOutlet(z,F){const $=F.getContext(z.value.outlet),_e=$&&z.value.component?$.children:F,Be=mn(z);for(const dt of Object.values(Be))this.deactivateRouteAndItsChildren(dt,_e);$&&($.outlet&&($.outlet.deactivate(),$.children.onOutletDeactivated()),$.attachRef=null,$.route=null)}activateChildRoutes(z,F,$){const _e=mn(F);
1z.children.forEach(Be=>{this.activateRoutes(Be,_e[Be.value.outlet],$),this.forwardEvent(new Ie(Be.value.snapshot))}),z.children.length&&this.forwardEvent(new he(z.value.snapshot))}activateRoutes(z,F,$){const _e=z.value,Be=F?F.value:null;if(ti(_e),_e===Be)if(_e.component){const dt=$.getOrCreateContext(_e.outlet);this.activateChildRoutes(z,F,dt.children)}else this.activateChildRoutes(z,F,$);else if(_e.component){const dt=$.getOrCreateContext(_e.outlet);if(this.routeReuseStrategy.shouldAttach(_e.snapshot)){const Vt=this.routeReuseStrategy.retrieve(_e.snapshot);this.routeReuseStrategy.store(_e.snapshot,null),dt.children.onOutletReAttached(Vt.contexts),dt.attachRef=Vt.componentRef,dt.route=Vt.route.value,dt.outlet&&dt.outlet.attach(Vt.componentRef,Vt.route.value),ti(Vt.route.value),this.activateChildRoutes(z,null,dt.children)}else{const Vt=$i(_e.snapshot);dt.attachRef=null,dt.route=_e,dt.injector=Vt,dt.outlet&&dt.outlet.activateWith(_e,dt.injector),this.activateChildRoutes(z,null,dt.children)}}else this.activateChildRoutes(z,null,$)}}class Qr{constructor(z){this.path=z,this.route=this.path[this.path.length-1]}}class ai{constructor(z,F){this.component=z,this.route=F}}function As(P,z,F){const $=P._root;return Qo($,z?z._root:null,F,[$.value])}function wo(P,z){const F=Symbol(),$=z.get(P,F);return $===F?"function"!=typeof P||(0,p.LfX)(P)?z.get(P):P:$}function Qo(P,z,F,$,_e={canDeactivateChecks:[],canActivateChecks:[]}){const Be=mn(z);return P.children.forEach(dt=>{(function ta(P,z,F,$,_e={canDeactivateChecks:[],canActivateChecks:[]}){const Be=P.value,dt=z?z.value:null,Vt=F?F.getContext(P.value.outlet):null;if(dt&&Be.routeConfig===dt.routeConfig){const Nt=function ds(P,z,F){if("function"==typeof F)return F(P,z);switch(F){case"pathParamsChange":return!Qn(P.url,z.url);case"pathParamsOrQueryParamsChange":return!Qn(P.url,z.url)||!U(P.queryParams,z.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!er(P,z)||!U(P.queryParams,z.queryParams);default:return!er(P,z)}}(dt,Be,Be.routeConfig.runGuardsAndResolvers);Nt?_e.canActivateChecks.push(new Qr($)):(Be.data=dt.data,Be._resolvedData=dt._resolvedData),Qo(P,z,Be.component?Vt?Vt.children:null:F,$,_e),Nt&&Vt&&Vt.outlet&&Vt.outlet.isActivated&&_e.canDeactivateChecks.push(new ai(Vt.outlet.component,dt))}else dt&&Do(z,Vt,_e),_e.canActivateChecks.push(new Qr($)),Qo(P,null,Be.component?Vt?Vt.children:null:F,$,_e)})(dt,Be[dt.value.outlet],F,$.concat([dt.value]),_e),delete Be[dt.value.outlet]}),Object.entries(Be).forEach(([dt,Vt])=>Do(Vt,F.getContext(dt),_e)),_e}function Do(P,z,F){const $=mn(P),_e=P.value;Object.entries($).forEach(([Be,dt])=>{Do(dt,_e.component?z?z.children.getContext(Be):null:z,F)}),F.canDeactivateChecks.push(new ai(_e.component&&z&&z.outlet&&z.outlet.isActivated?z.outlet.component:null,_e))}function us(P){return"function"==typeof P}function Mn(P){return P instanceof W.G||"EmptyError"===P?.name}const ni=Symbol("INITIAL_VALUE");function so(){return(0,Qe.n)(P=>(0,l.z)(P.map(z=>z.pipe((0,ht.s)(1),(0,ot.Z)(ni)))).pipe((0,Pe.T)(z=>{for(const F of z)if(!0!==F){if(F===ni)return ni;if(!1===F||F instanceof an)return F}return!0}),(0,gt.p)(z=>z!==ni),(0,ht.s)(1)))}function ml(P){return(0,e.F)((0,We.M)(z=>{if(Ee(z))throw Xr(0,z)}),(0,Pe.T)(z=>!0===z))}class vl{constructor(z){this.segmentGroup=z||null}}class Va extends Error{constructor(z){super(),this.urlTree=z}}function na(P){return(0,K.$)(new vl(P))}class Al{constructor(z,F){this.urlSerializer=z,this.urlTree=F}lineralizeSegments(z,F){let $=[],_e=F.root;for(;;){if($=$.concat(_e.segments),0===_e.numberOfChildren)return(0,v.of)($);if(_e.numberOfChildren>1||!_e.children[Re])return(0,K.$)(new p.wOt(4e3,!1));_e=_e.children[Re]}}applyRedirectCommands(z,F,$){const _e=this.applyRedirectCreateUrlTree(F,this.urlSerializer.parse(F),z,$);if(F.startsWith("/"))throw new Va(_e);return _e}applyRedirectCreateUrlTree(z,F,$,_e){const Be=this.createSegmentGroup(z,F.root,$,_e);return new an(Be,this.createQueryParams(F.queryParams,this.urlTree.queryParams),F.fragment)}createQueryParams(z,F){const $={};return Object.entries(z).forEach(([_e,Be])=>
1{if("string"==typeof Be&&Be.startsWith(":")){const Vt=Be.substring(1);$[_e]=F[Vt]}else $[_e]=Be}),$}createSegmentGroup(z,F,$,_e){const Be=this.createSegments(z,F.segments,$,_e);let dt={};return Object.entries(F.children).forEach(([Vt,Nt])=>{dt[Vt]=this.createSegmentGroup(z,Nt,$,_e)}),new qt(Be,dt)}createSegments(z,F,$,_e){return F.map(Be=>Be.path.startsWith(":")?this.findPosParam(z,Be,_e):this.findOrReturn(Be,$))}findPosParam(z,F,$){const _e=$[F.path.substring(1)];if(!_e)throw new p.wOt(4001,!1);return _e}findOrReturn(z,F){let $=0;for(const _e of F){if(_e.path===z.path)return F.splice($),_e;$++}return z}}const Wo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ci(P,z,F,$,_e){const Be=rr(P,z,F);return Be.matched?($=function Gi(P,z){return P.providers&&!P._injector&&(P._injector=(0,p.Ol2)(P.providers,z,`Route: ${P.path}`)),P._injector??z}(z,$),function _l(P,z,F,$){const _e=z.canMatch;if(!_e||0===_e.length)return(0,v.of)(!0);const Be=_e.map(dt=>{const Vt=wo(dt,P);return Ve(function yt(P){return P&&us(P.canMatch)}(Vt)?Vt.canMatch(z,F):(0,p.N4e)(P,()=>Vt(z,F)))});return(0,v.of)(Be).pipe(so(),ml())}($,z,F).pipe((0,Pe.T)(dt=>!0===dt?Be:{...Wo}))):(0,v.of)(Be)}function rr(P,z,F){if("**"===z.path)return function Rr(P){return{matched:!0,parameters:P.length>0?$e(P).parameters:{},consumedSegments:P,remainingSegments:[],positionalParamSegments:{}}}(F);if(""===z.path)return"full"===z.pathMatch&&(P.hasChildren()||F.length>0)?{...Wo}:{matched:!0,consumedSegments:[],remainingSegments:F,parameters:{},positionalParamSegments:{}};const _e=(z.matcher||on)(F,P,z);if(!_e)return{...Wo};const Be={};Object.entries(_e.posParams??{}).forEach(([Vt,Nt])=>{Be[Vt]=Nt.path});const dt=_e.consumed.length>0?{...Be,..._e.consumed[_e.consumed.length-1].parameters}:Be;return{matched:!0,consumedSegments:_e.consumed,remainingSegments:F.slice(_e.consumed.length),parameters:dt,positionalParamSegments:_e.posParams??{}}}function Kr(P,z,F,$){return F.length>0&&function ma(P,z,F){return F.some($=>Wi(P,z,$)&&Ni($)!==Re)}(P,F,$)?{segmentGroup:new qt(z,rc($,new qt(F,P.children))),slicedSegments:[]}:0===F.length&&function js(P,z,F){return F.some($=>Wi(P,z,$))}(P,F,$)?{segmentGroup:new qt(P.segments,ei(P,F,$,P.children)),slicedSegments:F}:{segmentGroup:new qt(P.segments,P.children),slicedSegments:F}}function ei(P,z,F,$){const _e={};for(const Be of F)if(Wi(P,z,Be)&&!$[Ni(Be)]){const dt=new qt([],{});_e[Ni(Be)]=dt}return{...$,..._e}}function rc(P,z){const F={};F[Re]=z;for(const $ of P)if(""===$.path&&Ni($)!==Re){const _e=new qt([],{});F[Ni($)]=_e}return F}function Wi(P,z,F){return(!(P.hasChildren()||z.length>0)||"full"!==F.pathMatch)&&""===F.path}class _a{}class ps{constructor(z,F,$,_e,Be,dt,Vt){this.injector=z,this.configLoader=F,this.rootComponentType=$,this.config=_e,this.urlTree=Be,this.paramsInheritanceStrategy=dt,this.urlSerializer=Vt,this.applyRedirects=new Al(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(z){return new p.wOt(4002,`'${z.segmentGroup}'`)}recognize(){const z=Kr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(z).pipe((0,Pe.T)(F=>{const $=new Zi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Re,this.rootComponentType,null,{}),_e=new Lt($,F),Be=new Nn("",_e),dt=function pt(P,z,F=null,$=null){return tn(_t(P),z,F,$)}($,[],this.urlTree.queryParams,this.urlTree.fragment);return dt.queryParams=this.urlTree.queryParams,Be.url=this.urlSerializer.serialize(dt),this.inheritParamsAndData(Be._root,null),{state:Be,tree:dt}}))}match(z){return this.processSegmentGroup(this.injector,this.config,z,Re).pipe((0,at.W)($=>{if($ instanceof Va)return this.urlTree=$.urlTree,this.match($.urlTree.root);throw $ instanceof vl?this.noMatchError($):$}))}inheritParamsAndData(z,F){const $=z.value,_e=qn($,F,this.paramsInheritanceStrategy);$.params=Object.freeze(_e.params),$.data=Object.freeze(_e.data),z.children.forEach(Be=>this.inheritParamsAndData(Be,$))}processSegmentGroup(z,F,$,_e){return 0===$.segments.length&&$.hasChildren()?this.processChildren(z,F,$):this.processSegment(z,F,$,$.segments,_e,!0).pipe((0,Pe.T)(Be=>Be instanceof Lt?[Be]:[]))}processChildren(z,F,$){const _e=[];for(const Be of Object.keys($.children))"primary"===Be?_e.unshift(Be):_e.push(Be);return(0,N.H)(_e).pipe((0,kt.H)(Be=>{const dt=$.children[Be],Vt=function Bi(P,z){const F=P.filter($=>Ni($)===z);return F.push(...P.filter($=>Ni($)!==z)),F}(F,Be);return this.processSegmentGroup(z,Vt,dt,Be)}),(0,le.S)((Be,dt)=>
1(Be.push(...dt),Be)),(0,Xe.U)(null),function Te(P,z){const F=arguments.length>=2;return $=>$.pipe(P?(0,gt.p)((_e,Be)=>P(_e,Be,$)):Gt.D,Jt(1),F?(0,Xe.U)(z):(0,ct.v)(()=>new W.G))}(),(0,je.Z)(Be=>{if(null===Be)return na($);const dt=va(Be);return function Gc(P){P.sort((z,F)=>z.value.outlet===Re?-1:F.value.outlet===Re?1:z.value.outlet.localeCompare(F.value.outlet))}(dt),(0,v.of)(dt)}))}processSegment(z,F,$,_e,Be,dt){return(0,N.H)(F).pipe((0,kt.H)(Vt=>this.processSegmentAgainstRoute(Vt._injector??z,F,Vt,$,_e,Be,dt).pipe((0,at.W)(Nt=>{if(Nt instanceof vl)return(0,v.of)(null);throw Nt}))),(0,Ct.$)(Vt=>!!Vt),(0,at.W)(Vt=>{if(Mn(Vt))return function Hn(P,z,F){return 0===z.length&&!P.children[F]}($,_e,Be)?(0,v.of)(new _a):na($);throw Vt}))}processSegmentAgainstRoute(z,F,$,_e,Be,dt,Vt){return function Ga(P,z,F,$){return!!(Ni(P)===$||$!==Re&&Wi(z,F,P))&&rr(z,P,F).matched}($,_e,Be,dt)?void 0===$.redirectTo?this.matchSegmentAgainstRoute(z,_e,$,Be,dt):this.allowRedirects&&Vt?this.expandSegmentAgainstRouteUsingRedirect(z,_e,F,$,Be,dt):na(_e):na(_e)}expandSegmentAgainstRouteUsingRedirect(z,F,$,_e,Be,dt){const{matched:Vt,consumedSegments:Nt,positionalParamSegments:bn,remainingSegments:ki}=rr(F,_e,Be);if(!Vt)return na(F);_e.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Di=this.applyRedirects.applyRedirectCommands(Nt,_e.redirectTo,bn);return this.applyRedirects.lineralizeSegments(_e,Di).pipe((0,je.Z)(Mr=>this.processSegment(z,$,F,Mr.concat(ki),dt,!1)))}matchSegmentAgainstRoute(z,F,$,_e,Be){const dt=ci(F,$,_e,z);return"**"===$.path&&(F.children={}),dt.pipe((0,Qe.n)(Vt=>Vt.matched?this.getChildConfig(z=$._injector??z,$,_e).pipe((0,Qe.n)(({routes:Nt})=>{const bn=$._loadedInjector??z,{consumedSegments:ki,remainingSegments:Di,parameters:Mr}=Vt,Ya=new Zi(ki,Mr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function oc(P){return P.data||{}}($),Ni($),$.component??$._loadedComponent??null,$,function Cl(P){return P.resolve||{}}($)),{segmentGroup:El,slicedSegments:kl}=Kr(F,ki,Di,Nt);if(0===kl.length&&El.hasChildren())return this.processChildren(bn,Nt,El).pipe((0,Pe.T)(la=>null===la?null:new Lt(Ya,la)));if(0===Nt.length&&0===kl.length)return(0,v.of)(new Lt(Ya,[]));const Qc=Ni($)===Be;return this.processSegment(bn,Nt,El,kl,Qc?Re:Be,!0).pipe((0,Pe.T)(la=>new Lt(Ya,la instanceof Lt?[la]:[])))})):na(F)))}getChildConfig(z,F,$){return F.children?(0,v.of)({routes:F.children,injector:z}):F.loadChildren?void 0!==F._loadedRoutes?(0,v.of)({routes:F._loadedRoutes,injector:F._loadedInjector}):function Ba(P,z,F,$){const _e=z.canLoad;if(void 0===_e||0===_e.length)return(0,v.of)(!0);const Be=_e.map(dt=>{const Vt=wo(dt,P);return Ve(function me(P){return P&&us(P.canLoad)}(Vt)?Vt.canLoad(z,F):(0,p.N4e)(P,()=>Vt(z,F)))});return(0,v.of)(Be).pipe(so(),ml())}(z,F,$).pipe((0,je.Z)(_e=>_e?this.configLoader.loadChildren(z,F).pipe((0,We.M)(Be=>{F._loadedRoutes=Be.routes,F._loadedInjector=Be.injector})):function ic(P){return(0,K.$)(On(!1,Yn.GuardRejected))}())):(0,v.of)({routes:[],injector:z})}}function Ua(P){const z=P.value.routeConfig;return z&&""===z.path}function va(P){const z=[],F=new Set;for(const $ of P){if(!Ua($)){z.push($);continue}const _e=z.find(Be=>$.value.routeConfig===Be.value.routeConfig);void 0!==_e?(_e.children.push(...$.children),F.add(_e)):z.push($)}for(const $ of F){const _e=va($.children);z.push(new Lt($.value,_e))}return z.filter($=>!F.has($))}function Bs(P){const z=P.children.map(F=>Bs(F)).flat();return[P,...z]}function fs(P){return(0,Qe.n)(z=>{const F=P(z);return F?(0,N.H)(F).pipe((0,Pe.T)(()=>z)):(0,v.of)(z)})}let po=(()=>{class P{buildTitle(F){let $,_e=F.root;for(;void 0!==_e;)$=this.getResolvedTitleForRoute(_e)??$,_e=_e.children.find(Be=>Be.outlet===Re);return $}getResolvedTitleForRoute(F){return F.data[rt]}static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:()=>(0,p.WQX)(ho),providedIn:"root"})}return P})(),ho=(()=>{class P extends po{constructor(F){super(),this.title=F}updateTitle(F){const $=this.buildTitle(F);void 0!==$&&this.title.setTitle($)}static#e=this.\u0275fac=function($){return new($||P)(p.KVO(ft.hE))};static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const wr=new p.nKC("",{providedIn:"root",factory:()=>({})}),qo=new p.nKC("");let za=(()=>{class P{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,p.WQX)(p.Ql9)}loadComponent(F){if(this.componentLoaders.get(F))return this.componentLoaders.get(F);if(F._loadedComponent)return(0,v.of)(F._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(F);const $=Ve(F.loadComponent()).pipe((0,Pe.T)(ac),(0,We.M)(Be=>{this.onLoadEndListener&&this.onLoadEndListener(F),F._loadedComponent=Be}),(0,Ne.j)(()=>{this.componentLoaders.delete(F)})),_e=new pe.G($,()=>new oe.B).pipe((0,Je.B)());return this.componentLoaders.set(F,_e),_e}loadChildren(F,$){if(this.childrenLoaders.get($))return this.childrenLoaders.get($);if($._loadedRoutes)return(0,v.of)({routes:$._loadedRoutes,injector:$._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener($);const Be=function Ko(P,z,F,$){return Ve(P.loadChildren()).pipe((0,Pe.T)(ac),(0,je.Z)(_e=>_e instanceof p.Co$||Array.isArray(_e)?(0,v.of)(_e):(0,N.H)(z.compileModuleAsync(_e))),(0,Pe.T)(_e=>{$&&$(P);let Be,dt,Vt=!1;return Array.isArray(_e)?(dt=_e,!0):(Be=_e.create(F).injector,dt=Be.get(qo,[],{optional:!0,self:!0}).flat()),{routes:dt.map(uo),injector:Be}}))}($,this.compiler,F,this.onLoadEndListener).pipe((0,Ne.j)(()=>{this.childrenLoaders.delete($)})),dt=new pe.G(Be,()=>new oe.B).pipe((0,Je.B)());return this.childrenLoaders.set($,dt),dt}static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function ac(P){return function Fo(P){return P&&"object"==typeof P&&"default"in P}(P)?P.default:P}let $a=(()=>{class P{static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:()=>(0,p.WQX)(Yo),providedIn:"root"})}return P})(),Yo=(()=>{class P{shouldProcessUrl(F){return!0}extract(F){return F}merge(F,$){return F}static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const Qa=new p.nKC(""),Jo=new p.nKC("");function ya(P,z,F){const $=P.get(Jo),_e=P.get(we.qQ);return P.get(p.SKi).runOutsideAngular(()=>{if(!_e.startViewTransition||$.skipNextTransition)return $.skipNextTransition=!1,Promise.resolve();let Be;const dt=new Promise(bn=>{Be=bn}),Vt=_e.startViewTransition(()=>(Be(),function Zo(P){return new Promise(z=>{(0,p.mal)(z,{injector:P})})}(P))),{onViewTransitionCreated:Nt}=$;return Nt&&(0,p.N4e)(P,()=>Nt({transition:Vt,from:z,to:F})),dt})}let j=(()=>{class P{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new oe.B,this.transitionAbortSubject=ne
1w oe.B,this.configLoader=(0,p.WQX)(za),this.environmentInjector=(0,p.WQX)(p.uvJ),this.urlSerializer=(0,p.WQX)(Wn),this.rootContexts=(0,p.WQX)(tt),this.location=(0,p.WQX)(we.aZ),this.inputBindingEnabled=null!==(0,p.WQX)(Tn,{optional:!0}),this.titleStrategy=(0,p.WQX)(po),this.options=(0,p.WQX)(wr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,p.WQX)($a),this.createViewTransition=(0,p.WQX)(Qa,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,v.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=_e=>this.events.next(new X(_e)),this.configLoader.onLoadStartListener=_e=>this.events.next(new A(_e))}complete(){this.transitions?.complete()}handleNavigationRequest(F){const $=++this.navigationId;this.transitions?.next({...this.transitions.value,...F,id:$})}setupNavigations(F,$,_e){return this.transitions=new ee.t({id:0,currentUrlTree:$,currentRawUrl:$,extractedUrl:this.urlHandlingStrategy.extract($),urlAfterRedirects:this.urlHandlingStrategy.extract($),rawUrl:$,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:un,restoredState:null,currentSnapshot:_e.snapshot,targetSnapshot:null,currentRouterState:_e,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,gt.p)(Be=>0!==Be.id),(0,Pe.T)(Be=>({...Be,extractedUrl:this.urlHandlingStrategy.extract(Be.rawUrl)})),(0,Qe.n)(Be=>{let dt=!1,Vt=!1;return(0,v.of)(Be).pipe((0,Qe.n)(Nt=>{if(this.navigationId>Be.id)return this.cancelNavigationTransition(Be,"",Yn.SupersededByNewNavigation),H.w;this.currentTransition=Be,this.currentNavigation={id:Nt.id,initialUrl:Nt.rawUrl,extractedUrl:Nt.extractedUrl,trigger:Nt.source,extras:Nt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const bn=!F.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!bn&&"reload"!==(Nt.extras.onSameUrlNavigation??F.onSameUrlNavigation)){const Di="";return this.events.next(new nr(Nt.id,this.urlSerializer.serialize(Nt.rawUrl),Di,Fi.IgnoredSameUrlNavigation)),Nt.resolve(null),H.w}if(this.urlHandlingStrategy.shouldProcessUrl(Nt.rawUrl))return(0,v.of)(Nt).pipe((0,Qe.n)(Di=>{const Mr=this.transitions?.getValue();return this.events.next(new Cn(Di.id,this.urlSerializer.serialize(Di.extractedUrl),Di.source,Di.restoredState)),Mr!==this.transitions?.getValue()?H.w:Promise.resolve(Di)}),function Oo(P,z,F,$,_e,Be){return(0,je.Z)(dt=>function Wr(P,z,F,$,_e,Be,dt="emptyOnly"){return new ps(P,z,F,$,_e,dt,Be).recognize()}(P,z,F,$,dt.extractedUrl,_e,Be).pipe((0,Pe.T)(({state:Vt,tree:Nt})=>({...dt,targetSnapshot:Vt,urlAfterRedirects:Nt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,F.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,We.M)(Di=>{Be.targetSnapshot=Di.targetSnapshot,Be.urlAfterRedirects=Di.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Di.urlAfterRedirects};const Mr=new fi(Di.id,this.urlSerializer.serialize(Di.extractedUrl),this.urlSerializer.serialize(Di.urlAfterRedirects),Di.targetSnapshot);this.events.next(Mr)}));if(bn&&this.urlHandlingStrategy.shouldProcessUrl(Nt.currentRawUrl)){const{id:Di,extractedUrl:Mr,source:Ya,restoredState:El,extras:kl}=Nt,Qc=new Cn(Di,this.urlSerializer.serialize(Mr),Ya,El);this.events.next(Qc);const la=cn(this.rootComponentType).snapshot;return this.currentTransition=Be={...Nt,targetSnapshot:la,urlAfterRedirects:Mr,extras:{...kl,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Mr,(0,v.of)(Be)}{const Di="";return this.events.next(new nr(Nt.id,this.urlSerializer.serialize(Nt.extractedUrl),Di,Fi.IgnoredByUrlHandlingStrategy)),Nt.resolve(null),H.w}}),(0,We.M)(Nt=>{const bn=new gi(Nt.id,this.urlSerializer.serialize(Nt.extractedUrl),this.urlSerializer.serialize(Nt.urlAfterRedirects),Nt.targetSnapshot);this.events.next(bn)}),(0,Pe.T)(Nt=>(this.currentTransition=Be={...Nt,guards:As(Nt.targetSnapshot,Nt.currentSnapshot,this.rootContexts)},Be)),function Ls(P,z){return(0,je.Z)(F=>{const{targetSnapshot:$,currentSnapshot:_e,guards:{canActivateChecks:Be,canDeactivateChecks:dt}}=F;return 0===dt.length&&0===Be.length?(0,v.of)({...F,guardsResult:!0}):function qr(P,z,F,$){return(0,N.H)(P).pipe((0,je.Z)(_e=>function ga(P,z,F,$,_e){const Be=z&&z.routeConfig?z.routeConfig.canDeactivate:null;if(!Be||0===Be.length)return(0,v.of)(!0);const dt=Be.map(Vt=>{const Nt=$i(z)??_e,bn=wo(Vt,Nt);return Ve(function Ge(P){return P&&us(P.canDeactivate)}(bn)?bn.canDeactivate(P,z,F,$):(0,p.N4e)(Nt,()=>bn(P,z,F,$))).pipe((0,Ct.$)())});return(0,v.of)(dt).pipe(so())}(_e.component,_e.route,F,z,$)),(0,Ct.$)(_e=>!0!==_e,!0))}(dt,$,_e,P).pipe((0,je.Z)(Vt=>Vt&&function Ns(P){return"boolean"==typeof P}(Vt)?function ec(P,z,F,$){return(0,N.H)(z).pipe((0,kt.H)(_e=>(0,B.x)(function ja(P,z){return null!==P&&z&&z(new V(P)),(0,v.of)(!0)}(_e.route.parent,$),function La(P,z){return null!==P&&z&&z(new S(P)),(0,v.of)(!0)}(_e.route,$),function Qi(P,z,F){const $=z[z.length-1],Be=z.slice(0,z.length-1).reverse().map(dt=>function fa(P){const z=P.routeConfig?P.routeConfig.canActivateChild:null;return z&&0!==z.length?{node:P,guards:z}:null}(dt)).filter(dt=>null!==dt).map(dt=>(0,T.v)(()=>{const Vt=dt.guards.map(Nt=>
1{const bn=$i(dt.node)??F,ki=wo(Nt,bn);return Ve(function q(P){return P&&us(P.canActivateChild)}(ki)?ki.canActivateChild($,P):(0,p.N4e)(bn,()=>ki($,P))).pipe((0,Ct.$)())});return(0,v.of)(Vt).pipe(so())}));return(0,v.of)(Be).pipe(so())}(P,_e.path,F),function tc(P,z,F){const $=z.routeConfig?z.routeConfig.canActivate:null;if(!$||0===$.length)return(0,v.of)(!0);const _e=$.map(Be=>(0,T.v)(()=>{const dt=$i(z)??F,Vt=wo(Be,dt);return Ve(function xe(P){return P&&us(P.canActivate)}(Vt)?Vt.canActivate(z,P):(0,p.N4e)(dt,()=>Vt(z,P))).pipe((0,Ct.$)())}));return(0,v.of)(_e).pipe(so())}(P,_e.route,F))),(0,Ct.$)(_e=>!0!==_e,!0))}($,Be,P,z):(0,v.of)(Vt)),(0,Pe.T)(Vt=>({...F,guardsResult:Vt})))})}(this.environmentInjector,Nt=>this.events.next(Nt)),(0,We.M)(Nt=>{if(Be.guardsResult=Nt.guardsResult,Ee(Nt.guardsResult))throw Xr(0,Nt.guardsResult);const bn=new pr(Nt.id,this.urlSerializer.serialize(Nt.extractedUrl),this.urlSerializer.serialize(Nt.urlAfterRedirects),Nt.targetSnapshot,!!Nt.guardsResult);this.events.next(bn)}),(0,gt.p)(Nt=>!!Nt.guardsResult||(this.cancelNavigationTransition(Nt,"",Yn.GuardRejected),!1)),fs(Nt=>{if(Nt.guards.canActivateChecks.length)return(0,v.of)(Nt).pipe((0,We.M)(bn=>{const ki=new io(bn.id,this.urlSerializer.serialize(bn.extractedUrl),this.urlSerializer.serialize(bn.urlAfterRedirects),bn.targetSnapshot);this.events.next(ki)}),(0,Qe.n)(bn=>{let ki=!1;return(0,v.of)(bn).pipe(function sc(P,z){return(0,je.Z)(F=>{const{targetSnapshot:$,guards:{canActivateChecks:_e}}=F;if(!_e.length)return(0,v.of)(F);const Be=new Set(_e.map(Nt=>Nt.route)),dt=new Set;for(const Nt of Be)if(!dt.has(Nt))for(const bn of Bs(Nt))dt.add(bn);let Vt=0;return(0,N.H)(dt).pipe((0,kt.H)(Nt=>Be.has(Nt)?function hs(P,z,F,$){const _e=P.routeConfig,Be=P._resolve;return void 0!==_e?.title&&!Or(_e)&&(Be[rt]=_e.title),function wl(P,z,F,$){const _e=Oe(P);if(0===_e.length)return(0,v.of)({});const Be={};return(0,N.H)(_e).pipe((0,je.Z)(dt=>function Ro(P,z,F,$){const _e=$i(z)??$,Be=wo(P,_e);return Ve(Be.resolve?Be.resolve(z,F):(0,p.N4e)(_e,()=>Be(z,F)))}(P[dt],z,F,$).pipe((0,Ct.$)(),(0,We.M)(Vt=>{Be[dt]=Vt}))),Jt(1),(0,Ze.u)(Be),(0,at.W)(dt=>Mn(dt)?H.w:(0,K.$)(dt)))}(Be,P,z,$).pipe((0,Pe.T)(dt=>(P._resolvedData=dt,P.data=qn(P,P.parent,F).resolve,null)))}(Nt,$,P,z):(Nt.data=qn(Nt,Nt.parent,P).resolve,(0,v.of)(void 0))),(0,We.M)(()=>Vt++),Jt(1),(0,je.Z)(Nt=>Vt===dt.size?(0,v.of)(F):H.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,We.M)({next:()=>ki=!0,complete:()=>{ki||this.cancelNavigationTransition(bn,"",Yn.NoDataFromResolver)}}))}),(0,We.M)(bn=>{const ki=new sr(bn.id,this.urlSerializer.serialize(bn.extractedUrl),this.urlSerializer.serialize(bn.urlAfterRedirects),bn.targetSnapshot);this.events.next(ki)}))}),fs(Nt=>{const bn=ki=>{const Di=[];ki.routeConfig?.loadComponent&&!ki.routeConfig._loadedComponent&&Di.push(this.configLoader.loadComponent(ki.routeConfig).pipe((0,We.M)(Mr=>{ki.component=Mr}),(0,Pe.T)(()=>{})));for(const Mr of ki.children)Di.push(...bn(Mr));return Di};return(0,l.z)(bn(Nt.targetSnapshot.root)).pipe((0,Xe.U)(null),(0,ht.s)(1))}),fs(()=>this.afterPreactivation()),(0,Qe.n)(()=>{const{currentSnapshot:Nt,targetSnapshot:bn}=Be,ki=this.createViewTransition?.(this.environmentInjector,Nt.root,bn.root);return ki?(0,N.H)(ki).pipe((0,Pe.T)(()=>Be)):(0,v.of)(Be)}),(0,Pe.T)(Nt=>{const bn=function Co(P,z,F){const $=Vn(P,z._root,F?F._root:void 0);return new dn($,z)}(F.routeReuseStrategy,Nt.targetSnapshot,Nt.currentRouterState);return this.currentTransition=Be={...Nt,targetRouterState:bn},this.currentNavigation.targetRouterState=bn,Be}),(0,We.M)(()=>{this.events.next(new se)}),((P,z,F,$)=>(0,Pe.T)(_e=>(new cs(z,_e.targetRouterState,_e.currentRouterState,F,$).activate(P),_e)))(this.rootContexts,F.routeReuseStrategy,Nt=>this.events.next(Nt),this.inputBindingEnabled),(0,ht.s)(1),(0,We.M)({next:Nt=>{dt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new si(Nt.id,this.urlSerializer.serialize(Nt.extractedUrl),this.urlSerializer.serialize(Nt.urlAfterRedirects))),this.titleStrategy?.updateTitle(Nt.targetRouterState.snapshot),Nt.resolve(!0)},complete:()=>{dt=!0}}),(0,Fe.Q)(this.transitionAbortSubject.pipe((0,We.M)(Nt=>{throw Nt}))),(0,Ne.j)(()=>{!dt&&!Vt&&this.cancelNavigationTransition(Be,"",Yn.SupersededByNewNavigation),this.currentTransition?.id===Be.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,at.W)(Nt=>{if(Vt=!0,Cr(Nt))this.events.next(new _i(Be.id,this.urlSerializer.serialize(Be.extractedUrl),Nt.message,Nt.cancellationCode)),function gr(P){return Cr(P)&&Ee(P.url)}(Nt)?this.events.next(new G(Nt.url)):Be.resolve(!1);else{this.events.next(new Ji(Be.id,this.urlSerializer.serialize(Be.extractedUrl),Nt,Be.targetSnapshot??void 0));try{Be.resolve(F.errorHandler(Nt))}catch(bn){this.options.resolveNavigationPromiseOnError?Be.resolve(!1):Be.reject(bn)}}return H.w}))}))}cancelNavigationTransition(F,$,_e){const Be=new _i(F.id,this.urlSerializer.serialize(F.extractedUrl),$,_e);this.events.next(Be),F.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function ke(P){return P!==un}let J=(()=>{class P{static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:()=>(0,p.WQX)(st),providedIn:"root"})}return P})();class ge{shouldDetach(z){return!1}store(z,F){}shouldAttach(z){return!1}retrieve(z){return null}
1shouldReuseRoute(z,F){return z.routeConfig===F.routeConfig}}let st=(()=>{class P extends ge{static#e=this.\u0275fac=(()=>{let F;return function(_e){return(F||(F=p.xGo(P)))(_e||P)}})();static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Bt=(()=>{class P{static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:()=>(0,p.WQX)(Zt),providedIn:"root"})}return P})(),Zt=(()=>{class P extends Bt{constructor(){super(...arguments),this.location=(0,p.WQX)(we.aZ),this.urlSerializer=(0,p.WQX)(Wn),this.options=(0,p.WQX)(wr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,p.WQX)($a),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new an,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=cn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(F){return this.location.subscribe($=>{"popstate"===$.type&&F($.url,$.state)})}handleRouterEvent(F,$){if(F instanceof Cn)this.stateMemento=this.createStateMemento();else if(F instanceof nr)this.rawUrlTree=$.initialUrl;else if(F instanceof fi){if("eager"===this.urlUpdateStrategy&&!$.extras.skipLocationChange){const _e=this.urlHandlingStrategy.merge($.finalUrl,$.initialUrl);this.setBrowserUrl(_e,$)}}else F instanceof se?(this.currentUrlTree=$.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge($.finalUrl,$.initialUrl),this.routerState=$.targetRouterState,"deferred"===this.urlUpdateStrategy&&($.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,$))):F instanceof _i&&(F.code===Yn.GuardRejected||F.code===Yn.NoDataFromResolver)?this.restoreHistory($):F instanceof Ji?this.restoreHistory($,!0):F instanceof si&&(this.lastSuccessfulId=F.id,this.currentPageId=this.browserPageId)}setBrowserUrl(F,$){const _e=this.urlSerializer.serialize(F);if(this.location.isCurrentPathEqualTo(_e)||$.extras.replaceUrl){const dt={...$.extras.state,...this.generateNgRouterState($.id,this.browserPageId)};this.location.replaceState(_e,"",dt)}else{const Be={...$.extras.state,...this.generateNgRouterState($.id,this.browserPageId+1)};this.location.go(_e,"",Be)}}restoreHistory(F,$=!1){if("computed"===this.canceledNavigationResolution){const Be=this.currentPageId-this.browserPageId;0!==Be?this.location.historyGo(Be):this.currentUrlTree===F.finalUrl&&0===Be&&(this.resetState(F),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&($&&this.resetState(F),this.resetUrlToCurrentUrlTree())}resetState(F){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,F.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(F,$){return"computed"===this.canceledNavigationResolution?{navigationId:F,\u0275routerPageId:$}:{navigationId:F}}static#e=this.\u0275fac=(()=>{let F;return function(_e){return(F||(F=p.xGo(P)))(_e||P)}})();static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();var yn=function(P){return P[P.COMPLETE=0]="COMPLETE",P[P.FAILED=1]="FAILED",P[P.REDIRECTING=2]="REDIRECTING",P}(yn||{});function Ai(P,z){P.events.pipe((0,gt.p)(F=>F instanceof si||F instanceof _i||F instanceof Ji||F instanceof nr),(0,Pe.T)(F=>F instanceof si||F instanceof nr?yn.COMPLETE:F instanceof _i&&(F.code===Yn.Redirect||F.code===Yn.SupersededByNewNavigation)?yn.REDIRECTING:yn.FAILED),(0,gt.p)(F=>F!==yn.REDIRECTING),(0,ht.s)(1)).subscribe(()=>{z()})}function Li(P){throw P}const Ei={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Jn=(()=>{class P{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,p.WQX)(p.H3F),this.stateManager=(0,p.WQX)(Bt),this.options=(0,p.WQX)(wr,{optional:!0})||{},this.pendingTasks=(0,p.WQX)(p.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,p.WQX)(j),this.urlSerializer
1=(0,p.WQX)(Wn),this.location=(0,p.WQX)(we.aZ),this.urlHandlingStrategy=(0,p.WQX)($a),this._events=new oe.B,this.errorHandler=this.options.errorHandler||Li,this.navigated=!1,this.routeReuseStrategy=(0,p.WQX)(J),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,p.WQX)(qo,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,p.WQX)(Tn,{optional:!0}),this.eventsSubscription=new Ce.yU,this.isNgZoneEnabled=(0,p.WQX)(p.SKi)instanceof p.SKi&&p.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:F=>{this.console.warn(F)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const F=this.navigationTransitions.events.subscribe($=>{try{const _e=this.navigationTransitions.currentTransition,Be=this.navigationTransitions.currentNavigation;if(null!==_e&&null!==Be)if(this.stateManager.handleRouterEvent($,Be),$ instanceof _i&&$.code!==Yn.Redirect&&$.code!==Yn.SupersededByNewNavigation)this.navigated=!0;else if($ instanceof si)this.navigated=!0;else if($ instanceof G){const dt=this.urlHandlingStrategy.merge($.url,_e.currentRawUrl),Vt={info:_e.extras.info,skipLocationChange:_e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ke(_e.source)};this.scheduleNavigation(dt,un,null,Vt,{resolve:_e.resolve,reject:_e.reject,promise:_e.promise})}(function Pi(P){return!(P instanceof se||P instanceof G)})($)&&this._events.next($)}catch(_e){this.navigationTransitions.transitionAbortSubject.next(_e)}});this.eventsSubscription.add(F)}resetRootComponentType(F){this.routerState.root.component=F,this.navigationTransitions.rootComponentType=F}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),un,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((F,$)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(F,"popstate",$)},0)})}navigateToSyncWithBrowser(F,$,_e){const Be={replaceUrl:!0},dt=_e?.navigationId?_e:null;if(_e){const Nt={..._e};delete Nt.navigationId,delete Nt.\u0275routerPageId,0!==Object.keys(Nt).length&&(Be.state=Nt)}const Vt=this.parseUrl(F);this.scheduleNavigation(Vt,$,dt,Be)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(F){this.config=F.map(uo),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(F,$={}){const{relativeTo:_e,queryParams:Be,fragment:dt,queryParamsHandling:Vt,preserveFragment:Nt}=$,bn=Nt?this.currentUrlTree.fragment:dt;let Di,ki=null;switch(Vt){case"merge":ki={...this.currentUrlTree.queryParams,...Be};break;case"preserve":ki=this.currentUrlTree.queryParams;break;default:ki=Be||null}null!==ki&&(ki=this.removeEmptyProps(ki));try{Di=_t(_e?_e.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof F[0]||!F[0].startsWith("/"))&&(F=[]),Di=this.currentUrlTree.root}return tn(Di,F,ki,bn??null)}navigateByUrl(F,$={skipLocationChange:!1}){const _e=Ee(F)?F:this.parseUrl(F),Be=this.urlHandlingStrategy.merge(_e,this.rawUrlTree);return this.scheduleNavigation(Be,un,null,$)}navigate(F,$={skipLocationChange:!1}){return function Hi(P){for(let z=0;z<P.length;z++)if(null==P[z])throw new p.wOt(4008,!1)}(F),this.navigateByUrl(this.createUrlTree(F,$),$)}serializeUrl(F){return this.urlSerializer.serialize(F)}parseUrl(F){try{return this.urlSerializer.parse(F)}catch{return this.urlSerializer.parse("/")}}isActive(F,$){let _e;if(_e=!0===$?{...Ei}:!1===$?{...vi}:$,Ee(F))return nt(this.currentUrlTree,F,_e);const Be=this.parseUrl(F);return nt(this.currentUrlTree,Be,_e)}removeEmptyProps(F){return Object.entries(F).reduce(($,[_e,Be])=>(null!=Be&&($[_e]=Be),$),{})}
1scheduleNavigation(F,$,_e,Be,dt){if(this.disposed)return Promise.resolve(!1);let Vt,Nt,bn;dt?(Vt=dt.resolve,Nt=dt.reject,bn=dt.promise):bn=new Promise((Di,Mr)=>{Vt=Di,Nt=Mr});const ki=this.pendingTasks.add();return Ai(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ki))}),this.navigationTransitions.handleNavigationRequest({source:$,restoredState:_e,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:F,extras:Be,resolve:Vt,reject:Nt,promise:bn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),bn.catch(Di=>Promise.reject(Di))}static#e=this.\u0275fac=function($){return new($||P)};static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),bi=(()=>{class P{constructor(F,$,_e,Be,dt,Vt){this.router=F,this.route=$,this.tabIndexAttribute=_e,this.renderer=Be,this.el=dt,this.locationStrategy=Vt,this.href=null,this.commands=null,this.onChanges=new oe.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Nt=dt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Nt||"area"===Nt,this.isAnchorElement?this.subscription=F.events.subscribe(bn=>{bn instanceof si&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(F){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",F)}ngOnChanges(F){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(F){null!=F?(this.commands=Array.isArray(F)?F:[F],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(F,$,_e,Be,dt){const Vt=this.urlTree;return!!(null===Vt||this.isAnchorElement&&(0!==F||$||_e||Be||dt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Vt,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const F=this.urlTree;this.href=null!==F&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(F)):null;const $=null===this.href?null:(0,p.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",$)}applyAttributeValue(F,$){const _e=this.renderer,Be=this.el.nativeElement;null!==$?_e.setAttribute(Be,F,$):_e.removeAttribute(Be,F)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function($){return new($||P)(p.rXU(Jn),p.rXU(zn),p.kS0("tabindex"),p.rXU(p.sFG),p.rXU(p.aKT),p.rXU(we.hb))};static#t=this.\u0275dir=p.FsC({type:P,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function($,_e){1&$&&p.bIt("click",function(dt){return _e.onClick(dt.button,dt.ctrlKey,dt.shiftKey,dt.altKey,dt.metaKey)}),2&$&&p.BMQ("target",_e.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[p.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",p.L39],skipLocationChange:[p.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",p.L39],replaceUrl:[p.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",p.L39],routerLink:"routerLink"},standalone:!0,features:[p.GFd,p.OA$]})}return P})(),rn=(()=>{class P{get isActive(){return this._isActive}constructor(F,$,_e,Be,dt){this.router=F,this.element=$,this.renderer=_e,this.cdr=Be,this.link=dt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new p.bkB,this.routerEventsSubscription=F.events.subscribe(Vt=>{Vt instanceof si&&this.update()})}ngAfterContentInit(){(0,v.of)(this.links.changes,(0,v.of)(null)).pipe((0,ze.U)()).subscribe(F=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const F=[...this.links.toArray(),this.link].filter($=>!!$).map($=>$.onChanges);this.linkInputChangesSubscription=(0,N.H)(F).pipe((0,ze.U)()).subscribe($=>{this._isActive!==this.isLinkActive(this.router)($)&&this.update()})}set routerLinkActive(F){const $=Array.isArray(F)?F:F.split(" ");this.classes=$.filter(_e=>!!_e)}ngOnChanges(F){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const F=this.hasActiveLinks();
1this.classes.forEach($=>{F?this.renderer.addClass(this.element.nativeElement,$):this.renderer.removeClass(this.element.nativeElement,$)}),F&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==F&&(this._isActive=F,this.cdr.markForCheck(),this.isActiveChange.emit(F))})}isLinkActive(F){const $=function Sn(P){return!!P.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return _e=>{const Be=_e.urlTree;return!!Be&&F.isActive(Be,$)}}hasActiveLinks(){const F=this.isLinkActive(this.router);return this.link&&F(this.link)||this.links.some(F)}static#e=this.\u0275fac=function($){return new($||P)(p.rXU(Jn),p.rXU(p.aKT),p.rXU(p.sFG),p.rXU(p.gRc),p.rXU(bi,8))};static#t=this.\u0275dir=p.FsC({type:P,selectors:[["","routerLinkActive",""]],contentQueries:function($,_e,Be){if(1&$&&p.wni(Be,bi,5),2&$){let dt;p.mGM(dt=p.lsd())&&(_e.links=dt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[p.OA$]})}return P})();class xi{}let Gr=(()=>{class P{constructor(F,$,_e,Be,dt){this.router=F,this.injector=_e,this.preloadingStrategy=Be,this.loader=dt}setUpPreloading(){this.subscription=this.router.events.pipe((0,gt.p)(F=>F instanceof si),(0,kt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(F,$){const _e=[];for(const Be of $){Be.providers&&!Be._injector&&(Be._injector=(0,p.Ol2)(Be.providers,F,`Route: ${Be.path}`));const dt=Be._injector??F,Vt=Be._loadedInjector??dt;(Be.loadChildren&&!Be._loadedRoutes&&void 0===Be.canLoad||Be.loadComponent&&!Be._loadedComponent)&&_e.push(this.preloadConfig(dt,Be)),(Be.children||Be._loadedRoutes)&&_e.push(this.processRoutes(Vt,Be.children??Be._loadedRoutes))}return(0,N.H)(_e).pipe((0,ze.U)())}preloadConfig(F,$){return this.preloadingStrategy.preload($,()=>{let _e;_e=$.loadChildren&&void 0===$.canLoad?this.loader.loadChildren(F,$):(0,v.of)(null);const Be=_e.pipe((0,je.Z)(dt=>null===dt?(0,v.of)(void 0):($._loadedRoutes=dt.routes,$._loadedInjector=dt.injector,this.processRoutes(dt.injector??F,dt.routes))));if($.loadComponent&&!$._loadedComponent){const dt=this.loader.loadComponent($);return(0,N.H)([Be,dt]).pipe((0,ze.U)())}return Be})}static#e=this.\u0275fac=function($){return new($||P)(p.KVO(Jn),p.KVO(p.Ql9),p.KVO(p.uvJ),p.KVO(xi),p.KVO(za))};static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const Ur=new p.nKC("");let ar=(()=>{class P{constructor(F,$,_e,Be,dt={}){this.urlSerializer=F,this.transitions=$,this.viewportScroller=_e,this.zone=Be,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},dt.scrollPositionRestoration||="disabled",dt.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(F=>{F instanceof Cn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=F.navigationTrigger,this.restoredId=F.restoredState?F.restoredState.navigationId:0):F instanceof si?(this.lastId=F.id,this.scheduleScrollEvent(F,this.urlSerializer.parse(F.urlAfterRedirects).fragment)):F instanceof nr&&F.code===Fi.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(F,this.urlSerializer.parse(F.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(F=>{F instanceof C&&(F.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(F.position):F.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(F.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(F,$){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new C(F,"popstate"===this.lastSource?this.store[this.restoredId]:null,$))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function($){p.QTQ()};static#t=this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac})}return P})();function Ln(P,z){return{\u0275kind:P,\u0275providers:z}}function ia(){const P=(0,p.WQX)(p.zZn);return z=>{const F=P.get(p.o8S);if(z!==F.components[0])return;const $=P.get(Jn),_e=P.get(ra);1===P.get(No)&&$.initialNavigation(),P.get(Aa,null,p.$GK.Optional)?.setUpPreloading(),P.get(Ur,null,p.$GK.Optional)?.init(),$.resetRootComponentType(F.componentTypes[0]),_e.closed||(_e.next(),_e.complete(),_e.unsubscribe())}}const ra=new p.nKC("",{factory:()=>new oe.B}),No=new p.nKC("",{providedIn:"root",factory:()=>1}),Aa=new p.nKC("");function sa(P){return Ln(0,[{provide:Aa,useExisting:Gr},{provide:xi,useExisting:P}])}function Vs(P){return Ln(9,[{provide:Qa,useValue:ya},{provide:Jo,useValue:{skipNextTransition:!!P?.skipInitialTransition,...P}}])}const Dr=new p.nKC("ROUTER_FORROOT_GUARD"),cc=[we.aZ,{provide:Wn,useClass:Oi},Jn,tt,{provide:zn,useFactory:function Ho(P){return P.routerState.root},deps:[Jn]},za,[]];let ao=(()=>{class P{constructor(F){}static forRoot(F,$){return{ngModule:P,providers:[cc,[],{provide:qo,multi:!0,useValue:F},{provide:Dr,useFactory:Xa,deps:[[Jn,new p.Xx1,new p.kdw]]},{provide:wr,useValue:$||{}},$?.useHash?{provide:we.hb,useClass:we.fw}:{provide:we.hb,useClass:we.Sm},{provide:Ur,useFactory:()=>{const P=(0,p.WQX)(we.Xr),z=(0,p.WQX)(p.SKi),F=(0,p.WQX)(wr),$=(0,p.WQX)(j),_e=(0,p.WQX)(Wn);return F.scrollOffset&&P.setOffset(F.scrollOffset),new ar(_e,$,P,z,F)}},$?.preloadingStrategy?sa($.preloadingStrategy).\u0275providers:[],$?.initialNavigation?ts($):[],$?.bindToComponentInputs?Ln(8,[Br,{provide:Tn,useExisting:Br}]).\u0275providers:[],$?.enableViewTransitions?Vs().\u0275providers:[],[{provide:fo,useFactory:ia},{provide:p.iLQ,multi:!0,useExisting:fo}]]}}static forChild(F){return{ngModule:P,providers:[{provide:qo,multi:!0,useValue:F}]}}static#e=this.\u0275fac=function($){return new($||P)(p.KVO(Dr,8))};static#t=this.\u0275mod=p.$C({type:P});static#n=this.\u0275inj=p.G2t({})}return P})();function Xa(P){return"guarded"}function ts(P){return["disabled"===P.initialNavigation?Ln(3,[{provide:p.hnV,multi:!0,useFactory:()=>{const z=(0,p.WQX)(Jn);return()=>{z.setUpLocationChangeListener()}}},{provide:No,useValue:2}]).\u0275providers:[],"enabledBlocking"===P.initialNavigation?Ln(2,[{provide:No,useValue:0},{provide:p.hnV,multi:!0,deps:[p.zZn],useFactory:z=>{const F=z.get(we.hj,Promise.resolve());return()=>F.then(()=>new Promise($=>{const _e=z.get(Jn),Be=z.get(ra);Ai(_e,()=>{$(!0)}),z.get(j).afterPreactivation=()=>
1($(!0),Be.closed?(0,v.of)(void 0):Be),_e.initialNavigation()}))}}]).\u0275providers:[]]}const fo=new p.nKC("")},222:(en,Me,R)=>{"use strict";R.d(Me,{A4:()=>Mi,xI:()=>In});let w={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function N(Ae){w=Ae}const v=/[&<>"']/,ee=new RegExp(v.source,"g"),l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,W=new RegExp(l.source,"g"),B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},T=Ae=>B[Ae];function e(Ae,Y){if(Y){if(v.test(Ae))return Ae.replace(ee,T)}else if(l.test(Ae))return Ae.replace(W,T);return Ae}const K=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,pe=/(^|[^\[])\^/g;function oe(Ae,Y){let ne="string"==typeof Ae?Ae:Ae.source;Y=Y||"";const fe={replace:(Ke,ve)=>{let ye="string"==typeof ve?ve:ve.source;return ye=ye.replace(pe,"$1"),ne=ne.replace(Ke,ye),fe},getRegex:()=>new RegExp(ne,Y)};return fe}function Ce(Ae){try{Ae=encodeURI(Ae).replace(/%25/g,"%")}catch{return null}return Ae}const we={exec:()=>null};function Pe(Ae,Y){const fe=Ae.replace(/\|/g,(ve,ye,be)=>{let Ee=!1,pt=ye;for(;--pt>=0&&"\\"===be[pt];)Ee=!Ee;return Ee?"|":" |"}).split(/ \|/);let Ke=0;if(fe[0].trim()||fe.shift(),fe.length>0&&!fe[fe.length-1].trim()&&fe.pop(),Y)if(fe.length>Y)fe.splice(Y);else for(;fe.length<Y;)fe.push("");for(;Ke<fe.length;Ke++)fe[Ke]=fe[Ke].trim().replace(/\\\|/g,"|");return fe}function Qe(Ae,Y,ne){const fe=Ae.length;if(0===fe)return"";let Ke=0;for(;Ke<fe;){const ve=Ae.charAt(fe-Ke-1);if(ve!==Y||ne){if(ve===Y||!ne)break;Ke++}else Ke++}return Ae.slice(0,fe-Ke)}function ot(Ae,Y,ne,fe){const Ke=Y.href,ve=Y.title?e(Y.title):null,ye=Ae[1].replace(/\\([\[\]])/g,"$1");if("!"!==Ae[0].charAt(0)){fe.state.inLink=!0;const be={type:"link",raw:ne,href:Ke,title:ve,text:ye,tokens:fe.inlineTokens(ye)};return fe.state.inLink=!1,be}return{type:"image",raw:ne,href:Ke,title:ve,text:e(ye)}}class je{options;rules;lexer;constructor(Y){this.options=Y||w}space(Y){const ne=this.rules.block.newline.exec(Y);if(ne&&ne[0].length>0)return{type:"space",raw:ne[0]}}code(Y){const ne=this.rules.block.code.exec(Y);if(ne){const fe=ne[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ne[0],codeBlockStyle:"indented",text:this.options.pedantic?fe:Qe(fe,"\n")}}}fences(Y){const ne=this.rules.block.fences.exec(Y);if(ne){const fe=ne[0],Ke=function gt(Ae,Y){const ne=Ae.match(/^(\s+)(?:```)/);if(null===ne)return Y;const fe=ne[1];return Y.split("\n").map(Ke=>{const ve=Ke.match(/^\s+/);if(null===ve)return Ke;const[ye]=ve;return ye.length>=fe.length?Ke.slice(fe.length):Ke}).join("\n")}(fe,ne[3]||"");return{type:"code",raw:fe,lang:ne[2]?ne[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):ne[2],text:Ke}}}heading(Y){const ne=this.rules.block.heading.exec(Y);if(ne){let fe=ne[2].trim();if(/#$/.test(fe)){const Ke=Qe(fe,"#");(this.options.pedantic||!Ke||/ $/.test(Ke))&&(fe=Ke.trim())}return{type:"heading",raw:ne[0],depth:ne[1].length,text:fe,tokens:this.lexer.inline(fe)}}}hr(Y){const ne=this.rules.block.hr.exec(Y);if(ne)return{type:"hr",raw:ne[0]}}blockquote(Y){const ne=this.rules.block.blockquote.exec(Y);if(ne){let fe=ne[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n    $1");fe=Qe(fe.replace(/^ *>[ \t]?/gm,""),"\n");const Ke=this.lexer.state.top;this.lexer.state.top=!0;const ve=this.lexer.blockTokens(fe);return this.lexer.state.top=Ke,{type:"blockquote",raw:ne[0],tokens:ve,text:fe}}}list(Y){let ne=this.rules.block.list.exec(Y);if(ne){let fe=ne[1].trim();const Ke=fe.length>1,ve={type:"list",raw:"",ordered:Ke,start:Ke?+fe.slice(0,-1):"",loose:!1,items:[]};fe=Ke?`\\d{1,9}\\${fe.slice(-1)}`:`\\${fe}`,this.options.pedantic&&(fe=Ke?fe:"[*+-]");const ye=new RegExp(`^( {0,3}${fe})((?:[\t ][^\\n]*)?(?:\\n|$))`);let be="",Ee="",pt=!1;for(;Y;){let _t=!1;if(!(ne=ye.exec(Y))||this.rules.block.hr.test(Y))break;be=ne[0],Y=Y.substring(be.length);let tn=ne[2].split("\n",1)[0].replace(/^\t+/,_r=>" ".repeat(3*_r.length)),ln=Y.split("\n",1)[0],An=0;this.options.pedantic?(An=2,Ee=tn.trimStart()):(An=ne[2].search(/[^ ]/),An=An>4?1:An,Ee=tn.slice(An),An+=ne[1].length);let Ri=!1;if(!tn&&/^ *$/.test(ln)&&(be+=ln+"\n",Y=Y.substring(ln.length+1),_t=!0),!_t){const _r=new RegExp(`^ {0,${Math.min(3,An-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),vr=new RegExp(`^ {0,${Math.min(3,An-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),dr=new RegExp(`^ {0,${Math.min(3,An-1)}}(?:\`\`\`|~~~)`),$r=new RegExp(`^ {0,${Math.min(3,An-1)}}#`);for(;Y;){const tr=Y.split("\n",1)[0];if(ln=tr,this.options.pedantic&&(ln=ln.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),dr.test(ln)||$r.test(ln)||_r.test(ln)||vr.test(Y))break;if(ln.search(/[^ ]/)>=An||!ln.trim())Ee+="\n"+ln.slice(An);else{if(Ri||tn.search(/[^ ]/)>=4||dr.test(tn)||$r.test(tn)||vr.test(tn))break;Ee+="\n"+ln}!Ri&&!ln.trim()&&(Ri=!0),be+=tr+"\n",Y=Y.substring(tr.length+1),tn=ln.slice(An)}}ve.loose||(pt?ve.loose=!0:/\n *\n *$/.test(be)&&(pt=!0));let Bn,Ti=null;this.options.gfm&&(Ti=/^\[[ xX]\] /.exec(Ee),Ti&&(Bn="[ ] "!==Ti[0],Ee=Ee.replace(/^\[[ xX]\] +/,""))),ve.items.push({type:"list_item",raw:be,task:!!Ti,checked:Bn,loose:!1,text:Ee,tokens:[]}),ve.raw+=be}
vendor: 4,942 bytes, line 1
1ve.items[ve.items.length-1].raw=be.trimEnd(),ve.items[ve.items.length-1].text=Ee.trimEnd(),ve.raw=ve.raw.trimEnd();for(let _t=0;_t<ve.items.length;_t++)if(this.lexer.state.top=!1,ve.items[_t].tokens=this.lexer.blockTokens(ve.items[_t].text,[]),!ve.loose){const tn=ve.items[_t].tokens.filter(An=>"space"===An.type),ln=tn.length>0&&tn.some(An=>/\n.*\n/.test(An.raw));ve.loose=ln}if(ve.loose)for(let _t=0;_t<ve.items.length;_t++)ve.items[_t].loose=!0;return ve}}html(Y){const ne=this.rules.block.html.exec(Y);if(ne)return{type:"html",block:!0,raw:ne[0],pre:"pre"===ne[1]||"script"===ne[1]||"style"===ne[1],text:ne[0]}}def(Y){const ne=this.rules.block.def.exec(Y);if(ne){const fe=ne[1].toLowerCase().replace(/\s+/g," "),Ke=ne[2]?ne[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",ve=ne[3]?ne[3].substring(1,ne[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):ne[3];return{type:"def",tag:fe,raw:ne[0],href:Ke,title:ve}}}table(Y){const ne=this.rules.block.table.exec(Y);if(!ne||!/[:|]/.test(ne[2]))return;const fe=Pe(ne[1]),Ke=ne[2].replace(/^\||\| *$/g,"").split("|"),ve=ne[3]&&ne[3].trim()?ne[3].replace(/\n[ \t]*$/,"").split("\n"):[],ye={type:"table",raw:ne[0],header:[],align:[],rows:[]};if(fe.length===Ke.length){for(const be of Ke)/^ *-+: *$/.test(be)?ye.align.push("right"):/^ *:-+: *$/.test(be)?ye.align.push("center"):/^ *:-+ *$/.test(be)?ye.align.push("left"):ye.align.push(null);for(const be of fe)ye.header.push({text:be,tokens:this.lexer.inline(be)});for(const be of ve)ye.rows.push(Pe(be,ye.header.length).map(Ee=>({text:Ee,tokens:this.lexer.inline(Ee)})));return ye}}lheading(Y){const ne=this.rules.block.lheading.exec(Y);if(ne)return{type:"heading",raw:ne[0],depth:"="===ne[2].charAt(0)?1:2,text:ne[1],tokens:this.lexer.inline(ne[1])}}paragraph(Y){const ne=this.rules.block.paragraph.exec(Y);if(ne){const fe="\n"===ne[1].charAt(ne[1].length-1)?ne[1].slice(0,-1):ne[1];return{type:"paragraph",raw:ne[0],text:fe,tokens:this.lexer.inline(fe)}}}text(Y){const ne=this.rules.block.text.exec(Y);if(ne)return{type:"text",raw:ne[0],text:ne[0],tokens:this.lexer.inline(ne[0])}}escape(Y){const ne=this.rules.inline.escape.exec(Y);if(ne)return{type:"escape",raw:ne[0],text:e(ne[1])}}tag(Y){const ne=this.rules.inline.tag.exec(Y);if(ne)return!this.lexer.state.inLink&&/^<a /i.test(ne[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(ne[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(ne[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ne[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:ne[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:ne[0]}}link(Y){const ne=this.rules.inline.link.exec(Y);if(ne){const fe=ne[2].trim();if(!this.options.pedantic&&/^</.test(fe)){if(!/>$/.test(fe))return;const ye=Qe(fe.slice(0,-1),"\\");if((fe.length-ye.length)%2==0)return}else{const ye=function ht(Ae,Y){if(-1===Ae.indexOf(Y[1]))return-1;let ne=0;for(let fe=0;fe<Ae.length;fe++)if("\\"===Ae[fe])fe++;else if(Ae[fe]===Y[0])ne++;else if(Ae[fe]===Y[1]&&(ne--,ne<0))return fe;return-1}(ne[2],"()");if(ye>-1){const Ee=(0===ne[0].indexOf("!")?5:4)+ne[1].length+ye;ne[2]=ne[2].substring(0,ye),ne[0]=ne[0].substring(0,Ee).trim(),ne[3]=""}}let Ke=ne[2],ve="";if(this.options.pedantic){const ye=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ke);ye&&(Ke=ye[1],ve=ye[3])}else ve=ne[3]?ne[3].slice(1,-1):"";return Ke=Ke.trim(),/^</.test(Ke)&&(Ke=this.options.pedantic&&!/>$/.test(fe)?Ke.slice(1):Ke.slice(1,-1)),ot(ne,{href:Ke&&Ke.replace(this.rules.inline.anyPunctuation,"$1"),title:ve&&ve.replace(this.rules.inline.anyPunctuation,"$1")},ne[0],this.lexer)}}reflink(Y,ne){let fe;if((fe=this.rules.inline.reflink.exec(Y))||(fe=this.rules.inline.nolink.exec(Y))){const ve=ne[(fe[2]||fe[1]).replace(/\s+/g," ").toLowerCase()];if(!ve){const ye=fe[0].charAt(0);return{type:"text",raw:ye,text:ye}}return ot(fe,ve,fe[0],this.lexer)}}emStrong(Y,ne,fe=""){let Ke=this.rules.inline.emStrongLDelim.exec(Y);if(!(!Ke||Ke[3]&&fe.match(/[\p{L}\p{N}]/u))&&(!Ke[1]&&!Ke[2]||!fe||this.rules.inline.punctuation.exec(fe))){const ye=[...Ke[0]].length-1;let be,Ee,pt=ye,_t=0;const tn="*"===Ke[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(tn.lastIndex=0,ne=ne.slice(-1*Y.length+ye);null!=(Ke=tn.exec(ne));){if(be=Ke[1]||Ke[2]||Ke[3]||Ke[4]||Ke[5]||Ke[6],!be)continue;if(Ee=[...be].length,Ke[3]||Ke[4]){pt+=Ee;continue}if((Ke[5]||Ke[6])&&ye%3&&!((ye+Ee)%3)){_t+=Ee;continue}if(pt-=Ee,pt>0)continue;Ee=Math.min(Ee,Ee+pt+_t);const ln=[...Ke[0]][0].length,An=Y.slice(0,ye+Ke.index+ln+Ee);if(Math.min(ye,Ee)%2){const Ti=An.slice(1,-1);return{type:"em",raw:An,text:Ti,tokens:this.lexer.inlineTokens(Ti)}}const Ri=An.slice(2,-2);return{type:"strong",raw:An,text:Ri,tokens:this.lexer.inlineTokens(Ri)}}}}codespan(Y){const ne=this.rules.inline.code.exec(Y);
vendor: 6,950 bytes, line 1
1if(ne){let fe=ne[2].replace(/\n/g," ");const Ke=/[^ ]/.test(fe),ve=/^ /.test(fe)&&/ $/.test(fe);return Ke&&ve&&(fe=fe.substring(1,fe.length-1)),fe=e(fe,!0),{type:"codespan",raw:ne[0],text:fe}}}br(Y){const ne=this.rules.inline.br.exec(Y);if(ne)return{type:"br",raw:ne[0]}}del(Y){const ne=this.rules.inline.del.exec(Y);if(ne)return{type:"del",raw:ne[0],text:ne[2],tokens:this.lexer.inlineTokens(ne[2])}}autolink(Y){const ne=this.rules.inline.autolink.exec(Y);if(ne){let fe,Ke;return"@"===ne[2]?(fe=e(ne[1]),Ke="mailto:"+fe):(fe=e(ne[1]),Ke=fe),{type:"link",raw:ne[0],text:fe,href:Ke,tokens:[{type:"text",raw:fe,text:fe}]}}}url(Y){let ne;if(ne=this.rules.inline.url.exec(Y)){let fe,Ke;if("@"===ne[2])fe=e(ne[0]),Ke="mailto:"+fe;else{let ve;do{ve=ne[0],ne[0]=this.rules.inline._backpedal.exec(ne[0])?.[0]??""}while(ve!==ne[0]);fe=e(ne[0]),Ke="www."===ne[1]?"http://"+ne[0]:ne[0]}return{type:"link",raw:ne[0],text:fe,href:Ke,tokens:[{type:"text",raw:fe,text:fe}]}}}inlineText(Y){const ne=this.rules.inline.text.exec(Y);if(ne){let fe;return fe=this.lexer.state.inRawBlock?ne[0]:e(ne[0]),{type:"text",raw:ne[0],text:fe}}}}const at=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Xe=/(?:[*+-]|\d{1,9}[.)])/,Mt=oe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Xe).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Et=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ct=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Gt=oe(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",ct).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Te=oe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Xe).getRegex(),Ze="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ne=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Je=oe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Ne).replace("tag",Ze).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Fe=oe(Et).replace("hr",at).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ze).getRegex(),ft={blockquote:oe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fe).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:Gt,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:at,html:Je,lheading:Mt,list:Te,newline:/^(?: *(?:\n|$))+/,paragraph:Fe,table:we,text:/^[^\n]+/},Re=oe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",at).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ze).getRegex(),rt={...ft,table:Re,paragraph:oe(Et).replace("hr",at).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Re).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ze).getRegex()},Ot={...ft,html:oe("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ne).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:we,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:oe(Et).replace("hr",at).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Mt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},It=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ue=/^( {2,}|\\)\n(?!\s*$)/,Oe="\\p{P}\\p{S}",Ue=oe(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Oe).getRegex(),Ve=oe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Oe).getRegex(),lt=oe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Oe).getRegex(),Rt=oe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Oe).getRegex(),nt=oe(/\\([punct])/,"gu").replace(/punct/g,Oe).getRegex(),xt=oe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),St=oe(Ne).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ht=oe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",St).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>
vendor: 7,716 bytes, line 1
1`]+)?/).getRegex(),Pt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,fn=oe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Pt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),kn=oe(/^!?\[(label)\]\[(ref)\]/).replace("label",Pt).replace("ref",ct).getRegex(),an=oe(/^!?\[(ref)\](?:\[\])?/).replace("ref",ct).getRegex(),wi={_backpedal:we,anyPunctuation:nt,autolink:xt,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:ue,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:we,emStrongLDelim:Ve,emStrongRDelimAst:lt,emStrongRDelimUnd:Rt,escape:It,link:fn,nolink:an,punctuation:Ue,reflink:kn,reflinkSearch:oe("reflink|nolink(?!\\()","g").replace("reflink",kn).replace("nolink",an).getRegex(),tag:Ht,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:we},$n={...wi,link:oe(/^!?\[(label)\]\((.*?)\)/).replace("label",Pt).getRegex(),reflink:oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Pt).getRegex()},Qn={...wi,escape:oe(It).replace("])","~|])").getRegex(),url:oe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Un={...Qn,br:oe(ue).replace("{2,}","*").getRegex(),text:oe(Qn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Wn={normal:ft,gfm:rt,pedantic:Ot},Oi={normal:wi,gfm:Qn,breaks:Un,pedantic:$n};class hn{tokens;options;state;tokenizer;inlineQueue;constructor(Y){this.tokens=[],this.tokens.links=Object.create(null),this.options=Y||w,this.options.tokenizer=this.options.tokenizer||new je,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const ne={block:Wn.normal,inline:Oi.normal};this.options.pedantic?(ne.block=Wn.pedantic,ne.inline=Oi.pedantic):this.options.gfm&&(ne.block=Wn.gfm,ne.inline=this.options.breaks?Oi.breaks:Oi.gfm),this.tokenizer.rules=ne}static get rules(){return{block:Wn,inline:Oi}}static lex(Y,ne){return new hn(ne).lex(Y)}static lexInline(Y,ne){return new hn(ne).inlineTokens(Y)}lex(Y){Y=Y.replace(/\r\n|\r/g,"\n"),this.blockTokens(Y,this.tokens);for(let ne=0;ne<this.inlineQueue.length;ne++){const fe=this.inlineQueue[ne];this.inlineTokens(fe.src,fe.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(Y,ne=[]){let fe,Ke,ve,ye;for(Y=this.options.pedantic?Y.replace(/\t/g,"    ").replace(/^ +$/gm,""):Y.replace(/^( *)(\t+)/gm,(be,Ee,pt)=>Ee+"    ".repeat(pt.length));Y;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(be=>!!(fe=be.call({lexer:this},Y,ne))&&(Y=Y.substring(fe.raw.length),ne.push(fe),!0)))){if(fe=this.tokenizer.space(Y)){Y=Y.substring(fe.raw.length),1===fe.raw.length&&ne.length>0?ne[ne.length-1].raw+="\n":ne.push(fe);continue}if(fe=this.tokenizer.code(Y)){Y=Y.substring(fe.raw.length),Ke=ne[ne.length-1],!Ke||"paragraph"!==Ke.type&&"text"!==Ke.type?ne.push(fe):(Ke.raw+="\n"+fe.raw,Ke.text+="\n"+fe.text,this.inlineQueue[this.inlineQueue.length-1].src=Ke.text);continue}if(fe=this.tokenizer.fences(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.heading(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.hr(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.blockquote(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.list(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.html(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.def(Y)){Y=Y.substring(fe.raw.length),Ke=ne[ne.length-1],!Ke||"paragraph"!==Ke.type&&"text"!==Ke.type?this.tokens.links[fe.tag]||(this.tokens.links[fe.tag]={href:fe.href,title:fe.title}):(Ke.raw+="\n"+fe.raw,Ke.text+="\n"+fe.raw,this.inlineQueue[this.inlineQueue.length-1].src=Ke.text);continue}if(fe=this.tokenizer.table(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.lheading(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(ve=Y,this.options.extensions&&this.options.extensions.startBlock){let be=1/0;const Ee=Y.slice(1);let pt;this.options.extensions.startBlock.forEach(_t=>{pt=_t.call({lexer:this},Ee),"number"==typeof pt&&pt>=0&&(be=Math.min(be,pt))}),be<1/0&&be>=0&&(ve=Y.substring(0,be+1))}if(this.state.top&&(fe=this.tokenizer.paragraph(ve))){Ke=ne[ne.length-1],ye&&"paragraph"===Ke.type?(Ke.raw+="\n"+fe.raw,Ke.text+="\n"+fe.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ke.text):ne.push(fe),ye=ve.length!==Y.length,Y=Y.substring(fe.raw.length);continue}if(fe=this.tokenizer.text(Y)){Y=Y.substring(fe.raw.length),Ke=ne[ne.length-1],Ke&&"text"===Ke.type?(Ke.raw+="\n"+fe.raw,Ke.text+="\n"+fe.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ke.text):ne.push(fe);continue}if(Y){const be="Infinite loop on byte: "+Y.charCodeAt(0);if(this.options.silent){console.error(be);break}throw new Error(be)}}return this.state.top=!0,ne}inline(Y,ne=[]){return this.inlineQueue.push({src:Y,tokens:ne}),ne}inlineTokens(Y,ne=[]){let fe,Ke,ve,be,Ee,pt,ye=Y;if(this.tokens.links){const _t=Object.keys(this.tokens.links);if(_t.length>0)for(;null!=(be=this.tokenizer.rules.inline.reflinkSearch.exec(ye));)_t.includes(be[0].slice(be[0].lastIndexOf("[")+1,-1))&&(ye=ye.slice(0,be.index)+"["+"a".repeat(be[0].length-2)+"]"+ye.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(be=this.tokenizer.rules.inline.blockSkip.exec(ye));)ye=ye.slice(0,be.index)+"["+"a".repeat(be[0].length-2)+"]"+ye.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(be=this.tokenizer.rules.inline.anyPunctuation.exec(ye));)ye=ye.slice(0,be.index)+"++"+ye.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;Y;)if(Ee||(pt=""),Ee=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(_t=>!!(fe=_t.call({lexer:this},Y,ne))&&(Y=Y.substring(fe.raw.length),ne.push(fe),!0)))){if(fe=this.tokenizer.escape(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.tag(Y)){Y=Y.substring(fe.raw.length),Ke=ne[ne.length-1],Ke&&"text"===fe.type&&"text"===Ke.type?(Ke.raw+=fe.raw,Ke.text+=fe.text):ne.push(fe);continue}if(fe=this.tokenizer.link(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.reflink(Y,this.tokens.links)){Y=Y.substring(fe.raw.length),Ke=ne[ne.length-1],Ke&&"text"===fe.type&&"text"===Ke.type?(Ke.raw+=fe.raw,Ke.text+=fe.text):ne.push(fe);continue}if(fe=this.tokenizer.emStrong(Y,ye,pt)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.codespan(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.br(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.del(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.autolink(Y)){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(!this.state.inLink&&(fe=this.tokenizer.url(Y))){Y=Y.substring(fe.raw.length),ne.push(fe);continue}if(ve=Y,this.options.extensions&&this.options.extensions.startInline){let _t=1/0;const tn=Y.slice(1);let ln;this.options.extensions.startInline.forEach(An=>{ln=An.call({lexer:this}
1,tn),"number"==typeof ln&&ln>=0&&(_t=Math.min(_t,ln))}),_t<1/0&&_t>=0&&(ve=Y.substring(0,_t+1))}if(fe=this.tokenizer.inlineText(ve)){Y=Y.substring(fe.raw.length),"_"!==fe.raw.slice(-1)&&(pt=fe.raw.slice(-1)),Ee=!0,Ke=ne[ne.length-1],Ke&&"text"===Ke.type?(Ke.raw+=fe.raw,Ke.text+=fe.text):ne.push(fe);continue}if(Y){const _t="Infinite loop on byte: "+Y.charCodeAt(0);if(this.options.silent){console.error(_t);break}throw new Error(_t)}}return ne}}class Mi{options;constructor(Y){this.options=Y||w}code(Y,ne,fe){const Ke=(ne||"").match(/^\S*/)?.[0];return Y=Y.replace(/\n$/,"")+"\n",Ke?'<pre><code class="language-'+e(Ke)+'">'+(fe?Y:e(Y,!0))+"</code></pre>\n":"<pre><code>"+(fe?Y:e(Y,!0))+"</code></pre>\n"}blockquote(Y){return`<blockquote>\n${Y}</blockquote>\n`}html(Y,ne){return Y}heading(Y,ne,fe){return`<h${ne}>${Y}</h${ne}>\n`}hr(){return"<hr>\n"}list(Y,ne,fe){const Ke=ne?"ol":"ul";return"<"+Ke+(ne&&1!==fe?' start="'+fe+'"':"")+">\n"+Y+"</"+Ke+">\n"}listitem(Y,ne,fe){return`<li>${Y}</li>\n`}checkbox(Y){return"<input "+(Y?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(Y){return`<p>${Y}</p>\n`}table(Y,ne){return ne&&(ne=`<tbody>${ne}</tbody>`),"<table>\n<thead>\n"+Y+"</thead>\n"+ne+"</table>\n"}tablerow(Y){return`<tr>\n${Y}</tr>\n`}tablecell(Y,ne){const fe=ne.header?"th":"td";return(ne.align?`<${fe} align="${ne.align}">`:`<${fe}>`)+Y+`</${fe}>\n`}strong(Y){return`<strong>${Y}</strong>`}em(Y){return`<em>${Y}</em>`}codespan(Y){return`<code>${Y}</code>`}br(){return"<br>"}del(Y){return`<del>${Y}</del>`}link(Y,ne,fe){const Ke=Ce(Y);if(null===Ke)return fe;let ve='<a href="'+(Y=Ke)+'"';return ne&&(ve+=' title="'+ne+'"'),ve+=">"+fe+"</a>",ve}image(Y,ne,fe){const Ke=Ce(Y);if(null===Ke)return fe;let ve=`<img src="${Y=Ke}" alt="${fe}"`;return ne&&(ve+=` title="${ne}"`),ve+=">",ve}text(Y){return Y}}class Fn{strong(Y){return Y}em(Y){return Y}codespan(Y){return Y}del(Y){return Y}html(Y){return Y}text(Y){return Y}link(Y,ne,fe){return""+fe}image(Y,ne,fe){return""+fe}br(){return""}}class xn{options;renderer;textRenderer;constructor(Y){this.options=Y||w,this.options.renderer=this.options.renderer||new Mi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Fn}static parse(Y,ne){return new xn(ne).parse(Y)}static parseInline(Y,ne){return new xn(ne).parseInline(Y)}parse(Y,ne=!0){let fe="";for(let Ke=0;Ke<Y.length;Ke++){const ve=Y[Ke];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ve.type]){const ye=ve,be=this.options.extensions.renderers[ye.type].call({parser:this},ye);if(!1!==be||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ye.type)){fe+=be||"";continue}}switch(ve.type){case"space":continue;case"hr":fe+=this.renderer.hr();continue;case"heading":{const ye=ve;fe+=this.renderer.heading(this.parseInline(ye.tokens),ye.depth,this.parseInline(ye.tokens,this.textRenderer).replace(K,(Y,ne)=>"colon"===(ne=ne.toLowerCase())?":":"#"===ne.charAt(0)?"x"===ne.charAt(1)?String.fromCharCode(parseInt(ne.substring(2),16)):String.fromCharCode(+ne.substring(1)):""));continue}case"code":fe+=this.renderer.code(ve.text,ve.lang,!!ve.escaped);continue;case"table":{const ye=ve;let be="",Ee="";for(let _t=0;_t<ye.header.length;_t++)Ee+=this.renderer.tablecell(this.parseInline(ye.header[_t].tokens),{header:!0,align:ye.align[_t]});be+=this.renderer.tablerow(Ee);let pt="";for(let _t=0;_t<ye.rows.length;_t++){const tn=ye.rows[_t];Ee="";for(let ln=0;ln<tn.length;ln++)Ee+=this.renderer.tablecell(this.parseInline(tn[ln].tokens),{header:!1,align:ye.align[ln]});pt+=this.renderer.tablerow(Ee)}fe+=this.renderer.table(be,pt);continue}case"blockquote":{const be=this.parse(ve.tokens);fe+=this.renderer.blockquote(be);continue}case"list":{const ye=ve,be=ye.ordered,Ee=ye.start,pt=ye.loose;let _t="";for(let tn=0;tn<ye.items.length;tn++){const ln=ye.items[tn],An=ln.checked,Ri=ln.task;let Ti="";if(ln.task){const Bn=this.renderer.checkbox(!!An);pt?ln.tokens.length>0&&"paragraph"===ln.tokens[0].type?(ln.tokens[0].text=Bn+" "+ln.tokens[0].text,ln.tokens[0].tokens&&ln.tokens[0].tokens.length>0&&"text"===ln.tokens[0].tokens[0].type&&(ln.tokens[0].tokens[0].text=Bn+" "+ln.tokens[0].tokens[0].text)):ln.tokens.unshift({type:"text",text:Bn+" "}):Ti+=Bn+" "}Ti+=this.parse(ln.tokens,pt),_t+=this.renderer.listitem(Ti,Ri,!!An)}fe+=this.renderer.list(_t,be,Ee);continue}case"html":fe+=this.renderer.html(ve.text,ve.block);continue;case"paragraph":fe+=this.renderer.paragraph(this.parseInline(ve.tokens));continue;case"text":{let ye=ve,be=ye.tokens?this.parseInline(ye.tokens):ye.text;for(;Ke+1<Y.length&&"text"===Y[Ke+1].type;)ye=Y[++Ke],be+="\n"+(ye.tokens?this.parseInline(ye.tokens):ye.text);fe+=ne?this.renderer.paragraph(be):be;continue}default:{const ye='Token with "'+ve.type+'" type was not found.';if(this.options.silent)return console.error(ye),"";throw new Error(ye)}}}return fe}parseInline(Y,ne){ne=ne||this.renderer;let fe="";for(let Ke=0;Ke<Y.length;Ke++){const ve=Y[Ke];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ve.type]){const ye=this.options.extensions.renderers[ve.type].call({parser:this},ve);if(!1!==ye||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(ve.type)){fe+=ye||"";continue}}switch(ve.type){case"escape":case"text":fe+=ne.text(ve.text);break;case"html":fe+=ne.html(ve.text);break;case"link":fe+=ne.link(ve.href,ve.title,this.parseInline(ve.tokens,ne));break;case"image":fe+=ne.image(ve.href,ve.title,ve.text);break;case"strong":fe+=ne.strong(this.parseInline(ve.tokens,ne));break;case"em":fe+=ne.em(this.parseInline(ve.tokens,ne));break;case"codespan":fe+=ne.codespan(ve.text);break;case"br":fe+=ne.br();break;case"del":fe+=ne.del(this.parseInline(ve.tokens,ne));break;default:{const ye='Token with "'+ve.type+'" type was not found.';if(this.options.silent)return console.error(ye),"";throw new Error(ye)}}}return fe}}class hi{options;constructor(Y){this.options=Y||w}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(Y){return Y}postprocess(Y){return Y}processAllTokens(Y){return Y}}const ri=new class Xn{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.#e(hn.lex,xn.parse);parseInline=this.#e(hn.lexInline,xn.parseInline);Parser=xn;Renderer=Mi;TextRenderer=Fn;Lexer=hn;Tokenizer=je;
vendor: 5,077 bytes, line 1
1Hooks=hi;constructor(...Y){this.use(...Y)}walkTokens(Y,ne){let fe=[];for(const Ke of Y)switch(fe=fe.concat(ne.call(this,Ke)),Ke.type){case"table":{const ve=Ke;for(const ye of ve.header)fe=fe.concat(this.walkTokens(ye.tokens,ne));for(const ye of ve.rows)for(const be of ye)fe=fe.concat(this.walkTokens(be.tokens,ne));break}case"list":fe=fe.concat(this.walkTokens(Ke.items,ne));break;default:{const ve=Ke;this.defaults.extensions?.childTokens?.[ve.type]?this.defaults.extensions.childTokens[ve.type].forEach(ye=>{const be=ve[ye].flat(1/0);fe=fe.concat(this.walkTokens(be,ne))}):ve.tokens&&(fe=fe.concat(this.walkTokens(ve.tokens,ne)))}}return fe}use(...Y){const ne=this.defaults.extensions||{renderers:{},childTokens:{}};return Y.forEach(fe=>{const Ke={...fe};if(Ke.async=this.defaults.async||Ke.async||!1,fe.extensions&&(fe.extensions.forEach(ve=>{if(!ve.name)throw new Error("extension name required");if("renderer"in ve){const ye=ne.renderers[ve.name];ne.renderers[ve.name]=ye?function(...be){let Ee=ve.renderer.apply(this,be);return!1===Ee&&(Ee=ye.apply(this,be)),Ee}:ve.renderer}if("tokenizer"in ve){if(!ve.level||"block"!==ve.level&&"inline"!==ve.level)throw new Error("extension level must be 'block' or 'inline'");const ye=ne[ve.level];ye?ye.unshift(ve.tokenizer):ne[ve.level]=[ve.tokenizer],ve.start&&("block"===ve.level?ne.startBlock?ne.startBlock.push(ve.start):ne.startBlock=[ve.start]:"inline"===ve.level&&(ne.startInline?ne.startInline.push(ve.start):ne.startInline=[ve.start]))}"childTokens"in ve&&ve.childTokens&&(ne.childTokens[ve.name]=ve.childTokens)}),Ke.extensions=ne),fe.renderer){const ve=this.defaults.renderer||new Mi(this.defaults);for(const ye in fe.renderer){if(!(ye in ve))throw new Error(`renderer '${ye}' does not exist`);if("options"===ye)continue;const Ee=fe.renderer[ye],pt=ve[ye];ve[ye]=(..._t)=>{let tn=Ee.apply(ve,_t);return!1===tn&&(tn=pt.apply(ve,_t)),tn||""}}Ke.renderer=ve}if(fe.tokenizer){const ve=this.defaults.tokenizer||new je(this.defaults);for(const ye in fe.tokenizer){if(!(ye in ve))throw new Error(`tokenizer '${ye}' does not exist`);if(["options","rules","lexer"].includes(ye))continue;const Ee=fe.tokenizer[ye],pt=ve[ye];ve[ye]=(..._t)=>{let tn=Ee.apply(ve,_t);return!1===tn&&(tn=pt.apply(ve,_t)),tn}}Ke.tokenizer=ve}if(fe.hooks){const ve=this.defaults.hooks||new hi;for(const ye in fe.hooks){if(!(ye in ve))throw new Error(`hook '${ye}' does not exist`);if("options"===ye)continue;const Ee=fe.hooks[ye],pt=ve[ye];ve[ye]=hi.passThroughHooks.has(ye)?_t=>{if(this.defaults.async)return Promise.resolve(Ee.call(ve,_t)).then(ln=>pt.call(ve,ln));const tn=Ee.call(ve,_t);return pt.call(ve,tn)}:(..._t)=>{let tn=Ee.apply(ve,_t);return!1===tn&&(tn=pt.apply(ve,_t)),tn}}Ke.hooks=ve}if(fe.walkTokens){const ve=this.defaults.walkTokens,ye=fe.walkTokens;Ke.walkTokens=function(be){let Ee=[];return Ee.push(ye.call(this,be)),ve&&(Ee=Ee.concat(ve.call(this,be))),Ee}}this.defaults={...this.defaults,...Ke}}),this}setOptions(Y){return this.defaults={...this.defaults,...Y},this}lexer(Y,ne){return hn.lex(Y,ne??this.defaults)}parser(Y,ne){return xn.parse(Y,ne??this.defaults)}#e(Y,ne){return(fe,Ke)=>{const ve={...Ke},ye={...this.defaults,...ve};!0===this.defaults.async&&!1===ve.async&&(ye.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),ye.async=!0);const be=this.#t(!!ye.silent,!!ye.async);if(typeof fe>"u"||null===fe)return be(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof fe)return be(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(fe)+", string expected"));if(ye.hooks&&(ye.hooks.options=ye),ye.async)return Promise.resolve(ye.hooks?ye.hooks.preprocess(fe):fe).then(Ee=>Y(Ee,ye)).then(Ee=>ye.hooks?ye.hooks.processAllTokens(Ee):Ee).then(Ee=>ye.walkTokens?Promise.all(this.walkTokens(Ee,ye.walkTokens)).then(()=>Ee):Ee).then(Ee=>ne(Ee,ye)).then(Ee=>ye.hooks?ye.hooks.postprocess(Ee):Ee).catch(be);try{ye.hooks&&(fe=ye.hooks.preprocess(fe));let Ee=Y(fe,ye);ye.hooks&&(Ee=ye.hooks.processAllTokens(Ee)),ye.walkTokens&&this.walkTokens(Ee,ye.walkTokens);let pt=ne(Ee,ye);return ye.hooks&&(pt=ye.hooks.postprocess(pt)),pt}catch(Ee){return be(Ee)}}}#t(Y,ne){return fe=>{if(fe.message+="\nPlease report this to https://github.com/markedjs/marked.",Y){const Ke="<p>An error occurred:</p><pre>"+e(fe.message+"",!0)+"</pre>";return ne?Promise.resolve(Ke):Ke}if(ne)return Promise.reject(fe);throw fe}}};function In(Ae,Y){return ri.parse(Ae,Y)}In.options=In.setOptions=function(Ae){return ri.setOptions(Ae),N(In.defaults=ri.defaults),In},In.getDefaults=function p(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},In.defaults=w,In.use=function(...Ae){return ri.use(...Ae),N(In.defaults=ri.defaults),In},In.walkTokens=function(Ae,Y){return ri.walkTokens(Ae,Y)},In.parseInline=ri.parseInline,In.Parser=xn,In.parser=xn.parse,In.Renderer=Mi,In.TextRenderer=Fn,In.Lexer=hn,In.lexer=hn.lex,In.Tokenizer=je,In.Hooks=
1hi,In.parse=In},9242:(en,Me,R)=>{"use strict";R.d(Me,{J:()=>ht,P1:()=>We,cm:()=>gt});var p=R(4438),w=R(177),N=R(7673),v=R(4412),ee=R(5964),l=R(9417);const W=new p.nKC("recaptcha-language"),B=new p.nKC("recaptcha-base-url"),T=new p.nKC("recaptcha-nonce-tag"),e=new p.nKC("recaptcha-settings"),K=new p.nKC("recaptcha-v3-site-key"),H=new p.nKC("recaptcha-loader-options"),Ce={loadScript:function pe(at,le,Xe,{url:Mt,lang:Et,nonce:Jt}={}){window.ng2recaptchaloaded=()=>{Xe(grecaptcha)};const ct=document.createElement("script");ct.innerHTML="";const{url:Gt,nonce:Te}=le(new URL(Mt||"https://www.google.com/recaptcha/api.js"));Gt.searchParams.set("render","explicit"===at?at:at.key),Gt.searchParams.set("onload","ng2recaptchaloaded"),Gt.searchParams.set("trustedtypes","true"),Et&&Gt.searchParams.set("hl",Et),ct.src=Gt.href;const Ze=Te||Jt;Ze&&ct.setAttribute("nonce",Ze),ct.async=!0,ct.defer=!0,document.head.appendChild(ct)},newLoadScript:function oe({v3SiteKey:at,onBeforeLoad:le,onLoaded:Xe}){Ce.loadScript(at?{key:at}:"explicit",le,Xe)}};let Pe=(()=>{class at{static#e=this.ready=null;constructor(Xe,Mt,Et,Jt,ct,Gt){this.platformId=Xe,this.language=Mt,this.baseUrl=Et,this.nonce=Jt,this.v3SiteKey=ct,this.options=Gt;const Te=this.init();this.ready=Te?function we(at){return at.asObservable().pipe((0,ee.p)(le=>null!==le))}(Te):(0,N.of)()}init(){if(at.ready)return at.ready;if(!(0,w.UE)(this.platformId))return;const Xe=new v.t(null);return at.ready=Xe,Ce.newLoadScript({v3SiteKey:this.v3SiteKey,onBeforeLoad:Mt=>{if(this.options?.onBeforeLoad)return this.options.onBeforeLoad(Mt);const Et=new URL(this.baseUrl??Mt);return this.language&&Et.searchParams.set("hl",this.language),{url:Et,nonce:this.nonce}},onLoaded:Mt=>{let Et=Mt;this.options?.onLoaded&&(Et=this.options.onLoaded(Mt)),Xe.next(Et)}}),Xe}static#t=this.\u0275fac=function(Mt){return new(Mt||at)(p.KVO(p.Agw),p.KVO(W,8),p.KVO(B,8),p.KVO(T,8),p.KVO(K,8),p.KVO(H,8))};static#n=this.\u0275prov=p.jDH({token:at,factory:at.\u0275fac})}return at})(),Qe=0,ht=(()=>{class at{constructor(Xe,Mt,Et,Jt){this.elementRef=Xe,this.loader=Mt,this.zone=Et,this.id="ngrecaptcha-"+Qe++,this.errorMode="default",this.resolved=new p.bkB,this.error=new p.bkB,this.errored=new p.bkB,Jt&&(this.siteKey=Jt.siteKey,this.theme=Jt.theme,this.type=Jt.type,this.size=Jt.size,this.badge=Jt.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(Xe=>{null!=Xe&&Xe.render instanceof Function&&(this.grecaptcha=Xe,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){"invisible"===this.size&&(null!=this.widget?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset())}get __unsafe_widgetValue(){return null!=this.widget?this.grecaptcha.getResponse(this.widget):null}expired(){this.resolved.emit(null)}onError(Xe){this.error.emit(Xe),this.errored.emit(Xe)}captchaResponseCallback(Xe){this.resolved.emit(Xe)}grecaptchaReset(){null!=this.widget&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){const Xe={badge:this.badge,callback:Mt=>{this.zone.run(()=>this.captchaResponseCallback(Mt))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};"handled"===this.errorMode&&(Xe["error-callback"]=(...Mt)=>{this.zone.run(()=>this.onError(Mt))}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,Xe),!0===this.executeRequested&&(this.executeRequested=!1,this.execute())}static#e=this.\u0275fac=function(Mt){return new(Mt||at)(p.rXU(p.aKT),p.rXU(Pe),p.rXU(p.SKi),p.rXU(e,8))};static#t=this.\u0275cmp=p.VBU({type:at,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(Mt,Et){2&Mt&&p.BMQ("id",Et.id)},inputs:{id:"id",siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabIndex:"tabIndex",badge:"badge",errorMode:"errorMode"},outputs:{resolved:"resolved",error:"error",errored:"errored"},exportAs:["reCaptcha"],decls:0,vars:0,template:function(Mt,Et){},encapsulation:2})}return at})(),ot=(()=>{class at{static#e=this.\u0275fac=function(Mt){return new(Mt||at)};static#t=this.\u0275mod=p.$C({type:at});static#n=this.\u0275inj=p.G2t({})}return at})(),gt=(()=>{class at{static#e=this.\u0275fac=function(Mt){return new(Mt||at)};static#t=this.\u0275mod=p.$C({type:at});static#n=this.\u0275inj=p.G2t({providers:[Pe],imports:[ot]})}return at})(),We=(()=>{class at{static#e=this.\u0275fac=function(Mt){return new(Mt||at)};static#t=this.\u0275mod=p.$C({type:at});static#n=this.\u0275inj=p.G2t({imports:[l.YN,ot]})}return at})()},6052:(en,Me,R)=>{"use strict";R.d(Me,{KE:()=>v_,Zu:()=>mf,Cl:()=>$m,VZ:()=>b1});var p=R(4438),w=R(9417),N=R(1413),v=R(4402),ee=R(7673),l=R(6977);const e=d=>{const n=(d=>{const n={};
vendor: 28,910 bytes, line 1
1return Object.keys(d).forEach(r=>{d[r]&&(n[r]=d[r])}),n})(d);return Object.entries(n).map(([r,a])=>`${(d=>d.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`))(r)}:${a}`).join(";")};class K extends Error{constructor(n){super(n),this.name=this.constructor.name}}function H(d){this.content=d}H.prototype={constructor:H,find:function(d){for(var n=0;n<this.content.length;n+=2)if(this.content[n]===d)return n;return-1},get:function(d){var n=this.find(d);return-1==n?void 0:this.content[n+1]},update:function(d,n,r){var a=r&&r!=d?this.remove(r):this,u=a.find(d),f=a.content.slice();return-1==u?f.push(r||d,n):(f[u+1]=n,r&&(f[u]=r)),new H(f)},remove:function(d){var n=this.find(d);if(-1==n)return this;var r=this.content.slice();return r.splice(n,2),new H(r)},addToStart:function(d,n){return new H([d,n].concat(this.remove(d).content))},addToEnd:function(d,n){var r=this.remove(d).content.slice();return r.push(d,n),new H(r)},addBefore:function(d,n,r){var a=this.remove(n),u=a.content.slice(),f=a.find(d);return u.splice(-1==f?u.length:f,0,n,r),new H(u)},forEach:function(d){for(var n=0;n<this.content.length;n+=2)d(this.content[n],this.content[n+1])},prepend:function(d){return(d=H.from(d)).size?new H(d.content.concat(this.subtract(d).content)):this},append:function(d){return(d=H.from(d)).size?new H(this.subtract(d).content.concat(d.content)):this},subtract:function(d){var n=this;d=H.from(d);for(var r=0;r<d.content.length;r+=2)n=n.remove(d.content[r]);return n},toObject:function(){var d={};return this.forEach(function(n,r){d[n]=r}),d},get size(){return this.content.length>>1}},H.from=function(d){if(d instanceof H)return d;var n=[];if(d)for(var r in d)n.push(r,d[r]);return new H(n)};const pe=H;function oe(d,n,r){for(let a=0;;a++){if(a==d.childCount||a==n.childCount)return d.childCount==n.childCount?null:r;let u=d.child(a),f=n.child(a);if(u!=f){if(!u.sameMarkup(f))return r;if(u.isText&&u.text!=f.text){for(let _=0;u.text[_]==f.text[_];_++)r++;return r}if(u.content.size||f.content.size){let _=oe(u.content,f.content,r+1);if(null!=_)return _}r+=u.nodeSize}else r+=u.nodeSize}}function Ce(d,n,r,a){for(let u=d.childCount,f=n.childCount;;){if(0==u||0==f)return u==f?null:{a:r,b:a};let _=d.child(--u),M=n.child(--f),O=_.nodeSize;if(_!=M){if(!_.sameMarkup(M))return{a:r,b:a};if(_.isText&&_.text!=M.text){let Q=0,de=Math.min(_.text.length,M.text.length);for(;Q<de&&_.text[_.text.length-Q-1]==M.text[M.text.length-Q-1];)Q++,r--,a--;return{a:r,b:a}}if(_.content.size||M.content.size){let Q=Ce(_.content,M.content,r-1,a-1);if(Q)return Q}r-=O,a-=O}else r-=O,a-=O}}class we{constructor(n,r){if(this.content=n,this.size=r||0,null==r)for(let a=0;a<n.length;a++)this.size+=n[a].nodeSize}nodesBetween(n,r,a,u=0,f){for(let _=0,M=0;M<r;_++){let O=this.content[_],Q=M+O.nodeSize;if(Q>n&&!1!==a(O,u+M,f||null,_)&&O.content.size){let de=M+1;O.nodesBetween(Math.max(0,n-de),Math.min(O.content.size,r-de),a,u+de)}M=Q}}descendants(n){this.nodesBetween(0,this.size,n)}textBetween(n,r,a,u){let f="",_=!0;return this.nodesBetween(n,r,(M,O)=>{M.isText?(f+=M.text.slice(Math.max(n,O)-O,r-O),_=!a):M.isLeaf?(u?f+="function"==typeof u?u(M):u:M.type.spec.leafText&&(f+=M.type.spec.leafText(M)),_=!a):!_&&M.isBlock&&(f+=a,_=!0)},0),f}append(n){if(!n.size)return this;if(!this.size)return n;let r=this.lastChild,a=n.firstChild,u=this.content.slice(),f=0;for(r.isText&&r.sameMarkup(a)&&(u[u.length-1]=r.withText(r.text+a.text),f=1);f<n.content.length;f++)u.push(n.content[f]);return new we(u,this.size+n.size)}cut(n,r=this.size){if(0==n&&r==this.size)return this;let a=[],u=0;if(r>n)for(let f=0,_=0;_<r;f++){let M=this.content[f],O=_+M.nodeSize;O>n&&((_<n||O>r)&&(M=M.isText?M.cut(Math.max(0,n-_),Math.min(M.text.length,r-_)):M.cut(Math.max(0,n-_-1),Math.min(M.content.size,r-_-1))),a.push(M),u+=M.nodeSize),_=O}return new we(a,u)}cutByIndex(n,r){return n==r?we.empty:0==n&&r==this.content.length?this:new we(this.content.slice(n,r))}replaceChild(n,r){let a=this.content[n];if(a==r)return this;let u=this.content.slice(),f=this.size+r.nodeSize-a.nodeSize;return u[n]=r,new we(u,f)}addToStart(n){return new we([n].concat(this.content),this.size+n.nodeSize)}addToEnd(n){return new we(this.content.concat(n),this.size+n.nodeSize)}eq(n){if(this.content.length!=n.content.length)return!1;for(let r=0;r<this.content.length;r++)if(!this.content[r].eq(n.content[r]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(n){let r=this.content[n];if(!r)throw new RangeError("Index "+n+" out of range for "+this);return r}maybeChild(n){return this.content[n]||null}forEach(n){for(let r=0,a=0;r<this.content.length;r++){let u=this.content[r];n(u,a,r),a+=u.nodeSize}}findDiffStart(n,r=0){return oe(this,n,r)}findDiffEnd(n,r=this.size,a=n.size){return Ce(this,n,r,a)}findIndex(n,r=-1){if(0==n)return Qe(0,n);if(n==this.size)return Qe(this.content.length,n);if(n>this.size||n<0)throw new RangeError(`Position ${n} outside of fragment (${this})`);for(let a=0,u=0;;a++){let _=u+this.child(a).nodeSize;if(_>=n)return _==n||r>0?Qe(a+1,_):Qe(a,u);u=_}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(n=>n.toJSON()):null}static fromJSON(n,r){if(!r)return we.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return new we(r.map(n.nodeFromJSON))}static fromArray(n){if(!n.length)return we.empty;let r,a=0;for(let u=0;u<n.length;u++){let f=n[u];a+=f.nodeSize,u&&f.isText&&n[u-1].sameMarkup(f)?(r||(r=n.slice(0,u)),r[r.length-1]=f.withText(r[r.length-1].text+f.text)):r&&r.push(f)}return new we(r||n,a)}static from(n){if(!n)return we.empty;if(n instanceof we)return n;if(Array.isArray(n))return this.fromArray(n);if(n.attrs)return new we([n],n.nodeSize);throw new RangeError("Can not convert "+n+" to a Fragment"+(n.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}we.empty=new we([],0);const Pe={index:0,offset:0};function Qe(d,n){return Pe.index=d,Pe.offset=n,Pe}function ht(d,n){if(d===n)return!0;if(!d||"object"!=typeof d||!n||"object"!=typeof n)return!1;let r=Array.isArray(d);if(Array.isArray(n)!=r)return!1;if(r){if(d.length!=n.length)return!1;for(let a=0;a<d.length;a++)if(!ht(d[a],n[a]))return!1}else{for(let a in d)if(!(a in n)||!ht(d[a],n[a]))return!1;for(let a in n)if(!(a in d))return!1}return!0}let ot=(()=>{class d{constructor(r,a){this.type=r,this.attrs=a}addToSet(r){let a,u=!1;for(let f=0;f<r.length;f++){let _=r[f];if(this.eq(_))return r;if(this.type.excludes(_.type))a||(a=r.slice(0,f));else{if(_.type.excludes(this.type))return r;!u&&_.type.rank>this.type.rank&&(a||(a=r.slice(0,f)),a.push(this),u=!0),a&&a.push(_)}}return a||(a=r.slice()),u||a.push(this),a}removeFromSet(r){for(let a=0;a<r.length;a++)if(this.eq(r[a]))return r.slice(0,a).concat(r.slice(a+1));return r}isInSet(r){for(let a=0;a<r.length;a++)if(this.eq(r[a]))return!0;return!1}eq(r){return this==r||this.type==r.type&&ht(this.attrs,r.attrs)}toJSON(){let r={type:this.type.name};for(let a in this.attrs){r.attrs=this.attrs;break}return r}static fromJSON(r,a){if(!a)throw new RangeError("Invalid input for Mark.fromJSON");let u=r.marks[a.type];if(!u)throw new RangeError(`There is no mark type ${a.type} in this schema`);return u.create(a.attrs)}static sameSet(r,a){if(r==a)return!0;if(r.length!=a.length)return!1;for(let u=0;u<r.length;u++)if(!r[u].eq(a[u]))return!1;return!0}static setFrom(r){if(!r||Array.isArray(r)&&0==r.length)return d.none;if(r instanceof d)return[r];let a=r.slice();return a.sort((u,f)=>u.type.rank-f.type.rank),a}}return d.none=[],d})();class gt extends Error{}class je{constructor(n,r,a){this.content=n,this.openStart=r,this.openEnd=a}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(n,r){let a=kt(this.content,n+this.openStart,r);return a&&new je(a,this.openStart,this.openEnd)}removeBetween(n,r){return new je(Ct(this.content,n+this.openStart,r+this.openStart),this.openStart,this.openEnd)}eq(n){return this.content.eq(n.content)&&this.openStart==n.openStart&&this.openEnd==n.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let n={content:this.content.toJSON()};return this.openStart>0&&(n.openStart=this.openStart),this.openEnd>0&&(n.openEnd=this.openEnd),n}static fromJSON(n,r){if(!r)return je.empty;let a=r.openStart||0,u=r.openEnd||0;if("number"!=typeof a||"number"!=typeof u)throw new RangeError("Invalid input for Slice.fromJSON");return new je(we.fromJSON(n,r.content),a,u)}static maxOpen(n,r=!0){let a=0,u=0;for(let f=n.firstChild;f&&!f.isLeaf&&(r||!f.type.spec.isolating);f=f.firstChild)a++;for(let f=n.lastChild;f&&!f.isLeaf&&(r||!f.type.spec.isolating);f=f.lastChild)u++;return new je(n,a,u)}}function Ct(d,n,r){let{index:a,offset:u}=d.findIndex(n),f=d.maybeChild(a),{index:_,offset:M}=d.findIndex(r);if(u==n||f.isText){if(M!=r&&!d.child(_).isText)throw new RangeError("Removing non-flat range");return d.cut(0,n).append(d.cut(r))}if(a!=_)throw new RangeError("Removing non-flat range");return d.replaceChild(a,f.copy(Ct(f.content,n-u-1,r-u-1)))}function kt(d,n,r,a){let{index:u,offset:f}=d.findIndex(n),_=d.maybeChild(u);if(f==n||_.isText)return a&&!a.canReplace(u,u,r)?null:d.cut(0,n).append(r).append(d.cut(n));let M=kt(_.content,n-f-1,r);return M&&d.replaceChild(u,_.copy(M))}function We(d,n,r){if(r.openStart>d.depth)throw new gt("Inserted content deeper than insertion position");if(d.depth-r.openStart!=n.depth-r.openEnd)throw new gt("Inconsistent open depths");return at(d,n,r,0)}function at(d,n,r,a){let u=d.index(a),f=d.node(a);if(u==n.index(a)&&a<d.depth-r.openStart){let _=at(d,n,r,a+1);return f.copy(f.content.replaceChild(u,_))}if(r.content.size){if(r.openStart||r.openEnd||d.depth!=a||n.depth!=a){let{start:_,end:M}=function Te(d,n){let r=n.depth-d.openStart,u=n.node(r).copy(d.content);for(let f=r-1;f>=0;f--)u=n.node(f).copy(we.from(u));return{start:u.resolveNoCache(d.openStart+r),end:u.resolveNoCache(u.content.size-d.openEnd-r)}}(r,d);return Jt(f,ct(d,_,M,n,a))}{let _=d.parent,M=_.content;return Jt(_,M.cut(0,d.parentOffset).append(r.content).append(M.cut(n.parentOffset)))}}return Jt(f,Gt(d,n,a))}function le(d,n){if(!n.type.compatibleContent(d.type))throw new gt("Cannot join "+n.type.name+" onto "+d.type.name)}function Xe(d,n,r){let a=d.node(r);return le(a,n.node(r)),a}function Mt(d,n){let r=n.length-1;r>=0&&d.isText&&d.sameMarkup(n[r])?n[r]=d.withText(n[r].text+d.text):n.push(d)}function Et(d,n,r,a){let u=(n||d).node(r),f=0,_=n?n.index(r):u.childCount;d&&(f=d.index(r),d.depth>r?f++:d.textOffset&&(Mt(d.nodeAfter,a),f++));for(let M=f;M<_;M++)Mt(u.child(M),a);n&&n.depth==r&&n.textOffset&&Mt(n.nodeBefore,a)}function Jt(d,n){return d.type.checkContent(n),d.copy(n)}function ct(d,n,r,a,u){let f=d.depth>u&&Xe(d,n,u+1),_=a.depth>u&&Xe(r,a,u+1),M=[];return Et(null,d,u,M),f&&_&&n.index(u)==r.index(u)?(le(f,_),Mt(Jt(f,ct(d,n,r,a,u+1)),M)):(f&&Mt(Jt(f,Gt(d,n,u+1)),M),Et(n,r,u,M),_&&Mt(Jt(_,Gt(r,a,u+1)),M)),Et(a,null,u,M),new we(M)}function Gt(d,n,r){let a=[];return Et(null,d,r,a),d.depth>r&&Mt(Jt(Xe(d,n,r+1),Gt(d,n,r+1)),a),Et(n,null,r,a),new we(a)}je.empty=new je(we.empty,0,0);class Ze{constructor(n,r,a){this.pos=n,this.path=r,this.parentOffset=a,this.depth=r.length/3-1}resolveDepth(n){return null==n?this.depth:n<0?this.depth+n:n}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(n){return this.path[3*this.resolveDepth(n)]}index(n){return this.path[3*this.resolveDepth(n)+1]}indexAfter(n){return n=this.resolveDepth(n),this.index(n)+(n!=this.depth||this.textOffset?1:0)}start(n){return 0==(n=this.resolveDepth(n))?0:this.path[3*n-1]+1}end(n){return n=this.resolveDepth(n),this.start(n)+this.node(n).content.size}before(n){if(!(n=this.resolveDepth(n)))throw new RangeError("There is no position before the top-level node");return n==this.depth+1?this.pos:this.path[3*n-1]}after(n){if(!(n=this.resolveDepth(n)))throw new RangeError("There is no position after the top-level node");return n==this.depth+1?this.pos:this.path[3*n-1]+this.path[3*n].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let n=this.parent,r=this.index(this.depth);if(r==n.childCount)return null;let a=this.pos-this.path[this.path.length-1],u=n.child(r);return a?n.child(r).cut(a):u}get nodeBefore(){let n=this.index(this.depth),r=this.pos-this.path[this.path.length-1];return r?this.parent.child(n).cut(0,r):0==n?null:this.parent.child(n-1)}posAtIndex(n,r){r=this.resolveDepth(r);let a=this.path[3*r],u=0==r?0:this.path[3*r-1]+1;for(let f=0;f<n;f++)u+=a.child(f).nodeSize;return u}marks(){let n=this.parent,r=this.index();if(0==n.content.size)return ot.none;if(this.textOffset)return n.child(r).marks;let a=n.maybeChild(r-1),u=n.maybeChild(r);if(!a){let M=a;a=u,u=M}let f=a.marks;for(var _=0;_<f.length;_++)!1===f[_].type.spec.inclusive&&(!u||!f[_].isInSet(u.marks))&&(f=f[_--].removeFromSet(f));return f}marksAcross(n){let r=this.parent.maybeChild(this.index());if(!r||!r.isInline)return null;let a=r.marks,u=n.parent.maybeChild(n.index());for(var f=0;f<a.length;f++)!1===a[f].type.spec.inclusive&&(!u||!a[f].isInSet(u.marks))&&(a=a[f--].removeFromSet(a));return a}sharedDepth(n){for(let r=this.depth;r>0;r--)if(this.start(r)<=n&&this.end(r)>=n)return r;return 0}blockRange(n=this,r){if(n.pos<this.pos)return n.blockRange(this);for(let a=this.depth-(this.parent.inlineContent||this.pos==n.pos?1:0);a>=0;a--)if(n.pos<=this.end(a)&&(!r||r(this.node(a))))return new ze(this,n,a);return null}sameParent(n){return this.pos-this.parentOffset==n.pos-n.parentOffset}max(n){return n.pos>this.pos?n:this}min(n){return n.pos<this.pos?n:this}toString(){let n="";for(let r=1;r<=this.depth;r++)n+=(n?"/":"")+this.node(r).type.name+"_"+this.index(r-1);return n+":"+this.parentOffset}static resolve(n,r){if(!(r>=0&&r<=n.content.size))throw new RangeError("Position "+r+" out of range");let a=[],u=0,f=r;for(let _=n;;){let{index:M,offset:O}=_.content.findIndex(f),Q=f-O;if(a.push(_,M,u+O),!Q||(_=_.child(M),_.isText))break;f=Q-1,u+=O+1}return new Ze(r,a,f)}static resolveCached(n,r){for(let u=0;u<Ne.length;u++){let f=Ne[u];if(f.pos==r&&f.doc==n)return f}let a=Ne[Je]=Ze.resolve(n,r);return Je=(Je+1)%Fe,a}}let Ne=[],Je=0,Fe=12;class ze{constructor(n,r,a){this.$from=n,this.$to=r,this.depth=a}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const ft=Object.create(null);class Re{constructor(n,r,a,u=ot.none){this.type=n,this.attrs=r,this.marks=u,this.content=a||we.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(n){return this.content.child(n)}maybeChild(n){return this.content.maybeChild(n)}forEach(n){this.content.forEach(n)}nodesBetween(n,r,a,u=0){this.content.nodesBetween(n,r,a,u,this)}descendants(n){this.nodesBetween(0,this.content.size,n)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(n,r,a,u){return this.content.textBetween(n,r,a,u)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(n){return this==n||this.sameMarkup(n)&&this.content.eq(n.content)}sameMarkup(n){return this.hasMarkup(n.type,n.attrs,n.marks)}hasMarkup(n,r,a){return this.type==n&&ht(this.attrs,r||n.defaultAttrs||ft)&&ot.sameSet(this.marks,a||ot.none)}copy(n=null){return n==this.content?this:new Re(this.type,this.attrs,n,this.marks)}mark(n){return n==this.marks?this:new Re(this.type,this.attrs,this.content,n)}cut(n,r=this.content.size){return 0==n&&r==this.content.size?this:this.copy(this.content.cut(n,r))}slice(n,r=this.content.size,a=!1){if(n==r)return je.empty;let u=this.resolve(n),f=this.resolve(r),_=a?0:u.sharedDepth(r),M=u.start(_),Q=u.node(_).content.cut(u.pos-M,f.pos-M);return new je(Q,u.depth-_,f.depth-_)}replace(n,r,a){return We(this.resolve(n),this.resolve(r),a)}nodeAt(n){for(let r=this;;){let{index:a,offset:u}=r.content.findIndex(n);if(r=r.maybeChild(a),!r)return null;if(u==n||r.isText)return r;n-=u+1}}childAfter(n){let{index:r,offset:a}=this.content.findIndex(n);return{node:this.content.maybeChild(r),index:r,offset:a}}childBefore(n){if(0==n)return{node:null,index:0,offset:0};let{index:r,offset:a}=this.content.findIndex(n);if(a<n)return{node:this.content.child(r),index:r,offset:a};let u=this.content.child(r-1);return{node:u,index:r-1,offset:a-u.nodeSize}}resolve(n){return Ze.resolveCached(this,n)}resolveNoCache(n){return Ze.resolve(this,n)}rangeHasMark(n,r,a){let u=!1;return r>n&&this.nodesBetween(n,r,f=>(a.isInSet(f.marks)&&(u=!0),!u)),u}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let n=this.type.name;return this.content.size&&(n+="("+this.content.toStringInner()+")"),Ot(this.marks,n)}contentMatchAt(n){let r=this.type.contentMatch.matchFragment(this.content,0,n);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r}canReplace(n,r,a=we.empty,u=0,f=a.childCount){let _=this.contentMatchAt(n).matchFragment(a,u,f),M=_&&_.matchFragment(this.content,r);if(!M||!M.validEnd)return!1;for(let O=u;O<f;O++)if(!this.type.allowsMarks(a.child(O).marks))return!1;return!0}canReplaceWith(n,r,a,u){if(u&&!this.type.allowsMarks(u))return!1;let f=this.contentMatchAt(n).matchType(a),_=f&&f.matchFragment(this.content,r);return!!_&&_.validEnd}canAppend(n){return n.content.size?this.canReplace(this.childCount,this.childCount,n.content):this.type.compatibleContent(n.type)}check(){this.type.checkContent(this.content);let n=ot.none;for(let r=0;r<this.marks.length;r++)n=this.marks[r].addToSet(n);if(!ot.sameSet(n,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(r=>r.type.name)}`);this.content.forEach(r=>r.check())}toJSON(){let n={type:this.type.name};for(let r in this.attrs){n.attrs=this.attrs;break}return this.content.size&&(n.content=this.content.toJSON()),this.marks.length&&(n.marks=this.marks.map(r=>r.toJSON())),n}static fromJSON(n,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");let a=null;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");a=r.marks.map(n.markFromJSON)}if("text"==r.type){if("string"!=typeof r.text)throw new RangeError("Invalid text node in JSON");return n.text(r.text,a)}let u=we.fromJSON(n,r.content);return n.nodeType(r.type).create(r.attrs,u,a)}}Re.prototype.text=void 0;class rt extends Re{constructor(n,r,a,u){if(super(n,r,null,u),!a)throw new RangeError("Empty text nodes are not allowed");this.text=a}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ot(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(n,r){return this.text.slice(n,r)}get nodeSize(){return this.text.length}mark(n){return n==this.marks?this:new rt(this.type,this.attrs,this.text,n)}withText(n){return n==this.text?this:new rt(this.type,this.attrs,n,this.marks)}cut(n=0,r=this.text.length){return 0==n&&r==this.text.length?this:this.withText(this.text.slice(n,r))}eq(n){return this.sameMarkup(n)&&this.text==n.text}toJSON(){let n=super.toJSON();return n.text=this.text,n}}function Ot(d,n){for(let r=d.length-1;r>=0;r--)n=d[r].type.name+"("+n+")";return n}class It{constructor(n){this.validEnd=n,this.next=[],this.wrapCache=[]}static parse(n,r){let a=new on(n,r);if(null==a.next)return It.empty;let u=ue(a);a.next&&a.err("Unexpected trailing text");let f=function St(d){let n=Object.create(null);return function r(a){let u=[];a.forEach(_=>{d[_].forEach(({term:M,to:O})=>{if(!M)return;let Q;for(let de=0;de<u.length;de++)u[de][0]==M&&(Q=u[de][1]);xt(d,O).forEach(de=>{Q||u.push([M,Q=[]]),-1==Q.indexOf(de)&&Q.push(de)})})});let f=n[a.join(",")]=new It(a.indexOf(d.length-1)>-1);for(let _=0;_<u.length;_++){let M=u[_][1].sort(nt);f.next.push({type:u[_][0],next:n[M.join(",")]||r(M)})}return f}(xt(d,0))}(function Rt(d){let n=[[]];return u(function f(_,M){if("choice"==_.type)return _.exprs.reduce((O,Q)=>O.concat(f(Q,M)),[]);if("seq"!=_.type){if("star"==_.type){let O=r();return a(M,O),u(f(_.expr,O),O),[a(O)]}if("plus"==_.type){let O=r();return u(f(_.expr,M),O),u(f(_.expr,O),O),[a(O)]}if("opt"==_.type)return[a(M)].concat(f(_.expr,M));if("range"==_.type){let O=M;for(let Q=0;Q<_.min;Q++){let de=r();u(f(_.expr,O),de),O=de}if(-1==_.max)u(f(_.expr,O),O);else for(let Q=_.min;Q<_.max;Q++){let de=r();a(O,de),u(f(_.expr,O),de),O=de}return[a(O)]}if("name"==_.type)return[a(M,void 0,_.value)];throw new Error("Unknown expr type")}for(let O=0;;O++){let Q=f(_.exprs[O],M);if(O==_.exprs.length-1)return Q;u(Q,M=r())}}(d,0),r()),n;function r(){return n.push([])-1}function a(_,M,O){let Q={term:O,to:M};return n[_].push(Q),Q}function u(_,M){_.forEach(O=>O.to=M)}}(u));return function Ht(d,n){for(let r=0,a=[d];r<a.length;r++){let u=a[r],f=!u.validEnd,_=[];for(let M=0;M<u.next.length;M++){let{type:O,next:Q}=u.next[M];_.push(O.name),f&&!(O.isText||O.hasRequiredAttrs())&&(f=!1),-1==a.indexOf(Q)&&a.push(Q)}f&&n.err("Only non-generatable nodes ("+_.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(f,a),f}matchType(n){for(let r=0;r<this.next.length;r++)if(this.next[r].type==n)return this.next[r].next;return null}matchFragment(n,r=0,a=n.childCount){let u=this;for(let f=r;u&&f<a;f++)u=u.matchType(n.child(f).type);return u}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let n=0;n<this.next.length;n++){let{type:r}=this.next[n];if(!r.isText&&!r.hasRequiredAttrs())return r}return null}compatible(n){for(let r=0;r<this.next.length;r++)for(let a=0;a<n.next.length;a++)if(this.next[r].type==n.next[a].type)return!0;return!1}fillBefore(n,r=!1,a=0){let u=[this];return function f(_,M){let O=_.matchFragment(n,a);if(O&&(!r||O.validEnd))return we.from(M.map(Q=>Q.createAndFill()));for(let Q=0;Q<_.next.length;Q++){let{type:de,next:Ye}=_.next[Q];if(!de.isText&&!de.hasRequiredAttrs()&&-1==u.indexOf(Ye)){u.push(Ye);let ut=f(Ye,M.concat(de));if(ut)return ut}}return null}(this,[])}findWrapping(n){for(let a=0;a<this.wrapCache.length;a+=2)if(this.wrapCache[a]==n)return this.wrapCache[a+1];let r=this.computeWrapping(n);return this.wrapCache.push(n,r),r}computeWrapping(n){let r=Object.create(null),a=[{match:this,type:null,via:null}];for(;a.length;){let u=a.shift(),f=u.match;if(f.matchType(n)){let _=[];for(let M=u;M.type;M=M.via)_.push(M.type);return _.reverse()}for(let _=0;_<f.next.length;_++){let{type:M,next:O}=f.next[_];!M.isLeaf&&!M.hasRequiredAttrs()&&!(M.name in r)&&(!u.type||O.validEnd)&&(a.push({match:M.contentMatch,type:M,via:u}),r[M.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(n){if(n>=this.next.length)throw new RangeError(`There's no ${n}th edge in this content match`);return this.next[n]}toString(){let n=[];return function r(a){n.push(a);for(let u=0;u<a.next.length;u++)-1==n.indexOf(a.next[u].next)&&r(a.next[u].next)}(this),n.map((a,u)=>{let f=u+(a.validEnd?"*":" ")+" ";for(let _=0;_<a.next.length;_++)f+=(_?", ":"")+a.next[_].type.name+"->"+n.indexOf(a.next[_].next);return f}).join("\n")}}It.empty=new It(!0);class on{constructor(n,r){this.string=n,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=n.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(n){return this.next==n&&(this.pos++||!0)}err(n){throw new SyntaxError(n+" (in content expression '"+this.string+"')")}}function ue(d){let n=[];do{n.push(U(d))}while(d.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}function U(d){let n=[];do{n.push(Oe(d))}while(d.next&&")"!=d.next&&"|"!=d.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}function Oe(d){let n=function lt(d){if(d.eat("(")){let n=ue(d);return d.eat(")")||d.err("Missing closing paren"),n}if(!/\W/.test(d.next)){let n=function Ve(d,n){let r=d.nodeTypes,a=r[n];if(a)return[a];let u=[];for(let f in r){let _=r[f];_.groups.indexOf(n)>-1&&u.push(_)}return 0==u.length&&d.err("No node type or group '"+n+"' found"),u}(d,d.next).map(r=>(null==d.inline?d.inline=r.isInline:d.inline!=r.isInline&&d.err("Mixing inline and block content"),{type:"name",value:r}));return d.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}d.err("Unexpected token '"+d.next+"'")}(d);for(;;)if(d.eat("+"))n={type:"plus",expr:n};else if(d.eat("*"))n={type:"star",expr:n};else if(d.eat("?"))n={type:"opt",expr:n};else{if(!d.eat("{"))break;n=$e(d,n)}return n}function Ue(d){/\D/.test(d.next)&&d.err("Expected number, got '"+d.next+"'");let n=Number(d.next);return d.pos++,n}function $e(d,n){let r=Ue(d),a=r;return d.eat(",")&&(a="}"!=d.next?Ue(d):-1),d.eat("}")||d.err("Unclosed braced range"),{type:"range",min:r,max:a,expr:n}}function nt(d,n){return n-d}function xt(d,n){let r=[];return function a(u){let f=d[u];if(1==f.length&&!f[0].term)return a(f[0].to);r.push(u);for(let _=0;_<f.length;_++){let{term:M,to:O}=f[_];!M&&-1==r.indexOf(O)&&a(O)}}(n),r.sort(nt)}function Pt(d){let n=Object.create(null);for(let r in d){let a=d[r];if(!a.hasDefault)return null;n[r]=a.default}return n}function fn(d,n){let r=Object.create(null);for(let a in d){let u=n&&n[a];if(void 0===u){let f=d[a];if(!f.hasDefault)throw new RangeError("No value supplied for attribute "+a);u=f.default}r[a]=u}return r}function kn(d){let n=Object.create(null);if(d)for(let r in d)n[r]=new qt(d[r]);return n}class an{constructor(n,r,a){this.name=n,this.schema=r,this.spec=a,this.markSet=null,this.groups=a.group?a.group.split(" "):[],this.attrs=kn(a.attrs),this.defaultAttrs=Pt(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(a.inline||"text"==n),this.isText="text"==n}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==It.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let n in this.attrs)if(this.attrs[n].isRequired)return!0;return!1}compatibleContent(n){return this==n||this.contentMatch.compatible(n.contentMatch)}computeAttrs(n){return!n&&this.defaultAttrs?this.defaultAttrs:fn(this.attrs,n)}create(n=null,r,a){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Re(this,this.computeAttrs(n),we.from(r),ot.setFrom(a))}createChecked(n=null,r,a){return r=we.from(r),this.checkContent(r),new Re(this,this.computeAttrs(n),r,ot.setFrom(a))}createAndFill(n=null,r,a){if(n=this.computeAttrs(n),(r=we.from(r)).size){let _=this.contentMatch.fillBefore(r);if(!_)return null;r=_.append(r)}let u=this.contentMatch.matchFragment(r),f=u&&u.fillBefore(we.empty,!0);return f?new Re(this,n,r.append(f),ot.setFrom(a)):null}validContent(n){let r=this.contentMatch.matchFragment(n);if(!r||!r.validEnd)return!1;for(let a=0;a<n.childCount;a++)if(!this.allowsMarks(n.child(a).marks))return!1;return!0}checkContent(n){if(!this.validContent(n))throw new RangeError(`Invalid content for node ${this.name}: ${n.toString().slice(0,50)}`)}allowsMarkType(n){return null==this.markSet||this.markSet.indexOf(n)>-1}allowsMarks(n){if(null==this.markSet)return!0;for(let r=0;r<n.length;r++)if(!this.allowsMarkType(n[r].type))return!1;return!0}allowedMarks(n){if(null==this.markSet)return n;let r;for(let a=0;a<n.length;a++)this.allowsMarkType(n[a].type)?r&&r.push(n[a]):r||(r=n.slice(0,a));return r?r.length?r:ot.none:n}static compile(n,r){let a=Object.create(null);n.forEach((f,_)=>a[f]=new an(f,r,_));let u=r.spec.topNode||"doc";if(!a[u])throw new RangeError("Schema is missing its top node type ('"+u+"')");if(!a.text)throw new RangeError("Every schema needs a 'text' type");for(let f in a.text.attrs)throw new RangeError("The text node type should not have attributes");return a}}class qt{constructor(n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default}get isRequired(){return!this.hasDefault}}class wi{constructor(n,r,a,u){this.name=n,this.rank=r,this.schema=a,this.spec=u,this.attrs=kn(u.attrs),this.excluded=null;let f=Pt(this.attrs);this.instance=f?new ot(this,f):null}create(n=null){return!n&&this.instance?this.instance:new ot(this,fn(this.attrs,n))}static compile(n,r){let a=Object.create(null),u=0;
vendor: 1,595 bytes, line 1
1return n.forEach((f,_)=>a[f]=new wi(f,u++,r,_)),a}removeFromSet(n){for(var r=0;r<n.length;r++)n[r].type==this&&(n=n.slice(0,r).concat(n.slice(r+1)),r--);return n}isInSet(n){for(let r=0;r<n.length;r++)if(n[r].type==this)return n[r]}excludes(n){return this.excluded.indexOf(n)>-1}}function Qn(d,n){let r=[];for(let a=0;a<n.length;a++){let u=n[a],f=d.marks[u],_=f;if(f)r.push(f);else for(let M in d.marks){let O=d.marks[M];("_"==u||O.spec.group&&O.spec.group.split(" ").indexOf(u)>-1)&&r.push(_=O)}if(!_)throw new SyntaxError("Unknown mark type: '"+n[a]+"'")}return r}class Un{constructor(n,r){this.schema=n,this.rules=r,this.tags=[],this.styles=[],r.forEach(a=>{a.tag?this.tags.push(a):a.style&&this.styles.push(a)}),this.normalizeLists=!this.tags.some(a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let u=n.nodes[a.node];return u.contentMatch.matchType(u)})}parse(n,r={}){let a=new ri(this,r,!1);return a.addAll(n,r.from,r.to),a.finish()}parseSlice(n,r={}){let a=new ri(this,r,!0);return a.addAll(n,r.from,r.to),je.maxOpen(a.finish())}matchTag(n,r,a){for(let u=a?this.tags.indexOf(a)+1:0;u<this.tags.length;u++){let f=this.tags[u];if(kr(n,f.tag)&&(void 0===f.namespace||n.namespaceURI==f.namespace)&&(!f.context||r.matchesContext(f.context))){if(f.getAttrs){let _=f.getAttrs(n);if(!1===_)continue;f.attrs=_||void 0}return f}}}matchStyle(n,r,a,u){for(let f=u?this.styles.indexOf(u)+1:0;f<this.styles.length;f++){let _=this.styles[f],M=_.style;if(!(0!=M.indexOf(n)||_.context&&!a.matchesContext(_.context)||M.length>n.length&&(61!=M.charCodeAt(n.length)||M.slice(n.length+1)!=r))){if(_.getAttrs
1){let O=_.getAttrs(r);if(!1===O)continue;_.attrs=O||void 0}return _}}}static schemaRules(n){let r=[];function a(u){let f=null==u.priority?50:u.priority,_=0;for(;_<r.length;_++){let M=r[_];if((null==M.priority?50:M.priority)<f)break}r.splice(_,0,u)}for(let u in n.marks){let f=n.marks[u].spec.parseDOM;f&&f.forEach(_=>{a(_=Se(_)),_.mark||_.ignore||_.clearMark||(_.mark=u)})}for(let u in n.nodes){let f=n.nodes[u].spec.parseDOM;f&&f.forEach(_=>{a(_=Se(_)),_.node||_.ignore||_.mark||(_.node=u)})}return r}static fromSchema(n){return n.cached.domParser||(n.cached.domParser=new Un(n,Un.schemaRules(n)))}}const Wn={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Oi={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},hn={ol:!0,ul:!0};function hi(d,n,r){return null!=n?(n?1:0)|("full"===n?2:0):d&&"pre"==d.whitespace?3:-5&r}class Xn{constructor(n,r,a,u,f,_,M){this.type=n,this.attrs=r,this.marks=a,this.pendingMarks=u,this.solid=f,this.options=M,this.content=[],this.activeMarks=ot.none,this.stashMarks=[],this.match=_||(4&M?null:n.contentMatch)}findWrapping(n){if(!this.match){if(!this.type)return[];let r=this.type.contentMatch.fillBefore(we.from(n));if(!r){let u,a=this.type.contentMatch;return(u=a.findWrapping(n.type))?(this.match=a,u):null}this.match=this.type.contentMatch.matchFragment(r)}return this.match.findWrapping(n.type)}finish(n){if(!(1&this.options)){let u,a=this.content[this.content.length-1];if(a&&a.isText&&(u=/[ \t\r\n\u000c]+$/.exec(a.text))){let f=a;a.text.length==u[0].length?this.content.pop():this.content[this.content.length-1]=f.withText(f.text.slice(0,f.text.length-u[0].length))}}let r=we.from(this.content);return!n&&this.match&&(r=r.append(this.match.fillBefore(we.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r}popFromStashMark(n){for(let r=this.stashMarks.length-1;r>=0;r--)if(n.eq(this.stashMarks[r]))return this.stashMarks.splice(r,1)[0]}applyPending(n){for(let r=0,a=this.pendingMarks;r<a.length;r++){let u=a[r];(this.type?this.type.allowsMarkType(u.type):it(u.type,n))&&!u.isInSet(this.activeMarks)&&(this.activeMarks=u.addToSet(this.activeMarks),this.pendingMarks=u.removeFromSet(this.pendingMarks))}}inlineContext(n){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:n.parentNode&&!Wn.hasOwnProperty(n.parentNode.nodeName.toLowerCase())}}class ri{constructor(n,r,a){this.parser=n,this.options=r,this.isOpen=a,this.open=0;let f,u=r.topNode,_=hi(null,r.preserveWhitespace,0)|(a?4:0);f=u?new Xn(u.type,u.attrs,ot.none,ot.none,!0,r.topMatch||u.type.contentMatch,_):new Xn(a?null:n.schema.topNodeType,null,ot.none,ot.none,!0,null,_),this.nodes=[f],this.find=r.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(n){3==n.nodeType?this.addTextNode(n):1==n.nodeType&&this.addElement(n)}withStyleRules(n,r){let a=n.getAttribute("style");if(!a)return r();let u=this.readStyles(function Xi(d){let r,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,a=[];for(;r=n.exec(d);)a.push(r[1],r[2].trim());return a}(a));if(!u)return;let[f,_]=u,M=this.top;for(let O=0;O<_.length;O++)this.removePendingMark(_[O],M);for(let O=0;O<f.length;O++)this.addPendingMark(f[O]);r();for(let O=0;O<f.length;O++)this.removePendingMark(f[O],M);for(let O=0;O<_.length;O++)this.addPendingMark(_[O])}addTextNode(n){let r=n.nodeValue,a=this.top;if(2&a.options||a.inlineContext(n)||/[^ \t\r\n\u000c]/.test(r)){if(1&a.options)r=2&a.options?r.replace(/\r\n?/g,"\n"):r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let u=a.content[a.content.length-1],f=n.previousSibling;(!u||f&&"BR"==f.nodeName||u.isText&&/[ \t\r\n\u000c]$/.test(u.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r)),this.findInText(n)}else this.findInside(n)}addElement(n,r){let u,a=n.nodeName.toLowerCase();hn.hasOwnProperty(a)&&this.parser.normalizeLists&&function In(d){for(let n=d.firstChild,r=null;n;n=n.nextSibling){let a=1==n.nodeType?n.nodeName.toLowerCase():null;
1a&&hn.hasOwnProperty(a)&&r?(r.appendChild(n),n=r):"li"==a?r=n:a&&(r=null)}}(n);let f=this.options.ruleFromNode&&this.options.ruleFromNode(n)||(u=this.parser.matchTag(n,this,r));if(f?f.ignore:Oi.hasOwnProperty(a))this.findInside(n),this.ignoreFallback(n);else if(!f||f.skip||f.closeParent){f&&f.closeParent?this.open=Math.max(0,this.open-1):f&&f.skip.nodeType&&(n=f.skip);let _,M=this.top,O=this.needsBlock;if(Wn.hasOwnProperty(a))M.content.length&&M.content[0].isInline&&this.open&&(this.open--,M=this.top),_=!0,M.type||(this.needsBlock=!0);else if(!n.firstChild)return void this.leafFallback(n);f&&f.skip?this.addAll(n):this.withStyleRules(n,()=>this.addAll(n)),_&&this.sync(M),this.needsBlock=O}else this.withStyleRules(n,()=>{this.addElementByRule(n,f,!1===f.consuming?u:void 0)})}leafFallback(n){"BR"==n.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(n.ownerDocument.createTextNode("\n"))}ignoreFallback(n){"BR"==n.nodeName&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(n){let r=ot.none,a=ot.none;for(let u=0;u<n.length;u+=2)for(let f;;){let _=this.parser.matchStyle(n[u],n[u+1],this,f);if(!_)break;if(_.ignore)return null;if(_.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(M=>{_.clearMark(M)&&(a=M.addToSet(a))}):r=this.parser.schema.marks[_.mark].create(_.attrs).addToSet(r),!1!==_.consuming)break;f=_}return[r,a]}addElementByRule(n,r,a){let u,f,_;r.node?(f=this.parser.schema.nodes[r.node],f.isLeaf?this.insertNode(f.create(r.attrs))||this.leafFallback(n):u=this.enter(f,r.attrs||null,r.preserveWhitespace)):(_=this.parser.schema.marks[r.mark].create(r.attrs),this.addPendingMark(_));let M=this.top;if(f&&f.isLeaf)this.findInside(n);else if(a)this.addElement(n,a);else if(r.getContent)this.findInside(n),r.getContent(n,this.parser.schema).forEach(O=>this.insertNode(O));else{let O=n;"string"==typeof r.contentElement?O=n.querySelector(r.contentElement):"function"==typeof r.contentElement?O=r.contentElement(n):r.contentElement&&(O=r.contentElement),this.findAround(n,O,!0),this.addAll(O)}u&&this.sync(M)&&this.open--,_&&this.removePendingMark(_,M)}addAll(n,r,a){let u=r||0;for(let f=r?n.childNodes[r]:n.firstChild,_=null==a?null:n.childNodes[a];f!=_;f=f.nextSibling,++u)this.findAtPoint(n,u),this.addDOM(f);this.findAtPoint(n,u)}findPlace(n){let r,a;for(let u=this.open;u>=0;u--){let f=this.nodes[u],_=f.findWrapping(n);if(_&&(!r||r.length>_.length)&&(r=_,a=f,!_.length)||f.solid)break}if(!r)return!1;this.sync(a);for(let u=0;u<r.length;u++)this.enterInner(r[u],null,!1);return!0}insertNode(n){if(n.isInline&&this.needsBlock&&!this.top.type){let r=this.textblockFromContext();r&&this.enterInner(r)}if(this.findPlace(n)){this.closeExtra();let r=this.top;r.applyPending(n.type),r.match&&(r.match=r.match.matchType(n.type));let a=r.activeMarks;for(let u=0;u<n.marks.length;u++)(!r.type||r.type.allowsMarkType(n.marks[u].type))&&(a=n.marks[u].addToSet(a));return r.content.push(n.mark(a)),!0}return!1}enter(n,r,a){let u=this.findPlace(n.create(r));return u&&this.enterInner(n,r,!0,a),u}enterInner(n,r=null,a=!1,u){this.closeExtra();let f=this.top;f.applyPending(n),f.match=f.match&&f.match.matchType(n);let _=hi(n,u,f.options);4&f.options&&0==f.content.length&&(_|=4),this.nodes.push(new Xn(n,r,f.activeMarks,f.pendingMarks,a,null,_)),this.open++}closeExtra(n=!1){let r=this.nodes.length-1;if(r>this.open){for(;r>this.open;r--)this.nodes[r-1].content.push(this.nodes[r].finish(n));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(n){for(let r=this.open;r>=0;r--)if(this.nodes[r]==n)return this.open=r,!0;return!1}get currentPos(){this.closeExtra();let n=0;for(let r=this.open;r>=0;r--){let a=this.nodes[r].content;for(let u=a.length-1;u>=0;u--)n+=a[u].nodeSize;r&&n++}return n}findAtPoint(n,r){if(this.find)for(let a=0;a<this.find.length;a++)this.find[a].node==n&&this.find[a].offset==r&&(this.find[a].pos=this.currentPos)}findInside(n){if(this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==n.nodeType&&n.contains(this.find[r].node)&&(this.find[r].pos=this.currentPos)}findAround(n,r,a){if(n!=r&&this.find)for(let u=0;u<this.find.length;u++)null==this.find[u].pos&&1==n.nodeType&&n.contains(this.find[u].node)&&r.compareDocumentPosition(this.find[u].node)&(a?2:4)&&(this.find[u].pos=this.currentPos)}findInText(n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==n&&(this.find[r].pos=this.currentPos-(n.nodeValue.length-this.find[r].offset))}matchesContext(n){if(n.indexOf("|")>-1)return n.split(/\s*\|\s*/).some(this.matchesContext,this);let r=n.split("/"),a=this.options.context,u=!(this.isOpen||a&&a.parent.type!=this.nodes[0].type),f=(u?0:1)-(a?a.depth+1:0),_=(M,O)=>{for(;M>=0;M--){let Q=r[M];if(""==Q){if(M==r.length-1||0==M)continue;for(;O>=f;O--)if(_(M-1,O))return!0;return!1}{let de=O>0||0==O&&u?this.nodes[O].type:a&&O>=f?a.node(O-f).type:null;if(!de||de.name!=Q&&-1==de.groups.indexOf(Q))return!1;O--}}return!0};return _(r.length-1,this.open)}textblockFromContext(){let n=this.options.context;if(n)for(let r=n.depth;r>=0;r--){let a=n.node(r).contentMatchAt(n.indexAfter(r)).defaultType;
1if(a&&a.isTextblock&&a.defaultAttrs)return a}for(let r in this.parser.schema.nodes){let a=this.parser.schema.nodes[r];if(a.isTextblock&&a.defaultAttrs)return a}}addPendingMark(n){let r=function te(d,n){for(let r=0;r<n.length;r++)if(d.eq(n[r]))return n[r]}(n,this.top.pendingMarks);r&&this.top.stashMarks.push(r),this.top.pendingMarks=n.addToSet(this.top.pendingMarks)}removePendingMark(n,r){for(let a=this.open;a>=0;a--){let u=this.nodes[a];if(u.pendingMarks.lastIndexOf(n)>-1)u.pendingMarks=n.removeFromSet(u.pendingMarks);else{u.activeMarks=n.removeFromSet(u.activeMarks);let _=u.popFromStashMark(n);_&&u.type&&u.type.allowsMarkType(_.type)&&(u.activeMarks=_.addToSet(u.activeMarks))}if(u==r)break}}}function kr(d,n){return(d.matches||d.msMatchesSelector||d.webkitMatchesSelector||d.mozMatchesSelector).call(d,n)}function Se(d){let n={};for(let r in d)n[r]=d[r];return n}function it(d,n){let r=n.schema.nodes;for(let a in r){let u=r[a];if(!u.allowsMarkType(d))continue;let f=[],_=M=>{f.push(M);for(let O=0;O<M.edgeCount;O++){let{type:Q,next:de}=M.edge(O);if(Q==n||f.indexOf(de)<0&&_(de))return!0}};if(_(u.contentMatch))return!0}}class ce{constructor(n,r){this.nodes=n,this.marks=r}serializeFragment(n,r={},a){a||(a=ie(r).createDocumentFragment());let u=a,f=[];return n.forEach(_=>{if(f.length||_.marks.length){let M=0,O=0;for(;M<f.length&&O<_.marks.length;){let Q=_.marks[O];if(this.marks[Q.type.name]){if(!Q.eq(f[M][0])||!1===Q.type.spec.spanning)break;M++,O++}else O++}for(;M<f.length;)u=f.pop()[1];for(;O<_.marks.length;){let Q=_.marks[O++],de=this.serializeMark(Q,_.isInline,r);de&&(f.push([Q,u]),u.appendChild(de.dom),u=de.contentDOM||de.dom)}}u.appendChild(this.serializeNodeInner(_,r))}),a}serializeNodeInner(n,r){let{dom:a,contentDOM:u}=ce.renderSpec(ie(r),this.nodes[n.type.name](n));if(u){if(n.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(n.content,r,u)}return a}serializeNode(n,r={}){let a=this.serializeNodeInner(n,r);for(let u=n.marks.length-1;u>=0;u--){let f=this.serializeMark(n.marks[u],n.isInline,r);f&&((f.contentDOM||f.dom).appendChild(a),a=f.dom)}return a}serializeMark(n,r,a={}){let u=this.marks[n.type.name];return u&&ce.renderSpec(ie(a),u(n,r))}static renderSpec(n,r,a=null){if("string"==typeof r)return{dom:n.createTextNode(r)};if(null!=r.nodeType)return{dom:r};if(r.dom&&null!=r.dom.nodeType)return r;let u=r[0],f=u.indexOf(" ");f>0&&(a=u.slice(0,f),u=u.slice(f+1));let _,M=a?n.createElementNS(a,u):n.createElement(u),O=r[1],Q=1;if(O&&"object"==typeof O&&null==O.nodeType&&!Array.isArray(O)){Q=2;for(let de in O)if(null!=O[de]){let Ye=de.indexOf(" ");Ye>0?M.setAttributeNS(de.slice(0,Ye),de.slice(Ye+1),O[de]):M.setAttribute(de,O[de])}}for(let de=Q;de<r.length;de++){let Ye=r[de];if(0===Ye){if(de<r.length-1||de>Q)throw new RangeError("Content hole must be the only child of its parent node");return{dom:M,contentDOM:M}}{let{dom:ut,contentDOM:Tt}=ce.renderSpec(n,Ye,a);if(M.appendChild(ut),Tt){if(_)throw new RangeError("Multiple content holes");_=Tt}}}return{dom:M,contentDOM:_}}static fromSchema(n){return n.cached.domSerializer||(n.cached.domSerializer=new ce(this.nodesFromSchema(n),this.marksFromSchema(n)))}static nodesFromSchema(n){let r=Z(n.nodes);return r.text||(r.text=a=>a.text),r}static marksFromSchema(n){return Z(n.marks)}}function Z(d){let n={};for(let r in d){let a=d[r].spec.toDOM;a&&(n[r]=a)}return n}function ie(d){return d.document||window.document}function Ae(d,n,r){for(let a=0;;a++){if(a==d.childCount||a==n.childCount)return d.childCount==n.childCount?null:r;let u=d.child(a),f=n.child(a);if(u!=f){if(!u.sameMarkup(f))return r;if(u.isText&&u.text!=f.text){for(let _=0;u.text[_]==f.text[_];_++)r++;return r}if(u.content.size||f.content.size){let _=Ae(u.content,f.content,r+1);if(null!=_)return _}r+=u.nodeSize}else r+=u.nodeSize}}function Y(d,n,r,a){for(let u=d.childCount,f=n.childCount;;){if(0==u||0==f)return u==f?null:{a:r,b:a};let _=d.child(--u),M=n.child(--f),O=_.nodeSize;if(_!=M){if(!_.sameMarkup(M))return{a:r,b:a};if(_.isText&&_.text!=M.text){let Q=0,de=Math.min(_.text.length,M.text.length);for(;Q<de&&_.text[_.text.length-Q-1]==M.text[M.text.length-Q-1];)Q++,r--,a--;return{a:r,b:a}}if(_.content.size||M.content.size){let Q=Y(_.content,M.content,r-1,a-1);if(Q)return Q}r-=O,a-=O}else r-=O,a-=O}}class ne{constructor(n,r){if(this.content=n,this.size=r||0,null==r)for(let a=0;a<n.length;a++)this.size+=n[a].nodeSize}nodesBetween(n,r,a,u=0,f){for(let _=0,M=0;M<r;_++){let O=this.content[_],Q=M+O.nodeSize;if(Q>n&&!1!==a(O,u+M,f||null,_)&&O.content.size){let de=M+1;O.nodesBetween(Math.max(0,n-de),Math.min(O.content.size,r-de),a,u+de)}M=Q}}descendants(n){this.nodesBetween(0,this.size,n)}
vendor: 4,171 bytes, line 1
1textBetween(n,r,a,u){let f="",_=!0;return this.nodesBetween(n,r,(M,O)=>{let Q=M.isText?M.text.slice(Math.max(n,O)-O,r-O):M.isLeaf?u?"function"==typeof u?u(M):u:M.type.spec.leafText?M.type.spec.leafText(M):"":"";M.isBlock&&(M.isLeaf&&Q||M.isTextblock)&&a&&(_?_=!1:f+=a),f+=Q},0),f}append(n){if(!n.size)return this;if(!this.size)return n;let r=this.lastChild,a=n.firstChild,u=this.content.slice(),f=0;for(r.isText&&r.sameMarkup(a)&&(u[u.length-1]=r.withText(r.text+a.text),f=1);f<n.content.length;f++)u.push(n.content[f]);return new ne(u,this.size+n.size)}cut(n,r=this.size){if(0==n&&r==this.size)return this;let a=[],u=0;if(r>n)for(let f=0,_=0;_<r;f++){let M=this.content[f],O=_+M.nodeSize;O>n&&((_<n||O>r)&&(M=M.isText?M.cut(Math.max(0,n-_),Math.min(M.text.length,r-_)):M.cut(Math.max(0,n-_-1),Math.min(M.content.size,r-_-1))),a.push(M),u+=M.nodeSize),_=O}return new ne(a,u)}cutByIndex(n,r){return n==r?ne.empty:0==n&&r==this.content.length?this:new ne(this.content.slice(n,r))}replaceChild(n,r){let a=this.content[n];if(a==r)return this;let u=this.content.slice(),f=this.size+r.nodeSize-a.nodeSize;return u[n]=r,new ne(u,f)}addToStart(n){return new ne([n].concat(this.content),this.size+n.nodeSize)}addToEnd(n){return new ne(this.content.concat(n),this.size+n.nodeSize)}eq(n){if(this.content.length!=n.content.length)return!1;for(let r=0;r<this.content.length;r++)if(!this.content[r].eq(n.content[r]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(n){let r=this.content[n];if(!r)throw new RangeError("Index "+n+" out of range for "+this);return r}maybeChild(n){return this.content[n]||null}forEach(n){for(let r=0,a=0;r<this.content.length;r++){let u=this.content[r];n(u,a,r),a+=u.nodeSize}}findDiffStart(n,r=0){return Ae(this,n,r)}findDiffEnd(n,r=this.size,a=n.size){return Y(this,n,r,a)}findIndex(n){if(0==n)return Ke(0,n);if(n==this.size)return Ke(this.content.length,n);if(n>this.size||n<0)throw new RangeError(`Position ${n} outside of fragment (${this})`);for(let r=0,a=0;;r++){let f=a+this.child(r).nodeSize;if(f>=n)return f==n?Ke(r+1,f):Ke(r,a);a=f}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(n=>n.toJSON()):null}static fromJSON(n,r){if(!r)return ne.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return new ne(r.map(n.nodeFromJSON))}static fromArray(n){if(!n.length)return ne.empty;let r,a=0;for(let u=0;u<n.length;u++){let f=n[u];a+=f.nodeSize,u&&f.isText&&n[u-1].sameMarkup(f)?(r||(r=n.slice(0,u)),r[r.length-1]=f.withText(r[r.length-1].text+f.text)):r&&r.push(f)}return new ne(r||n,a)}static from(n){if(!n)return ne.empty;if(n instanceof ne)return n;if(Array.isArray(n))return this.fromArray(n);if(n.attrs)return new ne([n],n.nodeSize);throw new RangeError("Can not convert "+n+" to a Fragment"+(n.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}ne.empty=new ne([],0);const fe={index:0,offset:0};function Ke(d,n){return fe.index=d,fe.offset=n,fe}function ve(d,n){if(d===n)return!0;if(!d||"object"!=typeof d||!n||"object"!=typeof n)return!1;let r=Array.isArray(d);if(Array.isArray(n)!=r)return!1;if(r){if(d.length!=n.length)return!1;for(let a=0;a<d.length;a++)if(!ve(d[a],n[a]))return!1}else{for(let a in d)if(!(a in n)||!ve(d[a],n[a]))return!1;for(let a in n)if(!(a in d))return!1}return!0}let ye=(()=>{class d{constructor(r,a){this.type=r,this.attrs=a}addToSet(r){let a,u=!1;for(let f=0;f<r.length;f++){let _=r[f];if(this.eq(_))return r;if(this.type.excludes(_.type))a||(a=r.slice(0,f));else{if(_.type.excludes(this.type))return r;!u&&_.type.rank>this.type.rank&&(a||(a=r.slice(0,f)),a.push(this),u=!0),a&&a.push(_)}}return a||(a=r.slice()),u||a.push(this),a}removeFromSet(r){for(let a=0;a<r.length;a++)if(this.eq(r[a]))return r.slice(0,a).concat(r.slice(a+1));return r}isInSet(r){for(let a=0;a<r.length;a++)if(this.eq(r[a]))return!0;return!1}eq(r){return this==r||this.type==r.type&&ve(this.attrs,r.attrs)}
vendor: 5,864 bytes, line 1
1toJSON(){let r={type:this.type.name};for(let a in this.attrs){r.attrs=this.attrs;break}return r}static fromJSON(r,a){if(!a)throw new RangeError("Invalid input for Mark.fromJSON");let u=r.marks[a.type];if(!u)throw new RangeError(`There is no mark type ${a.type} in this schema`);let f=u.create(a.attrs);return u.checkAttrs(f.attrs),f}static sameSet(r,a){if(r==a)return!0;if(r.length!=a.length)return!1;for(let u=0;u<r.length;u++)if(!r[u].eq(a[u]))return!1;return!0}static setFrom(r){if(!r||Array.isArray(r)&&0==r.length)return d.none;if(r instanceof d)return[r];let a=r.slice();return a.sort((u,f)=>u.type.rank-f.type.rank),a}}return d.none=[],d})();class be extends Error{}class Ee{constructor(n,r,a){this.content=n,this.openStart=r,this.openEnd=a}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(n,r){let a=_t(this.content,n+this.openStart,r);return a&&new Ee(a,this.openStart,this.openEnd)}removeBetween(n,r){return new Ee(pt(this.content,n+this.openStart,r+this.openStart),this.openStart,this.openEnd)}eq(n){return this.content.eq(n.content)&&this.openStart==n.openStart&&this.openEnd==n.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let n={content:this.content.toJSON()};return this.openStart>0&&(n.openStart=this.openStart),this.openEnd>0&&(n.openEnd=this.openEnd),n}static fromJSON(n,r){if(!r)return Ee.empty;let a=r.openStart||0,u=r.openEnd||0;if("number"!=typeof a||"number"!=typeof u)throw new RangeError("Invalid input for Slice.fromJSON");return new Ee(ne.fromJSON(n,r.content),a,u)}static maxOpen(n,r=!0){let a=0,u=0;for(let f=n.firstChild;f&&!f.isLeaf&&(r||!f.type.spec.isolating);f=f.firstChild)a++;for(let f=n.lastChild;f&&!f.isLeaf&&(r||!f.type.spec.isolating);f=f.lastChild)u++;return new Ee(n,a,u)}}function pt(d,n,r){let{index:a,offset:u}=d.findIndex(n),f=d.maybeChild(a),{index:_,offset:M}=d.findIndex(r);if(u==n||f.isText){if(M!=r&&!d.child(_).isText)throw new RangeError("Removing non-flat range");return d.cut(0,n).append(d.cut(r))}if(a!=_)throw new RangeError("Removing non-flat range");return d.replaceChild(a,f.copy(pt(f.content,n-u-1,r-u-1)))}function _t(d,n,r,a){let{index:u,offset:f}=d.findIndex(n),_=d.maybeChild(u);if(f==n||_.isText)return a&&!a.canReplace(u,u,r)?null:d.cut(0,n).append(r).append(d.cut(n));let M=_t(_.content,n-f-1,r,_);return M&&d.replaceChild(u,_.copy(M))}function tn(d,n,r){if(r.openStart>d.depth)throw new be("Inserted content deeper than insertion position");if(d.depth-r.openStart!=n.depth-r.openEnd)throw new be("Inconsistent open depths");return ln(d,n,r,0)}function ln(d,n,r,a){let u=d.index(a),f=d.node(a);if(u==n.index(a)&&a<d.depth-r.openStart){let _=ln(d,n,r,a+1);return f.copy(f.content.replaceChild(u,_))}if(r.content.size){if(r.openStart||r.openEnd||d.depth!=a||n.depth!=a){let{start:_,end:M}=function $r(d,n){let r=n.depth-d.openStart,u=n.node(r).copy(d.content);for(let f=r-1;f>=0;f--)u=n.node(f).copy(ne.from(u));return{start:u.resolveNoCache(d.openStart+r),end:u.resolveNoCache(u.content.size-d.openEnd-r)}}(r,d);return _r(f,vr(d,_,M,n,a))}{let _=d.parent,M=_.content;return _r(_,M.cut(0,d.parentOffset).append(r.content).append(M.cut(n.parentOffset)))}}return _r(f,dr(d,n,a))}function An(d,n){if(!n.type.compatibleContent(d.type))throw new be("Cannot join "+n.type.name+" onto "+d.type.name)}function Ri(d,n,r){let a=d.node(r);return An(a,n.node(r)),a}function Ti(d,n){let r=n.length-1;r>=0&&d.isText&&d.sameMarkup(n[r])?n[r]=d.withText(n[r].text+d.text):n.push(d)}function Bn(d,n,r,a){let u=(n||d).node(r),f=0,_=n?n.index(r):u.childCount;d&&(f=d.index(r),d.depth>r?f++:d.textOffset&&(Ti(d.nodeAfter,a),f++));for(let M=f;M<_;M++)Ti(u.child(M),a);n&&n.depth==r&&n.textOffset&&Ti(n.nodeBefore,a)}function _r(d,n){return d.type.checkContent(n),d.copy(n)}function vr(d,n,r,a,u){let f=d.depth>u&&Ri(d,n,u+1),_=a.depth>u&&Ri(r,a,u+1),M=[];return Bn(null,d,u,M),f&&_&&n.index(u)==r.index(u)?(An(f,_),Ti(_r(f,vr(d,n,r,a,u+1)),M)):(f&&Ti(_r(f,dr(d,n,u+1)),M),Bn(n,r,u,M),_&&Ti(_r(_,dr(r,a,u+1)),M)),Bn(a,null,u,M),new ne(M)}function dr(d,n,r){let a=[];return Bn(null,d,r,a),d.depth>r&&Ti(_r(Ri(d,n,r+1),dr(d,n,r+1)),a),Bn(n,null,r,a),new ne(a)}Ee.empty=new Ee(ne.empty,0,0);class tr{constructor(n,r,a){this.pos=n,this.path=r,this.parentOffset=a,this.depth=r.length/3-1}resolveDepth(n){return null==n?this.depth:n<0?this.depth+n:n}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(n){return this.path[3*this.resolveDepth(n)]}index(n){return this.path[3*this.resolveDepth(n)+1]}indexAfter(n){return n=this.resolveDepth(n),this.index(n)+(n!=this.depth||this.textOffset?1:0)}start(n){return 0==(n=this.resolveDepth(n))?0:this.path[3*n-1]+1}end(n){return n=this.resolveDepth(n),this.start(n)+this.node(n).content.size}before(n){if(!(n=this.resolveDepth(n)))throw new RangeError("There is no position before the top-level node");return n==this.depth+1?this.pos:this.path[3*n-1]}after(n){if(!(n=this.resolveDepth(n)))throw new RangeError("There is no position after the top-level node");return n==this.depth+1?this.pos:this.path[3*n-1]+this.path[3*n].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let n=this.parent,r=this.index(this.depth);if(r==n.childCount)return null;let a=this.pos-this.path[this.path.length-1],u=n.child(r);return a?n.child(r).cut(a):u}get nodeBefore(){let n=this.index(this.depth),r=this.pos-this.path[this.path.length-1];return r?this.parent.child(n).cut(0,r):0==n?null:this.parent.child(n-1)}posAtIndex(n,r){r=this.resolveDepth(r);let a=this.path[3*r],u=0==r?0:this.path[3*r-1]+1;for(let f=0;f<n;f++)u+=a.child(f).nodeSize;return u}marks(){let n=this.parent,r=this.index();if(0==n.content.size)return ye.none;if(this.textOffset)return n.child(r).marks;let a=n.maybeChild(r-1),u=n.maybeChild(r);if(!a){let M=a;a=u,u=M}
vendor: 4,424 bytes, line 1
1let f=a.marks;for(var _=0;_<f.length;_++)!1===f[_].type.spec.inclusive&&(!u||!f[_].isInSet(u.marks))&&(f=f[_--].removeFromSet(f));return f}marksAcross(n){let r=this.parent.maybeChild(this.index());if(!r||!r.isInline)return null;let a=r.marks,u=n.parent.maybeChild(n.index());for(var f=0;f<a.length;f++)!1===a[f].type.spec.inclusive&&(!u||!a[f].isInSet(u.marks))&&(a=a[f--].removeFromSet(a));return a}sharedDepth(n){for(let r=this.depth;r>0;r--)if(this.start(r)<=n&&this.end(r)>=n)return r;return 0}blockRange(n=this,r){if(n.pos<this.pos)return n.blockRange(this);for(let a=this.depth-(this.parent.inlineContent||this.pos==n.pos?1:0);a>=0;a--)if(n.pos<=this.end(a)&&(!r||r(this.node(a))))return new mt(this,n,a);return null}sameParent(n){return this.pos-this.parentOffset==n.pos-n.parentOffset}max(n){return n.pos>this.pos?n:this}min(n){return n.pos<this.pos?n:this}toString(){let n="";for(let r=1;r<=this.depth;r++)n+=(n?"/":"")+this.node(r).type.name+"_"+this.index(r-1);return n+":"+this.parentOffset}static resolve(n,r){if(!(r>=0&&r<=n.content.size))throw new RangeError("Position "+r+" out of range");let a=[],u=0,f=r;for(let _=n;;){let{index:M,offset:O}=_.content.findIndex(f),Q=f-O;if(a.push(_,M,u+O),!Q||(_=_.child(M),_.isText))break;f=Q-1,u+=O+1}return new tr(r,a,f)}static resolveCached(n,r){let a=qe.get(n);if(a)for(let f=0;f<a.elts.length;f++){let _=a.elts[f];if(_.pos==r)return _}else qe.set(n,a=new jr);let u=a.elts[a.i]=tr.resolve(n,r);return a.i=(a.i+1)%ur,u}}class jr{constructor(){this.elts=[],this.i=0}}const ur=12,qe=new WeakMap;class mt{constructor(n,r,a){this.$from=n,this.$to=r,this.depth=a}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const vt=Object.create(null);class Ut{constructor(n,r,a,u=ye.none){this.type=n,this.attrs=r,this.marks=u,this.content=a||ne.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(n){return this.content.child(n)}maybeChild(n){return this.content.maybeChild(n)}forEach(n){this.content.forEach(n)}nodesBetween(n,r,a,u=0){this.content.nodesBetween(n,r,a,u,this)}descendants(n){this.nodesBetween(0,this.content.size,n)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(n,r,a,u){return this.content.textBetween(n,r,a,u)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(n){return this==n||this.sameMarkup(n)&&this.content.eq(n.content)}sameMarkup(n){return this.hasMarkup(n.type,n.attrs,n.marks)}hasMarkup(n,r,a){return this.type==n&&ve(this.attrs,r||n.defaultAttrs||vt)&&ye.sameSet(this.marks,a||ye.none)}copy(n=null){return n==this.content?this:new Ut(this.type,this.attrs,n,this.marks)}mark(n){return n==this.marks?this:new Ut(this.type,this.attrs,this.content,n)}cut(n,r=this.content.size){return 0==n&&r==this.content.size?this:this.copy(this.content.cut(n,r))}slice(n,r=this.content.size,a=!1){if(n==r)return Ee.empty;let u=this.resolve(n),f=this.resolve(r),_=a?0:u.sharedDepth(r),M=u.start(_),Q=u.node(_).content.cut(u.pos-M,f.pos-M);return new Ee(Q,u.depth-_,f.depth-_)}replace(n,r,a){return tn(this.resolve(n),this.resolve(r),a)}nodeAt(n){for(let r=this;;){let{index:a,offset:u}=r.content.findIndex(n);if(r=r.maybeChild(a),!r)return null;if(u==n||r.isText)return r;n-=u+1}}childAfter(n){let{index:r,offset:a}=this.content.findIndex(n);return{node:this.content.maybeChild(r),index:r,offset:a}}childBefore(n){if(0==n)return{node:null,index:0,offset:0};let{index:r,offset:a}=this.content.findIndex(n);if(a<n)return{node:this.content.child(r),index:r,offset:a};let u=this.content.child(r-1);return{node:u,index:r-1,offset:a-u.nodeSize}}resolve(n){return tr.resolveCached(this,n)}resolveNoCache(n){return tr.resolve(this,n)}rangeHasMark(n,r,a){let u=!1;return r>n&&this.nodesBetween(n,r,f=>(a.isInSet(f.marks)&&(u=!0),!u)),u}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}
vendor: 6,016 bytes, line 1
1toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let n=this.type.name;return this.content.size&&(n+="("+this.content.toStringInner()+")"),function un(d,n){for(let r=d.length-1;r>=0;r--)n=d[r].type.name+"("+n+")";return n}(this.marks,n)}contentMatchAt(n){let r=this.type.contentMatch.matchFragment(this.content,0,n);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r}canReplace(n,r,a=ne.empty,u=0,f=a.childCount){let _=this.contentMatchAt(n).matchFragment(a,u,f),M=_&&_.matchFragment(this.content,r);if(!M||!M.validEnd)return!1;for(let O=u;O<f;O++)if(!this.type.allowsMarks(a.child(O).marks))return!1;return!0}canReplaceWith(n,r,a,u){if(u&&!this.type.allowsMarks(u))return!1;let f=this.contentMatchAt(n).matchType(a),_=f&&f.matchFragment(this.content,r);return!!_&&_.validEnd}canAppend(n){return n.content.size?this.canReplace(this.childCount,this.childCount,n.content):this.type.compatibleContent(n.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let n=ye.none;for(let r=0;r<this.marks.length;r++){let a=this.marks[r];a.type.checkAttrs(a.attrs),n=a.addToSet(n)}if(!ye.sameSet(n,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(r=>r.type.name)}`);this.content.forEach(r=>r.check())}toJSON(){let n={type:this.type.name};for(let r in this.attrs){n.attrs=this.attrs;break}return this.content.size&&(n.content=this.content.toJSON()),this.marks.length&&(n.marks=this.marks.map(r=>r.toJSON())),n}static fromJSON(n,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");let a;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");a=r.marks.map(n.markFromJSON)}if("text"==r.type){if("string"!=typeof r.text)throw new RangeError("Invalid text node in JSON");return n.text(r.text,a)}let u=ne.fromJSON(n,r.content),f=n.nodeType(r.type).create(r.attrs,u,a);return f.type.checkAttrs(f.attrs),f}}Ut.prototype.text=void 0;class Xt{constructor(n){this.validEnd=n,this.next=[],this.wrapCache=[]}static parse(n,r){let a=new Pn(n,r);if(null==a.next)return Xt.empty;let u=Cn(a);a.next&&a.err("Unexpected trailing text");let f=function io(d){let n=Object.create(null);return function r(a){let u=[];a.forEach(_=>{d[_].forEach(({term:M,to:O})=>{if(!M)return;let Q;for(let de=0;de<u.length;de++)u[de][0]==M&&(Q=u[de][1]);pr(d,O).forEach(de=>{Q||u.push([M,Q=[]]),-1==Q.indexOf(de)&&Q.push(de)})})});let f=n[a.join(",")]=new Xt(a.indexOf(d.length-1)>-1);for(let _=0;_<u.length;_++){let M=u[_][1].sort(gi);f.next.push({type:u[_][0],next:n[M.join(",")]||r(M)})}return f}(pr(d,0))}(function fi(d){let n=[[]];return u(function f(_,M){if("choice"==_.type)return _.exprs.reduce((O,Q)=>O.concat(f(Q,M)),[]);if("seq"!=_.type){if("star"==_.type){let O=r();return a(M,O),u(f(_.expr,O),O),[a(O)]}if("plus"==_.type){let O=r();return u(f(_.expr,M),O),u(f(_.expr,O),O),[a(O)]}if("opt"==_.type)return[a(M)].concat(f(_.expr,M));if("range"==_.type){let O=M;for(let Q=0;Q<_.min;Q++){let de=r();u(f(_.expr,O),de),O=de}if(-1==_.max)u(f(_.expr,O),O);else for(let Q=_.min;Q<_.max;Q++){let de=r();a(O,de),u(f(_.expr,O),de),O=de}return[a(O)]}if("name"==_.type)return[a(M,void 0,_.value)];throw new Error("Unknown expr type")}for(let O=0;;O++){let Q=f(_.exprs[O],M);if(O==_.exprs.length-1)return Q;u(Q,M=r())}}(d,0),r()),n;function r(){return n.push([])-1}function a(_,M,O){let Q={term:O,to:M};return n[_].push(Q),Q}function u(_,M){_.forEach(O=>O.to=M)}}(u));return function sr(d,n){for(let r=0,a=[d];r<a.length;r++){let u=a[r],f=!u.validEnd,_=[];for(let M=0;M<u.next.length;M++){let{type:O,next:Q}=u.next[M];_.push(O.name),f&&!(O.isText||O.hasRequiredAttrs())&&(f=!1),-1==a.indexOf(Q)&&a.push(Q)}f&&n.err("Only non-generatable nodes ("+_.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(f,a),f}matchType(n){for(let r=0;r<this.next.length;r++)if(this.next[r].type==n)return this.next[r].next;return null}matchFragment(n,r=0,a=n.childCount){let u=this;for(let f=r;u&&f<a;f++)u=u.matchType(n.child(f).type);return u}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let n=0;n<this.next.length;n++){let{type:r}=this.next[n];if(!r.isText&&!r.hasRequiredAttrs())return r}return null}compatible(n){for(let r=0;r<this.next.length;r++)for(let a=0;a<n.next.length;a++)if(this.next[r].type==n.next[a].type)return!0;return!1}fillBefore(n,r=!1,a=0){let u=[this];return function f(_,M){let O=_.matchFragment(n,a);if(O&&(!r||O.validEnd))return ne.from(M.map(Q=>Q.createAndFill()));for(let Q=0;Q<_.next.length;Q++){let{type:de,next:Ye}=_.next[Q];if(!de.isText&&!de.hasRequiredAttrs()&&-1==u.indexOf(Ye)){u.push(Ye);let ut=f(Ye,M.concat(de));if(ut)return ut}}return null}(this,[])}findWrapping(n){for(let a=0;a<this.wrapCache.length;a+=2)if(this.wrapCache[a]==n)return this.wrapCache[a+1];let r=this.computeWrapping(n);return this.wrapCache.push(n,r),r}computeWrapping(n){let r=Object.create(null),a=[{match:this,type:null,via:null}];for(;a.length;){let u=a.shift(),f=u.match;if(f.matchType(n)){let _=[];for(let M=u;M.type;M=M.via)_.push(M.type);return _.reverse()}for(let _=0;_<f.next.length;_++){let{type:M,next:O}=f.next[_];!M.isLeaf&&!M.hasRequiredAttrs()&&!(M.name in r)&&(!u.type||O.validEnd)&&(a.push({match:M.contentMatch,type:M,via:u}),r[M.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(n){if(n>=this.next.length)throw new RangeError(`There's no ${n}th edge in this content match`);return this.next[n]}toString(){let n=[];return function r(a){n.push(a);for(let u=0;u<a.next.length;u++)-1==n.indexOf(a.next[u].next)&&r(a.next[u].next)}(this),n.map((a,u)=>{let f=u+(a.validEnd?"*":" ")+" ";for(let _=0;_<a.next.length;_++)f+=(_?", ":"")+a.next[_].type.name+"->"+n.indexOf(a.next[_].next);return f}).join("\n")}}Xt.empty=new Xt(!0);class Pn{constructor(n,r){this.string=n,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=n.split(/\s*(?
1=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(n){return this.next==n&&(this.pos++||!0)}err(n){throw new SyntaxError(n+" (in content expression '"+this.string+"')")}}function Cn(d){let n=[];do{n.push(si(d))}while(d.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}function si(d){let n=[];do{n.push(Yn(d))}while(d.next&&")"!=d.next&&"|"!=d.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}function Yn(d){let n=function Ji(d){if(d.eat("(")){let n=Cn(d);return d.eat(")")||d.err("Missing closing paren"),n}if(!/\W/.test(d.next)){let n=function nr(d,n){let r=d.nodeTypes,a=r[n];if(a)return[a];let u=[];for(let f in r){let _=r[f];_.isInGroup(n)&&u.push(_)}return 0==u.length&&d.err("No node type or group '"+n+"' found"),u}(d,d.next).map(r=>(null==d.inline?d.inline=r.isInline:d.inline!=r.isInline&&d.err("Mixing inline and block content"),{type:"name",value:r}));return d.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}d.err("Unexpected token '"+d.next+"'")}(d);for(;;)if(d.eat("+"))n={type:"plus",expr:n};else if(d.eat("*"))n={type:"star",expr:n};else if(d.eat("?"))n={type:"opt",expr:n};else{if(!d.eat("{"))break;n=_i(d,n)}return n}function Fi(d){/\D/.test(d.next)&&d.err("Expected number, got '"+d.next+"'");let n=Number(d.next);return d.pos++,n}function _i(d,n){let r=Fi(d),a=r;return d.eat(",")&&(a="}"!=d.next?Fi(d):-1),d.eat("}")||d.err("Unclosed braced range"),{type:"range",min:r,max:a,expr:n}}function gi(d,n){return n-d}function pr(d,n){let r=[];return function a(u){let f=d[u];if(1==f.length&&!f[0].term)return a(f[0].to);r.push(u);for(let _=0;_<f.length;_++){let{term:M,to:O}=f[_];!M&&-1==r.indexOf(O)&&a(O)}}(n),r.sort(gi)}class C{constructor(n,r,a){this.hasDefault=Object.prototype.hasOwnProperty.call(a,"default"),this.default=a.default,this.validate="string"==typeof a.validate?function Ie(d,n,r){let a=r.split("|");return u=>{let f=null===u?"null":typeof u;if(a.indexOf(f)<0)throw new RangeError(`Expected value of type ${a} for attribute ${n} on type ${d}, got ${f}`)}}(n,r,a.validate):a.validate}get isRequired(){return!this.hasDefault}}class se{constructor(n,r,a,u){this.name=n,this.rank=r,this.schema=a,this.spec=u,this.attrs=function he(d,n){let r=Object.create(null);if(n)for(let a in n)r[a]=new C(d,a,n[a]);return r}(n,u.attrs),this.excluded=null;let f=function A(d){let n=Object.create(null);for(let r in d){let a=d[r];if(!a.hasDefault)return null;n[r]=a.default}return n}(this.attrs);this.instance=f?new ye(this,f):null}create(n=null){return!n&&this.instance?this.instance:new ye(this,function X(d,n){let r=Object.create(null);for(let a in d){let u=n&&n[a];if(void 0===u){let f=d[a];if(!f.hasDefault)throw new RangeError("No value supplied for attribute "+a);u=f.default}r[a]=u}return r}(this.attrs,n))}static compile(n,r){let a=Object.create(null),u=0;return n.forEach((f,_)=>a[f]=new se(f,u++,r,_)),a}removeFromSet(n){for(var r=0;r<n.length;r++)n[r].type==this&&(n=n.slice(0,r).concat(n.slice(r+1)),r--);return n}isInSet(n){for(let r=0;r<n.length;r++)if(n[r].type==this)return n[r]}checkAttrs(n){!function V(d,n,r,a){for(let u in n)if(!(u in d))throw new RangeError(`Unsupported attribute ${u} for ${r} of type ${u}`);for(let u in d){let f=d[u];f.validate&&f.validate(n[u])}}(this.attrs,n,"mark")}excludes(n){return this.excluded.indexOf(n)>-1}}const Vn=Math.pow(2,16);function fr(d,n){return d+n*Vn}function Ir(d){return 65535&d}class ro{constructor(n,r,a){this.pos=n,this.delInfo=r,this.recover=a}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class Gi{constructor(n,r=!1){if(this.ranges=n,this.inverted=r,!n.length&&Gi.empty)return Gi.empty}recover(n){let r=0,a=Ir(n);if(!this.inverted)for(let u=0;u<a;u++)r+=this.ranges[3*u+2]-this.ranges[3*u+1];return this.ranges[3*a]+r+function xr(d){return(d-(65535&d))/Vn}(n)}mapResult(n,r=1){return this._map(n,r,!1)}map(n,r=1){return this._map(n,r,!0)}_map(n,r,a){let u=0,f=this.inverted?2:1,_=this.inverted?1:2;
vendor: 10,811 bytes, line 1
1for(let M=0;M<this.ranges.length;M+=3){let O=this.ranges[M]-(this.inverted?u:0);if(O>n)break;let Q=this.ranges[M+f],de=this.ranges[M+_],Ye=O+Q;if(n<=Ye){let Tt=O+u+((Q?n==O?-1:n==Ye?1:r:r)<0?0:de);if(a)return Tt;let At=n==(r<0?O:Ye)?null:fr(M/3,n-O),nn=n==O?2:n==Ye?1:4;return(r<0?n!=O:n!=Ye)&&(nn|=8),new ro(Tt,nn,At)}u+=de-Q}return a?n+u:new ro(n+u,0,null)}touches(n,r){let a=0,u=Ir(r),f=this.inverted?2:1,_=this.inverted?1:2;for(let M=0;M<this.ranges.length;M+=3){let O=this.ranges[M]-(this.inverted?a:0);if(O>n)break;let Q=this.ranges[M+f];if(n<=O+Q&&M==3*u)return!0;a+=this.ranges[M+_]-Q}return!1}forEach(n){let r=this.inverted?2:1,a=this.inverted?1:2;for(let u=0,f=0;u<this.ranges.length;u+=3){let _=this.ranges[u],M=_-(this.inverted?f:0),O=_+(this.inverted?0:f),Q=this.ranges[u+r],de=this.ranges[u+a];n(M,M+Q,O,O+de),f+=de-Q}}invert(){return new Gi(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(n){return 0==n?Gi.empty:new Gi(n<0?[0,-n,0]:[0,0,n])}}Gi.empty=new Gi([]);class Vr{constructor(n,r,a=0,u=(n?n.length:0)){this.mirror=r,this.from=a,this.to=u,this._maps=n||[],this.ownData=!(n||r)}get maps(){return this._maps}slice(n=0,r=this.maps.length){return new Vr(this._maps,this.mirror,n,r)}appendMap(n,r){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(n),null!=r&&this.setMirror(this._maps.length-1,r)}appendMapping(n){for(let r=0,a=this._maps.length;r<n._maps.length;r++){let u=n.getMirror(r);this.appendMap(n._maps[r],null!=u&&u<r?a+u:void 0)}}getMirror(n){if(this.mirror)for(let r=0;r<this.mirror.length;r++)if(this.mirror[r]==n)return this.mirror[r+(r%2?-1:1)]}setMirror(n,r){this.mirror||(this.mirror=[]),this.mirror.push(n,r)}appendMappingInverted(n){for(let r=n.maps.length-1,a=this._maps.length+n._maps.length;r>=0;r--){let u=n.getMirror(r);this.appendMap(n._maps[r].invert(),null!=u&&u>r?a-u-1:void 0)}}invert(){let n=new Vr;return n.appendMappingInverted(this),n}map(n,r=1){if(this.mirror)return this._map(n,r,!0);for(let a=this.from;a<this.to;a++)n=this._maps[a].map(n,r);return n}mapResult(n,r=1){return this._map(n,r,!1)}_map(n,r,a){let u=0;for(let f=this.from;f<this.to;f++){let M=this._maps[f].mapResult(n,r);if(null!=M.recover){let O=this.getMirror(f);if(null!=O&&O>f&&O<this.to){f=O,n=this._maps[O].recover(M.recover);continue}}u|=M.delInfo,n=M.pos}return a?n:new ro(n,u,null)}}const Ui=Object.create(null);class Ii{getMap(){return Gi.empty}merge(n){return null}static fromJSON(n,r){if(!r||!r.stepType)throw new RangeError("Invalid input for Step.fromJSON");let a=Ui[r.stepType];if(!a)throw new RangeError(`No step type ${r.stepType} defined`);return a.fromJSON(n,r)}static jsonID(n,r){if(n in Ui)throw new RangeError("Duplicate use of step JSON ID "+n);return Ui[n]=r,r.prototype.jsonID=n,r}}class Si{constructor(n,r){this.doc=n,this.failed=r}static ok(n){return new Si(n,null)}static fail(n){return new Si(null,n)}static fromReplace(n,r,a,u){try{return Si.ok(n.replace(r,a,u))}catch(f){if(f instanceof be)return Si.fail(f.message);throw f}}}function qi(d,n,r){let a=[];for(let u=0;u<d.childCount;u++){let f=d.child(u);f.content.size&&(f=f.copy(qi(f.content,n,f))),f.isInline&&(f=n(f,r,u)),a.push(f)}return ne.fromArray(a)}class mr extends Ii{constructor(n,r,a){super(),this.from=n,this.to=r,this.mark=a}apply(n){let r=n.slice(this.from,this.to),a=n.resolve(this.from),u=a.node(a.sharedDepth(this.to)),f=new Ee(qi(r.content,(_,M)=>_.isAtom&&M.type.allowsMarkType(this.mark.type)?_.mark(this.mark.addToSet(_.marks)):_,u),r.openStart,r.openEnd);return Si.fromReplace(n,this.from,this.to,f)}invert(){return new Tr(this.from,this.to,this.mark)}map(n){let r=n.mapResult(this.from,1),a=n.mapResult(this.to,-1);return r.deleted&&a.deleted||r.pos>=a.pos?null:new mr(r.pos,a.pos,this.mark)}merge(n){return n instanceof mr&&n.mark.eq(this.mark)&&this.from<=n.to&&this.to>=n.from?new mr(Math.min(this.from,n.from),Math.max(this.to,n.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(n,r){if("number"!=typeof r.from||"number"!=typeof r.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new mr(r.from,r.to,n.markFromJSON(r.mark))}}Ii.jsonID("addMark",mr);class Tr extends Ii{constructor(n,r,a){super(),this.from=n,this.to=r,this.mark=a}apply(n){let r=n.slice(this.from,this.to),a=new Ee(qi(r.content,u=>u.mark(this.mark.removeFromSet(u.marks)),n),r.openStart,r.openEnd);return Si.fromReplace(n,this.from,this.to,a)}invert(){return new mr(this.from,this.to,this.mark)}map(n){let r=n.mapResult(this.from,1),a=n.mapResult(this.to,-1);return r.deleted&&a.deleted||r.pos>=a.pos?null:new Tr(r.pos,a.pos,this.mark)}merge(n){return n instanceof Tr&&n.mark.eq(this.mark)&&this.from<=n.to&&this.to>=n.from?new Tr(Math.min(this.from,n.from),Math.max(this.to,n.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(n,r){if("number"!=typeof r.from||"number"!=typeof r.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Tr(r.from,r.to,n.markFromJSON(r.mark))}}Ii.jsonID("removeMark",Tr);class zi extends Ii{constructor(n,r){super(),this.pos=n,this.mark=r}apply(n){let r=n.nodeAt(this.pos);if(!r)return Si.fail("No node at mark step's position");let a=r.type.create(r.attrs,null,this.mark.addToSet(r.marks));return Si.fromReplace(n,this.pos,this.pos+1,new Ee(ne.from(a),0,r.isLeaf?0:1))}invert(n){let r=n.nodeAt(this.pos);if(r){let a=this.mark.addToSet(r.marks);if(a.length==r.marks.length){for(let u=0;u<r.marks.length;u++)if(!r.marks[u].isInSet(a))return new zi(this.pos,r.marks[u]);return new zi(this.pos,this.mark)}}return new uo(this.pos,this.mark)}map(n){let r=n.mapResult(this.pos,1);return r.deletedAfter?null:new zi(r.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(n,r){if("number"!=typeof r.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new zi(r.pos,n.markFromJSON(r.mark))}}Ii.jsonID("addNodeMark",zi);class uo extends Ii{constructor(n,r){super(),this.pos=n,this.mark=r}apply(n){let r=n.nodeAt(this.pos);if(!r)return Si.fail("No node at mark step's position");let a=r.type.create(r.attrs,null,this.mark.removeFromSet(r.marks));return Si.fromReplace(n,this.pos,this.pos+1,new Ee(ne.from(a),0,r.isLeaf?0:1))}invert(n){let r=n.nodeAt(this.pos);return r&&this.mark.isInSet(r.marks)?new zi(this.pos,this.mark):this}map(n){let r=n.mapResult(this.pos,1);return r.deletedAfter?null:new uo(r.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(n,r){if("number"!=typeof r.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new uo(r.pos,n.markFromJSON(r.mark))}}Ii.jsonID("removeNodeMark",uo);class Ni extends Ii{constructor(n,r,a,u=!1){super(),this.from=n,this.to=r,this.slice=a,this.structure=u}apply(n){return this.structure&&$i(n,this.from,this.to)?Si.fail("Structure replace would overwrite content"):Si.fromReplace(n,this.from,this.to,this.slice)}getMap(){return new Gi([this.from,this.to-this.from,this.slice.size])}invert(n){return new Ni(this.from,this.from+this.slice.size,n.slice(this.from,this.to))}map(n){let r=n.mapResult(this.from,1),a=n.mapResult(this.to,-1);return r.deletedAcross&&a.deletedAcross?null:new Ni(r.pos,Math.max(r.pos,a.pos),this.slice,this.structure)}merge(n){if(!(n instanceof Ni)||n.structure||this.structure)return null;if(this.from+this.slice.size!=n.from||this.slice.openEnd||n.slice.openStart){if(n.to!=this.from||this.slice.openStart||n.slice.openEnd)return null;{let r=this.slice.size+n.slice.size==0?Ee.empty:new Ee(n.slice.content.append(this.slice.content),n.slice.openStart,this.slice.openEnd);return new Ni(n.from,this.to,r,this.structure)}}{let r=this.slice.size+n.slice.size==0?Ee.empty:new Ee(this.slice.content.append(n.slice.content),this.slice.openStart,n.slice.openEnd);return new Ni(this.from,this.to+(n.to-n.from),r,this.structure)}}toJSON(){let n={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(n.slice=this.slice.toJSON()),this.structure&&(n.structure=!0),n}static fromJSON(n,r){if("number"!=typeof r.from||"number"!=typeof r.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Ni(r.from,r.to,Ee.fromJSON(n,r.slice),!!r.structure)}}Ii.jsonID("replace",Ni);class Bi extends Ii{constructor(n,r,a,u,f,_,M=!1){super(),this.from=n,this.to=r,this.gapFrom=a,this.gapTo=u,this.slice=f,this.insert=_,this.structure=M}apply(n){if(this.structure&&($i(n,this.from,this.gapFrom)||$i(n,this.gapTo,this.to)))return Si.fail("Structure gap-replace would overwrite content");let r=n.slice(this.gapFrom,this.gapTo);if(r.openStart||r.openEnd)return Si.fail("Gap is not a flat range");let a=this.slice.insertAt(this.insert,r.content);return a?Si.fromReplace(n,this.from,this.to,a):Si.fail("Content does not fit in gap")}getMap(){return new Gi([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(n){let r=this.gapTo-this.gapFrom;return new Bi(this.from,this.from+this.slice.size+r,this.from+this.insert,this.from+this.insert+r,n.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(n){let r=n.mapResult(this.from,1),a=n.mapResult(this.to,-1),u=this.from==this.gapFrom?r.pos:n.map(this.gapFrom,-1),f=this.to==this.gapTo?a.pos:n.map(this.gapTo,1);return r.deletedAcross&&a.deletedAcross||u<r.pos||f>a.pos?null:new Bi(r.pos,a.pos,u,f,this.slice,this.insert,this.structure)}toJSON(){let n={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(n.slice=this.slice.toJSON()),this.structure&&(n.structure=!0),n}static fromJSON(n,r){if("number"!=typeof r.from||"number"!=typeof r.to||"number"!=typeof r.gapFrom||"number"!=typeof r.gapTo||"number"!=typeof r.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Bi(r.from,r.to,r.gapFrom,r.gapTo,Ee.fromJSON(n,r.slice),r.insert,!!r.structure)}}function $i(d,n,r){let a=d.resolve(n),u=r-n,f=a.depth;for(;u>0&&f>0&&a.indexAfter(f)==a.node(f).childCount;)f--,u--;if(u>0){let _=a.node(f).maybeChild(a.indexAfter(f));for(;u>0;){if(!_||_.isLeaf)return!0;_=_.firstChild,u--}}return!1}function cs(d,n,r,a=r.contentMatch,u=!0){let f=d.doc.nodeAt(n),_=[],M=n+1;for(let O=0;O<f.childCount;O++){let Q=f.child(O),de=M+Q.nodeSize,Ye=a.matchType(Q.type);if(Ye){a=Ye;for(let ut=0;ut<Q.marks.length;ut++)r.allowsMarkType(Q.marks[ut].type)||d.step(new Tr(M,de,Q.marks[ut]));if(u&&Q.isText&&"pre"!=r.whitespace){let ut,At,Tt=/\r?\n|\r/g;
vendor: 6,227 bytes, line 1
1for(;ut=Tt.exec(Q.text);)At||(At=new Ee(ne.from(r.schema.text(" ",r.allowedMarks(Q.marks))),0,0)),_.push(new Ni(M+ut.index,M+ut.index+ut[0].length,At))}}else _.push(new Ni(M,de,Ee.empty));M=de}if(!a.validEnd){let O=a.fillBefore(ne.empty,!0);d.replace(M,M,new Ee(O,0,0))}for(let O=_.length-1;O>=0;O--)d.step(_[O])}function Qr(d,n,r){return(0==n||d.canReplace(n,d.childCount))&&(r==d.childCount||d.canReplace(0,r))}function ai(d){let r=d.parent.content.cutByIndex(d.startIndex,d.endIndex);for(let a=d.depth;;--a){let u=d.$from.node(a),f=d.$from.index(a),_=d.$to.indexAfter(a);if(a<d.depth&&u.canReplace(f,_,r))return a;if(0==a||u.type.spec.isolating||!Qr(u,f,_))break}return null}function fa(d,n,r=null,a=d){let u=function Qo(d,n){let{parent:r,startIndex:a,endIndex:u}=d,f=r.contentMatchAt(a).findWrapping(n);return f&&r.canReplaceWith(a,u,f.length?f[0]:n)?f:null}(d,n),f=u&&function ta(d,n){let{parent:r,startIndex:a,endIndex:u}=d,f=r.child(a),_=n.contentMatch.findWrapping(f.type);if(!_)return null;let O=(_.length?_[_.length-1]:n).contentMatch;for(let Q=a;O&&Q<u;Q++)O=O.matchType(r.child(Q).type);return O&&O.validEnd?_:null}(a,n);return f?u.map(wo).concat({type:n,attrs:r}).concat(f.map(wo)):null}function wo(d){return{type:d,attrs:null}}function us(d,n,r,a){n.forEach((u,f)=>{if(u.isText){let _,M=/\r?\n|\r/g;for(;_=M.exec(u.text);){let O=d.mapping.slice(a).map(r+1+f+_.index);d.replaceWith(O,O+1,n.type.schema.linebreakReplacement.create())}}})}function Ns(d,n,r,a){n.forEach((u,f)=>{if(u.type==u.type.schema.linebreakReplacement){let _=d.mapping.slice(a).map(r+1+f);d.replaceWith(_,_+1,n.type.schema.text("\n"))}})}function q(d,n,r=1,a){let u=d.resolve(n),f=u.depth-r,_=a&&a[a.length-1]||u.parent;if(f<0||u.parent.type.spec.isolating||!u.parent.canReplace(u.index(),u.parent.childCount)||!_.type.validContent(u.parent.content.cutByIndex(u.index(),u.parent.childCount)))return!1;for(let Q=u.depth-1,de=r-2;Q>f;Q--,de--){let Ye=u.node(Q),ut=u.index(Q);if(Ye.type.spec.isolating)return!1;let Tt=Ye.content.cutByIndex(ut,Ye.childCount),At=a&&a[de+1];At&&(Tt=Tt.replaceChild(0,At.type.create(At.attrs)));let nn=a&&a[de]||Ye;if(!Ye.canReplace(ut+1,Ye.childCount)||!nn.type.validContent(Tt))return!1}let M=u.indexAfter(f),O=a&&a[0];return u.node(f).canReplaceWith(M,M,O?O.type:u.node(f+1).type)}function yt(d,n){let r=d.resolve(n),a=r.index();return function ni(d,n){return!(!d||!n||d.isLeaf||!function Mn(d,n){n.content.size||d.type.compatibleContent(n.type);let r=d.contentMatchAt(d.childCount),{linebreakReplacement:a}=d.type.schema;for(let u=0;u<n.childCount;u++){let f=n.child(u);if(r=r.matchType(f.type==a?d.type.schema.nodes.text:f.type),!r||!d.type.allowsMarks(f.marks))return!1}return r.validEnd}(d,n))}(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(a,a+1)}function La(d,n,r=n,a=Ee.empty){if(n==r&&!a.size)return null;let u=d.resolve(n),f=d.resolve(r);return ja(u,f,a)?new Ni(n,r,a):new tc(u,f,a).fit()}function ja(d,n,r){return!r.openStart&&!r.openEnd&&d.start()==n.start()&&d.parent.canReplace(d.index(),n.index(),r.content)}Ii.jsonID("replaceAround",Bi);class tc{constructor(n,r,a){this.$from=n,this.$to=r,this.unplaced=a,this.frontier=[],this.placed=ne.empty;for(let u=0;u<=n.depth;u++){let f=n.node(u);this.frontier.push({type:f.type,match:f.contentMatchAt(n.indexAfter(u))})}for(let u=n.depth;u>0;u--)this.placed=ne.from(n.node(u).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let Q=this.findFittable();Q?this.placeNodes(Q):this.openMore()||this.dropNode()}let n=this.mustMoveInline(),r=this.placed.size-this.depth-this.$from.depth,a=this.$from,u=this.close(n<0?this.$to:a.doc.resolve(n));if(!u)return null;let f=this.placed,_=a.depth,M=u.depth;for(;_&&M&&1==f.childCount;)f=f.firstChild.content,_--,M--;let O=new Ee(f,_,M);return n>-1?new Bi(a.pos,n,this.$to.pos,this.$to.end(),O,r):O.size||a.pos!=this.$to.pos?new Ni(a.pos,u.pos,O):null}findFittable(){let n=this.unplaced.openStart;for(let r=this.unplaced.content,a=0,u=this.unplaced.openEnd;a<n;a++){let f=r.firstChild;if(r.childCount>1&&(u=0),f.type.spec.isolating&&u<=a){n=a;break}r=f.content}for(let r=1;r<=2;r++)for(let a=1==r?n:this.unplaced.openStart;a>=0;a--){let u,f=null;a?(f=Ba(this.unplaced.content,a-1).firstChild,u=f.content):u=this.unplaced.content;let _=u.firstChild;for(let M=this.depth;M>=0;M--){let de,{type:O,match:Q}=this.frontier[M],Ye=null;if(1==r&&(_?Q.matchType(_.type)||(Ye=Q.fillBefore(ne.from(_),!1)):f&&O.compatibleContent(f.type)))return{sliceDepth:a,frontierDepth:M,parent:f,inject:Ye};if(2==r&&_&&(de=Q.findWrapping(_.type)))return{sliceDepth:a,frontierDepth:M,parent:f,wrap:de};if(f&&Q.matchType(f.type))break}}}openMore(){let{content:n,openStart:r,openEnd:a}=this.unplaced,u=Ba(n,r);return!(!u.childCount||u.firstChild.isLeaf||(this.unplaced=new Ee(n,r+1,Math.max(a,u.size+r>=n.size-a?r+1:0)),0))}dropNode(){let{content:n,openStart:r,openEnd:a}=this.unplaced,u=Ba(n,r);if(u.childCount<=1&&r>0){let f=n.size-r<=r+u.size;this.unplaced=new Ee(Qi(n,r-1,1),r-1,f?r-1:a)}else this.unplaced=new Ee(Qi(n,r,1),r,a)}placeNodes({sliceDepth:n,frontierDepth:r,parent:a,inject:u,wrap:f}){for(;this.depth>r;)this.closeFrontierNode();if(f)for(let nn=0;nn<f.length;nn++)this.openFrontierNode(f[nn]);let _=this.unplaced,M=a?a.content:_.content,O=_.openStart-n,Q=0,de=[],{match:Ye,type:ut}=this.frontier[r];if(u){for(let nn=0;nn<u.childCount;nn++)de.push(u.child(nn));Ye=Ye.matchFragment(u)}let Tt=M.size+n-(_.content.size-_.openEnd);for(;Q<M.childCount;){let nn=M.child(Q),En=Ye.matchType(nn.type);if(!En)break;Q++,(Q>1||0==O||nn.content.size)&&(Ye=En,de.push(ml(nn.mark(ut.allowedMarks(nn.marks)),1==Q?O:0,Q==M.childCount?Tt:-1)))}let At=Q==M.childCount;At||(Tt=-1),this.placed=ga(this.placed,r,ne.from(de)),this.frontier[r].match=Ye,At&&Tt<0&&a&&a.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let nn=0,En=M;nn<Tt;nn++){let mi=En.lastChild;this.frontier.push({type:mi.type,match:mi.contentMatchAt(mi.childCount)}),En=mi.content}this.unplaced=At?0==n?Ee.empty:new Ee(Qi(_.content,n-1,1),n-1,Tt<0?_.openEnd:n-1):new Ee(Qi(_.content,n,Q),_.openStart,_.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let r,n=this.frontier[this.depth];
vendor: 4,215 bytes, line 1
1if(!n.type.isTextblock||!_l(this.$to,this.$to.depth,n.type,n.match,!1)||this.$to.depth==this.depth&&(r=this.findCloseLevel(this.$to))&&r.depth==this.depth)return-1;let{depth:a}=this.$to,u=this.$to.after(a);for(;a>1&&u==this.$to.end(--a);)++u;return u}findCloseLevel(n){e:for(let r=Math.min(this.depth,n.depth);r>=0;r--){let{match:a,type:u}=this.frontier[r],f=r<n.depth&&n.end(r+1)==n.pos+(n.depth-(r+1)),_=_l(n,r,u,a,f);if(_){for(let M=r-1;M>=0;M--){let{match:O,type:Q}=this.frontier[M],de=_l(n,M,Q,O,!0);if(!de||de.childCount)continue e}return{depth:r,fit:_,move:f?n.doc.resolve(n.after(r+1)):n}}}}close(n){let r=this.findCloseLevel(n);if(!r)return null;for(;this.depth>r.depth;)this.closeFrontierNode();r.fit.childCount&&(this.placed=ga(this.placed,r.depth,r.fit)),n=r.move;for(let a=r.depth+1;a<=n.depth;a++){let u=n.node(a),f=u.type.contentMatch.fillBefore(u.content,!0,n.index(a));this.openFrontierNode(u.type,u.attrs,f)}return n}openFrontierNode(n,r=null,a){let u=this.frontier[this.depth];u.match=u.match.matchType(n),this.placed=ga(this.placed,this.depth,ne.from(n.create(r,a))),this.frontier.push({type:n,match:n.contentMatch})}closeFrontierNode(){let r=this.frontier.pop().match.fillBefore(ne.empty,!0);r.childCount&&(this.placed=ga(this.placed,this.frontier.length,r))}}function Qi(d,n,r){return 0==n?d.cutByIndex(r,d.childCount):d.replaceChild(0,d.firstChild.copy(Qi(d.firstChild.content,n-1,r)))}function ga(d,n,r){return 0==n?d.append(r):d.replaceChild(d.childCount-1,d.lastChild.copy(ga(d.lastChild.content,n-1,r)))}function Ba(d,n){for(let r=0;r<n;r++)d=d.firstChild.content;return d}function ml(d,n,r){if(n<=0)return d;let a=d.content;return n>1&&(a=a.replaceChild(0,ml(a.firstChild,n-1,1==a.childCount?r-1:0))),n>0&&(a=d.type.contentMatch.fillBefore(a).append(a),r<=0&&(a=a.append(d.type.contentMatch.matchFragment(a).fillBefore(ne.empty,!0)))),d.copy(a)}function _l(d,n,r,a,u){let f=d.node(n),_=u?d.indexAfter(n):d.index(n);if(_==f.childCount&&!r.compatibleContent(f.type))return null;let M=a.fillBefore(f.content,!0,_);return M&&!function vl(d,n,r){for(let a=r;a<n.childCount;a++)if(!d.allowsMarks(n.child(a).marks))return!0;return!1}(r,f.content,_)?M:null}function Va(d){return d.spec.defining||d.spec.definingForContent}function nc(d,n,r,a,u){if(n<r){let f=d.firstChild;d=d.replaceChild(0,f.copy(nc(f.content,n+1,r,a,f)))}if(n>a){let f=u.contentMatchAt(0),_=f.fillBefore(d).append(d);d=_.append(f.matchFragment(_).fillBefore(ne.empty,!0))}return d}function Al(d,n){let r=[];for(let u=Math.min(d.depth,n.depth);u>=0;u--){let f=d.start(u);if(f<d.pos-(d.depth-u)||n.end(u)>n.pos+(n.depth-u)||d.node(u).type.spec.isolating||n.node(u).type.spec.isolating)break;(f==n.start(u)||u==d.depth&&u==n.depth&&d.parent.inlineContent&&n.parent.inlineContent&&u&&n.start(u-1)==f-1)&&r.push(u)}return r}class Wo extends Ii{constructor(n,r,a){super(),this.pos=n,this.attr=r,this.value=a}apply(n){let r=n.nodeAt(this.pos);if(!r)return Si.fail("No node at attribute step's position");let a=Object.create(null);for(let f in r.attrs)a[f]=r.attrs[f];a[this.attr]=this.value;let u=r.type.create(a,null,r.marks);return Si.fromReplace(n,this.pos,this.pos+1,new Ee(ne.from(u),0,r.isLeaf?0:1))}getMap(){return Gi.empty}invert(n){return new Wo(this.pos,this.attr,n.nodeAt(this.pos).attrs[this.attr])}map(n){let r=n.mapResult(this.pos,1);return r.deletedAfter?null:new Wo(r.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(n,r){if("number"!=typeof r.pos||"string"!=typeof r.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Wo(r.pos,r.attr,r.value)}}Ii.jsonID("attr",Wo);class ci extends Ii{constructor(n,r){super(),this.attr=n,this.value=r}apply(n){let r=Object.create(null);for(let u in n.attrs)r[u]=n.attrs[u];r[this.attr]=this.value;let a=n.type.create(r,n.content,n.marks);return Si.ok(a)}getMap(){return Gi.empty}invert(n){return new ci(this.attr,n.attrs[this.attr])}map(n){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(n,r){if("string"!=typeof r.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new ci(r.attr,r.value)}}Ii.jsonID("docAttr",ci);
vendor: 7,161 bytes, line 1
1let rr=class extends Error{};rr=function d(n){let r=Error.call(this,n);return r.__proto__=d.prototype,r},(rr.prototype=Object.create(Error.prototype)).constructor=rr,rr.prototype.name="TransformError";class Rr{constructor(n){this.doc=n,this.steps=[],this.docs=[],this.mapping=new Vr}get before(){return this.docs.length?this.docs[0]:this.doc}step(n){let r=this.maybeStep(n);if(r.failed)throw new rr(r.failed);return this}maybeStep(n){let r=n.apply(this.doc);return r.failed||this.addStep(n,r.doc),r}get docChanged(){return this.steps.length>0}addStep(n,r){this.docs.push(this.doc),this.steps.push(n),this.mapping.appendMap(n.getMap()),this.doc=r}replace(n,r=n,a=Ee.empty){let u=La(this.doc,n,r,a);return u&&this.step(u),this}replaceWith(n,r,a){return this.replace(n,r,new Ee(ne.from(a),0,0))}delete(n,r){return this.replace(n,r,Ee.empty)}insert(n,r){return this.replaceWith(n,n,r)}replaceRange(n,r,a){return function na(d,n,r,a){if(!a.size)return d.deleteRange(n,r);let u=d.doc.resolve(n),f=d.doc.resolve(r);if(ja(u,f,a))return d.step(new Ni(n,r,a));let _=Al(u,d.doc.resolve(r));0==_[_.length-1]&&_.pop();let M=-(u.depth+1);_.unshift(M);for(let ut=u.depth,Tt=u.pos-1;ut>0;ut--,Tt--){let At=u.node(ut).type.spec;if(At.defining||At.definingAsContext||At.isolating)break;_.indexOf(ut)>-1?M=ut:u.before(ut)==Tt&&_.splice(1,0,-ut)}let O=_.indexOf(M),Q=[],de=a.openStart;for(let ut=a.content,Tt=0;;Tt++){let At=ut.firstChild;if(Q.push(At),Tt==a.openStart)break;ut=At.content}for(let ut=de-1;ut>=0;ut--){let Tt=Q[ut],At=Va(Tt.type);if(At&&!Tt.sameMarkup(u.node(Math.abs(M)-1)))de=ut;else if(At||!Tt.type.isTextblock)break}for(let ut=a.openStart;ut>=0;ut--){let Tt=(ut+de+1)%(a.openStart+1),At=Q[Tt];if(At)for(let nn=0;nn<_.length;nn++){let En=_[(nn+O)%_.length],mi=!0;En<0&&(mi=!1,En=-En);let vo=u.node(En-1),Wl=u.index(En-1);if(vo.canReplaceWith(Wl,Wl,At.type,At.marks))return d.replace(u.before(En),mi?f.after(En):r,new Ee(nc(a.content,0,a.openStart,Tt),Tt,a.openEnd))}}let Ye=d.steps.length;for(let ut=_.length-1;ut>=0&&(d.replace(n,r,a),!(d.steps.length>Ye));ut--){let Tt=_[ut];Tt<0||(n=u.before(Tt),r=f.after(Tt))}}(this,n,r,a),this}replaceRangeWith(n,r,a){return function yl(d,n,r,a){if(!a.isInline&&n==r&&d.doc.resolve(n).parent.content.size){let u=function qr(d,n,r){let a=d.resolve(n);if(a.parent.canReplaceWith(a.index(),a.index(),r))return n;if(0==a.parentOffset)for(let u=a.depth-1;u>=0;u--){let f=a.index(u);if(a.node(u).canReplaceWith(f,f,r))return a.before(u+1);if(f>0)return null}if(a.parentOffset==a.parent.content.size)for(let u=a.depth-1;u>=0;u--){let f=a.indexAfter(u);if(a.node(u).canReplaceWith(f,f,r))return a.after(u+1);if(f<a.node(u).childCount)return null}return null}(d.doc,n,a.type);null!=u&&(n=r=u)}d.replaceRange(n,r,new Ee(ne.from(a),0,0))}(this,n,r,a),this}deleteRange(n,r){return function ic(d,n,r){let a=d.doc.resolve(n),u=d.doc.resolve(r),f=Al(a,u);for(let _=0;_<f.length;_++){let M=f[_],O=_==f.length-1;if(O&&0==M||a.node(M).type.contentMatch.validEnd)return d.delete(a.start(M),u.end(M));if(M>0&&(O||a.node(M-1).canReplace(a.index(M-1),u.indexAfter(M-1))))return d.delete(a.before(M),u.after(M))}for(let _=1;_<=a.depth&&_<=u.depth;_++)if(n-a.start(_)==a.depth-_&&r>a.end(_)&&u.end(_)-r!=u.depth-_&&a.start(_-1)==u.start(_-1)&&a.node(_-1).canReplace(a.index(_-1),u.index(_-1)))return d.delete(a.before(_),r);d.delete(n,r)}(this,n,r),this}lift(n,r){return function As(d,n,r){let{$from:a,$to:u,depth:f}=n,_=a.before(f+1),M=u.after(f+1),O=_,Q=M,de=ne.empty,Ye=0;for(let At=f,nn=!1;At>r;At--)nn||a.index(At)>0?(nn=!0,de=ne.from(a.node(At).copy(de)),Ye++):O--;let ut=ne.empty,Tt=0;for(let At=f,nn=!1;At>r;At--)nn||u.after(At+1)<u.end(At)?(nn=!0,ut=ne.from(u.node(At).copy(ut)),Tt++):Q++;d.step(new Bi(O,Q,_,M,new Ee(de.append(ut),Ye,Tt),de.size-Ye,!0))}(this,n,r),this}join(n,r=1){return function Ls(d,n,r){let a=null,{linebreakReplacement:u}=d.doc.type.schema,f=d.doc.resolve(n-r),_=f.node().type;if(u&&_.inlineContent){let de="pre"==_.whitespace,Ye=!!_.contentMatch.matchType(u);de&&!Ye?a=!1:!de&&Ye&&(a=!0)}let M=d.steps.length;if(!1===a){let de=d.doc.resolve(n+r);Ns(d,de.node(),de.before(),M)}_.inlineContent&&cs(d,n+r-1,_,f.node().contentMatchAt(f.index()),null==a);let O=d.mapping.slice(M),Q=O.map(n-r);if(d.step(new Ni(Q,O.map(n+r,-1),Ee.empty,!0)),!0===a){let de=d.doc.resolve(Q);us(d,de.node(),de.before(),d.steps.length)}}(this,n,r),this}wrap(n,r){return function ds(d,n,r){let a=ne.empty;for(let _=r.length-1;_>=0;_--){if(a.size){let M=r[_].type.contentMatch.matchFragment(a);if(!M||!M.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}a=ne.from(r[_].type.create(r[_].attrs,a))}let u=n.start,f=n.end;d.step(new Bi(u,f,u,f,new Ee(a,0,0),r.length,!0))}(this,n,r),this}setBlockType(n,r=n,a,u=null){return function Do(d,n,r,a,u){if(!a.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let f=d.steps.length;d.doc.nodesBetween(n,r,(_,M)=>{let O="function"==typeof u?u(_):u;if(_.isTextblock&&!_.hasMarkup(a,O)&&function me(d,n,r){let a=d.resolve(n),u=a.index();return a.parent.canReplaceWith(u,u+1,r)}(d.doc,d.mapping.slice(f).map(M),a)){let Q=null;if(a.schema.linebreakReplacement){let Tt="pre"==a.whitespace,At=!!a.contentMatch.matchType(a.schema.linebreakReplacement);Tt&&!At?Q=!1:!Tt&&At&&(Q=!0)}!1===Q&&Ns(d,_,M,f),cs(d,d.mapping.slice(f).map(M,1),a,void 0,null===Q);let de=d.mapping.slice(f),Ye=de.map(M,1),ut=de.map(M+_.nodeSize,1);return d.step(new Bi(Ye,ut,Ye+1,ut-1,new Ee(ne.from(a.create(O,null,_.marks)),0,0),1,!0)),!0===Q&&us(d,_,M,f),!1}})}(this,n,r,a,u),this}setNodeMarkup(n,r,a=null,u){return function xe(d,n,r,a,u){let f=d.doc.nodeAt(n);if(!f)throw new RangeError("No node at given position");r||(r=f.type);let _=r.create(a,null,u||f.marks);if(f.isLeaf)return d.replaceWith(n,n+f.nodeSize,_);if(!r.validContent(f.content))throw new RangeError("Invalid content for node type "+r.name);d.step(new Bi(n,n+f.nodeSize,n+1,n+f.nodeSize-1,new Ee(ne.from(_),0,0),1,!0))}(this,n,r,a,u),this}setNodeAttribute(n,r,a){return this.step(new Wo(n,r,a)),this}setDocAttribute(n,r){return this.step(new ci(n,r)),this}addNodeMark(n,r){return this.step(new zi(n,r)),this}removeNodeMark(n,r){let a=this.doc.nodeAt(n);if(!a)throw new RangeError("No node at position "+n);if(r instanceof ye)r.isInSet(a.marks)&&this.step(new uo(n,r));else{let f,u=a.marks,_=[];for(;f=r.isInSet(u);)_.push(new uo(n,f)),u=f.removeFromSet(u);for(let M=_.length-1;M>=0;M--)this.step(_[M])}return this}split(n,r=1,a){return function Ge(d,n,r=1,a){let u=d.doc.resolve(n),f=ne.empty,_=ne.empty;for(let M=u.depth,O=u.depth-r,Q=r-1;M>O;M--,Q--){f=ne.from(u.node(M).copy(f));let de=a&&a[Q];_=ne.from(de?de.type.create(de.attrs,_):u.node(M).copy(_))}d.step(new Ni(n,n,new Ee(f.append(_),r,r),!0))}(this,n,r,a),this}addMark(n,r,a){return function oo(d,n,r,a){let _,M,u=[],f=[];d.doc.nodesBetween(n,r,(O,Q,de)=>{if(!O.isInline)return;let Ye=O.marks;if(!a.isInSet(Ye)&&de.type.allowsMarkType(a.type)){let ut=Math.max(Q,n),Tt=Math.min(Q+O.nodeSize,r),At=a.addToSet(Ye);for(let nn=0;nn<Ye.length;nn++)Ye[nn].isInSet(At)||(_&&_.to==ut&&_.mark.eq(Ye[nn])?_.to=Tt:u.pu
vendor: 14,132 bytes, line 1
1sh(_=new Tr(ut,Tt,Ye[nn])));M&&M.to==ut?M.to=Tt:f.push(M=new mr(ut,Tt,a))}}),u.forEach(O=>d.step(O)),f.forEach(O=>d.step(O))}(this,n,r,a),this}removeMark(n,r,a){return function ir(d,n,r,a){let u=[],f=0;d.doc.nodesBetween(n,r,(_,M)=>{if(!_.isInline)return;f++;let O=null;if(a instanceof se){let de,Q=_.marks;for(;de=a.isInSet(Q);)(O||(O=[])).push(de),Q=de.removeFromSet(Q)}else a?a.isInSet(_.marks)&&(O=[a]):O=_.marks;if(O&&O.length){let Q=Math.min(M+_.nodeSize,r);for(let de=0;de<O.length;de++){let ut,Ye=O[de];for(let Tt=0;Tt<u.length;Tt++){let At=u[Tt];At.step==f-1&&Ye.eq(u[Tt].style)&&(ut=At)}ut?(ut.to=Q,ut.step=f):u.push({style:Ye,from:Math.max(M,n),to:Q,step:f})}}}),u.forEach(_=>d.step(new Tr(_.from,_.to,_.style)))}(this,n,r,a),this}clearIncompatible(n,r,a){return cs(this,n,r,a),this}}const Kr=Object.create(null);class ei{constructor(n,r,a){this.$anchor=n,this.$head=r,this.ranges=a||[new rc(n.min(r),n.max(r))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let n=this.ranges;for(let r=0;r<n.length;r++)if(n[r].$from.pos!=n[r].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(n,r=je.empty){let a=r.content.lastChild,u=null;for(let M=0;M<r.openEnd;M++)u=a,a=a.lastChild;let f=n.steps.length,_=this.ranges;for(let M=0;M<_.length;M++){let{$from:O,$to:Q}=_[M],de=n.mapping.slice(f);n.replaceRange(de.map(O.pos),de.map(Q.pos),M?je.empty:r),0==M&&Gc(n,f,(a?a.isInline:u&&u.isTextblock)?-1:1)}}replaceWith(n,r){let a=n.steps.length,u=this.ranges;for(let f=0;f<u.length;f++){let{$from:_,$to:M}=u[f],O=n.mapping.slice(a),Q=O.map(_.pos),de=O.map(M.pos);f?n.deleteRange(Q,de):(n.replaceRangeWith(Q,de,r),Gc(n,a,r.isInline?-1:1))}}static findFrom(n,r,a=!1){let u=n.parent.inlineContent?new Wi(n):ps(n.node(0),n.parent,n.pos,n.index(),r,a);if(u)return u;for(let f=n.depth-1;f>=0;f--){let _=r<0?ps(n.node(0),n.node(f),n.before(f+1),n.index(f),r,a):ps(n.node(0),n.node(f),n.after(f+1),n.index(f)+1,r,a);if(_)return _}return null}static near(n,r=1){return this.findFrom(n,r)||this.findFrom(n,-r)||new Wr(n.node(0))}static atStart(n){return ps(n,n,0,0,1)||new Wr(n)}static atEnd(n){return ps(n,n,n.content.size,n.childCount,-1)||new Wr(n)}static fromJSON(n,r){if(!r||!r.type)throw new RangeError("Invalid input for Selection.fromJSON");let a=Kr[r.type];if(!a)throw new RangeError(`No selection type ${r.type} defined`);return a.fromJSON(n,r)}static jsonID(n,r){if(n in Kr)throw new RangeError("Duplicate use of selection JSON ID "+n);return Kr[n]=r,r.prototype.jsonID=n,r}getBookmark(){return Wi.between(this.$anchor,this.$head).getBookmark()}}ei.prototype.visible=!0;class rc{constructor(n,r){this.$from=n,this.$to=r}}let ma=!1;function js(d){!ma&&!d.parent.inlineContent&&(ma=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+d.parent.type.name+")"))}class Wi extends ei{constructor(n,r=n){js(n),js(r),super(n,r)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(n,r){let a=n.resolve(r.map(this.head));if(!a.parent.inlineContent)return ei.near(a);let u=n.resolve(r.map(this.anchor));return new Wi(u.parent.inlineContent?u:a,a)}replace(n,r=je.empty){if(super.replace(n,r),r==je.empty){let a=this.$from.marksAcross(this.$to);a&&n.ensureMarks(a)}}eq(n){return n instanceof Wi&&n.anchor==this.anchor&&n.head==this.head}getBookmark(){return new Ga(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(n,r){if("number"!=typeof r.anchor||"number"!=typeof r.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Wi(n.resolve(r.anchor),n.resolve(r.head))}static create(n,r,a=r){let u=n.resolve(r);return new this(u,a==r?u:n.resolve(a))}static between(n,r,a){let u=n.pos-r.pos;if((!a||u)&&(a=u>=0?1:-1),!r.parent.inlineContent){let f=ei.findFrom(r,a,!0)||ei.findFrom(r,-a,!0);if(!f)return ei.near(r,a);r=f.$head}return n.parent.inlineContent||(0==u||(n=(ei.findFrom(n,-a,!0)||ei.findFrom(n,a,!0)).$anchor).pos<r.pos!=u<0)&&(n=r),new Wi(n,r)}}ei.jsonID("text",Wi);class Ga{constructor(n,r){this.anchor=n,this.head=r}map(n){return new Ga(n.map(this.anchor),n.map(this.head))}resolve(n){return Wi.between(n.resolve(this.anchor),n.resolve(this.head))}}class Hn extends ei{constructor(n){let r=n.nodeAfter,a=n.node(0).resolve(n.pos+r.nodeSize);super(n,a),this.node=r}map(n,r){let{deleted:a,pos:u}=r.mapResult(this.anchor),f=n.resolve(u);return a?ei.near(f):new Hn(f)}content(){return new je(we.from(this.node),0,0)}eq(n){return n instanceof Hn&&n.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new _a(this.anchor)}static fromJSON(n,r){if("number"!=typeof r.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Hn(n.resolve(r.anchor))}static create(n,r){return new Hn(n.resolve(r))}static isSelectable(n){return!n.isText&&!1!==n.type.spec.selectable}}Hn.prototype.visible=!1,ei.jsonID("node",Hn);class _a{constructor(n){this.anchor=n}map(n){let{deleted:r,pos:a}=n.mapResult(this.anchor);return r?new Ga(a,a):new _a(a)}resolve(n){let r=n.resolve(this.anchor),a=r.nodeAfter;return a&&Hn.isSelectable(a)?new Hn(r):ei.near(r)}}class Wr extends ei{constructor(n){super(n.resolve(0),n.resolve(n.content.size))}replace(n,r=je.empty){if(r==je.empty){n.delete(0,n.doc.content.size);let a=ei.atStart(n.doc);a.eq(n.selection)||n.setSelection(a)}else super.replace(n,r)}toJSON(){return{type:"all"}}static fromJSON(n){return new Wr(n)}map(n){return new Wr(n)}eq(n){return n instanceof Wr}getBookmark(){return bl}}ei.jsonID("all",Wr);const bl={map(){return this},resolve:d=>new Wr(d)};function ps(d,n,r,a,u,f=!1){if(n.inlineContent)return Wi.create(d,r);for(let _=a-(u>0?0:1);u>0?_<n.childCount:_>=0;_+=u){let M=n.child(_);if(M.isAtom){if(!f&&Hn.isSelectable(M))return Hn.create(d,r-(u<0?M.nodeSize:0))}else{let O=ps(d,M,r+u,u<0?M.childCount:0,u,f);if(O)return O}r+=M.nodeSize*u}return null}function Gc(d,n,r){let a=d.steps.length-1;if(a<n)return;let _,u=d.steps[a];(u instanceof Ni||u instanceof Bi)&&(d.mapping.maps[a].forEach((M,O,Q,de)=>{null==_&&(_=de)}),d.setSelection(ei.near(d.doc.resolve(_),r)))}class oc extends Rr{constructor(n){super(n.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=n.selection,this.storedMarks=n.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(n){if(n.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=n,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(n){return this.storedMarks=n,this.updated|=2,this}ensureMarks(n){return ot.sameSet(this.storedMarks||this.selection.$from.marks(),n)||this.setStoredMarks(n),this}addStoredMark(n){return this.ensureMarks(n.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(n){return this.ensureMarks(n.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(n,r){super.addStep(n,r),this.updated=-3&this.updated,this.storedMarks=null}setTime(n){return this.time=n,this}replaceSelection(n){return this.selection.replace(this,n),this}replaceSelectionWith(n,r=!0){let a=this.selection;return r&&(n=n.mark(this.storedMarks||(a.empty?a.$from.marks():a.$from.marksAcross(a.$to)||ot.none))),a.replaceWith(this,n),this}deleteSelection(){return this.selection.replace(this),this}insertText(n,r,a){let u=this.doc.type.schema;if(null==r)return n?this.replaceSelectionWith(u.text(n),!0):this.deleteSelection();{if(null==a&&(a=r),a=a??r,!n)return this.deleteRange(r,a);let f=this.storedMarks;if(!f){let _=this.doc.resolve(r);f=a==r?_.marks():_.marksAcross(this.doc.resolve(a))}return this.replaceRangeWith(r,a,u.text(n,f)),this.selection.empty||this.setSelection(ei.near(this.selection.$to)),this}}setMeta(n,r){return this.meta["string"==typeof n?n:n.key]=r,this}getMeta(n){return this.meta["string"==typeof n?n:n.key]}get isGeneric(){for(let n in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function Cl(d,n){return n&&d?d.bind(n):d}class Oo{constructor(n,r,a){this.name=n,this.init=Cl(r.init,a),this.apply=Cl(r.apply,a)}}const sc=[new Oo("doc",{init:d=>d.doc||d.schema.topNodeType.createAndFill(),apply:d=>d.doc}),new Oo("selection",{init:(d,n)=>d.selection||ei.atStart(n.doc),apply:d=>d.selection}),new Oo("storedMarks",{init:d=>d.storedMarks||null,apply:(d,n,r,a)=>a.selection.$cursor?d.storedMarks:null}),new Oo("scrollToSelection",{init:()=>0,apply:(d,n)=>d.scrolledIntoView?n+1:n})];class Bs{constructor(n,r){this.schema=n,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=sc.slice(),r&&r.forEach(a=>{if(this.pluginsByKey[a.key])throw new RangeError("Adding different instances of a keyed plugin ("+a.key+")");this.plugins.push(a),this.pluginsByKey[a.key]=a,a.spec.state&&this.fields.push(new Oo(a.key,a.spec.state,a))})}}class hs{constructor(n){this.config=n}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(n){return this.applyTransaction(n).state}filterTransaction(n,r=-1){for(let a=0;a<this.config.plugins.length;a++)if(a!=r){let u=this.config.plugins[a];if(u.spec.filterTransaction&&!u.spec.filterTransaction.call(u,n,this))return!1}return!0}applyTransaction(n){if(!this.filterTransaction(n))return{state:this,transactions:[]};let r=[n],a=this.applyInner(n),u=null;for(;;){let f=!1;for(let _=0;_<this.config.plugins.length;_++){let M=this.config.plugins[_];if(M.spec.appendTransaction){let O=u?u[_].n:0,Q=u?u[_].state:this,de=O<r.length&&M.spec.appendTransaction.call(M,O?r.slice(O):r,Q,a);if(de&&a.filterTransaction(de,_)){if(de.setMeta("appendedTransaction",n),!u){u=[];for(let Ye=0;Ye<this.config.plugins.length;Ye++)u.push(Ye<_?{state:a,n:r.length}:{state:this,n:0})}r.push(de),a=a.applyInner(de),f=!0}u&&(u[_]={state:a,n:r.length})}}if(!f)return{state:a,transactions:r}}}applyInner(n){if(!n.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let r=new hs(this.config),a=this.config.fields;for(let u=0;u<a.length;u++){let f=a[u];r[f.name]=f.apply(n,this[f.name],this,r)}return r}get tr(){return new oc(this)}static create(n){let r=new Bs(n.doc?n.doc.type.schema:n.schema,n.plugins),a=new hs(r);for(let u=0;u<r.fields.length;u++)a[r.fields[u].name]=r.fields[u].init(n,a);return a}reconfigure(n){let r=new Bs(this.schema,n.plugins),a=r.fields,u=new hs(r);for(let f=0;f<a.length;f++){let _=a[f].name;u[_]=this.hasOwnProperty(_)?this[_]:a[f].init(n,u)}return u}toJSON(n){let r={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(r.storedMarks=this.storedMarks.map(a=>a.toJSON())),n&&"object"==typeof n)for(let a in n){if("doc"==a||"selection"==a)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let u=n[a],f=u.spec.state;f&&f.toJSON&&(r[a]=f.toJSON.call(u,this[u.key]))}return r}static fromJSON(n,r,a){if(!r)throw new RangeError("Invalid input for EditorState.fromJSON");if(!n.schema)throw new RangeError("Required config field 'schema' missing");let u=new Bs(n.schema,n.plugins),f=new hs(u);return u.fields.forEach(_=>{if("doc"==_.name)f.doc=Re.fromJSON(n.schema,r.doc);else if("selection"==_.name)f.selection=ei.fromJSON(f.doc,r.selection);else if("storedMarks"==_.name)r.storedMarks&&(f.storedMarks=r.storedMarks.map(n.schema.markFromJSON));else{if(a)for(let M in a){let O=a[M],Q=O.spec.state;if(O.key==_.name&&Q&&Q.fromJSON&&Object.prototype.hasOwnProperty.call(r,M))return void(f[_.name]=Q.fromJSON.call(O,n,r[M],f))}f[_.name]=_.init(n,f)}}),f}}function wl(d,n,r){for(let a in d){let u=d[a];u instanceof Function?u=u.bind(n):"handleDOMEvents"==a&&(u=wl(u,n,{})),r[a]=u}return r}class Ro{constructor(n){this.spec=n,this.props={},n.props&&wl(n.props,this,this.props),this.key=n.key?n.key.key:po("plugin")}getState(n){return n[this.key]}}const fs=Object.create(null);function po(d){return d in fs?d+"$"+ ++fs[d]:(fs[d]=0,d+"$")}class ho{constructor(n="key"){this.key=po(n)}get(n){return n.config.pluginsByKey[this.key]}getState(n){return n[this.key]}}const wr=function(d){for(var n=0;;n++)if(!(d=d.previousSibling))return n},qo=function(d){let n=d.assignedSlot||d.parentNode;return n&&11==n.nodeType?n.host:n};let za=null;const Ko=function(d,n,r){let a=za||(za=document.createRange());return a.setEnd(d,r??d.nodeValue.length),a.setStart(d,n||0),a},Fo=function(d,n,r,a){return r&&($a(d,n,r,a,-1)||$a(d,n,r,a,1))},ac=/^(img|br|input|textarea|hr)$/i;function $a(d,n,r,a,u){for(;;){if(d==r&&n==a)return!0;if(n==(u<0?0:Yo(d))){let f=d.parentNode;if(!f||1!=f.nodeType||Jo(d)||ac.test(d.nodeName)||"false"==d.contentEditable)return!1;n=wr(d)+(u<0?0:1),d=f}else{if(1!=d.nodeType)return!1;if("false"==(d=d.childNodes[n+(u<0?-1:0)]).contentEditable)return!1;n=u<0?Yo(d):0}}}function Yo(d){return 3==d.nodeType?d.nodeValue.length:d.childNodes.length}function Jo(d){let n;for(let r=d;r&&!(n=r.pmViewDesc);r=r.parentNode);return n&&n.node&&n.node.isBlock&&(n.dom==d||n.contentDOM==d)}const ya=function(d){return d.focusNode&&Fo(d.focusNode,d.focusOffset,d.anchorNode,d.anchorOffset)};function Zo(d,n){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=d,r.key=r.code=n,r}const J=typeof navigator<"u"?navigator:null,ge=typeof document<"u"?document:null,st=J&&J.userAgent||"",Bt=/Edge\/(\d+)/.exec(st),Zt=/MSIE \d/.exec(st),yn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(st),Ai=!!(Zt||yn||Bt),Li=Zt?document.documentMode:yn?+yn[1]:Bt?+Bt[1]:0,Ei=!Ai&&/gecko\/(\d+)/i.test(st);Ei&&/Firefox\/(\d+)/.exec(st);const vi=!Ai&&/Chrome\/(\d+)/.exec(st),Jn=!!vi,Hi=vi?+vi[1]:0,Pi=!Ai&&!!J&&/Apple Computer/.test(J.vend
1or),bi=Pi&&(/Mobile\/\w+/.test(st)||!!J&&J.maxTouchPoints>2),rn=bi||!!J&&/Mac/.test(J.platform),Sn=!!J&&/Win/.test(J.platform),xi=/Android \d/.test(st),Fr=!!ge&&"webkitFontSmoothing"in ge.documentElement.style,yr=Fr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Gr(d){return{left:0,right:d.documentElement.clientWidth,top:0,bottom:d.documentElement.clientHeight}}function Ur(d,n){return"number"==typeof d?d:d[n]}function ar(d){let n=d.getBoundingClientRect();return{left:n.left,right:n.left+d.clientWidth*(n.width/d.offsetWidth||1),top:n.top,bottom:n.top+d.clientHeight*(n.height/d.offsetHeight||1)}}function Yr(d,n,r){let a=d.someProp("scrollThreshold")||0,u=d.someProp("scrollMargin")||5,f=d.dom.ownerDocument;for(let _=r||d.dom;_;_=qo(_)){if(1!=_.nodeType)continue;let M=_,O=M==f.body,Q=O?Gr(f):ar(M),de=0,Ye=0;if(n.top<Q.top+Ur(a,"top")?Ye=-(Q.top-n.top+Ur(u,"top")):n.bottom>Q.bottom-Ur(a,"bottom")&&(Ye=n.bottom-n.top>Q.bottom-Q.top?n.top+Ur(u,"top")-Q.top:n.bottom-Q.bottom+Ur(u,"bottom")),n.left<Q.left+Ur(a,"left")?de=-(Q.left-n.left+Ur(u,"left")):n.right>Q.right-Ur(a,"right")&&(de=n.right-Q.right+Ur(u,"right")),de||Ye)if(O)f.defaultView.scrollBy(de,Ye);else{let ut=M.scrollLeft,Tt=M.scrollTop;Ye&&(M.scrollTop+=Ye),de&&(M.scrollLeft+=de);let At=M.scrollLeft-ut,nn=M.scrollTop-Tt;n={left:n.left-At,top:n.top-nn,right:n.right-At,bottom:n.bottom-nn}}if(O||/^(fixed|sticky)$/.test(getComputedStyle(_).position))break}}function Ln(d){let n=[],r=d.ownerDocument;for(let a=d;a&&(n.push({dom:a,top:a.scrollTop,left:a.scrollLeft}),d!=r);a=qo(a));return n}function lc(d,n){for(let r=0;r<d.length;r++){let{dom:a,top:u,left:f}=d[r];a.scrollTop!=u+n&&(a.scrollTop=u+n),a.scrollLeft!=f&&(a.scrollLeft=f)}}let gs=null;function ia(d,n){let r,u,O,Q,a=2e8,f=0,_=n.top,M=n.top;for(let de=d.firstChild,Ye=0;de;de=de.nextSibling,Ye++){let ut;if(1==de.nodeType)ut=de.getClientRects();else{if(3!=de.nodeType)continue;ut=Ko(de).getClientRects()}for(let Tt=0;Tt<ut.length;Tt++){let At=ut[Tt];if(At.top<=_&&At.bottom>=M){_=Math.max(At.bottom,_),M=Math.min(At.top,M);let nn=At.left>n.left?At.left-n.left:At.right<n.left?n.left-At.right:0;if(nn<a){r=de,a=nn,u=nn&&3==r.nodeType?{left:At.right<n.left?At.right:At.left,top:n.top}:n,1==de.nodeType&&nn&&(f=Ye+(n.left>=(At.left+At.right)/2?1:0));continue}}else At.top>n.top&&!O&&At.left<=n.left&&At.right>=n.left&&(O=de,Q={left:Math.max(At.left,Math.min(At.right,n.left)),top:At.top});!r&&(n.left>=At.right&&n.top>=At.top||n.left>=At.left&&n.top>=At.bottom)&&(f=Ye+1)}}return!r&&O&&(r=O,u=Q,a=0),r&&3==r.nodeType?function ra(d,n){let r=d.nodeValue.length,a=document.createRange();for(let u=0;u<r;u++){a.setEnd(d,u+1),a.setStart(d,u);let f=bs(a,1);if(f.top!=f.bottom&&No(n,f))return{node:d,offset:u+(n.left>=(f.left+f.right)/2?1:0)}}return{node:d,offset:0}}(r,u):!r||a&&1==r.nodeType?{node:d,offset:f}:ia(r,u)}function No(d,n){return d.left>=n.left-1&&d.left<=n.right+1&&d.top>=n.top-1&&d.top<=n.bottom+1}function Aa(d,n,r){let a=d.childNodes.length;if(a&&r.top<r.bottom)for(let u=Math.max(0,Math.min(a-1,Math.floor(a*(n.top-r.top)/(r.bottom-r.top))-2)),f=u;;){let _=d.childNodes[f];if(1==_.nodeType){let M=_.getClientRects();for(let O=0;O<M.length;O++){let Q=M[O];if(No(n,Q))return Aa(_,n,Q)}}if((f=(f+1)%a)==u)break}return d}function sa(d,n){let a,r=d.dom.ownerDocument,u=0,f=function ke(d,n,r){if(d.caretPositionFromPoint)try{let a=d.caretPositionFromPoint(n,r);if(a)return{node:a.offsetNode,offset:a.offset}}catch{}if(d.caretRangeFromPoint){let a=d.caretRangeFromPoint(n,r);if(a)return{node:a.startContainer,offset:a.startOffset}}}(r,n.left,n.top);f&&({node:a,offset:u}=f);let M,_=(d.root.elementFromPoint?d.root:r).elementFromPoint(n.left,n.top);if(!_||!d.dom.contains(1!=_.nodeType?_.parentNode:_)){let Q=d.dom.getBoundingClientRect();if(!No(n,Q)||(_=Aa(d.dom,n,Q),!_))return null}if(Pi)for(let Q=_;a&&Q;Q=qo(Q))Q.draggable&&(a=void 0);if(_=function Ha(d,n){let r=d.parentNode;return r&&/^li$/i.test(r.nodeName)&&n.left<d.getBoundingClientRect().left?r:d}(_,n),a){if(Ei&&1==a.nodeType&&(u=Math.min(u,a.childNodes.length),u<a.childNodes.length)){let de,Q=a.childNodes[u];"IMG"==Q.nodeName&&(de=Q.getBoundingClientRect()).right<=n.left&&de.bottom>n.top&&u++}a==d.dom&&u==a.childNodes.length-1&&1==a.lastChild.nodeType&&n.top>
vendor: 14,142 bytes, line 1
1a.lastChild.getBoundingClientRect().bottom?M=d.state.doc.content.size:(0==u||1!=a.nodeType||"BR"!=a.childNodes[u-1].nodeName)&&(M=function oa(d,n,r,a){let u=-1;for(let f=n,_=!1;f!=d.dom;){let M=d.docView.nearestDesc(f,!0);if(!M)return null;if(1==M.dom.nodeType&&(M.node.isBlock&&M.parent&&!_||!M.contentDOM)){let O=M.dom.getBoundingClientRect();if(M.node.isBlock&&M.parent&&!_&&(_=!0,O.left>a.left||O.top>a.top?u=M.posBefore:(O.right<a.left||O.bottom<a.top)&&(u=M.posAfter)),!M.contentDOM&&u<0&&!M.node.isText)return(M.node.isBlock?a.top<(O.top+O.bottom)/2:a.left<(O.left+O.right)/2)?M.posBefore:M.posAfter}f=M.dom.parentNode}return u>-1?u:d.docView.posFromDOM(n,r,-1)}(d,a,u,n))}null==M&&(M=function Uc(d,n,r){let{node:a,offset:u}=ia(n,r),f=-1;if(1==a.nodeType&&!a.firstChild){let _=a.getBoundingClientRect();f=_.left!=_.right&&r.left>(_.left+_.right)/2?1:-1}return d.docView.posFromDOM(a,u,f)}(d,_,n));let O=d.docView.nearestDesc(_,!0);return{pos:M,inside:O?O.posAtStart-O.border:-1}}function di(d){return d.top<d.bottom||d.left<d.right}function bs(d,n){let r=d.getClientRects();if(r.length){let a=r[n<0?0:r.length-1];if(di(a))return a}return Array.prototype.find.call(r,di)||d.getBoundingClientRect()}const Dl=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function es(d,n,r){let{node:a,offset:u,atom:f}=d.docView.domFromPos(n,r<0?-1:1),_=Fr||Ei;if(3==a.nodeType){if(!_||!Dl.test(a.nodeValue)&&(r<0?u:u!=a.nodeValue.length)){let O=u,Q=u,de=r<0?1:-1;return r<0&&!u?(Q++,de=-1):r>=0&&u==a.nodeValue.length?(O--,de=1):r<0?O--:Q++,Vs(bs(Ko(a,O,Q),de),de<0)}{let O=bs(Ko(a,u,u),r);if(Ei&&u&&/\s/.test(a.nodeValue[u-1])&&u<a.nodeValue.length){let Q=bs(Ko(a,u-1,u-1),-1);if(Q.top==O.top){let de=bs(Ko(a,u,u+1),-1);if(de.top!=O.top)return Vs(de,de.left<Q.left)}}return O}}if(!d.state.doc.resolve(n-(f||0)).parent.inlineContent){if(null==f&&u&&(r<0||u==Yo(a))){let O=a.childNodes[u-1];if(1==O.nodeType)return aa(O.getBoundingClientRect(),!1)}if(null==f&&u<Yo(a)){let O=a.childNodes[u];if(1==O.nodeType)return aa(O.getBoundingClientRect(),!0)}return aa(a.getBoundingClientRect(),r>=0)}if(null==f&&u&&(r<0||u==Yo(a))){let O=a.childNodes[u-1],Q=3==O.nodeType?Ko(O,Yo(O)-(_?0:1)):1!=O.nodeType||"BR"==O.nodeName&&O.nextSibling?null:O;if(Q)return Vs(bs(Q,1),!1)}if(null==f&&u<Yo(a)){let O=a.childNodes[u];for(;O.pmViewDesc&&O.pmViewDesc.ignoreForCoords;)O=O.nextSibling;let Q=O?3==O.nodeType?Ko(O,0,_?0:1):1==O.nodeType?O:null:null;if(Q)return Vs(bs(Q,-1),!0)}return Vs(bs(3==a.nodeType?Ko(a):a,-r),r>=0)}function Vs(d,n){if(0==d.width)return d;let r=n?d.left:d.right;return{top:d.top,bottom:d.bottom,left:r,right:r}}function aa(d,n){if(0==d.height)return d;let r=n?d.top:d.bottom;return{top:r,bottom:r,left:d.left,right:d.right}}function Dr(d,n,r){let a=d.state,u=d.root.activeElement;a!=n&&d.updateState(n),u!=d.dom&&d.focus();try{return r()}finally{a!=n&&d.updateState(a),u!=d.dom&&u&&u.focus()}}const ao=/[\u0590-\u08ac]/;let Ml=null,Gs=null,Xa=!1;class qa{constructor(n,r,a,u){this.parent=n,this.children=r,this.dom=a,this.contentDOM=u,this.dirty=0,a.pmViewDesc=this}matchesWidget(n){return!1}matchesMark(n){return!1}matchesNode(n,r,a){return!1}matchesHack(n){return!1}parseRule(){return null}stopEvent(n){return!1}get size(){let n=0;for(let r=0;r<this.children.length;r++)n+=this.children[r].size;return n}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let n=0;n<this.children.length;n++)this.children[n].destroy()}posBeforeChild(n){for(let r=0,a=this.posAtStart;;r++){let u=this.children[r];if(u==n)return a;a+=u.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(n,r,a){if(this.contentDOM&&this.contentDOM.contains(1==n.nodeType?n:n.parentNode)){if(a<0){let f,_;if(n==this.contentDOM)f=n.childNodes[r-1];else{for(;n.parentNode!=this.contentDOM;)n=n.parentNode;f=n.previousSibling}for(;f&&(!(_=f.pmViewDesc)||_.parent!=this);)f=f.previousSibling;return f?this.posBeforeChild(_)+_.size:this.posAtStart}{let f,_;if(n==this.contentDOM)f=n.childNodes[r];else{for(;n.parentNode!=this.contentDOM;)n=n.parentNode;f=n.nextSibling}for(;f&&(!(_=f.pmViewDesc)||_.parent!=this);)f=f.nextSibling;return f?this.posBeforeChild(_):this.posAtEnd}}let u;if(n==this.dom&&this.contentDOM)u=r>wr(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))u=2&n.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==r)for(let f=n;;f=f.parentNode){if(f==this.dom){u=!1;break}if(f.previousSibling)break}if(null==u&&r==n.childNodes.length)for(let f=n;;f=f.parentNode){if(f==this.dom){u=!0;break}if(f.nextSibling)break}}return u??a>0?this.posAtEnd:this.posAtStart}nearestDesc(n,r=!1){for(let a=!0,u=n;u;u=u.parentNode){let _,f=this.getDesc(u);if(f&&(!r||f.node)){if(!a||!(_=f.nodeDOM)||(1==_.nodeType?_.contains(1==n.nodeType?n:n.parentNode):_==n))return f;a=!1}}}getDesc(n){let r=n.pmViewDesc;for(let a=r;a;a=a.parent)if(a==this)return r}posFromDOM(n,r,a){for(let u=n;u;u=u.parentNode){let f=this.getDesc(u);if(f)return f.localPosFromDOM(n,r,a)}return-1}descAt(n){for(let r=0,a=0;r<this.children.length;r++){let u=this.children[r],f=a+u.size;if(a==n&&f!=a){for(;!u.border&&u.children.length;)u=u.children[0];return u}if(n<f)return u.descAt(n-a-u.border);a=f}}domFromPos(n,r){if(!this.contentDOM)return{node:this.dom,offset:0,atom:n+1};let a=0,u=0;for(let f=0;a<this.children.length;a++){let _=this.children[a],M=f+_.size;if(M>n||_ instanceof $){u=n-f;break}f=M}if(u)return this.children[a].domFromPos(u-this.children[a].border,r);for(let f;a&&!(f=this.children[a-1]).size&&f instanceof Sd&&f.side>=0;a--);if(r<=0){let f,_=!0;for(;f=a?this.children[a-1]:null,f&&f.dom.parentNode!=this.contentDOM;a--,_=!1);return f&&r&&_&&!f.border&&!f.domAtom?f.domFromPos(f.size,r):{node:this.contentDOM,offset:f?wr(f.dom)+1:0}}{let f,_=!0;for(;f=a<this.children.length?this.children[a]:null,f&&f.dom.parentNode!=this.contentDOM;a++,_=!1);return f&&_&&!f.border&&!f.domAtom?f.domFromPos(0,r):{node:this.contentDOM,offset:f?wr(f.dom):this.contentDOM.childNodes.length}}}parseRange(n,r,a=0){if(0==this.children.length)return{node:this.contentDOM,from:n,to:r,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let u=-1,f=-1;for(let _=a,M=0;;M++){let O=this.children[M],Q=_+O.size;if(-1==u&&n<=Q){let de=_+O.border;if(n>=de&&r<=Q-O.border&&O.node&&O.contentDOM&&this.contentDOM.contains(O.contentDOM))return O.parseRange(n,r,de);n=_;for(let Ye=M;Ye>0;Ye--){let ut=this.children[Ye-1];if(ut.size&&ut.dom.parentNode==this.contentDOM&&!ut.emptyChildAt(1)){u=wr(ut.dom)+1;break}n-=ut.size}-1==u&&(u=0)}if(u>-1&&(Q>r||M==this.children.length-1)){r=Q;for(let de=M+1;de<this.children.length;de++){let Ye=this.children[de];if(Ye.size&&Ye.dom.parentNode==this.contentDOM&&!Ye.emptyChildAt(-1)){f=wr(Ye.dom);break}r+=Ye.size}-1==f&&(f=this.contentDOM.childNodes.length);break}_=Q}return{node:this.contentDOM,from:n,to:r,fromOffset:u,toOffset:f}}emptyChildAt(n){if(this.border||!this.contentDOM||!this.children.length)return!1;let r=this.children[n<0?0:this.children.length-1];return 0==r.size||r.emptyChildAt(n)}domAfterPos(n){let{node:r,offset:a}=this.domFromPos(n,0);if(1!=r.nodeType||a==r.childNodes.length)throw new RangeError("No node after pos "+n);return r.childNodes[a]}setSelection(n,r,a,u=!1){let f=Math.min(n,r),_=Math.max(n,r);for(let ut=0,Tt=0;ut<this.children.length;ut++){let At=this.children[ut],nn=Tt+At.size;if(f>Tt&&_<nn)return At.setSelection(n-Tt-At.border,r-Tt-At.border,a,u);Tt=nn}let M=this.domFromPos(n,n?-1:1),O=r==n?M:this.domFromPos(r,r?-1:1),Q=a.getSelection(),de=!1;if((Ei||Pi)&&n==r){let{node:ut,offset:Tt}=M;if(3==ut.nodeType){if(de=!(!Tt||"\n"!=ut.nodeValue[Tt-1]),de&&Tt==ut.nodeValue.length)for(let nn,At=ut;At;At=At.parentNode){if(nn=At.nextSibling){"BR"==nn.nodeName&&(M=O={node:nn.parentNode,offset:wr(nn)+1});break}let En=At.pmViewDesc;if(En&&En.node&&En.node.isBlock)break}}else{let At=ut.childNodes[Tt-1];de=At&&("BR"==At.nodeName||"false"==At.contentEditable)}}if(Ei&&Q.focusNode&&Q.focusNode!=O.node&&1==Q.focusNode.nodeType){let ut=Q.focusNode.childNodes[Q.focusOffset];ut&&"false"==ut.contentEditable&&(u=!0)}if(!(u||de&&Pi)&&Fo(M.node,M.offset,Q.anchorNode,Q.anchorOffset)&&Fo(O.node,O.offset,Q.focusNode,Q.focusOffset))return;let Ye=!1;if((Q.extend||n==r)&&!de){Q.collapse(M.node,M.offset);try{n!=r&&Q.extend(O.node,O.offset),Ye=!0}catch{}}if(!Ye){if(n>r){let Tt=M;M=O,O=Tt}let ut=document.createRange();ut.setEnd(O.node,O.offset),ut.setStart(M.node,M.offset),Q.removeAllRanges(),Q.addRange(ut)}}ignoreMutation(n){return!this.contentDOM&&"selection"!=n.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(n,r){for(let a=0,u=0;u<this.children.length;u++){let f=this.children[u],_=a+f.size;if(a==_?n<=_&&r>=a:n<_&&r>a){let M=a+f.border,O=_-f.border;if(n>=M&&r<=O)return this.dirty=n==a||r==_?2:1,void(n!=M||r!=O||!f.contentLost&&f.dom.parentNode==this.contentDOM?f.markDirty(n-M,r-M):f.dirty=3);f.dirty=f.dom!=f.contentDOM||f.dom.parentNode!=this.contentDOM||f.children.length?3:2}a=_}this.dirty=2}markParentsDirty(){let n=1;for(let r=this.parent;r;r=r.parent,n++){let a=1==n?2:1;r.dirty<a&&(r.dirty=a)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class Sd extends qa{constructor(n,r,a,u){let f,_=r.type.toDOM;if("function"==typeof _&&(_=_(a,()=>f?f.parent?f.parent.posBeforeChild(f):void 0:u)),!r.type.spec.raw){if(1!=_.nodeType){let M=document.createElement("span");M.appendChild(_),_=M}_.contentEditable="false",_.classList.add("ProseMirror-widget")}super(n,[],_,null),this.widget=r,this.widget=r,f=this}matchesWidget(n){return 0==this.dirty&&n.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(n){let r=this.widget.spec.stopEvent;return!!r&&r(n)}ignoreMutation(n){return"selection"!=n.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class $c extends qa{constructor(n,r,a,u){super(n,[],r,null),this.textDOM=a,this.text=u}get size(){return this.text.length}localPosFromDOM(n,r){return n!=this.textDOM?this.posAtStart+(r?this.size:0):this.posAtStart+r}domFromPos(n){return{node:this.textDOM,offset:n}}ignoreMutation(n){return"characterData"===n.type&&n.target.nodeValue==n.oldValue}}class Ka extends qa{constructor(n,r,a,u){super(n,[],a,u),this.mark=r}static create(n,r,a,u){let f=u.nodeViews[r.type.name],_=f&&f(r,u,a);return(!_||!_.dom)&&(_=ce.renderSpec(document,r.type.spec.toDOM(r,a))),new Ka(n,r,_.dom,_.contentDOM||_.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(n){return 3!=this.dirty&&this.mark.eq(n)}markDirty(n,r){if(super.markDirty(n,r),0!=this.dirty){let a=this.parent;for(;!a.node;)a=a.parent;a.dirty<this.dirty&&(a.dirty=this.dirty),this.dirty=0}}slice(n,r,a){let u=Ka.create(this.parent,this.mark,!0,a),f=this.children,_=this.size;r<_&&(f=Od(f,r,_,a)),n>0&&(f=Od(f,0,n,a));for(let M=0;M<f.length;M++)f[M].parent=u;return u.children=f,u}}class P extends qa{constructor(n,r,a,u,f,_,M,O,Q){super(n,[],f,_),this.node=r,this.outerDeco=a,this.innerDeco=u,this.nodeDOM=M}static create(n,r,a,u,f,_){let O,M=f.nodeViews[r.type.name],Q=M&&M(r,f,()=>O?O.parent?O.parent.posBeforeChild(O):void 0:_,a,u),de=Q&&Q.dom,Ye=Q&&Q.contentDOM;if(r.isText)if(de){if(3!=de.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else de=document.createTextNode(r.text);else de||({dom:de,contentDOM:Ye}=ce.renderSpec(document,r.type.spec.toDOM(r)));!Ye&&!r.isText&&"BR"!=de.nodeName&&(de.hasAttribute("contenteditable")||(de.contentEditable="false"),r.type.spec.draggable&&(de.draggable=!0));let ut=de;return de=Di(de,a,r),Q?O=new _e(n,r,a,u,de,Ye||null,ut,Q,f,_+1):r.isText?new F(n,r,a,u,de,ut,f):new P(n,r,a,u,de,Ye||null,ut,f,_+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let n={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(n.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let r=this.children.length-1;r>=0;r--){let a=this.children[r];if(this.dom.contains(a.dom.parentNode)){n.contentElement=a.dom.parentNode;break}}n.contentElement||(n.getContent=()=>we.empty)}else n.contentElement=this.contentDOM;else n.getContent=()=>this.node.content;return n}matchesNode(n,r,a){return 0==this.dirty&&n.eq(this.node)&&Mr(r,this.outerDeco)&&a.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(n,r){let a=this.node.inlineContent,u=r,f=n.composing?this.localCompositionInfo(n,r):null,_=f&&f.pos>-1?f:null,M=f&&f.pos<0,O=new El(this,_&&_.node,n);(function la(d,n,r,a){let u=n.locals(d),f=0;if(0==u.length){for(let Q=0;Q<d.childCount;Q++){let de=d.child(Q);a(de,u,n.forChild(f,de),Q),f+=de.nodeSize}return}let _=0,M=[],O=null;for(let Q=0;;){if(_<u.length&&u[_].to==f){let nn,At=u[_++];for(;_<u.length&&u[_].to==f;)(nn||(nn=[At])).push(u[_++]);if(nn){nn.sort(Qc);for(let En=0;En<nn.length;En++)r(nn[En],Q,!!O)}else r(At,Q,!!O)}let de,Ye;if(O)Ye=-1,de=O,O=null;else{if(!(Q<d.childCount))break;Ye=Q,de=d.child(Q++)}for(let At=0;At<M.length;At++)M[At].to<=f&&M.splice(At--,1);for(;_<u.length&&u[_].from<=f&&u[_].to>f;)M.push(u[_++]);let ut=f+de.nodeSize;if(de.isText){let At=ut;_<u.length&&u[_].from<At&&(At=u[_].from);for(let nn=0;nn<M.length;nn++)M[nn].to<At&&(At=M[nn].to);At<ut&&(O=de.cut(At-f),de=de.cut(0,At-f),ut=At,Ye=-1)}a(de,de.isInline&&!de.isLeaf?M.filter(At=>!At.inline):M.slice(),n.forChild(f,de),Ye),f=ut}})(this.node,this.innerDeco,(Q,de,Ye)=>{Q.spec.marks?O.syncToMarks(Q.spec.marks,a,n):Q.type.side>=0&&!Ye&&O.syncToMarks(de==this.node.childCount?ot.none:this.node.child(de).marks,a,n),O.placeWidget(Q,n,u)},(Q,de,Ye,ut)=>{let Tt;O.syncToMarks(Q.marks,a,n),O.findNodeMatch(Q,de,Ye,ut)||M&&n.state.selection.from>
1u&&n.state.selection.to<u+Q.nodeSize&&(Tt=O.findIndexWithChild(f.node))>-1&&O.updateNodeAt(Q,de,Ye,Tt,n)||O.updateNextNode(Q,de,Ye,n,ut,u)||O.addNode(Q,de,Ye,n,u),u+=Q.nodeSize}),O.syncToMarks([],a,n),this.node.isTextblock&&O.addTextblockHacks(),O.destroyRest(),(O.changed||2==this.dirty)&&(_&&this.protectLocalComposition(n,_),Be(this.contentDOM,this.children,n),bi&&function Gu(d){if("UL"==d.nodeName||"OL"==d.nodeName){let n=d.style.cssText;d.style.cssText=n+"; list-style: square !important",window.getComputedStyle(d),d.style.cssText=n}}(this.dom))}localCompositionInfo(n,r){let{from:a,to:u}=n.state.selection;if(!(n.state.selection instanceof Wi)||a<r||u>r+this.node.content.size)return null;let f=n.domSelectionRange(),_=function Pd(d,n){for(;;){if(3==d.nodeType)return d;if(1==d.nodeType&&n>0){if(d.childNodes.length>n&&3==d.childNodes[n].nodeType)return d.childNodes[n];n=Yo(d=d.childNodes[n-1])}else{if(!(1==d.nodeType&&n<d.childNodes.length))return null;d=d.childNodes[n],n=0}}}(f.focusNode,f.focusOffset);if(!_||!this.dom.contains(_.parentNode))return null;if(this.node.inlineContent){let M=_.nodeValue,O=function Uu(d,n,r,a){for(let u=0,f=0;u<d.childCount&&f<=a;){let _=d.child(u++),M=f;if(f+=_.nodeSize,!_.isText)continue;let O=_.text;for(;u<d.childCount;){let Q=d.child(u++);if(f+=Q.nodeSize,!Q.isText)break;O+=Q.text}if(f>=r){let Q=M<a?O.lastIndexOf(n,a-M-1):-1;if(Q>=0&&Q+n.length+M>=r)return M+Q;if(r==a&&O.length>=a+n.length-M&&O.slice(a-M,a-M+n.length)==n)return a}}return-1}(this.node.content,M,a-r,u-r);return O<0?null:{node:_,pos:O,text:M}}return{node:_,pos:-1,text:""}}protectLocalComposition(n,{node:r,pos:a,text:u}){if(this.getDesc(r))return;let f=r;for(;f.parentNode!=this.contentDOM;f=f.parentNode){for(;f.previousSibling;)f.parentNode.removeChild(f.previousSibling);for(;f.nextSibling;)f.parentNode.removeChild(f.nextSibling);f.pmViewDesc&&(f.pmViewDesc=void 0)}let _=new $c(this,f,r,u);n.input.compositionNodes.push(_),this.children=Od(this.children,a,a+u.length,n,_)}update(n,r,a,u){return!(3==this.dirty||!n.sameMarkup(this.node)||(this.updateInner(n,r,a,u),0))}updateInner(n,r,a,u){this.updateOuterDeco(r),this.node=n,this.innerDeco=a,this.contentDOM&&this.updateChildren(u,this.posAtStart),this.dirty=0}updateOuterDeco(n){if(Mr(n,this.outerDeco))return;let r=1!=this.nodeDOM.nodeType,a=this.dom;this.dom=bn(this.dom,this.nodeDOM,Nt(this.outerDeco,this.node,r),Nt(n,this.node,r)),this.dom!=a&&(a.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=n}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function z(d,n,r,a,u){Di(a,n,d);let f=new P(void 0,d,n,r,a,a,a,u,0);return f.contentDOM&&f.updateChildren(u,0),f}class F extends P{constructor(n,r,a,u,f,_,M){super(n,r,a,u,f,null,_,M,0)}parseRule(){let n=this.nodeDOM.parentNode;for(;n&&n!=this.dom&&!n.pmIsDeco;)n=n.parentNode;return{skip:n||!0}}update(n,r,a,u){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!n.sameMarkup(this.node)||(this.updateOuterDeco(r),(0!=this.dirty||n.text!=this.node.text)&&n.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=n.text,u.trackWrites==this.nodeDOM&&(u.trackWrites=null)),this.node=n,this.dirty=0,0))}inParent(){let n=this.parent.contentDOM;for(let r=this.nodeDOM;r;r=r.parentNode)if(r==n)return!0;return!1}domFromPos(n){return{node:this.nodeDOM,offset:n}}localPosFromDOM(n,r,a){return n==this.nodeDOM?this.posAtStart+Math.min(r,this.node.text.length):super.localPosFromDOM(n,r,a)}ignoreMutation(n){return"characterData"!=n.type&&"selection"!=n.type}slice(n,r,a){let u=this.node.cut(n,r),f=document.createTextNode(u.text);return new F(this.parent,u,this.outerDeco,this.innerDeco,f,f,a)}markDirty(n,r){super.markDirty(n,r),this.dom!=this.nodeDOM&&(0==n||r==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}}class $ extends qa{parseRule(){return{ignore:!0}}matchesHack(n){return 0==this.dirty&&this.dom.nodeName==n}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class _e extends P{constructor(n,r,a,u,f,_,M,O,Q,de){super(n,r,a,u,f,_,M,Q,de),this.spec=O}update(n,r,a,u){if(3==this.dirty)return!1;if(this.spec.update){let f=this.spec.update(n,r,a);return f&&this.updateInner(n,r,a,u),f}return!(!this.contentDOM&&!n.isLeaf)&&super.update(n,r,a,u)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(n,r,a,u){this.spec.setSelection?this.spec.setSelection(n,r,a):super.setSelection(n,r,a,u)}
vendor: 4,793 bytes, line 1
1destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(n){return!!this.spec.stopEvent&&this.spec.stopEvent(n)}ignoreMutation(n){return this.spec.ignoreMutation?this.spec.ignoreMutation(n):super.ignoreMutation(n)}}function Be(d,n,r){let a=d.firstChild,u=!1;for(let f=0;f<n.length;f++){let _=n[f],M=_.dom;if(M.parentNode==d){for(;M!=a;)a=Ya(a),u=!0;a=a.nextSibling}else u=!0,d.insertBefore(M,a);if(_ instanceof Ka){let O=a?a.previousSibling:d.lastChild;Be(_.contentDOM,_.children,r),a=O?O.nextSibling:d.firstChild}}for(;a;)a=Ya(a),u=!0;u&&r.trackWrites==d&&(r.trackWrites=null)}const dt=function(d){d&&(this.nodeName=d)};dt.prototype=Object.create(null);const Vt=[new dt];function Nt(d,n,r){if(0==d.length)return Vt;let a=r?Vt[0]:new dt,u=[a];for(let f=0;f<d.length;f++){let _=d[f].type.attrs;if(_){_.nodeName&&u.push(a=new dt(_.nodeName));for(let M in _){let O=_[M];null!=O&&(r&&1==u.length&&u.push(a=new dt(n.isInline?"span":"div")),"class"==M?a.class=(a.class?a.class+" ":"")+O:"style"==M?a.style=(a.style?a.style+";":"")+O:"nodeName"!=M&&(a[M]=O))}}}return u}function bn(d,n,r,a){if(r==Vt&&a==Vt)return n;let u=n;for(let f=0;f<a.length;f++){let _=a[f],M=r[f];if(f){let O;M&&M.nodeName==_.nodeName&&u!=d&&(O=u.parentNode)&&O.nodeName.toLowerCase()==_.nodeName||(O=document.createElement(_.nodeName),O.pmIsDeco=!0,O.appendChild(u),M=Vt[0]),u=O}ki(u,M||Vt[0],_)}return u}function ki(d,n,r){for(let a in n)"class"!=a&&"style"!=a&&"nodeName"!=a&&!(a in r)&&d.removeAttribute(a);for(let a in r)"class"!=a&&"style"!=a&&"nodeName"!=a&&r[a]!=n[a]&&d.setAttribute(a,r[a]);if(n.class!=r.class){let a=n.class?n.class.split(" ").filter(Boolean):[],u=r.class?r.class.split(" ").filter(Boolean):[];for(let f=0;f<a.length;f++)-1==u.indexOf(a[f])&&d.classList.remove(a[f]);for(let f=0;f<u.length;f++)-1==a.indexOf(u[f])&&d.classList.add(u[f]);0==d.classList.length&&d.removeAttribute("class")}if(n.style!=r.style){if(n.style){let u,a=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;u=a.exec(n.style);)d.style.removeProperty(u[1])}r.style&&(d.style.cssText+=r.style)}}function Di(d,n,r){return bn(d,d,Vt,Nt(n,r,1!=d.nodeType))}function Mr(d,n){if(d.length!=n.length)return!1;for(let r=0;r<d.length;r++)if(!d[r].type.eq(n[r].type))return!1;return!0}function Ya(d){let n=d.nextSibling;return d.parentNode.removeChild(d),n}class El{constructor(n,r,a){this.lock=r,this.view=a,this.index=0,this.stack=[],this.changed=!1,this.top=n,this.preMatch=function kl(d,n){let r=n,a=r.children.length,u=d.childCount,f=new Map,_=[];e:for(;u>0;){let M;for(;;)if(a){let Q=r.children[a-1];if(!(Q instanceof Ka)){M=Q,a--;break}r=Q,a=Q.children.length}else{if(r==n)break e;a=r.parent.children.indexOf(r),r=r.parent}let O=M.node;if(O){if(O!=d.child(u-1))break;--u,f.set(M,u),_.push(M)}}return{index:u,matched:f,matches:_.reverse()}}(n.node.content,n)}destroyBetween(n,r){if(n!=r){for(let a=n;a<r;a++)this.top.children[a].destroy();this.top.children.splice(n,r-n),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(n,r,a){let u=0,f=this.stack.length>>1,_=Math.min(f,n.length);for(;u<_&&(u==f-1?this.top:this.stack[u+1<<1]).matchesMark(n[u])&&!1!==n[u].type.spec.spanning;)u++;for(;u<f;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),f--;for(;f<n.length;){this.stack.push(this.top,this.index+1);let M=-1;for(let O=this.index;O<Math.min(this.index+3,this.top.children.length);O++){let Q=this.top.children[O];if(Q.matchesMark(n[f])&&!this.isLocked(Q.dom)){M=O;break}}if(M>-1)M>this.index&&(this.changed=!0,this.destroyBetween(this.index,M)),this.top=this.top.children[this.index];else{let O=Ka.create(this.top,n[f],r,a);this.top.children.splice(this.index,0,O),this.top=O,this.changed=!0}this.index=0,f++}}findNodeMatch(n,r,a,u){let _,f=-1;if(u>=this.preMatch.index&&(_=this.preMatch.matches[u-this.preMatch.index]).parent==this.top&&_.matchesNode(n,r,a))f=this.top.children.indexOf(_,this.index);else for(let M=this.index,O=Math.min(this.top.children.length,M+5);M<O;M++){let Q=this.top.children[M];if(Q.matchesNode(n,r,a)&&!this.preMatch.matched.has(Q)){f=M;break}}return!(f<0||(this.destroyBetween(this.index,f),this.index++,0))}updateNodeAt(n,r,a,u,f){let _=this.top.children[u];return 3==_.dirty&&_.dom==_.contentDOM&&(_.dirty=2),!!_.update(n,r,a,f)&&(this.destroyBetween(this.index,u),this.index++,!0)}findIndexWithChild(n){for(;;){let r=n.parentNode;if(!r)return-1;if(r==this.top.contentDOM){let a=n.pmViewDesc;if(a)for(let u=this.index;u<this.top.children.length;u++)if(this.top.children[u]==a)return u;return-1}n=r}}updateNextNode(n,r,a,u,f,_){for(let M=this.index;M<this.top.children.length;M++){let O=this.top.children[M];if(O instanceof P){let Q=this.preMatch.matched.get(O);
1if(null!=Q&&Q!=f)return!1;let Ye,de=O.dom,ut=this.isLocked(de)&&!(n.isText&&O.node&&O.node.isText&&O.nodeDOM.nodeValue==n.text&&3!=O.dirty&&Mr(r,O.outerDeco));if(!ut&&O.update(n,r,a,u))return this.destroyBetween(this.index,M),O.dom!=de&&(this.changed=!0),this.index++,!0;if(!ut&&(Ye=this.recreateWrapper(O,n,r,a,u,_)))return this.top.children[this.index]=Ye,Ye.dirty=2,Ye.updateChildren(u,_+1),Ye.dirty=0,this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(n,r,a,u,f,_){if(n.dirty||r.isAtom||!n.children.length||!n.node.content.eq(r.content))return null;let M=P.create(this.top,r,a,u,f,_);if(!M.contentDOM)return null;M.children=n.children,n.children=[],n.destroy();for(let O of M.children)O.parent=M;return M}addNode(n,r,a,u,f){let _=P.create(this.top,n,r,a,u,f);_.contentDOM&&_.updateChildren(u,f+1),this.top.children.splice(this.index++,0,_),this.changed=!0}placeWidget(n,r,a){let u=this.index<this.top.children.length?this.top.children[this.index]:null;if(!u||!u.matchesWidget(n)||n!=u.widget&&u.widget.type.toDOM.parentNode){let f=new Sd(this.top,n,r,a);this.top.children.splice(this.index++,0,f),this.changed=!0}else this.index++}addTextblockHacks(){let n=this.top.children[this.index-1],r=this.top;for(;n instanceof Ka;)r=n,n=r.children[r.children.length-1];(!n||!(n instanceof F)||/\n$/.test(n.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(n.node.text))&&((Pi||Jn)&&n&&"false"==n.dom.contentEditable&&this.addHackNode("IMG",r),this.addHackNode("BR",this.top))}addHackNode(n,r){if(r==this.top&&this.index<r.children.length&&r.children[this.index].matchesHack(n))this.index++;else{let a=document.createElement(n);"IMG"==n&&(a.className="ProseMirror-separator",a.alt=""),"BR"==n&&(a.className="ProseMirror-trailingBreak");let u=new $(this.top,[],a,null);r!=this.top?r.children.push(u):r.children.splice(this.index++,0,u),this.changed=!0}}isLocked(n){return this.lock&&(n==this.lock||1==n.nodeType&&n.contains(this.lock.parentNode))}}function Qc(d,n){return d.type.side-n.type.side}function Od(d,n,r,a,u){let f=[];for(let _=0,M=0;_<d.length;_++){let O=d[_],Q=M,de=M+=O.size;Q>=r||de<=n?f.push(O):(Q<n&&f.push(O.slice(0,n-Q,a)),u&&(f.push(u),u=void 0),de>r&&f.push(O.slice(r-Q,O.size,a)))}return f}function Rd(d,n=null){let r=d.domSelectionRange(),a=d.state.doc;if(!r.focusNode)return null;let u=d.docView.nearestDesc(r.focusNode),f=u&&0==u.size,_=d.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(_<0)return null;let O,Q,M=a.resolve(_);if(ya(r)){for(O=M;u&&!u.node;)u=u.parent;let de=u.node;if(u&&de.isAtom&&Hn.isSelectable(de)&&u.parent&&(!de.isInline||!function Qa(d,n,r){for(let a=0==n,u=n==Yo(d);a||u;){if(d==r)return!0;let f=wr(d);if(!(d=d.parentNode))return!1;a=a&&0==f,u=u&&f==Yo(d)}}(r.focusNode,r.focusOffset,u.dom))){let Ye=u.posBefore;Q=new Hn(_==Ye?M:a.resolve(Ye))}}else{let de=d.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(de<0)return null;O=a.resolve(de)}return Q||(Q=Hu(d,O,M,"pointer"==n||d.state.selection.head<M.pos&&!f?1:-1)),Q}function Fd(d){return d.editable?d.hasFocus():Hc(d)&&document.activeElement&&document.activeElement.contains(d.dom)}function Us(d,n=!1){let r=d.state.selection;if(Ld(d,r),Fd(d)){if(!n&&d.input.mouseDown&&d.input.mouseDown.allowDefault&&Jn){let a=d.domSelectionRange(),u=d.domObserver.currentSelection;if(a.anchorNode&&u.anchorNode&&Fo(a.anchorNode,a.anchorOffset,u.anchorNode,u.anchorOffset))return d.input.mouseDown.delayedSelectionSync=!0,void d.domObserver.setCurSelection()}if(d.domObserver.disconnectSelection(),d.cursorWrapper)!function Qu(d){let n=d.domSelection(),r=document.createRange(),a=d.cursorWrapper.dom,u="IMG"==a.nodeName;u?r.setEnd(a.parentNode,wr(a)+1):r.setEnd(a,0),r.collapse(!1),n.removeAllRanges(),n.addRange(r),!u&&!d.state.selection.visible&&Ai&&Li<=11&&(a.disabled=!0,a.disabled=!1)}(d);else{let f,_,{anchor:a,head:u}=r;zu&&!(r instanceof Wi)&&(r.$from.parent.inlineContent||(f=Wc(d,r.from)),!r.empty&&!r.$from.parent.inlineContent&&(_=Wc(d,r.to))),d.docView.setSelection(a,u,d.root,n),zu&&(f&&xs(f),_&&xs(_)),r.visible?d.dom.classList.remove("ProseMirror-hideselection"):(d.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function $u(d){let n=d.dom.ownerDocument;
1n.removeEventListener("selectionchange",d.input.hideSelectionGuard);let r=d.domSelectionRange(),a=r.anchorNode,u=r.anchorOffset;n.addEventListener("selectionchange",d.input.hideSelectionGuard=()=>{(r.anchorNode!=a||r.anchorOffset!=u)&&(n.removeEventListener("selectionchange",d.input.hideSelectionGuard),setTimeout(()=>{(!Fd(d)||d.state.selection.visible)&&d.dom.classList.remove("ProseMirror-hideselection")},20))})}(d))}d.domObserver.setCurSelection(),d.domObserver.connectSelection()}}const zu=Pi||Jn&&Hi<63;function Wc(d,n){let{node:r,offset:a}=d.docView.domFromPos(n,0),u=a<r.childNodes.length?r.childNodes[a]:null,f=a?r.childNodes[a-1]:null;if(Pi&&u&&"false"==u.contentEditable)return Nd(u);if(!(u&&"false"!=u.contentEditable||f&&"false"!=f.contentEditable)){if(u)return Nd(u);if(f)return Nd(f)}}function Nd(d){return d.contentEditable="true",Pi&&d.draggable&&(d.draggable=!1,d.wasDraggable=!0),d}function xs(d){d.contentEditable="false",d.wasDraggable&&(d.draggable=!0,d.wasDraggable=null)}function Ld(d,n){if(n instanceof Hn){let r=d.docView.descAt(n.from);r!=d.lastSelectedViewDesc&&(Wu(d),r&&r.selectNode(),d.lastSelectedViewDesc=r)}else Wu(d)}function Wu(d){d.lastSelectedViewDesc&&(d.lastSelectedViewDesc.parent&&d.lastSelectedViewDesc.deselectNode(),d.lastSelectedViewDesc=void 0)}function Hu(d,n,r,a){return d.someProp("createSelectionBetween",u=>u(d,n,r))||Wi.between(n,r,a)}function lr(d){return!(d.editable&&!d.hasFocus())&&Hc(d)}function Hc(d){let n=d.domSelectionRange();if(!n.anchorNode)return!1;try{return d.dom.contains(3==n.anchorNode.nodeType?n.anchorNode.parentNode:n.anchorNode)&&(d.editable||d.dom.contains(3==n.focusNode.nodeType?n.focusNode.parentNode:n.focusNode))}catch{return!1}}function go(d,n){let{$anchor:r,$head:a}=d.selection,u=n>0?r.max(a):r.min(a),f=u.parent.inlineContent?u.depth?d.doc.resolve(n>0?u.after():u.before()):null:u;return f&&ei.findFrom(f,n)}function Ja(d,n){return d.dispatch(d.state.tr.setSelection(n).scrollIntoView()),!0}function Il(d,n,r){let a=d.state.selection;if(!(a instanceof Wi)){if(a instanceof Hn&&a.node.isInline)return Ja(d,new Wi(n>0?a.$to:a.$from));{let u=go(d.state,n);return!!u&&Ja(d,u)}}if(!a.empty||r.indexOf("s")>-1)return!1;if(d.endOfTextblock(n>0?"forward":"backward")){let u=go(d.state,n);return!!(u&&u instanceof Hn)&&Ja(d,u)}if(!(rn&&r.indexOf("m")>-1)){let _,u=a.$head,f=u.textOffset?null:n<0?u.nodeBefore:u.nodeAfter;if(!f||f.isText)return!1;let M=n<0?u.pos-f.nodeSize:u.pos;return!!(f.isAtom||(_=d.docView.descAt(M))&&!_.contentDOM)&&(Hn.isSelectable(f)?Ja(d,new Hn(n<0?d.state.doc.resolve(u.pos-f.nodeSize):u)):!!Fr&&Ja(d,new Wi(d.state.doc.resolve(n<0?M:M+f.nodeSize))))}}function ca(d){return 3==d.nodeType?d.nodeValue.length:d.childNodes.length}function mo(d){if("false"==d.contentEditable)return!0;let n=d.pmViewDesc;return n&&0==n.size&&(d.nextSibling||"BR"!=d.nodeName)}function uc(d,n){return n<0?function jd(d){let n=d.domSelectionRange(),r=n.focusNode,a=n.focusOffset;if(!r)return;let u,f,_=!1;for(Ei&&1==r.nodeType&&a<ca(r)&&mo(r.childNodes[a])&&(_=!0);;)if(a>0){if(1!=r.nodeType)break;{let M=r.childNodes[a-1];if(mo(M))u=r,f=--a;else{if(3!=M.nodeType)break;r=M,a=r.nodeValue.length}}}else{if(Cs(r))break;{let M=r.previousSibling;for(;M&&mo(M);)u=r.parentNode,f=wr(M),M=M.previousSibling;if(M)r=M,a=ca(r);else{if(r=r.parentNode,r==d.dom)break;a=0}}}_?Xc(d,r,a):u&&Xc(d,u,f)}(d):Xu(d)}function Xu(d){let n=d.domSelectionRange(),r=n.focusNode,a=n.focusOffset;if(!r)return;let f,_,u=ca(r);for(;;)if(a<u){if(1!=r.nodeType)break;if(!mo(r.childNodes[a]))break;f=r,_=++a}else{if(Cs(r))break;{let M=r.nextSibling;for(;M&&mo(M);)f=M.parentNode,_=wr(M)+1,M=M.nextSibling;if(M)r=M,a=0,u=ca(r);else{if(r=r.parentNode,r==d.dom)break;a=u=0}}}f&&Xc(d,f,_)}function Cs(d){let n=d.pmViewDesc;return n&&n.node&&n.node.isBlock}function Xc(d,n,r){if(3!=n.nodeType){let f,_;(_=function qu(d,n){for(;d&&n==d.childNodes.length&&!Jo(d);)n=wr(d)+1,d=d.parentNode;for(;d&&n<d.childNodes.length;){if(3==(d=d.childNodes[n]).nodeType)return d;n=0}}(n,r))?(n=_,r=0):(f=function wh(d,n){for(;d&&!n&&!Jo(d);)n=wr(d),d=d.parentNode;for(;d&&n;){if(3==(d=d.childNodes[n-1]).nodeType)return d;n=d.childNodes.length}}(n,r))&&(n=f,r=f.nodeValue.length)}let a=d.domSelection();if(ya(a)){let f=document.createRange();f.setEnd(n,r),f.setStart(n,r),a.removeAllRanges(),a.addRange(f)}else a.extend&&a.extend(n,r);d.domObserver.setCurSelection();let{state:u}=d;setTimeout(()=>{d.state==u&&Us(d)},50)}function qc(d,n){let r=d.state.doc.resolve(n);if(!Jn&&!Sn&&r.parent.inlineContent){let u=d.coordsAtPos(n);if(n>r.start()){let f=d.coordsAtPos(n-1),_=(f.top+f.bottom)/2;if(_>u.top&&_<u.bottom&&Math.abs(f.left-u.left)>1)return f.left<u.left?"ltr":"rtl"}if(n<r.end()){let f=d.coordsAtPos(n+1),_=(f.top+f.bottom)/2;if(_>u.top&&_<u.bottom&&Math.abs(f.left-u.left)>1)return f.left>u.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(d.dom).direction?"rtl":"ltr"}function Kc(d,n,r){let a=d.state.selection;if(a instanceof Wi&&!a.empty||r.indexOf("s")>-1||rn&&r.indexOf("m")>-1)return!1;let{$from:u,$to:f}=a;if(!u.parent.inlineContent||d.endOfTextblock(n<0?"up":"down")){let _=go(d.state,n);if(_&&_ instanceof Hn)return Ja(d,_)}if(!u.parent.inlineContent){let _=n<0?u:f,M=a instanceof Wr?ei.near(_,n):ei.findFrom(_,n);return!!M&&Ja(d,M)}return!1}function Tl(d,n){if(!(d.state.selection instanceof Wi))return!0;let{$head:r,$anchor:a,empty:u}=d.state.selection;if(!r.sameParent(a))return!0;
vendor: 14,224 bytes, line 1
1if(!u)return!1;if(d.endOfTextblock(n>0?"forward":"backward"))return!0;let f=!r.textOffset&&(n<0?r.nodeBefore:r.nodeAfter);if(f&&!f.isText){let _=d.state.tr;return n<0?_.delete(r.pos-f.nodeSize,r.pos):_.delete(r.pos,r.pos+f.nodeSize),d.dispatch(_),!0}return!1}function pc(d,n,r){d.domObserver.stop(),n.contentEditable=r,d.domObserver.start()}function Vd(d,n){d.someProp("transformCopied",Tt=>{n=Tt(n,d)});let r=[],{content:a,openStart:u,openEnd:f}=n;for(;u>1&&f>1&&1==a.childCount&&1==a.firstChild.childCount;){u--,f--;let Tt=a.firstChild;r.push(Tt.type.name,Tt.attrs!=Tt.type.defaultAttrs?Tt.attrs:null),a=Tt.content}let _=d.someProp("clipboardSerializer")||ce.fromSchema(d.state.schema),M=ep(),O=M.createElement("div");O.appendChild(_.serializeFragment(a,{document:M}));let de,Q=O.firstChild,Ye=0;for(;Q&&1==Q.nodeType&&(de=Ju[Q.nodeName.toLowerCase()]);){for(let Tt=de.length-1;Tt>=0;Tt--){let At=M.createElement(de[Tt]);for(;O.firstChild;)At.appendChild(O.firstChild);O.appendChild(At),Ye++}Q=O.firstChild}return Q&&1==Q.nodeType&&Q.setAttribute("data-pm-slice",`${u} ${f}${Ye?` -${Ye}`:""} ${JSON.stringify(r)}`),{dom:O,text:d.someProp("clipboardTextSerializer",Tt=>Tt(n,d))||n.content.textBetween(0,n.content.size,"\n\n")}}function Dh(d,n,r,a,u){let _,M,f=u.parent.type.spec.code;if(!r&&!n)return null;let O=n&&(a||f||!r);if(O){if(d.someProp("transformPastedText",ut=>{n=ut(n,f||a,d)}),f)return n?new je(we.from(d.state.schema.text(n.replace(/\r\n?/g,"\n"))),0,0):je.empty;let Ye=d.someProp("clipboardTextParser",ut=>ut(n,u,a,d));if(Ye)M=Ye;else{let ut=u.marks(),{schema:Tt}=d.state,At=ce.fromSchema(Tt);_=document.createElement("div"),n.split(/(?:\r\n?|\n)+/).forEach(nn=>{let En=_.appendChild(document.createElement("p"));nn&&En.appendChild(At.serializeNode(Tt.text(nn,ut)))})}}else d.someProp("transformPastedHTML",Ye=>{r=Ye(r,d)}),_=function Kt(d){let n=/^(\s*<meta [^>]*>)*/.exec(d);n&&(d=d.slice(n[0].length));let u,r=ep().createElement("div"),a=/<([a-z][^>\s]+)/i.exec(d);if((u=a&&Ju[a[1].toLowerCase()])&&(d=u.map(f=>"<"+f+">").join("")+d+u.map(f=>"</"+f+">").reverse().join("")),r.innerHTML=d,u)for(let f=0;f<u.length;f++)r=r.querySelector(u[f])||r;return r}(r),Fr&&function Vi(d){let n=d.querySelectorAll(Jn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<n.length;r++){let a=n[r];1==a.childNodes.length&&"\xa0"==a.textContent&&a.parentNode&&a.parentNode.replaceChild(d.ownerDocument.createTextNode(" "),a)}}(_);let Q=_&&_.querySelector("[data-pm-slice]"),de=Q&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(Q.getAttribute("data-pm-slice")||"");if(de&&de[3])for(let Ye=+de[3];Ye>0;Ye--){let ut=_.firstChild;for(;ut&&1!=ut.nodeType;)ut=ut.nextSibling;if(!ut)break;_=ut}if(M||(M=(d.someProp("clipboardParser")||d.someProp("domParser")||Un.fromSchema(d.state.schema)).parseSlice(_,{preserveWhitespace:!(!O&&!de),context:u,ruleFromNode:ut=>"BR"!=ut.nodeName||ut.nextSibling||!ut.parentNode||Mh.test(ut.parentNode.nodeName)?null:{ignore:!0}})),de)M=function tp(d,n){if(!d.size)return d;let a,r=d.content.firstChild.type.schema;try{a=JSON.parse(n)}catch{return d}let{content:u,openStart:f,openEnd:_}=d;for(let M=a.length-2;M>=0;M-=2){let O=r.nodes[a[M]];if(!O||O.hasRequiredAttrs())break;u=we.from(O.create(a[M+1],u)),f++,_++}return new je(u,f,_)}(Yu(M,+de[1],+de[2]),de[4]);else if(M=je.maxOpen(function Eh(d,n){if(d.childCount<2)return d;for(let r=n.depth;r>=0;r--){let f,u=n.node(r).contentMatchAt(n.index(r)),_=[];if(d.forEach(M=>{if(!_)return;let Q,O=u.findWrapping(M.type);if(!O)return _=null;if(Q=_.length&&f.length&&Gd(O,f,M,_[_.length-1],0))_[_.length-1]=Q;else{_.length&&(_[_.length-1]=el(_[_.length-1],f.length));let de=Ku(M,O);_.push(de),u=u.matchType(de.type),f=O}}),_)return we.from(_)}return d}(M.content,u),!0),M.openStart||M.openEnd){let Ye=0,ut=0;for(let Tt=M.content.firstChild;Ye<M.openStart&&!Tt.type.spec.isolating;Ye++,Tt=Tt.firstChild);for(let Tt=M.content.lastChild;ut<M.openEnd&&!Tt.type.spec.isolating;ut++,Tt=Tt.lastChild);M=Yu(M,Ye,ut)}return d.someProp("transformPasted",Ye=>{M=Ye(M,d)}),M}const Mh=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Ku(d,n,r=0){for(let a=n.length-1;a>=r;a--)d=n[a].create(null,we.from(d));return d}function Gd(d,n,r,a,u){if(u<d.length&&u<n.length&&d[u]==n[u]){let f=Gd(d,n,r,a.lastChild,u+1);if(f)return a.copy(a.content.replaceChild(a.childCount-1,f));if(a.contentMatchAt(a.childCount).matchType(u==d.length-1?r.type:d[u+1]))return a.copy(a.content.append(we.from(Ku(r,d,u+1))))}}function el(d,n){if(0==n)return d;let r=d.content.replaceChild(d.childCount-1,el(d.lastChild,n-1)),a=d.contentMatchAt(d.childCount).fillBefore(we.empty,!0);return d.copy(r.append(a))}function Ud(d,n,r,a,u,f){let _=n<0?d.firstChild:d.lastChild,M=_.content;return d.childCount>1&&(f=0),u<a-1&&(M=Ud(M,n,r,a,u+1,f)),u>=r&&(M=n<0?_.contentMatchAt(0).fillBefore(M,f<=u).append(M):M.append(_.contentMatchAt(_.childCount).fillBefore(we.empty,!0))),d.replaceChild(n<0?0:d.childCount-1,_.copy(M))}function Yu(d,n,r){return n<d.openStart&&(d=new je(Ud(d.content,-1,n,d.openStart,0,d.openEnd),n,d.openEnd)),r<d.openEnd&&(d=new je(Ud(d.content,1,r,d.openEnd,0,0),d.openStart,r)),d}const Ju={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Zu=null;function ep(){return Zu||(Zu=document.implementation.createHTMLDocument("title"))}const Mo={},Ci={},np={touchstart:!0,touchmove:!0};class hc{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function $s(d,n){d.input.lastSelectionOrigin=n,d.input.lastSelectionTime=Date.now()}function $d(d){d.someProp("handleDOMEvents",n=>{for(let r in n)d.input.eventHandlers[r]||d.dom.addEventListener(r,d.input.eventHandlers[r]=a=>ip(d,a))})}function ip(d,n){return d.someProp("handleDOMEvents",r=>{let a=r[n.type];return!!a&&(a(d,n)||n.defaultPrevented)})}function rp(d,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(let r=n.target;r!=d.dom;r=r.parentNode)if(!r||11==r.nodeType||r.pmViewDesc&&r.pmViewDesc.stopEvent(n))return!1;return!0}function ms(d){return{left:d.clientX,top:d.clientY}}function is(d,n,r,a,u){if(-1==a)return!1;let f=d.state.doc.resolve(a);for(let _=f.depth+1;_>0;_--)if(d.someProp(n,M=>_>f.depth?M(d,r,f.nodeAfter,f.before(_),u,!0):M(d,r,f.node(_),f.before(_),u,!1)))return!0;return!1}function Xo(d,n,r){d.focused||d.focus();let a=d.state.tr.setSelection(n);"pointer"==r&&a.setMeta("pointer",!0),d.dispatch(a)}function Th(d,n,r,a){return is(d,"handleDoubleClickOn",n,r,a)||d.someProp("handleDoubleClick",u=>u(d,n,a))}function Qd(d,n,r,a){return is(d,"handleTripleClickOn",n,r,a)||d.someProp("handleTripleClick",u=>u(d,n,a))||function Wd(d,n,r){if(0!=r.button)return!1;let a=d.state.doc;if(-1==n)return!!a.inlineContent&&(Xo(d,Wi.create(a,0,a.content.size),"pointer"),!0);let u=a.resolve(n);for(let f=u.depth+1;f>0;f--){let _=f>u.depth?u.nodeAfter:u.node(f),M=u.before(f);if(_.inlineContent)Xo(d,Wi.create(a,M+1,M+1+_.content.size),"pointer");else{if(!Hn.isSelectable(_))continue;Xo(d,Hn.create(a,M),"pointer")}return!0}}(d,r,a)}function jn(d){return fc(d)}Ci.keydown=(d,n)=>{let r=n;if(d.input.shiftKey=16==r.keyCode||r.shiftKey,!Hd(d,r)&&(d.input.lastKeyCode=r.keyCode,d.input.lastKeyCodeTime=Date.now(),!xi||!Jn||13!=r.keyCode))if(229!=r.keyCode&&d.domObserver.forceFlush(),!bi||13!=r.keyCode||r.ctrlKey||r.altKey||r.metaKey)d.someProp("handleKeyDown",a=>a(d,r))||function li(d,n){let r=n.keyCode,a=function Za(d){let n="";return d.ctrlKey&&(n+="c"),d.metaKey&&(n+="m"),d.altKey&&(n+="a"),d.shiftKey&&(n+="s"),n}(n);if(8==r||rn&&72==r&&"c"==a)return Tl(d,-1)||uc(d,-1);if(46==r&&!n.shiftKey||rn&&68==r&&"c"==a)return Tl(d,1)||uc(d,1);if(13==r||27==r)return!0;if(37==r||rn&&66==r&&"c"==a){let u=37==r?"ltr"==qc(d,d.state.selection.from)?-1:1:-1;return Il(d,u,a)||uc(d,u)}if(39==r||rn&&70==r&&"c"==a){let u=39==r?"ltr"==qc(d,d.state.selection.from)?1:-1:1;return Il(d,u,a)||uc(d,u)}return 38==r||rn&&80==r&&"c"==a?Kc(d,-1,a)||uc(d,-1):40==r||rn&&78==r&&"c"==a?function Bd(d){if(!Pi||d.state.selection.$head.parentOffset>0)return!1;let{focusNode:n,focusOffset:r}=d.domSelectionRange();if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){let a=n.firstChild;pc(d,a,"true"),setTimeout(()=>pc(d,a,"false"),20)}return!1}(d)||Kc(d,1,a)||Xu(d):a==(rn?"m":"c")&&(66==r||73==r||89==r||90==r)}(d,r)?r.preventDefault():$s(d,"key");else{let a=Date.now();d.input.lastIOSEnter=a,d.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{d.input.lastIOSEnter==a&&(d.someProp("handleKeyDown",u=>u(d,Zo(13,"Enter"))),d.input.lastIOSEnter=0)},200)}},Ci.keyup=(d,n)=>{16==n.keyCode&&(d.input.shiftKey=!1)},Ci.keypress=(d,n)=>{let r=n;if(Hd(d,r)||!r.charCode||r.ctrlKey&&!r.altKey||rn&&r.metaKey)return;if(d.someProp("handleKeyPress",u=>u(d,r)))return void r.preventDefault();let a=d.state.selection;if(!(a instanceof Wi&&a.$from.sameParent(a.$to))){let u=String.fromCharCode(r.charCode);!/[\r\n]/.test(u)&&!d.someProp("handleTextInput",f=>f(d,a.$from.pos,a.$to.pos,u))&&d.dispatch(d.state.tr.insertText(u).scrollIntoView()),r.preventDefault()}};const Yc=rn?"metaKey":"ctrlKey";Mo.mousedown=(d,n)=>{let r=n;d.input.shiftKey=r.shiftKey;let a=jn(d),u=Date.now(),f="singleClick";u-d.input.lastClick.time<500&&function op(d,n){let r=n.x-d.clientX,a=n.y-d.clientY;return r*r+a*a<100}(r,d.input.lastClick)&&!r[Yc]&&("singleClick"==d.input.lastClick.type?f="doubleClick":"doubleClick"==d.input.lastClick.type&&(f="tripleClick")),d.input.lastClick={time:u,x:r.clientX,y:r.clientY,type:f};let _=d.posAtCoords(ms(r));_&&("singleClick"==f?(d.input.mouseDown&&d.input.mouseDown.done(),d.input.mouseDown=new ap(d,_,r,!!a)):("doubleClick"==f?Th:Qd)(d,_.pos,_.inside,r)?r.preventDefault():$s(d,"pointer"))};class ap{constructor(n,r,a,u){let f,_;if(this.view=n,this.pos=r,this.event=a,this.flushed=u,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=n.state.doc,this.selectNode=!!a[Yc],this.allowDefault=a.shiftKey,r.inside>-1)f=n.state.doc.nodeAt(r.inside),_=r.inside;else{let de=n.state.doc.resolve(r.pos);f=de.parent,_=de.depth?de.before():0}const M=u?null:a.target,O=M?n.docView.nearestDesc(M,!0):null;this.target=O?O.dom:null;let{selection:Q}=n.state;(0==a.button&&f.type.spec.draggable&&!1!==f.type.spec.selectable||Q instanceof Hn&&Q.from<=_&&Q.to>_)&&(this.mightDrag={node:f,pos:_,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!Ei||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),n.root.addEventListener("mouseup",this.up=this.up.bind(this)),n.root.addEventListener("mousemove",this.move=this.move.bind(this)),$s(n,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Us(this.view)),this.view.input.mouseDown=null}up(n){if(this.done(),!this.view.dom.contains(n.target))return;let r=this.pos;this.view.state.doc!=this.startDoc&&(r=this.view.posAtCoords(ms(n))),this.updateAllowDefault(n),this.allowDefault||!r?$s(this.view,"pointer"):function Ih(d,n,r,a,u){return is(d,"handleClickOn",n,r,a)||d.someProp("handleClick",f=>f(d,n,a))||(u?function sp(d,n){if(-1==n)return!1;let a,u,r=d.state.selection;r instanceof Hn&&(a=r.node);let f=d.state.doc.resolve(n);for(let _=f.depth+1;_>0;_--){let M=_>f.depth?f.nodeAfter:f.node(_);if(Hn.isSelectable(M)){u=a&&r.$from.depth>0&&_>=r.$from.depth&&f.before(r.$from.depth+1)==r.$from.pos?f.before(r.$from.depth):f.before(_);break}}return null!=u&&(Xo(d,Hn.create(d.state.doc,u),"pointer"),!0)}(d,r):function kh(d,n){if(-1==n)return!1;let r=d.state.doc.resolve(n),a=r.nodeAfter;return!!(a&&a.isAtom&&Hn.isSelectable(a))&&(Xo(d,new Hn(r),"pointer"),!0)}(d,r))}(this.view,r.pos,r.inside,n,this.selectNode)?n.preventDefault():0==n.button&&(this.flushed||Pi&&this.mightDrag&&!this.mightDrag.node.isAtom||Jn&&!this.view.state.selection.visible&&Math.min(Math.abs(r.pos-this.view.state.selection.from),Math.abs(r.pos-this.view.state.selection.to))<=2)?(Xo(this.view,ei.near(this.view.state.doc.resolve(r.pos)),"pointer"),n.preventDefault()):$s(this.view,"pointer")}move(n){this.updateAllowDefault(n),$s(this.view,"pointer"),0==n.buttons&&this.done()}updateAllowDefault(n){!this.allowDefault&&(Math.abs(this.event.x-n.clientX)>4||Math.abs(this.event.y-n.clientY)>4)&&(this.allowDefault=!0)}}function Hd(d,n){return!!d.composing||!!(Pi&&Math.abs(n.timeStamp-d.input.compositionEndedAt)<500)&&(d.input.compositionEndedAt=-2e8,!0)}Mo.touchstart=d=>{d.input.lastTouch=Date.now(),jn(d),$s(d,"pointer")},Mo.touchmove=d=>{d.input.lastTouch=Date.now(),$s(d,"pointer")},Mo.contextmenu=d=>jn(d);const Xd=xi?5e3:-1;function qd(d,n){clearTimeout(d.input.composingTimeout),n>-1&&(d.input.composingTimeout=setTimeout(()=>fc(d),n))}function Kd(d){for(d.composing&&(d.input.composing=!1,d.input.compositionEndedAt=function lp(){let d=document.createEvent("Event");return d.initEvent("event",!0,!0),d.timeStamp}());d.input.compositionNodes.length>0;)d.input.compositionNodes.pop().markParentsDirty()}function fc(d,n=!1){if(!(xi&&d.domObserver.flushingSoon>
1=0)){if(d.domObserver.forceFlush(),Kd(d),n||d.docView&&d.docView.dirty){let r=Rd(d);return r&&!r.eq(d.state.selection)?d.dispatch(d.state.tr.setSelection(r)):d.updateState(d.state),!0}return!1}}Ci.compositionstart=Ci.compositionupdate=d=>{if(!d.composing){d.domObserver.flush();let{state:n}=d,r=n.selection.$from;if(n.selection.empty&&(n.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(a=>!1===a.type.spec.inclusive)))d.markCursor=d.state.storedMarks||r.marks(),fc(d,!0),d.markCursor=null;else if(fc(d),Ei&&n.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let a=d.domSelectionRange();for(let u=a.focusNode,f=a.focusOffset;u&&1==u.nodeType&&0!=f;){let _=f<0?u.lastChild:u.childNodes[f-1];if(!_)break;if(3==_.nodeType){d.domSelection().collapse(_,_.nodeValue.length);break}u=_,f=-1}}d.input.composing=!0}qd(d,Xd)},Ci.compositionend=(d,n)=>{d.composing&&(d.input.composing=!1,d.input.compositionEndedAt=n.timeStamp,d.input.compositionPendingChanges=d.domObserver.pendingRecords().length?d.input.compositionID:0,d.input.compositionPendingChanges&&Promise.resolve().then(()=>d.domObserver.flush()),d.input.compositionID++,qd(d,20))};const Sl=Ai&&Li<15||bi&&yr<604;function cr(d,n,r,a,u){let f=Dh(d,n,r,a,d.state.selection.$from);if(d.someProp("handlePaste",O=>O(d,u,f||je.empty)))return!0;if(!f)return!1;let _=function Eo(d){return 0==d.openStart&&0==d.openEnd&&1==d.content.childCount?d.content.firstChild:null}(f),M=_?d.state.tr.replaceSelectionWith(_,a):d.state.tr.replaceSelection(f);return d.dispatch(M.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Mo.copy=Ci.cut=(d,n)=>{let r=n,a=d.state.selection,u="cut"==r.type;if(a.empty)return;let f=Sl?null:r.clipboardData,_=a.content(),{dom:M,text:O}=Vd(d,_);f?(r.preventDefault(),f.clearData(),f.setData("text/html",M.innerHTML),f.setData("text/plain",O)):function Yd(d,n){if(!d.dom.parentNode)return;let r=d.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(n),r.style.cssText="position: fixed; left: -10000px; top: 10px";let a=getSelection(),u=document.createRange();u.selectNodeContents(n),d.dom.blur(),a.removeAllRanges(),a.addRange(u),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),d.focus()},50)}(d,M),u&&d.dispatch(d.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Ci.paste=(d,n)=>{let r=n;if(d.composing&&!xi)return;let a=Sl?null:r.clipboardData,u=d.input.shiftKey&&45!=d.input.lastKeyCode;a&&cr(d,a.getData("text/plain"),a.getData("text/html"),u,r)?r.preventDefault():function tl(d,n){if(!d.dom.parentNode)return;let r=d.input.shiftKey||d.state.selection.$from.parent.type.spec.code,a=d.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(a.contentEditable="true"),a.style.cssText="position: fixed; left: -10000px; top: 10px",a.focus();let u=d.input.shiftKey&&45!=d.input.lastKeyCode;setTimeout(()=>{d.focus(),a.parentNode&&a.parentNode.removeChild(a),r?cr(d,a.value,null,u,n):cr(d,a.textContent,a.innerHTML,u,n)},50)}(d,r)};class cp{constructor(n,r){this.slice=n,this.move=r}}const dp=rn?"altKey":"ctrlKey";Mo.dragstart=(d,n)=>{let r=n,a=d.input.mouseDown;if(a&&a.done(),!r.dataTransfer)return;let u=d.state.selection,f=u.empty?null:d.posAtCoords(ms(r));if(!(f&&f.pos>=u.from&&f.pos<=(u instanceof Hn?u.to-1:u.to)))if(a&&a.mightDrag)d.dispatch(d.state.tr.setSelection(Hn.create(d.state.doc,a.mightDrag.pos)));else if(r.target&&1==r.target.nodeType){let Q=d.docView.nearestDesc(r.target,!0);Q&&Q.node.type.spec.draggable&&Q!=d.docView&&d.dispatch(d.state.tr.setSelection(Hn.create(d.state.doc,Q.posBefore)))}let _=d.state.selection.content(),{dom:M,text:O}=Vd(d,_);r.dataTransfer.clearData(),r.dataTransfer.setData(Sl?"Text":"text/html",M.innerHTML),r.dataTransfer.effectAllowed="copyMove",Sl||r.dataTransfer.setData("text/plain",O),d.dragging=new cp(_,!r[dp])},Mo.dragend=d=>{let n=d.dragging;window.setTimeout(()=>{d.dragging==n&&(d.dragging=null)},50)},Ci.dragover=Ci.dragenter=(d,n)=>n.preventDefault(),Ci.drop=(d,n)=>{let r=n,a=d.dragging;if(d.dragging=null,!r.dataTransfer)return;let u=d.posAtCoords(ms(r));if(!u)return;let f=d.state.doc.resolve(u.pos),_=a&&a.slice;_?d.someProp("transformPasted",At=>{_=At(_,d)}):_=Dh(d,r.dataTransfer.getData(Sl?"Text":"text/plain"),Sl?null:r.dataTransfer.getData("text/html"),!1,f);let M=!(!a||r[dp]);if(d.someProp("handleDrop",At=>At(d,r,_||je.empty,M)))return void r.preventDefault();if(!_)return;r.preventDefault();let O=_?function ec(d,n,r){let a=d.resolve(n);if(!r.content.size)return n;let u=r.content;for(let f=0;f<r.openStart;f++)u=u.firstChild.content;for(let f=1;f<=(0==r.openStart&&r.size?2:1);f++)for(let _=a.depth;_>=0;_--){let M=_==a.depth?0:a.pos<=(a.start(_+1)+a.end(_+1))/2?-1:1,O=a.index(_)+(M>0?1:0),Q=a.node(_),de=!1;if(1==f)de=Q.canReplace(O,O,u);else{let Ye=Q.contentMatchAt(O).findWrapping(u.firstChild.type);de=Ye&&Q.canReplaceWith(O,O,Ye[0])}if(de)return 0==M?a.pos:M<0?a.before(_+1):a.after(_+1)}return null}(d.state.doc,f.pos,_):f.pos;null==O&&(O=f.pos);let Q=d.state.tr;M&&Q.deleteSelection();let de=Q.mapping.map(O),Ye=0==_.openStart&&0==_.openEnd&&1==_.content.childCount,ut=Q.doc;
vendor: 4,460 bytes, line 1
1if(Ye?Q.replaceRangeWith(de,de,_.content.firstChild):Q.replaceRange(de,de,_),Q.doc.eq(ut))return;let Tt=Q.doc.resolve(de);if(Ye&&Hn.isSelectable(_.content.firstChild)&&Tt.nodeAfter&&Tt.nodeAfter.sameMarkup(_.content.firstChild))Q.setSelection(new Hn(Tt));else{let At=Q.mapping.map(O);Q.mapping.maps[Q.mapping.maps.length-1].forEach((nn,En,mi,vo)=>At=vo),Q.setSelection(Hu(d,Tt,Q.doc.resolve(At)))}d.focus(),d.dispatch(Q.setMeta("uiEvent","drop"))},Mo.focus=d=>{d.input.lastFocus=Date.now(),d.focused||(d.domObserver.stop(),d.dom.classList.add("ProseMirror-focused"),d.domObserver.start(),d.focused=!0,setTimeout(()=>{d.docView&&d.hasFocus()&&!d.domObserver.currentSelection.eq(d.domSelectionRange())&&Us(d)},20))},Mo.blur=(d,n)=>{let r=n;d.focused&&(d.domObserver.stop(),d.dom.classList.remove("ProseMirror-focused"),d.domObserver.start(),r.relatedTarget&&d.dom.contains(r.relatedTarget)&&d.domObserver.currentSelection.clear(),d.focused=!1)},Mo.beforeinput=(d,n)=>{if(Jn&&xi&&"deleteContentBackward"==n.inputType){d.domObserver.flushSoon();let{domChangeCount:a}=d.input;setTimeout(()=>{if(d.input.domChangeCount!=a||(d.dom.blur(),d.focus(),d.someProp("handleKeyDown",f=>f(d,Zo(8,"Backspace")))))return;let{$cursor:u}=d.state.selection;u&&u.pos>0&&d.dispatch(d.state.tr.delete(u.pos-1,u.pos).scrollIntoView())},50)}};for(let d in Ci)Mo[d]=Ci[d];function Pl(d,n){if(d==n)return!0;for(let r in d)if(d[r]!==n[r])return!1;for(let r in n)if(!(r in d))return!1;return!0}class Jd{constructor(n,r){this.toDOM=n,this.spec=r||nl,this.side=this.spec.side||0}map(n,r,a,u){let{pos:f,deleted:_}=n.mapResult(r.from+u,this.side<0?-1:1);return _?null:new ko(f-a,f-a,this)}valid(){return!0}eq(n){return this==n||n instanceof Jd&&(this.spec.key&&this.spec.key==n.spec.key||this.toDOM==n.toDOM&&Pl(this.spec,n.spec))}destroy(n){this.spec.destroy&&this.spec.destroy(n)}}class da{constructor(n,r){this.attrs=n,this.spec=r||nl}map(n,r,a,u){let f=n.map(r.from+u,this.spec.inclusiveStart?-1:1)-a,_=n.map(r.to+u,this.spec.inclusiveEnd?1:-1)-a;return f>=_?null:new ko(f,_,this)}valid(n,r){return r.from<r.to}eq(n){return this==n||n instanceof da&&Pl(this.attrs,n.attrs)&&Pl(this.spec,n.spec)}static is(n){return n.type instanceof da}destroy(){}}class Jc{constructor(n,r){this.attrs=n,this.spec=r||nl}map(n,r,a,u){let f=n.mapResult(r.from+u,1);if(f.deleted)return null;let _=n.mapResult(r.to+u,-1);return _.deleted||_.pos<=f.pos?null:new ko(f.pos-a,_.pos-a,this)}valid(n,r){let f,{index:a,offset:u}=n.content.findIndex(r.from);return u==r.from&&!(f=n.child(a)).isText&&u+f.nodeSize==r.to}eq(n){return this==n||n instanceof Jc&&Pl(this.attrs,n.attrs)&&Pl(this.spec,n.spec)}destroy(){}}class ko{constructor(n,r,a){this.from=n,this.to=r,this.type=a}copy(n,r){return new ko(n,r,this.type)}eq(n,r=0){return this.type.eq(n.type)&&this.from+r==n.from&&this.to+r==n.to}map(n,r,a){return this.type.map(n,this,r,a)}static widget(n,r,a){return new ko(n,n,new Jd(r,a))}static inline(n,r,a,u){return new ko(n,r,new da(a,u))}static node(n,r,a,u){return new ko(n,r,new Jc(a,u))}get spec(){return this.type.spec}get inline(){return this.type instanceof da}}const jo=[],nl={};class Nr{constructor(n,r){this.local=n.length?n:jo,this.children=r.length?r:jo}static create(n,r){return r.length?xa(r,n,0,nl):Jr}find(n,r,a){let u=[];return this.findInner(n??0,r??1e9,u,0,a),u}findInner(n,r,a,u,f){for(let _=0;_<this.local.length;_++){let M=this.local[_];M.from<=r&&M.to>=n&&(!f||f(M.spec))&&a.push(M.copy(M.from+u,M.to+u))}for(let _=0;_<this.children.length;_+=3)if(this.children[_]<r&&this.children[_+1]>n){let M=this.children[_]+1;this.children[_+2].findInner(n-M,r-M,a,u+M,f)}}map(n,r,a){return this==Jr||0==n.maps.length?this:this.mapInner(n,r,0,0,a||nl)}mapInner(n,r,a,u,f){let _;for(let M=0;M<this.local.length;M++){let O=this.local[M].map(n,a,u);O&&O.type.valid(r,O)?(_||(_=[])).push(O):f.onRemove&&f.onRemove(this.local[M].spec)}return this.children.length?function Zd(d,n,r,a,u,f,_){let M=d.slice();for(let Q=0,de=f;Q<r.maps.length;Q++){let Ye=0;r.maps[Q].forEach((ut,Tt,At,nn)=>{let En=nn-At-(Tt-ut);for(let mi=0;mi<M.length;mi+=3){let vo=M[mi+1];if(vo<0||ut>vo+de-Ye)continue;let Wl=M[mi]+de-Ye;Tt>=Wl?M[mi+1]=ut<=Wl?-2:-1:At>=u&&En&&(M[mi]+=En,M[mi+1]+=En)}Ye+=En}),de=r.maps[Q].map(de,-1)}let O=!1;for(let Q=0;Q<M.length;Q+=3)if(M[Q+1]<0){if(-2==M[Q+1]){O=!0,M[Q+1]=-1;continue}let de=r.map(d[Q]+f),Ye=de-u;if(Ye<0||Ye>=a.content.size){O=!0;continue}let Tt=r.map(d[Q+1]+f,-1)-u,{index:At,offset:nn}
vendor: 9,117 bytes, line 1
1=a.content.findIndex(Ye),En=a.maybeChild(At);if(En&&nn==Ye&&nn+En.nodeSize==Tt){let mi=M[Q+2].mapInner(r,En,de+1,d[Q]+f+1,_);mi!=Jr?(M[Q]=Ye,M[Q+1]=Tt,M[Q+2]=mi):(M[Q+1]=-2,O=!0)}else O=!0}if(O){let Q=function up(d,n,r,a,u,f,_){function M(O,Q){for(let de=0;de<O.local.length;de++){let Ye=O.local[de].map(a,u,Q);Ye?r.push(Ye):_.onRemove&&_.onRemove(O.local[de].spec)}for(let de=0;de<O.children.length;de+=3)M(O.children[de+2],O.children[de]+Q+1)}for(let O=0;O<d.length;O+=3)-1==d[O+1]&&M(d[O+2],n[O]+f+1);return r}(M,d,n,r,u,f,_),de=xa(Q,a,0,_);n=de.local;for(let Ye=0;Ye<M.length;Ye+=3)M[Ye+1]<0&&(M.splice(Ye,3),Ye-=3);for(let Ye=0,ut=0;Ye<de.children.length;Ye+=3){let Tt=de.children[Ye];for(;ut<M.length&&M[ut]<Tt;)ut+=3;M.splice(ut,0,de.children[Ye],de.children[Ye+1],de.children[Ye+2])}}return new Nr(n.sort(rl),M)}(this.children,_||[],n,r,a,u,f):_?new Nr(_.sort(rl),jo):Jr}add(n,r){return r.length?this==Jr?Nr.create(n,r):this.addInner(n,r,0):this}addInner(n,r,a){let u,f=0;n.forEach((M,O)=>{let de,Q=O+a;if(de=pp(r,M,Q)){for(u||(u=this.children.slice());f<u.length&&u[f]<O;)f+=3;u[f]==O?u[f+2]=u[f+2].addInner(M,de,Q+1):u.splice(f,0,O,O+M.nodeSize,xa(de,M,Q+1,nl)),f+=3}});let _=eu(f?il(r):r,-a);for(let M=0;M<_.length;M++)_[M].type.valid(n,_[M])||_.splice(M--,1);return new Nr(_.length?this.local.concat(_).sort(rl):this.local,u||this.children)}remove(n){return 0==n.length||this==Jr?this:this.removeInner(n,0)}removeInner(n,r){let a=this.children,u=this.local;for(let f=0;f<a.length;f+=3){let _,M=a[f]+r,O=a[f+1]+r;for(let Ye,de=0;de<n.length;de++)(Ye=n[de])&&Ye.from>M&&Ye.to<O&&(n[de]=null,(_||(_=[])).push(Ye));if(!_)continue;a==this.children&&(a=this.children.slice());let Q=a[f+2].removeInner(_,M+1);Q!=Jr?a[f+2]=Q:(a.splice(f,3),f-=3)}if(u.length)for(let _,f=0;f<n.length;f++)if(_=n[f])for(let M=0;M<u.length;M++)u[M].eq(_,r)&&(u==this.local&&(u=this.local.slice()),u.splice(M--,1));return a==this.children&&u==this.local?this:u.length||a.length?new Nr(u,a):Jr}forChild(n,r){if(this==Jr)return this;if(r.isLeaf)return Nr.empty;let a,u;for(let M=0;M<this.children.length;M+=3)if(this.children[M]>=n){this.children[M]==n&&(a=this.children[M+2]);break}let f=n+1,_=f+r.content.size;for(let M=0;M<this.local.length;M++){let O=this.local[M];if(O.from<_&&O.to>f&&O.type instanceof da){let Q=Math.max(f,O.from)-f,de=Math.min(_,O.to)-f;Q<de&&(u||(u=[])).push(O.copy(Q,de))}}if(u){let M=new Nr(u.sort(rl),jo);return a?new ws([M,a]):M}return a||Jr}eq(n){if(this==n)return!0;if(!(n instanceof Nr)||this.local.length!=n.local.length||this.children.length!=n.children.length)return!1;for(let r=0;r<this.local.length;r++)if(!this.local[r].eq(n.local[r]))return!1;for(let r=0;r<this.children.length;r+=3)if(this.children[r]!=n.children[r]||this.children[r+1]!=n.children[r+1]||!this.children[r+2].eq(n.children[r+2]))return!1;return!0}locals(n){return gc(this.localsInner(n))}localsInner(n){if(this==Jr)return jo;if(n.inlineContent||!this.local.some(da.is))return this.local;let r=[];for(let a=0;a<this.local.length;a++)this.local[a].type instanceof da||r.push(this.local[a]);return r}}Nr.empty=new Nr([],[]),Nr.removeOverlap=gc;const Jr=Nr.empty;class ws{constructor(n){this.members=n}map(n,r){const a=this.members.map(u=>u.map(n,r,nl));return ws.from(a)}forChild(n,r){if(r.isLeaf)return Nr.empty;let a=[];for(let u=0;u<this.members.length;u++){let f=this.members[u].forChild(n,r);f!=Jr&&(f instanceof ws?a=a.concat(f.members):a.push(f))}return ws.from(a)}eq(n){if(!(n instanceof ws)||n.members.length!=this.members.length)return!1;for(let r=0;r<this.members.length;r++)if(!this.members[r].eq(n.members[r]))return!1;return!0}locals(n){let r,a=!0;for(let u=0;u<this.members.length;u++){let f=this.members[u].localsInner(n);if(f.length)if(r){a&&(r=r.slice(),a=!1);for(let _=0;_<f.length;_++)r.push(f[_])}else r=f}return r?gc(a?r:r.sort(rl)):jo}static from(n){switch(n.length){case 0:return Jr;case 1:return n[0];default:return new ws(n.every(r=>r instanceof Nr)?n:n.reduce((r,a)=>r.concat(a instanceof Nr?a:a.members),[]))}}}function eu(d,n){if(!n||!d.length)return d;let r=[];for(let a=0;a<d.length;a++){let u=d[a];r.push(new ko(u.from+n,u.to+n,u.type))}return r}function pp(d,n,r){if(n.isLeaf)return null;let a=r+n.nodeSize,u=null;for(let _,f=0;f<d.length;f++)(_=d[f])&&_.from>r&&_.to<a&&((u||(u=[])).push(_),d[f]=null);return u}function il(d){let n=[];for(let r=0;r<d.length;r++)null!=d[r]&&n.push(d[r]);return n}function xa(d,n,r,a){let u=[],f=!1;n.forEach((M,O)=>{let Q=pp(d,M,O+r);if(Q){f=!0;let de=xa(Q,M,r+O+1,a);de!=Jr&&u.push(O,O+M.nodeSize,de)}});let _=eu(f?il(d):d,-r).sort(rl);for(let M=0;M<_.length;M++)_[M].type.valid(n,_[M])||(a.onRemove&&a.onRemove(_[M].spec),_.splice(M--,1));return _.length||u.length?new Nr(_,u):Jr}function rl(d,n){return d.from-n.from||d.to-n.to}function gc(d){let n=d;for(let r=0;r<n.length-1;r++){let a=n[r];if(a.from!=a.to)for(let u=r+1;u<n.length;u++){let f=n[u];if(f.from!=a.from){f.from<a.to&&(n==d&&(n=d.slice()),n[r]=a.copy(a.from,f.from),hp(n,u,a.copy(f.from,a.to)));break}f.to!=a.to&&(n==d&&(n=d.slice()),n[u]=f.copy(f.from,a.to),hp(n,u+1,f.copy(a.to,f.to)))}}return n}function hp(d,n,r){for(;n<d.length&&rl(r,d[n])>0;)n++;d.splice(n,0,r)}function tu(d){let n=[];return d.someProp("decorations",r=>{let a=r(d.state);a&&a!=Jr&&n.push(a)}),d.cursorWrapper&&n.push(Nr.create(d.state.doc,[d.cursorWrapper.deco])),ws.from(n)}const tg={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ng=Ai&&Li<=11;class ig{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(n){this.anchorNode=n.anchorNode,this.anchorOffset=n.anchorOffset,this.focusNode=n.focusNode,this.focusOffset=n.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(n){return n.anchorNode==this.anchorNode&&n.anchorOffset==this.anchorOffset&&n.focusNode==this.focusNode&&n.focusOffset==this.focusOffset}}class Qs{constructor(n,r){this.view=n,this.handleDOMChange=r,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new ig,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(a=>{for(let u=0;u<a.length;u++)this.queue.push(a[u]);Ai&&Li<=11&&a.some(u=>"childList"==u.type&&u.removedNodes.length||"characterData"==u.type&&u.oldValue.length>u.target.nodeValue.length)?this.flushSoon():this.flush()}),ng&&(this.onCharData=a=>{this.queue.push({target:a.target,type:"characterData",oldValue:a.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,tg)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let n=this.observer.takeRecords();if(n.length){for(let r=0;r<n.length;r++)this.queue.push(n[r]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(lr(this.view)){if(this.suppressingSelectionUpdates)return Us(this.view);if(Ai&&Li<=11&&!this.view.state.selection.empty){let n=this.view.domSelectionRange();if(n.focusNode&&Fo(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(n){if(!n.focusNode)return!0;let a,r=new Set;for(let f=n.focusNode;f;f=qo(f))r.add(f);for(let f=n.anchorNode;f;f=qo(f))if(r.has(f)){a=f;break}let u=a&&this.view.docView.nearestDesc(a);return u&&u.ignoreMutation({type:"selection",target:3==a.nodeType?a.parentNode:a})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let n of this.observer.takeRecords())this.queue.push(n);return this.queue}flush(){let{view:n}=this;if(!n.docView||this.flushingSoon>-1)return;let r=this.pendingRecords();r.length&&(this.queue=[]);let a=n.domSelectionRange(),u=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(a)&&lr(n)&&!this.ignoreSelectionChange(a),f=-1,_=-1,M=!1,O=[];if(n.editable)for(let de=0;de<r.length;de++){let Ye=this.registerMutation(r[de],O);Ye&&(f=f<0?Ye.from:Math.min(Ye.from,f),_=_<0?Ye.to:Math.max(Ye.to,_),Ye.typeOver&&(M=!0))}if(Ei&&O.length>1){let de=O.filter(Ye=>"BR"==Ye.nodeName);if(2==de.length){let Ye=de[0],ut=de[1];Ye.parentNode&&Ye.parentNode.parentNode==ut.parentNode?ut.remove():Ye.remove()}}let Q=null;f<0&&u&&n.input.lastFocus>
vendor: 4,447 bytes, line 1
1Date.now()-200&&Math.max(n.input.lastTouch,n.input.lastClick.time)<Date.now()-300&&ya(a)&&(Q=Rd(n))&&Q.eq(ei.near(n.state.doc.resolve(0),1))?(n.input.lastFocus=0,Us(n),this.currentSelection.set(a),n.scrollToSelection()):(f>-1||u)&&(f>-1&&(n.docView.markDirty(f,_),function sl(d){if(!ol.has(d)&&(ol.set(d,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(d.dom).whiteSpace))){if(d.requiresGeckoHackNode=Ei,Zc)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Zc=!0}}(n)),this.handleDOMChange(f,_,M,O),n.docView&&n.docView.dirty?n.updateState(n.state):this.currentSelection.eq(a)||Us(n),this.currentSelection.set(a))}registerMutation(n,r){if(r.indexOf(n.target)>-1)return null;let a=this.view.docView.nearestDesc(n.target);if("attributes"==n.type&&(a==this.view.docView||"contenteditable"==n.attributeName||"style"==n.attributeName&&!n.oldValue&&!n.target.getAttribute("style"))||!a||a.ignoreMutation(n))return null;if("childList"==n.type){for(let de=0;de<n.addedNodes.length;de++)r.push(n.addedNodes[de]);if(a.contentDOM&&a.contentDOM!=a.dom&&!a.contentDOM.contains(n.target))return{from:a.posBefore,to:a.posAfter};let u=n.previousSibling,f=n.nextSibling;if(Ai&&Li<=11&&n.addedNodes.length)for(let de=0;de<n.addedNodes.length;de++){let{previousSibling:Ye,nextSibling:ut}=n.addedNodes[de];(!Ye||Array.prototype.indexOf.call(n.addedNodes,Ye)<0)&&(u=Ye),(!ut||Array.prototype.indexOf.call(n.addedNodes,ut)<0)&&(f=ut)}let _=u&&u.parentNode==n.target?wr(u)+1:0,M=a.localPosFromDOM(n.target,_,-1),O=f&&f.parentNode==n.target?wr(f):n.target.childNodes.length;return{from:M,to:a.localPosFromDOM(n.target,O,1)}}return"attributes"==n.type?{from:a.posAtStart-a.border,to:a.posAtEnd+a.border}:{from:a.posAtStart,to:a.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}}}let ol=new WeakMap,Zc=!1;function Sh(d){let n=d.pmViewDesc;if(n)return n.parseRule();if("BR"==d.nodeName&&d.parentNode){if(Pi&&/^(ul|ol)$/i.test(d.parentNode.nodeName)){let r=document.createElement("div");return r.appendChild(document.createElement("li")),{skip:r}}if(d.parentNode.lastChild==d||Pi&&/^(tr|table)$/i.test(d.parentNode.nodeName))return{ignore:!0}}else if("IMG"==d.nodeName&&d.getAttribute("mark-placeholder"))return{ignore:!0};return null}const fp=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function gp(d,n,r){return Math.max(r.anchor,r.head)>n.content.size?null:Hu(d,n.resolve(r.anchor),n.resolve(r.head))}function Ol(d,n,r){let a=d.depth,u=n?d.end():d.pos;for(;a>0&&(n||d.indexAfter(a)==d.node(a).childCount);)a--,u++,n=!1;if(r){let f=d.node(a).maybeChild(d.indexAfter(a));for(;f&&!f.isLeaf;)f=f.firstChild,u++}return u}class rg{constructor(n,r){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new hc,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=r,this.state=r.state,this.directPlugins=r.plugins||[],this.directPlugins.forEach(Ca),this.dispatch=this.dispatch.bind(this),this.dom=n&&n.mount||document.createElement("div"),n&&(n.appendChild?n.appendChild(this.dom):"function"==typeof n?n(this.dom):n.mount&&(this.mounted=!0)),this.editable=yc(this),vc(this),this.nodeViews=yp(this),this.docView=z(this.state.doc,_c(this),tu(this),this.dom,this),this.domObserver=new Qs(this,(a,u,f,_)=>function ed(d,n,r,a,u){let f=d.input.compositionPendingChanges||(d.composing?d.input.compositionID:0);if(d.input.compositionPendingChanges=0,n<0){let Yi=d.input.lastSelectionTime>Date.now()-50?d.input.lastSelectionOrigin:null,Xl=Rd(d,Yi);if(Xl&&!d.state.selection.eq(Xl)){if(Jn&&xi&&13===d.input.lastKeyCode&&Date.now()-100<d.input.lastKeyCodeTime&&d.someProp("handleKeyDown",Vg=>Vg(d,Zo(13,"Enter"))))return;let Ou=d.state.tr.setSelection(Xl);"pointer"==Yi?Ou.setMeta("pointer",!0):"key"==Yi&&Ou.scrollIntoView(),f&&Ou.setMeta("composition",f),d.dispatch(Ou)}return}let _=d.state.doc.resolve(n),M=_.sharedDepth(r);n=_.before(M+1),r=d.state.doc.resolve(r).after(M+1);let ut,Tt,O=d.state.selection,Q=function Io(d,n,r){let Q,{node:a,fromOffset:u,toOffset:f,from:_,to:M}=d.docView.parseRange(n,r),O=d.domSelectionRange(),de=O.anchorNode;
1if(de&&d.dom.contains(1==de.nodeType?de:de.parentNode)&&(Q=[{node:de,offset:O.anchorOffset}],ya(O)||Q.push({node:O.focusNode,offset:O.focusOffset})),Jn&&8===d.input.lastKeyCode)for(let En=f;En>u;En--){let mi=a.childNodes[En-1],vo=mi.pmViewDesc;if("BR"==mi.nodeName&&!vo){f=En;break}if(!vo||vo.size)break}let Ye=d.state.doc,ut=d.someProp("domParser")||Un.fromSchema(d.state.schema),Tt=Ye.resolve(_),At=null,nn=ut.parse(a,{topNode:Tt.parent,topMatch:Tt.parent.contentMatchAt(Tt.index()),topOpen:!0,from:u,to:f,preserveWhitespace:"pre"!=Tt.parent.type.whitespace||"full",findPositions:Q,ruleFromNode:Sh,context:Tt});if(Q&&null!=Q[0].pos){let En=Q[0].pos,mi=Q[1]&&Q[1].pos;null==mi&&(mi=En),At={anchor:En+_,head:mi+_}}return{doc:nn,sel:At,from:_,to:M}}(d,n,r),de=d.state.doc,Ye=de.slice(Q.from,Q.to);8===d.input.lastKeyCode&&Date.now()-100<d.input.lastKeyCodeTime?(ut=d.state.selection.to,Tt="end"):(ut=d.state.selection.from,Tt="start"),d.input.lastKeyCode=null;let At=function _p(d,n,r,a,u){let f=d.findDiffStart(n,r);if(null==f)return null;let{a:_,b:M}=d.findDiffEnd(n,r+d.size,r+n.size);return"end"==u&&(a-=_+Math.max(0,f-Math.min(_,M))-f),_<f&&d.size<n.size?(f-=a<=f&&a>=_?f-a:0,M=f+(M-_),_=f):M<f&&(f-=a<=f&&a>=M?f-a:0,_=f+(_-M),M=f),{start:f,endA:_,endB:M}}(Ye.content,Q.doc.content,Q.from,ut,Tt);if((bi&&d.input.lastIOSEnter>Date.now()-225||xi)&&u.some(Yi=>1==Yi.nodeType&&!fp.test(Yi.nodeName))&&(!At||At.endA>=At.endB)&&d.someProp("handleKeyDown",Yi=>Yi(d,Zo(13,"Enter"))))return void(d.input.lastIOSEnter=0);if(!At){if(!(a&&O instanceof Wi&&!O.empty&&O.$head.sameParent(O.$anchor))||d.composing||Q.sel&&Q.sel.anchor!=Q.sel.head){if(Q.sel){let Yi=gp(d,d.state.doc,Q.sel);if(Yi&&!Yi.eq(d.state.selection)){let Xl=d.state.tr.setSelection(Yi);f&&Xl.setMeta("composition",f),d.dispatch(Xl)}}return}At={start:O.from,endA:O.to,endB:O.to}}if(Jn&&d.cursorWrapper&&Q.sel&&Q.sel.anchor==d.cursorWrapper.deco.from&&Q.sel.head==Q.sel.anchor){let Yi=At.endB-At.start;Q.sel={anchor:Q.sel.anchor+Yi,head:Q.sel.anchor+Yi}}d.input.domChangeCount++,d.state.selection.from<d.state.selection.to&&At.start==At.endB&&d.state.selection instanceof Wi&&(At.start>d.state.selection.from&&At.start<=d.state.selection.from+2&&d.state.selection.from>=Q.from?At.start=d.state.selection.from:At.endA<d.state.selection.to&&At.endA>=d.state.selection.to-2&&d.state.selection.to<=Q.to&&(At.endB+=d.state.selection.to-At.endA,At.endA=d.state.selection.to)),Ai&&Li<=11&&At.endB==At.start+1&&At.endA==At.start&&At.start>Q.from&&" \xa0"==Q.doc.textBetween(At.start-Q.from-1,At.start-Q.from+1)&&(At.start--,At.endA--,At.endB--);let Wl,nn=Q.doc.resolveNoCache(At.start-Q.from),En=Q.doc.resolveNoCache(At.endB-Q.from),mi=de.resolve(At.start),vo=nn.sameParent(En)&&nn.parent.inlineContent&&mi.end()>=At.endA;if((bi&&d.input.lastIOSEnter>Date.now()-225&&(!vo||u.some(Yi=>"DIV"==Yi.nodeName||"P"==Yi.nodeName))||!vo&&nn.pos<Q.doc.content.size&&!nn.sameParent(En)&&(Wl=ei.findFrom(Q.doc.resolve(nn.pos+1),1,!0))&&Wl.head==En.pos)&&d.someProp("handleKeyDown",Yi=>Yi(d,Zo(13,"Enter"))))return void(d.input.lastIOSEnter=0);if(d.state.selection.anchor>At.start&&function mp(d,n,r,a,u){if(!a.parent.isTextblock||r-n<=u.pos-a.pos||Ol(a,!0,!1)<u.pos)return!1;let f=d.resolve(n);if(f.parentOffset<f.parent.content.size||!f.parent.isTextblock)return!1;let _=d.resolve(Ol(f,!0,!0));return!(!_.parent.isTextblock||_.pos>r||Ol(_,!0,!1)<r)&&a.parent.content.cut(a.parentOffset).eq(_.parent.content)}(de,At.start,At.endA,nn,En)&&d.someProp("handleKeyDown",Yi=>Yi(d,Zo(8,"Backspace"))))return void(xi&&Jn&&d.domObserver.suppressSelectionUpdates());Jn&&xi&&At.endB==At.start&&(d.input.lastAndroidDelete=Date.now()),xi&&!vo&&nn.start()!=En.start()&&0==En.parentOffset&&nn.depth==En.depth&&Q.sel&&Q.sel.anchor==Q.sel.head&&Q.sel.head==At.endA&&(At.endB-=2,En=Q.doc.resolveNoCache(At.endB-Q.from),setTimeout(()=>{d.someProp("handleKeyDown",function(Yi){return Yi(d,Zo(13,"Enter"))})},20));let ys,Af,qp,Hl=At.start,Bc=At.endA;if(vo)if(nn.pos==En.pos)Ai&&Li<=11&&0==nn.parentOffset&&(d.domObserver.suppressSelectionUpdates(),setTimeout(()=>Us(d),20)),ys=d.state.tr.delete(Hl,Bc),Af=de.resolve(At.start).marksAcross(de.resolve(At.endA));else if(At.endA==At.endB&&(qp=function To(d,n){let _,M,O,r=d.firstChild.marks,a=n.firstChild.marks,u=r,f=a;for(let de=0;de<a.length;de++)u=a[de].removeFromSet(u);for(let de=0;de<r.length;de++)f=r[de].removeFromSet(f);if(1==u.length&&0==f.length)M=u[0],_="add",O=de=>de.mark(M.addToSet(de.marks));else{if(0!=u.length||1!=f.length)return null;M=f[0],_="remove",O=de=>de.mark(M.removeFromSet(de.marks))}let Q=[];for(let de=0;de<n.childCount;de++)Q.push(O(n.child(de)));if(we.from(Q).eq(d))return{mark:M,type:_}}
1(nn.parent.content.cut(nn.parentOffset,En.parentOffset),mi.parent.content.cut(mi.parentOffset,At.endA-mi.start()))))ys=d.state.tr,"add"==qp.type?ys.addMark(Hl,Bc,qp.mark):ys.removeMark(Hl,Bc,qp.mark);else if(nn.parent.child(nn.index()).isText&&nn.index()==En.index()-(En.textOffset?0:1)){let Yi=nn.parent.textBetween(nn.parentOffset,En.parentOffset);if(d.someProp("handleTextInput",Xl=>Xl(d,Hl,Bc,Yi)))return;ys=d.state.tr.insertText(Yi,Hl,Bc)}if(ys||(ys=d.state.tr.replace(Hl,Bc,Q.doc.slice(At.start-Q.from,At.endB-Q.from))),Q.sel){let Yi=gp(d,ys.doc,Q.sel);Yi&&!(Jn&&xi&&d.composing&&Yi.empty&&(At.start!=At.endB||d.input.lastAndroidDelete<Date.now()-100)&&(Yi.head==Hl||Yi.head==ys.mapping.map(Bc)-1)||Ai&&Yi.empty&&Yi.head==Hl)&&ys.setSelection(Yi)}Af&&ys.ensureMarks(Af),f&&ys.setMeta("composition",f),d.dispatch(ys.scrollIntoView())}(this,a,u,f,_)),this.domObserver.start(),function zs(d){for(let n in Mo){let r=Mo[n];d.dom.addEventListener(n,d.input.eventHandlers[n]=a=>{rp(d,a)&&!ip(d,a)&&(d.editable||!(a.type in Ci))&&r(d,a)},np[n]?{passive:!0}:void 0)}Pi&&d.dom.addEventListener("input",()=>null),$d(d)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let n=this._props;this._props={};for(let r in n)this._props[r]=n[r];this._props.state=this.state}return this._props}update(n){n.handleDOMEvents!=this._props.handleDOMEvents&&$d(this);let r=this._props;this._props=n,n.plugins&&(n.plugins.forEach(Ca),this.directPlugins=n.plugins),this.updateStateInner(n.state,r)}setProps(n){let r={};for(let a in this._props)r[a]=this._props[a];r.state=this.state;for(let a in n)r[a]=n[a];this.update(r)}updateState(n){this.updateStateInner(n,this._props)}updateStateInner(n,r){let a=this.state,u=!1,f=!1;n.storedMarks&&this.composing&&(Kd(this),f=!0),this.state=n;let _=a.plugins!=n.plugins||this._props.plugins!=r.plugins;if(_||this._props.plugins!=r.plugins||this._props.nodeViews!=r.nodeViews){let ut=yp(this);(function Ac(d,n){let r=0,a=0;for(let u in d){if(d[u]!=n[u])return!0;r++}for(let u in n)a++;return r!=a})(ut,this.nodeViews)&&(this.nodeViews=ut,u=!0)}(_||r.handleDOMEvents!=this._props.handleDOMEvents)&&$d(this),this.editable=yc(this),vc(this);let M=tu(this),O=_c(this),Q=a.plugins==n.plugins||a.doc.eq(n.doc)?n.scrollToSelection>a.scrollToSelection?"to selection":"preserve":"reset",de=u||!this.docView.matchesNode(n.doc,O,M);(de||!n.selection.eq(a.selection))&&(f=!0);let Ye="preserve"==Q&&f&&null==this.dom.style.overflowAnchor&&function Ho(d){let a,u,n=d.dom.getBoundingClientRect(),r=Math.max(0,n.top);for(let f=(n.left+n.right)/2,_=r+1;_<Math.min(innerHeight,n.bottom);_+=5){let M=d.root.elementFromPoint(f,_);if(!M||M==d.dom||!d.dom.contains(M))continue;let O=M.getBoundingClientRect();if(O.top>=r-20){a=M,u=O.top;break}}return{refDOM:a,refTop:u,stack:Ln(d.dom)}}(this);if(f){this.domObserver.stop();let ut=de&&(Ai||Jn)&&!this.composing&&!a.selection.empty&&!n.selection.empty&&function vp(d,n){let r=Math.min(d.$anchor.sharedDepth(d.head),n.$anchor.sharedDepth(n.head));return d.$anchor.start(r)!=n.$anchor.start(r)}(a.selection,n.selection);if(de){let Tt=Jn?this.trackWrites=this.domSelectionRange().focusNode:null;(u||!this.docView.update(n.doc,O,M,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=z(n.doc,O,M,this.dom,this)),Tt&&!this.trackWrites&&(ut=!0)}ut||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function dc(d){let n=d.docView.domFromPos(d.state.selection.anchor,0),r=d.domSelectionRange();return Fo(n.node,n.offset,r.anchorNode,r.anchorOffset)}(this))?Us(this,ut):(Ld(this,n.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),"reset"==Q?this.dom.scrollTop=0:"to selection"==Q?this.scrollToSelection():Ye&&function Wa({refDOM:d,refTop:n,stack:r}){let a=d?d.getBoundingClientRect().top:0;lc(r,0==a?0:a-n)}(Ye)}scrollToSelection(){let n=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",r=>r(this)))if(this.state.selection instanceof Hn){let r=this.docView.domAfterPos(this.state.selection.from);
vendor: 1,366 bytes, line 1
11==r.nodeType&&Yr(this,r.getBoundingClientRect(),n)}else Yr(this,this.coordsAtPos(this.state.selection.head,1),n)}destroyPluginViews(){let n;for(;n=this.pluginViews.pop();)n.destroy&&n.destroy()}updatePluginViews(n){if(n&&n.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let r=0;r<this.pluginViews.length;r++){let a=this.pluginViews[r];a.update&&a.update(this,n)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let r=0;r<this.directPlugins.length;r++){let a=this.directPlugins[r];a.spec.view&&this.pluginViews.push(a.spec.view(this))}for(let r=0;r<this.state.plugins.length;r++){let a=this.state.plugins[r];a.spec.view&&this.pluginViews.push(a.spec.view(this))}}}someProp(n,r){let u,a=this._props&&this._props[n];if(null!=a&&(u=r?r(a):a))return u;for(let _=0;_<this.directPlugins.length;_++){let M=this.directPlugins[_].props[n];if(null!=M&&(u=r?r(M):M))return u}let f=this.state.plugins;if(f)for(let _=0;_<f.length;_++){let M=f[_].props[n];if(null!=M&&(u=r?r(M):M))return u}}hasFocus(){if(Ai){let n=this.root.activeElement;if(n==this.dom)return!0;if(!n||!this.dom.contains(n))return!1;for(;n&&this.dom!=n&&this.dom.contains(n);){if("false"==n.contentEditable)return!1;n=n.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function Sr(d){if(d.setA
1ctive)return d.setActive();if(gs)return d.focus(gs);let n=Ln(d);d.focus(null==gs?{get preventScroll(){return gs={preventScroll:!0},!0}}:void 0),gs||(gs=!1,lc(n,0))}(this.dom),Us(this),this.domObserver.start()}get root(){let n=this._root;if(null==n)for(let r=this.dom.parentNode;r;r=r.parentNode)if(9==r.nodeType||11==r.nodeType&&r.host)return r.getSelection||(Object.getPrototypeOf(r).getSelection=()=>r.ownerDocument.getSelection()),this._root=r;return n||document}posAtCoords(n){return sa(this,n)}coordsAtPos(n,r=1){return es(this,n,r)}domAtPos(n,r=0){return this.docView.domFromPos(n,r)}nodeDOM(n){let r=this.docView.descAt(n);return r?r.nodeDOM:null}posAtDOM(n,r,a=-1){let u=this.docView.posFromDOM(n,r,a);if(null==u)throw new RangeError("DOM position not inside the editor");return u}endOfTextblock(n,r){return function ts(d,n,r){return Ml==n&&Gs==r?Xa:(Ml=n,Gs=r,Xa="up"==r||"down"==r?function cc(d,n,r){let a=n.selection,u="up"==r?a.$from:a.$to;return Dr(d,n,()=>{let{node:f}=d.docView.domFromPos(u.pos,"up"==r?-1:1);for(;;){let M=d.docView.nearestDesc(f,!0);if(!M)break;if(M.node.isBlock){f=M.contentDOM||M.dom;break}f=M.dom.parentNode}let _=es(d,u.pos,1);for(let M=f.firstChild;M;M=M.nextSibling){let O;if(1==M.nodeType)O=M.getClientRects();else{if(3!=M.nodeType)continue;O=Ko(M,0,M.nodeValue.length).getClientRects()}for(let Q=0;Q<O.length;Q++){let de=O[Q];if(de.bottom>de.top+1&&("up"==r?_.top-de.top>2*(de.bottom-_.top):de.bottom-_.bottom>2*(_.bottom-de.top)))return!1}}return!0})}(d,n,r):function lo(d,n,r){let{$head:a}=n.selection;if(!a.parent.isTextblock)return!1;let u=a.parentOffset,f=!u,_=u==a.parent.content.size,M=d.domSelection();return ao.test(a.parent.textContent)&&M.modify?Dr(d,n,()=>{let{focusNode:O,focusOffset:Q,anchorNode:de,anchorOffset:Ye}=d.domSelectionRange(),ut=M.caretBidiLevel;M.modify("move",r,"character");let Tt=a.depth?d.docView.domAfterPos(a.before()):d.dom,{focusNode:At,focusOffset:nn}=d.domSelectionRange(),En=At&&!Tt.contains(1==At.nodeType?At:At.parentNode)||O==At&&Q==nn;try{M.collapse(de,Ye),O&&(O!=de||Q!=Ye)&&M.extend&&M.extend(O,Q)}catch{}return null!=ut&&(M.caretBidiLevel=ut),En}):"left"==r||"backward"==r?f:_}(d,n,r))}(this,r||this.state,n)}pasteHTML(n,r){return cr(this,"",n,!1,r||new ClipboardEvent("paste"))}pasteText(n,r){return cr(this,n,null,!0,r||new ClipboardEvent("paste"))}destroy(){this.docView&&(function zd(d){d.domObserver.stop();for(let n in d.input.eventHandlers)d.dom.removeEventListener(n,d.input.eventHandlers[n]);clearTimeout(d.input.composingTimeout),clearTimeout(d.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],tu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(n){return function Lo(d,n){!ip(d,n)&&Mo[n.type]&&(d.editable||!(n.type in Ci))&&Mo[n.type](d,n)}(this,n)}dispatch(n){let r=this._props.dispatchTransaction;r?r.call(this,n):this.updateState(this.state.apply(n))}domSelectionRange(){return Pi&&11===this.root.nodeType&&function j(d){let n=d.activeElement;for(;n&&n.shadowRoot;)n=n.shadowRoot.activeElement;return n}(this.dom.ownerDocument)==this.dom?function mc(d){let n;function r(O){O.preventDefault(),O.stopImmediatePropagation(),n=O.getTargetRanges()[0]}d.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),d.dom.removeEventListener("beforeinput",r,!0);let a=n.startContainer,u=n.startOffset,f=n.endContainer,_=n.endOffset,M=d.domAtPos(d.state.selection.anchor);return Fo(M.node,M.offset,f,_)&&([a,u,f,_]=[f,_,a,u]),{anchorNode:a,anchorOffset:u,focusNode:f,focusOffset:_}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function _c(d){let n=Object.create(null);return n.class="ProseMirror",n.contenteditable=String(d.editable),d.someProp("attributes",r=>{if("function"==typeof r&&(r=r(d.state)),r)for(let a in r)"class"==a?n.class+=" "+r[a]:"style"==a?n.style=(n.style?n.style+";":"")+r[a]:!n[a]&&"contenteditable"!=a&&"nodeName"!=a&&(n[a]=String(r[a]))}
1),n.translate||(n.translate="no"),[ko.node(0,d.state.doc.content.size,n)]}function vc(d){if(d.markCursor){let n=document.createElement("img");n.className="ProseMirror-separator",n.setAttribute("mark-placeholder","true"),n.setAttribute("alt",""),d.cursorWrapper={dom:n,deco:ko.widget(d.state.selection.head,n,{raw:!0,marks:d.markCursor})}}else d.cursorWrapper=null}function yc(d){return!d.someProp("editable",n=>!1===n(d.state))}function yp(d){let n=Object.create(null);function r(a){for(let u in a)Object.prototype.hasOwnProperty.call(n,u)||(n[u]=a[u])}return d.someProp("nodeViews",r),d.someProp("markViews",r),n}function Ca(d){if(d.spec.state||d.spec.filterTransaction||d.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Ar=R(177);const bc=["ol",0],xc=["ul",0],ua=["li",0];function wc(d,n){return function(r,a){let{$from:u,$to:f,node:_}=r.selection;if(_&&_.isBlock||u.depth<2||!u.sameParent(f))return!1;let M=u.node(-1);if(M.type!=d)return!1;if(0==u.parent.content.size&&u.node(-1).childCount==u.indexAfter(-1)){if(3==u.depth||u.node(-3).type!=d||u.index(-2)!=u.node(-2).childCount-1)return!1;if(a){let Ye=we.empty,ut=u.index(-1)?1:u.index(-2)?2:3;for(let mi=u.depth-ut;mi>=u.depth-3;mi--)Ye=we.from(u.node(mi).copy(Ye));let Tt=u.indexAfter(-1)<u.node(-2).childCount?1:u.indexAfter(-2)<u.node(-3).childCount?2:3;Ye=Ye.append(we.from(d.createAndFill()));let At=u.before(u.depth-(ut-1)),nn=r.tr.replace(At,u.after(-Tt),new je(Ye,4-ut,0)),En=-1;nn.doc.nodesBetween(At,nn.doc.content.size,(mi,vo)=>{if(En>-1)return!1;mi.isTextblock&&0==mi.content.size&&(En=vo+1)}),En>-1&&nn.setSelection(ei.near(nn.doc.resolve(En))),a(nn.scrollIntoView())}return!0}let O=f.pos==u.end()?M.contentMatchAt(0).defaultType:null,Q=r.tr.delete(u.pos,f.pos),de=O?[n?{type:d,attrs:n}:null,{type:O}]:void 0;return!!q(Q.doc,u.pos,2,de)&&(a&&a(Q.split(u.pos,2,de).scrollIntoView()),!0)}}function Ds(d){return function(n,r){let{$from:a,$to:u}=n.selection,f=a.blockRange(u,_=>_.childCount>0&&_.firstChild.type==d);return!!f&&(!r||(a.node(f.depth-1).type==d?function Da(d,n,r,a){let u=d.tr,f=a.end,_=a.$to.end(a.depth);f<_&&(u.step(new Bi(f-1,_,f,_,new je(we.from(r.create(null,a.parent.copy())),1,0),1,!0)),a=new ze(u.doc.resolve(a.$from.pos),u.doc.resolve(_),a.depth));const M=ai(a);if(null==M)return!1;u.lift(a,M);let O=u.mapping.map(f,-1)-1;return yt(u.doc,O)&&u.join(O),n(u.scrollIntoView()),!0}(n,r,d,f):function al(d,n,r){let a=d.tr,u=r.parent;for(let Tt=r.end,At=r.endIndex-1,nn=r.startIndex;At>nn;At--)Tt-=u.child(At).nodeSize,a.delete(Tt-1,Tt+1);let f=a.doc.resolve(r.start),_=f.nodeAfter;if(a.mapping.map(r.end)!=r.start+f.nodeAfter.nodeSize)return!1;let M=0==r.startIndex,O=r.endIndex==u.childCount,Q=f.node(-1),de=f.index(-1);if(!Q.canReplace(de+(M?0:1),de+1,_.content.append(O?we.empty:we.from(u))))return!1;let Ye=f.pos,ut=Ye+_.nodeSize;return a.step(new Bi(Ye-(M?1:0),ut+(O?1:0),Ye+1,ut-1,new je((M?we.empty:we.from(u.copy(we.empty))).append(O?we.empty:we.from(u.copy(we.empty))),M?0:1,O?0:1),M?0:1)),n(a.scrollIntoView()),!0}(n,r,f)))}}function Dc(d){return function(n,r){let{$from:a,$to:u}=n.selection,f=a.blockRange(u,Q=>Q.childCount>0&&Q.firstChild.type==d);if(!f)return!1;let _=f.startIndex;if(0==_)return!1;let M=f.parent,O=M.child(_-1);if(O.type!=d)return!1;if(r){let Q=O.lastChild&&O.lastChild.type==M.type,de=we.from(Q?d.create():null),Ye=new je(we.from(d.create(null,we.from(M.type.create(null,de)))),Q?3:1,0),ut=f.start,Tt=f.end;r(n.tr.step(new Bi(ut-(Q?3:1),Tt,ut,Tt,Ye,1,!0)).scrollIntoView())}return!0}}const rs={link:{attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:d=>({href:d.getAttribute("href"),title:d.getAttribute("title"),target:d.getAttribute("target")})}],toDOM(d){const{href:n,title:r,target:a}=d.attrs;return["a",{href:n,title:r,target:a},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:()=>["em",0]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:d=>"normal"!==d.style.fontWeight&&null},{style:"font-weight",getAttrs:d=>/^(?:bold(?:er)?|[5-9]\d{2,})$/.test(d)&&null}],toDOM:()=>["strong",0]},code:{parseDOM:[{tag:"code"}],toDOM:()=>["code",0]},u:{parseDOM:[{tag:"u"},{style:"text-decoration=underline",consuming:!1}],toDOM:()=>["u",0]},s:{parseDOM:[{tag:"s"},{tag:"strike"},{style:"text-decoration=line-through"}],toDOM:()=>["s",0]},text_color:{attrs:{color:{default:null}},parseDOM:[{style:"color",getAttrs:d=>({color:d})}],toDOM(d){const{color:n}=d.attrs;return["span",{style:`color:${n};`},0]}},text_background_color:{attrs:{backgroundColor:{default:null}},parseDOM:[{style:"background-color",getAttrs:d=>({backgroundColor:d})}],toDOM(d){const{backgroundColor:n}=d.attrs;return["span",{style:`background-color:${n};`},0]}}},jh={doc:{content:"block+"},text:{group:"inline"},paragraph:{content:"inline*",group:"block",attrs:{align:{default:null}},parseDOM:[{tag:"p",getAttrs(d){const{textAlign:n}=d.style;return{align:d.getAttribute("align")||n||null}}}],toDOM(d){const{align:n}=d.attrs;return["p",{style:e({textAlign:"left"!==n?n:null})||null},0]}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["hr"]},heading:{attrs:{level:{default:1},align:{default:null}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs(d){const{textAlign:n}=d.style;return{level:1,align:d.getAttribute("align")||n||null}}},{tag:"h2",getAttrs(d){const{textAlign:n}=d.style;return{level:2,align:d.getAttribute("align")||n||null}}},{tag:"h3",getAttrs(d){const{textAlign:n}=d.style;return{level:3,align:d.getAttribute("align")||n||null}}},{tag:"h4",getAttrs(d){const{textAlign:n}=d.style;return{level:4,align:d.getAttribute("align")||n||null}}},{tag:"h5",getAttrs(d){const{textAlign:n}=d.style;return{level:5,align:d.getAttribute("align")||n||null}}},{tag:"h6",getAttrs(d){const{textAlign:n}=d.style;return{level:6,align:d.getAttribute("align")||n||null}}}],toDOM(d){const{level:n,align:r}=d.attrs;return[`h${n}`,{style:e({textAlign:"left"!==r?r:null})||null},0]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:()=>["pre",["code",0]]},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null},width:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:d=>({src:d.getAttribute("src"),title:d.getAttribute("title"),alt:d.getAttribute("alt"),width:d.getAttribute("width")})}],toDOM(d){const{src:n,alt:r,title:a,width:u}=d.attrs;return["img",{src:n,alt:r,title:a,width:u}]}},list_item:{...{parseDOM:[{tag:"li"}],toDOM:()=>ua,defining:!0},content:"paragraph block*"},ordered_list:{...{attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:d=>({order:d.hasAttribute("start")?+d.getAttribute("start"):1})}],toDOM:d=>1==d.attrs.order?bc:["ol",{start:d.attrs.order},0]},content:"list_item+",group:"block"},bullet_list:{...{parseDOM:[{tag:"ul"}],toDOM:()=>xc},content:"list_item+",group:"block"}},Ea=new class $n{constructor(n){this.cached=Object.create(null);let r=this.spec={};for(let u in n)r[u]=n[u];r.nodes=pe.from(n.nodes),r.marks=pe.from(n.marks||{}),this.nodes=an.compile(this.spec.nodes,this),this.marks=wi.compile(this.spec.marks,this);let a=Object.create(null);for(let u in this.nodes){if(u in this.marks)throw new RangeError(u+" can not be both a node and a mark");let f=this.nodes[u],_=f.spec.content||"",M=f.spec.marks;f.contentMatch=a[_]||(a[_]=It.parse(_,this.nodes)),f.inlineContent=f.contentMatch.inlineContent,f.markSet="_"==M?null:M?Qn(this,M.split(" ")):""!=M&&f.inlineContent?null:[]}for(let u in this.marks){let f=this.marks[u],_=f.spec.excludes;f.excluded=null==_?[f]:""==_?[]:Qn(this,_.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(n,r=null,a,u){if("string"==typeof n)n=this.nodeType(n);else{if(!(n instanceof an))throw new RangeError("Invalid node type: "+n);if(n.schema!=this)throw new RangeError("Node type from different schema used ("+n.name+")")}return n.createChecked(r,a,u)}text(n,r){let a=this.nodes.text;return new rt(a,a.defaultAttrs,n,ot.setFrom(r))}mark(n,r){return"string"==typeof n&&(n=this.marks[n]),n.create(r)}nodeFromJSON(n){return Re.fromJSON(this,n)}markFromJSON(n){return ot.fromJSON(this,n)}nodeType(n){let r=this.nodes[n];if(!r)throw new RangeError("Unknown node type: "+n);return r}}({marks:rs,nodes:jh}),id=(d,n)=>!d.selection.empty&&(n&&n(d.tr.deleteSelection().scrollIntoView()),!0);function Ms(d,n,r=!1){for(let a=d;a;a="start"==n?a.firstChild:a.lastChild){if(a.isTextblock)return!0;
vendor: 4,593 bytes, line 1
1if(r&&1!=a.childCount)return!1}return!1}function rd(d){if(!d.parent.type.spec.isolating)for(let n=d.depth-1;n>=0;n--){if(d.index(n)>0)return d.doc.resolve(d.before(n+1));if(d.node(n).type.spec.isolating)break}return null}function pa(d){if(!d.parent.type.spec.isolating)for(let n=d.depth-1;n>=0;n--){let r=d.node(n);if(d.index(n)+1<r.childCount)return d.doc.resolve(d.after(n+1));if(r.type.spec.isolating)break}return null}const lu=(d,n)=>{let{$head:r,$anchor:a}=d.selection;return!(!r.parent.type.spec.code||!r.sameParent(a)||(n&&n(d.tr.insertText("\n").scrollIntoView()),0))};function sd(d){for(let n=0;n<d.edgeCount;n++){let{type:r}=d.edge(n);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}const Ic=(d,n)=>{let{$head:r,$anchor:a}=d.selection;if(!r.parent.type.spec.code||!r.sameParent(a))return!1;let u=r.node(-1),f=r.indexAfter(-1),_=sd(u.contentMatchAt(f));if(!_||!u.canReplaceWith(f,f,_))return!1;if(n){let M=r.after(),O=d.tr.replaceWith(M,M,_.createAndFill());O.setSelection(ei.near(O.doc.resolve(M),1)),n(O.scrollIntoView())}return!0},Tc=(d,n)=>{let r=d.selection,{$from:a,$to:u}=r;if(r instanceof Wr||a.parent.inlineContent||u.parent.inlineContent)return!1;let f=sd(u.parent.contentMatchAt(u.indexAfter()));if(!f||!f.isTextblock)return!1;if(n){let _=(!a.parentOffset&&u.index()<u.parent.childCount?a:u).pos,M=d.tr.insert(_,f.createAndFill());M.setSelection(Wi.create(M.doc,_+1)),n(M.scrollIntoView())}return!0},ad=(d,n)=>{let{$cursor:r}=d.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let f=r.before();if(q(d.doc,f))return n&&n(d.tr.split(f).scrollIntoView()),!0}let a=r.blockRange(),u=a&&ai(a);return null!=u&&(n&&n(d.tr.lift(a,u).scrollIntoView()),!0)},du=function cu(d){return(n,r)=>{let{$from:a,$to:u}=n.selection;if(n.selection instanceof Hn&&n.selection.node.isBlock)return!(!a.parentOffset||!q(n.doc,a.pos)||(r&&r(n.tr.split(a.pos).scrollIntoView()),0));if(!a.parent.isBlock)return!1;if(r){let f=u.parentOffset==u.parent.content.size,_=n.tr;(n.selection instanceof Wi||n.selection instanceof Wr)&&_.deleteSelection();let M=0==a.depth?null:sd(a.node(-1).contentMatchAt(a.indexAfter(-1))),O=d&&d(u.parent,f),Q=O?[O]:f&&M?[{type:M}]:void 0,de=q(_.doc,_.mapping.map(a.pos),1,Q);if(!Q&&!de&&q(_.doc,_.mapping.map(a.pos),1,M?[{type:M}]:void 0)&&(M&&(Q=[{type:M}]),de=!0),de&&(_.split(_.mapping.map(a.pos),1,Q),!f&&!a.parentOffset&&a.parent.type!=M)){let Ye=_.mapping.map(a.before()),ut=_.doc.resolve(Ye);M&&a.node(-1).canReplaceWith(ut.index(),ut.index()+1,M)&&_.setNodeMarkup(_.mapping.map(a.before()),M)}r(_.scrollIntoView())}return!0}}();function So(d,n,r){let f,_,a=n.nodeBefore,u=n.nodeAfter;if(a.type.spec.isolating||u.type.spec.isolating)return!1;if(function Gh(d,n,r){let a=n.nodeBefore,u=n.nodeAfter,f=n.index();return!(!(a&&u&&a.type.compatibleContent(u.type))||(!a.content.size&&n.parent.canReplace(f-1,f)?(r&&r(d.tr.delete(n.pos-a.nodeSize,n.pos).scrollIntoView()),0):!n.parent.canReplace(f,f+1)||!u.isTextblock&&!yt(d.doc,n.pos)||(r&&r(d.tr.clearIncompatible(n.pos,a.type,a.contentMatchAt(a.childCount)).join(n.pos).scrollIntoView()),0)))}(d,n,r))return!0;let M=n.parent.canReplace(n.index(),n.index()+1);if(M&&(f=(_=a.contentMatchAt(a.childCount)).findWrapping(u.type))&&_.matchType(f[0]||u.type).validEnd){if(r){let Ye=n.pos+u.nodeSize,ut=we.empty;for(let nn=f.length-1;nn>=0;nn--)ut=we.from(f[nn].create(null,ut));ut=we.from(a.copy(ut));let Tt=d.tr.step(new Bi(n.pos-1,Ye,n.pos,Ye,new je(ut,1,0),f.length,!0)),At=Ye+2*f.length;yt(Tt.doc,At)&&Tt.join(At),r(Tt.scrollIntoView())}return!0}let O=ei.findFrom(n,1),Q=O&&O.$from.blockRange(O.$to),de=Q&&ai(Q);if(null!=de&&de>=n.depth)return r&&r(d.tr.lift(Q,de).scrollIntoView()),!0;if(M&&Ms(u,"start",!0)&&Ms(a,"end")){let Ye=a,ut=[];for(;ut.push(Ye),!Ye.isTextblock;)Ye=Ye.lastChild;let Tt=u,At=1;for(;!Tt.isTextblock;Tt=Tt.firstChild)At++;if(Ye.canReplace(Ye.childCount,Ye.childCount,Tt.content)){if(r){let nn=we.empty;for(let mi=ut.length-1;mi>=0;mi--)nn=we.from(ut[mi].copy(nn));r(d.tr.step(new Bi(n.pos-ut.length,n.pos+u.nodeSize,n.pos+At,n.pos+u.nodeSize-At,new je(nn,ut.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function cd(d){return function(n,r){let a=n.selection,u=d<0?a.$from:a.$to,f=u.depth;for(;u.node(f).isInline;){if(!f)return!1;f--}return!!u.node(f).isTextblock&&(r&&r(n.tr.setSelection(Wi.create(n.doc,d<0?u.start(f):u.end(f)))),!0)}}const hu=cd(-1),Sc=cd(1);function Ll(d,n=null){return function(r,a){let u=!1;for(let f=0;f<r.selection.ranges.length&&!u;f++){let{$from:{pos:_},$to:{pos:M}}=r.selection.ranges[f];r.doc.nodesBetween(_,M,(O,Q)=>
1{if(u)return!1;if(O.isTextblock&&!O.hasMarkup(d,n))if(O.type==d)u=!0;else{let de=r.doc.resolve(Q),Ye=de.index();u=de.parent.canReplaceWith(Ye,Ye+1,d)}})}if(!u)return!1;if(a){let f=r.tr;for(let _=0;_<r.selection.ranges.length;_++){let{$from:{pos:M},$to:{pos:O}}=r.selection.ranges[_];f.setBlockType(M,O,d,n)}a(f.scrollIntoView())}return!0}}function ka(d,n=null){return function(r,a){let{empty:u,$cursor:f,ranges:_}=r.selection;if(u&&!f||!function Mp(d,n,r){for(let a=0;a<n.length;a++){let{$from:u,$to:f}=n[a],_=0==u.depth&&d.inlineContent&&d.type.allowsMarkType(r);if(d.nodesBetween(u.pos,f.pos,M=>{if(_)return!1;_=M.inlineContent&&M.type.allowsMarkType(r)}),_)return!0}return!1}(r.doc,_,d))return!1;if(a)if(f)d.isInSet(r.storedMarks||f.marks())?a(r.tr.removeStoredMark(d)):a(r.tr.addStoredMark(d.create(n)));else{let M=!1,O=r.tr;for(let Q=0;!M&&Q<_.length;Q++){let{$from:de,$to:Ye}=_[Q];M=r.doc.rangeHasMark(de.pos,Ye.pos,d)}for(let Q=0;Q<_.length;Q++){let{$from:de,$to:Ye}=_[Q];if(M)O.removeMark(de.pos,Ye.pos,d);else{let ut=de.pos,Tt=Ye.pos,At=de.nodeAfter,nn=Ye.nodeBefore,En=At&&At.isText?/^\s*/.exec(At.text)[0].length:0,mi=nn&&nn.isText?/\s*$/.exec(nn.text)[0].length:0;ut+En<Tt&&(ut+=En,Tt-=mi),O.addMark(ut,Tt,d.create(n))}}a(O.scrollIntoView())}return!0}}function Pc(...d){return function(n,r,a){for(let u=0;u<d.length;u++)if(d[u](n,r,a))return!0;return!1}}let dd=Pc(id,(d,n,r)=>{let a=function wp(d,n){let{$cursor:r}=d.selection;return!r||(n?!n.endOfTextblock("backward",d):r.parentOffset>0)?null:r}(d,r);if(!a)return!1;let u=rd(a);if(!u){let _=a.blockRange(),M=_&&ai(_);return null!=M&&(n&&n(d.tr.lift(_,M).scrollIntoView()),!0)}let f=u.nodeBefore;if(!f.type.spec.isolating&&So(d,u,n))return!0;if(0==a.parent.content.size&&(Ms(f,"end")||Hn.isSelectable(f))){let _=La(d.doc,a.before(),a.after(),je.empty);if(_&&_.slice.size<_.to-_.from){if(n){let M=d.tr.step(_);M.setSelection(Ms(f,"end")?ei.findFrom(M.doc.resolve(M.mapping.map(u.pos,-1)),-1):Hn.create(M.doc,u.pos-f.nodeSize)),n(M.scrollIntoView())}return!0}}return!(!f.isAtom||u.depth!=a.depth-1||(n&&n(d.tr.delete(u.pos-f.nodeSize,u.pos).scrollIntoView()),0))},(d,n,r)=>{let{$head:a,empty:u}=d.selection,f=a;if(!u)return!1;if(a.parent.isTextblock){if(r?!r.endOfTextblock("backward",d):a.parentOffset>0)return!1;f=rd(a)}let _=f&&f.nodeBefore;return!(!_||!Hn.isSelectable(_)||(n&&n(d.tr.setSelection(Hn.create(d.doc,f.pos-_.nodeSize)).scrollIntoView()),0))}),fu=Pc(id,(d,n,r)=>{let a=function Dp(d,n){let{$cursor:r}=d.selection;return!r||(n?!n.endOfTextblock("forward",d):r.parentOffset<r.parent.content.size)?null:r}(d,r);if(!a)return!1;let u=pa(a);if(!u)return!1;let f=u.nodeAfter;if(So(d,u,n))return!0;if(0==a.parent.content.size&&(Ms(f,"start")||Hn.isSelectable(f))){let _=La(d.doc,a.before(),a.after(),je.empty);if(_&&_.slice.size<_.to-_.from){if(n){let M=d.tr.step(_);M.setSelection(Ms(f,"start")?ei.findFrom(M.doc.resolve(M.mapping.map(u.pos)),1):Hn.create(M.doc,M.mapping.map(u.pos))),n(M.scrollIntoView())}return!0}}return!(!f.isAtom||u.depth!=a.depth-1||(n&&n(d.tr.delete(u.pos,u.pos+f.nodeSize).scrollIntoView()),0))},(d,n,r)=>{let{$head:a,empty:u}=d.selection,f=a;if(!u)return!1;if(a.parent.isTextblock){if(r?!r.endOfTextblock("forward",d):a.parentOffset<a.parent.content.size)return!1;f=pa(a)}let _=f&&f.nodeAfter;return!(!_||!Hn.isSelectable(_)||(n&&n(d.tr.setSelection(Hn.create(d.doc,f.pos)).scrollIntoView()),0))});const Xs={Enter:Pc(lu,Tc,ad,du),"Mod-Enter":Ic,Backspace:dd,"Mod-Backspace":dd,"Shift-Backspace":dd,Delete:fu,"Mod-Delete":fu,"Mod-a":(d,n)=>(n&&n(d.tr.setSelection(new Wr(d.doc))),!0)},Ep={"Ctrl-h":Xs.Backspace,"Alt-Backspace":Xs["Mod-Backspace"],"Ctrl-d":Xs.Delete,"Ctrl-Alt-Backspace":Xs["Mod-Delete"],"Alt-Delete":Xs["Mod-Delete"],"Alt-d":Xs["Mod-Delete"],"Ctrl-a":hu,"Ctrl-e":Sc};for(let d in Xs)Ep[d]=Xs[d];const Qh=(typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&"darwin"==os.platform())?Ep:Xs;class Es{constructor(n,r){this.match=n,this.match=n,this.handler="string"==typeof r?function kp(d){return function(n,r,a,u){let f=d;if(r[1]){let _=r[0].lastIndexOf(r[1]);f+=r[0].slice(_+r[1].length);let M=(a+=_)-u;M>0&&(f=r[0].slice(_-M,_)+f,a=u)}return n.tr.insertText(f,a,u)}}(r):r}}function Oc(d,n,r,a,u,f){if(d.composing)return!1;let _=d.state,M=_.doc.resolve(n);if(M.parent.type.spec.code)return!1;let O=M.parent.textBetween(Math.max(0,M.parentOffset-500),M.parentOffset,null,"\ufffc")+a;for(let Q=0;Q<u.length;Q++){let de=u[Q].match.exec(O),Ye=de&&u[Q].handler(_,de,n-(de[0].length-a.length),r);if(Ye)return d.dispatch(Ye.setMeta(f,{transform:Ye,from:n,to:r,text:a})),!0}return!1}const Pp=new Es(/--$/,"\u2014"),vs=new Es(/\.\.\.$/,"\u2026"),Hh=[new Es(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"\u201c"),new Es(/"$/,"\u201d"),new Es(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"\u2018"),new Es(/'$/,"\u2019")];function jl(d,n,r=null,a){return new Es(d,(u,f,_,M)=>{let O=r instanceof Function?r(f):r,Q=u.tr.delete(_,M),Ye=Q.doc.resolve(_).blockRange(),ut=Ye&&fa(Ye,n,O);if(!ut)return null;Q.wrap(Ye,ut);
1let Tt=Q.doc.resolve(_-1).nodeBefore;return Tt&&Tt.type==n&&yt(Q.doc,_-1)&&(!a||a(f,Tt))&&Q.join(_-1),Q})}function Xh(d,n,r=null){return new Es(d,(a,u,f,_)=>{let M=a.doc.resolve(f),O=r instanceof Function?r(u):r;return M.node(-1).canReplaceWith(M.index(-1),M.indexAfter(-1),n)?a.tr.delete(f,_).setBlockType(f,f,n,O):null})}const pd=(d,n)=>{const{from:r,$from:a,to:u,empty:f}=d.selection;return f?!!n.isInSet(d.storedMarks||a.marks()):d.doc.rangeHasMark(r,u,n)},Op=(d,n,r={})=>{const{selection:a}=d,{$from:u,to:f}=a,_=((d,n)=>{for(let r=n.depth;r>0;r-=1)if(n.node(r).type===d)return n.node(r).type;return null})(n,u);return Object.entries(r).length&&_?f<=u.end()&&u.parent.hasMarkup(n,r):!!_},mu=d=>{const n=[],{selection:{from:r,to:a}}=d;return d.doc.nodesBetween(r,a,u=>{n.push(u)}),n},fd=(d,n,r)=>{for(const a of n){const{$from:u,$to:f}=a;let _=0===u.depth&&d.type.allowsMarkType(r);if(d.nodesBetween(u.pos,f.pos,M=>!_&&(_=M.inlineContent&&M.type.allowsMarkType(r),!0)),_)return!0}return!1},Bo=(d,n,r)=>new Es(d,(a,u,f,_)=>{const{tr:M}=a,O=f;let Q=_;const[de,,Ye]=u,ut=de.search(/\S/);if(Ye){const Tt=f+de.indexOf(Ye),At=Tt+Ye.length;At<_&&M.delete(At,_),Tt>f&&M.delete(f+ut,Tt),Q=f+Ye.length+ut}return M.addMark(O,Q,n.create(r)),M.removeStoredMark(n),M}),_u=(d,n={})=>(r,a)=>{const{tr:u,selection:f}=r,{empty:_,ranges:M,$from:O,$to:Q}=f;if(_&&f instanceof Wi){const{$cursor:de}=f;if(!de||!fd(r.doc,M,d)||(u.addStoredMark(d.create(n)),!u.storedMarksSet))return!1;a?.(u)}else{if(u.addMark(O.pos,Q.pos,d.create(n)),!u.docChanged)return!1;a?.(u.scrollIntoView())}return!0};for(var Fp=R(345),ks={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ll={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Kh=typeof navigator<"u"&&/Mac/.test(navigator.platform),Fc=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Zr=0;Zr<10;Zr++)ks[48+Zr]=ks[96+Zr]=String(Zr);for(Zr=1;Zr<=24;Zr++)ks[Zr+111]="F"+Zr;for(Zr=65;Zr<=90;Zr++)ks[Zr]=String.fromCharCode(Zr+32),ll[Zr]=String.fromCharCode(Zr);for(var vu in ks)ll.hasOwnProperty(vu)||(ll[vu]=ks[vu]);const Jh=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function yu(d){let a,u,f,_,n=d.split(/-(?!$)/),r=n[n.length-1];"Space"==r&&(r=" ");for(let M=0;M<n.length-1;M++){let O=n[M];if(/^(cmd|meta|m)$/i.test(O))_=!0;else if(/^a(lt)?$/i.test(O))a=!0;else if(/^(c|ctrl|control)$/i.test(O))u=!0;else if(/^s(hift)?$/i.test(O))f=!0;else{if(!/^mod$/i.test(O))throw new Error("Unrecognized modifier name: "+O);Jh?_=!0:u=!0}}return a&&(r="Alt-"+r),u&&(r="Ctrl-"+r),_&&(r="Meta-"+r),f&&(r="Shift-"+r),r}function Ta(d,n,r=!0){return n.altKey&&(d="Alt-"+d),n.ctrlKey&&(d="Ctrl-"+d),n.metaKey&&(d="Meta-"+d),r&&n.shiftKey&&(d="Shift-"+d),d}function cl(d){return new Ro({props:{handleKeyDown:dl(d)}})}function dl(d){let n=function ag(d){let n=Object.create(null);for(let r in d)n[yu(r)]=d[r];return n}(d);return function(r,a){let f,u=function Yh(d){var r=!(Kh&&d.metaKey&&d.shiftKey&&!d.ctrlKey&&!d.altKey||Fc&&d.shiftKey&&d.key&&1==d.key.length||"Unidentified"==d.key)&&d.key||(d.shiftKey?ll:ks)[d.keyCode]||d.key||"Unidentified";return"Esc"==r&&(r="Escape"),"Del"==r&&(r="Delete"),"Left"==r&&(r="ArrowLeft"),"Up"==r&&(r="ArrowUp"),"Right"==r&&(r="ArrowRight"),"Down"==r&&(r="ArrowDown"),r}(a),_=n[Ta(u,a)];if(_&&_(r.state,r.dispatch,r))return!0;if(1==u.length&&" "!=u){if(a.shiftKey){let M=n[Ta(u,a,!1)];if(M&&M(r.state,r.dispatch,r))return!0}if((a.shiftKey||a.altKey||a.metaKey||u.charCodeAt(0)>127)&&(f=ks[a.keyCode])&&f!=u){let M=n[Ta(f,a)];
vendor: 4,804 bytes, line 1
1if(M&&M(r.state,r.dispatch,r))return!0}}return!1}}var eo=function(){};eo.prototype.append=function(n){return n.length?(n=eo.from(n),!this.length&&n||n.length<200&&this.leafAppend(n)||this.length<200&&n.leafPrepend(this)||this.appendInner(n)):this},eo.prototype.prepend=function(n){return n.length?eo.from(n).append(this):this},eo.prototype.appendInner=function(n){return new gd(this,n)},eo.prototype.slice=function(n,r){return void 0===n&&(n=0),void 0===r&&(r=this.length),n>=r?eo.empty:this.sliceInner(Math.max(0,n),Math.min(this.length,r))},eo.prototype.get=function(n){if(!(n<0||n>=this.length))return this.getInner(n)},eo.prototype.forEach=function(n,r,a){void 0===r&&(r=0),void 0===a&&(a=this.length),r<=a?this.forEachInner(n,r,a,0):this.forEachInvertedInner(n,r,a,0)},eo.prototype.map=function(n,r,a){void 0===r&&(r=0),void 0===a&&(a=this.length);var u=[];return this.forEach(function(f,_){return u.push(n(f,_))},r,a),u},eo.from=function(n){return n instanceof eo?n:n&&n.length?new Gl(n):eo.empty};var Gl=function(d){function n(a){d.call(this),this.values=a}d&&(n.__proto__=d),(n.prototype=Object.create(d&&d.prototype)).constructor=n;var r={length:{configurable:!0},depth:{configurable:!0}};return n.prototype.flatten=function(){return this.values},n.prototype.sliceInner=function(u,f){return 0==u&&f==this.length?this:new n(this.values.slice(u,f))},n.prototype.getInner=function(u){return this.values[u]},n.prototype.forEachInner=function(u,f,_,M){for(var O=f;O<_;O++)if(!1===u(this.values[O],M+O))return!1},n.prototype.forEachInvertedInner=function(u,f,_,M){for(var O=f-1;O>=_;O--)if(!1===u(this.values[O],M+O))return!1},n.prototype.leafAppend=function(u){if(this.length+u.length<=200)return new n(this.values.concat(u.flatten()))},n.prototype.leafPrepend=function(u){if(this.length+u.length<=200)return new n(u.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(n.prototype,r),n}(eo);eo.empty=new Gl([]);var gd=function(d){function n(r,a){d.call(this),this.left=r,this.right=a,this.length=r.length+a.length,this.depth=Math.max(r.depth,a.depth)+1}return d&&(n.__proto__=d),(n.prototype=Object.create(d&&d.prototype)).constructor=n,n.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},n.prototype.getInner=function(a){return a<this.left.length?this.left.get(a):this.right.get(a-this.left.length)},n.prototype.forEachInner=function(a,u,f,_){var M=this.left.length;if(u<M&&!1===this.left.forEachInner(a,u,Math.min(f,M),_)||f>M&&!1===this.right.forEachInner(a,Math.max(u-M,0),Math.min(this.length,f)-M,_+M))return!1},n.prototype.forEachInvertedInner=function(a,u,f,_){var M=this.left.length;if(u>M&&!1===this.right.forEachInvertedInner(a,u-M,Math.max(f,M)-M,_+M)||f<M&&!1===this.left.forEachInvertedInner(a,Math.min(u,M),f,_))return!1},n.prototype.sliceInner=function(a,u){if(0==a&&u==this.length)return this;var f=this.left.length;return u<=f?this.left.slice(a,u):a>=f?this.right.slice(a-f,u-f):this.left.slice(a,f).append(this.right.slice(0,u-f))},n.prototype.leafAppend=function(a){var u=this.right.leafAppend(a);if(u)return new n(this.left,u)},n.prototype.leafPrepend=function(a){var u=this.left.leafPrepend(a);if(u)return new n(u,this.right)},n.prototype.appendInner=function(a){return this.left.depth>=Math.max(this.right.depth,a.depth)+1?new n(this.left,new n(this.right,a)):new n(this,a)},n}(eo);const ul=eo;class ss{constructor(n,r){this.items=n,this.eventCount=r}popEvent(n,r){if(0==this.eventCount)return null;let u,f,a=this.items.length;for(;;a--)if(this.items.get(a-1).selection){--a;break}r&&(u=this.remapping(a,this.items.length),f=u.maps.length);let M,O,_=n.tr,Q=[],de=[];return this.items.forEach((Ye,ut)=>{if(!Ye.step)return u||(u=this.remapping(a,ut+1),f=u.maps.length),f--,void de.push(Ye);if(u){de.push(new Is(Ye.map));let At,Tt=Ye.step.map(u.slice(f));Tt&&_.maybeStep(Tt).doc&&(At=_.mapping.maps[_.mapping.maps.length-1],Q.push(new Is(At,void 0,void 0,Q.length+de.length))),f--,At&&u.appendMap(At,f)}else _.maybeStep(Ye.step);return Ye.selection?(M=u?Ye.selection.map(u.slice(f)):Ye.selection,O=new ss(this.items.slice(0,a).append(de.reverse().concat(Q)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:O,transform:_,selection:M}}addTransform(n,r,a,u){let f=[],_=this.eventCount,M=this.items,O=!u&&M.length?M.get(M.length-1):null;for(let de=0;de<n.steps.length;de++){let Tt,Ye=n.steps[de].invert(n.docs[de]),ut=new Is(n.mapping.maps[de],Ye,r);(Tt=O&&O.merge(ut))&&(ut=Tt,de?f.pop():M=M.slice(0,M.length-1)),f.push(ut),r&&(_++,r=void 0),u||(O=ut)}let Q=_-a.depth;return Q>Lc&&(M=function Nc(d,n){let r;return d.forEach((a,u)=>{if(a.selection&&0==n--)return r=u,!1}),d.slice(r)}(M,Q),_-=Q),new ss(M.append(f),_)}remapping(n,r){let a=new Vr;
1return this.items.forEach((u,f)=>{a.appendMap(u.map,null!=u.mirrorOffset&&f-u.mirrorOffset>=n?a.maps.length-u.mirrorOffset:void 0)},n,r),a}addMaps(n){return 0==this.eventCount?this:new ss(this.items.append(n.map(r=>new Is(r))),this.eventCount)}rebased(n,r){if(!this.eventCount)return this;let a=[],u=Math.max(0,this.items.length-r),f=n.mapping,_=n.steps.length,M=this.eventCount;this.items.forEach(ut=>{ut.selection&&M--},u);let O=r;this.items.forEach(ut=>{let Tt=f.getMirror(--O);if(null==Tt)return;_=Math.min(_,Tt);let At=f.maps[Tt];if(ut.step){let nn=n.steps[Tt].invert(n.docs[Tt]),En=ut.selection&&ut.selection.map(f.slice(O+1,Tt));En&&M++,a.push(new Is(At,nn,En))}else a.push(new Is(At))},u);let Q=[];for(let ut=r;ut<_;ut++)Q.push(new Is(f.maps[ut]));let de=this.items.slice(0,u).append(Q).append(a),Ye=new ss(de,M);return Ye.emptyItemCount()>500&&(Ye=Ye.compress(this.items.length-a.length)),Ye}emptyItemCount(){let n=0;return this.items.forEach(r=>{r.step||n++}),n}compress(n=this.items.length){let r=this.remapping(0,n),a=r.maps.length,u=[],f=0;return this.items.forEach((_,M)=>{if(M>=n)u.push(_),_.selection&&f++;else if(_.step){let O=_.step.map(r.slice(a)),Q=O&&O.getMap();if(a--,Q&&r.appendMap(Q,a),O){let de=_.selection&&_.selection.map(r.slice(a));de&&f++;let ut,Ye=new Is(Q.invert(),O,de),Tt=u.length-1;(ut=u.length&&u[Tt].merge(Ye))?u[Tt]=ut:u.push(Ye)}}else _.map&&a--},this.items.length,0),new ss(ul.from(u.reverse()),f)}}ss.empty=new ss(ul.empty,0);class Is{constructor(n,r,a,u){this.map=n,this.step=r,this.selection=a,this.mirrorOffset=u}merge(n){if(this.step&&n.step&&!n.selection){let r=n.step.merge(this.step);if(r)return new Is(r.getMap().invert(),r,this.selection)}}}class Ts{constructor(n,r,a,u,f){this.done=n,this.undone=r,this.prevRanges=a,this.prevTime=u,this.prevComposition=f}}const Lc=20;function ef(d){let n=[];return d.forEach((r,a,u,f)=>n.push(u,f)),n}function bu(d,n){if(!d)return null;let r=[];for(let a=0;a<d.length;a+=2){let u=n.map(d[a],1),f=n.map(d[a+1],-1);u<=f&&r.push(u,f)}return r}function md(d,n,r,a){let u=b(n),f=s.get(n).spec.config,_=(a?d.undone:d.done).popEvent(n,u);if(!_)return;let M=_.selection.resolve(_.transform.doc),O=(a?d.done:d.undone).addTransform(_.transform,n.selection.getBookmark(),f,u),Q=new Ts(a?O:_.remaining,a?_.remaining:O,null,0,-1);r(_.transform.setSelection(M).setMeta(s,{redo:a,historyState:Q}).scrollIntoView())}let _d=!1,Np=null;function b(d){let n=d.plugins;if(Np!=n){_d=!1,Np=n;for(let r=0;r<n.length;r++)if(n[r].spec.historyPreserveItems){_d=!0;break}}return _d}const s=new ho("history"),y=new ho("closeHistory");const I=(d,n)=>{let r=s.getState(d);return!(!r||0==r.done.eventCount||(n&&md(r,d,n,!1),0))},Le=(d,n)=>{let r=s.getState(d);return!(!r||0==r.undone.eventCount||(n&&md(r,d,n,!0),0))},Wt=["imgEl"],wn=d=>({"NgxEditor__Resizer--Active":d});function Dn(d,n){if(1&d){const r=p.RV6();p.j41(0,"span",4)(1,"span",5),p.bIt("mousedown",function(u){p.eBV(r);const f=p.XpG();return p.Njj(f.startResizing(u,"left"))}),p.k0s(),p.j41(2,"span",6),p.bIt("mousedown",function(u){p.eBV(r);const f=p.XpG();return p.Njj(f.startResizing(u,"right"))}),p.k0s(),p.j41(3,"span",7),p.bIt("mousedown",function(u){p.eBV(r);const f=p.XpG();return p.Njj(f.startResizing(u,"left"))}),p.k0s(),p.j41(4,"span",8),p.bIt("mousedown",function(u){p.eBV(r);const f=p.XpG();return p.Njj(f.startResizing(u,"right"))}),p.k0s()()}}const ji=["ngxEditor"],pi=["*"];function Gn(d,n){if(1&d&&(p.j41(0,"div",12),p.EFF(1),p.k0s()),2&d){const r=p.XpG(2);p.R7$(),p.SpI(" ",(null==r.href.errors?null:r.href.errors.pattern)&&"Please enter valid url."," ")}}function ii(d,n){if(1&d&&(p.j41(0,"div",12),p.EFF(1),p.k0s()),2&d){const r=p.XpG(2);p.R7$(),p.SpI(" ",(null==r.text.errors?null:r.text.errors.required)&&"This is required"," ")}}function Er(d,n){if(1&d){const r=p.RV6();p.j41(0,"div",2)(1,"form",3),p.bIt("ngSubmit",function(u){p.eBV(r);const f=p.XpG();return p.Njj(f.insertLink(u))}),p.j41(2,"div",4)(3,"div",5)(4,"label",6),p.EFF(5),p.nI1(6,"async"),p.k0s(),p.nrm(7,"input",7),p.DNE(8,Gn,2,1,"div",8),p.k0s()(),p.j41(9,"div",4)(10,"div",5)(11,"label",6),p.EFF(12),p.nI1(13,"async"),p.k0s(),p.nrm(14,"input",9),p.DNE(15,ii,2,1,"div",8),p.k0s()(),p.j41(16,"div",4)(17,"div",5)(18,"label"),p.nrm(19,"input",10),p.EFF(20),p.nI1(21,"async"),p.k0s()()(),p.j41(22,"button",11),p.EFF(23),p.nI1(24,"async"),p.k0s()()()}if(2&d){const r=p.XpG();p.R7$(),p.Y8G("formGroup",r.form),p.R7$(4),p.JRh(p.bMT(6,8,r.getLabel("url"))),p.R7$(3),p.Y8G("ngIf",r.href.touched&&r.href.invalid),p.R7$(4),p.JRh(p.bMT(13,10,r.getLabel("text"))),p.R7$(3),p.Y8G("ngIf",r.text.touched&&r.text.invali
1d),p.R7$(5),p.SpI(" ",p.bMT(21,12,r.getLabel("openInNewTab"))," "),p.R7$(2),p.Y8G("disabled",!r.form.valid),p.R7$(),p.JRh(p.bMT(24,14,r.getLabel("insert")))}}const Hr=(d,n)=>({"NgxEditor__Dropdown--Active":d,"NgxEditor--Disabled":n});function to(d,n){if(1&d){const r=p.RV6();p.j41(0,"div",4),p.bIt("mousedown",function(u){const f=p.eBV(r).$implicit,_=p.XpG(2);return p.Njj(_.onClick(u,f))}),p.EFF(1),p.nI1(2,"async"),p.k0s()}if(2&d){const r=n.$implicit,a=p.XpG(2);p.Y8G("ngClass",p.l_i(4,Hr,r===a.activeItem,a.disabledItems.includes(r))),p.R7$(),p.SpI(" ",p.bMT(2,2,a.getName(r))," ")}}function co(d,n){if(1&d&&(p.j41(0,"div",2),p.DNE(1,to,3,7,"div",3),p.k0s()),2&d){const r=p.XpG();p.R7$(),p.Y8G("ngForOf",r.items)("ngForTrackBy",r.trackByIndex)}}function no(d,n){if(1&d&&(p.j41(0,"div",12),p.EFF(1),p.k0s()),2&d){const r=p.XpG(2);p.R7$(),p.SpI(" ",(null==r.src.errors?null:r.src.errors.pattern)&&"Please enter valid url."," ")}}function Ss(d,n){if(1&d){const r=p.RV6();p.j41(0,"div",2)(1,"form",3),p.bIt("ngSubmit",function(u){p.eBV(r);const f=p.XpG();return p.Njj(f.insertLink(u))}),p.j41(2,"div",4)(3,"div",5)(4,"label",6),p.EFF(5),p.nI1(6,"async"),p.k0s(),p.nrm(7,"input",7),p.DNE(8,no,2,1,"div",8),p.k0s()(),p.j41(9,"div",4)(10,"div",5)(11,"label",6),p.EFF(12),p.nI1(13,"async"),p.k0s(),p.nrm(14,"input",9),p.k0s()(),p.j41(15,"div",4)(16,"div",5)(17,"label",6),p.EFF(18),p.nI1(19,"async"),p.k0s(),p.nrm(20,"input",10),p.k0s()(),p.j41(21,"button",11),p.EFF(22),p.nI1(23,"async"),p.k0s()()()}if(2&d){const r=p.XpG();p.R7$(),p.Y8G("formGroup",r.form),p.R7$(4),p.JRh(p.bMT(6,7,r.getLabel("url"))),p.R7$(3),p.Y8G("ngIf",r.src.touched&&r.src.invalid),p.R7$(4),p.JRh(p.bMT(13,9,r.getLabel("altText"))),p.R7$(6),p.JRh(p.bMT(19,11,r.getLabel("title"))),p.R7$(3),p.Y8G("disabled",!r.form.valid||!r.form.dirty),p.R7$(),p.JRh(p.bMT(23,13,r.getLabel("insert")))}}const qs=(d,n)=>({backgroundColor:d,color:n}),Vo=d=>({"NgxEditor__Color--Active":d});function as(d,n){if(1&d){const r=p.RV6();p.j41(0,"button",7),p.bIt("mousedown",function(u){const f=p.eBV(r).$implicit,_=p.XpG(3);return p.Njj(_.onColorSelect(u,f))}),p.k0s()}if(2&d){const r=n.$implicit,a=p.XpG(3);p.Y8G("ngStyle",p.l_i(3,qs,r,a.getContrastYIQ(r)))("title",r)("ngClass",p.eq3(6,Vo,a.activeColors.includes(r)))}}function Ks(d,n){if(1&d&&(p.j41(0,"div",5),p.DNE(1,as,1,8,"button",6),p.k0s()),2&d){const r=n.$implicit,a=p.XpG(2);p.R7$(),p.Y8G("ngForOf",r)("ngForTrackBy",a.trackByIndex)}}function Sa(d,n){if(1&d){const r=p.RV6();p.j41(0,"div",2),p.DNE(1,Ks,2,2,"div",3),p.j41(2,"button",4),p.bIt("mousedown",function(u){p.eBV(r);const f=p.XpG();return p.Njj(f.remove(u))}),p.EFF(3),p.nI1(4,"async"),p.k0s()()}if(2&d){const r=p.XpG();p.R7$(),p.Y8G("ngForOf",r.presets)("ngForTrackBy",r.trackByIndex),p.R7$(),p.Y8G("disabled",!r.isActive),p.R7$(),p.SpI(" ",p.bMT(4,4,r.getLabel("remove"))," ")}}const xu=(d,n)=>({"NgxEditor--Disabled":d,"NgxEditor__MenuBar--Reverse":n});function Pa(d,n){if(1&d&&p.nrm(0,"ngx-toggle-command",7),2&d){const r=p.XpG().$implicit,a=p.XpG(2);p.HbH(a.iconContainerClass),p.Y8G("toolbarItem",r)}}function vd(d,n){if(1&d&&p.nrm(0,"ngx-insert-command",7),2&d){const r=p.XpG().$implicit,a=p.XpG(2);p.HbH(a.iconContainerClass),p.Y8G("toolbarItem",r)}}function Oa(d,n){if(1&d&&p.nrm(0,"ngx-link"),2&d){const r=p.XpG(3);p.HbH(r.iconContainerClass)}}function Lp(d,n){if(1&d&&p.nrm(0,"ngx-image"),2&d){const r=p.XpG(3);p.HbH(r.iconContainerClass)}}function Rn(d,n){if(1&d&&p.nrm(0,"ngx-dropdown",9),2&d){const r=n.$implicit,a=p.XpG(4);p.HbH(a.dropdownContainerClass),p.Y8G("group",r.key)("items",r.value)}}function Kn(d,n){if(1&d&&(p.qex(0),p.DNE(1,Rn,1,4,"ngx-dropdown",8),p.nI1(2,"keyvalue"),p.bVm()),2&d){const r=p.XpG().$implicit,a=p.XpG(2);p.R7$(),p.Y8G("ngForOf",p.bMT(2,2,a.getDropdownItems(r)))("ngForTrackBy",a.trackByIndex)}}function oi(d,n){if(1&d&&p.nrm(0,"ngx-color-picker",10),2&d){const r=p.XpG(3);p.HbH(r.iconContainerClass),p.Y8G("presets",r.presets)}}function Ki(d,n){if(1&d&&p.nrm(0,"ngx-color-picker",11),2&d){const r=p.XpG(3);p.HbH(r.iconContainerClass),p.Y8G("presets",r.presets)}}function br(d,n){if(1&d&&p.nrm(0,"div"),2&d){const r=p.XpG(3);p.HbH(r.seperatorClass)}}function Go(d,n){if(1&d&&(p.qex(0),p.DNE(1,Pa,1,3,"ngx-toggle-command",3)(2,vd,1,3,"ngx-insert-command",3)(3,Oa,1,2,"ngx-link",4)(4,Lp,1,2,"ngx-image",4)(5,Kn,3,4,"ng-container",2)(6,oi,1,3,"ngx-color-picker",5)(7,Ki,1,3,"ngx-color-picker",6)(8,br,1,2,"div",4),p.bVm()),2&d){const r=n.$implicit,a=n.last,u=p.XpG().last,f=p.XpG();p.R7$(),p.Y8G("ngIf",f.toggleCommands.includes(r)),p.R7$(),p.Y8G("ngIf",f.insertCommands.includes(r)),p.R7$(),p.Y8G("ngIf","link"===r),p.R7$(),p.Y8G("ngIf","image"===r),p.R7$(),p.Y8G("ngIf",f.isDropDown(r)),p.R7$(),p.Y8G("ngIf","text_color"===r),p.R7$(),p.Y8G("ngIf","background_color"===r),p.R7$(),p.Y8G("ngIf",a&&!u)}}function ls(d,n){if(1&d&&(p.qex(0),p.DNE(1,Go,9,8,"ng-container",1),p.bVm()),2&d){const r=n.$implicit,a=p.XpG();p.R7$(),p.Y8G("ngForOf",r)("ngForTrackBy",a.trackByIndex)}}function Ra(d,n){if(1&d&&(p.qex(0),p.eu8(1,12),p.bVm()),2&d){const r=p.XpG();p.R7$(),p.Y8G("ngTemplateOutlet",r.customMenuRef)}}const yd=(d=!0)=>new Ro({key:new ho("editable"),state:{init:()=>d,apply:(n,r)=>n.getMeta("UPDATE_EDITABLE")??r}
1,props:{editable(n){return this.getState(n)},attributes(n){return this.getState(n)?null:{class:"NgxEditor__Content--Disabled"}}}}),jm=d=>new Ro({key:new ho("placeholder"),state:{init:()=>d??"",apply:(n,r)=>n.getMeta("UPDATE_PLACEHOLDER")??r},props:{decorations(n){const{doc:r}=n,{textContent:a,childCount:u}=r,f=this.getState(n);if(!f||u>1)return Nr.empty;const _=[];return r.descendants((O,Q)=>{if(O.type.isBlock&&0===O.childCount&&0===a.length){const ut=ko.node(Q,Q+O.nodeSize,{class:"NgxEditor__Placeholder","data-placeholder":f,"data-align":O.attrs.align??null});_.push(ut)}return!1}),Nr.create(r,_)}}});let cg=(()=>{class d{constructor(){this.alt="",this.title="",this.outerWidth="",this.selected=!1,this.imageResize=new p.bkB}startResizing(r,a){r.preventDefault(),this.resizeImage(r,a)}resizeImage(r,a){const u=r.pageX,f=this.imgEl.nativeElement.clientWidth,_="left"===a,{width:M}=window.getComputedStyle(this.view.dom),O=parseInt(M,10),Q=Ye=>{const Tt=Ye.pageX-u,At=_?f-Tt:f+Tt;At>O||At<20||(this.outerWidth=`${At}px`)},de=Ye=>{Ye.preventDefault(),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",de),this.imageResize.emit()};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",de)}static#e=this.\u0275fac=function(a){return new(a||d)};static#t=this.\u0275cmp=p.VBU({type:d,selectors:[["ngx-image-view"]],viewQuery:function(a,u){if(1&a&&p.GBs(Wt,7),2&a){let f;p.mGM(f=p.lsd())&&(u.imgEl=f.first)}},inputs:{src:"src",alt:"alt",title:"title",outerWidth:"outerWidth",selected:"selected",view:"view"},outputs:{imageResize:"imageResize"},decls:4,vars:9,consts:[["imgEl",""],[1,"NgxEditor__ImageWrapper",3,"ngClass"],["class","NgxEditor__ResizeHandle",4,"ngIf"],[3,"src","alt","title"],[1,"NgxEditor__ResizeHandle"],[1,"NgxEditor__ResizeHandle--TL",3,"mousedown"],[1,"NgxEditor__ResizeHandle--TR",3,"mousedown"],[1,"NgxEditor__ResizeHandle--BL",3,"mousedown"],[1,"NgxEditor__ResizeHandle--BR",3,"mousedown"]],template:function(a,u){1&a&&(p.j41(0,"span",1),p.DNE(1,Dn,5,0,"span",2),p.nrm(2,"img",3,0),p.k0s()),2&a&&(p.xc7("width",u.outerWidth),p.Y8G("ngClass",p.eq3(7,wn,u.selected)),p.R7$(),p.Y8G("ngIf",u.selected),p.R7$(),p.Y8G("src",u.src,p.B4B)("alt",u.alt)("title",u.title))},dependencies:[Ar.YU,Ar.bT],styles:["*[_ngcontent-%COMP%], *[_ngcontent-%COMP%]:before, *[_ngcontent-%COMP%]:after{box-sizing:border-box}img[_ngcontent-%COMP%]{width:100%;height:100%}.NgxEditor__ImageWrapper[_ngcontent-%COMP%]{position:relative;display:inline-block;line-height:0;padding:2px}.NgxEditor__ImageWrapper.NgxEditor__Resizer--Active[_ngcontent-%COMP%]{padding:1px;border:1px solid #1a73e8}.NgxEditor__ImageWrapper[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%}.NgxEditor__ImageWrapper[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle--TL[_ngcontent-%COMP%], .NgxEditor__ImageWrapper[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle--BL[_ngcontent-%COMP%], .NgxEditor__ImageWrapper[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle--TR[_ngcontent-%COMP%], .NgxEditor__ImageWrapper[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle--BR[_ngcontent-%COMP%]{position:absolute;width:7px;height:7px;background-color:#1a73e8;border:1px solid white}.NgxEditor__ImageWrapper[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle--BR[_ngcontent-%COMP%]{bottom:-5px;right:-5px;cursor:se-resize}.NgxEditor__ImageWrapper[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle--TR[_ngcontent-%COMP%]{top:-5px;right:-5px;cursor:ne-resize}.NgxEditor__ImageWrapper[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle--TL[_ngcontent-%COMP%]{top:-5px;left:-5px;cursor:nw-resize}.NgxEditor__ImageWrapper[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle[_ngcontent-%COMP%]   .NgxEditor__ResizeHandle--BL[_ngcontent-%COMP%]{bottom:-5px;left:-5px;cursor:sw-resize}"]})}return d})();class dg{constructor(n,r,a,u){this.updating=!1,this.handleResize=()=>{if(this.updating)return;const{state:f,dispatch:_}=this.view,{tr:M}=f,O=M.setNodeMarkup(this.getPos(),void 0,{...this.node.attrs,width:this.imageComponentRef.instance.outerWidth}),Q=O.doc.resolve(this.getPos()),de=new Hn(Q);O.setSelection(de),_(O)},this.applicationRef=u.get(p.o8S),this.imageComponentRef=(0,p.a0P)(cg,{environmentInjector:this.applicationRef.injector}),this.applicationRef.attachView(this.imageComponentRef.hostView),this.setNodeAttributes(n.attrs),this.imageComponentRef.instance.view=r,this.dom=this.imageComponentRef.location.nativeElement,this.view=r,this.node=n,this.getPos=a,this.resizeSubscription=this.imageComponentRef.instance.imageResize.subscribe(()=>{this.handleResize()})}computeChanges(n,r){return JSON.stringify(n)===JSON.stringify(r)}setNodeAttributes(n){this.imageComponentRef.instance.src=n.src,this.imageComponentRef.instance.alt=n.alt,this.imageComponentRef.instance.title=n.title,this.imageComponentRef.instance.outerWidth=n.width}update(n){return n.type===this.node.type&&(this.node=n,this.computeChanges(this.node.attrs,n.attrs)&&(this.updating=!0,this.setNodeAttributes(n.attrs),this.updating=!1),!0)}ignoreMutation(){return!0}selectNode(){this.imageComponentRef.instance.selected=!0}deselectNode(){this.imageComponentRef.instance.selected=!1}destroy(){this.resizeSubscription.unsubscribe(),this.applicationRef.detachView(this.imageComponentRef.hostView)}}
1const c1=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/,Bm=d=>{const n=[];return d.forEach(r=>{if(r.isText){const a=r.text;let u=0;const f=c1.exec(a);if(f){const _=f.index,M=_+f[0].length,{link:O}=r.type.schema.marks;_>0&&n.push(r.cut(u,_));const Q=a.slice(_,M);n.push(r.cut(_,M).mark(O.create({href:Q}).addToSet(r.marks))),u=M}u<a.length&&n.push(r.cut(u))}else n.push(r.copy(Bm(r.content)))}),we.fromArray(n)},Vp=d=>"string"==typeof d,Vm=d=>window.trustedTypes?.isHTML(d)??!1,Gm=d=>Vp(d)||Vm(d),rf={type:"doc",content:[{type:"paragraph"}]},Du=(d,n)=>{if(!d)return n.nodeFromJSON(rf);if(!Gm(d))return n.nodeFromJSON(d);const r=((d,n)=>{const r=n??Ea,a=document.createElement("div");return a.innerHTML=d,Un.fromSchema(r).parse(a).toJSON()})(d,n);return n.nodeFromJSON(r)};let $m=(()=>{class d{constructor(r,a,u){this.renderer=r,this.injector=a,this.elementRef=u,this.placeholder="Type Here...",this.focusOut=new p.bkB,this.focusIn=new p.bkB,this.unsubscribe=new N.B,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){!this.outputFormat&&Gm(r)&&(this.outputFormat="html"),this.editor.setContent(r??rf)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.setMeta("UPDATE_EDITABLE",!r),this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}handleChange(r){if("html"!==this.outputFormat)this.onChange(r);else{const a=((d,n)=>{const r=this.editor.schema??Ea,a=r.nodeFromJSON(d),u=ce.fromSchema(r).serializeFragment(a.content),f=document.createElement("div");return f.appendChild(u),f.innerHTML})(r);this.onChange(a)}}setMeta(r,a){const{dispatch:u,state:{tr:f}}=this.editor.view;u(f.setMeta(r,a))}setPlaceholder(r){this.setMeta("UPDATE_PLACEHOLDER",r)}registerPlugins(){this.editor.registerPlugin(yd()),this.editor.registerPlugin(jm(this.placeholder)),this.editor.registerPlugin(((d={})=>new Ro({key:new ho("attributes"),props:{attributes:d}}))({class:"NgxEditor__Content"})),this.editor.registerPlugin((d=>new Ro({key:new ho("focus"),props:{handleDOMEvents:{focus:()=>(d(),!1)}}}))(()=>{this.focusIn.emit()})),this.editor.registerPlugin((d=>new Ro({key:new ho("blur"),props:{handleDOMEvents:{blur:()=>(d(),!1)}}}))(()=>{this.focusOut.emit(),this.onTouched()})),this.editor.features.resizeImage&&this.editor.registerPlugin((d=>new Ro({key:new ho("image-resize"),props:{nodeViews:{image:(n,r,a)=>new dg(n,r,a,d)}}}))(this.injector)),this.editor.features.linkOnPaste&&this.editor.registerPlugin(new Ro({key:new ho("linkify"),props:{transformPasted:d=>new je(Bm(d.content),d.openStart,d.openEnd)}}))}ngOnInit(){if(!this.editor)throw new K("Required editor instance for initializing editor component");this.registerPlugins(),this.renderer.appendChild(this.ngxEditor.nativeElement,this.editor.view.dom),this.editor.valueChanges.pipe((0,l.Q)(this.unsubscribe)).subscribe(r=>{this.handleChange(r)})}ngOnChanges(r){r.placeholder&&!r.placeholder.isFirstChange()&&this.setPlaceholder(r.placeholder.currentValue)}ngOnDestroy(){this.unsubscribe.next(),this.unsubscribe.complete()}static#e=this.\u0275fac=function(a){return new(a||d)(p.rXU(p.sFG),p.rXU(p.zZn),p.rXU(p.aKT))};static#t=this.\u0275cmp=p.VBU({type:d,selectors:[["ngx-editor"]],viewQuery:function(a,u){if(1&a&&p.GBs(ji,7),2&a){let f;p.mGM(f=p.lsd())&&(u.ngxEditor=f.first)}},inputs:{editor:"editor",outputFormat:"outputFormat",placeholder:"placeholder"},outputs:{focusOut:"focusOut",focusIn:"focusIn"},features:[p.Jv_([{provide:w.kq,useExisting:(0,p.Rfq)(()=>d),multi:!0}]),p.OA$],ngContentSelectors:pi,decls:3,vars:0,consts:[["ngxEditor",""],[1,"NgxEditor"]],template:function(a,u){1&a&&(p.NAR(),p.j41(0,"div",1,0),p.SdG(2),p.k0s())},styles:['.NgxEditor{background:white;color:#000;background-clip:padding-box;border-radius:4px;border:1px solid rgba(0,0,0,.2);position:relative}.NgxEditor--Disabled{opacity:.5;pointer-events:none}.NgxEditor__Placeholder:before{color:#6c757d;opacity:1;-webkit-user-select:none;user-select:none;position:absolute;cursor:text;content:attr(data-placeholder)}.NgxEditor__Placeholder[data-align=right]:before{position:relative}.NgxEditor__Content{padding:8px;white-space:pre-wrap;outline:none;font-variant-ligatures:none;font-feature-settings:"liga" 0}.NgxEditor__Content p{margin:0 0 10px}.NgxEditor__Content blockquote{padding-left:16px;border-left:3px solid #ddd;margin-left:0;margin-right:0}.NgxEditor__Content--Disabled{-webkit-user-select:none;user-select:none;pointer-events:none}.NgxEditor__Wrapper{border:1px solid rgba(0,0,0,.4);border-radius:4px}.NgxEditor__Wrapper .NgxEditor__MenuBar{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:1px solid rgba(0,0,0,.2)}.NgxEditor__Wrapper .NgxEditor{border-top-left-radius:0;border-top-right-radius:0;border:none}.NgxEditor__MenuBar{display:flex;flex-wrap:wrap;padding:3px;
1cursor:default;background-color:#fff}.NgxEditor__MenuItem{border-radius:2px;display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0}.NgxEditor__MenuItem:hover{background-color:#f1f1f1}.NgxEditor__MenuItem.NgxEditor__MenuItem--Icon{height:30px;width:30px;transition:.3s ease-in-out}.NgxEditor__MenuItem.NgxEditor__MenuItem--Icon+.NgxEditor__MenuItem--Icon{margin-left:2px}.NgxEditor__MenuItem .NgxEditor__MenuItem--IconContainer{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.NgxEditor__MenuItem.NgxEditor__MenuItem--Text{padding:0 5px}.NgxEditor__MenuItem.NgxEditor__MenuItem--Active,.NgxEditor__MenuItem .NgxEditor__MenuItem--Active{background-color:#e8f0fe;color:#1a73e8}.NgxEditor__Dropdown{min-width:64px;position:relative;display:flex;align-items:center;flex-shrink:0}.NgxEditor__Dropdown:hover{background-color:#f1f1f1}.NgxEditor__Dropdown .NgxEditor__Dropdown--Text{display:flex;align-items:center;justify-content:center;padding:0 5px;height:100%;width:100%}.NgxEditor__Dropdown .NgxEditor__Dropdown--Text:after{display:inline-block;content:"";margin-left:24px;vertical-align:4px;border-top:4px solid;border-right:4px solid transparent;border-bottom:0;border-left:4px solid transparent}.NgxEditor__Dropdown .NgxEditor__Dropdown--DropdownMenu{position:absolute;left:0;box-shadow:#3c404326 0 2px 6px 2px;border-radius:4px;background-color:#fff;z-index:10;width:100%;top:32px}.NgxEditor__Dropdown .NgxEditor__Dropdown--Item{padding:8px;white-space:nowrap;color:inherit}.NgxEditor__Dropdown .NgxEditor__Dropdown--Item:hover{background-color:#ececec}.NgxEditor__Dropdown .NgxEditor__Dropdown--Selected,.NgxEditor__Dropdown .NgxEditor__Dropdown--Open{color:#1a73e8;background-color:#e8f0fe}.NgxEditor__Dropdown .NgxEditor__Dropdown--Active{background-color:#f1f1f1}.NgxEditor__Dropdown .NgxEditor__Dropdown--Active:hover{background-color:#e7e7e7}.NgxEditor__MenuBar--Reverse .NgxEditor__Dropdown--DropdownMenu{top:unset;bottom:32px}.NgxEditor__MenuBar--Reverse .NgxEditor__Dropdown--Text:after{transform:rotate(180deg)}.NgxEditor__MenuBar--Reverse .NgxEditor__Popup{top:unset;bottom:32px}.NgxEditor__Popup{position:absolute;top:32px;box-shadow:#3c404326 0 2px 6px 2px;border-radius:4px;background-color:#fff;z-index:10;min-width:192px;padding:8px}.NgxEditor__Popup .NgxEditor__Popup--FormGroup{margin-bottom:8px}.NgxEditor__Popup .NgxEditor__Popup--FormGroup label{margin-bottom:3px}.NgxEditor__Popup .NgxEditor__Popup--FormGroup input[type=text],.NgxEditor__Popup .NgxEditor__Popup--FormGroup input[type=url]{padding:2px 4px}.NgxEditor__Popup .NgxEditor__Popup--Col{display:flex;flex-direction:column;position:relative}.NgxEditor__Popup .NgxEditor__Popup--Label{font-size:85%}.NgxEditor__Seperator{border-left:1px solid #ccc;margin:0 5px}.NgxEditor__HelpText{font-size:80%}.NgxEditor__HelpText.NgxEditor__HelpText--Error{color:red}\n'],encapsulation:2})}return d})(),Ul=(()=>{class d{constructor(){this.customMenuRefChange=new N.B}setCustomMenuRef(r){this.customMenuRefChange.next(r)}static#e=this.\u0275fac=function(a){return new(a||d)};static#t=this.\u0275prov=p.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})();class jc{constructor(n){this.name=n}apply(){return(n,r)=>{const{schema:a}=n,u=a.marks[this.name];return!!u&&_u(u)(n,r)}}toggle(){return(n,r)=>{const{schema:a}=n,u=a.marks[this.name];return!!u&&ka(u)(n,r)}}isActive(n){const{schema:r}=n,a=r.marks[this.name];return!!a&&pd(n,a)}canExecute(n){return this.toggle()(n)}}class Gp{constructor(n=!1){this.isBulletList=!1,this.isBulletList=n}getType(n){return this.isBulletList?n.nodes.bullet_list:n.nodes.ordered_list}toggle(){return(n,r)=>{const{schema:a}=n,u=this.getType(a);return!!u&&(this.isActive(n)?Ds(a.nodes.list_item)(n,r):function Oh(d,n=null){return function(r,a){let{$from:u,$to:f}=r.selection,_=u.blockRange(f),M=!1,O=_;if(!_)return!1;if(_.depth>=2&&u.node(_.depth-1).type.compatibleContent(d)&&0==_.startIndex){if(0==u.index(_.depth-1))return!1;let de=r.doc.resolve(_.start-2);O=new ze(de,de,_.depth),_.endIndex<_.parent.childCount&&(_=new ze(u,r.doc.resolve(f.end(_.depth)),_.depth)),M=!0}
1let Q=fa(O,d,n,_);return!!Q&&(a&&a(function Ap(d,n,r,a,u){let f=we.empty;for(let de=r.length-1;de>=0;de--)f=we.from(r[de].type.create(r[de].attrs,f));d.step(new Bi(n.start-(a?2:0),n.end,n.start,n.end,new je(f,0,0),r.length,!0));let _=0;for(let de=0;de<r.length;de++)r[de].type==u&&(_=de+1);let M=r.length-_,O=n.start+r.length-(a?2:0),Q=n.parent;for(let de=n.startIndex,Ye=n.endIndex,ut=!0;de<Ye;de++,ut=!1)!ut&&q(d.doc,O,M)&&(d.split(O,M),O+=2*M),O+=Q.child(de).nodeSize;return d}(r.tr,_,Q,M,d).scrollIntoView()),!0)}}(u)(n,r))}}isActive(n){const{schema:r}=n,a=this.getType(r);return!!a&&Op(n,a)}canExecute(n){return this.toggle()(n)}}class zl{constructor(n){this.level=n}apply(){return(n,r)=>{const{schema:a}=n,u=a.nodes.heading;return!!u&&Ll(u)(n,r)}}toggle(){return(n,r)=>{const{schema:a,selection:u,doc:f}=n,_=a.nodes.heading;if(!_)return!1;const M=u.$from.before(1),Q=f.nodeAt(M)?.attrs??{};return this.isActive(n)?Ll(a.nodes.paragraph,Q)(n,r):Ll(_,{...Q,level:this.level})(n,r)}}isActive(n){const{schema:r}=n,a=mu(n),u=r.nodes.heading;if(!u)return!1;const f=[u,r.nodes.text,r.nodes.blockquote];return!!a.filter(O=>f.includes(O.type)).find(O=>O.attrs.level===this.level)}canExecute(n){return this.toggle()(n)}}class $l{constructor(n){this.align=n}toggle(){return(n,r)=>{const{doc:a,selection:u,tr:f,schema:_}=n,{from:M,to:O}=u;let Q=!1;return a.nodesBetween(M,O,(de,Ye)=>{const ut=de.type;return[_.nodes.paragraph,_.nodes.heading].includes(ut)&&(Q=!0,f.setNodeMarkup(Ye,ut,{...de.attrs,align:this.align})),!0}),!!Q&&(f.docChanged&&r?.(f),!0)}}isActive(n){return!!mu(n).find(u=>u.attrs.align===this.align)}canExecute(n){return this.toggle()(n)}}const hg={strict:!0};let Mu=class{update(n){return(r,a)=>{const{schema:u,selection:f}=r,_=u.marks.link;return!(!_||f.empty)&&ka(_,n)(r,a)}}insert(n,r){return(a,u)=>{const{schema:f,tr:_}=a;if(!f.marks.link)return!1;const Q=f.text(n,[f.marks.link.create({href:r.href,title:r.title??n,target:r.target??"_blank"})]);return _.replaceSelectionWith(Q,!1).scrollIntoView(),!!_.docChanged&&(u?.(_),!0)}}isActive(n,r=hg){if(r.strict)return!0;const{schema:a}=n,u=a.marks.link;return!!u&&pd(n,u)}remove(n,r){return((d,n)=>{const{doc:r,selection:a,tr:u}=d,{$head:{pos:f},from:_,to:M}=a;if(_===M){const O=r.resolve(f),Q=f-O.textOffset,de=Q+O.parent.child(O.index()).nodeSize;u.removeMark(Q,de)}else u.removeMark(_,M);return!!u.docChanged&&(n?.(u),!0)})(n,r)}canExecute(n){const r={href:""};return this.insert("Exec",r)(n)||this.update(r)(n)}},fg=class{insert(n,r){return(a,u)=>{const{schema:f,tr:_,selection:M}=a,O=f.nodes.image;if(!O)return!1;const Q={width:null,src:n,...r};!Q.width&&M instanceof Hn&&M.node.type===O&&(Q.width=M.node.attrs.width),_.replaceSelectionWith(O.createAndFill(Q));const de=_.doc.resolve(_.selection.anchor-_.selection.$anchor.nodeBefore.nodeSize);return _.setSelection(new Hn(de)).scrollIntoView(),!!_.docChanged&&(u?.(_),!0)}}isActive(n){const{selection:r}=n;return r instanceof Hn&&"image"===r.node.type.name}},Ys=class{constructor(n,r="color"){this.name=n,this.attrName=r}apply(n){return(r,a)=>{const{schema:u,selection:f,doc:_}=r,M=u.marks[this.name];if(!M)return!1;const{from:O,to:Q,empty:de}=f;if(!de&&O+1===Q){const Ye=_.nodeAt(O);if(Ye?.isAtom&&!Ye.isText&&Ye.isLeaf)return!1}return _u(M,n)(r,a)}}isActive(n){const{schema:r}=n,a=r.marks[this.name];return!!a&&pd(n,a)}getActiveColors(n){if(!this.isActive(n))return[];const{schema:r}=n;return(d=>{let n=[];const{selection:r,storedMarks:a}=d,{from:u,to:f,empty:_,$from:M}=r;return _?n=a||M.marks():d.doc.nodesBetween(u,f,O=>{n=[...n,...O.marks]}),n})(n).filter(f=>f.type===r.marks[this.name]).map(f=>f.attrs[this.attrName]).filter(Boolean)}remove(){return(n,r)=>{const{schema:a}=n,u=a.marks[this.name];return!!u&&(d=u,(n,r)=>{const{tr:a,selection:u,storedMarks:f,doc:_}=n,{empty:M,ranges:O}=u;if(M&&u instanceof Wi){const{$cursor:Q}=u;if(!Q||!fd(n.doc,O,d))return!1;if(d.isInSet(f||Q.marks()))return a.removeStoredMark(d),r?.(a),!0}else{for(const Q of O){const{$from:de,$to:Ye}=Q;_.rangeHasMark(de.pos,Ye.pos,d)&&a.removeMark(de.pos,Ye.pos,d)}if(!a.docChanged)return!1;r?.(a.scrollIntoView())}return!1})(n,r);var d}}canExecute(n){return this.apply("text_color"===this.name?{color:""}:{backgroundColor:""})(n)}};const gg=["link"],sf=new jc("strong"),af=new jc("em"),Hm=new jc("code"),Xm=new jc("u"),qm=new jc("s"),Km=new class pg{toggle(){return(n,r)=>{const{schema:a}=n,u=a.nodes.blockquote;return!!u&&(this.isActive(n)?((d,n)=>{let{$from:r,$to:a}=d.selection,u=r.blockRange(a),f=u&&ai(u);return null!=f&&(n&&n(d.tr.lift(u,f).scrollIntoView()),!0)})(n,r):function _o(d,n=null){return function(r,a){let{$from:u,$to:f}=r.selection,_=u.blockRange(f),M=_&&fa(_,d,n);return!!M&&(a&&a(r.tr.wrap(_,M).scrollIntoView()),!0)}}(u)(n,r))}}isActive(n){const{schema:r}=n,a=r.nodes.blockquote;return!!a&&Op(n,a)}canExecute(n){return this.toggle()(n)}},mg=new class Qm{insert(){return(n,r)=>{const{schema:a,tr:u}=n,f=a.nodes.horizontal_rule;return!!f&&(r(u.replaceSelectionWith(f.create()).scrollIntoView()),!0)}}canExecute(n){return((d,n)=>{const{$from:r}=d.selection;for(let a=r.depth;a>=0;a-=1){const u=r.index(a);if(r.node(a).canReplaceWith(u,u,n))return!0}return!1})(n,n.schema.nodes.horizontal_rule)}},u1=new class Wm{insert(){return(n,r)=>{const{tr:a}=n,{ranges:u,empty:f}=a.selection;
1return f||(Object.entries(n.schema.marks).forEach(([_,M])=>{gg.includes(_)||u.forEach(O=>{a.removeMark(O.$from.pos,O.$to.pos,M)})}),r(a)),!0}}canExecute(){return!0}},p1=new Gp(!0),Eu=new Gp(!1),Ym=new zl(1),Jm=new zl(2),Zm=new zl(3),_g=new zl(4),e_=new zl(5),t_=new zl(6),n_=new $l("left"),i_=new $l("center"),r_=new $l("right"),o_=new $l("justify"),lf=new Mu,h1=new fg,f1=new Ys("text_color","color"),cf=new Ys("text_background_color","backgroundColor"),df={bold:sf,italic:af,code:Hm,underline:Xm,strike:qm,blockquote:Km,bullet_list:p1,ordered_list:Eu,h1:Ym,h2:Jm,h3:Zm,h4:_g,h5:e_,h6:t_,align_left:n_,align_center:i_,align_right:r_,align_justify:o_},s_={horizontal_rule:mg,format_clear:u1},Up=lf,a_=h1,g1=f1,l_=cf,Ad={bold:"Bold",italic:"Italic",code:"Code",underline:"Underline",strike:"Strike",blockquote:"Blockquote",bullet_list:"Bullet List",ordered_list:"Ordered List",heading:"Heading",h1:"Header 1",h2:"Header 2",h3:"Header 3",h4:"Header 4",h5:"Header 5",h6:"Header 6",align_left:"Left Align",align_center:"Center Align",align_right:"Right Align",align_justify:"Justify",text_color:"Text Color",background_color:"Background Color",horizontal_rule:"Horizontal rule",format_clear:"Clear Formatting",insertLink:"Insert Link",removeLink:"Remove Link",insertImage:"Insert Image",url:"URL",text:"Text",openInNewTab:"Open in new tab",insert:"Insert",altText:"Alt Text",title:"Title",remove:"Remove"};class zp{constructor(n={}){this.locals=Ad,this.get=r=>{const a=this.locals[r];return a?(0,v.A)(a)?a:(0,ee.of)(a):(0,ee.of)("")},this.locals={...Ad,...n}}}const Qp={bold:'\n  <path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z" />\n',italic:'\n  <path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" />\n',code:'\n<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/>\n',underline:'\n<path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/>\n',strike:'\n<path d="M6.85,7.08C6.85,4.37,9.45,3,12.24,3c1.64,0,3,0.49,3.9,1.28c0.77,0.65,1.46,1.73,1.46,3.24h-3.01 c0-0.31-0.05-0.59-0.15-0.85c-0.29-0.86-1.2-1.28-2.25-1.28c-1.86,0-2.34,1.02-2.34,1.7c0,0.48,0.25,0.88,0.74,1.21 C10.97,8.55,11.36,8.78,12,9H7.39C7.18,8.66,6.85,8.11,6.85,7.08z M21,12v-2H3v2h9.62c1.15,0.45,1.96,0.75,1.96,1.97 c0,1-0.81,1.67-2.28,1.67c-1.54,0-2.93-0.54-2.93-2.51H6.4c0,0.55,0.08,1.13,0.24,1.58c0.81,2.29,3.29,3.3,5.67,3.3 c2.27,0,5.3-0.89,5.3-4.05c0-0.3-0.01-1.16-0.48-1.94H21V12z"/>\n',ordered_list:'\n<path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/>\n',bullet_list:'\n<path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"/>\n',blockquote:'\n<path d="M0 0h24v24H0z" fill="none"/><path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/>\n',link:'\n<path d="M0 0h24v24H0z" fill="none"/><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>\n',unlink:'\n<path d="M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"/>\n',image:'\n<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>\n',align_left:'\n<path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/>\n',align_center:'\n<path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/>\n',align_right:'\n<path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/>\n',align_justify:'\n<path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/>\n',text_color:'\n<path d="M2,20h20v4H2V20z M5.49,17h2.42l1.27-3.58h5.65L16.09,17h2.42L13.25,3h-2.5L5.49,17z M9.91,11.39l2.03-5.79h0.12l2.03,5.79 H9.91z"/>\n',color_fill:'\n<path d="M16.56,8.94L7.62,0L6.21,1.41l2.38,2.38L3.44,8.94c-0.59,0.59-0.59,1.54,0,2.12l5.5,5.5C9.23,16.85,9.62,17,10,17 s0.77-0.15,1.06-0.44l5.5-5.5C17.15,10.48,17.15,9.53,16.56,8.94z M5.21,10L10,5.21L14.79,10H5.21z M19,11.5c0,0-2,2.17-2,3.5 c0,1.1,0.9,2,2,2s2-0.9,2-2C21,13.67,19,11.5,19,11.5z M2,20h20v4H2V20z"/>\n',horizontal_rule:'\n  <g>\n    <rect fill="none" fill-rule="evenodd" height="24" width="24"/>\n    <rect fill-rule="evenodd" height="2" width="16" x="4" y="11"/>\n  </g>\n',format_clear:'\n<path d="M0 0h24v24H0z" fill="none"/><path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/>\n',path:"<path></path>"};class Mg{static get(n,r="currentColor"){const a=Qp[n];return a&&(a.includes("<path")||a.includes("<g"))?`\n        <svg\n          xmlns="http://www.w3.org/2000/svg"\n          viewB
1ox="0 0 24 24"\n          fill=${r}\n          height=20\n          width=20\n        >\n          ${a}\n        </svg>\n      `:a}}let ku=(()=>{class d{constructor(){this.locals={},this.icons={}}static#e=this.\u0275fac=function(a){return new(a||d)};static#t=this.\u0275prov=p.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})(),Fa=(()=>{class d{constructor(r){this.config=r}get locals(){return new zp(this.config.locals)}getIcon(r){return this.config.icons[r]?this.config.icons[r]:Mg.get(r)}static#e=this.\u0275fac=function(a){return new(a||d)(p.KVO(ku,8))};static#t=this.\u0275prov=p.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})();const Eg=d=>({locals:d.locals??{},icons:d.icons??{}});let Cd=(()=>{class d{constructor(r){this.sanitizer=r}transform(r){return Vm(r)?r:this.sanitizer.bypassSecurityTrustHtml(r)}static#e=this.\u0275fac=function(a){return new(a||d)(p.rXU(Fp.up,16))};static#t=this.\u0275pipe=p.EJ8({name:"sanitizeHtml",type:d,pure:!0})}return d})(),kg=(()=>{class d{get name(){return this.toolbarItem}constructor(r,a){this.ngxeService=r,this.menuService=a,this.isActive=!1,this.disabled=!1,this.update=u=>{const{state:f}=u,_=df[this.name];this.isActive=_.isActive(f),this.disabled=!_.canExecute(f)}}toggle(r){if(r.preventDefault(),0!==r.button)return;const{state:a,dispatch:u}=this.editorView;df[this.name].toggle()(a,u)}getTitle(r){return this.ngxeService.locals.get(r)}ngOnInit(){this.html=this.ngxeService.getIcon(this.name),this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(r=>{this.update(r)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||d)(p.rXU(Fa),p.rXU(Ul))};static#t=this.\u0275cmp=p.VBU({type:d,selectors:[["ngx-toggle-command"]],inputs:{toolbarItem:"toolbarItem"},decls:3,vars:10,consts:[[1,"NgxEditor__MenuItem--IconContainer",3,"mousedown","innerHTML","title"]],template:function(a,u){1&a&&(p.j41(0,"div",0),p.nI1(1,"sanitizeHtml"),p.nI1(2,"async"),p.bIt("mousedown",function(_){return u.toggle(_)}),p.k0s()),2&a&&(p.AVh("NgxEditor__MenuItem--Active",u.isActive)("NgxEditor--Disabled",u.disabled),p.Y8G("innerHTML",p.bMT(1,6,u.html),p.npT)("title",p.bMT(2,8,u.getTitle(u.name))))},dependencies:[Ar.Jj,Cd]})}return d})(),u_=(()=>{class d{get name(){return this.toolbarItem}constructor(r,a){this.ngxeService=r,this.menuService=a,this.disabled=!1,this.update=u=>{const{state:f}=u;this.disabled=!s_[this.name].canExecute(f)}}insert(r){if(r.preventDefault(),0!==r.button)return;const{state:a,dispatch:u}=this.editorView;s_[this.name].insert()(a,u)}getTitle(r){return this.ngxeService.locals.get(r)}ngOnInit(){this.html=this.ngxeService.getIcon(this.name),this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(r=>{this.update(r)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||d)(p.rXU(Fa),p.rXU(Ul))};static#t=this.\u0275cmp=p.VBU({type:d,selectors:[["ngx-insert-command"]],inputs:{toolbarItem:"toolbarItem"},decls:3,vars:8,consts:[[1,"NgxEditor__MenuItem--IconContainer",3,"mousedown","innerHTML","title"]],template:function(a,u){1&a&&(p.j41(0,"div",0),p.nI1(1,"sanitizeHtml"),p.nI1(2,"async"),p.bIt("mousedown",function(_){return u.insert(_)}),p.k0s()),2&a&&(p.AVh("NgxEditor--Disabled",u.disabled),p.Y8G("innerHTML",p.bMT(1,4,u.html),p.npT)("title",p.bMT(2,6,u.getTitle(u.name))))},dependencies:[Ar.Jj,Cd]})}return d})(),p_=(()=>{class d{constructor(r,a,u){this.el=r,this.ngxeService=a,this.menuService=u,this.showPopup=!1,this.isActive=!1,this.canExecute=!0,this.setText=()=>{const{state:{selection:f,doc:_}}=this.editorView,{empty:M,from:O,to:Q}=f,de=M?"":_.textBetween(O,Q);de&&(this.text.patchValue(de),this.text.disable())},this.update=f=>{const{state:_}=f;this.isActive=Up.isActive(_,{strict:!1}),this.canExecute=Up.canExecute(_)}}get icon(){return this.ngxeService.getIcon(this.isActive?"unlink":"link")}get title(){return this.ngxeService.locals.get(this.isActive?"removeLink":"insertLink")}get href(){return this.form.get("href")}get text(){return this.form.get("text")}onDocumentClick(r){!this.el.nativeElement.contains(r.target)&&this.showPopup&&this.hideForm()}getLabel(r){return this.ngxeService.locals.get(r)}hideForm(){this.showPopup=!1,this.form.reset({href:"",text:"",openInNewTab:!0}),this.text.enable()}onMouseDown(r){if(0!==r.button)return;const{state:a,dispatch:u}=this.editorView;this.isActive?Up.remove(a,u):(this.showPopup=!this.showPopup,this.showPopup&&this.setText())}insertLink(r){r.preventDefault();const{text:a,href:u,openInNewTab:f}=this.form.getRawValue(),{dispatch:_,state:M}=this.editorView,{selection:O}=M,Q={title:u,href:u,target:f?"_blank":"_self"};O.empty?(Up.insert(a,Q)(M,_),this.editorView.focus()):Up.update(Q)(M,_),this.hideForm()}ngOnInit(){this.editorView=this.menuService.editor.view,this.form=new w.gE({href:new w.MJ("",[w.k0.required,w.k0.pattern(this.menuService.editor.linkValidationPattern)]),text:new w.MJ("",[w.k0.required]),openInNewTab:new w.MJ(!0)}),this.updateSubscription=this.menuService.editor.update.subscribe(r=>{this.update(r)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||d)(p.rXU(p.aKT),p.rXU(Fa),p.rXU(Ul))};static#t=this.\u0275cmp=p.VBU({type:d,selectors:[["ngx-link"]],hostBindings:function(a,u){1&a&&p.bIt("mousedown",function(_){return u.onDocumentClick(_)},!1,p.EBC)},decls:4,vars:11,consts:[[1,"NgxEditor__MenuItem--IconContainer",3,"mousedown","innerHTML","title"],["class","NgxEditor__Popup",4,"ngIf"],[1,"NgxEditor__Popup"],[1,"NgxEditor__Popup--Form",3,"ngSubmit","formGroup"],[1,"NgxEditor__Popup--FormGroup"],[1,"NgxEditor__Popup--Col"],[1,"NgxEditor__Popup--Label"],["type","href","id","href","formControlName","href","autofocus","","autocomplete","off"],["class","NgxEditor__HelpText NgxEditor__HelpText--Error",4,"ngIf"],["type","text","formControlName","text","autocomplete","off"],["type","checkbox","formControlName","openInNewTab"],["type","submit",3,"disabled"],[1,"NgxEditor__HelpText","NgxEditor__HelpText--Error"]],template:function(a,u){1&a&&(p.j41(0,"div",0),p.nI1(1,"sanitizeHtml"),p.nI1(2,"async"),p.bIt("mousedown",function(_){return u.onMouseDown(_)}),p.k0s(),p.DNE(3,Er,25,16,"div",1)),2&a&&(p.AVh("NgxEditor__MenuItem--Active",u.isActive||u.showPopup)("NgxEditor--Disabled",!u.canExecute),p.Y8G("innerHTML",p.bMT(1,7,u.icon),p.npT)("title",p.bMT(2,9,u.title)),p.R7$(3),p.Y8G("ngIf",u.showPopup))},dependencies:[Ar.bT,w.qT,w.me,w.Zm,w.BC,w.cb,w.j4,w.JD,Ar.Jj,Cd]})}return d})(),h_=(()=>{class d{constructor(r,a,u){this.ngxeService=r,this.menuService=a,this.el=u,this.isDropdownOpen=!1,this.disabledItems=[],this.update=f=>{const{state:_}=f;this.disabledItems=[];const M=[];
1this.items.forEach(O=>{const Q=df[O];Q.isActive(_)&&M.push(O),Q.canExecute(_)||this.disabledItems.push(O)}),1===M.length?[this.activeItem]=M:this.activeItem=null}}get isSelected(){return!(!this.activeItem&&!this.isDropdownOpen)}get isDropdownDisabled(){return this.disabledItems.length===this.items.length}onDocumentClick(r){!this.el.nativeElement.contains(r)&&this.isDropdownOpen&&(this.isDropdownOpen=!1)}getName(r){return this.ngxeService.locals.get(r)}toggleDropdown(r){r.preventDefault(),this.isDropdownOpen=!this.isDropdownOpen}trackByIndex(r){return r}onClick(r,a){if(r.preventDefault(),0!==r.button)return;const u=df[a],{state:f,dispatch:_}=this.editorView;u.toggle()(f,_),this.isDropdownOpen=!1}ngOnInit(){this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(r=>{this.update(r)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||d)(p.rXU(Fa),p.rXU(Ul),p.rXU(p.aKT))};static#t=this.\u0275cmp=p.VBU({type:d,selectors:[["ngx-dropdown"]],hostBindings:function(a,u){1&a&&p.bIt("mousedown",function(_){return u.onDocumentClick(_.target)},!1,p.EBC)},inputs:{group:"group",items:"items"},decls:4,vars:8,consts:[[1,"NgxEditor__Dropdown--Text",3,"mousedown"],["class","NgxEditor__Dropdown--DropdownMenu",4,"ngIf"],[1,"NgxEditor__Dropdown--DropdownMenu"],["class","NgxEditor__Dropdown--Item",3,"ngClass","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[1,"NgxEditor__Dropdown--Item",3,"mousedown","ngClass"]],template:function(a,u){1&a&&(p.j41(0,"div",0),p.bIt("mousedown",function(_){return u.toggleDropdown(_)}),p.EFF(1),p.nI1(2,"async"),p.k0s(),p.DNE(3,co,2,2,"div",1)),2&a&&(p.AVh("NgxEditor__Dropdown--Selected",u.isSelected)("NgxEditor--Disabled",u.isDropdownDisabled),p.R7$(),p.SpI(" ",p.bMT(2,6,u.getName(u.activeItem||u.group)),"\n"),p.R7$(2),p.Y8G("ngIf",u.isDropdownOpen))},dependencies:[Ar.YU,Ar.Sq,Ar.bT,Ar.Jj]})}return d})(),Ig=(()=>{class d{constructor(r,a,u){this.el=r,this.ngxeService=a,this.menuService=u,this.showPopup=!1,this.isActive=!1,this.form=new w.gE({src:new w.MJ("",[w.k0.required,w.k0.pattern("(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/??([^#\n\r]*)?#?([^\n\r]*)")]),alt:new w.MJ(""),title:new w.MJ("")}),this.update=f=>{const{state:_}=f;this.isActive=a_.isActive(_)}}get icon(){return this.ngxeService.getIcon("image")}get src(){return this.form.get("src")}onDocumentClick(r){!this.el.nativeElement.contains(r.target)&&this.showPopup&&this.hideForm()}getLabel(r){return this.ngxeService.locals.get(r)}hideForm(){this.showPopup=!1,this.form.reset({src:"",alt:"",title:""})}onMouseDown(r){0===r.button&&(this.showPopup=!this.showPopup,this.showPopup&&this.fillForm())}fillForm(){const{state:r}=this.editorView,{selection:a}=r;if(a instanceof Hn&&this.isActive){const{src:u,alt:f="",title:_=""}=a.node.attrs;this.form.setValue({src:u,alt:f,title:_})}}insertLink(r){r.preventDefault();const{src:a,alt:u,title:f}=this.form.getRawValue(),{dispatch:_,state:M}=this.editorView;a_.insert(a,{alt:u,title:f})(M,_),this.editorView.focus(),this.hideForm()}ngOnInit(){this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(r=>{this.update(r)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||d)(p.rXU(p.aKT),p.rXU(Fa),p.rXU(Ul))};static#t=this.\u0275cmp=p.VBU({type:d,selectors:[["ngx-image"]],hostBindings:function(a,u){1&a&&p.bIt("mousedown",function(_){return u.onDocumentClick(_)},!1,p.EBC)},decls:4,vars:9,consts:[[1,"NgxEditor__MenuItem--IconContainer",3,"mousedown","innerHTML","title"],["class","NgxEditor__Popup",4,"ngIf"],[1,"NgxEditor__Popup"],[1,"NgxEditor__Popup--Form",3,"ngSubmit","formGroup"],[1,"NgxEditor__Popup--FormGroup"],[1,"NgxEditor__Popup--Col"],[1,"NgxEditor__Popup--Label"],["type","href","id","href","formControlName","src","autofocus","","autocomplete","off"],["class","NgxEditor__HelpText NgxEditor__HelpText--Error",4,"ngIf"],["type","text","formControlName","alt","autocomplete","off"],["type","text","formControlName","title","autocomplete","off"],["type","submit",3,"disabled"],[1,"NgxEditor__HelpText","NgxEditor__HelpText--Error"]],template:function(a,u){1&a&&(p.j41(0,"div",0),p.nI1(1,"sanitizeHtml"),p.nI1(2,"async"),p.bIt("mousedown",function(_){return u.onMouseDown(_)}),p.k0s(),p.DNE(3,Ss,24,15,"div",1)),2&a&&(p.AVh("NgxEditor__MenuItem--Active",u.isActive||u.showPopup),p.Y8G("innerHTML",p.bMT(1,5,u.icon),p.npT)("title",p.bMT(2,7,u.getLabel("insertImage"))),p.R7$(3),p.Y8G("ngIf",u.showPopup))},dependencies:[Ar.bT,w.qT,w.me,w.BC,w.cb,w.j4,w.JD,Ar.Jj,Cd]})}return d})(),Iu=(()=>{class d{constructor(r,a,u){this.el=r,this.menuService=a,this.ngxeService=u,this.showPopup=!1,this.isActive=!1,this.activeColors=[],this.canExecute=!0,this.update=f=>{const{state:_}=f;this.canExecute=this.command.canExecute(_),this.isActive=this.command.isActive(_),this.activeColors=[],this.isActive&&(this.activeColors=this.command.getActiveColors(_))}}get title(){return this.getLabel("text_color"===this.type?"text_color":"background_color")}get icon(){return this.ngxeService.getIcon("text_color"===this.type?"text_color":"color_fill")}get command(){return"text_color"===this.type?g1:l_}getContrastYIQ(r){const a=r.replace("#","");return(299*parseInt(a.substring(0,2),16)+587*parseInt(a.substring(2,4),16)+114*parseInt(a.substring(4,6),16))/1e3>=128?"black":"white"}onDocumentClick(r){!this.el.nativeElement.contains(r.target)&&this.showPopup&&this.hidePopup()}hidePopup(){this.showPopup=!1}togglePopup(r){r.preventDefault(),0===r.button&&(this.showPopup=!this.showPopup)}remove(r){r.preventDefault();const{state:a,dispatch:u}=this.editorView;this.command.remove()(a,u),this.hidePopup()}trackByIndex(r){return r}onColorSelect(r,a){if(r.preventDefault(),0!==r.button)return;const{state:u,dispatch:f}=this.editorView;"text_color"===this.type?this.command.apply({color:a})(u,f):this.command.apply({backgroundColor:a})(u,f),this.editorView.hasFocus()||this.editorView.focus(),this.hidePopup()}getLabel(r){return this.ngxeService.locals.get(r)}ngOnInit(){this.editorView=this.menuService.editor.view,this.updateSubscription=this.menuService.editor.update.subscribe(r=>{this.update(r)})}ngOnDestroy(){this.updateSubscription.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||d)(p.rXU(p.aKT),p.rXU(Ul),p.rXU(Fa))};static#t=this.\u0275cmp=p.VBU({type:d,selectors:[["ngx-color-picker"]],hostBindings:function(a,u){1&a&&p.bIt("mousedown",function(_){return u.onDocumentClick(_)},!1,p.EBC)},inputs:{presets:"presets",type:"type"},decls:4,vars:11,consts:[[1,"NgxEditor__MenuItem--IconContainer",3,"mousedown","innerHTML","title"],["class","NgxEditor__Popup",4,"ngIf"],[1,"NgxEditor__Popup"],["class","NgxEditor__ColorContainer",4,"ngFor","ngForOf","ngForTrackBy"],[1,"NgxEditor__MenuItem--Button",3,"mousedown","disabled"],[1,"NgxEditor__ColorContainer"],["class","NgxEditor__Color",3,"ngStyle","title","ngClass","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[1,"NgxEditor__Color",3,"mousedown","ngStyle","title","ngClass"]],template:function(a,u){1&a&&(p.j41(0,"div",0),p.nI1(1,"sanitizeHtml"),p.nI1(2,"async"),p.bIt("mousedown",function(_){return u.togglePopup(_)}),p.k0s(),p.DNE(3,Sa,5,6,"div",1)),2&a&&(p.AVh("NgxEditor__MenuItem--Active",u.isActive||u.showPopup)("NgxEditor--Disabled",!u.canExecute),p.Y8G("innerHTML",p.bMT(1,7,u.icon),p.npT)("title",p.bMT(2,9,u.title)),p.R7$(3),p.Y8G("ngIf",u.showPopup))},dependencies:[Ar.YU,Ar.Sq,Ar.bT,Ar.B3,Ar.Jj,Cd],styles:['@charset "UTF-8";.NgxEditor__Popup[_ngcontent-%COMP%]{width:230px}.NgxEditor__ColorContainer[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.NgxEditor__ColorContainer[_ngcontent-%COMP%] + .NgxEditor__ColorContainer[_ngcontent-%COMP%]{margin-top:5px}.NgxEditor__Color[_ngcontent-%COMP%]{border:none;outline:none;border-radius:6px;width:24px;height:24px;flex-shrink:0}.NgxEditor__Color--Active[_ngcontent-%COMP%]:after{content:"\\2714";font-size:90%}.NgxEditor__MenuItem--Button[_ngcontent-%COMP%]{margin-top:5px}']})}return d})();const gf=[["bold","italic"],[{heading:["h1","h2","h3","h4","h5","h6"]}],["link","image"],["text_color","background_color"]],f_=["#b60205","#d93f0b","#fbca04","#0e8a16","#006b75","#1d76db","#0052cc","#5319e7","#e99695","#f9d0c4","#fef2c0","#c2e0c6","#bfdadc","#c5def5","#bfd4f2","#d4c5f9"];let mf=(()=>{class d{constructor(r){this.menuService=r,this.toolbar=gf,this.colorPresets=f_,this.disabled=!1,this.customMenuRef=null,this.dropdownPlacement="bottom",this.toggleCommands=["bold","italic","underline","strike","code","blockquote","ordered_list","bullet_list","align_left","align_center","align_right","align_justify"],this.insertCommands=["horizontal_rule","format_clear"],this.iconContainerClass=["NgxEditor__MenuItem","NgxEditor__MenuItem--Icon"],this.dropdownContainerClass=["NgxEditor__Dropdown"],this.seperatorClass=["NgxEditor__Seperator"]}get presets(){const a=[];
1return this.colorPresets.forEach((u,f)=>{const _=Math.floor(f/8);a[_]||a.push([]),a[_].push(u)}),a}trackByIndex(r){return r}isDropDown(r){return!!r?.heading}getDropdownItems(r){return r}ngOnInit(){if(!this.editor)throw new K("Required editor instance to initialize menu component");this.menuService.editor=this.editor}static#e=this.\u0275fac=function(a){return new(a||d)(p.rXU(Ul))};static#t=this.\u0275cmp=p.VBU({type:d,selectors:[["ngx-editor-menu"]],inputs:{toolbar:"toolbar",colorPresets:"colorPresets",disabled:"disabled",editor:"editor",customMenuRef:"customMenuRef",dropdownPlacement:"dropdownPlacement"},features:[p.Jv_([Ul])],decls:3,vars:7,consts:[[1,"NgxEditor__MenuBar",3,"ngClass"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[3,"toolbarItem","class",4,"ngIf"],[3,"class",4,"ngIf"],["type","text_color",3,"class","presets",4,"ngIf"],["type","background_color",3,"class","presets",4,"ngIf"],[3,"toolbarItem"],[3,"class","group","items",4,"ngFor","ngForOf","ngForTrackBy"],[3,"group","items"],["type","text_color",3,"presets"],["type","background_color",3,"presets"],[3,"ngTemplateOutlet"]],template:function(a,u){1&a&&(p.j41(0,"div",0),p.DNE(1,ls,2,2,"ng-container",1)(2,Ra,2,1,"ng-container",2),p.k0s()),2&a&&(p.Y8G("ngClass",p.l_i(4,xu,u.disabled,"top"===u.dropdownPlacement)),p.R7$(),p.Y8G("ngForOf",u.toolbar)("ngForTrackBy",u.trackByIndex),p.R7$(),p.Y8G("ngIf",u.customMenuRef))},dependencies:[Ar.YU,Ar.Sq,Ar.bT,Ar.T3,kg,u_,p_,h_,Ig,Iu,Ar.lG]})}return d})(),Tg=(()=>{class d{static#e=this.\u0275fac=function(a){return new(a||d)};static#t=this.\u0275mod=p.$C({type:d});static#n=this.\u0275inj=p.G2t({providers:[Cd],imports:[Ar.MD,w.X1]})}return d})();const Tu=new p.nKC("NgxEditorConfig"),Sg={locals:Ad,icons:Qp};let b1=(()=>{class d{static forRoot(r=Sg){return{ngModule:d,providers:[{provide:Tu,useValue:r},{provide:ku,useFactory:Eg,deps:[Tu]}]}}static forChild(r=Sg){return{ngModule:d,providers:[{provide:Tu,useValue:r},{provide:ku,useFactory:Eg,deps:[Tu]},Fa]}}static#e=this.\u0275fac=function(a){return new(a||d)};static#t=this.\u0275mod=p.$C({type:d});static#n=this.\u0275inj=p.G2t({imports:[Ar.MD,Tg]})}return d})();const Rs=(d,n=!1)=>(r,a)=>{const u=new jc(d);return n?u.toggle()(r,a):u.apply()(r,a)};class _f{constructor(n){if(this.applyTrx=r=>{this.state=this.state.apply(r??this.tr),this.tr=this.state.tr,this.tr.setMeta("APPLIED_TRX",!0)},this.dispatch=r=>{this.applyTrx(r)},!n)throw new K("Required view to initialize commands.");this.view=n,this.state=n.state,this.tr=this.view.state.tr}exec(){if(!this.tr.getMeta("APPLIED_TRX"))return!1;const n=!this.view.state.doc.eq(this.state.doc);this.view.updateState(this.state);const r=this.tr.setMeta("FORCE_EMIT",n);return this.view.dispatch(r),!0}focus(n="end"){const r="start"===n?ei.atStart(this.state.doc):ei.atEnd(this.state.doc);return this.tr.setSelection(r),this.applyTrx(),this.view.focus(),this}scrollIntoView(){return this.tr.scrollIntoView(),this.applyTrx(),this}insertText(n){return this.tr.insertText(n),this.applyTrx(),this}insertNewLine(){return Pc(lu,Tc,ad,du)(this.state,this.dispatch),this}applyMark(n){return Rs(n,!1)(this.state,this.dispatch),this}toggleMark(n){return Rs(n,!0)(this.state,this.dispatch),this}bold(){return Rs("strong")(this.state,this.dispatch),this}toggleBold(){return Rs("strong",!0)(this.state,this.dispatch),this}
1italics(){return Rs("em")(this.state,this.dispatch),this}toggleItalics(){return Rs("em",!0)(this.state,this.dispatch),this}underline(){return Rs("u")(this.state,this.dispatch),this}toggleUnderline(){return Rs("u",!0)(this.state,this.dispatch),this}strike(){return Rs("s")(this.state,this.dispatch),this}toggleStrike(){return Rs("s",!0)(this.state,this.dispatch),this}code(){return Rs("code")(this.state,this.dispatch),this}toggleCode(){return Rs("code",!0)(this.state,this.dispatch),this}toggleOrderedList(){return new Gp(!1).toggle()(this.state,this.dispatch),this}toggleBulletList(){return new Gp(!0).toggle()(this.state,this.dispatch),this}toggleHeading(n){return new zl(n).toggle()(this.state,this.dispatch),this}insertLink(n,r){return(new Mu).insert(n,r)(this.state,this.dispatch),this}updateLink(n){return(new Mu).update(n)(this.state,this.dispatch),this}insertImage(n,r={}){return(new fg).insert(n,r)(this.state,this.dispatch),this}textColor(n){return new Ys("text_color").apply({color:n})(this.state,this.dispatch),this}backgroundColor(n){return new Ys("text_background_color").apply({backgroundColor:n})(this.state,this.dispatch),this}removeTextColor(){return new Ys("text_color").remove()(this.state,this.dispatch),this}removeBackgroundColor(){return new Ys("text_background_color").remove()(this.state,this.dispatch),this}align(n){return new $l(n).toggle()(this.state,this.dispatch),this}insertHTML(n){const{selection:r,schema:a,tr:u}=this.state,{from:f,to:_}=r,M=document.createElement("div");M.innerHTML=Vp(n)?n.trim():n;const O=Un.fromSchema(a).parseSlice(M),Q=u.replaceRange(f,_,O);return this.applyTrx(Q),this}}const Rg=typeof navigator<"u"&&/Mac/.test(navigator.platform),Xp=d=>{const n=Hh.concat(vs,Pp);return n.push((d=>Bo(/(?:^|\s)(?:(\*\*|__)(?:([^*_]+))(\*\*|__))$/,d))(d.marks.strong)),n.push((d=>Bo(/(?:^|\s)(?:(\*|_)(?:([^*_]+))(\*|_))$/,d))(d.marks.em)),n.push((d=>jl(/^\s*>\s$/,d))(d.nodes.blockquote)),n.push((d=>jl(/^(?:\d+)\.\s$/,d,n=>({order:Number(n[1])}),(n,r)=>r.childCount+r.attrs.order===Number(n[1])))(d.nodes.ordered_list)),n.push((d=>jl(/^\s*(?:[-+*])\s$/,d))(d.nodes.bullet_list)),n.push((d=>Xh(/^```$/,d))(d.nodes.code_block)),n.push(((d,n)=>Xh(new RegExp("^(#{1,6})\\s$"),d,r=>({level:r[1].length})))(d.nodes.heading)),function Tp({rules:d}){let n=new Ro({state:{init:()=>null,apply(r,a){return r.getMeta(this)||(r.selectionSet||r.docChanged?null:a)}},props:{handleTextInput:(r,a,u,f)=>Oc(r,a,u,f,d,n),handleDOMEvents:{compositionend:r=>{setTimeout(()=>{let{$cursor:a}=r.state.selection;a&&Oc(r,a.pos,a.pos,"",d,n)})}}},isInputRules:!0});return n}({rules:n})},Lg=(d,n)=>{const r=[];return n.keyboardShortcuts&&r.push(...((d,n)=>{const r={};r["Mod-z"]=I,Rg?r["Shift-Mod-z"]=Le:r["Mod-y"]=Le;const a=[cl({"Mod-b":ka(d.marks.strong),"Mod-i":ka(d.marks.em),"Mod-u":ka(d.marks.u),"Mod-`":ka(d.marks.code)}),cl({Enter:wc(d.nodes.list_item),"Shift-Enter":Pc(Ic,(u,f)=>{const{tr:_}=u;return f(_.replaceSelectionWith(d.nodes.hard_break.create()).scrollIntoView()),!0}),"Mod-[":Ds(d.nodes.list_item),"Mod-]":Dc(d.nodes.list_item),Tab:Dc(d.nodes.list_item)}),cl(Qh)];return n.history&&a.push(cl(r)),a})(d,{history:n.history})),n.history&&r.push(function g(d={}){return new Ro({key:s,state:{init:()=>new Ts(ss.empty,ss.empty,null,0,-1),apply:(n,r,a)=>function lg(d,n,r,a){let f,u=r.getMeta(s);if(u)return u.historyState;r.getMeta(y)&&(d=new Ts(d.done,d.undone,null,0,-1));let _=r.getMeta("appendedTransaction");if(0==r.steps.length)return d;if(_&&_.getMeta(s))return _.getMeta(s).redo?new Ts(d.done.addTransform(r,void 0,a,b(n)),d.undone,ef(r.mapping.maps[r.steps.length-1]),d.prevTime,d.prevComposition):new Ts(d.done,d.undone.addTransform(r,void 0,a,b(n)),null,d.prevTime,d.prevComposition);if(!1===r.getMeta("addToHistory")||_&&!1===_.getMeta("addToHistory"))return(f=r.getMeta("rebased"))?new Ts(d.done.rebased(r,f),d.undone.rebased(r,f),bu(d.prevRanges,r.mapping),d.prevTime,d.prevComposition):new Ts(d.done.addMaps(r.mapping.maps),d.undone.addMaps(r.mapping.maps),bu(d.prevRanges,r.mapping),d.prevTime,d.prevComposition);{let M=r.getMeta("composition"),O=0==d.prevTime||!_&&d.prevComposition!=M&&(d.prevTime<(r.time||0)-a.newGroupDelay||!function Zh(d,n){if(!n)return!1;if(!d.docChanged)return!0;let r=!1;
1return d.mapping.maps[0].forEach((a,u)=>{for(let f=0;f<n.length;f+=2)a<=n[f+1]&&u>=n[f]&&(r=!0)}),r}(r,d.prevRanges)),Q=_?bu(d.prevRanges,r.mapping):ef(r.mapping.maps[r.steps.length-1]);return new Ts(d.done.addTransform(r,O?n.selection.getBookmark():void 0,a,b(n)),ss.empty,Q,r.time,M??d.prevComposition)}}(r,a,n,d)},config:d={depth:d.depth||100,newGroupDelay:d.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(n,r){let a=r.inputType,u="historyUndo"==a?I:"historyRedo"==a?Le:null;return!!u&&(r.preventDefault(),u(n.state,n.dispatch))}}}})}()),n.inputRules&&r.push(Xp(d)),r},jg={linkOnPaste:!0,resizeImage:!0},Bg={content:null,history:!0,keyboardShortcuts:!0,inputRules:!0,schema:Ea,plugins:[],nodeViews:{},attributes:{},features:jg,handleScrollToSelection:null,linkValidationPattern:"(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/??([^#\n\r]*)?#?([^\n\r]*)|(mailto:.*[@].*)"};class v_{constructor(n=Bg){this.valueChangesSubject=new N.B,this.updateSubject=new N.B,this.options={...Bg,...n},this.createEditor()}get valueChanges(){return this.valueChangesSubject.asObservable()}get update(){return this.updateSubject.asObservable()}get schema(){return this.options.schema||Ea}get linkValidationPattern(){return this.options.linkValidationPattern}get commands(){return new _f(this.view)}get features(){return{...jg,...this.options.features}}handleTransactions(n){const r=this.view.state.apply(n);if(this.view.updateState(r),this.updateSubject.next(this.view),!n.docChanged&&!n.getMeta("FORCE_EMIT"))return;const a=r.doc.toJSON();this.valueChangesSubject.next(a)}createEditor(){const{options:n,schema:r}=this,{content:a=null,nodeViews:u}=n,{history:f=!0,keyboardShortcuts:_=!0,inputRules:M=!0}=n,O=Du(a,r),Q=n.plugins??[],de=n.attributes??{},Ye=Lg(r,{history:f,keyboardShortcuts:_,inputRules:M});this.view=new rg(null,{state:hs.create({doc:O,schema:r,plugins:[...Ye,...Q]}),nodeViews:u,dispatchTransaction:this.handleTransactions.bind(this),attributes:de,handleScrollToSelection:n.handleScrollToSelection})}setContent(n){if(typeof(d=n)>"u"||null===d)return;var d;const{state:r}=this.view,{tr:a,doc:u}=r,f=Du(n,this.schema);a.replaceWith(0,r.doc.content.size,f),!u.eq(a.doc)&&a.docChanged&&this.view.dispatch(a)}registerPlugin(n){const{state:r}=this.view,a=[...r.plugins,n],u=r.reconfigure({plugins:a});this.view.updateState(u)}destroy(){this.view.destroy()}}},356:(en,Me,R)=>{"use strict";R.d(Me,{Nt:()=>Jt});var p=R(4438),w=R(177),N=R(9417);let Jt=(()=>{class ct{}return ct.\u0275fac=function(Te){return new(Te||ct)},ct.\u0275mod=p.$C({type:ct}),ct.\u0275inj=p.G2t({imports:[w.MD,N.YN]}),ct})()},5286:(en,Me,R)=>{"use strict";R.d(Me,{NN:()=>Fe,y2:()=>rt});var p=R(467),w=R(177),N=R(4438),v=R(1413),ee=R(7786),l=R(7673),W=R(1584),B=R(5558),T=R(3703),e=R(3294),K=R(6496),H=R(9172),pe=R(6354),oe=R(6977),we=(R(1594),R(222)),Pe=R(1626),Qe=R(345);const ht=["*"];let je=(()=>{class It{constructor(){this._buttonClick$=new v.B,this.copied$=this._buttonClick$.pipe((0,B.n)(()=>(0,ee.h)((0,l.of)(!0),(0,W.O)(3e3).pipe((0,T.u)(!1)))),(0,e.F)(),(0,K.t)(1)),this.copiedText$=this.copied$.pipe((0,H.Z)(!1),(0,pe.T)(ue=>ue?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static#e=this.\u0275fac=function(U){return new(U||It)};static#t=this.\u0275cmp=N.VBU({type:It,selectors:[["markdown-clipboard"]],standalone:!0,features:[N.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(U,Oe){1&U&&(N.j41(0,"button",0),N.nI1(1,"async"),N.bIt("click",function(){return Oe.onCopyToClipboardClick()}),N.EFF(2),N.nI1(3,"async"),N.k0s()),2&U&&(N.AVh("copied",N.bMT(1,3,Oe.copied$)),N.R7$(2),N.JRh(N.bMT(3,5,Oe.copiedText$)))},dependencies:[w.Jj],encapsulation:2,changeDetection:0})}return It})();const Ct=new N.nKC("CLIPBOARD_OPTIONS");var at=function(It){return It.CommandLine="command-line",It.LineHighlight="line-highlight",It.LineNumbers="line-numbers",It}(at||{});const le=new N.nKC("MARKED_EXTENSIONS"),Xe=new N.nKC("MARKED_OPTIONS"),Ze=new N.nKC("SECURITY_CONTEXT");let Je=(()=>{class It{get options(){return this._options}set options(ue){this._options={...this.DEFAULT_MARKED_OPTIONS,...ue}}get renderer(){return this.options.renderer}set renderer(ue){this.options.renderer=ue}constructor(ue,U,Oe,Ue,$e,Ve,lt){this.clipboardOptions=ue,this.extensions=U,this.platform=Ue,this.securityContext=$e,this.http=Ve,this.sanitizer=lt,this.DEFAULT_MARKED_OPTIONS={renderer:new we.A4},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new v.B,this.reload$=this._reload$.asObservable(),this.options=Oe}parse(ue,U=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:Oe,inline:Ue,emoji:$e,mermaid:Ve,disableSanitizer:lt}=U,Rt={...this.options,...U.markedOptions},nt=Rt.renderer||this.renderer||new we.A4;this.extensions&&(this.renderer=this.extendsRendererForExtensions(nt)),Ve&&(this.renderer=this.extendsRendererForMermaid(nt));const xt=this.trimIndentation(ue),St=Oe?this.decodeHtml(xt):xt,Ht=$e?this.parseEmoji(St):St,Pt=this.parseMarked(Ht,Rt,Ue);return(lt?Pt:this.sanitizer.sanitize(this.securityContext,Pt))||""}render(ue,U=this.DEFAULT_RENDER_OPTIONS,Oe){const{clipboard:Ue,clipboardOptions:$e,katex:Ve,katexOptions:lt,mermaid:Rt,mermaidOptions:nt}=U;Ve&&this.renderKatex(ue,{...this.DEFAULT_KATEX_OPTIONS,...lt}),Rt&&this.renderMermaid(ue,{...this.DEFAULT_MERMAID_OPTIONS,...nt}),Ue&&this.renderClipboard(ue,Oe,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...$e}),this.highlight(ue)}reload(){this._reload$.next()}getSource(ue){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(ue,{responseType:"text"}).pipe((0,pe.T)(U=>this.handleExtension(ue,U)))}highlight(ue){if(!(0,w.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;ue||(ue=document);const U=ue.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(U,Oe=>Oe.classList.add("language-none")),Prism.highlightAllUnder(ue)}decodeHtml(ue){if(!(0,w.UE)(this.platform))return ue;const U=document.createElement("textarea");return U.innerHTML=ue,U.value}extendsRendererForExtensions(ue){const U=ue;return!0===U.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&we.xI.use(...this.extensions),U.\u0275NgxMarkdownRendererExtendedForExtensions=!0),ue}extendsRendererForMermaid(ue){const U=ue;if(!0===U.\u0275NgxMarkdownRendererExtendedForMermaid)return ue;const Oe=ue.code;return ue.code=function(Ue,$e,Ve){return"mermaid"===$e?`<div class="mermaid">${Ue}</div>`:Oe.call(this,Ue,$e,Ve)},U.\u0275NgxMarkdownRendererExtendedForMermaid=!0,ue}handleExtension(ue,U){const Oe=ue.lastIndexOf("://"),Ue=Oe>-1?ue.substring(Oe+4):ue,$e=Ue.lastIndexOf("/"),Ve=$e>-1?Ue.substring($e+1).split("?")[0]:"",lt=Ve.lastIndexOf("."),Rt=lt>-1?Ve.substring(lt+1):"";return Rt&&"md"!==Rt?"```"+Rt+"\n"+U+"\n```":U}parseMarked(ue,U,Oe=!1){if(U.renderer){const Ue={...U.renderer};delete Ue.\u0275NgxMarkdownRendererExtendedForExtensions,delete Ue.\u0275NgxMarkdownRendererExtendedForMermaid,delete U.renderer,we.xI.use({renderer:Ue})}return Oe?we.xI.parseInline(ue,U):we.xI.parse(ue,U)}parseEmoji(ue){if(!(0,w.UE)(this.platform))return ue;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(ue)}renderKatex(ue,U){if((0,w.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(ue,U)}}renderClipboard(ue,U,Oe){if(!(0,w.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!U)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:Ue,buttonTemplate:$e}=Oe,Ve=ue.querySelectorAll("pre");for(let lt=0;lt<Ve.length;lt++){const Rt=Ve.item(lt),nt=document.createElement("div");nt.style.position="relative",Rt.parentNode.insertBefore(nt,Rt),nt.appendChild(Rt);const xt=document.createElement("div");let St,Ht;if(xt.style.position="absolute",xt.style.top=".5em",xt.style.right=".5em",xt.style.opacity="0",xt.style.transition="opacity 250ms ease-out",xt.style.zIndex="1",nt.insertAdjacentElement("beforeend",xt),Rt.onmouseover=()=>xt.style.opacity="1",Rt.onmouseout=()=>xt.style.opacity="0",Ue){const Pt=U.createComponent(Ue);St=Pt.hostView,Pt.changeDetectorRef.markForCheck()}else if($e)St=U.createEmbeddedView($e);else{const Pt=U.createComponent(je);St=Pt.hostView,Pt.changeDetectorRef.markForCheck()}
1St.rootNodes.forEach(Pt=>{Pt.onmouseover=()=>xt.style.opacity="1",xt.appendChild(Pt),Ht=new ClipboardJS(Pt,{text:()=>Rt.innerText})}),St.onDestroy(()=>Ht.destroy())}}renderMermaid(ue,U=this.DEFAULT_MERMAID_OPTIONS){if(!(0,w.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const Oe=ue.querySelectorAll(".mermaid");0!==Oe.length&&(mermaid.initialize(U),mermaid.run({nodes:Oe}))}trimIndentation(ue){if(!ue)return"";let U;return ue.split("\n").map(Oe=>{let Ue=U;return Oe.length>0&&(Ue=isNaN(Ue)?Oe.search(/\S|$/):Math.min(Oe.search(/\S|$/),Ue)),isNaN(U)&&(U=Ue),Ue?Oe.substring(Ue):Oe}).join("\n")}static#e=this.\u0275fac=function(U){return new(U||It)(N.KVO(Ct,8),N.KVO(le,8),N.KVO(Xe,8),N.KVO(N.Agw),N.KVO(Ze),N.KVO(Pe.Qq,8),N.KVO(Qe.up))};static#t=this.\u0275prov=N.jDH({token:It,factory:It.\u0275fac})}return It})(),Fe=(()=>{class It{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(ue){this._disableSanitizer=this.coerceBooleanProperty(ue)}get inline(){return this._inline}set inline(ue){this._inline=this.coerceBooleanProperty(ue)}get clipboard(){return this._clipboard}set clipboard(ue){this._clipboard=this.coerceBooleanProperty(ue)}get emoji(){return this._emoji}set emoji(ue){this._emoji=this.coerceBooleanProperty(ue)}get katex(){return this._katex}set katex(ue){this._katex=this.coerceBooleanProperty(ue)}get mermaid(){return this._mermaid}set mermaid(ue){this._mermaid=this.coerceBooleanProperty(ue)}get lineHighlight(){return this._lineHighlight}set lineHighlight(ue){this._lineHighlight=this.coerceBooleanProperty(ue)}get lineNumbers(){return this._lineNumbers}set lineNumbers(ue){this._lineNumbers=this.coerceBooleanProperty(ue)}get commandLine(){return this._commandLine}set commandLine(ue){this._commandLine=this.coerceBooleanProperty(ue)}constructor(ue,U,Oe){this.element=ue,this.markdownService=U,this.viewContainerRef=Oe,this.error=new N.bkB,this.load=new N.bkB,this.ready=new N.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new v.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,oe.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(ue,U=!1){var Oe=this;return(0,p.A)(function*(){const Ue={decodeHtml:U,inline:Oe.inline,emoji:Oe.emoji,mermaid:Oe.mermaid,disableSanitizer:Oe.disableSanitizer},$e={clipboard:Oe.clipboard,clipboardOptions:{buttonComponent:Oe.clipboardButtonComponent,buttonTemplate:Oe.clipboardButtonTemplate},katex:Oe.katex,katexOptions:Oe.katexOptions,mermaid:Oe.mermaid,mermaidOptions:Oe.mermaidOptions},Ve=yield Oe.markdownService.parse(ue,Ue);Oe.element.nativeElement.innerHTML=Ve,Oe.handlePlugins(),Oe.markdownService.render(Oe.element.nativeElement,$e,Oe.viewContainerRef),Oe.ready.emit()})()}coerceBooleanProperty(ue){return null!=ue&&"false"!=`${String(ue)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:ue=>{this.render(ue).then(()=>{this.load.emit(ue)})},error:ue=>this.error.emit(ue)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,at.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,at.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(ue,U){const Oe=ue.querySelectorAll("pre");for(let Ue=0;Ue<Oe.length;Ue++){const $e=U instanceof Array?U:[U];Oe.item(Ue).classList.add(...$e)}}setPluginOptions(ue,U){const Oe=ue.querySelectorAll("pre");for(let Ue=0;Ue<Oe.length;
1Ue++)Object.keys(U).forEach($e=>{const Ve=U[$e];if(Ve){const lt=this.toLispCase($e);Oe.item(Ue).setAttribute(lt,Ve.toString())}})}toLispCase(ue){const U=ue.match(/([A-Z])/g);if(!U)return ue;let Oe=ue.toString();for(let Ue=0,$e=U.length;Ue<$e;Ue++)Oe=Oe.replace(new RegExp(U[Ue]),"-"+U[Ue].toLowerCase());return"-"===Oe.slice(0,1)&&(Oe=Oe.slice(1)),Oe}static#e=this.\u0275fac=function(U){return new(U||It)(N.rXU(N.aKT),N.rXU(Je),N.rXU(N.c1b))};static#t=this.\u0275cmp=N.VBU({type:It,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},standalone:!0,features:[N.OA$,N.aNF],ngContentSelectors:ht,decls:1,vars:0,template:function(U,Oe){1&U&&(N.NAR(),N.SdG(0))},encapsulation:2})}return It})();function ft(It){return[Je,It?.loader??[],It?.clipboardOptions??[],It?.markedOptions??[],{provide:le,useValue:It?.markedExtensions??[]},{provide:Ze,useValue:It?.sanitize??N.WPN.HTML}]}let rt=(()=>{class It{static forRoot(ue){return{ngModule:It,providers:[ft(ue)]}}static forChild(){return{ngModule:It}}static#e=this.\u0275fac=function(U){return new(U||It)};static#t=this.\u0275mod=N.$C({type:It});static#n=this.\u0275inj=N.G2t({imports:[w.MD]})}return It})();var Ot;!function(It){let on;var Oe;let ue,U;(Oe=on=It.SecurityLevel||(It.SecurityLevel={})).Strict="strict",Oe.Loose="loose",Oe.Antiscript="antiscript",Oe.Sandbox="sandbox",function(Oe){Oe.Base="base",Oe.Forest="forest",Oe.Dark="dark",Oe.Default="default",Oe.Neutral="neutral"}(ue=It.Theme||(It.Theme={})),function(Oe){Oe[Oe.Debug=1]="Debug",Oe[Oe.Info=2]="Info",Oe[Oe.Warn=3]="Warn",Oe[Oe.Error=4]="Error",Oe[Oe.Fatal=5]="Fatal"}(U=It.LogLevel||(It.LogLevel={}))}(Ot||(Ot={}))},5794:(en,Me,R)=>{"use strict";R.d(Me,{_B:()=>Te,tw:()=>Et});var p=R(4438),w=R(9969),N=R(177),v=R(1413),ee=R(345);const l=["toast-component",""];function W(ze,ft){if(1&ze){const Re=p.RV6();p.j41(0,"button",5),p.bIt("click",function(){p.eBV(Re);const Ot=p.XpG();return p.Njj(Ot.remove())}),p.j41(1,"span",6),p.EFF(2,"\xd7"),p.k0s()()}}function B(ze,ft){if(1&ze&&(p.qex(0),p.EFF(1),p.bVm()),2&ze){const Re=p.XpG(2);p.R7$(),p.SpI("[",Re.duplicatesCount+1,"]")}}function T(ze,ft){if(1&ze&&(p.j41(0,"div"),p.EFF(1),p.DNE(2,B,2,1,"ng-container",4),p.k0s()),2&ze){const Re=p.XpG();p.HbH(Re.options.titleClass),p.BMQ("aria-label",Re.title),p.R7$(),p.SpI(" ",Re.title," "),p.R7$(),p.Y8G("ngIf",Re.duplicatesCount)}}function e(ze,ft){if(1&ze&&p.nrm(0,"div",7),2&ze){const Re=p.XpG();p.HbH(Re.options.messageClass),p.Y8G("innerHTML",Re.message,p.npT)}}function K(ze,ft){if(1&ze&&(p.j41(0,"div",8),p.EFF(1),p.k0s()),2&ze){const Re=p.XpG();p.HbH(Re.options.messageClass),p.BMQ("aria-label",Re.message),p.R7$(),p.SpI(" ",Re.message," ")}}function H(ze,ft){if(1&ze&&(p.j41(0,"div"),p.nrm(1,"div",9),p.k0s()),2&ze){const Re=p.XpG();p.R7$(),p.xc7("width",Re.width+"%")}}class ot{_attachedHost;component;viewContainerRef;injector;constructor(ft,Re){this.component=ft,this.injector=Re}attach(ft,Re){return this._attachedHost=ft,ft.attach(this,Re)}detach(){const ft=this._attachedHost;if(ft)return this._attachedHost=void 0,ft.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(ft){this._attachedHost=ft}}class gt{_attachedPortal;_disposeFn;attach(ft,Re){return this._attachedPortal=ft,this.attachComponentPortal(ft,Re)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(ft){this._disposeFn=ft}}class je{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new v.B;_activate=new v.B;_manualClose=new v.B;_resetTimeout=new v.B;_countDuplicate=new v.B;constructor(ft){this._overlayRef=ft}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}
1onDuplicate(ft,Re){ft&&this._resetTimeout.next(),Re&&this._countDuplicate.next(++this.duplicatesCount)}}class Ct{toastId;config;message;title;toastType;toastRef;_onTap=new v.B;_onAction=new v.B;constructor(ft,Re,rt,Ot,It,on){this.toastId=ft,this.config=Re,this.message=rt,this.title=Ot,this.toastType=It,this.toastRef=on,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(ft){this._onAction.next(ft)}onAction(){return this._onAction.asObservable()}}const We=new p.nKC("ToastConfig");class at extends gt{_hostDomElement;_componentFactoryResolver;_appRef;constructor(ft,Re,rt){super(),this._hostDomElement=ft,this._componentFactoryResolver=Re,this._appRef=rt}attachComponentPortal(ft,Re){const rt=this._componentFactoryResolver.resolveComponentFactory(ft.component);let Ot;return Ot=rt.create(ft.injector),this._appRef.attachView(Ot.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ot.hostView),Ot.destroy()}),Re?this._hostDomElement.insertBefore(this._getComponentRootNode(Ot),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ot)),Ot}_getComponentRootNode(ft){return ft.hostView.rootNodes[0]}}let le=(()=>{class ze{_document=(0,p.WQX)(N.qQ);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Re=this._document.createElement("div");Re.classList.add("overlay-container"),Re.setAttribute("aria-live","polite"),this._document.body.appendChild(Re),this._containerElement=Re}static \u0275fac=function(rt){return new(rt||ze)};static \u0275prov=p.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})();class Xe{_portalHost;constructor(ft){this._portalHost=ft}attach(ft,Re=!0){return this._portalHost.attach(ft,Re)}detach(){return this._portalHost.detach()}}let Mt=(()=>{class ze{_overlayContainer=(0,p.WQX)(le);_componentFactoryResolver=(0,p.WQX)(p.OM3);_appRef=(0,p.WQX)(p.o8S);_document=(0,p.WQX)(N.qQ);_paneElements=new Map;create(Re,rt){return this._createOverlayRef(this.getPaneElement(Re,rt))}getPaneElement(Re="",rt){return this._paneElements.get(rt)||this._paneElements.set(rt,{}),this._paneElements.get(rt)[Re]||(this._paneElements.get(rt)[Re]=this._createPaneElement(Re,rt)),this._paneElements.get(rt)[Re]}_createPaneElement(Re,rt){const Ot=this._document.createElement("div");return Ot.id="toast-container",Ot.classList.add(Re),Ot.classList.add("toast-container"),rt?rt.getContainerElement().appendChild(Ot):this._overlayContainer.getContainerElement().appendChild(Ot),Ot}_createPortalHost(Re){return new at(Re,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Re){return new Xe(this._createPortalHost(Re))}static \u0275fac=function(rt){return new(rt||ze)};static \u0275prov=p.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})(),Et=(()=>{class ze{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(Re,rt,Ot,It,on){this.overlay=rt,this._injector=Ot,this.sanitizer=It,this.ngZone=on,this.toastrConfig={...Re.default,...Re.config},Re.config.iconClasses&&(this.toastrConfig.iconClasses={...Re.default.iconClasses,...Re.config.iconClasses})}show(Re,rt,Ot={},It=""){return this._preBuildNotification(It,Re,rt,this.applyConfig(Ot))}success(Re,rt,Ot={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Re,rt,this.applyConfig(Ot))}error(Re,rt,Ot={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Re,rt,this.applyConfig(Ot))}info(Re,rt,Ot={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Re,rt,this.applyConfig(Ot))}warning(Re,rt,Ot={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Re,rt,this.applyConfig(Ot))}clear(Re){for(const rt of this.toasts)if(void 0!==Re){if(rt.toastId===Re)return void rt.toastRef.manualClose()}else rt.toastRef.manualClose()}remove(Re){const rt=this._findToast(Re);
1if(!rt||(rt.activeToast.toastRef.close(),this.toasts.splice(rt.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Ot=this.toasts[this.currentlyActive].toastRef;Ot.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ot.activate())}return!0}findDuplicate(Re="",rt="",Ot,It){const{includeTitleDuplicates:on}=this.toastrConfig;for(const ue of this.toasts)if((!on||on&&ue.title===Re)&&ue.message===rt)return ue.toastRef.onDuplicate(Ot,It),ue;return null}applyConfig(Re={}){return{...this.toastrConfig,...Re}}_findToast(Re){for(let rt=0;rt<this.toasts.length;rt++)if(this.toasts[rt].toastId===Re)return{index:rt,activeToast:this.toasts[rt]};return null}_preBuildNotification(Re,rt,Ot,It){return It.onActivateTick?this.ngZone.run(()=>this._buildNotification(Re,rt,Ot,It)):this._buildNotification(Re,rt,Ot,It)}_buildNotification(Re,rt,Ot,It){if(!It.toastComponent)throw new Error("toastComponent required");const on=this.findDuplicate(Ot,rt,this.toastrConfig.resetTimeoutOnDuplicate&&It.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ot||rt)&&this.toastrConfig.preventDuplicates&&null!==on)return on;this.previousToastMessage=rt;let ue=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(ue=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const U=this.overlay.create(It.positionClass,this.overlayContainer);this.index=this.index+1;let Oe=rt;rt&&It.enableHtml&&(Oe=this.sanitizer.sanitize(p.WPN.HTML,rt));const Ue=new je(U),$e=new Ct(this.index,It,Oe,Ot,Re,Ue),lt=p.zZn.create({providers:[{provide:Ct,useValue:$e}],parent:this._injector}),Rt=new ot(It.toastComponent,lt),nt=U.attach(Rt,It.newestOnTop);Ue.componentInstance=nt.instance;const xt={toastId:this.index,title:Ot||"",message:rt||"",toastRef:Ue,onShown:Ue.afterActivate(),onHidden:Ue.afterClosed(),onTap:$e.onTap(),onAction:$e.onAction(),portal:nt};return ue||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{xt.toastRef.activate()})),this.toasts.push(xt),xt}static \u0275fac=function(rt){return new(rt||ze)(p.KVO(We),p.KVO(Mt),p.KVO(p.zZn),p.KVO(ee.up),p.KVO(p.SKi))};static \u0275prov=p.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})();const ct={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class ze{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(Re,rt,Ot){this.toastrService=Re,this.toastPackage=rt,this.ngZone=Ot,this.message=rt.message,this.title=rt.title,this.options=rt.config,this.originalTimeout=rt.config.timeOut,this.toastClasses=`${rt.toastType} ${rt.config.toastClass}`,this.sub=rt.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=rt.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=rt.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=rt.toastRef.countDuplicate().subscribe(It=>{this.duplicatesCount=It}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Re=(new Date).getTime();this.width=(this.hideTime-Re)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0
1),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(Re,rt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Re),rt)):this.timeout=setTimeout(()=>Re(),rt)}outsideInterval(Re,rt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Re),rt)):this.intervalId=setInterval(()=>Re(),rt)}runInsideAngular(Re){this.ngZone?this.ngZone.run(()=>Re()):Re()}static \u0275fac=function(rt){return new(rt||ze)(p.rXU(Et),p.rXU(Ct),p.rXU(p.SKi))};static \u0275cmp=p.VBU({type:ze,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(rt,Ot){1&rt&&p.bIt("click",function(){return Ot.tapToast()})("mouseenter",function(){return Ot.stickAround()})("mouseleave",function(){return Ot.delayedHideToast()}),2&rt&&(p.zvX("@flyInOut",Ot.state),p.HbH(Ot.toastClasses),p.xc7("display",Ot.displayStyle))},standalone:!0,features:[p.aNF],attrs:l,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(rt,Ot){1&rt&&p.DNE(0,W,3,0,"button",0)(1,T,3,5,"div",1)(2,e,1,3,"div",2)(3,K,2,4,"div",3)(4,H,2,2,"div",4),2&rt&&(p.Y8G("ngIf",Ot.options.closeButton),p.R7$(),p.Y8G("ngIf",Ot.title),p.R7$(),p.Y8G("ngIf",Ot.message&&Ot.options.enableHtml),p.R7$(),p.Y8G("ngIf",Ot.message&&!Ot.options.enableHtml),p.R7$(),p.Y8G("ngIf",Ot.options.progressBar))},dependencies:[N.bT],encapsulation:2,data:{animation:[(0,w.hZ)("flyInOut",[(0,w.wk)("inactive",(0,w.iF)({opacity:0})),(0,w.wk)("active",(0,w.iF)({opacity:1})),(0,w.wk)("removed",(0,w.iF)({opacity:0})),(0,w.kY)("inactive => active",(0,w.i0)("{{ easeTime }}ms {{ easing }}")),(0,w.kY)("active => removed",(0,w.i0)("{{ easeTime }}ms {{ easing }}"))])]}})}return ze})()},Gt=(ze={})=>(0,p.EmA)([{provide:We,useValue:{default:ct,config:ze}}]);let Te=(()=>{class ze{static forRoot(Re={}){return{ngModule:ze,providers:[Gt(Re)]}}static \u0275fac=function(rt){return new(rt||ze)};static \u0275mod=p.$C({type:ze});static \u0275inj=p.G2t({})}return ze})()},467:(en,Me,R)=>{"use strict";function p(N,v,ee,l,W,B,T){try{var e=N[B](T),K=e.value}catch(H){return void ee(H)}e.done?v(K):Promise.resolve(K).then(l,W)}function w(N){return function(){var v=this,ee=arguments;return new Promise(function(l,W){var B=N.apply(v,ee);function T(K){p(B,l,W,T,e,"next",K)}function e(K){p(B,l,W,T,e,"throw",K)}T(void 0)})}}R.d(Me,{A:()=>w})},1635:(en,Me,R)=>{"use strict";function ee(Ne,Je,Fe,ze){var rt,ft=arguments.length,Re=ft<3?Je:null===ze?ze=Object.getOwnPropertyDescriptor(Je,Fe):ze;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Re=Reflect.decorate(Ne,Je,Fe,ze);else for(var Ot=Ne.length-1;Ot>=0;Ot--)(rt=Ne[Ot])&&(Re=(ft<3?rt(Re):ft>3?rt(Je,Fe,Re):rt(Je,Fe))||Re);return ft>3&&Re&&Object.defineProperty(Je,Fe,Re),Re}function K(Ne,Je){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Ne,Je)}function H(Ne,Je,Fe,ze){return new(Fe||(Fe=Promise))(function(Re,rt){function Ot(ue){try{on(ze.next(ue))}catch(U){rt(U)}}function It(ue){try{on(ze.throw(ue))}catch(U){rt(U)}}function on(ue){ue.done?Re(ue.value):function ft(Re){return Re instanceof Fe?Re:new Fe(function(rt){rt(Re)}
vendor: 1,725 bytes, line 1
1)}(ue.value).then(Ot,It)}on((ze=ze.apply(Ne,Je||[])).next())})}function gt(Ne){return this instanceof gt?(this.v=Ne,this):new gt(Ne)}function je(Ne,Je,Fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ft,ze=Fe.apply(Ne,Je||[]),Re=[];return ft={},rt("next"),rt("throw"),rt("return"),ft[Symbol.asyncIterator]=function(){return this},ft;function rt(Oe){ze[Oe]&&(ft[Oe]=function(Ue){return new Promise(function($e,Ve){Re.push([Oe,Ue,$e,Ve])>1||Ot(Oe,Ue)})})}function Ot(Oe,Ue){try{!function It(Oe){Oe.value instanceof gt?Promise.resolve(Oe.value.v).then(on,ue):U(Re[0][2],Oe)}(ze[Oe](Ue))}catch($e){U(Re[0][3],$e)}}function on(Oe){Ot("next",Oe)}function ue(Oe){Ot("throw",Oe)}function U(Oe,Ue){Oe(Ue),Re.shift(),Re.length&&Ot(Re[0][0],Re[0][1])}}function kt(Ne){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Fe,Je=Ne[Symbol.asyncIterator];return Je?Je.call(Ne):(Ne=function we(Ne){var Je="function"==typeof Symbol&&Symbol.iterator,Fe=Je&&Ne[Je],ze=0;if(Fe)return Fe.call(Ne);if(Ne&&"number"==typeof Ne.length)return{next:function(){return Ne&&ze>=Ne.length&&(Ne=void 0),{value:Ne&&Ne[ze++],done:!Ne}}};throw new TypeError(Je?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ne),Fe={},ze("next"),ze("throw"),ze("return"),Fe[Symbol.asyncIterator]=function(){return this},Fe);function ze(Re){Fe[Re]=Ne[Re]&&function(rt){return new Promise(function(Ot,It){!function ft(Re,rt,Ot,It){Promise.resolve(It).then(function(on){Re({value:on,done:Ot})},rt)}(Ot,It,(rt=Ne[Re](rt)).done,rt.value)})}}}R.d(Me,{AQ:()=>je,Cg:()=>ee,N3:()=>gt,Sn:()=>K,sH:()=>H,xN:()=>kt}),"function"==typeof SuppressedError&&SuppressedError}},en=>{en(en.s=8590)}]);

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.