PageSourceSearch

https://portal.privacypillar.com/src_app_ropa_process-activities_p…ss-activities_module_ts.13bbf88d16205341.js

js privacypillar.com collected 2026-09-24 09:08:59 UTC 585,055 bytes, 121 lines download raw bytes

1(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_ropa_process-activities_process-activities_module_ts"],{36055:(W4,o4,P1)=>{"use strict";P1.r(o4),P1.d(o4,{ProcessingActivityModule:()=>s0});var v2=P1(36895),m2=P1(51692),s2=P1(59241),s4=P1(96923),Q4=P1(38611),I4=P1(82778),N1=P1(24006),b3=P1(22833),f4=P1(70713),_4=P1(36358),S4=P1(18178),P4=P1(74146),K4=P1(33169),$4=P1(74642),y3=P1(97392),K3=P1(35569),X4=P1(79723),t3=P1(34466),L3=P1(22962),A3=P1(3848),z4=P1(86257),H3=P1(46162),w4=P1(51572),$2=P1(28255),j1=P1(63961),B2=P1(42111),$3=P1(24028),X3=P1(90717),F3=P1(45221),f2=P1(87545),I3=P1(80013),e3=P1(75778),c3=P1(2994),t2=P1(27221),t6=P1(8929),a2=P1(61737),X1=P1(92340),e=P1(94650),M4=P1(62430);const S3=[{label:"Id",key:"id",columnType:"Link"},{label:"Name",key:"processing_activity.processing_activity_name",columnType:"CustomObject"},{label:"Description",key:"processing_activity.description",columnType:"CustomObject"},{label:"Created At",key:"created_at",columnType:"Date"},{label:"Last Updated",key:"updated_at",columnType:"Date"},{label:"Actions",key:"",columnType:"Actions"}];let e6=(()=>{const M=class extends M4.a{constructor(){super({oid:"",pid:"",activitiesList:[],currentPage:1,pageSize:10,totalRecords:0,searchText:"",columList:S3})}};let t=M;return M.\u0275fac=function(n){return new(n||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),t})();var x4=P1(80529),V4=P1(46262);let n3=(()=>{const M=class{constructor(c,n){this.http=c,this.loki=n,this.ropaBasePath="/processing_activities"}getActivitiesList(c,n=1,m=10,U=""){let t1=`${X1.N.keyStoneUrl}${this.ropaBasePath}/${c}?page=${n}&limit=${m}`;return U&&U.trim()&&(t1+=`&search=${encodeURIComponent(U)}`),this.http.get(t1).pipe((0,t2.K)(n1=>(0,a2._)(n1)))}deleteActivity(c,n){return this.http.delete(`${X1.N.keyStoneUrl}${this.ropaBasePath}/${c}/${n}`).pipe((0,t2.K)(m=>(0,a2._)(m)))}bulkUploadActivities(c,n){const m=new FormData;return m.append("file",n),this.http.post(`${X1.N.apiUrl}/processing-activity/bulk-upload/${c}`,m).pipe((0,t2.K)(U=>(0,a2._)(U)))}downloadRopaTemplate(c){return this.http.get(`${X1.N.keyStoneUrl}${this.ropaBasePath}/download-ropa-template/${c}`,{responseType:"blob"}).pipe((0,t2.K)(n=>(0,a2._)(n)))}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.LFG(x4.eN),e.LFG(V4.L))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),t})();var a3=P1(11481),B4=P1(29175),r3=P1(98698);let N4=(()=>{const M=class{constructor(c,n,m,U,t1,n1,v1,w1,F1){this.activatedRouter=c,this.processActivitiesListStateService=n,this.router=m,this.processActivitiesListApiService=U,this.messageService=t1,this.confirmationService=n1,this.titleService=v1,this.permissionService=w1,this.authService=F1,this.searchSubject=new t6.xQ}init(){this.titleService.setTitle("Activities - "+X1.N.portalPrefix),this.activatedRouter.queryParams.pipe((0,f2.w)(c=>(this.processActivitiesListStateService.updateState({oid:c.oid,pid:c.pid}),this.activatedRouter.params)),(0,f2.w)(c=>(this.processActivitiesListStateService.updateState({entityType:c?.entityType}),this.refreshActivitiesList()))).subscribe(),this.initializeSearch()}initializeSearch(){this.searchSubject.pipe((0,I3.b)(500),(0,e3.x)(),(0,c3.b)(c=>{this.processActivitiesListStateService.updateState({searchText:c,currentPage:1})}),(0,f2.w)(()=>this.refreshActivitiesList())).subscribe()}searchActivities(c){this.searchSubject.next(c)}getState(){return this.processActivitiesListStateService.getState()}getStateObs(){return this.processActivitiesListStateService.getStateObs()}refreshActivitiesList(){const c=this.processActivitiesListStateService.getState();return this.processActivitiesListApiService.getActivitiesList(c.oid,c.currentPage,c.pageSize,c.searchText).pipe((0,c3.b)(n=>{this.processActivitiesListStateService.updateState({activitiesList:n.data||[],totalRecords:n.total||0})}))}loadPage(c,n){this.processActivitiesListStateService.updateState({currentPage:c,pageSize:n}),this.refreshActivitiesList().subscribe()}hasPermission(c){return this.permissionService.getPermissionsByModuleName("RoPA Management")?.access.includes(c)}
1addActivity(){this.hasPermission("create")&&this.router.navigate(["/ropa/activity/","create"],{queryParams:{oid:this.processActivitiesListStateService.getState().oid,pid:this.processActivitiesListStateService.getState().pid}})}viewDetails(c){this.hasPermission("edit")&&this.router.navigate(["/ropa/activity/","edit",c.id],{queryParams:{oid:this.processActivitiesListStateService.getState().oid,pid:this.processActivitiesListStateService.getState().pid}})}viewDataFlowDiagram(c){this.router.navigate(["/ropa/activity/diagram",c.id],{queryParams:{oid:this.processActivitiesListStateService.getState().oid,pid:this.processActivitiesListStateService.getState().pid}})}viewOverview(c){this.hasPermission("view")&&this.router.navigate(["/ropa/activity/","overview",c.id],{queryParams:{oid:this.processActivitiesListStateService.getState().oid,pid:this.processActivitiesListStateService.getState().pid}})}deleteActivity(c){this.hasPermission("delete")&&this.confirmationService.confirm({message:`Are you sure you want to delete this activity ${c.processing_activity.processing_activity_name}?`,header:"Confirmation",icon:"pi pi-exclamation-triangle",acceptIcon:"none",rejectIcon:"none",rejectButtonStyleClass:"p-button-text",accept:()=>{this.processActivitiesListApiService.deleteActivity(this.processActivitiesListStateService.getState().oid,c.id).subscribe({next:()=>{this.messageService.add({severity:"success",summary:"Success",detail:"Activity deleted successfully"}),this.refreshActivitiesList().subscribe()},error:n=>{this.messageService.add({severity:"error",summary:"Error",detail:"Error in deleting Activity"})}})}})}downloadRopaTemplate(){const c=this.processActivitiesListStateService.getState().oid;return this.processActivitiesListApiService.downloadRopaTemplate(c)}importActivities(c){const n=this.processActivitiesListStateService.getState(),m=n.oid||n.pid,U=n.oid&&n.oid!==m?n.oid:null;return this.processActivitiesListApiService.bulkUploadActivities(m,c).pipe((0,t2.K)(t1=>404===t1?.status&&U?this.processActivitiesListApiService.bulkUploadActivities(U,c):(0,a2._)(t1)),(0,c3.b)(()=>{this.messageService.add({severity:"success",summary:"Success",detail:"Request for bulk upload has been submitted."}),this.refreshActivitiesList().subscribe(),this.authService.notificationUpdated.next(!0)}),(0,t2.K)(t1=>(this.messageService.add({severity:"error",summary:"Error",detail:t1?.error?.message||t1?.error?.error||`${t1?.status||""} ${t1?.statusText||""}`.trim()||"Unable to perform the bulk upload please check the template."}),(0,a2._)(t1))))}ngOnDestroy(){this.processActivitiesListStateService.updateState({currentPage:1,pageSize:10,searchText:"",totalRecords:0,activitiesList:[]}),this.searchSubject?.complete()}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.LFG(m2.gz),e.LFG(e6),e.LFG(m2.F0),e.LFG(n3),e.LFG(B2.ez),e.LFG(B2.YP),e.LFG
1(a3.Dx),e.LFG(B4.$),e.LFG(r3.$))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),t})();var c6=P1(20388),C4=P1(37407),P3=P1(32320);function n6(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"p-button",20),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.addActivity())}),e.qZA()}if(2&t){const o=e.oxw(2);e.Q6J("disabled",!o.hasPermission("create"))("title",o.getPermissionTooltip("create"))}}function A2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2),m=e.MAs(3);return e.KtG(n.openBulkUploadModal(m))}),e._UZ(1,"img",22),e.qZA()}if(2&t){const o=e.oxw(2);e.Q6J("disabled",!o.hasPermission("create"))}}function N2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",23)(1,"h5",24),e._uU(2,"Manage Activities"),e.qZA(),e.TgZ(3,"span",25),e._UZ(4,"i",26),e.TgZ(5,"input",27),e.NdJ("input",function(n){e.CHM(o);const m=e.oxw(2);return e.KtG(m.onSearch(n))}),e.qZA()()()}}function a6(t,M){if(1&t&&(e.TgZ(0,"th"),e._uU(1),e.qZA()),2&t){const o=M.$implicit;e.xp6(1),e.hij(" ",o.label," ")}}function r6(t,M){if(1&t&&(e.TgZ(0,"tr"),e.YNc(1,a6,2,1,"th",28),e.qZA()),2&t){const o=M.$implicit;e.xp6(1),e.Q6J("ngForOf",o)}}function V3(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"td",33),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2).$implicit,m=e.oxw(2);return e.KtG(m.viewOverview(n))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&t){const o=e.oxw().$implicit,c=e.oxw().$implicit;e.xp6(2),e.hij(" ",c[o.key],"")}}function i3(t,M){if(1&t&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw().$implicit;e.xp6(1),e.hij(" ",c[o.key]?c[o.key]:"- - - -"," ")}}function i6(t,M){if(1&t&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.hij(" ",n.resolveNested(c,o.key)||"- - - -"," ")}}function o3(t,M){if(1&t&&(e.TgZ(0,"td"),e._uU(1),e.ALo(2,"date"),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,c[o.key],"short")," ")}}function B3(t,M){if(1&t){const o=e.EpF();e.ynx(0),e.TgZ(1,"span",37)(2,"button",38),e.NdJ("click",function(){const m=e.CHM(o).$implicit,U=e.oxw(3).$implicit,t1=e.oxw(2);return e.KtG(t1.menuItemClick(m.value,U))}),e.TgZ(3,"span"),e._uU(4),e.qZA()()(),e.BQk()}if(2&t){const o=M.$implicit,c=e.oxw(5);e.xp6(1),e.s9C("title",c.getPermissionTooltip(o.permissionName)),e.xp6(1),e.Q6J("disabled",!c.hasPermission(o.permissionName)),e.xp6(2),e.Oqu(o.label)}}function O4(t,M){if(1&t&&(e.TgZ(0,"td")(1,"button",35)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,36),e.YNc(6,B3,5,3,"ng-container",28),e.qZA()()),2&t){const o=e.MAs(5),c=e.oxw(4);e.xp6(1),e.Q6J("matMenuTriggerFor",o),e.xp6(5),e.Q6J("ngForOf",c.menuItems)}}function s3(t,M){if(1&t&&(e.ynx(0)(1,29),e.YNc(2,V3,3,1,"td",30),e.YNc(3,i3,2,1,"td",31),e.YNc(4,i6,2,1,"td",32),e.YNc(5,o3,3,4,"td",32),e.YNc(6,O4,7,2,"td",32),e.BQk()()),2&t){const o=M.$implicit;e.xp6(1),e.Q6J("ngSwitch",o.columnType),e.xp6(1),e.Q6J("ngSwitchCase","Link"),e.xp6(1),e.Q6J("ngSwitchCase","Text"),e.xp6(1),e.Q6J("ngSwitchCase","CustomObject"),e.xp6(1),e.Q6J("ngSwitchCase","Date"),e.xp6(1),e.Q6J("ngSwitchCase","Actions")}}function l3(t,M){if(1&t&&(e.TgZ(0,"tr"),e.YNc(1,s3,7,6,"ng-container",28),e.qZA()),2&t){const o=M.columns;e.xp6(1),e.Q6J("ngForOf",o)}}function $1(t,M){if(1&t&&(e.TgZ(0,"div",39),e._uU(1),e.qZA()),2&t){const o=e.oxw().ngIf;e.xp6(1),e.hij(" In total there are ",o.activitiesList?o.activitiesList.length:0," activities. ")}}const o6=function(t,M){return{oid:t,pid:M}},s6=function(){return[10,20,50,100]},l6=function(){return{width:"450px"}};function j2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div")(1,"div",2)(2,"div",3)(3,"div")(4,"nav",4)(5,"ol",5)(6,"li",6)(7,"a",7),e._uU(8,"Home"),e.qZA()(),e.TgZ(9,"li",8),e._uU(10,"activties"),e.qZA()()()()()(),e.TgZ(11,"div",9)(12,"p-toolbar",10),e.YNc(13,n6,1,2,"ng-template",11),e.YNc(14,A2,2,1,"ng-template",12),e.qZA(),e.TgZ(15,"p-table",13,14),e.NdJ("onPage",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.onPageChange(n))}),e.YNc(17,N2,6,0,"ng-template",15),e.YNc(18,r6,2,1,"ng-template",16),e.YNc(19,l3,2,1,"ng-template",17),e.YNc(20,$1,2,1,"ng-template",18),e.qZA(),e._UZ(21,"p-confirmDialog")(22,"p-toast",19),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(7),e.Q6J("queryParams",e.WLB(12,o6,o.oid,o.pid)),e.xp6(8),e.Q6J("value",o.activitiesList)("lazy",!0)("paginator",!0)("rows",o.pageSize)("totalRecords",o.totalRecords)("rowsPerPageOptions",e.DdM(15,s6))("showCurrentPageReport",!0)("rowHover",!0)("columns",o.columList),e.xp6(6),e.Akn(e.DdM(16,l6))}}function X2(t,M){1&t&&(e.TgZ(0,"p",56),e._uU(1," Selected file format is not supported. Only .xlsx, and .xls extension files are supported. "),e.qZA())}function G4(t,M){1&t&&e._UZ(0,"span",57)}function b4(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",40)(1,"div",41)(2,"h4",42),e._uU(3," Import Processing Activities "),e.qZA(),e.TgZ(4,"button",43),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.closeBulkUploadModal())}),e.TgZ(5,"span",44),e._uU(6,"\xd7"),e.qZA()()(),e.TgZ(7,"div",45)(8,"div",46),e._uU(9," Note : The selected file must be in specific format "),e.TgZ(10,"a",47),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.downloadRopaTemplate())}),e._uU(11),e.qZA(),e._uU(12," and should be saved as XLSX/XLS "),e.qZA(),e.TgZ(13,"div",48)(14,"input",49),e.NdJ("change",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.handleFileInput(n.target.files))}),e.qZA(),e.TgZ(15,"label",50),e._uU(16),e.qZA()(),e.YNc(17,X2,2,0,"p",51),e.qZA(),e.TgZ(18,"div",52)(19,"button",53),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.closeBulkUploadModal())}),e._uU(20," Cancel "),e.qZA(),e.TgZ(21,"button",54),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.onBulkUpload())}),e.YNc(22,G4,1,0,"span",55),e._uU(23),e.qZA()()()}if(2&t){const o=e.oxw();e.xp6(4),e.Q6J("disabled",o.isBulkUploading),e.xp6(6),e.ekj("disabled",o.isDownloadingTemplate),e.xp6(1),e.hij(" ",o.isDownloadingTemplate?"Downloading...":"Click to download sample ROPA file"," "),e.xp6(3),e.Q6J("disabled",o.isBulkUploading),e.xp6(2),e.hij(" ",o.fileToUpload?o.fileToUpload.name:"Choose a file to upload"," "),e.xp6(1),e.Q6J("ngIf",o.isInvalidUpload),e.xp6(2),e.Q6J("disabled",o.isBulkUploading),e.xp6(2),e.Q6J("disabled",!o.canBulkUpload),e.xp6(1),e.Q6J("ngIf",o.isBulkUploading),e.xp6(1),e.hij(" ",o.isBulkUploading?"Importing...":"Import"," ")}}let h3=(()=>{const M=class{constructor(c,n,m){this.processActivitiesListActionService=c,this.modalService=n,this.loading=m,this.fileToUpload=null,this.isInvalidUpload=!1,this.isBulkUploading=!1,this.isDownloadingTemplate=!1,this.menuItems=[{label:"Data Flow Diagram",value:"DATA_FLOW_DIAGRAM",permissionName:"view"},{label:"Edit",value:"EDIT",permissionName:"edit"},{label:"Delete",value:"DELETE",permissionName:"delete"}],this.stateObs=this.processActivitiesListActionService.getStateObs()}ngOnInit(){this.processActivitiesListActionService.init()}addActivity(){this.processActivitiesListActionService.addActivity()}downloadRopaTemplate(){this.isDownloadingTemplate||(this.isDownloadingTemplate=!0,this.processActivitiesListActionService.downloadRopaTemplate().subscribe({next:c=>{const n=window.URL.createObjectURL(c),m=document.createElement("a");m.href=n,m.download="ropa_bulk_upload_template.xlsx",m.click(),window.URL.revokeObjectURL(n),this.isDownloadingTemplate=!1},error:()=>{this.isDownloadingTemplate=!1}}))}openBulkUploadModal(c){this.resetBulkUploadState(),this.bulkUploadModalRef=this.modalService.show(c,{animated:!1,keyboard:!1,class:"modal-md"})}closeBulkUploadModal(){this.bulkUploadModalRef?.hide(),this.resetBulkUploadState()}get canBulkUpload(){return null!==this.fileToUpload&&!this.isInvalidUpload&&!this.isBulkUploading}handleFileInput(c){this.fileToUpload=c?.item(0)??null,this.isInvalidUpload=!!this.fileToUpload&&!this.validateFile(this.fileToUpload.name)}onBulkUpload(){const c=this.fileToUpload;null===c||this.isInvalidUpload||this.isBulkUploading||(this.isBulkUploading=!0,this.loading.start(),this.processActivitiesListActionService.importActivities(c).subscribe({next:()=>{this.loading.stop(),this.closeBulkUploadModal()},error:()=>{this.isBulkUploading=!1,this.loading.stop()}}))}viewDetails(c){this.processActivitiesListActionService.viewDetails(c)}viewOverview(c){this.processActivitiesListActionService.viewOverview(c)}menuItemClick(c,n){"DELETE"===c?this.processActivitiesListActionService.deleteActivity(n):"EDIT"===c?this.processActivitiesListActionService.viewDetails(n):("DATA_FLOW_DIAGRAM"===c||"DATA_FLOW_DIAGRAM"===c)&&this.processActivitiesListActionService.viewD
1ataFlowDiagram(n)}resolveNested(c,n){return c&&n?n.split(".").reduce((m,U)=>m&&m[U],c):null}hasPermission(c){return this.processActivitiesListActionService.hasPermission(c)}getPermissionTooltip(c){return this.hasPermission(c)?"":"You don't have permission"}calculateProgress(c){if(!c)return 0;let n=0,m=0;return[c.business_process,c.processing_activity,c.data_storage,c.data_transfer,c.data_retention,c.technical_measures].forEach(t1=>{const n1=this.countSectionFields(t1);n+=n1.total,m+=n1.filled}),0===n?0:Math.round(m/n*100)}countSectionFields(c){let n=0,m=0;return c?(Object.keys(c).forEach(U=>{"id"!==U&&"organization_id"!==U&&"processing_activity_record_id"!==U&&"created_at"!==U&&"updated_at"!==U&&(n++,this.isFilled(c[U])&&m++)}),{total:n,filled:m}):{total:n,filled:m}}isFilled(c){return null!=c&&("string"==typeof c?c.trim().length>0:"boolean"==typeof c?!0===c:Array.isArray(c)?c.length>0:"object"==typeof c&&(!(!c.name&&!c.id)||Object.keys(c).length>0))}onPageChange(c){this.processActivitiesListActionService.loadPage(c.first/c.rows+1,c.rows)}onSearch(c){this.processActivitiesListActionService.searchActivities(c.target.value)}validateFile(c){const n=c.split(".").pop()?.toLowerCase()||"";return"xlsx"===n||"xls"===n}resetBulkUploadState(){this.fileToUpload=null,this.isInvalidUpload=!1,this.isBulkUploading=!1}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.Y36(N4),e.Y36(c6.tT),e.Y36(C4.LA))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-process-activities-page"]],features:[e._Bn([N4])],decls:4,vars:3,consts:[[4,"ngIf"],["bulkUploadModal",""],[1,"col-md-12",2,"margin-bottom","25px","margin-top","15px","margin-left","6.5px"],[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",1,"bredcrub-row",2,"margin-left","-14px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/home/welcome",3,"queryParams"],[1,"breadcrumb-item","active"],[1,"card","m-2","ng-deep-consent-jursidiction-wrapper"],["styleClass","mb-4 gap-2"],["pTemplate","left"],["pTemplate","right"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} activities","dataKey","id",3,"value","lazy","paginator","rows","totalRecords","rowsPerPageOptions","showCurrentPageReport","rowHover","columns","onPage"],["dt",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","summary"],["position","bottom-right"],["severity","success","label"," Add Activity","icon","pi pi-plus",1,"p-button-text","my-custom-btn","mr-2",3,"disabled","title","click"],["type","button","tooltip","Bulk upload processing activities","container","body","placement","top",1,"btn","btn-sm","btn-outline-secondary",3,"disabled","click"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABMklEQVRIid3Vvy4EURTH8Y/lAYTSbkNCo5V4AYk/UWo8gUatkeyqeAylEIVEViMS/1qJV2AbhYgeq3CHyezO36XxS27mzrnnnO+5/2b4r1pBB90CrVUF8FgweWVIFFjUr4u9vwaUglQF9ECGMgKzxpN+SX3HjeTWmK1kAT3AWqwfP5rxgDItU2WPZmlQNHiKCdTRDrZtTGMNH5jEPe4wlQXotwcbOAyJ1vGAE+zjBq9YwAXeQ7+Q4vRkReeYwW54P8IqlnGcNYN+gDqucYVGsG3iBeN4wjPGMBrs0bIWmkE7QBo4C7YmZrGIt2Cbw3ysqFwNcoqSRfbV0gCQQoC4CjvmxdVSHH9NaYBOeKYtyYGfO9SSvlSpP6Ii+5EGyU1eVVux5M3IOPyLgFtfn+9L7ETGTwCcyRbTFlQoAAAAAElFTkSuQmCC","width","24","height","24","alt","Bulk upload processing activities"],[1,"pp-flex","align-items-center","justify-content-between"],[1,"m-0"],[1,"p-input-icon-left"],[1,"pi","pi-search"],["pInputText","","type","text","placeholder","Search...",3,"input"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],[3,"click",4,"ngSwitchCase"],["class","purposes__truncate",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"click"],[1,"purposes__truncate"],["mat-icon-button","",1,"purposes__menu",3,"matMenuTriggerFor"],["menu","matMenu"],[3,"title"],["mat-menu-item","",3,"disabled","click"],[1,"flex","align-items-center","justify-content-between"],["appTheme","",1,"bulk-upload-modal"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"disabled","click"],["aria-hidden","true"],[1,"modal-body"],["role","alert",1,"alert","alert-warning"],[1,"bulk-upload-link",2,"cursor","pointer",3,"click"],[1,"custom-file","mb-0"],["type","file","id","ropaBulkUploadFile",1,"custom-file-input",3,"disabled","change"],["for","ropaBulkUploadFile",1,"custom-file-label"],["class","text-danger mt-1",4,"ngIf"],[1,"modal-footer","bulk-upload-actions"],["type","button",1,"btn","btn-link","tx-decoration-underline","tx-13",3,"disabled","click"],["type","button",1,"btn","btn-sm","btn-success","tx-13","bulk-upload-import-btn",3,"disabled","click"],["class","spinner-border spinner-border-sm mr-1","role","status","aria-hidden","true",4,"ngIf"],[1,"text-danger","mt-1"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","mr-1"]],template:function(n,m){1&n&&(e.YNc(0,j2,23,17,"div",0),e.ALo(1,"async"),e.YNc(2,b4,24,11,"ng-template",null,1,e.W1O)),2&n&&e.Q6J("ngIf",e.lcZ(1,1,m.stateObs))},dependencies:[v2.sg,v2.O5,v2.RF,v2.n9,m2.rH,s4.iA,B2.jx,Q4.zx,I4.o,$2.VK,$2.OP,$2.p6,y3.Hw,X4.FN,t3.Q,H3.o,P3.i9,v2.Ov,v2.uU],styles:[".my-custom-btn .p-button{background-color:#16bf5e;background:#16bf5e;border:1px solid #16bf5e;font-size:small}  .my-custom-btn .p-button:hover{background-color:#16bf5e;background:#16bf5e;border:1px solid #16bf5e;font-size:small}  .mdc-list-item__primary-text{color:#000!important}  .mat-mdc-menu-panel{background-color:#fff!important;z-index:10000000000000000000!important}  .cdk-overlay-container{z-index:10000000!important}  .p-button-icon.p-button-icon-left{margin-right:0rem!important}.purposes__add-button[_ngcontent-%COMP%]{display:flex;justify-content:end;margin:15px}.purposes__menu[_ngcontent-%COMP%]{border:white!important;background-color:#fff!important}.purposes__truncate[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bulk-upload-link[_ngcontent-%COMP%]{color:#22c55e!important}.bulk-upload-link[_ngcontent-%COMP%]:hover{color:#16a34a!important}.bulk-upload-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;
1gap:12px}.bulk-upload-import-btn[_ngcontent-%COMP%]{min-width:88px;color:#fff!important;background-color:#1dab3e!important;border-color:#1dab3e!important}.bulk-upload-import-btn[_ngcontent-%COMP%]:disabled, .bulk-upload-import-btn[disabled][_ngcontent-%COMP%]{cursor:not-allowed!important;pointer-events:auto;opacity:.55;color:#ffffffe6!important;background-color:#8ecf9f!important;border-color:#8ecf9f!important;box-shadow:none!important}.bulk-upload-import-btn[_ngcontent-%COMP%]:disabled:hover, .bulk-upload-import-btn[_ngcontent-%COMP%]:disabled:focus, .bulk-upload-import-btn[_ngcontent-%COMP%]:disabled:active, .bulk-upload-import-btn[disabled][_ngcontent-%COMP%]:hover, .bulk-upload-import-btn[disabled][_ngcontent-%COMP%]:focus, .bulk-upload-import-btn[disabled][_ngcontent-%COMP%]:active{cursor:not-allowed!important;background-color:#8ecf9f!important;border-color:#8ecf9f!important;box-shadow:none!important;outline:none!important}"]}),t})();var O2=P1(591),t4=P1(30567),k4=P1(21086),T4=P1(92198),N3=P1(59973),O3=P1(45194);const l4=["Global","Local","Physical Archive"],G3=["Cloud","On-premises","Hybrid"],h6=["Yes","No"],k3=["Criminal offences","Personal information","Family information","National Id","Other Id","Customer Sales information","Employment information","Financial Information","Education and CV"],k2=["1-100","101-1000","1001-10000","10001-100000","100001-1000000","1000001+"],d6=["1-10","11-50","51-100","101-500",">500"],T3=["The Data Subject","External Source"],a=["GDPR","CCPA","US State Laws","DPDA"],i=[{name:"No Few Consequence",code:0},{name:"Consequence",code:1},{name:"Significant Consequence",code:2},{name:"Difficult Consequence",code:3},{name:"Irreparable Consequence",code:4}],d=[{name:"Very Low Probability",code:0},{name:"Low Probability",code:1},{name:"Moderate Probability",code:2},{name:"High Probability",code:3},{name:"Very High Probability",code:4}];let u=(()=>{const M=class extends M4.a{constructor(){super({oid:"",pid:"",initialLoad:new O2.X(!0),actionType:"",activityId:"",users:[],entityOptions:[],businessAreas:[],countries:O3.od,assetsPurposes:[],distributionAreas:l4,storageType:G3,dataType:k3,dataSubjects:[],policies:[],deletionPeriods:[],securityMeasures:[],yesNo:h6,noOfDataSubjectsOptions:k2,empProcessDataOptions:d6,dataSourcesOptions:T3,dataCategories:[],legalBases:[],legalBasisByRegulation:{},legalBasisGrounds:[],nationalLaws:a,transferBasis:[],entities:[],assetsTypes:[],consequenceLevel:i,probabilityLevel:d,legislation:[],dataAttributes:[],dpoUsers:[],customAttributes:[],documents:[]})}};let t=M;return M.\u0275fac=function(n){return new(n||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),t})();var s=P1(24850);let h=(()=>{const M=class{constructor(c,n){this.http=c,this.loki=n}getEntitiesOptions(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/entity-types`).pipe((0,s.U)(c=>c.filter(n=>!["Vendor","Customer","Company","Supplier","Other","Authority"].includes(n.name)).map(n=>({id:n.id,name:n.name}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getUsers(c){const n=(new x4.LE).set("orgid",c);return this.http.get(`${X1.N.apiUrl}/team_member`,{params:n}).pipe((0,s.U)(m=>m.response.map(U=>({user_id:U.id,email:`${U.user_name} || ${U.user_email}`,role_name:U.role_name}))),(0,t2.K)(m=>(0,a2._)(()=>m)))}getCustomAttributes(c){return this.http.get(`${X1.N.keyStoneUrl}/attributes/${c}`).pipe((0,s.U)(n=>(Array.isArray(n)?n:n?.data||[]).map(m=>({id:m.id,key:m.key,label:m.label,type:m.type,required:m.required,placeholder:m.placeholder||"",options:m.options||[]}))),(0,t2.K)(n=>(0,a2._)(()=>n)))}getEntities(c){return this.http.get(`${X1.N.keyStoneUrl}/entities/${c}`).pipe((0,s.U)(n=>n.map(m=>({id:m.id,name:m.name}))),(0,t2.K)(n=>(0,a2._)(()=>n)))}getAssets(c){return this.http.get(`${X1.N.keyStoneUrl}/systems/${c}`).pipe((0,s.U)(n=>n.map(m=>({id:m.id,name:m.name}))),(0,t2.K)(n=>(0,a2._)(()=>n)))}getTransferTypes(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/transfer-basis`).pipe((0,s.U)(c=>c.map(n=>({id:n.id,name:n.name}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getDataAttributes(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/data-attributes`).pipe((0,s.U)(c=>c.map(n=>({id:n.id,name:n.name}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getBusinessOptions(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/business-areas`).pipe((0,s.U)(c=>c.map(n=>({id:n.id,name:n.name}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getAssestPurposes(){return this.http.get(`${X1.N.keyStoneUrl}
1/defaults/purposes`).pipe((0,s.U)(c=>c.map(n=>({id:n.id,name:n.name}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getDataSubjects(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/data-subjects`).pipe((0,s.U)(c=>c.map(n=>({id:n.id,name:n.name}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getDataCategories(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/data-categories`).pipe((0,s.U)(c=>c.map(n=>({id:n.id,name:n.name,description:n.description}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getLegalBases(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/legal-grounds`).pipe((0,s.U)(c=>(Array.isArray(c)?c:[]).map(n=>({id:n.id,name:n.name,description:n.description,code:n.code}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getLegalBasisByRegulation(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/legal-basis`).pipe((0,t2.K)(c=>(0,a2._)(()=>c)))}getLegistation(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/legislation`).pipe((0,s.U)(c=>c.map(n=>({id:n.id,name:n.name}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getPoliciesOptions(c){return this.http.get(`${X1.N.keyStoneUrl}/policies/${c}`).pipe((0,s.U)(n=>n.map(m=>({id:m.id,name:m.name}))),(0,t2.K)(n=>(0,a2._)(()=>n)))}getDeletionPeriods(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/all-deletion-periods`).pipe((0,s.U)(c=>c.map(n=>({id:n.id,name:n.name}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}getSecurityMeasures(){return this.http.get(`${X1.N.keyStoneUrl}/defaults/security-measures`).pipe((0,s.U)(c=>c.map(n=>({id:n.id,name:n.name}))),(0,t2.K)(c=>(0,a2._)(()=>c)))}createProcessingActivity(c,n){return this.http.post(`${X1.N.keyStoneUrl}/processing_activities/${c}`,n).pipe((0,t2.K)(m=>(0,a2._)(()=>m)))}getActivityDetails(c,n){return this.http.get(`${X1.N.keyStoneUrl}/processing_activities/${c}/${n}`).pipe((0,t2.K)(m=>(0,a2._)(()=>m)))}editActivityDetails(c,n,m){return this.http.put(`${X1.N.keyStoneUrl}/processing_activities/${c}/${n}`,m).pipe((0,t2.K)(U=>(0,a2._)(()=>U)))}getDocuments(c){return this.http.get(`${X1.N.apiUrlV2}/documents/${c}`).pipe((0,s.U)(n=>n?.data||[]),(0,t2.K)(()=>(0,k4.of)([])))}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.LFG(x4.eN),e.LFG(V4.L))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),t})();var f=P1(65056);let z=(()=>{const M=class{constructor(c,n,m,U,t1,n1,v1,w1){this.activatedRouter=c,this.processActivitiesDetailsPageStateService=n,this.processActivitiesDetailsPageApiService=m,this.documentationApiService=U,this.messageService=t1,this.router=n1,this.titleService=v1,this.confirmationService=w1,this.modalConfigForm$=new O2.X(new N1.cw({})),this.modalConfigForm=this.modalConfigForm$.asObservable(),this.subscriptions=[],this.isAutoSaving=!1,this.hasCreatedOnce=!1,this.autoSaveStatus$=new O2.X("idle"),this.lastSavedAt$=new O2.X(null),this.autoSaveStatusObs=this.autoSaveStatus$.asObservable(),this.lastSavedAtObs=this.lastSavedAt$.asObservable(),this.allowedEvidenceExtensions=["pdf","doc","docx","xls","xlsx","ppt","pptx","png","jpg","jpeg"],this.maxEvidenceFileSizeBytes=5242880}get state(){return this.processActivitiesDetailsPageStateService.getState()}toArray(c){return c?Array.isArray(c)?c:[c]:[]}yesNo(c){return"Yes"===c}toYesNo(c){return!0===c?"Yes":!1===c?"No":""}toNullableYesNo(c){return!0===c?"Yes":!1===c?"No":null}lawfulBasisIncludesConsent(c){return this.getLawfulBasisItems(c).some(n=>this.isConsentLawfulBasis(n))}lawfulBasisNeedsLegitimateGround(c){return this.resolveRegulationGroundsByLawfulBasis(c).length>0}getLawfulBasisItems(c){return this.toArray(c).map(n=>{if(!n)return null;const m=this.state.legalBases||[];if("string"==typeof n){const t1=m.find(n1=>String(n1?.name||"").trim().toLowerCase()===n.trim().toLowerCase());return{id:t1?.id??null,name:t1?.name??n,code:t1?.code??(n===M.CONSENT_NAME?M.CONSENT_CODE:null)}}const U=m.find(t1=>n?.id&&t1?.id===n.id||n?.name&&String(t1?.name||"").trim().toLowerCase()===String(n.name).trim().toLowerCase());return{id:n.id??U?.id??null,name:n.name??U?.name??null,code:n.code??U?.code??null}}).filter(n=>!!n?.name)}normalizeCode(c){return String(c||"").trim().toUpperCase().replace(/[^A-Z0-9]/g,"")}isConsentLawfulBasis(c){const n=this.normalizeCode(c?.code),m=String(c?.name||"").trim();return n===M.CONSENT_CODE||m===M.CONSENT_NAME}resolveRegulationKey(c,n,m){const U=this.normalizeCode(n),t1=Object.keys(c||{});if(U){const w1=t1.find(A1=>this.normalizeCode(A1)===U);if(w1)return w1;const F1=t1.find(A1=>this.normalizeCode(A1).includes(U)||U.includes(this.normalizeCode(A1)));if(F1)return F1}const n1=String(m||"").trim().toLowerCase();return n1&&t1.find(w1=>n1.includes(String(w1||"").trim().toLowerCase()))||null}resolveRegulationGroundsByLawfulBasis(c){const n=this.state.legalBasisByRegulation||{},m=this.getLawfulBasisItems(c).filter(n1=>!this.isConsentLawfulBasis(n1));if(!m.length)return[];const U=[];m.forEach(n1=>{const v1=this.resolveRegulationKey(n,n1.code,n1.name);
1v1&&this.toArray(n[v1]).forEach(w1=>{w1?.name&&U.push({id:w1.id,name:w1.name,description:w1.description,regulation:v1})})});const t1=new Map;return U.forEach(n1=>{const v1=n1.id||n1.name;t1.has(v1)||t1.set(v1,n1)}),Array.from(t1.values())}getAllLegalBasisGroundOptions(c){const n=c||{},m=[];Object.keys(n).forEach(t1=>{this.toArray(n[t1]).forEach(n1=>{n1?.name&&m.push({id:n1.id,name:n1.name,description:n1.description,regulation:t1})})});const U=new Map;return m.forEach(t1=>{const n1=t1.id||t1.name;U.has(n1)||U.set(n1,t1)}),Array.from(U.values())}mapNamesToOptions(c,n){return n?.length?this.toArray(c).map(m=>n.find(U=>m?.id&&U?.id===m.id||m?.code&&this.normalizeCode(U?.code)===this.normalizeCode(m.code)||m?.name&&U?.name===m.name||U?.name===m)??m).filter(m=>null!=m):this.toArray(c)}mapNameToOption(c,n){return c?n?.length?n.find(m=>c?.id&&m?.id===c.id||c?.name&&m?.name===c.name||m?.name===c)??c:c:null}mapEmailsToUsers(c,n){return n?.length?this.toArray(c).map(m=>n.find(U=>U?.email===m?.email||U?.email===m)??m).filter(m=>null!=m):this.toArray(c)}mapEmailToUser(c,n){return c?n?.length?n.find(m=>m?.email===c?.email||m?.email===c)??c:c:null}toIdNameArray(c){return this.toArray(c).map(n=>n?"string"==typeof n?{id:null,name:n}:"object"!=typeof n||void 0===n.id&&void 0===n.name?null:{id:n.id??n.legislation_id??n.purpose_id??n.data_subject_id??n.data_category_id??n.system_id??n.policy_id??n.security_measures_id??n.transfer_basis_id??n.deletion_period_id??n.business_area_id??n.entity_id??null,name:n.name??n.email??null}:null).filter(n=>!!n&&!!n.name)}toIdNameSingle(c){const n=this.toIdNameArray(c);return n.length?n[0]:null}mapUserToEmail(c){return c?.email??c??null}mapUsersToEmails(c){return this.toArray(c).map(n=>n?.email??n).filter(Boolean)}splitCommaList(c){return c?Array.isArray(c)?c.map(n=>String(n??"").trim()).filter(Boolean):String(c).split(",").map(n=>n.trim()).filter(Boolean):[]}resolveArray(c,n){return n&&Array.isArray(c)?c:[]}flattenRecipientAttributeGroupsToTokens(c){if(!c?.length)return[];const n=[];return c.forEach(m=>{const U=m?.recipient?.name;this.toArray(m?.data_attributes).forEach(t1=>{U&&t1?.name&&n.push(`${U}|||${t1.name}`)})}),n}groupRecipientAttributeTokens(c,n){if(!c?.length)return[];const m=this.state,U=new Map;return this.toArray(c).forEach(t1=>
1{const n1="string"==typeof t1?t1:t1?.name??"";if(!n1||"empty"===n1.toLowerCase())return;const[v1,w1]=n1.split("|||"),F1=v1?.trim(),A1=w1?.trim();if(!F1||!A1)return;let q1=null;if("external"!==n){const I1=m.businessAreas?.find(W1=>W1.name===F1);I1&&(q1=I1.business_area_id??I1.id)}if(null==q1&&"internal"!==n){const I1=m.entities?.find(W1=>W1.name===F1);I1&&(q1=I1.entity_id??I1.id)}const K1={id:m.dataAttributes?.find(I1=>I1.name===A1)?.id??null,name:A1};U.has(F1)?U.get(F1).data_attributes.push(K1):U.set(F1,{recipient:{id:q1,name:F1},data_attributes:[K1]})}),Array.from(U.values())}init(){const c=window?.history?.state;this.titleService.setTitle("Activities - "+X1.N.portalPrefix),c?.skipApiLoad&&c?.formData&&(this.modalConfigForm$.next(this.buildForm(c.formData)),this.autoSaveStatus$.next("saved"),this.lastSavedAt$.next(new Date)),!c?.skipApiLoad&&!c?.formData&&this.processActivitiesDetailsPageStateService.updateState({initialLoad:new O2.X(!1)});const n=this.processActivitiesDetailsPageApiService;this.activatedRouter.queryParams.pipe((0,f2.w)(m=>(this.processActivitiesDetailsPageStateService.updateState({oid:m.oid,pid:m.pid}),this.activatedRouter.params)),(0,f2.w)(m=>{this.processActivitiesDetailsPageStateService.updateState({actionType:m?.actionType,activityId:m?.id}),this.hasCreatedOnce="edit"===m?.actionType;const{oid:U}=this.state;return(0,t4.D)({entityOptions:n.getEntitiesOptions(),businessAreas:n.getBusinessOptions(),assestPurposes:n.getAssestPurposes(),dataSubjects:n.getDataSubjects(),policies:n.getPoliciesOptions(U),deletionPeriods:n.getDeletionPeriods(),securityMeasures:n.getSecurityMeasures(),dataCategories:n.getDataCategories(),legalBases:n.getLegalBases(),legalBasisByRegulation:n.getLegalBasisByRegulation(),transferBasis:n.getTransferTypes(),entities:n.getEntities(U),assets:n.getAssets(U),users:n.getUsers(U),legislation:n.getLegistation(),dataAttributes:n.getDataAttributes(),customAttributes:n.getCustomAttributes(U),documents:n.getDocuments(U)})}),(0,f2.w)(m=>(this.processActivitiesDetailsPageStateService.updateState({legalBasisGrounds:this.getAllLegalBasisGroundOptions(m.legalBasisByRegulation),entityOptions:m.entityOptions,businessAreas:m.businessAreas,assetsPurposes:m.assestPurposes,dataSubjects:m.dataSubjects,policies:m.policies||[],deletionPeriods:m.deletionPeriods,securityMeasures:m.securityMeasures,dataCategories:m.dataCategories,legalBases:m.legalBases,legalBasisByRegulation:m.legalBasisByRegulation||{},transferBasis:m.transferBasis,entities:m.entities,assets:m.assets,users:m.users,dpoUsers:m.users?.filter(U=>"DPO"===U.role_name||"Privacy Lead"===U.role_name),legislation:m.legislation,internalRecipients:m.internalRecipients??[],dataAttributes:m.dataAttributes,customAttributes:m.customAttributes||[],documents:m.documents||[]}),"edit"===this.state.actionType?n.getActivityDetails(this.state.oid,this.state.activityId):(0,k4.of)(null)))).subscribe(m=>{this.modalConfigForm$.next(this.buildForm(m)),this.startAutoSave(),this.setupDependentControls(),this.autoSaveStatus$.next("saved"),this.lastSavedAt$.next(m?.updated_at),this.processActivitiesDetailsPageStateService.updateState({initialLoad:new O2.X(!0)})})}buildForm(c){return new N1.cw({business_process:this.getBusinessProcessForm(c?.business_process),processing_activity:this.getProcessingActivityForm(c?.processing_activity,c),data_storage:this.getDataStorageForm(c?.data_storage),data_transfer:this.getDataTransferForm(c?.data_transfer),data_retention:this.getDataRetentionForm(c?.data_retention),technical_measures:this.getTechnicalMeasuresForm(c?.technical_measures),field_evidences:this.fc((c?.field_evidences||[]).map(n=>({field_name:n.field_name,id:n.document_id??n.id,name:n.document_name??n.name})))})}fc(c,...n){return n.length?new N1.NI(c,n):new N1.NI(c)}getBusinessProcessForm(c){const n=this.state;return new N1.cw({entity_name:this.fc(c?.entity_name||"",N1.kI.required),applicable_regulation:this.fc(this.mapNamesToOptions(c?.applicable_regulation,n.legislation)||[]),entity_processing_role:this.fc(this.mapNameToOption(c?.entity_processing_role,n.entityOptions)||""),date_of_assessment:this.fc(c?.date_of_assessment||""),dpo_contact:this.fc(this.mapEmailToUser(c?.dpo_contact,n.users)||"")})}getProcessingActivityForm(c,n){const m=this.state,U={};
1return(m.customAttributes||[]).forEach(t1=>{U[t1.key]=this.fc(n?.custom_attributes?.find(n1=>n1.key===t1.key)?.value??null,...t1.required?[N1.kI.required]:[])}),new N1.cw({processing_activity_name:this.fc(c?.processing_activity_name||"",N1.kI.required),sub_processing_activities:this.fc(c?.sub_processing_activities||""),description:this.fc(c?.description||""),processing_purpose:this.fc(this.mapNamesToOptions(c?.processing_purpose,m.assetsPurposes)||[],N1.kI.required),processing_sub_purpose:this.fc(c?.processing_sub_purpose||""),uses_ai:this.fc(this.toYesNo(c?.uses_ai)),ai_purpose:this.fc(c?.ai_purpose||""),business_process_owner:this.fc(this.mapNamesToOptions(c?.business_process_owner,m.businessAreas)||[]),point_of_contact:this.fc(this.mapEmailsToUsers(c?.point_of_contact,m.users)||"",N1.kI.required),lawful_basis:this.fc((this.mapNamesToOptions(c?.lawful_basis,m.legalBases)||[]).map(t1=>{if("string"!=typeof t1&&t1?.code)return t1;const n1="string"==typeof t1?t1:t1?.name;return(m.legalBases||[]).find(w1=>String(w1?.name||"").trim().toLowerCase()===String(n1||"").trim().toLowerCase())||t1})),nature_of_consent:this.fc(c?.nature_of_consent||""),legitimate_use_ground:this.fc(c?.legitimate_use_ground||[],N1.kI.required),type_of_consent:this.fc(c?.type_of_consent||""),consent_collection_channel:this.fc(c?.consent_collection_channel||""),is_consent_recorded:this.fc(this.toYesNo(c?.is_consent_recorded)),consent_recording_method:this.fc(c?.consent_recording_method||""),consent_record_storage:this.fc(c?.consent_record_storage||""),privacy_notice_presented:this.fc(this.toYesNo(c?.privacy_notice_presented)),privacy_notice_link:this.fc(c?.privacy_notice_link||""),consent_withdrawal_available:this.fc(this.toYesNo(c?.consent_withdrawal_available)),consent_withdrawal_link:this.fc(c?.consent_withdrawal_link||""),consent_capture_link:this.fc(c?.consent_capture_link||""),consent_verbiage:this.fc(c?.consent_verbiage||""),data_principals_category:this.fc(this.mapNamesToOptions(c?.data_principals_category,m.dataSubjects)||[]),personal_data_attributes:this.fc(this.mapNamesToOptions(c?.personal_data_attributes,m.dataAttributes)||[]),personal_data_category:this.fc(this.mapNamesToOptions(c?.personal_data_category,m.dataCategories)||[]),dpia_required:this.fc(this.toYesNo(c?.dpia_required),N1.kI.required),applications_used:this.fc(c?.applications_used||"",N1.kI.required),mode_of_data_collection:this.fc(c?.mode_of_data_collection||[],N1.kI.required),frequency_of_collection:this.fc(c?.frequency_of_collection||""),data_source_type:this.fc(c?.data_source_type||""),data_source_details:this.fc(c?.data_source_details||""),data_source_jurisdiction:this.fc(c?.data_source_jurisdiction||[],N1.kI.required),custom_attributes:new N1.cw(U)})}getDataStorageForm(c){const n=this.state;return new N1.cw({data_storage_system:this.fc(this.mapNamesToOptions(c?.data_storage_system,n.assets)||[],N1.kI.required),data_storage_jurisdiction:this.fc(c?.data_storage_jurisdiction||[],N1.kI.required),data_access_holders:this.fc(this.mapEmailsToUsers(c?.data_access_holders,n.users)||[],N1.kI.required),data_access_frequency:this.fc(c?.data_access_frequency||""),backup_available:this.fc(this.toYesNo(c?.backup_available),N1.kI.required),backup_jurisdiction:this.fc(c?.backup_jurisdiction||[]),personal_data_copies:this.fc(this.toYesNo(c?.personal_data_copies),N1.kI.required),data_copy_storage_system:this.fc(Array.isArray(c?.data_copy_storage_system)?c.data_copy_storage_system.join(", "):c?.data_copy_storage_system||"")})}getDataTransferForm(c){const n=this.state;return new N1.cw({internal_transfer:this.fc(this.toNullableYesNo(c?.internal_transfer),N1.kI.required),internal_recipients:this.fc(this.mapNamesToOptions(c?.internal_recipients,n.businessAreas||[])||[]),internal_transfer_purpose:this.fc(c?.internal_transfer_purpose||""),personal_data_attribute_transferred_internal:this.fc(this.flattenRecipientAttributeGroupsToTokens(c?.personal_data_attribute_transferred_internal)||[]),external_transfer:this.fc(this.toNullableYesNo(c?.external_transfer),N1.kI.required),external_recipients:this.fc(this.mapNamesToOptions(c?.external_recipients,n.entities)||[]),external_transfer_purpose:this.fc(c?.external_transfer_purpose||""),third_party_dpa_link:this.fc(c?.third_party_dpa_link||""),data_processor_dp
1o_contact:this.fc(this.mapEmailToUser(c?.data_processor_dpo_contact,n.users)||null),has_data_processing_agreement:this.fc(this.toNullableYesNo(c?.has_data_processing_agreement)),recipient_role_external_transer:this.fc(this.mapNameToOption(c?.recipient_role_external_transer,n.entityOptions||[])||null),personal_data_attribute_transferred_external:this.fc(this.flattenRecipientAttributeGroupsToTokens(c?.personal_data_attribute_transferred_external)||[]),cross_border_transfer:this.fc(this.toNullableYesNo(c?.cross_border_transfer),N1.kI.required),recipient_country:this.fc(this.mapNamesToOptions(c?.recipient_country,n.countries||[])||[]),cross_border_transfer_restriction:this.fc(c?.cross_border_transfer_restriction||""),cross_border_data_recipients:this.fc(c?.cross_border_data_recipients||[]),recipient_role_cross_border_transer:this.fc(this.mapNameToOption(c?.recipient_role_cross_border_transer,n.entityOptions||[])||null),cross_border_transfer_purpose:this.fc(c?.cross_border_transfer_purpose||""),personal_data_attribute_transferred_cross_border:this.fc(this.flattenRecipientAttributeGroupsToTokens(c?.personal_data_attribute_transferred_cross_border)||[]),transfer_mode:this.fc(c?.transfer_mode||[]),transfer_safeguard:this.fc(c?.transfer_safeguard||[]),transfer_safeguard_link:this.fc(c?.transfer_safeguard_link||"")})}getDataRetentionForm(c){return new N1.cw({data_retention_period:this.fc(this.mapNameToOption(c?.data_retention_period,this.state.deletionPeriods)||"",N1.kI.required),data_retention_purpose:this.fc(c?.data_retention_purpose||"",N1.kI.required),data_disposal_method:this.fc(c?.data_disposal_method||[],N1.kI.required),data_disposal_owner:this.fc(c?.data_disposal_owner||"",N1.kI.required)})}getTechnicalMeasuresForm(c){const n=this.state;return new N1.cw({security_measures_applied:this.fc(this.toYesNo(c?.security_measures_applied),N1.kI.required),data_at_rest_measures:this.fc(c?.data_at_rest_measures||[]),data_in_transit_measures:this.fc(c?.data_in_transit_measures||[]),organizational_measures:this.fc(this.mapNamesToOptions(c?.organizational_measures,n.policies||[])||[])})}uploadEvidenceDocument(c,n,m){const U=c.name.split(".").pop()?.toLowerCase()??"";if(!this.allowedEvidenceExtensions.includes(U)){const n1=`".${U}" files are not allowed. Accepted: ${this.allowedEvidenceExtensions.map(v1=>"."+v1).join(", ")}`;return this.messageService.add({severity:"error",summary:"Invalid File Type",detail:n1}),void m(!1,n1)}if(c.size>this.maxEvidenceFileSizeBytes){const n1=`File size must not exceed 5 MB. Selected file is ${(c.size/1048576).toFixed(1)} MB.`;return this.messageService.add({severity:"error",summary:"File Too Large",detail:n1}),void m(!1,n1)}const t1=this.state.oid;this.documentationApiService.uploadDocument(t1,{file:c,type:n,moduleCode:"ROPA"}).pipe((0,f2.w)(()=>this.processActivitiesDetailsPageApiService.getDocuments(t1))).subscribe({next:n1=>{this.processActivitiesDetailsPageStateService.updateState({documents:n1}),this.messageService.add({severity:"success",summary:"Uploaded",detail:`"${c.name}" uploaded successfully`}),m(!0)},error:()=>{this.messageService.add({severity:"error",summary:"Upload Failed",detail:"Unable to upload document. Please try again."}),m(!1)}})}addEvidenceDocumentByUrl(c,n){const m=(c.name||"").trim(),U=(c.document_url||"").trim(),t1=(c.type||"").trim();if(!m){const v1="Document name is required";return this.messageService.add({severity:"error",summary:"Error",detail:v1}),void n(!1,v1)}if(!U){const v1="Document URL is required";return this.messageService.add({severity:"error",summary:"Error",detail:v1}),void n(!1,v1)}try{const v1=new URL(U);if("http:"!==v1.protocol&&"https:"!==v1.protocol)throw new Error("Invalid protocol")}catch{const v1="Please enter a valid URL (must start with http:// or https://)";return this.messageService.add({severity:"error",summary:"Invalid URL",detail:v1}),void n(!1,v1)}const n1=this.state.oid;this.documentationApiService.uploadDocument(n1,{document_url:U,name:m,type:t1,moduleCode:"ROPA"}).pipe((0,f2.w)(()=>this.processActivitiesDetailsPageApiService.getDocuments(n1))).subscribe({next:v1=>{this.processActivitiesDetailsPageStateService.updateState({documents:v1}),this.messageService.add({severity:"success",summary:"Added",detail
1:`"${m}" added successfully`}),n(!0)},error:()=>{this.messageService.add({severity:"error",summary:"Failed",detail:"Unable to add document. Please try again."}),n(!1)}})}downloadEvidence(c){const n=this.state.oid;!n||!c?.id||this.documentationApiService.downloadDocument(n,c.id).subscribe({next:m=>{const U=window.URL.createObjectURL(m),t1=window.document.createElement("a");t1.href=U,t1.download=c.name||"evidence",t1.click(),window.URL.revokeObjectURL(U)},error:()=>{}})}startAutoSave(){this.autoSaveSub?.unsubscribe();const c=this.modalConfigForm$.getValue();c&&(this.autoSaveSub=c.valueChanges.pipe((0,I3.b)(1e3),(0,T4.h)(()=>c.dirty&&!this.isAutoSaving)).subscribe(()=>{c.dirty&&this.autoSave()}))}autoSave(){if(this.isAutoSaving)return;const c=this.modalConfigForm$.getValue();if(!c?.dirty)return;this.isAutoSaving=!0,this.autoSaveStatus$.next("saving");const n=this.buildPayload(c.value),{oid:m,activityId:U,pid:t1}=this.state,n1=w1=>{c.markAsPristine(),this.isAutoSaving=!1,this.autoSaveStatus$.next("saved"),this.lastSavedAt$.next(w1?.updated_at)},v1=(0,t2.K)(w1=>(this.autoSaveStatus$.next("error"),this.isAutoSaving=!1,(0,a2._)(()=>w1)));this.hasCreatedOnce?this.processActivitiesDetailsPageApiService.editActivityDetails(m,U,n).pipe((0,N3.X)(2),v1).subscribe(n1):this.processActivitiesDetailsPageApiService.createProcessingActivity(m,n).pipe((0,N3.X)(2),v1).subscribe(w1=>{this.hasCreatedOnce=!0,n1(w1),this.router.navigate(["/ropa/activity/edit",w1.id],{queryParams:{oid:m,pid:t1},state:{skipApiLoad:!0,formData:c.value},replaceUrl:!0})})}setupDependentControls(){this.subscriptions.forEach(U=>U.unsubscribe()),this.subscriptions=[];const c=this.modalConfigForm$.getValue();if(!c)return;const n=(U,t1,n1={})=>{const v1=c.get(U);if(!v1)return;const{requireWhenYes:w1=!1,disableOnNo:F1=!0,clearOnNo:A1=!0}=n1,q1=R1=>{const K1="Yes"===R1;t1.forEach(I1=>{const W1=c.get(I1);W1&&(K1?(F1&&W1.enable({emitEvent:!1}),w1&&W1.setValidators(N1.kI.required)):(w1&&W1.clearValidators(),F1&&W1.disable({emitEvent:!1}),A1&&W1.setValue(Array.isArray(W1.value)?[]:null,{emitEvent:!1})),W1.updateValueAndValidity({emitEvent:!1}))})};this.subscriptions.push(v1.valueChanges.subscribe(q1)),q1(v1.value)},m=c.get("processing_activity.lawful_basis");if(m){const U=["processing_activity.nature_of_consent","processing_activity.type_of_consent","processing_activity.consent_collection_channel","processing_activity.is_consent_recorded","processing_activity.consent_recording_method","processing_activity.consent_record_storage","processing_activity.privacy_notice_presented","processing_activity.privacy_notice_link","processing_activity.consent_withdrawal_available","processing_activity.consent_withdrawal_link","processing_activity.consent_capture_link","processing_activity.consent_verbiage"],t1=c.get("processing_activity.legitimate_use_ground"),n1=v1=>{const w1=this.lawfulBasisIncludesConsent(v1),F1=this.lawfulBasisNeedsLegitimateGround(v1),A1=this.resolveRegulationGroundsByLawfulBasis(v1);if(this.processActivitiesDetailsPageStateService.updateState({legalBasisGrounds:A1}),U.forEach(q1=>{const R1=c.get(q1);R1&&(w1?(R1.enable({emitEvent:!1}),R1.setValidators(N1.kI.required)):(R1.clearValidators(),R1.disable({emitEvent:!1}),R1.setValue(Array.isArray(R1.value)?[]:null,{emitEvent:!1})),R1.updateValueAndValidity({emitEvent:!1}))}),t1){if(F1){t1.enable({emitEvent:!1}),t1.setValidators(N1.kI.required);const q1=new Set;A1.forEach(I1=>{I1?.id&&q1.add(I1.id),I1?.name&&q1.add(I1.name)});const K1=this.toArray(t1.value).filter(I1=>{const W1=("string"==typeof I1?I1:I1?.id)||I1?.name;return W1&&q1.has(W1)}).map(I1=>{const W1="string"==typeof I1?null:I1?.id,Q2="string"==typeof I1?I1:I1?.name||null;return A1.find(K2=>W1&&K2?.id===W1||Q2&&K2?.name===Q2)??I1}).filter(Boolean);t1.setValue(K1,{emitEvent:!1})}else t1.clearValidators(),t1.disable({emitEvent:!1}),t1.setValue([],{emitEvent:!1});t1.updateValueAndValidity({emitEvent:!1})}};this.subscriptions.push(m.valueChanges.subscribe(n1)),n1(m.value)}n("processing_activity.uses_ai",["processing_activity.ai_purpose"],{requireWhenYes:!0}),n("processing_activity.is_consent_recorded",["processing_activity.consent_recording_method","processing_activity.consent_record_storage"],{requireWhenYes:!0}),n("processing_activity.privacy_notice_presented",["processing_activity.privacy_notice_link"],{requireWhenYes:!0}),n("processing_activity.consent_withdrawal_available",["processing_activity.consent_withdrawal_link"],{requireWhenYes:!0}),n("data_storage.backup_available",["data_storage.backup_jurisdiction"],{requireWhenYes:!0}),n("data_storage.personal_data_copies",["data_storage.data_copy_storage_system"],{requireWhenYes:!0}),n("data_transfer.internal_transfer",["data_transfer.internal_recipients","data_transfer.internal_transfer_purpose","data_transfer.personal_data_attribute_transferred_internal"],{requireWhenYes:!0}),n("data_transfer.external_transfer",["data_transfer.data_processor_dp
1o_contact","data_transfer.has_data_processing_agreement","data_transfer.external_recipients","data_transfer.external_transfer_purpose","data_transfer.third_party_dpa_link","data_transfer.recipient_role_external_transer","data_transfer.personal_data_attribute_transferred_external"],{requireWhenYes:!0}),n("data_transfer.has_data_processing_agreement",["data_transfer.third_party_dpa_link"],{requireWhenYes:!0}),n("data_transfer.cross_border_transfer",["data_transfer.transfer_mode","data_transfer.recipient_country","data_transfer.cross_border_transfer_restriction","data_transfer.cross_border_data_recipients","data_transfer.recipient_role_cross_border_transer","data_transfer.cross_border_transfer_purpose","data_transfer.personal_data_attribute_transferred_cross_border","data_transfer.transfer_safeguard","data_transfer.transfer_safeguard_link"],{requireWhenYes:!0}),n("technical_measures.security_measures_applied",["technical_measures.data_at_rest_measures","technical_measures.data_in_transit_measures","technical_measures.organizational_measures"],{requireWhenYes:!0})}buildPayload(c){const n=c.processing_activity,m=c.data_transfer,U=c.data_storage,t1=c.technical_measures,n1=c.data_retention,v1=c.business_process,w1=this.lawfulBasisIncludesConsent(n.lawful_basis),F1=this.lawfulBasisNeedsLegitimateGround(n.lawful_basis),A1="Yes"===m.internal_transfer,q1="Yes"===m.external_transfer,R1="Yes"===m.cross_border_transfer;return{business_process:{entity_name:v1.entity_name||null,applicable_regulation:this.toIdNameArray(v1.applicable_regulation),entity_processing_role:this.toIdNameSingle(v1.entity_processing_role),date_of_assessment:v1.date_of_assessment||null,dpo_contact:this.mapUserToEmail(v1.dpo_contact)},processing_activity:{processing_activity_name:n.processing_activity_name||null,sub_processing_activities:n.sub_processing_activities||null,description:n.description||null,processing_purpose:this.toIdNameArray(n.processing_purpose),processing_sub_purpose:n.processing_sub_purpose||null,uses_ai:this.yesNo(n.uses_ai),ai_purpose:"Yes"===n.uses_ai&&n.ai_purpose||null,business_process_owner:this.toIdNameArray(n.business_process_owner),point_of_contact:this.mapUsersToEmails(n.point_of_contact),lawful_basis:this.toIdNameArray(n.lawful_basis),nature_of_consent:w1&&n.nature_of_consent||null,type_of_consent:w1&&n.type_of_consent||null,consent_collection_channel:w1?this.splitCommaList(n.consent_collection_channel):[],is_consent_recorded:!!w1&&this.yesNo(n.is_consent_recorded),consent_recording_method:w1&&"Yes"===n.is_consent_recorded&&n.consent_recording_method||null,consent_record_storage:w1&&"Yes"===n.is_consent_recorded&&n.consent_record_storage||null,privacy_notice_presented:!!w1&&this.yesNo(n.privacy_notice_presented),privacy_notice_link:w1&&"Yes"===n.privacy_notice_presented&&n.privacy_notice_link||null,consent_withdrawal_available:!!w1&&this.yesNo(n.consent_withdrawal_available),consent_withdrawal_link:w1&&"Yes"===n.consent_withdrawal_available&&n.consent_withdrawal_link||null,consent_capture_link:w1&&n.consent_capture_link||null,consent_verbiage:w1&&n.consent_verbiage||null,data_principals_category:this.toIdNameArray(n.data_principals_category),personal_data_attributes:this.toIdNameArray(n.personal_data_attributes),personal_data_category:this.toIdNameArray(n.personal_data_category),mode_of_data_collection:Array.isArray(n.mode_of_data_collection)?n.mode_of_data_collection:[],frequency_of_collection:n.frequency_of_collection||null,data_source_type:n.data_source_type||null,data_source_details:n.data_source_details||null,data_source_jurisdiction:n.data_source_jurisdiction||[],dpia_required:this.yesNo(n.dpia_required),applications_used:n.applications_used||null,legitimate_use_ground:F1?this.toIdNameArray(n.legitimate_use_ground):[]},data_storage:{data_storage_system:this.toIdNameArray(U.data_storage_system),data_storage_jurisdiction:U.data_storage_jurisdiction||[],data_access_holders:this.mapUsersToEmails(U.data_access_holders),data_access_frequency:U.data_access_frequency||null,backup_available:this.yesNo(U.backup_available),backup_jurisdiction:"Yes"===U.backup_available?U.backup_jurisdiction:[],personal_data_copies:this.yesNo(U.personal_data_copies),data_copy_storage_system:"Yes"===U.personal_data_copies?this.splitCommaList(U.data_copy_storage_system):[]},data_transfer:{internal_transfer:this.yesNo(m.internal_transfer),internal_recipients:A1?this.toIdNameArray(m.internal_recipients):[],internal_transfer_purpose:A1&&m.internal_transfer_purpose||null,personal_data_attribute_transferred_internal:A1?this.groupRecipientAttributeTokens(m.personal_data_attribute_transferred_internal,"internal"):[],external_transfer:this.yesNo(m.external_transfer),external_recipients:q1?this.toIdNameArray(m.external_recipients):[],external_transfer_purpose:q1&&m.external_transfer_purpose||null,data_processor_dp
1o_contact:q1?this.mapUserToEmail(m.data_processor_dpo_contact):null,has_data_processing_agreement:!!q1&&this.yesNo(m.has_data_processing_agreement),third_party_dpa_link:q1&&m.third_party_dpa_link||null,recipient_role_external_transer:q1&&m.recipient_role_external_transer||null,personal_data_attribute_transferred_external:q1?this.groupRecipientAttributeTokens(m.personal_data_attribute_transferred_external,"external"):[],cross_border_transfer:this.yesNo(m.cross_border_transfer),recipient_country:R1?this.resolveArray(m.recipient_country,!0):[],cross_border_transfer_restriction:R1&&m.cross_border_transfer_restriction||null,cross_border_data_recipients:R1?this.resolveArray(m.cross_border_data_recipients,!0):[],recipient_role_cross_border_transer:R1&&m.recipient_role_cross_border_transer||null,cross_border_transfer_purpose:R1&&m.cross_border_transfer_purpose||null,personal_data_attribute_transferred_cross_border:R1?this.groupRecipientAttributeTokens(m.personal_data_attribute_transferred_cross_border,"cross-border"):[],transfer_mode:R1?this.resolveArray(m.transfer_mode,!0):[],transfer_safeguard:R1?this.resolveArray(m.transfer_safeguard,!0):[],transfer_safeguard_link:m.transfer_safeguard_link||null},data_retention:{data_retention_period:this.toIdNameSingle(n1.data_retention_period)||null,data_retention_purpose:n1.data_retention_purpose||null,data_disposal_method:this.resolveArray(n1.data_disposal_method,!0),data_disposal_owner:n1.data_disposal_owner||null},technical_measures:{security_measures_applied:this.yesNo(t1.security_measures_applied),data_at_rest_measures:this.resolveArray(t1.data_at_rest_measures,!0),data_in_transit_measures:this.resolveArray(t1.data_in_transit_measures,!0),organizational_measures:this.toIdNameArray(this.resolveArray(t1.organizational_measures,!0))},custom_attributes:Object.entries(c.processing_activity.custom_attributes||{}).map(([K1,I1])=>({key:K1,value:I1})),field_evidences:(c.field_evidences||[]).map(K1=>({field_name:K1.field_name,id:K1.id,name:K1.name}))}}getStateObs(){return this.processActivitiesDetailsPageStateService.getStateObs()}saveProcessActivity(c=!0){const n=this.modalConfigForm$.getValue();if(!n)return;const m=this.buildPayload(n.value),{oid:U,activityId:t1,pid:n1,actionType:v1}=this.state;"edit"===v1?this.processActivitiesDetailsPageApiService.editActivityDetails(U,t1,m).subscribe(()=>this.messageService.add({severity:"success",summary:"Success",detail:"Activity updated successfully"})):this.processActivitiesDetailsPageApiService.createProcessingActivity(U,m).subscribe(()=>{this.messageService.add({severity:"success",summary:"Success",detail:"Activity created successfully"}),c&&setTimeout(()=>this.router.navigate(["/ropa/activity"],{queryParams:{oid:U,pid:n1}}),1e3)})}};let t=M;return M.CONSENT_CODE="CONSENT",M.CONSENT_NAME="Consent",M.\u0275fac=function(n){return new(n||M)(e.LFG(m2.gz),e.LFG(u),e.LFG(h),e.LFG(f.o),e.LFG(B2.ez),e.LFG(m2.F0),e.LFG(a3.Dx),e.LFG(B2.YP))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),t})();function p(t,M){1&t&&(e.TgZ(0,"span",105),e._uU(1,"Saving..."),e.qZA())}function k(t,M){1&t&&(e.TgZ(0,"span",106),e._uU(1,"Failed to save"),e.qZA())}function G(t,M){if(1&t&&(e.TgZ(0,"span",107),e._uU(1),e.ALo(2,"date"),e.ALo(3,"async"),e.qZA()),2&t){const o=e.oxw(5);e.xp6(1),e.hij(" Last updated at ",e.xi3(2,1,e.lcZ(3,4,o.lastSavedAt$),"short")," ")}}function Q(t,M){if(1&t&&(e.ynx(0),e.YNc(1,p,2,0,"span",102),e.YNc(2,k,2,0,"span",103),e.YNc(3,G,4,6,"span",104),e.BQk()),2&t){const o=M.ngIf,c=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngIf","saving"===o),e.xp6(1),e.Q6J("ngIf","error"===o),e.xp6(1),e.Q6J("ngIf","saved"===o&&"edit"===c.actionType)}}function l(t,M){1&t&&e._uU(0,"Details of the Business Process")}function _(t,M){1&t&&e._uU(0,"Processing Activity")}function x(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("uses_ai"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function A(t,M){1&t&&(e.TgZ(0,"div",54)(1,"label"),e._uU(2,"AI Purpose "),e.TgZ(3,"span",49),e._uU(4,"*"),e.qZA()(),e._UZ(5,"input",114),e.qZA())}function V(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("lawful_basis"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function T(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(5);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(5);return e.KtG(n.removeEvidence("is_consent_recorded"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function J(t,M){1&t&&(e.TgZ(0,"div",47)(1,"div",48)(2,"label"),e._uU(3,"Consent Recording Method "),e.TgZ(4,"span",49),e._uU(5,"*"),e.qZA()(),e._UZ(6,"input",124),e.qZA(),e.TgZ(7,"div",48)(8,"label"),e._uU(9,"Consent Record Storage "),e.TgZ(10,"span",49),e._uU(11,"*"),e.qZA()(),e._UZ(12,"input",125),e.qZA()())}function $(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(7);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(7);return e.KtG(n.removeEvidence("privacy_notice_link"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function K(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",48)(1,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(2,"span"),e._uU(3,"Privacy Notice Link "),e.TgZ(4,"span",49),e._uU(5,"*"),e.qZA()(),e.TgZ(6,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(6);return e.KtG(n.openEvidenceModal("privacy_notice_link"))}),e._UZ(7,"i",66),e.qZA()(),e._UZ(8,"input",126),e.YNc(9,$,8,2,"div",68),e.qZA()}if(2&t){const o=e.oxw(6);e.xp6(9),e.Q6J("ngIf",o.getEvidence("privacy_notice_link"))}}function h1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(7);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(7);return e.KtG(n.removeEvidence("consent_withdrawal_link"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function l1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",48)(1,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(2,"span"),e._uU(3,"Consent Withdrawal Link "),e.TgZ(4,"span",49),e._uU(5,"*"),e.qZA()(),e.TgZ(6,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(6);return e.KtG(n.openEvidenceModal("consent_withdrawal_link"))}),e._UZ(7,"i",66),e.qZA()(),e._UZ(8,"input",127),e.YNc(9,h1,8,2,"div",68),e.qZA()}if(2&t){const o=e.oxw(6);e.xp6(9),e.Q6J("ngIf",o.getEvidence("consent_withdrawal_link"))}}function q(t,M){if(1&t&&(e.TgZ(0,"div",47),e.YNc(1,K,10,1,"div",91),e.YNc(2,l1,10,1,"div",91),e.qZA()),2&t){const o=e.oxw(2).ngIf;
1let c,n;e.xp6(1),e.Q6J("ngIf","Yes"===(null==(c=o.get("processing_activity.privacy_notice_presented"))?null:c.value)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(n=o.get("processing_activity.consent_withdrawal_available"))?null:n.value))}}function y(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(5);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(5);return e.KtG(n.removeEvidence("consent_capture_link"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function X(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(5);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(5);return e.KtG(n.removeEvidence("consent_verbiage"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}const N=function(){return["Mandatory","Optional"]},I=function(){return["Implicit","Explicit"]},D=function(){return["Yes","No"]};function Y(t,M){if(1&t){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",47)(2,"div",48)(3,"label"),e._uU(4,"Nature of Consent "),e.TgZ(5,"span",49),e._uU(6,"*"),e.qZA()(),e._UZ(7,"p-dropdown",115),e.qZA(),e.TgZ(8,"div",48)(9,"label"),e._uU(10,"Type of Consent "),e.TgZ(11,"span",49),e._uU(12,"*"),e.qZA()(),e._UZ(13,"p-dropdown",116),e.qZA()(),e.TgZ(14,"div",47)(15,"div",48)(16,"label"),e._uU(17,"Consent Collection Channel "),e.TgZ(18,"span",49),e._uU(19,"*"),e.qZA()(),e._UZ(20,"input",117),e.qZA(),e.TgZ(21,"div",48)(22,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(23,"span"),e._uU(24,"Is Consent Recorded? "),e.TgZ(25,"span",49),e._uU(26,"*"),e.qZA()(),e.TgZ(27,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.openEvidenceModal("is_consent_recorded"))}),e._UZ(28,"i",66),e.qZA()(),e._UZ(29,"p-dropdown",118),e.YNc(30,T,8,2,"div",68),e.qZA()(),e.YNc(31,J,13,0,"div",119),e.TgZ(32,"div",47)(33,"div",48)(34,"label"),e._uU(35,"Privacy Notice Presented? "),e.TgZ(36,"span",49),e._uU(37,"*"),e.qZA()(),e._UZ(38,"p-dropdown",120),e.qZA(),e.TgZ(39,"div",48)(40,"label"),e._uU(41,"Consent Withdrawal Available? "),e.TgZ(42,"span",49),e._uU(43,"*"),e.qZA()(),e._UZ(44,"p-dropdown",121),e.qZA()(),e.YNc(45,q,3,2,"div",119),e.TgZ(46,"div",47)(47,"div",48)(48,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(49,"span"),e._uU(50,"Consent Capture Link "),e.TgZ(51,"span",49),e._uU(52,"*"),e.qZA()(),e.TgZ(53,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.openEvidenceModal("consent_capture_link"))}),e._UZ(54,"i",66),e.qZA()(),e._UZ(55,"input",122),e.YNc(56,y,8,2,"div",68),e.qZA(),e.TgZ(57,"div",48)(58,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(59,"span"),e._uU(60,"Consent Verbiage "),e.TgZ(61,"span",49),e._uU(62,"*"),e.qZA()(),e.TgZ(63,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.openEvidenceModal("consent_verbiage"))}),e._UZ(64,"i",66),e.qZA()(),e._UZ(65,"textarea",123),e.YNc(66,X,8,2,"div",68),e.qZA()(),e.BQk()}if(2&t){const o=e.oxw().ngIf,c=e.oxw(3);let n,m;e.xp6(7),e.Q6J("options",e.DdM(10,N)),e.xp6(6),e.Q6J("options",e.DdM(11,I)),e.xp6(16),e.Q6J("options",e.DdM(12,D)),e.xp6(1),e.Q6J("ngIf",c.getEvidence("is_consent_recorded")),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(n=o.get("processing_activity.is_consent_recorded"))?null:n.value)),e.xp6(7),e.Q6J("options",e.DdM(13,D)),e.xp6(6),e.Q6J("options",e.DdM(14,D)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(m=o.get("processing_activity.privacy_notice_presented"))?null:m.value)||"Yes"===(null==(m=o.get("processing_activity.consent_withdrawal_available"))?null:m.value)),e.xp6(11),e.Q6J("ngIf",c.getEvidence("consent_capture_link")),e.xp6(10),e.Q6J("ngIf",c.getEvidence("consent_verbiage"))}}function R(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(5);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(5);return e.KtG(n.removeEvidence("legitimate_use_ground"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function P(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",54)(1,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(2,"span"),e._uU(3),e.TgZ(4,"span",49),e._uU(5,"*"),e.qZA()(),e.TgZ(6,"button",65),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.openEvidenceModal("legitimate_use_ground"))}),e._UZ(7,"i",66),e.qZA()(),e._UZ(8,"p-multiSelect",128),e.YNc(9,R,8,2,"div",68),e.qZA()}if(2&t){const o=e.oxw().ngIf,c=e.oxw(2).ngIf,n=e.oxw();e.xp6(3),e.hij(" ",n.getLegitimateGroundLabel(o)," "),e.xp6(5),e.Q6J("options",c.legalBasisGroun
1ds),e.xp6(1),e.Q6J("ngIf",n.getEvidence("legitimate_use_ground"))}}function v(t,M){1&t&&(e.TgZ(0,"span",49),e._uU(1,"*"),e.qZA())}function b(t,M){if(1&t&&(e.TgZ(0,"div",54)(1,"label"),e._uU(2),e.YNc(3,v,2,0,"span",132),e.qZA(),e._UZ(4,"input",133),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw(2).ngIf;let n;e.xp6(2),e.Oqu(o.label),e.xp6(1),e.Q6J("ngIf",o.required),e.xp6(1),e.Q6J("formControl",null==(n=c.get("processing_activity.custom_attributes"))?null:n.get(o.key))("placeholder",o.placeholder||"Enter "+o.label)}}function S(t,M){1&t&&(e.TgZ(0,"span",49),e._uU(1,"*"),e.qZA())}function r(t,M){if(1&t&&(e.TgZ(0,"div",54)(1,"label"),e._uU(2),e.YNc(3,S,2,0,"span",132),e.qZA(),e._UZ(4,"textarea",134),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw(2).ngIf;let n;e.xp6(2),e.Oqu(o.label),e.xp6(1),e.Q6J("ngIf",o.required),e.xp6(1),e.Q6J("formControl",null==(n=c.get("processing_activity.custom_attributes"))?null:n.get(o.key))("placeholder",o.placeholder||"Enter "+o.label)}}function w(t,M){1&t&&(e.TgZ(0,"span",49),e._uU(1,"*"),e.qZA())}function L(t,M){if(1&t&&(e.TgZ(0,"div",54)(1,"label"),e._uU(2),e.YNc(3,w,2,0,"span",132),e.qZA(),e._UZ(4,"p-dropdown",135),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw(2).ngIf;let n;e.xp6(2),e.Oqu(o.label),e.xp6(1),e.Q6J("ngIf",o.required),e.xp6(1),e.Q6J("options",o.options)("formControl",null==(n=c.get("processing_activity.custom_attributes"))?null:n.get(o.key))("placeholder",o.placeholder||"Select "+o.label)}}function F(t,M){1&t&&(e.TgZ(0,"span",49),e._uU(1,"*"),e.qZA())}function O(t,M){if(1&t&&(e.TgZ(0,"div",54)(1,"label"),e._uU(2),e.YNc(3,F,2,0,"span",132),e.qZA(),e._UZ(4,"p-multiSelect",136),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw(2).ngIf;let n;e.xp6(2),e.Oqu(o.label),e.xp6(1),e.Q6J("ngIf",o.required),e.xp6(1),e.Q6J("options",o.options)("formControl",null==(n=c.get("processing_activity.custom_attributes"))?null:n.get(o.key))("placeholder",o.placeholder||"Select "+o.label)("filter",!1)}}function C(t,M){if(1&t&&(e.TgZ(0,"div",54)(1,"label"),e._uU(2),e.qZA(),e._UZ(3,"p-checkbox",137),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw(2).ngIf;let n;e.xp6(2),e.Oqu(o.label),e.xp6(1),e.Q6J("formControl",null==(n=c.get("processing_activity.custom_attributes"))?null:n.get(o.key))}}function W(t,M){1&t&&(e.TgZ(0,"span",49),e._uU(1,"*"),e.qZA())}function e1(t,M){if(1&t&&(e.TgZ(0,"div",54)(1,"label"),e._uU(2),e.YNc(3,W,2,0,"span",132),e.qZA(),e._UZ(4,"input",138),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw(2).ngIf;let n;e.xp6(2),e.Oqu(o.label),e.xp6(1),e.Q6J("ngIf",o.required),e.xp6(1),e.Q6J("formControl",null==(n=c.get("processing_activity.custom_attributes"))?null:n.get(o.key))}}function s1(t,M){1&t&&(e.TgZ(0,"span",49),e._uU(1,"*"),e.qZA())}function u1(t,M){if(1&t&&(e.TgZ(0,"div",54)(1,"label"),e._uU(2),e.YNc(3,s1,2,0,"span",132),e.qZA(),e._UZ(4,"input",139),e.qZA()),2&t){const o=e.oxw().$implicit,c=e.oxw(2).ngIf;let n;e.xp6(2),e.Oqu(o.label),e.xp6(1),e.Q6J("ngIf",o.required),e.xp6(1),e.Q6J("formControl",null==(n=c.get("processing_activity.custom_attributes"))?null:n.get(o.key))("placeholder",o.placeholder||"Enter "+o.label)}}function r1(t,M){if(1&t&&(e.TgZ(0,"div",47),e.YNc(1,b,5,4,"div",70),e.YNc(2,r,5,4,"div",70),e.YNc(3,L,5,5,"div",70),e.YNc(4,O,5,6,"div",70),e.YNc(5,C,4,2,"div",70),e.YNc(6,e1,5,3,"div",70),e.YNc(7,u1,5,4,"div",70),e.qZA()),2&t){const o=M.$implicit;e.xp6(1),e.Q6J("ngIf","text"===o.type),e.xp6(1),e.Q6J("ngIf","textarea"===o.type),e.xp6(1),e.Q6J("ngIf","select"===o.type),e.xp6(1),e.Q6J("ngIf","multiselect"===o.type),e.xp6(1),e.Q6J("ngIf","checkbox"===o.type),e.xp6(1),e.Q6J("ngIf","date"===o.type),e.xp6(1),e.Q6J("ngIf","number"===o.type)}}function m1(t,M){if(1&t&&(e.TgZ(0,"div",129)(1,"div",130),e._uU(2,"ROPA Custom Fields"),e.qZA(),e.YNc(3,r1,8,7,"div",131),e.qZA()),2&t){const o=e.oxw(3).ngIf;e.xp6(3),e.Q6J("ngForOf",o.customAttributes)}}function o1(t,M){1&t&&e._uU(0,"Data Storage")}function M1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("data_storage_system"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function H(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("data_access_holders"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function Z(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("data_access_frequency"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function B(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("backup_available"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function E(t,M){if(1&t&&(e.TgZ(0,"div",48)(1,"label"),e._uU(2,"Backup Jurisdiction "),e.TgZ(3,"span",49),e._uU(4,"*"),e.qZA()(),e._UZ(5,"p-multiSelect",140),e.qZA()),2&t){const o=e.oxw(3).ngIf;
1e.xp6(5),e.Q6J("options",o.countries)}}function c1(t,M){1&t&&(e.TgZ(0,"div",48)(1,"label"),e._uU(2,"Data Copy Storage System "),e.TgZ(3,"span",49),e._uU(4,"*"),e.qZA()(),e._UZ(5,"input",141),e.qZA())}function i1(t,M){1&t&&e._uU(0,"Data Transfer")}function _1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("internal_transfer"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}const d1=function(){return[]};function U1(t,M){if(1&t&&(e.TgZ(0,"div",48)(1,"label"),e._uU(2,"Internal Recipients "),e.TgZ(3,"span",49),e._uU(4,"*"),e.qZA()(),e._UZ(5,"p-multiSelect",142),e.qZA()),2&t){const o=e.oxw(3).ngIf;e.xp6(5),e.Q6J("options",o.businessAreas||e.DdM(1,d1))}}function V1(t,M){if(1&t&&(e.TgZ(0,"div",147)(1,"span",148),e._uU(2),e.qZA(),e.TgZ(3,"span",149),e._uU(4,"\u203a"),e.qZA(),e.TgZ(5,"span",150),e._uU(6),e.qZA()()),2&t){const o=M.$implicit;e.xp6(2),e.Oqu(o.recipient),e.xp6(4),e.Oqu(o.attribute)}}function E1(t,M){if(1&t&&(e.TgZ(0,"div",147)(1,"span",148),e._uU(2),e.qZA(),e.TgZ(3,"span",149),e._uU(4,"\u203a"),e.qZA(),e.TgZ(5,"span",150),e._uU(6),e.qZA()()),2&t){const o=M.$implicit;e.xp6(2),e.Oqu(o.recipient),e.xp6(4),e.Oqu(o.attribute)}}function S1(t,M){if(1&t&&(e.ynx(0),e.TgZ(1,"div",54)(2,"label"),e._uU(3,"Internal Transfer Purpose "),e.TgZ(4,"span",49),e._uU(5,"*"),e.qZA()(),e._UZ(6,"input",143),e.qZA(),e.TgZ(7,"div",54)(8,"label"),e._uU(9,"Personal Data Attributes per Internal Recipient "),e.TgZ(10,"span",49),e._uU(11,"*"),e.qZA()(),e.TgZ(12,"p-multiSelect",144),e.YNc(13,V1,7,2,"ng-template",145),e.YNc(14,E1,7,2,"ng-template",146),e.qZA()(),e.BQk()),2&t){const o=e.oxw(4);e.xp6(12),e.Q6J("options",o.internalRecipientAttributeOptions)}}function O1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("external_transfer"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function G1(t,M){if(1&t&&(e.TgZ(0,"div",48)(1,"label"),e._uU(2,"External Recipients "),e.TgZ(3,"span",49),e._uU(4,"*"),e.qZA()(),e._UZ(5,"p-multiSelect",151),e.qZA()),2&t){const o=e.oxw(3).ngIf;e.xp6(5),e.Q6J("options",o.entities)}}function Q1(t,M){if(1&t&&(e.TgZ(0,"div",54)(1,"label"),e._uU(2," Data Processor/Joint Fiduciary DPO Contact "),e.TgZ(3,"span",49),e._uU(4,"*"),e.qZA()(),e._UZ(5,"p-dropdown",156),e.qZA()),2&t){const o=e.oxw(4).ngIf;e.xp6(5),e.Q6J("options",o.dpoUsers||e.DdM(1,d1))}}function e2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(6);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(6);return e.KtG(n.removeEvidence("third_party_dpa_link"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function D1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",54)(1,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(2,"span"),e._uU(3,"DPA/Contract/Agreeement Link "),e.TgZ(4,"span",49),e._uU(5,"*"),e.qZA()(),e.TgZ(6,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(5);return e.KtG(n.openEvidenceModal("third_party_dpa_link"))}),e._UZ(7,"i",66),e.qZA()(),e._UZ(8,"input",157),e.YNc(9,e2,8,2,"div",68),e.qZA()}if(2&t){const o=e.oxw(5);e.xp6(9),e.Q6J("ngIf",o.getEvidence("third_party_dpa_link"))}}function f1(t,M){if(1&t&&(e.TgZ(0,"div",147)(1,"span",148),e._uU(2),e.qZA(),e.TgZ(3,"span",149),e._uU(4,"\u203a"),e.qZA(),e.TgZ(5,"span",150),e._uU(6),e.qZA()()),2&t){const o=M.$implicit;e.xp6(2),e.Oqu(o.recipient),e.xp6(4),e.Oqu(o.attribute)}}function k1(t,M){if(1&t&&(e.TgZ(0,"div",147)(1,"span",148),e._uU(2),e.qZA(),e.TgZ(3,"span",149),e._uU(4,"\u203a"),e.qZA(),e.TgZ(5,"span",150),e._uU(6),e.qZA()()),2&t){const o=M.$implicit;e.xp6(2),e.Oqu(o.recipient),e.xp6(4),e.Oqu(o.attribute)}}function C2(t,M){if(1&t&&(e.ynx(0),e.TgZ(1,"div",47)(2,"div",48)(3,"label"),e._uU(4," External Transfer Purpose "),e.TgZ(5,"span",49),e._uU(6,"*"),e.qZA()(),e._UZ(7,"input",152),e.qZA(),e.TgZ(8,"div",48)(9,"label"),e._uU(10,"Recipient Role (External) "),e.TgZ(11,"span",49),e._uU(12,"*"),e.qZA()(),e._UZ(13,"p-dropdown",153),e.qZA()(),e.YNc(14,Q1,6,2,"div",70),e.TgZ(15,"div",54)(16,"label"),e._uU(17," Has a Contract and a Data Processing Agreement executed with the Data Processor / Joint Fiduciary? "),e.TgZ(18,"span",49),e._uU(19,"*"),e.qZA()(),e._UZ(20,"p-dropdown",154),e.qZA(),e.YNc(21,D1,10,1,"div",70),e.TgZ(22,"div",54)(23,"label"),e._uU(24,"Personal Data Attributes per External Recipient "),e.TgZ(25,"span",49),e._uU(26,"*"),e.qZA()(),e.TgZ(27,"p-multiSelect",155),e.YNc(28,f1,7,2,"ng-template",145),e.YNc(29,k1,7,2,"ng-template",146),e.qZA()(),e.BQk()),2&t){const o=e.oxw().ngIf,c=e.oxw(2).ngIf,n=e.oxw();let m;e.xp6(13),e.Q6J("options",c.entityOptions||e.DdM(5,d1)),e.xp6(1),e.Q6J("ngIf",n.showDpoContact(o)),e.xp6(6),e.Q6J("options",e.DdM(6,D)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(m=o.get("data_transfer.has_data_processing_agreement"))?null:m.value)),e.xp6(6),e.Q6J("options",n.externalRecipientAttributeOptions)}}function b2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("cross_border_transfer"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function G2(t,M){if(1&t&&(e.TgZ(0,"div",48)(1,"label"),e._uU(2,"Recipient Country "),e.TgZ(3,"span",49),e._uU(4,"*"),e.qZA()(),e._UZ(5,"p-multiSelect",158),e.qZA()),2&t){const o=e.oxw(3).ngIf;
1e.xp6(5),e.Q6J("options",o.countries||e.DdM(1,d1))}}function d2(t,M){1&t&&(e.TgZ(0,"div",48)(1,"label"),e._uU(2," Is there any restriction on the cross border data trasnfer to the selected country? "),e.TgZ(3,"span",49),e._uU(4,"*"),e.qZA()(),e.TgZ(5,"textarea",159),e._uU(6,"                    "),e.qZA()())}function H2(t,M){if(1&t&&(e.TgZ(0,"div",147)(1,"span",148),e._uU(2),e.qZA(),e.TgZ(3,"span",149),e._uU(4,"\u203a"),e.qZA(),e.TgZ(5,"span",150),e._uU(6),e.qZA()()),2&t){const o=M.$implicit;e.xp6(2),e.Oqu(o.recipient),e.xp6(4),e.Oqu(o.attribute)}}function y2(t,M){if(1&t&&(e.TgZ(0,"div",147)(1,"span",148),e._uU(2),e.qZA(),e.TgZ(3,"span",149),e._uU(4,"\u203a"),e.qZA(),e.TgZ(5,"span",150),e._uU(6),e.qZA()()),2&t){const o=M.$implicit;e.xp6(2),e.Oqu(o.recipient),e.xp6(4),e.Oqu(o.attribute)}}function I2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(5);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(5);return e.KtG(n.removeEvidence("transfer_mode"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function C1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(5);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(5);return e.KtG(n.removeEvidence("transfer_safeguard_link"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}const x1=function(){return["Cloud Storage","Email","Remote access","Applications"]},L1=function(){return["Binding Corporate Rules","Adequacy Decision","Standard Contractual Clauses","Valid contract","Data Processing Agreements","Explicit Consent"]};function y1(t,M){if(1&t){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",47)(2,"div",48)(3,"label"),e._uU(4,"Cross-Border Data Recipients "),e.TgZ(5,"span",49),e._uU(6,"*"),e.qZA()(),e._UZ(7,"p-multiSelect",160),e.qZA(),e.TgZ(8,"div",48)(9,"label"),e._uU(10,"Cross-Border Transfer Purpose "),e.TgZ(11,"span",49),e._uU(12,"*"),e.qZA()(),e._UZ(13,"input",161),e.qZA()(),e.TgZ(14,"div",47)(15,"div",48)(16,"label"),e._uU(17,"Recipient Role (Cross-Border) "),e.TgZ(18,"span",49),e._uU(19,"*"),e.qZA()(),e._UZ(20,"p-dropdown",162),e.qZA(),e.TgZ(21,"div",48)(22,"label"),e._uU(23,"Personal Data Attributes per Cross-Border Recipient "),e.TgZ(24,"span",49),e._uU(25,"*"),e.qZA()(),e.TgZ(26,"p-multiSelect",163),e.YNc(27,H2,7,2,"ng-template",145),e.YNc(28,y2,7,2,"ng-template",146),e.qZA()()(),e.TgZ(29,"div",47)(30,"div",48)(31,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(32,"span"),e._uU(33,"Transfer Mode "),e.TgZ(34,"span",49),e._uU(35,"*"),e.qZA()(),e.TgZ(36,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.openEvidenceModal("transfer_mode"))}),e._UZ(37,"i",66),e.qZA()(),e._UZ(38,"p-multiSelect",164),e.YNc(39,I2,8,2,"div",68),e.qZA(),e.TgZ(40,"div",48)(41,"label"),e._uU(42,"Transfer Safeguard "),e.TgZ(43,"span",49),e._uU(44,"*"),e.qZA()(),e._UZ(45,"p-multiSelect",165),e.qZA()(),e.TgZ(46,"div",54)(47,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(48,"span"),e._uU(49,"Transfer Safeguard Link "),e.TgZ(50,"span",49),e._uU(51,"*"),e.qZA()(),e.TgZ(52,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.openEvidenceModal("transfer_safeguard_link"))}),e._UZ(53,"i",66),e.qZA()(),e._UZ(54,"input",166),e.YNc(55,C1,8,2,"div",68),e.qZA(),e.BQk()}if(2&t){const o=e.oxw().ngIf,c=e.oxw(2).ngIf,n=e.oxw();e.xp6(7),e.Q6J("options",n.buildCrossBorderRecipientNameOptions(o)),e.xp6(13),e.Q6J("options",c.entityOptions||e.DdM(7,d1)),e.xp6(6),e.Q6J("options",n.crossBorderRecipientAttributeOptions),e.xp6(12),e.Q6J("options",e.DdM(8,x1)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("transfer_mode")),e.xp6(6),e.Q6J("options",e.DdM(9,L1)),e.xp6(10),e.Q6J("ngIf",n.getEvidence("transfer_safeguard_link"))}}function b1(t,M){1&t&&e._uU(0,"Data Retention")}function B1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("data_retention_period"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function Z1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("data_disposal_method"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function p2(t,M){1&t&&e._uU(0,"Technical Measures")}function c2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(4);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.removeEvidence("security_measures_applied"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}const r2=function(){return["Encryption TLS","1.2","1.3","MFA","HTTPS"]};function _2(t,M){1&t&&(e.TgZ(0,"div",48)(1,"label"),e._uU(2,"Data at Rest Measures "),e.TgZ(3,"span",49),e._uU(4,"*"),e.qZA()(),e._UZ(5,"p-multiSelect",167),e.qZA()),2&t&&(e.xp6(5),e.Q6J("options",e.DdM(1,r2)))}function F2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",108),e._UZ(1,"i",109),e.TgZ(2,"span",110),e._uU(3,"Evidence:"),e.qZA(),e.TgZ(4,"a",111),e.NdJ("click",function(){const m=e.CHM(o).ngIf,U=e.oxw(5);return e.KtG(U.downloadEvidence(m))}),e._uU(5),e.qZA(),e.TgZ(6,"button",112),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(5);return e.KtG(n.removeEvidence("organizational_measures"))}),e._UZ(7,"i",113),e.qZA()()}if(2&t){const o=M.ngIf;e.xp6(4),e.MGl("title","Download ",o.name,""),e.xp6(1),e.Oqu(o.name)}}function h4(t,M){if(1&t){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",54)(2,"label"),e._uU(3,"Data in Transit Measures "),e.TgZ(4,"span",49),e._uU(5,"*"),e.qZA()(),e._UZ(6,"p-multiSelect",168),e.qZA(),e.TgZ(7,"div",54)(8,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(9,"span"),e._uU(10,"Organizational Measures "),e.TgZ(11,"span",49),e._uU(12,"*"),e.qZA()(),e.TgZ(13,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.openEvidenceModal("organizational_measures"))}),e._UZ(14,"i",66),e.qZA()(),e._UZ(15,"p-multiSelect",169),e.YNc(16,F2,8,2,"div",68),e.qZA(),e.BQk()}if(2&t){const o=e.oxw(3).ngIf,c=e.oxw();e.xp6(6),e.Q6J("options",e.DdM(3,r2)),e.xp6(9),e.Q6J("options",o.policies||e.DdM(4,d1)),e.xp6(1),e.Q6J("ngIf",c.getEvidence("organizational_measures"))}}const Z4=function(){return{margin:"10px"}},q2=function(){return{margin:"50px 15px"}},U4=function(){return["Applications","Websites","Forms","Survey","Events"]},d3=function(){return["One time only","Recurring","Monthly","Half-yearly","Yearly","Other"]},p3=function(){return["Direct","Indirect"]},J2=function(){return["Continuous","As needed","Occasional"]},y4=function(){return["Secure Wiping","Cryptographic Erasure","Degaussing","Physical Destruction","Deletion","Shredding","Pulping","Incineration","Crushing","Other"]};function E2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"main",30)(1,"section",31)(2,"div",32),e.YNc(3,Q,4,3,"ng-container",6),e.ALo(4,"async"),e.qZA(),e.TgZ(5,"div",33)(6,"div",34),e.O4$(),e.TgZ(7,"svg",35)(8,"defs")(9,"linearGradient",36),e._UZ(10,"stop",37)(11,"stop",38),e.qZA()(),e._UZ(12,"path",39)(13,"rect",40),e.qZA()(),e.kcU(),e.TgZ(14,"mat-horizontal-stepper",41,42),e.NdJ("selectionChange",function(n){e.CHM(o);const m=e.oxw(3);return e.KtG(m.onStepChange(n))}),e.TgZ(16,"mat-step",43),e.YNc(17,l,1,0,"ng-template",44),e.TgZ(18,"form",45)(19,"div",46)(20,"div",47)(21,"div",48)(22,"label"),e._uU(23,"Entity Name "),e.TgZ(24,"span",49),e._uU(25,"*"),e.qZA()(),e._UZ(26,"input",50),e.qZA(),e.TgZ(27,"div",48)(28,"label"),e._uU(29,"Applicable Regulation(s) "),e.TgZ(30,"span",49),e._uU(31,"*"),e.qZA()(),e._UZ(32,"p-multiSelect",51),e.qZA()(),e.TgZ(33,"div",47)(34,"div",48)(35,"label"),e._uU(36,"Entity Processing Capacity (Role) "),e.TgZ(37,"span",49),e._uU(38,"*"),e.qZA()(),e._UZ(39,"p-dropdown",52),e.qZA(),e.TgZ(40,"div",48)(41,"label"),e._uU(42,"Date of Initial Assessment "),e.TgZ(43,"span",49),e._uU(44,"*"),e.qZA()(),e._UZ(45,"input",53),e.qZA()(),e.TgZ(46,"div",54)(47,"label"),e._uU(48,"DPO Contact "),e.TgZ(49,"span",49),e._uU(50,"*"),e.qZA()(),e._UZ(51,"p-dropdown",55),e.qZA(),e.TgZ(52,"div",56)(53,"button",57),e.NdJ("click",function(){e.CHM(o);const n=e.MAs(15);return e.KtG(n.next())}),e._uU(54," Next "),e._UZ(55,"i",58),e.qZA()()()()(),e.TgZ(56,"mat-step",43),e.YNc(57,_,1,0,"ng-template",44),e.TgZ(58,"form",45)(59,"div",46)(60,"div",47)(61,"div",48)(62,"label"),e._uU(63,"Processing Activity Name "),e.TgZ(64,"span",49),e._uU(65,"*"),e.qZA()(),e._UZ(66,"input",59),e.qZA(),e.TgZ(67,"div",48)(68,"label"),e._uU(69,"Sub-Processing Activities"),e.qZA(),e._UZ(70,"input",60),e.qZA()(),e.TgZ(71,"div",54)(72,"label"),e._uU(73,"Description "),e.TgZ(74,"span",49),e._uU(75,"*"),e.qZA()(),e._UZ(76,"textarea",61),e.qZA(),e.TgZ(77,"div",47)(78,"div",48)(79,"label"),e._uU(80,"Processing Purpose(s) "),e.TgZ(81,"span",49),e._uU(82,"*"),e.qZA()(),e._UZ(83,"p-multiSelect",62),e.qZA(),e.TgZ(84,"div",48)(85,"label"),e._uU(86,"Processing Sub Purpose"),e.qZA(),e._UZ(87,"input",63),e.qZA()(),e.TgZ(88,"div",47)(89,"div",48)(90,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(91,"span"),e._uU(92,"Usage of AI, Machine Learning or any Emerging Technologies (Yes/No) "),e.TgZ(93,"span",49),e._uU(94,"*"),e.qZA()(),e.TgZ(95,"button",65),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("uses_ai"))}),e._UZ(96,"i",66),e.qZA()(),e._UZ(97,"p-dropdown",67),e.YNc(98,x,8,2,"div",68),e.qZA(),e.TgZ(99,"div",48)(100,"label"),e._uU(101,"Business Process Owner(s) "),e.TgZ(102,"span",49),e._uU(103,"*"),e.qZA()(),e._UZ(104,"p-multiSelect",69),e.qZA()(),e.YNc(105,A,6,0,"div",70),e.TgZ(106,"div",47)(107,"div",48)(108,"label"),e._uU(109,"Point of Contact "),e.TgZ(110,"span",49),e._uU(111,"*"),e.qZA()(),e._UZ(112,"p-multiSelect",71),e.qZA(),e.TgZ(113,"div",48)(114,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(115,"span"),e._uU(116,"Lawful Basis "),e.TgZ(117,"span",49),e._uU(118,"*"),e.qZA()(),e.TgZ(119,"button",65),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("lawful_basis"))}),e._UZ(120,"i",66),e.qZA()(),e._UZ(121,"p-multiSelect",72),e.YNc(122,V,8,2,"div",68),e.qZA()(),e.YNc(123,Y,67,15,"ng-container",6),e.YNc(124,P,10,3,"div",70),e.TgZ(125,"div",47)(126,"div",48)(127,"label"),e._uU(128,"Data Principal Categories "),e.TgZ(129,"span",49),e._uU(130,"*"),e.qZA()(),e._UZ(131,"p-multiSelect",73),e.qZA(),e.TgZ(132,"div",48)(133,"label"),e._uU(134,"Personal Data Attributes "),e.TgZ(135,"span",49),e._uU(136,"*"),e.qZA()(),e._UZ(137,"p-multiSelect",74),e.qZA()(),e.TgZ(138,"div",47)(139,"div",48)(140,"label"),e._uU(141," Personal Data Category "),e.TgZ(142,"span",49),e._uU(143,"*"),e.qZA()(),e._UZ(144,"p-multiSelect",75),e.qZA(),e.TgZ(145,"div",48)(146,"label"),e._uU(147," Is a Data Protection Impact Assesment required? "),e.TgZ(148,"span",49),e._uU(149,"*"),e.qZA()(),e._UZ(150,"p-dropdown",76),e.qZA()(),e.TgZ(151,"div",47)(1
152,"div",48)(153,"label"),e._uU(154," Applicaton, Systems and Tools used for processing Personal Data "),e.TgZ(155,"span",49),e._uU(156,"*"),e.qZA()(),e._UZ(157,"input",77),e.qZA(),e.TgZ(158,"div",48)(159,"label"),e._uU(160," Mode of Data Collection "),e.TgZ(161,"span",49),e._uU(162,"*"),e.qZA()(),e._UZ(163,"p-multiSelect",78),e.qZA()(),e.TgZ(164,"div",47)(165,"div",48)(166,"label"),e._uU(167,"Frequency of Collection "),e.TgZ(168,"span",49),e._uU(169,"*"),e.qZA()(),e._UZ(170,"p-dropdown",79),e.qZA(),e.TgZ(171,"div",48)(172,"label"),e._uU(173,"Data Source Type "),e.TgZ(174,"span",49),e._uU(175,"*"),e.qZA()(),e._UZ(176,"p-dropdown",80),e.qZA()(),e.TgZ(177,"div",47)(178,"div",54)(179,"label"),e._uU(180,"Data Source Jurisdiction "),e.TgZ(181,"span",49),e._uU(182,"*"),e.qZA()(),e._UZ(183,"p-multiSelect",81),e.qZA()(),e.YNc(184,m1,4,1,"div",82),e.TgZ(185,"div",56)(186,"button",83),e._UZ(187,"i",84),e._uU(188," Back "),e.qZA(),e.TgZ(189,"button",57),e.NdJ("click",function(){e.CHM(o);const n=e.MAs(15);return e.KtG(n.next())}),e._uU(190," Next "),e._UZ(191,"i",58),e.qZA()()()()(),e.TgZ(192,"mat-step",43),e.YNc(193,o1,1,0,"ng-template",44),e.TgZ(194,"form",45)(195,"div",46)(196,"div",47)(197,"div",48)(198,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(199,"span"),e._uU(200,"Data Storage System "),e.TgZ(201,"span",49),e._uU(202,"*"),e.qZA()(),e.TgZ(203,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("data_storage_system"))}),e._UZ(204,"i",66),e.qZA()(),e._UZ(205,"p-multiSelect",86),e.YNc(206,M1,8,2,"div",68),e.qZA(),e.TgZ(207,"div",48)(208,"label"),e._uU(209,"Data Storage Jurisdiction "),e.TgZ(210,"span",49),e._uU(211,"*"),e.qZA()(),e._UZ(212,"p-multiSelect",87),e.qZA()(),e.TgZ(213,"div",47)(214,"div",48)(215,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(216,"span"),e._uU(217,"Data Access Holders "),e.TgZ(218,"span",49),e._uU(219,"*"),e.qZA()(),e.TgZ(220,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("data_access_holders"))}),e._UZ(221,"i",66),e.qZA()(),e._UZ(222,"p-multiSelect",88),e.YNc(223,H,8,2,"div",68),e.qZA(),e.TgZ(224,"div",48)(225,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(226,"span"),e._uU(227,"Data Access Frequency"),e.qZA(),e.TgZ(228,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("data_access_frequency"))}),e._UZ(229,"i",66),e.qZA()(),e._UZ(230,"p-dropdown",89),e.YNc(231,Z,8,2,"div",68),e.qZA()(),e.TgZ(232,"div",47)(233,"div",48)(234,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(235,"span"),e._uU(236,"Backup Available? "),e.TgZ(237,"span",49),e._uU(238,"*"),e.qZA()(),e.TgZ(239,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("backup_available"))}),e._UZ(240,"i",66),e.qZA()(),e._UZ(241,"p-dropdown",90),e.YNc(242,B,8,2,"div",68),e.qZA(),e.YNc(243,E,6,1,"div",91),e.qZA(),e.TgZ(244,"div",47)(245,"div",48)(246,"label"),e._uU(247,"Personal Data Copies? "),e.TgZ(248,"span",49),e._uU(249,"*"),e.qZA()(),e._UZ(250,"p-dropdown",92),e.qZA(),e.YNc(251,c1,6,0,"div",91),e.qZA(),e.TgZ(252,"div",56)(253,"button",83),e._UZ(254,"i",84),e._uU(255," Back "),e.qZA(),e.TgZ(256,"button",57),e.NdJ("click",function(){e.CHM(o);const n=e.MAs(15);return e.KtG(n.next())}),e._uU(257," Next "),e._UZ(258,"i",58),e.qZA()()()()(),e.TgZ(259,"mat-step",43),e.YNc(260,i1,1,0,"ng-template",44),e.TgZ(261,"form",45)(262,"div",46)(263,"div",47)(264,"div",48)(265,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(266,"span"),e._uU(267,"Internal Transfer? "),e.TgZ(268,"span",49),e._uU(269,"*"),e.qZA()(),e.TgZ(270,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("internal_transfer"))}),e._UZ(271,"i",66),e.qZA()(),e._UZ(272,"p-dropdown",93),e.YNc(273,_1,8,2,"div",68),e.qZA(),e.YNc(274,U1,6,2,"div",91),e.qZA(),e.YNc(275,S1,15,1,"ng-container",6),e.TgZ(276,"div",47)(277,"div",48)(278,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(279,"span"),e._uU(280,"External Transfer? "),e.TgZ(281,"span",49),e._uU(282,"*"),e.qZA()(),e.TgZ(283,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("external_transfer"))}),e._UZ(284,"i",66),e.qZA()(),e._UZ(285,"p-dropdown",94),e.YNc(286,O1,8,2,"div",68),e.qZA(),e.YNc(287,G1,6,1,"div",91),e.qZA(),e.YNc(288,C2,30,7,"ng-container",6),e.TgZ(289,"div",47)(290,"div",48)(291,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(292,"span"),e._uU(293,"Cross Border Transfer? "),e.TgZ(294,"span",49),e._uU(295,"*"),e.qZA()(),e.TgZ(296,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("cross_border_transfer"))}),e._UZ(297,"i",66),e.qZA()(),e._UZ(298,"p-dropdown",95),e.YNc(299,b2,8,2,"div",68),e.qZA(),e.YNc(300,G2,6,2,"div",91),e.qZA(),e.YNc(301,d2,7,0,"div",91),e.YNc(302,y1,56,10,"ng-container",6),e.TgZ(303,"div",56)(304,"button",83),e._UZ(305,"i",84),e._uU(306," Back "),e.qZA(),e.TgZ(307,"button",57),e.NdJ("click",function(){e.CHM(o);const n=e.MAs(15);return e.KtG(n.next())}),e._uU(308," Next "),e._UZ(309,"i",58),e.qZA()()()()(),e.TgZ(310,"mat-step",43),e.YNc(311,b1,1,0,"ng-template",44),e.TgZ(312,"form",45)(313,"div",46)(314,"div",54)(315,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(316,"span"),e._uU(317,"Data Retention Period "),e.TgZ(318,"span",49),e._uU(319,"*"),e.qZA()(),e.TgZ(320,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("data_retention_period"))}),e._UZ(321,"i",66),e.qZA()(),e._UZ(322,"p-dropdown",96),e.YNc(323,B1,8,2,"div",68),e.qZA(),e.TgZ(324,"div",54)(325,"label"),e._uU(326,"Data Retention Purpose "),e.TgZ(327,"span",49),e._uU(328,"*"),e.qZA()(),e._UZ(329,"input",97),e.qZA(),e.TgZ(330,"div",47)(331,"div",48)(332,"label",64),e.NdJ("click",function(n){return n.preventDefault()}
1),e.TgZ(333,"span"),e._uU(334,"Data Disposal Method "),e.TgZ(335,"span",49),e._uU(336,"*"),e.qZA()(),e.TgZ(337,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("data_disposal_method"))}),e._UZ(338,"i",66),e.qZA()(),e._UZ(339,"p-multiSelect",98),e.YNc(340,Z1,8,2,"div",68),e.qZA(),e.TgZ(341,"div",48)(342,"label"),e._uU(343,"Data Disposal Owner "),e.TgZ(344,"span",49),e._uU(345,"*"),e.qZA()(),e._UZ(346,"input",99),e.qZA()(),e.TgZ(347,"div",56)(348,"button",83),e._UZ(349,"i",84),e._uU(350," Back "),e.qZA(),e.TgZ(351,"button",57),e.NdJ("click",function(){e.CHM(o);const n=e.MAs(15);return e.KtG(n.next())}),e._uU(352," Next "),e._UZ(353,"i",58),e.qZA()()()()(),e.TgZ(354,"mat-step",43),e.YNc(355,p2,1,0,"ng-template",44),e.TgZ(356,"form",45)(357,"div",46)(358,"div",47)(359,"div",48)(360,"label",64),e.NdJ("click",function(n){return n.preventDefault()}),e.TgZ(361,"span"),e._uU(362,"Security Measures Applied? "),e.TgZ(363,"span",49),e._uU(364,"*"),e.qZA()(),e.TgZ(365,"button",85),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.openEvidenceModal("security_measures_applied"))}),e._UZ(366,"i",66),e.qZA()(),e._UZ(367,"p-dropdown",100),e.YNc(368,c2,8,2,"div",68),e.qZA(),e.YNc(369,_2,6,2,"div",91),e.qZA(),e.YNc(370,h4,17,5,"ng-container",6),e.TgZ(371,"div",56)(372,"button",83),e._UZ(373,"i",84),e._uU(374," Back "),e.qZA(),e.TgZ(375,"button",57),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(3);return e.KtG(n.saveProcessActivity())}),e._uU(376),e._UZ(377,"i",101),e.qZA()()()()()()()()()}if(2&t){const o=M.ngIf,c=e.oxw(2).ngIf,n=e.oxw();let m,U,t1,n1,v1,w1,F1,A1,q1,R1,K1,I1;e.Q6J("ngStyle",e.DdM(81,Z4)),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,79,n.autoSaveStatus$)),e.xp6(11),e.Q6J("linear",!1)("selectedIndex",n.currentStep),e.xp6(2),e.Q6J("stepControl",o.get("business_process")),e.xp6(2),e.Q6J("formGroup",o.get("business_process"))("ngStyle",e.DdM(82,q2)),e.xp6(14),e.Q6J("options",c.legislation||e.DdM(83,d1)),e.xp6(7),e.Q6J("options",c.entityOptions),e.xp6(12),e.Q6J("options",c.dpoUsers||e.DdM(84,d1)),e.xp6(
15),e.Q6J("stepControl",o.get("processing_activity")),e.xp6(2),e.Q6J("formGroup",o.get("processing_activity"))("ngStyle",e.DdM(85,q2)),e.xp6(25),e.Q6J("options",c.assetsPurposes),e.xp6(14),e.Q6J("options",e.DdM(86,D)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("uses_ai")),e.xp6(6),e.Q6J("options",c.businessAreas||e.DdM(87,d1)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(m=o.get("processing_activity.uses_ai"))?null:m.value)),e.xp6(7),e.Q6J("options",c.users||e.DdM(88,d1)),e.xp6(9),e.Q6J("options",c.legalBases),e.xp6(1),e.Q6J("ngIf",n.getEvidence("lawful_basis")),e.xp6(1),e.Q6J("ngIf",n.hasLawfulConsent(o)),e.xp6(1),e.Q6J("ngIf",n.hasLawfulBasisRequiringLegitimateGround(o)),e.xp6(7),e.Q6J("options",c.dataSubjects),e.xp6(6),e.Q6J("options",c.dataAttributes),e.xp6(7),e.Q6J("options",c.dataCategories),e.xp6(6),e.Q6J("options",e.DdM(89,D)),e.xp6(13),e.Q6J("options",e.DdM(90,U4)),e.xp6(7),e.Q6J("options",e.DdM(91,d3)),e.xp6(6),e.Q6J("options",e.DdM(92,p3)),e.xp6(7),e.Q6J("options",c.countries),e.xp6(1),e.Q6J("ngIf",null==c.customAttributes?null:c.customAttributes.length),e.xp6(8),e.Q6J("stepControl",o.get("data_storage")),e.xp6(2),e.Q6J("formGroup",o.get("data_storage"))("ngStyle",e.DdM(93,q2)),e.xp6(11),e.Q6J("options",c.assets),e.xp6(1),e.Q6J("ngIf",n.getEvidence("data_storage_system")),e.xp6(6),e.Q6J("options",c.countries),e.xp6(10),e.Q6J("options",c.businessAreas||e.DdM(94,d1)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("data_access_holders")),e.xp6(7),e.Q6J("options",e.DdM(95,J2)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("data_access_frequency")),e.xp6(10),e.Q6J("options",e.DdM(96,D)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("backup_available")),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(U=o.get("data_storage.backup_available"))?null:U.value)),e.xp6(7),e.Q6J("options",e.DdM(97,D)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(t1=o.get("data_storage.personal_data_copies"))?null:t1.value)),e.xp6(8),e.Q6J("stepControl",o.get("data_transfer")),e.xp6(2),e.Q6J("formGroup",o.get("data_transfer"))("ngStyle",e.DdM(98,q2)),e.xp6(11),e.Q6J("options",e.DdM(99,D)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("internal_transfer")),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(n1=o.get("data_transfer.internal_transfer"))?null:n1.value)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(v1=o.get("data_transfer.internal_transfer"))?null:v1.value)),e.xp6(10),e.Q6J("options",e.DdM(100,D)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("external_transfer")),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(w1=o.get("data_transfer.external_transfer"))?null:w1.value)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(F1=o.get("data_transfer.external_transfer"))?null:F1.value)),e.xp6(10),e.Q6J("options",e.DdM(101,D)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("cross_border_transfer")),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(A1=o.get("data_transfer.cross_border_transfer"))?null:A1.value)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(q1=o.get("data_transfer.cross_border_transfer"))?null:q1.value)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(R1=o.get("data_transfer.cross_border_transfer"))?null:R1.value)),e.xp6(8),e.Q6J("stepControl",o.get("data_retention")),e.xp6(2),e.Q6J("formGroup",o.get("data_retention"))("ngStyle",e.DdM(102,q2)),e.xp6(10),e.Q6J("options",c.deletionPeriods||e.DdM(103,d1)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("data_retention_period")),e.xp6(16),e.Q6J("options",e.DdM(104,y4))("filter",!0),e.xp6(1),e.Q6J("ngIf",n.getEvidence("data_disposal_method")),e.xp6(14),e.Q6J("stepControl",o.get("technical_measures")),e.xp6(2),e.Q6J("formGroup",o.get("technical_measures"))("ngStyle",e.DdM(105,q2)),e.xp6(11),e.Q6J("options",e.DdM(106,D)),e.xp6(1),e.Q6J("ngIf",n.getEvidence("security_measures_applied")),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(K1=o.get("technical_measures.security_measures_applied"))?null:K1.value)),e.xp6(1),e.Q6J("ngIf","Yes"===(null==(I1=o.get("technical_measures.security_measures_applied"))?null:I1.value)),e.xp6(6),e.hij(" ","edit"===c.actionType?"Update":"Save"," ")}}const L4=function(t,M){return{oid:t,pid:M}};function E4(t,M){if(1&t&&(e.TgZ(0,"div")(1,"div",21)(2,"div",22)(3,"nav",23)(4,"ol",24)(5,"li",25)(6,"a",26),e._uU(7,"Home"),e.qZA()(),e.TgZ(8,"li",25)(9,"a",27),e._uU(10,"Activities"),e.qZA()(),e.TgZ(11,"li",28),e._uU(12),e.qZA()()()()(),e.YNc(13,E2,378,107,"main",29),e.ALo(14,"async"),e.qZA()),2&t){const o=e.oxw().ngIf,c=e.oxw();e.xp6(6),e.Q6J("queryParams",e.WLB(7,L4,o.oid,o.pid)),e.xp6(3),e.Q6J("routerLink","/ropa/activity")("queryParams",e.WLB(10,L4,o.oid,o.pid)),e.xp6(3),e.hij(" ","create"===o.actionType?"Create":"Update"," "),e.xp6(1),e.Q6J("ngIf",e.lcZ(14,5,c.entityForm$))}}function A4(t,M){1&t&&(e.TgZ(0,"div",170),e._UZ(1,"mat-spinner",171),e.qZA()),2&t&&(e.xp6(1),e.Q6J("strokeWidth",4))}function g3(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",172)(1,"span",173),e._uU(2,"Select Evidence Document"),e.qZA(),e.TgZ(3,"button",174),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.evidenceModalVisible=!1)}),e._UZ(4,"i",113),e.qZA()()}}function v3(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"button",187),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(4);return e.KtG(n.evidenceSearchQuery="")}),e._UZ(1,"i",113),e.qZA()}}function i2(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",182)(1,"span",183),e._UZ(2,"i",184),e.qZA(),e.TgZ(3,"input",185),e.NdJ("ngModelChange",function(n){e.CHM(o);const m=e.oxw(3);return e.KtG(m.evidenceSearchQuery=n)}),e.qZA(),e.YNc(4,v3,2,0,"button",186),e.qZA()}if(2&t){const o=e.oxw(3);e.xp6(3),e.Q6J("ngModel",o.evidenceSearchQuery),e.xp6(1),e.Q6J("ngIf",o.evidenceSearchQuery)}}function o2(t,M){1&t&&e._UZ(0,"i",194)}const u3=function(t,M,o,c){return{"pi-link":t,"pi-file-pdf":M,"pi-file-excel":o,"pi-file":c}};function m3(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",190),e.NdJ("click",function(){const m=e.CHM(o).$implicit,U=e.oxw(5);return e.KtG(U.selectEvidence(m))}),e._UZ(1,"i",191),e.TgZ(2,"span",192),e._uU(3),e.qZA(),e.YNc(4,o2,1,0,"i",193),e.qZA()}if(2&t){const o=M.$implicit,c=e.oxw(5);let n,m;e.ekj("evidence-doc-selected",(null==(n=c.getEvidence(c.activeEvidenceFieldName))?null:n.id)===o.id),e.xp6(1),e.Q6J("ngClass",e.l5B(5,u3,o.document_url,!o.document_url&&"application/pdf"===o.file_type,!o.document_url&&((null==o.file_type?null:o.file_type.includes("spreadsheet"))||(null==o.file_type?null:o.file_type.includes("excel"))),!(o.document_url||null!=o.file_type&&o.file_type.includes("pdf")||null!=o.file_type&&o.file_type.includes("spreadsheet")||null!=o.file_type&&o.file_type.includes("excel")))),e.xp6(2),e.Oqu(o.name),e.xp6(1),e.Q6J("ngIf",(null==(m=c.getEvidence(c.activeEvidenceFieldName))?null:m.id)===o.id)}}function d4(t,M){if(1&t&&(e.ynx(0),e.YNc(1,m3,5,10,"div",189),e.BQk()),2&t){const o=e.oxw(2).ngIf,c=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",c.filteredDocs(o.documents))}}function Z3(t,M){if(1&t&&(e.TgZ(0,"div",195),e._UZ(1,"i",196),e.TgZ(2,"p"),e._uU(3," No documents match "),e.TgZ(4,"strong"),e._uU(5),e.qZA()()()),2&t){const o=e.oxw(4);e.xp6(5),e.hij('"',o.evidenceSearchQuery,'"')}}function U3(t,M){if(1&t&&(e.ynx(0),e.YNc(1,d4,2,1,"ng-container",2),e.YNc(2,Z3,6,1,"ng-template",null,188,e.W1O),e.BQk()),2&t){const o=e.MAs(3),c=e.oxw().ngIf,n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",n.filteredDocs(c.documents).length)("ngIfElse",o)}}function b6(t,M){1&t&&(e.TgZ(0,"div",195),e._UZ(1,"i",197),e.TgZ(2,"p"),e._uU(3,"No documents available."),e.qZA()())}function E3(t,M){if(1&t){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",175)(2,"button",176),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.openEvidenceUploadModal())}),e._UZ(3,"i",14),e.TgZ(4,"span"),e._uU(5,"Add by Upload"),e.qZA()(),e.TgZ(6,"button",176),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.openEvidenceUrlModal())}),e._UZ(7,"i",177),e.TgZ(8,"span"),e._uU(9,"Add by URL"),e.qZA()()(),e.TgZ(10,"div",178)(11,"span"),e._uU(12,"or select existing"),e.qZA()(),e.YNc(13,i2,5,2,"div",179),e.TgZ(14,"div",180),e.YNc(15,U3,4,2,"ng-container",2),e.YNc(16,b6,4,0,"ng-template",null,181,e.W1O),e.qZA(),e.BQk()}if(2&t){const o=M.ngIf,c=e.MAs(17);e.xp6(13),e.Q6J("ngIf",null==o.documents?null:o.documents.length),e.xp6(2),e.Q6J("ngIf",null==o.documents?null:o.documents.length)("ngIfElse",c)}}function y6(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",172)(1,"span",173),e._uU(2,"Add Document by Upload"),e.qZA(),e.TgZ(3,"button",174),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.closeEvidenceUploadModal())}),e._UZ(4,"i",113),e.qZA()()}}function D3(t,M){if(1&t&&(e.TgZ(0,"div",198),e._UZ(1,"i",199),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&t){const o=e.oxw(2);e.xp6(3),e.Oqu(o.evidenceUploadError)}}function p6(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",200)(1,"button",201),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.closeEvidenceUploadModal())}),e._uU(2," Cancel "),e.qZA(),e.TgZ(3,"button",202),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);
1return e.KtG(n.onEvidenceUploadSubmit())}),e._UZ(4,"i",191),e._uU(5),e.qZA()()}if(2&t){const o=e.oxw(2);e.xp6(3),e.Q6J("disabled",!o.evidenceUploadForm.file||o.evidenceUploadLoading),e.xp6(1),e.Q6J("ngClass",o.evidenceUploadLoading?"pi-spin pi-spinner":"pi-upload"),e.xp6(1),e.hij(" ",o.evidenceUploadLoading?"Uploading\u2026":"Upload"," ")}}function q3(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",172)(1,"span",173),e._uU(2,"Add Document by URL"),e.qZA(),e.TgZ(3,"button",174),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.closeEvidenceUrlModal())}),e._UZ(4,"i",113),e.qZA()()}}function f3(t,M){if(1&t&&(e.TgZ(0,"div",198),e._UZ(1,"i",199),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&t){const o=e.oxw(2);e.xp6(3),e.Oqu(o.evidenceUrlError)}}function g(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",200)(1,"button",201),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.closeEvidenceUrlModal())}),e._uU(2," Cancel "),e.qZA(),e.TgZ(3,"button",202),e.NdJ("click",function(){e.CHM(o);const n=e.oxw(2);return e.KtG(n.onEvidenceUrlSubmit())}),e._UZ(4,"i",191),e._uU(5),e.qZA()()}if(2&t){const o=e.oxw(2);e.xp6(3),e.Q6J("disabled",!(null!=o.evidenceUrlForm.name&&o.evidenceUrlForm.name.trim())||!(null!=o.evidenceUrlForm.document_url&&o.evidenceUrlForm.document_url.trim())||o.evidenceUrlLoading),e.xp6(1),e.Q6J("ngClass",o.evidenceUrlLoading?"pi-spin pi-spinner":"pi-plus"),e.xp6(1),e.hij(" ",o.evidenceUrlLoading?"Adding\u2026":"Add"," ")}}const j=function(){return{width:"520px"}},a1=function(){return{width:"460px"}};function g1(t,M){if(1&t){const o=e.EpF();e.TgZ(0,"div",1),e.YNc(1,E4,15,13,"div",2),e.ALo(2,"async"),e.YNc(3,A4,2,1,"ng-template",null,3,e.W1O),e.TgZ(5,"p-dialog",4),e.NdJ("visibleChange",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.evidenceModalVisible=n)})("onHide",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.resetEvidenceSearch())}),e.YNc(6,g3,5,0,"ng-template",5),e.YNc(7,E3,18,3,"ng-container",6),e.ALo(8,"async"),e.qZA(),e.TgZ(9,"p-dialog",7),e.NdJ("visibleChange",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.evidenceUploadModalVisible=n)}),e.YNc(10,y6,5,0,"ng-template",5),e.TgZ(11,"div",8)(12,"div",9)(13,"label"),e._uU(14,"Name"),e.qZA(),e._UZ(15,"input",10),e.qZA(),e.TgZ(16,"div",9)(17,"label"),e._uU(18,"Upload File "),e.TgZ(19,"span",11),e._uU(20,"*"),e.qZA()(),e.TgZ(21,"input",12),e.NdJ("change",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.onEvidenceFileSelected(n))}),e.qZA(),e.TgZ(22,"label",13),e._UZ(23,"i",14),e.TgZ(24,"span"),e._uU(25),e.qZA()(),e.YNc(26,D3,4,1,"div",15),e.qZA(),e.TgZ(27,"div",9)(28,"label"),e._uU(29,"Type"),e.qZA(),e.TgZ(30,"input",16),e.NdJ("ngModelChange",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.evidenceUploadForm.type=n)}),e.qZA()()(),e.YNc(31,p6,6,3,"ng-template",17),e.qZA(),e.TgZ(32,"p-dialog",7),e.NdJ("visibleChange",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.evidenceUrlModalVisible=n)}),e.YNc(33,q3,5,0,"ng-template",5),e.TgZ(34,"div",8)(35,"div",9)(36,"label"),e._uU(37,"Name "),e.TgZ(38,"span",11),e._uU(39,"*"),e.qZA()(),e.TgZ(40,"input",18),e.NdJ("ngModelChange",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.evidenceUrlForm.name=n)}),e.qZA()(),e.TgZ(41,"div",9)(42,"label"),e._uU(43,"URL "),e.TgZ(44,"span",11),e._uU(45,"*"),e.qZA()(),e.TgZ(46,"input",19),e.NdJ("ngModelChange",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.evidenceUrlForm.document_url=n)}),e.qZA()(),e.TgZ(47,"div",9)(48,"label"),e._uU(49,"Type"),e.qZA(),e.TgZ(50,"input",16),e.NdJ("ngModelChange",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.evidenceUrlForm.type=n)}),e.qZA()(),e.YNc(51,f3,4,1,"div",15),e.qZA(),e.YNc(52,g,6,3,"ng-template",17),e.qZA(),e._UZ(53,"p-toast",20)(54,"p-confirmDialog"),e.qZA()}if(2&t){const o=M.ngIf,c=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("ngIf",e.lcZ(2,34,o.initialLoad))("ngIfElse",c),e.xp6(4),e.Akn(e.DdM(38,j)),e.Q6J("visible",n.evidenceModalVisible)("modal",!0)("closable",!1)("draggable",!1)("resizable",!1),e.xp6(2),e.Q6J("ngIf",e.lcZ(8,36,n.stateObs)),e.xp6(2),e.Akn(e.DdM(39,a1)),e.Q6J("visible",n.evidenceUploadModalVisible)("modal",!0)("closable",!1)("draggable",!1)("resizable",!1),e.xp6(6),e.Q6J("ngModel",n.evidenceUploadForm.name),e.xp6(7),e.ekj("ev-file-label--chosen",n.evidenceUploadForm.file),e.xp6(3),e.Oqu(n.evidenceUploadForm.file?n.evidenceUploadForm.file.name:"Choose file\u2026"),e.xp6(1),e.Q6J("ngIf",n.evidenceUploadError),e.xp6(4),e.Q6J("ngModel",n.evidenceUploadForm.type),e.xp6(2),e.Akn(e.DdM(40,a1)),e.Q6J("visible",n.evidenceUrlModalVisible)("modal",!0)("closable",!1)("draggable",!1)("resizable",!1),e.xp6(8),e.Q6J("ngModel",n.evidenceUrlForm.name),e.xp6(6),e.Q6J("ngModel",n.evidenceUrlForm.document_url),e.xp6(4),e.Q6J("ngModel",n.evidenceUrlForm.type),e.xp6(1),e.Q6J("ngIf",n.evidenceUrlError)}}let z1=(()=>{const M=class{constructor(c){this.processActivitiesDetailsPageActionService=c,this.entityForm$=this.processActivitiesDetailsPageActionService.modalConfigForm,this.stateObs=this.processActivitiesDetailsPageActionService.getStateObs(),this.currentStep=0,this.selectedIndex=0,this.selectedIndexProcessor=0,this.internalRecipientAttributeOptions=[],this.externalRecipientAttributeOptions=[],this.crossBorderRecipientAttributeOptions=[],this.evidenceModalVisible=!1,this.evidenceUploadModalVisible=!1,this.evidenceUrlModalVisible=!1,this.activeEvidenceFieldName="",this.evidenceSearchQuery="",this.evidenceUploadLoading=!1,this.evidenceUploadError="",this.evidenceUploadForm={name:"",file:null,type:""},this.evidenceUrlForm={name:"",document_url:"",type:""},this.evidenceUrlLoading=!1,this.evidenceUrlError="",this.currentForm=null,this.subscriptions=[],this.autoSaveStatus$=this.processActivitiesDetailsPageActionService.autoSaveStatusObs,this.lastSavedAt$=this.processActivitiesDetailsPageActionService.lastSavedAtObs}ngOnInit(){this.processActivitiesDetailsPageActionService.init(),this.entityForm$.subscribe(c=>{c&&(this.currentForm=c,this.updateRecipientAttributeOptions(c),this.subscriptions.push(c.get("data_transfer.internal_recipients")?.valueChanges.subscribe(()=>this.updateRecipientAttributeOptions(c))),this.subscriptions.push(c.get("data_transfer.external_recipients")?.valueChanges.subscribe(()=>this.updateRecipientAttributeOptions(c))),this.subscriptions.push(c.get("data_transfer.cross_border_data_recipients")?.valueChanges.subscribe(()=>this.updateRecipientAttributeOptions(c))),this.subscriptions.push(c.get("processing_activity.uses_ai")?.valueChanges.subscribe(n=>{"Yes"!==n&&this.removeEvidence("ai_purpose")})),this.subscriptions.push(c.get("processing_activity.lawful_basis")?.valueChanges.subscribe(()=>{this.hasLawfulBasisRequiringLegitimateGround(c)||this.removeEvidence("legitimate_use_ground"),this.hasLawfulConsent(c)||["
1is_consent_recorded","consent_capture_link","consent_verbiage","privacy_notice_link","consent_withdrawal_link"].forEach(n=>this.removeEvidence(n))})),this.subscriptions.push(c.get("processing_activity.privacy_notice_presented")?.valueChanges.subscribe(n=>{"Yes"!==n&&this.removeEvidence("privacy_notice_link")})),this.subscriptions.push(c.get("processing_activity.consent_withdrawal_available")?.valueChanges.subscribe(n=>{"Yes"!==n&&this.removeEvidence("consent_withdrawal_link")})),this.subscriptions.push(c.get("data_transfer.external_transfer")?.valueChanges.subscribe(n=>{"Yes"!==n&&this.removeEvidence("third_party_dpa_link")})),this.subscriptions.push(c.get("data_transfer.has_data_processing_agreement")?.valueChanges.subscribe(n=>{"Yes"!==n&&this.removeEvidence("third_party_dpa_link")})),this.subscriptions.push(c.get("data_transfer.cross_border_transfer")?.valueChanges.subscribe(n=>{"Yes"!==n&&(this.removeEvidence("transfer_mode"),this.removeEvidence("transfer_safeguard_link"))})),this.subscriptions.push(c.get("technical_measures.security_measures_applied")?.valueChanges.subscribe(n=>{"Yes"!==n&&this.removeEvidence("organizational_measures")})),this.subscriptions.push(c.get("processing_activity.personal_data_attributes")?.valueChanges.subscribe(()=>this.updateRecipientAttributeOptions(c))))})}onStepChange(c){this.currentStep=c.selectedIndex,this.selectedIndex=0,this.selectedIndexProcessor=0}goTo(c){this.currentStep=c}toggleAccordion(c){this.selectedIndex=this.selectedIndex===c?null:c}toggleAccordionProcessor(c){this.selectedIndexProcessor=this.selectedIndexProcessor===c?-1:c}saveProcessActivity(){this.processActivitiesDetailsPageActionService.saveProcessActivity()}hasLawfulConsent(c){const n=c.get("processing_activity.lawful_basis")?.value;return!!n&&(Array.isArray(n)?n:[n]).some(U=>{const t1=String(U?.code||"").trim().toUpperCase(),n1=String("string"==typeof U?U:U?.name||"");return t1===M.CONSENT_CODE||n1===M.CONSENT_NAME})}hasLawfulBasisRequiringLegitimateGround(c){const n=c.get("processing_activity.lawful_basis")?.value;return!!n&&(Array.isArray(n)?n:[n]).some(U=>{const t1=String(U?.code||"").trim().toUpperCase(),n1=String("string"==typeof U?U:U?.name||"");return t1!==M.CONSENT_CODE&&n1!==M.CONSENT_NAME})}getLegitimateGroundLabel(c){const n=c.get("processing_activity.lawful_basis")?.value,U=(Array.isArray(n)?n:n?[n]:[]).map(n1=>{const v1=String(n1?.code||"").trim().toUpperCase(),w1=String("string"==typeof n1?n1:n1?.name||"").trim();return v1!==M.CONSENT_CODE&&w1!==M.CONSENT_NAME&&w1?w1:null}).filter(n1=>!!n1);return`If ${U.length?U.join(" / "):"selected lawful basis"}, which ground?`}isYes(c,n){return"Yes"===c.get(n)?.value}openEvidenceModal(c){this.activeEvidenceFieldName=c,this.evidenceSearchQuery="",this.evidenceModalVisible=!0}resetEvidenceSearch(){this.evidenceSearchQuery=""}openEvidenceUploadModal(){this.evidenceUploadForm={name:"",file:null,type:""},this.evidenceUploadError="",this.evidenceUploadModalVisible=!0}closeEvidenceUploadModal(){this.evidenceUploadModalVisible=!1,this.evidenceUploadForm={name:"",file:null,type:""},this.evidenceUploadError="",this.evidenceUploadLoading=!1}openEvidenceUrlModal(){this.evidenceUrlForm={name:"",document_url:"",type:""},this.evidenceUrlError="",this.evidenceUrlModalVisible=!0}closeEvidenceUrlModal(){this.evidenceUrlModalVisible=!1,this.evidenceUrlForm={name:"",document_url:"",type:""},this.evidenceUrlError="",this.evidenceUrlLoading=!1}onEvidenceFileSelected(c){const n=c.target,m=n.files?.[0];m&&(this.evidenceUploadForm={...this.evidenceUploadForm,name:m.name,file:m},this.evidenceUploadError="",n.value="")}onEvidenceUploadSubmit(){this.evidenceUploadForm.file&&(this.evidenceUploadLoading=!0,this.evidenceUploadError="",this.processActivitiesDetailsPageActionService.uploadEvidenceDocument(this.evidenceUploadForm.file,this.evidenceUploadForm.type,(c,n)=>{this.evidenceUploadLoading=!1,c?(this.evidenceUploadForm={name:"",file:null,type:""},this.evidenceUploadModalVisible=!1):this.evidenceUploadError=n??"Upload failed. Please try again."}))}onEvidenceUrlSubmit(){this.evidenceUrlLoading=!0,this.evidenceUrlError="",this.processActivitiesDetailsPageActionService.addEvidenceDocumentByUrl(this.evidenceUrlForm,(c,n)=>{this.evidenceUrlLoading=!1,c?(this.evidenceUrlForm={name:"",document_url:"",type:""},this.evidenceUrlModalVisible=!1):this.evidenceUrlError=n??"Failed to add document. Please try again."})}filteredDocs(c){if(!c)return[];const n=this.evidenceSearchQuery.trim().toLowerCase();return n?c.filter(m=>(m.name||"").toLowerCase().includes(n)):c}selectEvidence(c){if(!this.currentForm)return;
1const m=(this.currentForm.get("field_evidences")?.value||[]).filter(U=>U.field_name!==this.activeEvidenceFieldName);m.push({field_name:this.activeEvidenceFieldName,id:c.id,name:c.name,document_url:c.document_url||""}),this.currentForm.get("field_evidences")?.setValue(m),this.currentForm.get("field_evidences")?.markAsDirty(),this.currentForm.markAsDirty(),this.evidenceModalVisible=!1}getEvidence(c){return this.currentForm&&(this.currentForm.get("field_evidences")?.value||[]).find(m=>m.field_name===c)||null}removeEvidence(c){if(!this.currentForm)return;const n=this.currentForm.get("field_evidences")?.value||[];this.currentForm.get("field_evidences")?.setValue(n.filter(m=>m.field_name!==c)),this.currentForm.get("field_evidences")?.markAsDirty(),this.currentForm.markAsDirty()}downloadEvidence(c){c?.document_url?window.open(c.document_url,"_blank","noopener,noreferrer"):this.processActivitiesDetailsPageActionService.downloadEvidence(c)}showDpoContact(c){const n=c.get("data_transfer.recipient_role_external_transer")?.value;if(!n)return!1;const m=("string"==typeof n?n:n?.name||"").trim();return"Data Processor"===m||"Joint-Fiduciary"===m}normalizeArray(c){return c?Array.isArray(c)?c:[c]:[]}getAttributeNames(c){const n=c.get("processing_activity");return n?this.normalizeArray(n.get("personal_data_attributes")?.value||[]).map(U=>U&&U.name?U.name:U).filter(U=>!!U):[]}buildCrossBorderRecipientNameOptions(c){const n=c.get("data_transfer");if(!n)return[];const m=this.normalizeArray(n.get("internal_recipients")?.value||[]),U=this.normalizeArray(n.get("external_recipients")?.value||[]),t1=new Set;return[...m,...U].forEach(n1=>{n1&&t1.add(n1)}),Array.from(t1)}buildRecipientAttributeOptions(c,n){const m=c.get("data_transfer");if(!m)return[];const U=this.getAttributeNames(c);if(!U.length)return[];let t1=[];if(t1=this.normalizeArray("internal"===n?m.get("internal_recipients")?.value||[]:"external"===n?m.get("external_recipients")?.value||[]:m.get("cross_border_data_recipients")?.value||[]),!t1.length)return[];const n1=t1.map(w1=>w1?.name??w1?.email??w1).filter(w1=>!!w1).map(w1=>String(w1)),v1=[];return n1.forEach(w1=>{U.forEach(F1=>{v1.push({label:`${w1} \u203a ${F1}`,value:`${w1}|||${F1}`,recipient:w1,attribute:F1})})}),v1}updateRecipientAttributeOptions(c){this.internalRecipientAttributeOptions=this.buildRecipientAttributeOptions(c,"internal"),this.externalRecipientAttributeOptions=this.buildRecipientAttributeOptions(c,"external"),this.crossBorderRecipientAttributeOptions=this.buildRecipientAttributeOptions(c,"cross-border")}};let t=M;return M.CONSENT_CODE="CONSENT",M.CONSENT_NAME="Consent",M.\u0275fac=function(n){return new(n||M)(e.Y36(z))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-process-activities-details-page"]],features:[e._Bn([z])],decls:2,vars:3,consts:[["class","pp-min-h-screen pp-bg-[#F6F8FF] processing-create-page",4,"ngIf"],[1,"pp-min-h-screen","pp-bg-[#F6F8FF]","processing-create-page"],[4,"ngIf","ngIfElse"],["loader",""],["appendTo","body",3,"visible","modal","closable","draggable","resizable","visibleChange","onHide"],["pTemplate","header"],[4,"ngIf"],["appendTo","body",3,"visible","modal","closable","draggable","resizable","visibleChange"],[1,"ev-form"],[1,"ev-field"],["placeholder","File name will be used","disabled","",3,"ngModel"],[1,"evidence-required"],["type","file","id","evFileInput","accept",".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.png,.jpg,.jpeg",1,"evidence-upload-input","ev-file-input",3,"change"],["for","evFileInput",1,"ev-file-label"],[1,"pi","pi-upload"],["class","evidence-upload-error ev-error",4,"ngIf"],["type","text","placeholder","Enter document type",3,"ngModel","ngModelChange"],["pTemplate","footer"],["type","text","placeholder","Enter document name",3,"ngModel","ngModelChange"],["type","text","placeholder","https://...",3,"ngModel","ngModelChange"],["position","bottom-right"],[1,"col-md-12",2,"margin-bottom","25px","margin-top","15px","margin-left","6.5px"],[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",1,"bredcrub-row",2,"margin-left","-14px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/home/welcome",3,"queryParams"],[3,"routerLink","queryParams"],[1,"breadcrumb-item","active"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[1,"pp-relative","pp-rounded-3xl","pp-border","pp-border-slate-100","pp-bg-white","pp-shadow-[0_20px_60px_rgba(2,6,23,0.08)]","pp-overflow-hidden"],[1,"autosave-indicator"],[1,"pp-relative",2,"margin-top","60px"],[1,"pp-absolute","pp-inset-0","pp-pointer-events-none"],["viewBox","0 0 1440 260","preserveAspectRatio","none","aria-hidden","true",1,"pp-w-full","pp-h-full"],["id","g","x1","0","x2","1"],["offset","0","stop-color","#ecfbf3"],["offset","1","stop-color","#ffffff"],["d","M0,120 C220,200 420,40 640,120 C860,200 1060,40 1280,120 C1360,160 1440,140 1440,140 L1440,260 L0,260 Z","fill","url(#g)"],["x","0","y","0","width","1440","height","260","fill","#16bf5e","opacity","0.03"],[3,"linear","selectedIndex","selectionChange"],["stepper",""],[3,"stepControl"],["matStepLabel",""],[1,"two-col",3,"formGroup","ngStyle"],[1,"col"],[1,"row-2"],[1,"field"],[1,"req"],["pInputText","","formControlName","entity_name","placeholder","Enter entity name"],["optionLabel","name","formControlName","applicable_regulation","placeholder","Select regulation(s)","appendTo","body",3,"options"],["optionLabel","name","formControlName","entity_processing_role","appendTo","body","placeholder","Select entity processing capacity",3,"options"],["pInputText","","type","date","formControlName","date_of_assessment"],[1,"field-100"],["optionLabel","email","formControlName","dpo_contact","appendTo","body","placeholder","Select DPO contact (user)",3,"options"],[1,"actions"],["pButton","","type","button",1,"btn-primary",3,"click"],[1,"pi","pi-arrow-right"],["pInputText","","formControlName","processing_activity_name","placeholder","Select / enter processing activity"],["pInputText","","formControlName","sub_processing_activities","placeholder","Sub-processing activities"],["pInputTextarea","","rows","4","formControlName","description","placeholder","Detailed description of the Processing and Sub-Processing Activities"],["optionLabel","name","formControlName","processing_purpose","placeholder","Select purpose(s)","appendTo","body",3,"options"],["pInputText","","formControlName","processing_sub_purpose","placeholder","Enter processing sub purpose"],[1,"label-with-evidence",3,"click"],["type","button","title","Attach evidence (optional)",1,"evidence-icon-btn",3,"click"],[1,"pi","pi-paperclip"],["formControlName","uses_ai","appendTo","body","placeholder","Select",3,"options"],["class","evidence-chip",4,"ngIf"],["o
1ptionLabel","name","formControlName","business_process_owner","placeholder","Select business process owner(s)","appendTo","body",3,"options"],["class","field-100",4,"ngIf"],["optionLabel","email","formControlName","point_of_contact","appendTo","body","placeholder","Select point of contact (user)",3,"options"],["optionLabel","name","dataKey","id","formControlName","lawful_basis","placeholder","Select lawful basis","appendTo","body",3,"options"],["optionLabel","name","formControlName","data_principals_category","placeholder","Select data principal categories","appendTo","body",3,"options"],["optionLabel","name","formControlName","personal_data_attributes","placeholder","Select personal data attributes","appendTo","body",3,"options"],["optionLabel","name","formControlName","personal_data_category","placeholder","Select personal data category","appendTo","body",3,"options"],["formControlName","dpia_required","appendTo","body","placeholder","Select DPIA Required",3,"options"],["pInputText","","formControlName","applications_used","placeholder","Applications Used"],["formControlName","mode_of_data_collection","placeholder","Select mode(s) of data collection","appendTo","body",3,"options"],["formControlName","frequency_of_collection","placeholder","Frequency of collection","appendTo","body",3,"options"],["formControlName","data_source_type","appendTo","body","placeholder","Select data source type",3,"options"],["formControlName","data_source_jurisdiction","placeholder","Select jurisdictions","appendTo","body",3,"options"],["class","custom-attributes-section",4,"ngIf"],["type","button","matStepperPrevious","",1,"btn-ghost"],[1,"pi","pi-arrow-left"],["type","button","title","Attach evidence",1,"evidence-icon-btn",3,"click"],["optionLabel","name","formControlName","data_storage_system","placeholder","Select system(s)","appendTo","body",3,"options"],["formControlName","data_storage_jurisdiction","placeholder","Select jurisdictions","appendTo","body",3,"options"],["formControlName","data_access_holders","optionLabel","name","placeholder","Select holders","appendTo","body",3,"options"],["formControlName","data_access_frequency","appendTo","body","placeholder","Select data access frequency",3,"options"],["formControlName","backup_available","appendTo","body","placeholder","Select",3,"options"],["class","field",4,"ngIf"],["formControlName","personal_data_copies","appendTo","body","placeholder","Select",3,"options"],["formControlName","internal_transfer","appendTo","body","placeholder","Select",3,"options"],["formControlName","external_transfer","appendTo","body","placeholder","Select",3,"options"],["formControlName","cross_border_transfer","appendTo","body","placeholder","Select",3,"options"],["optionLabel","name","formControlName","data_retention_period","appendTo","body","placeholder","Select data retention period",3,"options"],["pInputText","","formControlName","data_retention_purpose","placeholder","Purpose for retaining data"],["formControlName","data_disposal_method","placeholder","Select disposal method(s)","appendTo","body",3,"options","filter"],["pInputText","","formControlName","data_disposal_owner","placeholder","Owner responsible for data disposal"],["formControlName","security_measures_applied","appendTo","body","placeholder","Select",3,"options"],[1,"pi","pi-check"],["class","saving-text",4,"ngIf"],["class","error-text",4,"ngIf"],["class","saved-text",4,"ngIf"],[1,"saving-text"],[1,"error-text"],[1,"saved-text"],[1,"evidence-chip"],[1,"pi","pi-paperclip","evidence-chip-icon"],[1,"evidence-label"],[1,"evidence-name","evidence-download-link",3,"title","click"],["type","button","title","Remove evidence",1,"evidence-remove-btn",3,"click"],[1,"pi","pi-times"],["pInputText","","formControlName","ai_purpose","placeholder","If AI used, brief purpose"],["formControlName","nature_of_consent","appendTo","body","placeholder","Select nature of consent",3,"options"],["formControlName","type_of_consent","appendTo","body","placeholder","Select type of consent",3,"options"],["pInputText","","formControlName","consent_collection_channel","placeholder","Collection channel"],["formControlName","is_consent_recorded","appendTo","body","placeholder","Select",3,"options"],["class","row-2",4,"ngIf"],["formControlName","privacy_notice_presented","appendTo","body","placeholder","Select",3,"options"],["formControlName","consent_withdrawal_available","appendTo","body","placeholder","Select",3,"options"],["pInputText","","formControlName","consent_capture_link","placeholder","URL where consent is captured"],["pInputTextarea","","rows","3","formControlName","consent_verbiage","placeholder","Key consent wording shown to data principals"],["pInputText","","formControlName","consent_recording_method","placeholder","Method of recording consent"],["pInputText","","formControlName","consent_record_storage","placeholder","Where consent records are stored"],["pInputText","","formControlName","privacy_notice_link","placeholder","Link to privacy notice"],["pInputText","","formControlName","consent_withdrawal_link","placeholder","Link for withdrawing consent"],["optionLabel","name","dataKey","id","formControlName","legitimate_use_ground","appendTo","body","placeholder","Select Legitimate Use Ground",3,"options"],[1,"custom-attributes-section"],[1,"custom-title"],["class","row-2",4,"ngFor","ngForOf"],["class","req",4,"ngIf"],["pInputText","",3,"formControl","placeholder"],["pInputTextarea","","rows","4",3,"formControl","placeholder"],["appendTo","body",3,"options","formControl","placeholder"],["appendTo","body",3,"options","formControl","placeholder","filter"],["binary","true",3,"formControl"],["type","date","pInputText","",3,"formControl"],["type","number","pInputText","",3,"formControl","placeholder"],["formControlName","backup_jurisdiction","placeholder","Select jurisdictions","appendTo","body",3,"options"],["pInputText","","formControlName","data_copy_storage_system","placeholder","Enter where personal data copies are stored"],["formControlName","internal_recipients","optionLabel","name","placeholder","Select internal recipients","appendTo","body",3,"options"],["pInputText","","formControlName","internal_transfer_purpose","placeholder","Service reliability and customer support"],["formControlName","personal_data_attribute_transferred_internal","placeholder","Select recipient\u2013attribute combinations","appendTo","body",3,"options"],["pTemplate","item"],["pTemplate","selectedItem"],[1,"mapping-option"],[1,"recipient"],[1,"separator"],[1,"attribute"],["optionLabel","name","formControlName","external_recipients","placeholder","Select external recipients","appendTo","body",3,"options"],["pInputText","","formControlName","external_transfer_purpose","placeholder","Email communication & payment processing"],["o
1ptionLabel","name","formControlName","recipient_role_external_transer","appendTo","body","placeholder","Select recipient role",3,"options"],["formControlName","has_data_processing_agreement","appendTo","body","placeholder","Select",3,"options"],["formControlName","personal_data_attribute_transferred_external","placeholder","Select recipient\u2013attribute combinations","appendTo","body",3,"options"],["optionLabel","email","formControlName","data_processor_dpo_contact","appendTo","body","placeholder","Select Data Processor / Joint Fiduciary DPO Contact",3,"options"],["pInputText","","formControlName","third_party_dpa_link","placeholder","https://mailchimp.com/legal/dpa/"],["formControlName","recipient_country","placeholder","Select recipient country(ies)","appendTo","body",3,"options"],["pInputTextarea","","rows","3","formControlName","cross_border_transfer_restriction","placeholder","Enter transfer restrictions"],["optionLabel","name","formControlName","cross_border_data_recipients","placeholder","Select cross-border data recipients","appendTo","body",3,"options"],["pInputText","","formControlName","cross_border_transfer_purpose","placeholder","Purpose(s) for which personal data is transferred cross-border"],["optionLabel","name","formControlName","recipient_role_cross_border_transer","appendTo","body","placeholder","Select recipient role",3,"options"],["formControlName","personal_data_attribute_transferred_cross_border","placeholder","Select recipient\u2013attribute combinations","appendTo","body",3,"options"],["formControlName","transfer_mode","placeholder","Select mode","appendTo","body",3,"options"],["formControlName","transfer_safeguard","placeholder","Select safeguard(s)","appendTo","body",3,"options"],["pInputText","","formControlName","transfer_safeguard_link","placeholder","https://privacypillar.com/safeguards"],["formControlName","data_at_rest_measures","placeholder","Select measures","appendTo","body",3,"options"],["formControlName","data_in_transit_measures","placeholder","Select measures","appendTo","body",3,"options"],["optionLabel","name","formControlName","organizational_measures","placeholder","Select measures","appendTo","body",3,"options"],[2,"display","flex","justify-content","center","height","100vh","align-items","center"],["diameter","50",3,"strokeWidth"],[1,"evidence-modal-header"],[1,"evidence-modal-title"],["type","button","title","Close",1,"evidence-modal-close-icon",3,"click"],[1,"evidence-add-actions"],["type","button",1,"evidence-add-action-btn",3,"click"],[1,"pi","pi-link"],[1,"evidence-divider"],["class","evidence-search-wrap",4,"ngIf"],[1,"evidence-doc-list"],["noDocuments",""],[1,"evidence-search-wrap"],[1,"evidence-search-icon"],[1,"pi","pi-search"],["type","text","placeholder","Search documents\u2026","autocomplete","off",1,"evidence-search-input",3,"ngModel","ngModelChange"],["type","button","class","evidence-search-clear","title","Clear search",3,"click",4,"ngIf"],["type","button","title","Clear search",1,"evidence-search-clear",3,"click"],["noResults",""],["class","evidence-doc-item",3,"evidence-doc-selected","click",4,"ngFor","ngForOf"],[1,"evidence-doc-item",3,"click"],[1,"pi",3,"ngClass"],[1,"evidence-doc-name"],["class","pi pi-check evidence-doc-check",4,"ngIf"],[1,"pi","pi-check","evidence-doc-check"],[1,"evidence-empty"],[1,"pi","pi-search",2,"font-size","28px","color","#cbd5e1"],[1,"pi","pi-folder-open",2,"font-size","32px","color","#cbd5e1"],[1,"evidence-upload-error","ev-error"],[1,"pi","pi-exclamation-circle"],[1,"ev-footer"],["type","button",1,"ev-btn","ev-btn-secondary",3,"click"],["type","button",1,"ev-btn","ev-btn-primary",3,"disabled","click"]],template:function(n,m){1&n&&(e.YNc(0,g1,55,41,"div",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,m.stateObs))},dependencies:[v2.mk,v2.sg,v2.O5,v2.PC,m2.rH,B2.jx,Q4.Hq,I4.o,N1._Y,N1.Fj,N1.wV,N1.JJ,N1.JL,N1.On,N1.oH,N1.sg,N1.u,_4.XZ,S4.Lt,P4.g,$4.V,X4.FN,t3.Q,L3.NU,z4.C0,z4.VY,z4.Vq,z4.fd,w4.Ou,v2.Ov,v2.uU],styles:['@charset "UTF-8";  .processing-create-page .mat-step-header .mat-step-icon-selected{background-color:#16bf5e!important}  .processing-create-page .mat-step-header .mat-step-icon-state-edit{background-color:#16bf5e!important}  .processing-create-page .mat-step-header{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}  .processing-create-page .col{display:flex;flex-direction:column;gap:22px}  .processing-create-page .row-2{display:flex;gap:22px}  .processing-create-page .field{width:50%}  .processing-create-page .field-100{width:100%}  .processing-create-page .field-100 label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:#475569}  .processing-create-page .field label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:#475569}  .processing-create-page .req{color:#ef4444}  .processing-create-page .hint{font-size:12px;color:#94a3b8;margin-top:6px}  .processing-create-page .actions{display:flex;gap:12px;justify-content:flex-end}  .processing-create-page .tips{align-content:start}  .processing-create-page .tip-card{border:1px solid #e5e7eb;border-radius:16px;background:#fff;padding:16px 18px;box-shadow:0 6px 18px #0206170a}  .processing-create-page .tip-card+.tip-card{margin-top:16px}  .processing-create-page .tip-title{font-size:14px;font-weight:600;color:#475569;margin-bottom:6px}  .processing-create-page .tip-text{font-size:13px;color:#6b7280}  .processing-create-page .tip-list{margin:0;padding-left:18px}  .processing-create-page .tip-list li{font-size:13px;color:#6b7280;margin:6px 0}  .processing-create-page .btn-primary.p-button,   .processing-create-page .btn-primary{border:0!important;border-radius:14px!important;padding:10px 16px!important;background:linear-gradient(135deg,#3b82f6,#16bf5e)!important;color:#fff!important;box-shadow:0 12px 28px #6366f147!important}  .processing-create-page .btn-primary:hover{filter:brightness(1.04);transform:translateY(-1px)}  .processing-create-page .btn-ghost{border-radius:14px;border:1px solid #e2e8f0;background:#fff;color:#334155;padding:10px 16px}  .processing-create-page .btn-ghost:hover{background:#f8fafc}  .processing-create-page .p-inputtext{height:48px;border-radius:14px!important;padding:0 14px;font-size:14px;width:100%}  .processing-create-page .p-inputtextarea{min-height:128px;border-radius:14px!important;padding:10px 14px;font-size:14px;width:100%}  .processing-create-page .p-dropdown,   .processing-create-page .p-multiselect{border-radius:14px!important;border:1px solid #e5e7eb!important;min-height:48px;background:#fff!important;width:100%}  .processing-create-page .p-dropdown .p-dropdown-label,   .processing-create-page .p-multiselect .p-multiselect-label{min-height:48px;line-height:48px;padding:0 14px;font-size:14px}  .processing-create-page .p-dropdown .p-dropdown-trigger,   .processing-create-page .p-multiselect .p-multiselect-trigger{min-height:48px}  .processing-create-page .p-multiselect-token{background:#eef2ff!important;color:#3730a3!important;border-radius:9999px;padding:4px 10px}  .processing-create-page .p-chips{width:100%}  .processing-create-page .p-chips .p-chips-multiple-container{min-height:48px;border-radius:14px;border:1px solid #e5e7eb;padding:6px 10px;width:100%}  .processing-create-page .p-inputtext:enabled:focus,   .processing-create-page .p-inputtextarea:enabled:focus,   .processing-create-page .p-dropdown.p-focus,   .processing-create-page .p-multiselect.p-focus{border-color:#6366f1!important;box-shadow:0 0 0 5px #6366f129!important}  .processing-create-page .p-input-icon-left>.p-inputtext{padding-left:40px!important}  .processing-create-page .p-input-icon-left>i{left:12px;color:#9ca3af}
1  .processing-create-page .ng-invalid.ng-dirty.p-inputtext,   .processing-create-page .ng-invalid.ng-dirty.p-inputtextarea,   .processing-create-page p-dropdown.ng-invalid.ng-dirty .p-dropdown,   .processing-create-page p-multiselect.ng-invalid.ng-dirty .p-multiselect{border-color:#ef4444!important;box-shadow:0 0 0 4px #ef44441f!important}  .p-dropdown-items .p-dropdown-item{white-space:normal!important;word-break:break-word;line-height:1.4rem}  .p-dropdown-panel{width:10%!important}  .p-multiselect-items .p-multiselect-item{white-space:normal!important;word-break:break-word;line-height:1.4rem}  .p-multiselect-panel{width:10%!important}.mapping-option[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:13px}.mapping-option[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]{font-weight:600}.mapping-option[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{opacity:.6}.mapping-option[_ngcontent-%COMP%]   .attribute[_ngcontent-%COMP%]{color:#475569}.stepper-wrapper[_ngcontent-%COMP%]{position:relative}.autosave-indicator[_ngcontent-%COMP%]{position:absolute;top:20px;right:30px;font-size:15px;font-weight:600;z-index:10}.custom-attributes-section[_ngcontent-%COMP%]{margin-top:30px;padding:24px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}.custom-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#334155;margin-bottom:20px}.custom-attributes-section[_ngcontent-%COMP%]   .field-100[_ngcontent-%COMP%]{margin-bottom:20px}  .processing-create-page .label-with-evidence{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px!important}  .processing-create-page .label-with-evidence span{font-size:13px;font-weight:600;color:#475569}  .processing-create-page .label-with-evidence .req{color:#ef4444}  .processing-create-page .evidence-icon-btn{flex-shrink:0;background:none;border:none;cursor:pointer;color:#6366f1;padding:4px 8px;border-radius:8px;display:inline-flex;align-items:center;transition:background .15s,border-color .15s,color .15s}  .processing-create-page .evidence-icon-btn:hover{background:#eef2ff;border-color:#6366f1}  .processing-create-page .evidence-icon-btn i{font-size:14px}  .processing-create-page .evidence-chip{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 12px 6px 10px;background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;font-size:12px;color:#3730a3;max-width:100%}  .processing-create-page .evidence-chip .evidence-chip-icon{font-size:13px;flex-shrink:0;color:#6366f1}  .processing-create-page .evidence-chip .evidence-label{font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#6366f1;flex-shrink:0}  .processing-create-page .evidence-chip .evidence-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}  .processing-create-page .evidence-chip .evidence-download-link{cursor:pointer;text-decoration:underline;text-decoration-style:dotted;color:inherit}  .processing-create-page .evidence-chip .evidence-download-link:hover{text-decoration-style:solid;color:#4f46e5}  .processing-create-page .evidence-chip .evidence-remove-btn{background:none;border:none;cursor:pointer;color:#818cf8;padding:0;display:inline-flex;align-items:center;margin-left:4px;flex-shrink:0;transition:color .15s}  .processing-create-page .evidence-chip .evidence-remove-btn:hover{color:#ef4444}  .processing-create-page .evidence-chip .evidence-remove-btn i{font-size:11px}.evidence-doc-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:10px;cursor:pointer;font-size:13px;color:#334155;border-bottom:1px solid #f1f5f9;transition:background .12s}.evidence-doc-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.evidence-doc-item[_ngcontent-%COMP%]:hover{background:#f8fafc}.evidence-doc-item.evidence-doc-selected[_ngcontent-%COMP%]{background:#eef2ff;color:#3730a3}.evidence-doc-item[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]:first-child{font-size:20px;color:#6366f1;flex-shrink:0}
1.evidence-doc-item[_ngcontent-%COMP%]   .evidence-doc-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.evidence-doc-item[_ngcontent-%COMP%]   .evidence-doc-check[_ngcontent-%COMP%]{font-size:14px;color:#16bf5e;flex-shrink:0}.evidence-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:32px 16px;color:#94a3b8;font-size:13px}.evidence-empty[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.evidence-required[_ngcontent-%COMP%]{color:#dc2626}.evidence-add-actions[_ngcontent-%COMP%]{display:flex;gap:10px;margin-bottom:14px}.evidence-add-action-btn[_ngcontent-%COMP%]{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;background:#eef2ff;border:1px dashed #818cf8;border-radius:8px;font-size:13px;font-weight:500;color:#4f46e5;cursor:pointer;transition:background .15s,border-color .15s}.evidence-add-action-btn[_ngcontent-%COMP%]:hover{background:#e0e7ff;border-color:#6366f1}.evidence-add-action-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px}.ev-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px;padding:4px 0}.ev-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px}.ev-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#1f2937}.ev-field[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%], .ev-field[_ngcontent-%COMP%]   input[disabled][_ngcontent-%COMP%]{border:1px solid #e2e8f0;border-radius:8px;padding:8px 12px;font-size:13px;color:#334155}.ev-field[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]:focus, .ev-field[_ngcontent-%COMP%]   input[disabled][_ngcontent-%COMP%]:focus{outline:none;border-color:#6366f1}.ev-field[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]:disabled, .ev-field[_ngcontent-%COMP%]   input[disabled][_ngcontent-%COMP%]:disabled{background:#f8fafc;color:#64748b;cursor:not-allowed}.ev-file-input[_ngcontent-%COMP%]{display:none}.ev-file-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;font-size:13px;color:#64748b;cursor:pointer;transition:border-color .15s}.ev-file-label[_ngcontent-%COMP%]:hover{border-color:#6366f1;color:#4f46e5}.ev-file-label--chosen[_ngcontent-%COMP%]{border-color:#6366f1;color:#4f46e5;background:#eef2ff}.ev-file-label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:13px}.ev-error[_ngcontent-%COMP%]{margin-top:2px}.ev-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.ev-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s}.ev-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.ev-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:13px}.ev-btn-primary[_ngcontent-%COMP%]{background:#4f46e5;border:1px solid #4f46e5;color:#fff}.ev-btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#4338ca}.ev-btn-secondary[_ngcontent-%COMP%]{background:#fff;border:1px solid #e2e8f0;color:#475569}.ev-btn-secondary[_ngcontent-%COMP%]:hover:not(:disabled){background:#f8fafc}.evidence-upload-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-bottom:12px}.evidence-upload-section[_ngcontent-%COMP%]   .evidence-upload-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;padding:8px 16px;background:#eef2ff;border:1px dashed #818cf8;border-radius:8px;font-size:13px;font-weight:500;color:#4f46e5;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap}.evidence-upload-section[_ngcontent-%COMP%]   .evidence-upload-btn[_ngcontent-%COMP%]:hover{background:#e0e7ff;border-color:#6366f1}.evidence-upload-section[_ngcontent-%COMP%]   .evidence-upload-btn--loading[_ngcontent-%COMP%]{opacity:.7;cursor:not-allowed}.evidence-upload-section[_ngcontent-%COMP%]   .evidence-upload-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px}.evidence-upload-section[_ngcontent-%COMP%]   .evidence-upload-input[_ngcontent-%COMP%]{display:none}.evidence-upload-section[_ngcontent-%COMP%]   .evidence-upload-hint[_ngcontent-%COMP%]{font-size:11px;color:#94a3b8;line-height:1.4}.evidence-upload-error[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:7px;margin-top:8px;padding:8px 12px;background:#fff5f5;border:1px solid #fecaca;border-radius:8px;font-size:12px;color:#dc2626;line-height:1.5}.evidence-upload-error[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:13px;flex-shrink:0;margin-top:1px}.evidence-divider[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-size:11px;color:#cbd5e1;text-transform:uppercase;letter-spacing:.06em}.evidence-divider[_ngcontent-%COMP%]:before, .evidence-divider[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;background:#e2e8f0}.evidence-divider[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex-shrink:0}.evidence-search-wrap[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;margin-bottom:10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;padding:0 10px;gap:8px}.evidence-search-wrap[_ngcontent-%COMP%]:focus-within{border-color:#6366f1;background:#fff}.evidence-search-wrap[_ngcontent-%COMP%]   .evidence-search-icon[_ngcontent-%COMP%]{color:#94a3b8;font-size:13px;flex-shrink:0;display:flex;align-items:center}.evidence-search-wrap[_ngcontent-%COMP%]   .evidence-search-input[_ngcontent-%COMP%]{flex:1;border:none;background:transparent;outline:none;font-size:13px;color:#1e293b;padding:9px 0}.evidence-search-wrap[_ngcontent-%COMP%]   .evidence-search-input[_ngcontent-%COMP%]::placeholder{color:#94a3b8}.evidence-search-wrap[_ngcontent-%COMP%]   .evidence-search-clear[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:#94a3b8;padding:0;display:flex;align-items:center;flex-shrink:0;font-size:11px;transition:color .15s}.evidence-search-wrap[_ngcontent-%COMP%]   .evidence-search-clear[_ngcontent-%COMP%]:hover{color:#ef4444}.evidence-doc-list[_ngcontent-%COMP%]{max-height:320px;overflow-y:auto;margin:0 -16px;padding:0}.evidence-doc-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}.evidence-doc-list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.evidence-doc-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.evidence-doc-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#94a3b8}.evidence-modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.evidence-modal-header[_ngcontent-%COMP%]   .evidence-modal-title[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#1e293b}.evidence-modal-header[_ngcontent-%COMP%]   .evidence-modal-close-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:none;border:none;border-radius:6px;cursor:pointer;color:#94a3b8;transition:background .15s,color .15s}.evidence-modal-header[_ngcontent-%COMP%]   .evidence-modal-close-icon[_ngcontent-%COMP%]:hover{background:#f1f5f9;color:#ef4444}.evidence-modal-header[_ngcontent-%COMP%]   .evidence-modal-close-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:13px}']}
1),t})();const H1=[{key:"business_process.entity_name",label:"ENTITY NAME"},{key:"business_process.applicable_regulation",label:"APPLICABLE REGULATION",asBadge:!0},{key:"business_process.entity_processing_role",label:"PROCESSING ROLE"},{key:"business_process.date_of_assessment",label:"DATE OF ASSESSMENT",type:"date"},{key:"business_process.dpo_contact",label:"DPO CONTACT"},{key:"processing_activity.processing_activity_name",label:"PROCESSING ACTIVITY NAME"},{key:"processing_activity.description",label:"DESCRIPTION"},{key:"processing_activity.processing_purpose",label:"PROCESSING PURPOSE(S)",asBadge:!0},{key:"processing_activity.data_principals_category",label:"DATA PRINCIPAL(S)",asBadge:!0},{key:"processing_activity.personal_data_attributes",label:"PERSONAL DATA ATTRIBUTES",asBadge:!0},{key:"processing_activity.personal_data_category",label:"PERSONAL DATA CATEGORY(IES)",asBadge:!0},{key:"processing_activity.mode_of_data_collection",label:"MODE OF DATA COLLECTION",asBadge:!0},{key:"processing_activity.frequency_of_collection",label:"FREQUENCY OF COLLECTION"},{key:"processing_activity.lawful_basis",label:"LAWFUL BASIS",asBadge:!0},{key:"processing_activity.uses_ai",label:"USES AI"},{key:"processing_activity.ai_purpose",label:"AI PURPOSE"},{key:"data_storage.data_storage_system",label:"DATA STORAGE SYSTEM(S)",asBadge:!0},{key:"data_storage.data_storage_jurisdiction",label:"DATA STORAGE JURISDICTION(S)",asBadge:!0},{key:"data_transfer.external_recipients",label:"EXTERNAL RECIPIENTS",asBadge:!0},{key:"data_transfer.transfer_mode",label:"TRANSFER MODE(S)",asBadge:!0},{key:"data_retention.data_retention_period",label:"DATA RETENTION PERIOD"},{key:"data_retention.data_retention_purpose",label:"DATA RETENTION PURPOSE"},{key:"technical_measures.data_at_rest_measures",label:"DATA AT REST MEASURES",asBadge:!0},{key:"technical_measures.data_in_transit_measures",label:"DATA IN TRANSIT MEASURES",asBadge:!0},{key:"technical_measures.organizational_measures",label:"ORGANIZATIONAL MEASURES",asBadge:!0},{key:"created_at",label:"CREATED AT",type:"date"},{key:"updated_at",label:"UPDATED AT",type:"date"}];let T1=(()=>{const M=class extends M4.a{constructor(){super({oid:"",pid:"",activityDetails:null,rawActivity:null,activityId:"",displayFields:H1,initialLoad:new O2.X(!0),totalAssets:0,totalDataCategories:0,totalDocuments:0})}};let t=M;return M.\u0275fac=function(n){return new(n||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),t})(),Y1=(()=>{const M=class{constructor(c,n){this.http=c,this.loki=n}getActivityDetails(c,n){return this.http.get(`${X1.N.keyStoneUrl}/processing_activities/${n}/${c}`).pipe((0,t2.K)(m=>(0,a2._)(()=>m)))}getAttributes(c){return this.http.get(`${X1.N.keyStoneUrl}/attributes/${c}`).pipe((0,t2.K)(n=>(0,a2._)(()=>n)))}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.LFG(x4.eN),e.LFG(V4.L))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),t})(),n2=(()=>{const M=class{constructor(c,n,m,U,t1){this.activatedRouter=c,this.activityOverviewPageStateService=n,this.activityOverviewApiService=m,this.router=U,this.titleService=t1}init(){this.titleService.setTitle("Overview - "+X1.N.portalPrefix),this.activityOverviewPageStateService.updateState({initialLoad:new O2.X(!1)}),this.activatedRouter.queryParams.pipe((0,f2.w)(c=>(this.activityOverviewPageStateService.updateState({oid:c.oid,pid:c.pid}),this.activatedRouter.params)),(0,f2.w)(c=>{this.activityOverviewPageStateService.updateState({activityId:c?.id});const n=this.activityOverviewPageStateService.getState();return(0,t4.D)({activity:this.activityOverviewApiService.getActivityDetails(n.activityId,n.oid),attributes:this.activityOverviewApiService.getAttributes(n.oid)})})).subscribe(({activity:c,attributes:n})=>{const t1=(c?.processing_activity||{})?.personal_data_category?.length||0,n1=(c?.data_storage||{})?.data_storage_system?.length||0,v1=new Set((c?.field_evidences||[]).map(w1=>w1.document_id||w1.id)).size;this.activityOverviewPageStateService.updateState({rawActivity:c,totalDataCategories:t1,totalAssets:n1,totalDocuments:v1}),this.buildFieldsFromEntity(c,n),this.activityOverviewPageStateService.updateState({initialLoad:new O2.X(!0)})},()=>{this.activityOverviewPageStateService.updateState({initialLoad:new O2.X(!0)})})}getNestedValue(c,n){if(!c||!n)return;const m=n.split(".");let U=c;for(const t1 of m){if(null==U)return;U=U[t1]}return U}buildCustomAttributes(c,n){const U=n?.data||[];return(c?.custom_attributes||[]).map(t1=>{const n1=U.find(v1=>v1.key===t1.key);return{key:t1.key,label:n1?.label||t1.key,lines:[t1.value||"\u2014"],isEmpty:!t1.value}})}buildFieldsFromEntity(c,n){const m=[],U=this.activityOverviewPageStateService.getState();for(const n1 of U.displayFields){let v1=[];const w1=this.getNestedValue(c,n1.key);if(Array.isArray(w1))v1=w1.map(F1=>"string"==typeof F1?F1:F1?.name??F1?.email??F1?.id??JSON.stringify(F1));else if("date"===n1.type&&w1){const F1=new Date(w1);v1=[isNaN(F1.getTime())?"\u2014":F1.toLocaleDateString()]}else v1="boolean"==typeof w1?[w1?"Yes":"No"]:"number"==typeof w1||"string"==typeof w1?w1?[String(w1)]:["\u2014"]:w1&&"object"==typeof w1?[w1.name??w1.email??w1.id??JSON.stringify(w1)]:["\u2014"];m.push({key:n1.key,label:n1.label,lines:v1,isBadge:n1.asBadge,isEmpty:v1.every(F1=>!F1||"\u2014"===F1)})}const t1=this.buildCustomAttributes(c,n);m.splice(Math.max(m.length-2,0),0,...t1),this.activityOverviewPageStateService.updateState({activityDetails:m})}getStateObs(){return this.activityOverviewPageStateService.getStateObs()}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.LFG(m2.gz),e.LFG
1(T1),e.LFG(Y1),e.LFG(m2.F0),e.LFG(a3.Dx))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),t})();function u2(t,M){if(1&t&&(e.ynx(0),e.TgZ(1,"span",38),e._uU(2),e.qZA(),e.BQk()),2&t){const o=M.$implicit;e.xp6(2),e.hij(" ",o," ")}}function z2(t,M){if(1&t&&(e.ynx(0),e.TgZ(1,"div",37),e.YNc(2,u2,3,1,"ng-container",23),e.qZA(),e.BQk()),2&t){const o=e.oxw(2).$implicit;e.xp6(2),e.Q6J("ngForOf",o.lines)}}function w2(t,M){if(1&t&&(e.TgZ(0,"div",40),e._uU(1),e.qZA()),2&t){const o=M.$implicit;e.xp6(1),e.hij(" ",o," ")}}function Y2(t,M){if(1&t&&e.YNc(0,w2,2,1,"div",39),2&t){const o=e.oxw(2).$implicit;e.Q6J("ngForOf",o.lines)}}function D4(t,M){if(1&t&&(e.ynx(0),e.YNc(1,z2,3,1,"ng-container",1),e.YNc(2,Y2,1,1,"ng-template",null,36,e.W1O),e.BQk()),2&t){const o=e.MAs(3),c=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n.isBadgeField(c))("ngIfElse",o)}}function H4(t,M){1&t&&(e.TgZ(0,"div",41),e._uU(1,"\u2014"),e.qZA())}function T2(t,M){if(1&t&&(e.ynx(0),e.TgZ(1,"div",31)(2,"div",32),e._uU(3),e.qZA(),e._UZ(4,"div",33),e.TgZ(5,"div",34),e.YNc(6,D4,4,2,"ng-container",1),e.YNc(7,H4,2,0,"ng-template",null,35,e.W1O),e.qZA()(),e.BQk()),2&t){const o=M.$implicit,c=e.MAs(8);e.xp6(3),e.hij(" ",o.label," "),e.xp6(3),e.Q6J("ngIf",!o.isEmpty)("ngIfElse",c)}}const S2=function(t,M){return{oid:t,pid:M}};function q4(t,M){if(1&t&&(e.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div")(6,"nav",7)(7,"ol",8)(8,"li",9)(9,"a",10),e._uU(10,"Home"),e.qZA()(),e.TgZ(11,"li",11)(12,"a",12),e._uU(13," Activities "),e.qZA()(),e.TgZ(14,"li",11),e._uU(15,"Overview"),e.qZA()()()()()(),e.TgZ(16,"section",13)(17,"div",14),e.O4$(),e.TgZ(18,"svg",15)(19,"defs")(20,"linearGradient",16),e._UZ(21,"stop",17)(22,"stop",18),e.qZA()(),e._UZ(23,"path",19)(24,"rect",20),e.qZA()(),e.kcU(),e.TgZ(25,"div",21)(26,"div",22),e.YNc(27,T2,9,3,"ng-container",23),e.qZA()()(),e.TgZ(28,"div",24)(29,"div",25)(30,"div",26)(31,"div",27),e._uU(32," Data Categories "),e.qZA(),e.TgZ(33,"div",28),e._uU(34),e.qZA()(),e.TgZ(35,"div",26)(36,"div",27),e._uU(37," Assets (Systems) "),e.qZA(),e.TgZ(38,"div",29),e._uU(39),e.qZA()(),e.TgZ(40,"div",26)(41,"div",27),e._uU(42," Documents Attached "),e.qZA(),e.TgZ(43,"div",30),e._uU(44),e.qZA()()()()()()()),2&t){const o=e.oxw().ngIf;e.xp6(9),e.Q6J("queryParams",e.WLB(6,S2,o.oid,o.pid)),e.xp6(3),e.Q6J("queryParams",e.WLB(9,S2,o.oid,o.pid)),e.xp6(15),e.Q6J("ngForOf",o.activityDetails),e.xp6(7),e.hij(" ",o.totalDataCategories," "),e.xp6(5),e.hij(" ",o.totalAssets," "),e.xp6(5),e.hij(" ",o.totalDocuments," ")}}function M2(t,M){1&t&&(e.TgZ(0,"div",42),e._UZ(1,"mat-spinner",43),e.qZA()),2&t&&(e.xp6(1),e.Q6J("strokeWidth",4))}function Z2(t,M){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,q4,45,12,"div",1),e.ALo(2,"async"),e.YNc(3,M2,2,1,"ng-template",null,2,e.W1O),e.qZA()),2&t){const o=M.ngIf,c=e.MAs(4);e.xp6(1),e.Q6J("ngIf",e.lcZ(2,2,o.initialLoad))("ngIfElse",c)}}let g6=(()=>{const M=class{constructor(c){this.activityOverviewPageActionService=c,this.brand="#16bf5e",this.stateObs=this.activityOverviewPageActionService.getStateObs(),this.tabs=["Transfers"],this.activeTab="Transfers",this.contracts=[]}ngOnInit(){this.activityOverviewPageActionService.init()}setTab(c){this.activeTab=c}isBadgeField(c){return!!c.isBadge}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.Y36(n2))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-activity-overview-page"]],features:[e._Bn([n2])],decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["loader",""],[1,"pp-min-h-screen","pp-py-10"],[1,"pp-mx-auto","pp-px-6"],[1,"col-md-12",2,"margin-bottom","25px","margin-top","15px","margin-left","6.5px"],[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",1,"bredcrub-row",2,"margin-left","-14px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/home/welcome",3,"queryParams"],[1,"breadcrumb-item","active"],["routerLink","/ropa/activity",3,"queryParams"],[1,"pp-relative","pp-rounded-2xl","pp-overflow-hidden","pp-mb-8","pp-border","pp-border-slate-200","pp-bg-white/60"],[1,"pp-absolute","pp-inset-0","pp-pointer-events-none","-pp-z-10"],["viewBox","0 0 1440 260","preserveAspectRatio","none","aria-hidden","true",1,"pp-w-full","pp-h-full"],["id","g","x1","0","x2","1"],["offset","0","stop-color","#ecfbf3"],["offset","1","stop-color","#ffffff"],["d","M0,120 C220,200 420,40 640,120 C860,200 1060,40 1280,120 C1360,160 1440,140 1440,140 L1440,260 L0,260 Z","fill","url(#g)"],["x","0","y","0","width","1440","height","260","fill","#16bf5e","opacity","0.03"],[1,"pp-relative","pp-px-10","pp-pt-10","pp-pb-12"],[1,"pp-grid","pp-grid-cols-1","sm:pp-grid-cols-2","lg:pp-grid-cols-4","pp-gap-x-12","pp-gap-y-12"],[4,"ngFor","ngForOf"],[1,"pp-w-full","pp-px-4","pp-py-8"],[1,"pp-grid","pp-grid-cols-1","sm:pp-grid-cols-2","lg:pp-grid-cols-3","pp-gap-6"],[1,"pp-bg-white","pp-rounded-xl","pp-border","pp-border-slate-200","pp-shadow-sm","pp-py-6","pp-flex","pp-flex-col","pp-items-center","pp-justify-center","hover:pp-shadow-md","hover:pp-bg-slate-50","pp-transition"],[1,"pp-text-sm","pp-font-semibold","pp-text-slate-700"],[1,"pp-mt-3","pp-text-3xl","pp-font-bold","pp-text-amber-600"],[1,"pp-mt-3","pp-text-3xl","pp-font-bold","pp-text-rose-600"],[1,"pp-mt-3","pp-text-3xl","pp-font-bold","pp-text-indigo-600"],[1,"pp-text-center","pp-flex","pp-flex-col","pp-items-center"],[1,"pp-text-[11px]","md:pp-text-xs","pp-font-semibold","pp-text-slate-700","pp-tracking-wider","pp-uppercase","pp-leading-6"],[1,"pp-mx-auto","pp-my-2","md:pp-my-3","pp-w-16","pp-h-px","pp-bg-slate-300"],[1,"pp-text-sm","md:pp-text-[15px]","pp-text-slate-800","pp-leading-7","pp-text-center","pp-break-words"],["dash",""],["scalarLines",""],[1,"pp-flex","pp-flex-wrap","pp-justify-center","pp-gap-2","md:pp-gap-3","pp-mt-1"],[1,"pp-px-2.5","md:pp-px-3","pp-py-0.5","pp-rounded-full","pp-text-xs","pp-bg-slate-100","pp-border","pp-border-slate-200"],["class","pp-mt-1 pp-break-all",4,"ngFor","ngForOf"],[1,"pp-mt-1","pp-break-all"],[1,"pp-text-slate-300"],[2,"display","flex","justify-content","center","height","100vh","align-items","center"],["diameter","50",3,"strokeWidth"]],template:function(n,m){1&n&&(e.YNc(0,Z2,5,4,"div",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,m.stateObs))},dependencies:[v2.sg,v2.O5,m2.rH,w4.Ou,v2.Ov],styles:['.pp-container[_ngcontent-%COMP%]{width:100%}@media (min-width: 640px){.pp-container[_ngcontent-%COMP%]{max-width:640px}}@media (min-width: 768px){.pp-container[_ngcontent-%COMP%]{max-width:768px}}@media (min-width: 1024px){.pp-container[_ngcontent-%COMP%]{max-width:1024px}}@media (min-width: 1280px){.pp-container[_ngcontent-%COMP%]{max-width:1280px}}@media (min-width: 1536px){.pp-container[_ngcontent-%COMP%]{max-width:1536px}}.pp-pointer-events-none[_ngcontent-%COMP%]{pointer-events:none}.pp-absolute[_ngcontent-%COMP%]{position:absolute}.pp-relative[_ngcontent-%COMP%]{position:relative}.pp-inset-0[_ngcontent-%COMP%]{inset:0}.pp-inset-y-0[_ngcontent-%COMP%]{top:0;bottom:0}.pp-bottom-0[_ngcontent-%COMP%]{bottom:0}.pp-left-0[_ngcontent-%COMP%]{left:0}.pp-left-4[_ngcontent-%COMP%]{left:1rem}.pp-right-0[_ngcontent-%COMP%]{right:0}.pp-top-1\\/2[_ngcontent-%COMP%]{top:50%}.-pp-z-10[_ngcontent-%COMP%]{z-index:-10}
1.pp-col-span-1[_ngcontent-%COMP%]{grid-column:span 1 / span 1}.pp-col-span-11[_ngcontent-%COMP%]{grid-column:span 11 / span 11}.pp-col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.pp-col-span-3[_ngcontent-%COMP%]{grid-column:span 3 / span 3}.pp-col-span-9[_ngcontent-%COMP%]{grid-column:span 9 / span 9}.pp-mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.pp-my-2[_ngcontent-%COMP%]{margin-top:.5rem;margin-bottom:.5rem}.pp-mb-0[_ngcontent-%COMP%]{margin-bottom:0}.pp-mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem}.pp-mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem}.pp-mb-3[_ngcontent-%COMP%]{margin-bottom:.75rem}.pp-mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.pp-mb-6[_ngcontent-%COMP%]{margin-bottom:1.5rem}.pp-mb-8[_ngcontent-%COMP%]{margin-bottom:2rem}.pp-ml-1[_ngcontent-%COMP%]{margin-left:.25rem}.pp-ml-2[_ngcontent-%COMP%]{margin-left:.5rem}.pp-ml-3[_ngcontent-%COMP%]{margin-left:.75rem}.pp-ml-4[_ngcontent-%COMP%]{margin-left:1rem}.pp-ml-6[_ngcontent-%COMP%]{margin-left:1.5rem}.pp-ml-auto[_ngcontent-%COMP%]{margin-left:auto}.pp-mr-1[_ngcontent-%COMP%]{margin-right:.25rem}.pp-mr-2[_ngcontent-%COMP%]{margin-right:.5rem}.pp-mt-1[_ngcontent-%COMP%]{margin-top:.25rem}.pp-mt-10[_ngcontent-%COMP%]{margin-top:2.5rem}.pp-mt-2[_ngcontent-%COMP%]{margin-top:.5rem}.pp-mt-3[_ngcontent-%COMP%]{margin-top:.75rem}.pp-mt-4[_ngcontent-%COMP%]{margin-top:1rem}.pp-mt-5[_ngcontent-%COMP%]{margin-top:1.25rem}.pp-mt-6[_ngcontent-%COMP%]{margin-top:1.5rem}.pp-mt-\\__ph-0__[_ngcontent-%COMP%]{margin-top:3px}.pp-block[_ngcontent-%COMP%]{display:block}.pp-inline-block[_ngcontent-%COMP%]{display:inline-block}.pp-flex[_ngcontent-%COMP%]{display:flex}.pp-inline-flex[_ngcontent-%COMP%]{display:inline-flex}.pp-grid[_ngcontent-%COMP%]{display:grid}.pp-hidden[_ngcontent-%COMP%]{display:none}.pp-h-10[_ngcontent-%COMP%]{height:2.5rem}.pp-h-2[_ngcontent-%COMP%]{height:.5rem}.pp-h-20[_ngcontent-%COMP%]{height:5rem}.pp-h-24[_ngcontent-%COMP%]{height:6rem}.pp-h-3[_ngcontent-%COMP%]{height:.75rem}.pp-h-36[_ngcontent-%COMP%]{height:9rem}.pp-h-4[_ngcontent-%COMP%]{height:1rem}.pp-h-5[_ngcontent-%COMP%]{height:1.25rem}.pp-h-6[_ngcontent-%COMP%]{height:1.5rem}.pp-h-72[_ngcontent-%COMP%]{height:18rem}.pp-h-\\__ph-0__[_ngcontent-%COMP%]{height:2px}.pp-h-\\__ph-0__[_ngcontent-%COMP%]{height:calc(100vh - 72px)}.pp-h-full[_ngcontent-%COMP%]{height:100%}.pp-h-px[_ngcontent-%COMP%]{height:1px}.pp-max-h-0[_ngcontent-%COMP%]{max-height:0px}.pp-max-h-36[_ngcontent-%COMP%]{max-height:9rem}.pp-max-h-72[_ngcontent-%COMP%]{max-height:18rem}.pp-max-h-screen[_ngcontent-%COMP%]{max-height:100vh}.pp-min-h-\\__ph-0__[_ngcontent-%COMP%]{min-height:320px}.pp-min-h-\\__ph-0__[_ngcontent-%COMP%]{min-height:90px}.pp-min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.pp-w-1\\/3[_ngcontent-%COMP%]{width:33.333333%}.pp-w-1\\/4[_ngcontent-%COMP%]{width:25%}.pp-w-16[_ngcontent-%COMP%]{width:4rem}.pp-w-20[_ngcontent-%COMP%]{width:5rem}.pp-w-24[_ngcontent-%COMP%]{width:6rem}.pp-w-3[_ngcontent-%COMP%]{width:.75rem}.pp-w-3\\/4[_ngcontent-%COMP%]{width:75%}.pp-w-36[_ngcontent-%COMP%]{width:9rem}.pp-w-4[_ngcontent-%COMP%]{width:1rem}.pp-w-5[_ngcontent-%COMP%]{width:1.25rem}.pp-w-6[_ngcontent-%COMP%]{width:1.5rem}.pp-w-72[_ngcontent-%COMP%]{width:18rem}.pp-w-full[_ngcontent-%COMP%]{width:100%}.pp-min-w-\\__ph-0__[_ngcontent-%COMP%]{min-width:120px}.pp-min-w-full[_ngcontent-%COMP%]{min-width:100%}.pp-max-w-2xl[_ngcontent-%COMP%]{max-width:42rem}.pp-max-w-3xl[_ngcontent-%COMP%]{max-width:48rem}.pp-max-w-4xl[_ngcontent-%COMP%]{max-width:56rem}.pp-max-w-7xl[_ngcontent-%COMP%]{max-width:80rem}.pp-max-w-\\__ph-0__[_ngcontent-%COMP%]{max-width:50%}.pp-max-w-full[_ngcontent-%COMP%]{max-width:100%}.pp-max-w-md[_ngcontent-%COMP%]{max-width:28rem}.pp-max-w-xl[_ngcontent-%COMP%]{max-width:36rem}.pp-max-w-xs[_ngcontent-%COMP%]{max-width:20rem}.pp-flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.pp-border-collapse[_ngcontent-%COMP%]{border-collapse:collapse}.pp--translate-y-1\\/2[_ngcontent-%COMP%]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.pp-rotate-180[_ngcontent-%COMP%]{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.pp-cursor-not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}.pp-cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.pp-select-none[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}
1.pp-grid-cols-1[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}.pp-grid-cols-12[_ngcontent-%COMP%]{grid-template-columns:repeat(12,minmax(0,1fr))}.pp-grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}.pp-flex-col[_ngcontent-%COMP%]{flex-direction:column}.pp-flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.pp-items-start[_ngcontent-%COMP%]{align-items:flex-start}.pp-items-end[_ngcontent-%COMP%]{align-items:flex-end}.pp-items-center[_ngcontent-%COMP%]{align-items:center}.pp-justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.pp-justify-center[_ngcontent-%COMP%]{justify-content:center}.pp-justify-between[_ngcontent-%COMP%]{justify-content:space-between}.pp-justify-items-center[_ngcontent-%COMP%]{justify-items:center}.pp-gap-2[_ngcontent-%COMP%]{gap:.5rem}.pp-gap-3[_ngcontent-%COMP%]{gap:.75rem}.pp-gap-4[_ngcontent-%COMP%]{gap:1rem}.pp-gap-6[_ngcontent-%COMP%]{gap:1.5rem}.pp-gap-8[_ngcontent-%COMP%]{gap:2rem}.pp-gap-x-12[_ngcontent-%COMP%]{column-gap:3rem}.pp-gap-y-12[_ngcontent-%COMP%]{row-gap:3rem}.pp-space-x-3[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.pp-space-x-4[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.pp-space-y-1[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.pp-space-y-2[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.pp-space-y-3[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}
1.pp-space-y-4[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.pp-space-y-6[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.pp-overflow-auto[_ngcontent-%COMP%]{overflow:auto}.pp-overflow-hidden[_ngcontent-%COMP%]{overflow:hidden}.pp-overflow-x-auto[_ngcontent-%COMP%]{overflow-x:auto}.pp-whitespace-nowrap[_ngcontent-%COMP%]{white-space:nowrap}.pp-whitespace-pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}.pp-break-words[_ngcontent-%COMP%]{overflow-wrap:break-word}.pp-break-all[_ngcontent-%COMP%]{word-break:break-all}.pp-rounded[_ngcontent-%COMP%]{border-radius:.25rem}.pp-rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.pp-rounded-3xl[_ngcontent-%COMP%]{border-radius:1.5rem}.pp-rounded-full[_ngcontent-%COMP%]{border-radius:9999px}.pp-rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.pp-rounded-md[_ngcontent-%COMP%]{border-radius:.375rem}.pp-rounded-xl[_ngcontent-%COMP%]{border-radius:.75rem}.pp-border[_ngcontent-%COMP%]{border-width:1px}.pp-border-0[_ngcontent-%COMP%]{border-width:0px}.pp-border-2[_ngcontent-%COMP%]{border-width:2px}.pp-border-b[_ngcontent-%COMP%]{border-bottom-width:1px}.pp-border-t[_ngcontent-%COMP%]{border-top-width:1px}.pp-border-dashed[_ngcontent-%COMP%]{border-style:dashed}.pp-border-blue-300[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.pp-border-gray-200[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.pp-border-gray-300[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.pp-border-red-200[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.pp-border-slate-100[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity, 1))}.pp-border-slate-200[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.pp-border-slate-300[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.pp-border-transparent[_ngcontent-%COMP%]{border-color:transparent}.pp-bg-\\__ph-0__[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(22 191 94 / var(--tw-bg-opacity, 1))}.pp-bg-\\__ph-0__\\/10[_ngcontent-%COMP%]{background-color:#16bf5e1a}.pp-bg-\\__ph-0__\\/15[_ngcontent-%COMP%]{background-color:#16bf5e26}.pp-bg-\\__ph-0__\\/10[_ngcontent-%COMP%]{background-color:#16bf5e1a}.pp-bg-\\__ph-0__[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(246 248 255 / var(--tw-bg-opacity, 1))}.pp-bg-amber-600[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.pp-bg-blue-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.pp-bg-blue-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.pp-bg-emerald-600[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.pp-bg-gray-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.pp-bg-gray-200[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.pp-bg-gray-300[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.pp-bg-gray-50[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.pp-bg-gray-600[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.pp-bg-gray-800[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.pp-bg-gray-900[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.pp-bg-green-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.pp-bg-green-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.pp-bg-pink-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(236 72 153 / var(--tw-bg-opacity, 1))}.pp-bg-purple-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.pp-bg-red-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.pp-bg-red-50[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.pp-bg-sky-600[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.pp-bg-slate-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.pp-bg-slate-300[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.pp-bg-slate-50[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.pp-bg-transparent[_ngcontent-%COMP%]{background-color:transparent}.pp-bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.pp-bg-white\\/60[_ngcontent-%COMP%]{background-color:#fff9}.pp-bg-yellow-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.pp-bg-gradient-to-b[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.pp-from-\\__ph-0__\\/10[_ngcontent-%COMP%]{--tw-gradient-from: rgb(22 191 94 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(22 191 94 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.pp-to-slate-50[_ngcontent-%COMP%]{--tw-gradient-to: #f8fafc var(--tw-gradient-to-position)}.pp-p-12[_ngcontent-%COMP%]{padding:3rem}.pp-p-2[_ngcontent-%COMP%]{padding:.5rem}.pp-p-3[_ngcontent-%COMP%]{padding:.75rem}.pp-p-4[_ngcontent-%COMP%]{padding:1rem}.pp-p-5[_ngcontent-%COMP%]{padding:1.25rem}.pp-p-6[_ngcontent-%COMP%]{padding:1.5rem}.pp-p-8[_ngcontent-%COMP%]{padding:2rem}.pp-px-10[_ngcontent-%COMP%]{padding-left:2.5rem;padding-right:2.5rem}.pp-px-2[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.pp-px-2\\.5[_ngcontent-%COMP%]{padding-left:.625rem;padding-right:.625rem}.pp-px-3[_ngcontent-%COMP%]{padding-left:.75rem;padding-right:.75rem}.pp-px-4[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}.pp-px-6[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}.pp-py-0\\.5[_ngcontent-%COMP%]{padding-top:.125rem;padding-bottom:.125rem}.pp-py-1[_ngcontent-%COMP%]{padding-top:.25rem;padding-bottom:.25rem}.pp-py-1\\.5[_ngcontent-%COMP%]{padding-top:.375rem;padding-bottom:.375rem}.pp-py-10[_ngcontent-%COMP%]{padding-top:2.5rem;padding-bottom:2.5rem}.pp-py-12[_ngcontent-%COMP%]{padding-top:3rem;padding-bottom:3rem}.pp-py-2[_ngcontent-%COMP%]{padding-top:.5rem;padding-bottom:.5rem}.pp-py-3[_ngcontent-%COMP%]{padding-top:.75rem;padding-bottom:.75rem}
1.pp-py-4[_ngcontent-%COMP%]{padding-top:1rem;padding-bottom:1rem}.pp-py-6[_ngcontent-%COMP%]{padding-top:1.5rem;padding-bottom:1.5rem}.pp-py-8[_ngcontent-%COMP%]{padding-top:2rem;padding-bottom:2rem}.pp-pb-12[_ngcontent-%COMP%]{padding-bottom:3rem}.pp-pb-16[_ngcontent-%COMP%]{padding-bottom:4rem}.pp-pb-3[_ngcontent-%COMP%]{padding-bottom:.75rem}.pp-pb-4[_ngcontent-%COMP%]{padding-bottom:1rem}.pp-pb-6[_ngcontent-%COMP%]{padding-bottom:1.5rem}.pp-pb-8[_ngcontent-%COMP%]{padding-bottom:2rem}.pp-pl-0[_ngcontent-%COMP%]{padding-left:0}.pp-pl-11[_ngcontent-%COMP%]{padding-left:2.75rem}.pp-pr-3[_ngcontent-%COMP%]{padding-right:.75rem}.pp-pr-4[_ngcontent-%COMP%]{padding-right:1rem}.pp-pt-0[_ngcontent-%COMP%]{padding-top:0}.pp-pt-1[_ngcontent-%COMP%]{padding-top:.25rem}.pp-pt-10[_ngcontent-%COMP%]{padding-top:2.5rem}.pp-pt-12[_ngcontent-%COMP%]{padding-top:3rem}.pp-pt-2[_ngcontent-%COMP%]{padding-top:.5rem}.pp-pt-4[_ngcontent-%COMP%]{padding-top:1rem}.pp-pt-6[_ngcontent-%COMP%]{padding-top:1.5rem}.pp-text-left[_ngcontent-%COMP%]{text-align:left}.pp-text-center[_ngcontent-%COMP%]{text-align:center}.pp-text-right[_ngcontent-%COMP%]{text-align:right}.pp-font-mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.pp-text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.pp-text-3xl[_ngcontent-%COMP%]{font-size:1.875rem;line-height:2.25rem}.pp-text-4xl[_ngcontent-%COMP%]{font-size:2.25rem;line-height:2.5rem}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{font-size:11px}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{font-size:12px}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{font-size:13px}.pp-text-base[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem}.pp-text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.pp-text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.pp-text-xl[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.75rem}.pp-text-xs[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem}.pp-font-bold[_ngcontent-%COMP%]{font-weight:700}.pp-font-extrabold[_ngcontent-%COMP%]{font-weight:800}.pp-font-medium[_ngcontent-%COMP%]{font-weight:500}.pp-font-normal[_ngcontent-%COMP%]{font-weight:400}.pp-font-semibold[_ngcontent-%COMP%]{font-weight:600}.pp-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.pp-italic[_ngcontent-%COMP%]{font-style:italic}.pp-leading-5[_ngcontent-%COMP%]{line-height:1.25rem}.pp-leading-6[_ngcontent-%COMP%]{line-height:1.5rem}.pp-leading-7[_ngcontent-%COMP%]{line-height:1.75rem}.pp-leading-tight[_ngcontent-%COMP%]{line-height:1.25}.pp-tracking-wide[_ngcontent-%COMP%]{letter-spacing:.025em}.pp-tracking-wider[_ngcontent-%COMP%]{letter-spacing:.05em}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.pp-text-\\__ph-0__[_ngcontent-%COMP%], .pp-text-\\__ph-0__[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(22 191 94 / var(--tw-text-opacity, 1))}.pp-text-\\__ph-0__\\/30[_ngcontent-%COMP%]{color:#16bf5e4d}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.pp-text-amber-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.pp-text-black[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.pp-text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.pp-text-blue-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.pp-text-blue-700[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.pp-text-blue-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.pp-text-gray-400[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.pp-text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.pp-text-gray-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.pp-text-gray-700[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.pp-text-gray-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.pp-text-gray-900[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.pp-text-green-300[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.pp-text-green-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.pp-text-green-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.pp-text-green-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.pp-text-indigo-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.pp-text-purple-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.pp-text-red-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.pp-text-red-700[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.pp-text-red-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.pp-text-rose-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.pp-text-slate-300[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.pp-text-slate-400[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.pp-text-slate-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.pp-text-slate-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.pp-text-slate-700[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.pp-text-slate-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.pp-text-slate-900[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.pp-text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pp-placeholder-slate-500[_ngcontent-%COMP%]::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.pp-shadow[_ngcontent-%COMP%]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-shadow-\\[0_20px_60px_rgba\\(2\\[_ngcontent-%COMP%], 6\\[_ngcontent-%COMP%], 23\\[_ngcontent-%COMP%], 0\\.08\\)\\][_ngcontent-%COMP%]{--tw-shadow: 0 20px 60px rgba(2,6,23,.08);--tw-shadow-colored: 0 20px 60px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-shadow-inner[_ngcontent-%COMP%]{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-shadow-lg[_ngcontent-%COMP%]{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-sha
1dow)}.pp-shadow-md[_ngcontent-%COMP%]{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-shadow-sm[_ngcontent-%COMP%]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-outline-none[_ngcontent-%COMP%]{outline:2px solid transparent;outline-offset:2px}.pp-transition[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pp-transition-all[_ngcontent-%COMP%]{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pp-transition-colors[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pp-transition-transform[_ngcontent-%COMP%]{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pp-duration-0[_ngcontent-%COMP%]{transition-duration:0s}*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ng
1content-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type="button"]), input[_ngcontent-%COMP%]:where([type="reset"]), input[_ngcontent-%COMP%]:where([type="submit"]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden="until-found"])){display:none}.file\\:pp-mr-4[_ngcontent-%COMP%]::file-selector-button{margin-right:1rem}.file\\:pp-rounded-full[_ngcontent-%COMP%]::file-selector-button{border-radius:9999px}.file\\:pp-border-0[_ngcontent-%COMP%]::file-selector-button{border-width:0px}.file\\:pp-bg-blue-50[_ngcontent-%COMP%]::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.file\\:pp-px-4[_ngcontent-%COMP%]::file-selector-button{padding-left:1rem;padding-right:1rem}.file\\:pp-py-2[_ngcontent-%COMP%]::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\\:pp-text-sm[_ngcontent-%COMP%]::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:pp-font-semibold[_ngcontent-%COMP%]::file-selector-button{font-weight:600}.file\\:pp-text-blue-700[_ngcontent-%COMP%]::file-selector-button{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.after\\:pp-absolute[_ngcontent-%COMP%]:after{content:var(--tw-content);position:absolute}.after\\:pp-bottom-0[_ngcontent-%COMP%]:after{content:var(--tw-content);bottom:0}.after\\:pp-left-0[_ngcontent-%COMP%]:after{content:var(--tw-content);left:0}.after\\:pp-right-0[_ngcontent-%COMP%]:after{content:var(--tw-content);right:0}.after\\:pp-h-0\\.5[_ngcontent-%COMP%]:after{content:var(--tw-content);height:.125rem}.after\\:pp-bg-\\__ph-0__[_ngcontent-%COMP%]:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(22 191 94 / var(--tw-bg-opacity, 1))}.even\\:pp-bg-slate-50[_ngcontent-%COMP%]:nth-child(even){--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.hover\\:pp--translate-y-1[_ngcontent-%COMP%]:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:pp-bg-\\__ph-0__[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(22 191 94 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-gray-100[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-gray-800[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-sky-700[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-slate-200[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-slate-50[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.hover\\:pp-text-red-800[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.hover\\:pp-text-slate-800[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.hover\\:pp-text-slate-900[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.hover\\:pp-text-white[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:pp-underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}.hover\\:pp-opacity-90[_ngcontent-%COMP%]:hover{opacity:.9}.hover\\:pp-shadow-lg[_ngcontent-%COMP%]:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:pp-shadow-md[_ngcontent-%COMP%]:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:file\\:pp-bg-blue-100[_ngcontent-%COMP%]::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.focus\\:pp-border-blue-500[_ngcontent-%COMP%]:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\\:pp-bg-\\__ph-0__\\/15[_ngcontent-%COMP%]:focus{background-color:#16bf5e26}.focus\\:pp-outline-none[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:pp-ring-blue-500[_ngcontent-%COMP%]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.disabled\\:pp-cursor-not-allowed[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.disabled\\:pp-opacity-50[_ngcontent-%COMP%]:disabled{opacity:.5}@media (min-width: 640px){.sm\\:pp-grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:pp-text-base[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem}.sm\\:pp-text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.sm\\:pp-text-xl[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\\:pp-my-3[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem}.md\\:pp-grid-cols-1[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}.md\\:pp-grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:pp-grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:pp-gap-3[_ngcontent-%COMP%]{gap:.75rem}.md\\:pp-px-3[_ngcontent-%COMP%]{padding-left:.75rem;padding-right:.75rem}.md\\:pp-text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.md\\:pp-text-\\__ph-0__[_ngcontent-%COMP%]{font-size:15px}.md\\:pp-text-xs[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem}}@media (min-width: 1024px){.lg\\:pp-grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:pp-grid-cols-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}']}),t})();var _3=P1(15861),z3=P1(32264),P2=P1(31124);let F4=(()=>{const M=class extends M4.a{constructor(){super({oid:"",pid:"",nodes:[],edges:[],activityDetails:{},activityId:"",activityName:"Data Flow Diagram"})}};let t=M;return M.\u0275fac=function(n){return new(n||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),t})(),R3=(()=>{const M=class{constructor(c,n){this.http=c,this.loki=n}getActivityDetails(c,n){return this.http.get(`${X1.N.keyStoneUrl}/processing_activities/${n}/${c}`).pipe((0,t2.K)(m=>(0,a2._)(()=>m)))}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.LFG(x4.eN),e.LFG(V4.L))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),t})();let v6=(()=>{const M=class{constructor(c,n,m,U,t1,n1,v1){this.dataFlowDiagramStateService=c,this.confirmationService=n,this.activatedRouter=m,this.dataFlowDiagramApiService=U,this.loading=t1,this.router=n1,this.messageService=v1}init(){this.loading.start(),this.activatedRouter.queryParams.pipe((0,f2.w)(c=>(this.dataFlowDiagramStateService.updateState({oid:c.oid,pid:c.pid}),this.activatedRouter.params))).subscribe(c=>{this.dataFlowDiagramStateService.updateState({activityId:c?.id}),this.setInitalSetup(c.id)})}setInitalSetup(c){this.dataFlowDiagramApiService.getActivityDetails(c,this.dataFlowDiagramStateService.getState().oid).subscribe(n=>{this.pa=n,this.dataFlowDiagramStateService.updateState({activityName:n?.processing_activity?.processing_activity_name??"Data Flow Diagram"});const m=[],U=[],t1=this.pa.business_process??{},n1=this.pa.processing_activity??{},v1=this.pa.data_storage??{},w1=this.pa.data_transfer??{},F1=this.pa.data_retention??{},A1=this.pa.technical_measures??{};m.push(this.panel("process-panel","PROCESS DETAILS",null,[{key:"Activity",val:n1.processing_activity_name??"\u2014"},{key:"Sub-Activity",val:n1.sub_processing_activities??"\u2014"},{key:"Description",val:(n1.description??"\u2014").slice(0,120)},{key:"Entity",val:t1.entity_name??"\u2014"},{key:"Role",val:t1.entity_processing_role?.name??"\u2014"},{key:"Assessment Date",val:t1.date_of_assessment??"\u2014"},{key:"DPIA Required",val:n1.dpia_required?"Yes \u26a0\ufe0f":"No"},{key:"Uses AI",val:n1.uses_ai?`Yes \u2014 ${n1.ai_purpose??""}`:"No"}],-230,-360)),m.push(this.section("sec-bp","BUSINESS PROCESS",-200,60),this.section("sec-collect","DATA COLLECTION",260,60),this.section("sec-usage","DATA USAGE",700,60),this.section("sec-basis","LAWFUL BASIS",1120,60),this.section("sec-transfer","DATA TRANSFER",1560,60),this.section("sec-storage","DATA STORAGE",2420,60),this.section("sec-ret","RETENTION & SECURITY",2840,60)),m.push(this.info("bp-entity","Entity / Organisation",t1.entity_name??"\u2014",-200,160,{subtitle:t1.entity_processing_role?.name,tag:"Business Process"}),this.info("bp-dpo","DPO / Point of Contact",this.splitContact(t1.dpo_contact),-200,380,{tag:"DPO"}),this.info("bp-poc","Activity Contacts",(n1.point_of_contact??[]).map(g2=>g2.split("||")[0].trim()),-200,600,{tag:"Contacts"}));const q1=(n1.data_principals_category??[]).map(g2=>
1g2.name),R1=(n1.personal_data_attributes??[]).map(g2=>g2.name),K1=n1.mode_of_data_collection??[],I1=n1.data_source_jurisdiction??[];m.push(this.collection("col-principals","Data Principals",q1,260,160,{tag:`${q1.length} types`,showTarget:!1}),this.collection("col-attrs","Personal Data Attributes",R1,260,400,{tag:`${R1.length} attrs`}),this.collection("col-mode","Collection Channels",K1,260,660,{badge:[n1.data_source_type??"\u2014",n1.frequency_of_collection??"\u2014"].filter(g2=>"\u2014"!==g2)}),this.collection("col-juris","Source Jurisdictions",I1,260,880,{tag:`${I1.length} countries`,showSource:!1})),U.push(this.edge("col-principals","col-attrs","#3B82F6"),this.edge("col-attrs","col-mode","#3B82F6"),this.edge("col-mode","col-juris","#3B82F6"));const W1=(n1.processing_purpose??[]).map(g2=>g2.name),Q2=(n1.business_process_owner??[]).map(g2=>g2.name);m.push(this.usage("usage-purpose","Processing Purpose",W1,700,160,{tag:`${W1.length} purposes`,subtitle:n1.processing_sub_purpose,showTarget:!1}),this.usage("usage-owner","Business Process Owner",Q2,700,540,{tag:`${Q2.length} owners`,ai:n1.uses_ai?n1.ai_purpose:void 0})),U.push(this.edge("col-attrs","usage-purpose","#3B82F6"),this.edge("usage-purpose","usage-owner","#22C55E"));const K2=(n1.lawful_basis??[]).map(g2=>g2.name),J4=(n1.legitimate_use_ground??[]).map(g2=>g2.name);m.push(this.lawfulBasis("basis-lawful","Lawful Basis",K2,1120,160,{tag:`${K2.length} bases`})),J4.length&&m.push(this.lawfulBasis("basis-legit","Legitimate Use Grounds",J4,1120,440,{tag:`${J4.length} grounds`})),K2.some(g2=>g2.toLowerCase().includes("consent"))&&(m.push(this.consent("basis-consent","Consent Details",null,1120,720,{rows:[{key:"Nature",val:n1.nature_of_consent??"\u2014"},{key:"Type",val:n1.type_of_consent??"\u2014"},{key:"Recorded",val:n1.is_consent_recorded?"Yes":"No"},{key:"Recording",val:n1.consent_recording_method??"\u2014"},{key:"Storage",val:n1.consent_record_storage??"\u2014"},{key:"Privacy Notice",val:n1.privacy_notice_presented?"Yes":"No"},{key:"Withdrawal",val:n1.consent_withdrawal_available?"Available":"Not Available"}],badge:n1.consent_collection_channel??[]})),U.push(this.edge("basis-lawful","basis-consent","#6366F1"))),U.push(this.edge("usage-owner","basis-lawful","#22C55E")),J4.length&&U.push(this.edge("basis-lawful","basis-legit","#6366F1"));const m4=this.buildTransferLayout("basis-lawful",w1);m.push(...m4.nodes),U.push(...m4.edges);const x3=this.buildStorageLayout("basis-lawful",v1);m.push(...x3.nodes),U.push(...x3.edges),m.push(this.retention("ret-period","Data Retention",null,2840,160,{rows:[{key:"Retention Period",val:F1.data_retention_period?.name??"\u2014"},{key:"Purpose",val:F1.data_retention_purpose??"\u2014"},{key:"Disposal Owner",val:F1.data_disposal_owner??"\u2014"}],badge:F1.data_disposal_method??[]}));const C3=[];(A1.data_at_rest_measures??[]).length&&C3.push({heading:"At Rest",values:A1.data_at_rest_measures}),(A1.data_in_transit_measures??[]).length&&C3.push({heading:"In Transit",values:A1.data_in_transit_measures}),(A1.organizational_measures??[]).length&&C3.push({heading:"Organisational",values:(A1.organizational_measures??[]).map(g2=>g2.name??g2)}),m.push(this.security("ret-security","Security Measures",C3,2840,640,{tag:A1.security_measures_applied?"Applied \u2713":"Not Applied"}));const w6=(v1.data_storage_system??[])[0];U.push(this.edge(w6?`store-${w6.id}`:"basis-lawful","ret-period","#8B5CF6"),this.edge("ret-period","ret-security","#EF4444")),m.push(this.panel("legend","DATA FLOW LEGEND",null,[{key:"\u2b1c Business Process",val:"Entity, role, DPO"},{key:"\u{1f535} Data Collection",val:"What data is collected & from where"},{key:"\u{1f7e2} Data Usage",val:"Processing purposes & business owners"},{key:"\u{1f7e3} Lawful Basis",val:"Legal grounds & consent details"},{key:"\u{1f7e0} Data Transfer",val:"Internal, external & cross-border recipients"},{key:"\u{1f537} Data Storage",val:"Systems, jurisdictions & access holders"},{key:"\u{1f534} Retention & Security",val:"Retention periods & security measures"},{key:"\u{1f310} Cross-Border",val:"Cross-border data transfer indicator"}],3260,-360)),this.dataFlowDiagramStateService.updateState({nodes:m,edges:U}),this.loading.stop()})}buildTransferLayout(c,n){const m=[],U=[];if(!n)return{nodes:m,edges:U};const t1=new Set((n.cross_border_data_recipients??[]).map(A1=>A1.name));let F1=160;return n.internal_transfer&&(n.internal_recipients??[]).length&&(n.internal_recipients??[]).forEac
1h(A1=>{const R1=((n.personal_data_attribute_transferred_internal??[]).find(W1=>W1.recipient?.id===A1.id)?.data_attributes??[]).map(W1=>W1.name),K1=t1.has(A1.name),I1=this.estimateNodeHeight(R1);m.push(this.transfer(`int-${A1.id}`,A1.name,null,1560,F1,K1,{tag:"Internal",subtitle:n.internal_transfer_purpose}),this.transfer(`int-attr-${A1.id}`,"Personal Data Attributes",R1,1980,F1,K1,{showSource:!1})),U.push(this.edge(c,`int-${A1.id}`,"#F59E0B"),this.edge(`int-${A1.id}`,`int-attr-${A1.id}`,"#F59E0B")),F1+=I1+60}),n.external_transfer&&(n.external_recipients??[]).length&&(n.external_recipients??[]).forEach(A1=>{const R1=((n.personal_data_attribute_transferred_external??[]).find(W1=>W1.recipient?.id===A1.id)?.data_attributes??[]).map(W1=>W1.name),K1=t1.has(A1.name),I1=this.estimateNodeHeight(R1);m.push(this.transfer(`ext-${A1.id}`,A1.name,null,1560,F1,K1,{tag:"External",subtitle:n.external_transfer_purpose,badge:n.recipient_role_external_transer?.name?[n.recipient_role_external_transer.name]:void 0}),this.transfer(`ext-attr-${A1.id}`,"Personal Data Attributes",R1,1980,F1,K1,{showSource:!1})),U.push(this.edge(c,`ext-${A1.id}`,"#F59E0B"),this.edge(`ext-${A1.id}`,`ext-attr-${A1.id}`,"#F59E0B")),F1+=I1+60}),n.cross_border_transfer&&(n.cross_border_data_recipients??[]).length&&(n.cross_border_data_recipients??[]).forEach(A1=>{const R1=((n.personal_data_attribute_transferred_cross_border??[]).find(I1=>I1.recipient?.id===A1.id)?.data_attributes??[]).map(I1=>I1.name),K1=this.estimateNodeHeight(R1);m.push(this.transfer(`cb-${A1.id}`,A1.name,null,1560,F1,!0,{tag:"Cross-Border \u{1f310}",subtitle:n.cross_border_transfer_purpose,countries:n.recipient_country??[],safeguards:n.transfer_safeguard??[],badge:n.recipient_role_cross_border_transer?.name?[n.recipient_role_cross_border_transer.name]:void 0}),this.transfer(`cb-attr-${A1.id}`,"Personal Data Attributes",R1,1980,F1,!0,{showSource:!1})),U.push(this.edge(c,`cb-${A1.id}`,"#F59E0B"),this.edge(`cb-${A1.id}`,`cb-attr-${A1.id}`,"#F59E0B")),F1+=K1+60}),!n.internal_transfer&&!n.external_transfer&&!n.cross_border_transfer&&(m.push(this.transfer("tra-none","Data Transfer",["No transfer configured"],1560,F1,!1,{})),U.push(this.edge(c,"tra-none","#F59E0B"))),{nodes:m,edges:U}}buildStorageLayout(c,n){const m=[],U=[];if(!n)return{nodes:m,edges:U};let v1=160;return(n.data_storage_system??[]).forEach(w1=>{const F1=`store-${w1.id}`;m.push(this.storageNode(F1,w1.name,"Storage System",2420,v1,{tag:"System"})),U.push(this.edge(c,F1,"#8B5CF6")),v1+=300}),m.push(this.storageNode("storage-juris","Storage Jurisdictions",n.data_storage_jurisdiction??[],2420,v1,{showSource:!1,tag:`${(n.data_storage_jurisdiction??[]).length} countries`})),U.push(this.edge(`store-${(n.data_storage_system??[])[0]?.id??"basis-lawful"}`,"storage-juris","#8B5CF6")),v1+=280,m.push(this.storageNode("storage-access","Data Access Holders",(n.data_access_holders??[]).map(w1=>w1.name),2420,v1,{showSource:!1,rows:[{key:"Frequency",val:n.data_access_frequency??"\u2014"},{key:"Backup",val:n.backup_available?"Available":"None"},{key:"Personal Copies",val:n.personal_data_copies?"Yes":"No"}]})),U.push(this.edge("storage-juris","storage-access","#8B5CF6")),{nodes:m,edges:U}}section(c,n,m,U){return{id:c,type:"section",position:{x:m,y:U},draggable:!1,data:{label:n}}}panel(c,n,m,U,t1,n1){return{id:c,type:"panel",position:{x:t1,y:n1},draggable:!0,data:{title:n,content:m,rows:U}}}info(c,n,m,U,t1,n1={}){return{id:c,type:"info",position:{x:U,y:t1},data:{label:n,value:m,...n1}}}collection(c,n,m,U,t1,n1={}){return{id:c,type:"collection",position:{x:U,y:t1},data:{label:n,value:m,...n1}}}usage(c,n,m,U,t1,n1={}){return{id:c,type:"usage",position:{x:U,y:t1},data:{label:n,value:m,...n1}}}consent(c,n,m,U,t1,n1={}){return{id:c,type:"consent",position:{x:U,y:t1},data:{label:n,value:m,...n1}}}lawfulBasis(c,n,m,U,t1,n1={}){return{id:c,type:"lawfulBasis",position:{x:U,y:t1},data:{label:n,value:m,...n1}}}transfer(c,n,m,U,t1,n1=!1,v1={}){return{id:c,type:"transfer",position:{x:U,y:t1},data:{label:n,value:m,starred:n1,...v1}}}storageNode(c,n,m,U,t1,n1={}){return{id:c,type:"storage",position:{x:U,y:t1},data:{label:n,value:m,...n1}}}retention(c,n,m,U,t1,n1={}){return{id:c,type:"retention",position:{x:U,y:t1},data:{label:n,value:m,...n1}}}security(c,n,m,U,t1,n1={}){return{id:c,type:"security",position:{x:U,y:t1},data:{label:n,sections:m,...n1}}}edge(c,n,m){return{id:`${c}\u2192${n}`,source:c,target:n,sourceHandle:"right",targetHandle:"left",type:"smoothstep",style:{stroke:m,strokeWidth:2},markerEnd:{type:P2.QZ.ArrowClosed,color:m,width:16,height:16}}}splitContact(c){return c?c.split("||")[0].trim():"\u2014"}estimateNodeHeight(c){return Math.max(200,104+24*Math.max(c.length,1))}updatedNodes(c){this.dataFlowDiagramStateService.updateState({nodes:c})}getStateobserver(){return this.dataFlowDiagramStateService.getStateObs()}getState(){return this.dataFlowDiagramStateService.getState()}ngOnDestroy(){this.dataFlowDiagramStateService.resetState()}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.LFG(F4),e.LFG(B2.YP),e.LFG
1(m2.gz),e.LFG(R3),e.LFG(C4.LA),e.LFG(m2.F0),e.LFG(B2.ez))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),t})();var p1=P1(18348),c4=P1(54284),u6={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},m6=c4.createContext&&c4.createContext(u6),R2=function(){return R2=Object.assign||function(t){for(var M,o=1,c=arguments.length;o<c;o++)for(var n in M=arguments[o])Object.prototype.hasOwnProperty.call(M,n)&&(t[n]=M[n]);return t},R2.apply(this,arguments)},p4=function(t,M){var o={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&M.indexOf(c)<0&&(o[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(c=Object.getOwnPropertySymbols(t);n<c.length;n++)M.indexOf(c[n])<0&&Object.prototype.propertyIsEnumerable.call(t,c[n])&&(o[c[n]]=t[c[n]])}return o};function R4(t){return t&&t.map(function(M,o){return c4.createElement(M.tag,R2({key:o},M.attr),R4(M.child))})}function x2(t){return function(M){return c4.createElement(D2,R2({attr:R2({},t.attr)},M),R4(t.child))}}function D2(t){var M=function(o){var n1,c=t.attr,n=t.size,m=t.title,U=p4(t,["attr","size","title"]),t1=n||o.size||"1em";return o.className&&(n1=o.className),t.className&&(n1=(n1?n1+" ":"")+t.className),c4.createElement("svg",R2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},o.attr,c,U,{className:n1,style:R2(R2({color:t.color||o.color},o.style),t.style),height:t1,width:t1,xmlns:"http://www.w3.org/2000/svg"}),m&&c4.createElement("title",null,m),t.children)};return void 0!==m6?c4.createElement(m6.Consumer,null,function(o){return M(o)}):M(u6)}function B6(t){return x2({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"}}]})(t)}function N6(t){return x2({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"}}]})(t)}function O6(t){return x2({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"}}]})(t)}function G6(t){return x2({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}}]})(t)}function k6(t){return x2({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"}}]})(t)}function T6(t){return x2({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"}}]})(t)}function Z6(t){return x2({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"}}]})(t)}function U6(t){return x2({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"}}]})(t)}function E6(t){return x2({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(t)}function D6(t){return x2({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(t)}function q6(t){return x2({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"}}]})(t)}const a4=({values:t,color:M})=>{const[o,c]=(0,c4.useState)(!1),n=o?t:t.slice(0,4);return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)("ul",{style:{margin:0,paddingLeft:16},children:n.map((m,U)=>(0,p1.jsx)("li",{style:{marginBottom:2},children:m},U))}),t.length>4&&(0,p1.jsx)("div",{style:{marginTop:6,cursor:"pointer",fontSize:11,color:M,fontWeight:600},onClick:()=>c(!o),children:o?"\u25b2 View less":`\u25bc +${t.length-4} more`})]})},r4=({values:t,bg:M,fg:o})=>(0,p1.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginTop:6},children:t.map((c,n)=>(0,p1.jsx)("span",{style:{background:M,color:o,borderRadius:999,padding:"2px 8px",fontSize:10,fontWeight:600,whiteSpace:"nowrap"},children:c},n))}),g4=({color:t,title:M,subtitle:o,icon:c,tag:n,children:m,showStar:U,width:t1=320})=>(0,p1.jsxs)("div",{style:{position:"relative",border:`2px solid ${t}`,background:"#fff",borderRadius:12,padding:"12px 14px",minWidth:t1,maxWidth:t1+20,fontSize:12,lineHeight:1.5,boxShadow:"0 3px 10px rgba(0,0,0,0.08)"},children:[(0,p1.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,height:4,background:t,borderRadius:"10px 10px 0 0"}}),U&&(0,p1.jsx)("div",{title:"Cross-border transfer",style:{position:"absolute",top:-10,right:-10,background:"#fff",borderRadius:"50%",padding:4,boxShadow:"0 2px 6px rgba(0,0,0,0.2)",fontSize:16,lineHeight:1},children:"\u{1f310}"}),(0,p1.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:4},children:[c&&(0,p1.jsx)("span",{style:{color:t,fontSize:16,display:"inline-flex",flexShrink:0},children:c}),(0,p1.jsx)("div",{style:{fontWeight:700,fontSize:12,color:"#1a1a2e",flex:1},children:M}),n&&(0,p1.jsx)("span",{style:{background:t+"20",color:t,borderRadius:999,padding:"1px 7px",fontSize:10,fontWeight:700,whiteSpace:"nowrap"},children:n})]}),o&&(0,p1.jsx)("div",{style:{fontSize:11,color:"#6b7280",marginTop:2,fontStyle:"italic"},children:o}),m&&(0,p1.jsx)("div",{style:{marginTop:8,paddingTop:8,borderTop:`1px solid ${t}30`,color:"#374151"},children:m})]}),v4=({color:t,show:M=!0})=>M?(0,p1.jsx)(P2.HH,{type:"target",position:P2.Ly.Left,id:"left",style:{background:t,width:9,height:9,left:-5,top:"50%",transform:"translateY(-50%)",border:"2px s
1olid white",borderRadius:"50%"}}):null,u4=({color:t,show:M=!0})=>M?(0,p1.jsx)(P2.HH,{type:"source",position:P2.Ly.Right,id:"right",style:{background:t,width:9,height:9,right:-5,top:"50%",transform:"translateY(-50%)",border:"2px solid white",borderRadius:"50%"}}):null,R6=({color:t,show:M=!0})=>M?(0,p1.jsx)(P2.HH,{type:"source",position:P2.Ly.Bottom,id:"bottom",style:{background:t,width:9,height:9,bottom:-5,left:"50%",transform:"translateX(-50%)",border:"2px solid white",borderRadius:"50%"}}):null,I6=function(t,M){return{oid:t,pid:M}};function n0(t,M){if(1&t){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",1)(2,"div",2)(3,"div")(4,"nav",3)(5,"ol",4)(6,"li",5)(7,"a",6),e._uU(8,"Home"),e.qZA()(),e.TgZ(9,"li",5)(10,"a",7),e._uU(11,"Activities"),e.qZA()(),e.TgZ(12,"li",8),e._uU(13),e.qZA()()()()()(),e.TgZ(14,"main",9)(15,"section",10)(16,"ngx-reactflow",11),e.NdJ("onInit",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.onFlowInit(n))})("onNodesChange",function(n){e.CHM(o);const m=e.oxw();return e.KtG(m.nodeDrag(n[0]))}),e.qZA()(),e._UZ(17,"ngx-ui-loader",12),e.qZA(),e.BQk()}if(2&t){const o=M.ngIf,c=e.oxw();e.xp6(7),e.Q6J("queryParams",e.WLB(12,I6,o.oid,o.pid)),e.xp6(3),e.Q6J("routerLink","/ropa/activity")("queryParams",e.WLB(15,I6,o.oid,o.pid)),e.xp6(3),e.hij(" ",o.activityName||"Data Flow Diagram"," "),e.xp6(3),e.Q6J("nodes",o.nodes)("edges",o.edges)("nodeTypes",c.nodeType)("nodesDraggable",!0)("selectionOnDrag",!0)("fitView",!0),e.xp6(1),e.Q6J("fgsColor","#1976d2")("overlayColor","rgba(0,0,0,0.3)")}}const a0=P1(30813),r0={section:({data:t})=>(0,p1.jsx)("div",{style:{padding:"8px 28px",borderRadius:9999,background:{"BUSINESS PROCESS":"#64748b","DATA COLLECTION":"#3B82F6","DATA USAGE":"#22C55E","LAWFUL BASIS":"#6366F1","DATA TRANSFER":"#F59E0B","DATA STORAGE":"#8B5CF6","RETENTION & SECURITY":"#EF4444"}[t.label]??"#6B7280",color:"#fff",fontWeight:800,fontSize:11,letterSpacing:"0.8px",minWidth:200,textAlign:"center",boxShadow:"0 4px 12px rgba(0,0,0,0.18)",textTransform:"uppercase"},children:t.label}),info:({data:t})=>{const M="#64748b";return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)(v4,{color:M,show:!1!==t.showTarget}),(0,p1.jsxs)(g4,{color:M,title:t.label,subtitle:t.subtitle,icon:(0,p1.jsx)(N6,{}),tag:t.tag,width:300,children:[Array.isArray(t.value)?t.value.length>0?(0,p1.jsx)(a4,{values:t.value,color:M}):(0,p1.jsx)("span",{style:{color:"#9ca3af",fontStyle:"italic"},children:"None specified"}):t.value?(0,p1.jsx)("div",{style:{fontWeight:500},children:t.value}):null,t.badge&&(0,p1.jsx)(r4,{values:t.badge,bg:"#f1f5f9",fg:M})]}),(0,p1.jsx)(u4,{color:M,show:!1!==t.showSource})]})},collection:({data:t})=>{const M="#3B82F6";return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)(v4,{color:M,show:!1!==t.showTarget}),(0,p1.jsxs)(g4,{color:M,title:t.label,subtitle:t.subtitle,icon:(0,p1.jsx)(D6,{}),tag:t.tag,width:310,children:[Array.isArray(t.value)?t.value.length>0?(0,p1.jsx)(a4,{values:t.value,color:M}):(0,p1.jsx)("span",{style:{color:"#9ca3af",fontStyle:"italic"},children:"None specified"}):t.value?(0,p1.jsx)("div",{style:{fontWeight:500},children:t.value}):null,t.badge&&(0,p1.jsx)(r4,{values:t.badge,bg:"#dbeafe",fg:"#1d4ed8"})]}),(0,p1.jsx)(u4,{color:M,show:!1!==t.showSource})]})},usage:({data:t})=>{const M="#22C55E";return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)(v4,{color:M,show:!1!==t.showTarget}),(0,p1.jsxs)(g4,{color:M,title:t.label,subtitle:t.subtitle,icon:(0,p1.jsx)(O6,{}),tag:t.tag,width:310,children:[Array.isArray(t.value)?t.value.length>0?(0,p1.jsx)(a4,{values:t.value,color:M}):(0,p1.jsx)("span",{style:{color:"#9ca3af",fontStyle:"italic"},children:"None specified"}):t.value?(0,p1.jsx)("div",{style:{fontWeight:500},children:t.value}):null,t.badge&&(0,p1.jsx)(r4,{values:t.badge,bg:"#dcfce7",fg:"#15803d"}),t.ai&&(0,p1.jsxs)("div",{style:{marginTop:8,display:"flex",alignItems:"center",gap:6,background:"#fef9c3",border:"1px solid #fbbf24",borderRadius:8,padding:"4px 8px",fontSize:11,color:"#92400e",fontWeight:600},children:[(0,p1.jsx)(Z6,{}),"AI Used: ",t.ai]})]}),(0,p1.jsx)(u4,{color:M,show:!1!==t.showSource})]})},consent:({data:t})=>{const M="#0D9488";return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)(v4,{color:M,show:!1!==t.showTarget}),(0,p1.jsxs)(g4,{color:M,title:t.label,subtitle:t.subtitle,icon:(0,p1.jsx)(G6,{}),tag:t.tag,width:310,children:[t.rows&&t.rows.map((o,c)=>(0,p1.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",padding:"3px 0",borderBottom:c<t.rows.length-1?"1px solid #ccfbf1":"none",gap:8},children:[(0,p1.jsx)("span",{style:{color:"#6b7280",flexShrink:0},children:o.key}),(0,p1.jsx)("span",{style:{fontWeight:600,textAlign:"right",color:"#134e4a"},children:o.val})]},c)),Array.isArray(t.value)&&t.value.length>0&&(0,p1.jsx)(a4,{values:t.value,color:M}),t.badge&&(0,p1.jsx)(r4,{values:t.badge,bg:"#ccfbf1",fg:"#0f766e"})]}),(0,p1.jsx)(u4,{color:M,show:!1!==t.showSource})]})},lawfulBasis:({data:t})=>{const M="#6366F1";return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)(v4,{color:M,show:!1!==t.showTarget}),(0,p1.jsxs)(g4,{color:M,title:t.label,subtitle:t.subtitle,icon:(0,p1.jsx)(B6,{}),tag:t.tag,width:310,children:[Array.isArray(t.value)?t.value.length>0?(0,p1.jsx)(a4,{values:t.value,color:M}):(0,p1.jsx)("span",{style:{color:"#9ca3af",fontStyle:"italic"},children:"None specified"}):t.value?(0,p1.jsx)("div",{style:{fontWeight:500},children:t.value}):null,t.badge&&(0,p1.jsx)(r4,{values:t.badge,bg:"#e0e7ff",fg:"#4338ca"})]}),(0,p1.jsx)(u4,{color:M,show:!1!==t.showSource})]})},transfer:({data:t})=>{const M="#F59E0B",o=!1!==t.showBottom,c=!1!==t.showSource&&!o;return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)(v4,{color:M}),(0,p1.jsxs)(g4,{color:M,title:t.label,subtitle:t.subtitle,icon:(0,p1.jsx)(q6,{}
1),tag:t.tag,showStar:t.starred,width:320,children:[Array.isArray(t.value)?t.value.length>0?(0,p1.jsx)(a4,{values:t.value,color:M}):(0,p1.jsx)("span",{style:{color:"#9ca3af",fontStyle:"italic"},children:"None specified"}):t.value?(0,p1.jsx)("div",{style:{fontWeight:500},children:t.value}):null,t.badge&&(0,p1.jsx)(r4,{values:t.badge,bg:"#fef3c7",fg:"#92400e"}),t.safeguards&&t.safeguards.length>0&&(0,p1.jsxs)("div",{style:{marginTop:8},children:[(0,p1.jsx)("div",{style:{fontSize:10,color:"#6b7280",fontWeight:700,marginBottom:4},children:"SAFEGUARDS"}),(0,p1.jsx)(r4,{values:t.safeguards,bg:"#fef3c7",fg:"#92400e"})]}),t.countries&&t.countries.length>0&&(0,p1.jsxs)("div",{style:{marginTop:8},children:[(0,p1.jsx)("div",{style:{fontSize:10,color:"#6b7280",fontWeight:700,marginBottom:4},children:"RECIPIENT COUNTRIES"}),(0,p1.jsx)(a4,{values:t.countries,color:M})]})]}),(0,p1.jsx)(R6,{color:M,show:o}),(0,p1.jsx)(u4,{color:M,show:c})]})},storage:({data:t})=>{const M="#8B5CF6";return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)(v4,{color:M}),(0,p1.jsxs)(g4,{color:M,title:t.label,subtitle:t.subtitle,icon:(0,p1.jsx)(t.cloud?k6:T6,{}),tag:t.tag,width:310,children:[Array.isArray(t.value)?t.value.length>0?(0,p1.jsx)(a4,{values:t.value,color:M}):(0,p1.jsx)("span",{style:{color:"#9ca3af",fontStyle:"italic"},children:"None specified"}):t.value?(0,p1.jsx)("div",{style:{fontWeight:500},children:t.value}):null,t.badge&&(0,p1.jsx)(r4,{values:t.badge,bg:"#ede9fe",fg:"#5b21b6"}),t.rows&&t.rows.map((o,c)=>(0,p1.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",padding:"3px 0",borderBottom:c<t.rows.length-1?"1px solid #ede9fe":"none",gap:8},children:[(0,p1.jsx)("span",{style:{color:"#6b7280",flexShrink:0},children:o.key}),(0,p1.jsx)("span",{style:{fontWeight:600,color:"#4c1d95"},children:o.val})]},c))]}),(0,p1.jsx)(u4,{color:M,show:!1!==t.showSource})]})},retention:({data:t})=>{const M="#EF4444";return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)(v4,{color:M}),(0,p1.jsxs)(g4,{color:M,title:t.label,subtitle:t.subtitle,icon:(0,p1.jsx)(E6,{}),tag:t.tag,width:310,children:[t.rows&&t.rows.map((o,c)=>(0,p1.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",padding:"3px 0",borderBottom:c<t.rows.length-1?"1px solid #fee2e2":"none",gap:8},children:[(0,p1.jsx)("span",{style:{color:"#6b7280",flexShrink:0},children:o.key}),(0,p1.jsx)("span",{style:{fontWeight:600,color:"#7f1d1d"},children:o.val})]},c)),Array.isArray(t.value)&&t.value.length>0&&(0,p1.jsx)("div",{style:{marginTop:8},children:(0,p1.jsx)(a4,{values:t.value,color:M})}),t.badge&&(0,p1.jsx)(r4,{values:t.badge,bg:"#fee2e2",fg:"#991b1b"})]}),(0,p1.jsx)(u4,{color:M,show:!1!==t.showSource})]})},security:({data:t})=>{const M="#1e293b";return(0,p1.jsxs)(p1.Fragment,{children:[(0,p1.jsx)(v4,{color:M}),(0,p1.jsxs)(g4,{color:M,title:t.label,subtitle:t.subtitle,icon:(0,p1.jsx)(U6,{}),tag:t.tag,width:310,children:[t.sections&&t.sections.map((o,c)=>(0,p1.jsxs)("div",{style:{marginTop:c>0?8:0},children:[(0,p1.jsx)("div",{style:{fontSize:10,color:"#64748b",fontWeight:800,textTransform:"uppercase",marginBottom:4},children:o.heading}),(0,p1.jsx)(r4,{values:o.values,bg:"#f1f5f9",fg:"#1e293b"})]},c)),Array.isArray(t.value)&&t.value.length>0&&(0,p1.jsx)(a4,{values:t.value,color:M})]}),(0,p1.jsx)(u4,{color:M,show:!1!==t.showSource})]})},panel:({data:t})=>(0,p1.jsxs)("div",{style:{background:"#ffffff",border:"1px solid #e2e8f0",borderRadius:16,padding:20,width:460,fontSize:13,boxShadow:"0 8px 24px rgba(0,0,0,0.1)",whiteSpace:"pre-line"},children:[(0,p1.jsx)("div",{style:{fontWeight:800,fontSize:14,marginBottom:12,color:"#1e293b",borderBottom:"2px solid #e2e8f0",paddingBottom:8},children:t.title}),t.rows?t.rows.map((M,o)=>(0,p1.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",padding:"4px 0",borderBottom:o<t.rows.length-1?"1px solid #f1f5f9":"none",gap:12},children:[(0,p1.jsx)("span",{style:{color:"#64748b",fontWeight:500,fontSize:12},children:M.key}),(0,p1.jsx)("span",{style:{fontWeight:700,color:"#1e293b",fontSize:12,textAlign:"right"},children:M.val})]},o)):(0,p1.jsx)("div",{style:{fontWeight:600,lineHeight:1.8,color:"#374151",fontSize:12},children:t.content})]})};let S6=(()=>{const M=class{constructor(c,n){this.cd=c,this.dataFlowDiagramActionService=n,this.stateObs=this.dataFlowDiagramActionService.getStateobserver(),this.nodeType=r0,this.isExporting=!1,this.rfInstance=null}ngOnInit(){this.dataFlowDiagramActionService.init()}onFlowInit(c){const n=Array.isArray(c[0])?c[0][0]:c[0];this.rfInstance=n??null}nodeDrag(c){const n=Array.isArray(c[0])?c[0]:c,m=this.dataFlowDiagramActionService.getState().nodes,U=(0,P2.Fb)(n,m);this.dataFlowDiagramActionService.updatedNodes(U),this.cd.detectChanges()}nodeChange(c){const n=this.dataFlowDiagramActionService.getState().nodes.map(m=>m.id===c[1].id?{...c[1]}:m);this.dataFlowDiagramActionService.updatedNodes(n),this.cd.detectChanges()}downloadAsPdf(){var c=this;return(0,_3.Z)(function*(){if(!c.isExporting){c.isExporting=!0,c.cd.detectChanges(),yield new Promise(n=>requestAnimationFrame(n));try{const n=c.dataFlowDiagramActionService.getState(),m=n?.nodes??[],U=n?.activityName??"Data Flow Diagram";if(!m.length)return;const t1=60;let n1=1/0,v1=1/0,w1=-1/0,F1=-1/0;m.forEach(i4=>{const g2=i4.position?.x??0,M6=i4.position?.y??0,P6=i4.width??("panel"===i4.type?460:340),V6=i4.height??("section"===i4.type?36:260);g2<n1&&(n1=g2),M6<v1&&(v1=M6),g2+P6>w1&&(w1=g2+P6),M6+V6>F1&&(F1=M6+V6)});const A1=w1-n1+2*t1,q1=F1-v1+2*t1,R1=2,K1=document.createElement("canvas");
1K1.width=A1*R1,K1.height=q1*R1;const I1=K1.getContext("2d");I1.scale(R1,R1);const W1=-n1+t1,Q2=-v1+t1;I1.fillStyle="#f8fafc",I1.fillRect(0,0,A1,q1),c.drawEdges(I1,n?.edges??[],m,W1,Q2),m.forEach(i4=>c.drawNode(I1,i4,W1,Q2)),I1.fillStyle="#f1f5f9",I1.fillRect(0,q1-18,A1,18),I1.fillStyle="#64748b",I1.font="11px Arial, sans-serif",I1.fillText(`${U}  \u2022  Data Flow Diagram  \u2022  ${(new Date).toLocaleDateString()}`,t1,q1-5);const K2=K1.toDataURL("image/jpeg",.92),J4=96/25.4,Y4=A1/J4,m4=q1/J4,x3=Y4>m4,z6=new a0(x3?"l":"p","mm",[Math.max(Y4,m4),Math.min(Y4,m4)]),C3=x3?Math.max(Y4,m4):Y4,w6=x3?Math.min(Y4,m4):m4;z6.addImage(K2,"JPEG",0,0,C3,w6),z6.save(`${U.replace(/\s+/g,"_")}_dfd.pdf`)}catch(n){console.error("PDF export failed",n)}finally{c.isExporting=!1,c.cd.detectChanges()}}})()}drawEdges(c,n,m,U,t1){const n1={};m.forEach(v1=>n1[v1.id]=v1),n.forEach(v1=>{const w1=n1[v1.source],F1=n1[v1.target];if(!w1||!F1)return;const A1=v1.style?.stroke??"#94a3b8",q1=(w1.position.x??0)+(w1.width??340)+U,R1=(w1.position.y??0)+(w1.height??260)/2+t1,K1=(F1.position.x??0)+U,I1=(F1.position.y??0)+(F1.height??260)/2+t1,W1=q1+.5*(K1-q1);c.beginPath(),c.moveTo(q1,R1),c.bezierCurveTo(W1,R1,W1,I1,K1,I1),c.strokeStyle=A1,c.lineWidth=2,c.stroke(),c.beginPath(),c.moveTo(K1,I1),c.lineTo(K1-7,I1-4),c.lineTo(K1-7,I1+4),c.closePath(),c.fillStyle=A1,c.fill()})}drawNode(c,n,m,U){const t1=(n.position?.x??0)+m,n1=(n.position?.y??0)+U,v1=n.data??{},F1={section:"#64748b",info:"#64748b",collection:"#3B82F6",usage:"#22C55E",consent:"#0D9488",lawfulBasis:"#6366F1",transfer:"#F59E0B",storage:"#8B5CF6",retention:"#EF4444",security:"#1e293b",panel:"#e2e8f0"}[n.type]??"#94a3b8";if("section"===n.type)return this.rr(c,t1,n1,220,32,16,F1),c.fillStyle="#fff",c.font="bold 11px Arial",c.textAlign="center",c.textBaseline="middle",c.fillText(v1.label??"",t1+110,n1+16),c.textAlign="left",void(c.textBaseline="alphabetic");if("panel"===n.type){const I1=v1.rows??[];return this.rr(c,t1,n1,460,42+20*I1.length,12,"#fff","#e2e8f0",1),c.fillStyle="#1e293b",c.font="bold 13px Arial",c.textBaseline="middle",c.fillText(v1.title??"",t1+14,n1+20),c.font="11px Arial",c.textBaseline="alphabetic",void I1.forEach((Q2,K2)=>{c.fillStyle="#64748b",c.fillText(Q2.key,t1+14,n1+42+20*K2),c.fillStyle="#1e293b",c.fillText(this.trunc(c,Q2.val??"",220),t1+240,n1+42+20*K2)})}const A1=[];Array.isArray(v1.value)?v1.value.forEach(I1=>A1.push("\u2022 "+(I1?.name??I1))):v1.value&&A1.push(String(v1.value)),v1.rows&&v1.rows.forEach(I1=>A1.push(`${I1.key}: ${I1.val}`)),v1.sections&&v1.sections.forEach(I1=>{A1.push(I1.heading+":"),(I1.values??[]).forEach(W1=>A1.push("  \xb7 "+W1))}),v1.badge?.length&&A1.push(v1.badge.join(" \xb7 ")),v1.safeguards?.length&&A1.push("Safeguards: "+v1.safeguards.join(", ")),v1.countries?.length&&A1.push("Countries: "+v1.countries.slice(0,4).join(", ")),v1.ai&&A1.push("AI: "+v1.ai);const q1="info"===n.type?300:320,R1=Math.max(80,54+16*A1.length);c.shadowColor="rgba(0,0,0,0.08)",c.shadowBlur=6,c.shadowOffsetY=2,this.rr(c,t1,n1,q1,R1,10,"#fff",F1,2),c.shadowColor="transparent",c.shadowBlur=0,c.shadowOffsetY=0,c.fillStyle=F1,c.fillRect(t1+2,n1+2,q1-4,5),c.fillStyle="#1e293b",c.font="bold 11px Arial",c.textBaseline="middle";const K1=this.trunc(c,v1.label??"",q1-(v1.tag?80:24));c.fillText(K1,t1+10,n1+28),v1.tag&&(c.font="bold 9px Arial",c.fillStyle=F1,c.fillText(v1.tag,t1+q1-60,n1+28)),v1.starred&&(c.font="14px Arial",c.fillText("\u{1f310}",t1+q1-24,n1+28)),c.fillStyle="#374151",c.font="10px Arial",c.textBaseline="alphabetic",A1.slice(0,12).forEach((I1,W1)=>{c.fillText(this.trunc(c,I1,q1-18),t1+10,n1+48+16*W1)}),A1.length>12&&(c.fillStyle=F1,c.fillText(`+${A1.length-12} more`,t1+10,n1+R1-6))}rr(c,n,m,U,t1,n1,v1,w1,F1){c.beginPath(),c.moveTo(n+n1,m),c.lineTo(n+U-n1,m),c.quadraticCurveTo(n+U,m,n+U,m+n1),c.lineTo(n+U,m+t1-n1),c.quadraticCurveTo(n+U,m+t1,n+U-n1,m+t1),c.lineTo(n+n1,m+t1),c.quadraticCurveTo(n,m+t1,n,m+t1-n1),c.lineTo(n,m+n1),c.quadraticCurveTo(n,m,n+n1,m),c.closePath(),c.fillStyle=v1,c.fill(),w1&&(c.strokeStyle=w1,c.lineWidth=F1??1,c.stroke())}trunc(c,n,m){if(c.measureText(n).width<=m)return n;let U=n;for(;
1U.length>1&&c.measureText(U+"\u2026").width>m;)U=U.slice(0,-1);return U+"\u2026"}};let t=M;return M.\u0275fac=function(n){return new(n||M)(e.Y36(e.sBO),e.Y36(v6))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-data-flow-diagram"]],standalone:!0,features:[e._Bn([v6,C4.LA]),e.jDz],decls:2,vars:3,consts:[[4,"ngIf"],[1,"col-md-12",2,"margin-bottom","25px","margin-top","15px","margin-left","6.5px"],[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",1,"bredcrub-row",2,"margin-left","-14px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/home/welcome",3,"queryParams"],[3,"routerLink","queryParams"],[1,"breadcrumb-item","active"],[1,"pp-flex","pp-h-[calc(100vh-72px)]"],[1,"pp-flex-1","pp-bg-white","pp-relative","pp-shadow-inner"],[3,"nodes","edges","nodeTypes","nodesDraggable","selectionOnDrag","fitView","onInit","onNodesChange"],[3,"fgsColor","overlayColor"]],template:function(n,m){1&n&&(e.YNc(0,n0,18,18,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,m.stateObs))},dependencies:[z3.U,v2.ez,v2.O5,v2.Ov,C4.Js,C4.Jj,m2.Bz,m2.rH],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ng
1content-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type="button"]), input[_ngcontent-%COMP%]:where([type="reset"]), input[_ngcontent-%COMP%]:where([type="submit"]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden="until-found"])){display:none}.pp-container[_ngcontent-%COMP%]{width:100%}@media (min-width: 640px){.pp-container[_ngcontent-%COMP%]{max-width:640px}}@media (min-width: 768px){.pp-container[_ngcontent-%COMP%]{max-width:768px}}@media (min-width: 1024px){.pp-container[_ngcontent-%COMP%]{max-width:1024px}}@media (min-width: 1280px){.pp-container[_ngcontent-%COMP%]{max-width:1280px}}@media (min-width: 1536px){.pp-container[_ngcontent-%COMP%]{max-width:1536px}}.pp-pointer-events-none[_ngcontent-%COMP%]{pointer-events:none}.pp-absolute[_ngcontent-%COMP%]{position:absolute}.pp-relative[_ngcontent-%COMP%]{position:relative}.pp-inset-0[_ngcontent-%COMP%]{inset:0}.pp-inset-y-0[_ngcontent-%COMP%]{top:0;bottom:0}.pp-bottom-0[_ngcontent-%COMP%]{bottom:0}.pp-left-0[_ngcontent-%COMP%]{left:0}.pp-left-4[_ngcontent-%COMP%]{left:1rem}.pp-right-0[_ngcontent-%COMP%]{right:0}.pp-top-1\\/2[_ngcontent-%COMP%]{top:50%}.-pp-z-10[_ngcontent-%COMP%]{z-index:-10}
1.pp-col-span-1[_ngcontent-%COMP%]{grid-column:span 1 / span 1}.pp-col-span-11[_ngcontent-%COMP%]{grid-column:span 11 / span 11}.pp-col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.pp-col-span-3[_ngcontent-%COMP%]{grid-column:span 3 / span 3}.pp-col-span-9[_ngcontent-%COMP%]{grid-column:span 9 / span 9}.pp-mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.pp-my-2[_ngcontent-%COMP%]{margin-top:.5rem;margin-bottom:.5rem}.pp-mb-0[_ngcontent-%COMP%]{margin-bottom:0}.pp-mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem}.pp-mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem}.pp-mb-3[_ngcontent-%COMP%]{margin-bottom:.75rem}.pp-mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.pp-mb-6[_ngcontent-%COMP%]{margin-bottom:1.5rem}.pp-mb-8[_ngcontent-%COMP%]{margin-bottom:2rem}.pp-ml-1[_ngcontent-%COMP%]{margin-left:.25rem}.pp-ml-2[_ngcontent-%COMP%]{margin-left:.5rem}.pp-ml-3[_ngcontent-%COMP%]{margin-left:.75rem}.pp-ml-4[_ngcontent-%COMP%]{margin-left:1rem}.pp-ml-6[_ngcontent-%COMP%]{margin-left:1.5rem}.pp-ml-auto[_ngcontent-%COMP%]{margin-left:auto}.pp-mr-1[_ngcontent-%COMP%]{margin-right:.25rem}.pp-mr-2[_ngcontent-%COMP%]{margin-right:.5rem}.pp-mt-1[_ngcontent-%COMP%]{margin-top:.25rem}.pp-mt-10[_ngcontent-%COMP%]{margin-top:2.5rem}.pp-mt-2[_ngcontent-%COMP%]{margin-top:.5rem}.pp-mt-3[_ngcontent-%COMP%]{margin-top:.75rem}.pp-mt-4[_ngcontent-%COMP%]{margin-top:1rem}.pp-mt-5[_ngcontent-%COMP%]{margin-top:1.25rem}.pp-mt-6[_ngcontent-%COMP%]{margin-top:1.5rem}.pp-mt-\\__ph-0__[_ngcontent-%COMP%]{margin-top:3px}.pp-block[_ngcontent-%COMP%]{display:block}.pp-inline-block[_ngcontent-%COMP%]{display:inline-block}.pp-flex[_ngcontent-%COMP%]{display:flex}.pp-inline-flex[_ngcontent-%COMP%]{display:inline-flex}.pp-grid[_ngcontent-%COMP%]{display:grid}.pp-hidden[_ngcontent-%COMP%]{display:none}.pp-h-10[_ngcontent-%COMP%]{height:2.5rem}.pp-h-2[_ngcontent-%COMP%]{height:.5rem}.pp-h-20[_ngcontent-%COMP%]{height:5rem}.pp-h-24[_ngcontent-%COMP%]{height:6rem}.pp-h-3[_ngcontent-%COMP%]{height:.75rem}.pp-h-36[_ngcontent-%COMP%]{height:9rem}.pp-h-4[_ngcontent-%COMP%]{height:1rem}.pp-h-5[_ngcontent-%COMP%]{height:1.25rem}.pp-h-6[_ngcontent-%COMP%]{height:1.5rem}.pp-h-72[_ngcontent-%COMP%]{height:18rem}.pp-h-\\__ph-0__[_ngcontent-%COMP%]{height:2px}.pp-h-\\__ph-0__[_ngcontent-%COMP%]{height:calc(100vh - 72px)}.pp-h-full[_ngcontent-%COMP%]{height:100%}.pp-h-px[_ngcontent-%COMP%]{height:1px}.pp-max-h-0[_ngcontent-%COMP%]{max-height:0px}.pp-max-h-36[_ngcontent-%COMP%]{max-height:9rem}.pp-max-h-72[_ngcontent-%COMP%]{max-height:18rem}.pp-max-h-screen[_ngcontent-%COMP%]{max-height:100vh}.pp-min-h-\\__ph-0__[_ngcontent-%COMP%]{min-height:320px}.pp-min-h-\\__ph-0__[_ngcontent-%COMP%]{min-height:90px}.pp-min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.pp-w-1\\/3[_ngcontent-%COMP%]{width:33.333333%}.pp-w-1\\/4[_ngcontent-%COMP%]{width:25%}.pp-w-16[_ngcontent-%COMP%]{width:4rem}.pp-w-20[_ngcontent-%COMP%]{width:5rem}.pp-w-24[_ngcontent-%COMP%]{width:6rem}.pp-w-3[_ngcontent-%COMP%]{width:.75rem}.pp-w-3\\/4[_ngcontent-%COMP%]{width:75%}.pp-w-36[_ngcontent-%COMP%]{width:9rem}.pp-w-4[_ngcontent-%COMP%]{width:1rem}.pp-w-5[_ngcontent-%COMP%]{width:1.25rem}.pp-w-6[_ngcontent-%COMP%]{width:1.5rem}.pp-w-72[_ngcontent-%COMP%]{width:18rem}.pp-w-full[_ngcontent-%COMP%]{width:100%}.pp-min-w-\\__ph-0__[_ngcontent-%COMP%]{min-width:120px}.pp-min-w-full[_ngcontent-%COMP%]{min-width:100%}.pp-max-w-2xl[_ngcontent-%COMP%]{max-width:42rem}.pp-max-w-3xl[_ngcontent-%COMP%]{max-width:48rem}.pp-max-w-4xl[_ngcontent-%COMP%]{max-width:56rem}.pp-max-w-7xl[_ngcontent-%COMP%]{max-width:80rem}.pp-max-w-\\__ph-0__[_ngcontent-%COMP%]{max-width:50%}.pp-max-w-full[_ngcontent-%COMP%]{max-width:100%}.pp-max-w-md[_ngcontent-%COMP%]{max-width:28rem}.pp-max-w-xl[_ngcontent-%COMP%]{max-width:36rem}.pp-max-w-xs[_ngcontent-%COMP%]{max-width:20rem}.pp-flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.pp-border-collapse[_ngcontent-%COMP%]{border-collapse:collapse}.pp--translate-y-1\\/2[_ngcontent-%COMP%]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.pp-rotate-180[_ngcontent-%COMP%]{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.pp-cursor-not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}.pp-cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.pp-select-none[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}
1.pp-grid-cols-1[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}.pp-grid-cols-12[_ngcontent-%COMP%]{grid-template-columns:repeat(12,minmax(0,1fr))}.pp-grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}.pp-flex-col[_ngcontent-%COMP%]{flex-direction:column}.pp-flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.pp-items-start[_ngcontent-%COMP%]{align-items:flex-start}.pp-items-end[_ngcontent-%COMP%]{align-items:flex-end}.pp-items-center[_ngcontent-%COMP%]{align-items:center}.pp-justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.pp-justify-center[_ngcontent-%COMP%]{justify-content:center}.pp-justify-between[_ngcontent-%COMP%]{justify-content:space-between}.pp-justify-items-center[_ngcontent-%COMP%]{justify-items:center}.pp-gap-2[_ngcontent-%COMP%]{gap:.5rem}.pp-gap-3[_ngcontent-%COMP%]{gap:.75rem}.pp-gap-4[_ngcontent-%COMP%]{gap:1rem}.pp-gap-6[_ngcontent-%COMP%]{gap:1.5rem}.pp-gap-8[_ngcontent-%COMP%]{gap:2rem}.pp-gap-x-12[_ngcontent-%COMP%]{column-gap:3rem}.pp-gap-y-12[_ngcontent-%COMP%]{row-gap:3rem}.pp-space-x-3[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.pp-space-x-4[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.pp-space-y-1[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.pp-space-y-2[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.pp-space-y-3[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}
1.pp-space-y-4[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.pp-space-y-6[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.pp-overflow-auto[_ngcontent-%COMP%]{overflow:auto}.pp-overflow-hidden[_ngcontent-%COMP%]{overflow:hidden}.pp-overflow-x-auto[_ngcontent-%COMP%]{overflow-x:auto}.pp-whitespace-nowrap[_ngcontent-%COMP%]{white-space:nowrap}.pp-whitespace-pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}.pp-break-words[_ngcontent-%COMP%]{overflow-wrap:break-word}.pp-break-all[_ngcontent-%COMP%]{word-break:break-all}.pp-rounded[_ngcontent-%COMP%]{border-radius:.25rem}.pp-rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.pp-rounded-3xl[_ngcontent-%COMP%]{border-radius:1.5rem}.pp-rounded-full[_ngcontent-%COMP%]{border-radius:9999px}.pp-rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.pp-rounded-md[_ngcontent-%COMP%]{border-radius:.375rem}.pp-rounded-xl[_ngcontent-%COMP%]{border-radius:.75rem}.pp-border[_ngcontent-%COMP%]{border-width:1px}.pp-border-0[_ngcontent-%COMP%]{border-width:0px}.pp-border-2[_ngcontent-%COMP%]{border-width:2px}.pp-border-b[_ngcontent-%COMP%]{border-bottom-width:1px}.pp-border-t[_ngcontent-%COMP%]{border-top-width:1px}.pp-border-dashed[_ngcontent-%COMP%]{border-style:dashed}.pp-border-blue-300[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.pp-border-gray-200[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.pp-border-gray-300[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.pp-border-red-200[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.pp-border-slate-100[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity, 1))}.pp-border-slate-200[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.pp-border-slate-300[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.pp-border-transparent[_ngcontent-%COMP%]{border-color:transparent}.pp-bg-\\__ph-0__[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(22 191 94 / var(--tw-bg-opacity, 1))}.pp-bg-\\__ph-0__\\/10[_ngcontent-%COMP%]{background-color:#16bf5e1a}.pp-bg-\\__ph-0__\\/15[_ngcontent-%COMP%]{background-color:#16bf5e26}.pp-bg-\\__ph-0__\\/10[_ngcontent-%COMP%]{background-color:#16bf5e1a}.pp-bg-\\__ph-0__[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(246 248 255 / var(--tw-bg-opacity, 1))}.pp-bg-amber-600[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.pp-bg-blue-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.pp-bg-blue-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.pp-bg-emerald-600[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.pp-bg-gray-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.pp-bg-gray-200[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.pp-bg-gray-300[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.pp-bg-gray-50[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.pp-bg-gray-600[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.pp-bg-gray-800[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.pp-bg-gray-900[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.pp-bg-green-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.pp-bg-green-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.pp-bg-pink-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(236 72 153 / var(--tw-bg-opacity, 1))}.pp-bg-purple-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.pp-bg-red-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.pp-bg-red-50[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.pp-bg-sky-600[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.pp-bg-slate-100[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.pp-bg-slate-300[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.pp-bg-slate-50[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.pp-bg-transparent[_ngcontent-%COMP%]{background-color:transparent}.pp-bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.pp-bg-white\\/60[_ngcontent-%COMP%]{background-color:#fff9}.pp-bg-yellow-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.pp-bg-gradient-to-b[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.pp-from-\\__ph-0__\\/10[_ngcontent-%COMP%]{--tw-gradient-from: rgb(22 191 94 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(22 191 94 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.pp-to-slate-50[_ngcontent-%COMP%]{--tw-gradient-to: #f8fafc var(--tw-gradient-to-position)}.pp-p-12[_ngcontent-%COMP%]{padding:3rem}.pp-p-2[_ngcontent-%COMP%]{padding:.5rem}.pp-p-3[_ngcontent-%COMP%]{padding:.75rem}.pp-p-4[_ngcontent-%COMP%]{padding:1rem}.pp-p-5[_ngcontent-%COMP%]{padding:1.25rem}.pp-p-6[_ngcontent-%COMP%]{padding:1.5rem}.pp-p-8[_ngcontent-%COMP%]{padding:2rem}.pp-px-10[_ngcontent-%COMP%]{padding-left:2.5rem;padding-right:2.5rem}.pp-px-2[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.pp-px-2\\.5[_ngcontent-%COMP%]{padding-left:.625rem;padding-right:.625rem}.pp-px-3[_ngcontent-%COMP%]{padding-left:.75rem;padding-right:.75rem}.pp-px-4[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}.pp-px-6[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}.pp-py-0\\.5[_ngcontent-%COMP%]{padding-top:.125rem;padding-bottom:.125rem}.pp-py-1[_ngcontent-%COMP%]{padding-top:.25rem;padding-bottom:.25rem}.pp-py-1\\.5[_ngcontent-%COMP%]{padding-top:.375rem;padding-bottom:.375rem}.pp-py-10[_ngcontent-%COMP%]{padding-top:2.5rem;padding-bottom:2.5rem}.pp-py-12[_ngcontent-%COMP%]{padding-top:3rem;padding-bottom:3rem}.pp-py-2[_ngcontent-%COMP%]{padding-top:.5rem;padding-bottom:.5rem}.pp-py-3[_ngcontent-%COMP%]{padding-top:.75rem;padding-bottom:.75rem}
1.pp-py-4[_ngcontent-%COMP%]{padding-top:1rem;padding-bottom:1rem}.pp-py-6[_ngcontent-%COMP%]{padding-top:1.5rem;padding-bottom:1.5rem}.pp-py-8[_ngcontent-%COMP%]{padding-top:2rem;padding-bottom:2rem}.pp-pb-12[_ngcontent-%COMP%]{padding-bottom:3rem}.pp-pb-16[_ngcontent-%COMP%]{padding-bottom:4rem}.pp-pb-3[_ngcontent-%COMP%]{padding-bottom:.75rem}.pp-pb-4[_ngcontent-%COMP%]{padding-bottom:1rem}.pp-pb-6[_ngcontent-%COMP%]{padding-bottom:1.5rem}.pp-pb-8[_ngcontent-%COMP%]{padding-bottom:2rem}.pp-pl-0[_ngcontent-%COMP%]{padding-left:0}.pp-pl-11[_ngcontent-%COMP%]{padding-left:2.75rem}.pp-pr-3[_ngcontent-%COMP%]{padding-right:.75rem}.pp-pr-4[_ngcontent-%COMP%]{padding-right:1rem}.pp-pt-0[_ngcontent-%COMP%]{padding-top:0}.pp-pt-1[_ngcontent-%COMP%]{padding-top:.25rem}.pp-pt-10[_ngcontent-%COMP%]{padding-top:2.5rem}.pp-pt-12[_ngcontent-%COMP%]{padding-top:3rem}.pp-pt-2[_ngcontent-%COMP%]{padding-top:.5rem}.pp-pt-4[_ngcontent-%COMP%]{padding-top:1rem}.pp-pt-6[_ngcontent-%COMP%]{padding-top:1.5rem}.pp-text-left[_ngcontent-%COMP%]{text-align:left}.pp-text-center[_ngcontent-%COMP%]{text-align:center}.pp-text-right[_ngcontent-%COMP%]{text-align:right}.pp-font-mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.pp-text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.pp-text-3xl[_ngcontent-%COMP%]{font-size:1.875rem;line-height:2.25rem}.pp-text-4xl[_ngcontent-%COMP%]{font-size:2.25rem;line-height:2.5rem}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{font-size:11px}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{font-size:12px}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{font-size:13px}.pp-text-base[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem}.pp-text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.pp-text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.pp-text-xl[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.75rem}.pp-text-xs[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem}.pp-font-bold[_ngcontent-%COMP%]{font-weight:700}.pp-font-extrabold[_ngcontent-%COMP%]{font-weight:800}.pp-font-medium[_ngcontent-%COMP%]{font-weight:500}.pp-font-normal[_ngcontent-%COMP%]{font-weight:400}.pp-font-semibold[_ngcontent-%COMP%]{font-weight:600}.pp-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.pp-italic[_ngcontent-%COMP%]{font-style:italic}.pp-leading-5[_ngcontent-%COMP%]{line-height:1.25rem}.pp-leading-6[_ngcontent-%COMP%]{line-height:1.5rem}.pp-leading-7[_ngcontent-%COMP%]{line-height:1.75rem}.pp-leading-tight[_ngcontent-%COMP%]{line-height:1.25}.pp-tracking-wide[_ngcontent-%COMP%]{letter-spacing:.025em}.pp-tracking-wider[_ngcontent-%COMP%]{letter-spacing:.05em}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.pp-text-\\__ph-0__[_ngcontent-%COMP%], .pp-text-\\__ph-0__[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(22 191 94 / var(--tw-text-opacity, 1))}.pp-text-\\__ph-0__\\/30[_ngcontent-%COMP%]{color:#16bf5e4d}.pp-text-\\__ph-0__[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.pp-text-amber-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.pp-text-black[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.pp-text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.pp-text-blue-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.pp-text-blue-700[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.pp-text-blue-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.pp-text-gray-400[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.pp-text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.pp-text-gray-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.pp-text-gray-700[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.pp-text-gray-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.pp-text-gray-900[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.pp-text-green-300[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.pp-text-green-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.pp-text-green-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.pp-text-green-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.pp-text-indigo-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.pp-text-purple-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.pp-text-red-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.pp-text-red-700[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.pp-text-red-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.pp-text-rose-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.pp-text-slate-300[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.pp-text-slate-400[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.pp-text-slate-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.pp-text-slate-600[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.pp-text-slate-700[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.pp-text-slate-800[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.pp-text-slate-900[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.pp-text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pp-placeholder-slate-500[_ngcontent-%COMP%]::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.pp-shadow[_ngcontent-%COMP%]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-shadow-\\[0_20px_60px_rgba\\(2\\[_ngcontent-%COMP%], 6\\[_ngcontent-%COMP%], 23\\[_ngcontent-%COMP%], 0\\.08\\)\\][_ngcontent-%COMP%]{--tw-shadow: 0 20px 60px rgba(2,6,23,.08);--tw-shadow-colored: 0 20px 60px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-shadow-inner[_ngcontent-%COMP%]{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-shadow-lg[_ngcontent-%COMP%]{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-sha
1dow)}.pp-shadow-md[_ngcontent-%COMP%]{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-shadow-sm[_ngcontent-%COMP%]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pp-outline-none[_ngcontent-%COMP%]{outline:2px solid transparent;outline-offset:2px}.pp-transition[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pp-transition-all[_ngcontent-%COMP%]{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pp-transition-colors[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pp-transition-transform[_ngcontent-%COMP%]{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pp-duration-0[_ngcontent-%COMP%]{transition-duration:0s}.file\\:pp-mr-4[_ngcontent-%COMP%]::file-selector-button{margin-right:1rem}.file\\:pp-rounded-full[_ngcontent-%COMP%]::file-selector-button{border-radius:9999px}.file\\:pp-border-0[_ngcontent-%COMP%]::file-selector-button{border-width:0px}.file\\:pp-bg-blue-50[_ngcontent-%COMP%]::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.file\\:pp-px-4[_ngcontent-%COMP%]::file-selector-button{padding-left:1rem;padding-right:1rem}.file\\:pp-py-2[_ngcontent-%COMP%]::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\\:pp-text-sm[_ngcontent-%COMP%]::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:pp-font-semibold[_ngcontent-%COMP%]::file-selector-button{font-weight:600}.file\\:pp-text-blue-700[_ngcontent-%COMP%]::file-selector-button{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.after\\:pp-absolute[_ngcontent-%COMP%]:after{content:var(--tw-content);position:absolute}.after\\:pp-bottom-0[_ngcontent-%COMP%]:after{content:var(--tw-content);bottom:0}.after\\:pp-left-0[_ngcontent-%COMP%]:after{content:var(--tw-content);left:0}.after\\:pp-right-0[_ngcontent-%COMP%]:after{content:var(--tw-content);right:0}.after\\:pp-h-0\\.5[_ngcontent-%COMP%]:after{content:var(--tw-content);height:.125rem}.after\\:pp-bg-\\__ph-0__[_ngcontent-%COMP%]:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(22 191 94 / var(--tw-bg-opacity, 1))}.even\\:pp-bg-slate-50[_ngcontent-%COMP%]:nth-child(even){--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.hover\\:pp--translate-y-1[_ngcontent-%COMP%]:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:pp-bg-\\__ph-0__[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(22 191 94 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-gray-100[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-gray-800[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-sky-700[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-slate-200[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.hover\\:pp-bg-slate-50[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.hover\\:pp-text-red-800[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.hover\\:pp-text-slate-800[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.hover\\:pp-text-slate-900[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.hover\\:pp-text-white[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:pp-underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}.hover\\:pp-opacity-90[_ngcontent-%COMP%]:hover{opacity:.9}.hover\\:pp-shadow-lg[_ngcontent-%COMP%]:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:pp-shadow-md[_ngcontent-%COMP%]:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:file\\:pp-bg-blue-100[_ngcontent-%COMP%]::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.focus\\:pp-border-blue-500[_ngcontent-%COMP%]:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\\:pp-bg-\\__ph-0__\\/15[_ngcontent-%COMP%]:focus{background-color:#16bf5e26}.focus\\:pp-outline-none[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:pp-ring-blue-500[_ngcontent-%COMP%]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.disabled\\:pp-cursor-not-allowed[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.disabled\\:pp-opacity-50[_ngcontent-%COMP%]:disabled{opacity:.5}@media (min-width: 640px){.sm\\:pp-grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:pp-text-base[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem}.sm\\:pp-text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.sm\\:pp-text-xl[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\\:pp-my-3[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem}.md\\:pp-grid-cols-1[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}.md\\:pp-grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:pp-grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:pp-gap-3[_ngcontent-%COMP%]{gap:.75rem}.md\\:pp-px-3[_ngcontent-%COMP%]{padding-left:.75rem;padding-right:.75rem}.md\\:pp-text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.md\\:pp-text-\\__ph-0__[_ngcontent-%COMP%]{font-size:15px}.md\\:pp-text-xs[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem}}@media (min-width: 1024px){.lg\\:pp-grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:pp-grid-cols-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}',"[_nghost-%COMP%]     .reactflow-wrapper{width:100%;height:100%;overflow:visible}[_nghost-%COMP%]     .react-flow__node{visibility:visible!important}[_nghost-%COMP%]     .react-flow__node-custom{font-size:10px;width:180px;background:#f5f5f6;color:#222;box-shadow:0 4px 6px -1px #00000026,0 2px 4px -1px #00000014;border-radius:2px}[_nghost-%COMP%]     .react-flow__node-custom .react-flow__handle{top:24px;right:-15px;width:6px;height:10px;border-radius:2px;background-color:#789}[_nghost-%COMP%]     .react-flow__node.circle{border-radius:50%;width:60px;height:60px;display:flex;justify-content:center;align-items:center;font-weight:700}[_nghost-%COMP%]     .react-flow__node.annotation{border-radius:0;text-align:left;background:white;border:none;line-height:1.4;width:225px;box-shadow:0 4px 6px -1px #00000026,0 2px 4px -1px #00000014}[_nghost-%COMP%]     .react-flow__node.annotation .react-flow__handle{display:none}[_nghost-%COMP%]     .custom-node__header{padding:8px 10px;border-bottom:1px solid #e2e8f0}[_nghost-%COMP%]     .custom-node__body{padding:10px}[_nghost-%COMP%]     .custom-node__select{position:relative;margin-bottom:10px}[_nghost-%COMP%]     .custom-node__select select{width:100%;margin-top:5px;font-size:10px}.edge-type-dialog[_ngcontent-%COMP%]   .p-dialog[_ngcontent-%COMP%]{z-index:1001!important}.edge-type-dialog[_ngcontent-%COMP%]   .p-dialog-content[_ngcontent-%COMP%]{overflow:visible!important}.p-dropdown-panel[_ngcontent-%COMP%]{z-index:1100!important;position:fixed!important}.p-dropdown[_ngcontent-%COMP%]   .p-dropdown-trigger[_ngcontent-%COMP%]{pointer-events:all!important}.nodrag[_ngcontent-%COMP%]   .react-flow__edge[_ngcontent-%COMP%]{cursor:pointer}.nodrag[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:red;font-size:14px;font-weight:700}"],changeDetection:0}),t})();var i0=P1(91172);const o0=[{path:"",component:h3},{path:"overview/:id",component:g6,pathMatch:"full"},{path:"diagram/:id",component:S6},{path:":actionType/:id",component:z1},{path:":actionType",component:z1}];let s0=(()=>{const M=class{};let t=M;return M.\u0275fac=function(n){return new(n||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({providers:[B2.ez,B2.YP,X3.xA],imports:[v2.ez,m2.Bz.forChild(o0),s2.P4,s4.U$,Q4.hJ,I4.j,N1.u5,N1.UX,b3.cc,f4.LU,_4.nD,S4.kW,P4.A,K4.L$,$4.S,$2.Tx,y3.Ps,K3.KZ,X4.EV,t3.D,L3.q4,A3.Nh,z4.T5,H3.V,w4.Cq,j1.xc,$3.d,F3.Gg,P3.z8,S6,i0.q]}),t})()},30813:(W4,o4,P1)=>{var v2,m2;v2=function(){"use strict";function s2(a){return(s2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(a)}
1!function(a){if("object"!==s2(a.console)){a.console={};for(var i,d,u=a.console,s=function(){},h=["memory"],f="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");i=h.pop();)u[i]||(u[i]={});for(;d=f.pop();)u[d]||(u[d]=s)}var z,p,k,G,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===a.btoa&&(a.btoa=function(l){var _,x,A,V,T,J=0,$=0,K="",h1=[];if(!l)return l;for(;_=(T=l.charCodeAt(J++)<<16|l.charCodeAt(J++)<<8|l.charCodeAt(J++))>>18&63,x=T>>12&63,A=T>>6&63,V=63&T,h1[$++]=Q.charAt(_)+Q.charAt(x)+Q.charAt(A)+Q.charAt(V),J<l.length;);K=h1.join("");var l1=l.length%3;return(l1?K.slice(0,l1-3):K)+"===".slice(l1||3)}),void 0===a.atob&&(a.atob=function(l){var _,x,A,V,T,J,$=0,K=0,h1=[];if(!l)return l;for(l+="";_=(J=Q.indexOf(l.charAt($++))<<18|Q.indexOf(l.charAt($++))<<12|(V=Q.indexOf(l.charAt($++)))<<6|(T=Q.indexOf(l.charAt($++))))>>16&255,x=J>>8&255,A=255&J,h1[K++]=64==V?String.fromCharCode(_):64==T?String.fromCharCode(_,x):String.fromCharCode(_,x,A),$<l.length;);return h1.join("")}),Array.prototype.map||(Array.prototype.map=function(l){if(null==this||"function"!=typeof l)throw new TypeError;for(var _=Object(this),x=_.length>>>0,A=new Array(x),V=1<arguments.length?arguments[1]:void 0,T=0;T<x;T++)T in _&&(A[T]=l.call(V,_[T],T,_));return A}),Array.isArray||(Array.isArray=function(l){return"[object Array]"===Object.prototype.toString.call(l)}),Array.prototype.forEach||(Array.prototype.forEach=function(l,_){if(null==this||"function"!=typeof l)throw new TypeError;for(var x=Object(this),A=x.length>>>0,V=0;V<A;V++)V in x&&l.call(_,x[V],V,x)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(null==this)throw new TypeError('"this" is null or not defined');var _=Object(this),x=_.length>>>0;if("function"!=typeof l)throw new TypeError("predicate must be a function");for(var A=arguments[1],V=0;V<x;){var T=_[V];if(l.call(A,T,V,_))return T;V++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(z=Object.prototype.hasOwnProperty,p=!{toString:null}.propertyIsEnumerable("toString"),G=(k=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(l){if("object"!==s2(l)&&("function"!=typeof l||null===l))throw new TypeError;var _,x,A=[];for(_ in l)z.call(l,_)&&A.push(_);if(p)for(x=0;x<G;x++)z.call(l,k[x])&&A.push(k[x]);return A})),"function"!=typeof Object.assign&&(Object.assign=function(l){if(null==l)throw new TypeError("Cannot convert undefined or null to object");l=Object(l);for(var _=1;_<arguments.length;_++){var x=arguments[_];if(null!=x)for(var A in x)Object.prototype.hasOwnProperty.call(x,A)&&(l[A]=x[A])}return l}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(l){return"number"==typeof l&&isFinite(l)&&Math.floor(l)===l}}(typeof self<"u"&&self||typeof window<"u"&&window||typeof global<"u"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var s4,Q4,I4,N1,b3,f4,_4,S4,P4,K4,$4,y3,K3,X4,t3,L3,A3,z4,H3,w4,$2,j1,B2,$3,X3,F3,f2,I3,e3,c3,t2,t6,a2,X1,e,M4,S3,x6,e6,x4,V4,n3,a3,B4,r3,N4,c6,C4,P3,n6,A2,N2,a6,r6,V3,i3,o3,B3,O4,s3,l3,$1=function(a){function i(u){if("object"!==s2(u))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var s={};this.subscribe=function(h,f,z){if(z=z||!1,"string"!=typeof h||"function"!=typeof f||"boolean"!=typeof z)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");s.hasOwnProperty(h)||(s[h]={});var p=Math.random().toString(35);return s[h][p]=[f,!!z],p},this.unsubscribe=function(h){for(var f in s)if(s[f][h])return delete s[f][h],0===Object.keys(s[f]).length&&delete s[f],!0;return!1},this.publish=function(h){if(s.hasOwnProperty(h)){var f=Array.prototype.slice.call(arguments,1
1),z=[];for(var p in s[h]){var k=s[h][p];try{k[0].apply(u,f)}catch(G){a.console&&console.error("jsPDF PubSub Error",G.message,G)}k[1]&&z.push(p)}z.length&&z.forEach(this.unsubscribe)}},this.getTopics=function(){return s}}function d(u,s,h,f){var z={},p=[],k=1;"object"===s2(u)&&(u=(z=u).orientation,s=z.unit||s,h=z.format||h,f=z.compress||z.compressPdf||f,p=z.filters||(!0===f?["FlateEncode"]:p),k="number"==typeof z.userUnit?Math.abs(z.userUnit):1),s=s||"mm",u=(""+(u||"P")).toLowerCase();var G=z.putOnlyUsedFonts||!0,Q={},l={internal:{},__private__:{}};l.__private__.PubSub=i;var _="1.3",x=l.__private__.getPdfVersion=function(){return _},A=(l.__private__.setPdfVersion=function(g){_=g},{a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]}),V=(l.__private__.getPageFormats=function(){return A},l.__private__.getPageFormat=function(g){return A[g]});"string"==typeof h&&(h=V(h)),h=h||V("a4");var T,J=l.f2=l.__private__.f2=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f2");return g.toFixed(2)},$=l.__private__.f3=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f3");return g.toFixed(3)},K="00000000000000000000000000000000",h1=l.__private__.getFileId=function(){return K},l1=l.__private__.setFileId=function(g){return g=g||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),K=g};l.setFileId=function(g){return l1(g),this},l.getFileId=function(){return h1()};var q=l.__private__.convertDateToPDFDate=function(g){var j=g.getTimezoneOffset(),a1=j<0?"+":"-",g1=Math.floor(Math.abs(j/60)),z1=Math.abs(j%60),H1=[a1,r(g1),"'",r(z1),"'"].join("");return["D:",g.getFullYear(),r(g.getMonth()+1),r(g.getDate()),r(g.getHours()),r(g.getMinutes()),r(g.getSeconds()),H1].join("")},y=l.__private__.convertPDFDateToDate=function(g){var j=parseInt(g.substr(2,4),10),a1=parseInt(g.substr(6,2),10)-1,g1=parseInt(g.substr(8,2),10),z1=parseInt(g.substr(10,2),10),H1=parseInt(g.substr(12,2),10),T1=parseInt(g.substr(14,2),10);return parseInt(g.substr(16,2),10),parseInt(g.substr(20,2),10),new Date(j,a1,g1,z1,H1,T1,0)},X=l.__private__.setCreationDate=function(g){var j;if(void 0===g&&(g=new Date),"object"===s2(g)&&"[object Date]"===Object.prototype.toString.call(g))j=q(g);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|\-0[0-9]|\-1[0-1])\'(0[0-9]|[1-5][0-9])\'?$/.test(g))throw new Error("Invalid argument passed to jsPDF.setCreationDate");j=g}return T=j},N=l.__private__.getCreationDate=function(g){var j=T;return"jsDate"===g&&(j=y(T)),j};l.setCreationDate=function(g){return X(g),this},l.getCreationDate=function(g){return N(g)};var I,D,Y,R,P,v,b,S,r=l.__private__.padd2=function(g){return("0"+parseInt(g)).slice(-2)},w=!1,L=[],F=[],O=0,C=(l.__private__.setCustomOutputDestination=function(g){D=g},l.__private__.resetCustomOutputDestination=function(g){D=void 0},l.__private__.out=function(g){var j;return g="string"==typeof g?g:g.toString(),(j=void 0===D?w?L[I]:F:D).push(g),w||(O+=g.length+1),j}),W=l.__private__.write=function(g){return C(1===arguments.length?g.toString():Array.prototype.join.call(arguments," "))},e1=l.__private__.getArrayBuffer=function(g){for(var j=g.length,a1=new ArrayBuffer(j),g1=new Uint8Array(a1);j--;)g1[j]=g.charCodeAt(j);return a1},s1=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]],u1=(l.__private__.getStandardFonts=function(g){return s1},z.fontSize||16),r1=(l.__private__.setFontSize=l.setFontSize=function(g){return u1=g,this},l.__private__.getFontSize=l.getFontSize=function(){return u1}),m1=z.R2L||!1,o1=(l.__private__.setR2L=l.setR2L=function(g){return m1=g,this},l.__private__.getR2L=l.getR2L=function(g){return m1},l.__private__.setZoomMode=function(g){if(/^\d*\.?\d*\%$/.test(g))Y=g;else if(isNaN(g)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(g))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+g+'" is not recognized.');Y=g}else Y=parseInt(g,10)}),M1=(l.__private__.getZoomMode=function(){return Y},l.__private__.setPageMode=function(g){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(g))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+g+'" is not recognized.');R=g}),H=(l.__private__.getPageMode=function(){return R},l.__private__.setLayoutMode=function(g){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(g))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+g+'" is not recognized.');P=g}),Z=(l.__private__.getLayoutMode=function(){return P},l.__private__.setDisplayMode=l.setDisplayMode=function(g,j,a1){return o1(g),H(j),M1(a1),this},{title:"",subject:"",author:"",keywords:"",creator:""}),B=(l.__private__.getDocumentProperty=function(g){if(-1===Object.keys(Z).indexOf(g))throw new Error("Invalid argument passed to 
1jsPDF.getDocumentProperty");return Z[g]},l.__private__.getDocumentProperties=function(g){return Z},l.__private__.setDocumentProperties=l.setProperties=l.setDocumentProperties=function(g){for(var j in Z)Z.hasOwnProperty(j)&&g[j]&&(Z[j]=g[j]);return this},l.__private__.setDocumentProperty=function(g,j){if(-1===Object.keys(Z).indexOf(g))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Z[g]=j},0),E=[],c1={},i1={},_1=0,d1=[],U1=[],V1=new i(l),E1=z.hotfixes||[],S1=l.__private__.newObject=function(){var g=O1();return G1(g,!0),g},O1=l.__private__.newObjectDeferred=function(){return E[++B]=function(){return O},B},G1=function(g,j){return j="boolean"==typeof j&&j,E[g]=O,j&&C(g+" 0 obj"),g},Q1=l.__private__.newAdditionalObject=function(){var g={objId:O1(),content:""};return U1.push(g),g},e2=O1(),D1=O1(),f1=l.__private__.decodeColorString=function(g){var j=g.split(" ");if(2===j.length&&("g"===j[1]||"G"===j[1])){var a1=parseFloat(j[0]);j=[a1,a1,a1,"r"]}for(var g1="#",z1=0;z1<3;z1++)g1+=("0"+Math.floor(255*parseFloat(j[z1])).toString(16)).slice(-2);return g1},k1=l.__private__.encodeColorString=function(g){var j;"string"==typeof g&&(g={ch1:g});var a1=g.ch1,g1=g.ch2,z1=g.ch3,H1=g.ch4,T1="draw"===g.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof a1&&"#"!==a1.charAt(0)){var Y1=new RGBColor(a1);if(Y1.ok)a1=Y1.toHex();else if(!/^\d*\.?\d*$/.test(a1))throw new Error('Invalid color "'+a1+'" passed to jsPDF.encodeColorString.')}if("string"==typeof a1&&/^#[0-9A-Fa-f]{3}$/.test(a1)&&(a1="#"+a1[1]+a1[1]+a1[2]+a1[2]+a1[3]+a1[3]),"string"==typeof a1&&/^#[0-9A-Fa-f]{6}$/.test(a1)){var n2=parseInt(a1.substr(1),16);a1=n2>>16&255,g1=n2>>8&255,z1=255&n2}if(void 0===g1||void 0===H1&&a1===g1&&g1===z1)j="string"==typeof a1?a1+" "+T1[0]:2===g.precision?J(a1/255)+" "+T1[0]:$(a1/255)+" "+T1[0];else if(void 0===H1||"object"===s2(H1)){if(H1&&!isNaN(H1.a)&&0===H1.a)return["1.000","1.000","1.000",T1[1]].join(" ");j="string"==typeof a1?[a1,g1,z1,T1[1]].join(" "):2===g.precision?[J(a1/255),J(g1/255),J(z1/255),T1[1]].join(" "):[$(a1/255),$(g1/255),$(z1/255),T1[1]].join(" ")}else j="string"==typeof a1?[a1,g1,z1,H1,T1[2]].join(" "):2===g.precision?[J(a1/255),J(g1/255),J(z1/255),J(H1/255),T1[2]].join(" "):[$(a1/255),$(g1/255),$(z1/255),$(H1/255),T1[2]].join(" ");return j},C2=l.__private__.getFilters=function(){return p},b2=l.__private__.putStream=function(g){var T1,j=(g=g||{}).data||"",a1=g.filters||C2(),g1=g.alreadyAppliedFilters||[],z1=g.addLength1||!1,H1=j.length;!0===a1&&(a1=["FlateEncode"]);var Y1=g.additionalKeyValues||[],n2=(T1=void 0!==d.API.processDataByFilters?d.API.processDataByFilters(j,a1):{data:j,reverseChain:[]}).reverseChain+(Array.isArray(g1)?g1.join(" "):g1.toString());0!==T1.data.length&&(Y1.push({key:"Length",value:T1.data.length}),!0===z1&&Y1.push({key:"Length1",value:H1})),0!=n2.length&&(n2.split("/").length-1==1?Y1.push({key:"Filter",value:n2}):Y1.push({key:"Filter",value:"["+n2+"]"})),C("<<");for(var u2=0;u2<Y1.length;u2++)C("/"+Y1[u2].key+" "+Y1[u2].value);C(">>"),0!==T1.data.length&&(C("stream"),C(T1.data),C("endstream"))},G2=l.__private__.putPage=function(g){var j=g.number,a1=g.data,g1=g.objId,z1=g.contentsObjId;G1(g1,!0),C("<</Type /Page"),C("/Parent "+g.rootDictionaryObjId+" 0 R"),C("/Resources "+g.resourceDictionaryObjId+" 0 R"),C("/MediaBox ["+parseFloat(J(g.mediaBox.bottomLeftX))+" "+parseFloat(J(g.mediaBox.bottomLeftY))+" "+J(g.mediaBox.topRightX)+" "+J(g.mediaBox.topRightY)+"]"),null!==g.cropBox&&C("/CropBox ["+J(g.cropBox.bottomLeftX)+" "+J(g.cropBox.bottomLeftY)+" "+J(g.cropBox.topRightX)+" "+J(g.cropBox.topRightY)+"]"),null!==g.bleedBox&&C("/BleedBox ["+J(g.bleedBox.bottomLeftX)+" "+J(g.bleedBox.bottomLeftY)+" "+J(g.bleedBox.topRightX)+" "+J(g.bleedBox.topRightY)+"]"),null!==g.trimBox&&C("/TrimBox ["+J(g.trimBox.bottomLeftX)+" "+J(g.trimBox.bottomLeftY)+" "+J(g.trimBox.topRightX)+" "+J(g.trimBox.topRightY)+"]"),null!==g.artBox&&C("/ArtBox ["+J(g.artBox.bottomLeftX)+" "+J(g.artBox.bottomLeftY)+" "+J(g.artBox.topRightX)+" "+J(g.artBox.topRightY)+"]"),"number"==typeof g.userUnit&&1!==g.userUnit&&C("/UserUnit "+g.userUnit),V1.publish("putPage",{objId:g1,pageContext:d1[j],pageNumber:j,page:a1}),C("/Contents "+z1+" 0 R"),C(">>"),C("endobj");var H1=a1.join("\n");
1return G1(z1,!0),b2({data:H1,filters:C2()}),C("endobj"),g1},d2=l.__private__.putPages=function(){var g,j,a1=[];for(g=1;g<=_1;g++)d1[g].objId=O1(),d1[g].contentsObjId=O1();for(g=1;g<=_1;g++)a1.push(G2({number:g,data:L[g],objId:d1[g].objId,contentsObjId:d1[g].contentsObjId,mediaBox:d1[g].mediaBox,cropBox:d1[g].cropBox,bleedBox:d1[g].bleedBox,trimBox:d1[g].trimBox,artBox:d1[g].artBox,userUnit:d1[g].userUnit,rootDictionaryObjId:e2,resourceDictionaryObjId:D1}));G1(e2,!0),C("<</Type /Pages");var g1="/Kids [";for(j=0;j<_1;j++)g1+=a1[j]+" 0 R ";C(g1+"]"),C("/Count "+_1),C(">>"),C("endobj"),V1.publish("postPutPages")},y2=function(g,j,a1){i1.hasOwnProperty(j)||(i1[j]={}),i1[j][a1]=g},I2=function(g,j,a1,g1,z1){z1=z1||!1;var H1="F"+(Object.keys(c1).length+1).toString(10),T1={id:H1,postScriptName:g,fontName:j,fontStyle:a1,encoding:g1,isStandardFont:z1,metadata:{}};return V1.publish("addFont",{font:T1,instance:this}),void 0!==H1&&(c1[H1]=T1,y2(H1,j,a1)),H1},C1=l.__private__.pdfEscape=l.pdfEscape=function(g,j){return function(a1,g1){var z1,H1,T1,Y1,n2,u2,z2,w2,Y2;if(T1=(g1=g1||{}).sourceEncoding||"Unicode",n2=g1.outputEncoding,(g1.autoencode||n2)&&c1[v].metadata&&c1[v].metadata[T1]&&c1[v].metadata[T1].encoding&&(Y1=c1[v].metadata[T1].encoding,!n2&&c1[v].encoding&&(n2=c1[v].encoding),!n2&&Y1.codePages&&(n2=Y1.codePages[0]),"string"==typeof n2&&(n2=Y1[n2]),n2)){for(z2=!1,u2=[],z1=0,H1=a1.length;z1<H1;z1++)(w2=n2[a1.charCodeAt(z1)])?u2.push(String.fromCharCode(w2)):u2.push(a1[z1]),u2[z1].charCodeAt(0)>>8&&(z2=!0);a1=u2.join("")}for(z1=a1.length;void 0===z2&&0!==z1;)a1.charCodeAt(z1-1)>>8&&(z2=!0),z1--;if(!z2)return a1;for(u2=g1.noBOM?[]:[254,255],z1=0,H1=a1.length;z1<H1;z1++){if((Y2=(w2=a1.charCodeAt(z1))>>8)>>8)throw new Error("Character at position "+z1+" of string '"+a1+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");u2.push(Y2),u2.push(w2-(Y2<<8))}return String.fromCharCode.apply(void 0,u2)}(g,j).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},x1=l.__private__.beginPage=function(g,j){var a1,g1="string"==typeof j&&j.toLowerCase();if("string"==typeof g&&(a1=V(g.toLowerCase()))&&(g=a1[0],j=a1[1]),Array.isArray(g)&&(j=g[1],g=g[0]),(isNaN(g)||isNaN(j))&&(g=h[0],j=h[1]),g1){switch(g1.substr(0,1)){case"l":g<j&&(g1="s");break;case"p":j<g&&(g1="s")}"s"===g1&&(a1=g,g=j,j=a1)}(14400<g||14400<j)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),g=Math.min(14400,g),j=Math.min(14400,j)),h=[g,j],w=!0,L[++_1]=[],d1[_1]={objId:0,contentsObjId:0,userUnit:Number(k),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(g),topRightY:Number(j)}},y1(_1)},L1=function(){x1.apply(this,arguments),E4(L4),C(d4),0!==D3&&C(D3+" J"),0!==q3&&C(q3+" j"),V1.publish("addPage",{pageNumber:_1})},y1=function(g){0<g&&g<=_1&&(I=g)},b1=l.__private__.getNumberOfPages=l.getNumberOfPages=function(){return L.length-1},B1=function(g,j,a1){var g1,z1=void 0;return a1=a1||{},j=void 0!==j?j:c1[v].fontStyle,g1=(g=void 0!==g?g:c1[v].fontName).toLowerCase(),void 0!==i1[g1]&&void 0!==i1[g1][j]?z1=i1[g1][j]:void 0!==i1[g]&&void 0!==i1[g][j]?z1=i1[g][j]:!1===a1.disableWarning&&console.warn("Unable to look up font label for font '"+g+"', '"+j+"'. Refer to getFontList() for available fonts."),z1||a1.noFallback||null==(z1=i1.times[j])&&(z1=i1.times.normal),z1},Z1=l.__private__.putInfo=function(){for(var g in S1(),C("<<"),C("/Producer (jsPDF "+d.version+")"),Z)Z.hasOwnProperty(g)&&Z[g]&&C("/"+g.substr(0,1).toUpperCase()+g.substr(1)+" ("+C1(Z[g])+")");C("/CreationDate ("+T+")"),C(">>"),C("endobj")},p2=l.__private__.putCatalog=function(g){var j=(g=g||{}).rootDictionaryObjId||e2;switch(S1(),C("<<"),C("/Type /Catalog"),C("/Pages "+j+" 0 R"),Y||(Y="fullwidth"),Y){case"fullwidth":C("/OpenAction [3 0 R /FitH null]");break;case"fullheight":C("/OpenAction [3 0 R /FitV null]");break;case"fullpage":C("/OpenAction [3 0 R /Fit]");break;case"original":C("/OpenAction [3 0 R /XYZ null null 1]");break;default:var a1=""+Y;"%"===a1.substr(a1.length-1)&&(Y=parseInt(Y)/100),"number"==typeof Y&&C("/OpenAction [3 0 R /XYZ null null "+J(Y)+"]")}switch(P||(P="continuous"),P){case"continuous":C("/PageLayout /OneColumn");break;case"single":C("/PageLayout /SinglePage");break;case"two":case"twoleft":C("/PageLayout /TwoColumnLeft");break;case"tworight":C("/PageLayout /TwoColumnRight")}R&&C("/PageMode /"+R),V1.publish("putCatalog"),C(">>"),C("endobj")},c2=l.__private__.putTrailer=function(){C("trailer"),C("<<"),C("/Size "+(B+1)),C("/Ro
1ot "+B+" 0 R"),C("/Info "+(B-1)+" 0 R"),C("/ID [ <"+K+"> <"+K+"> ]"),C(">>")},r2=l.__private__.putHeader=function(){C("%PDF-"+_),C("%\xba\xdf\xac\xe0")},_2=l.__private__.putXRef=function(){var g=1,j="0000000000";for(C("xref"),C("0 "+(B+1)),C("0000000000 65535 f "),g=1;g<=B;g++)C("function"==typeof E[g]?(j+E[g]()).slice(-10)+" 00000 n ":void 0!==E[g]?(j+E[g]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},F2=l.__private__.buildDocument=function(){w=!1,O=B=0,F=[],E=[],U1=[],e2=O1(),D1=O1(),V1.publish("buildDocument"),r2(),d2(),function(){V1.publish("putAdditionalObjects");for(var j=0;j<U1.length;j++){var a1=U1[j];G1(a1.objId,!0),C(a1.content),C("endobj")}V1.publish("postPutAdditionalObjects")}(),function(){for(var g in c1)c1.hasOwnProperty(g)&&(!1===G||!0===G&&Q.hasOwnProperty(g))&&(V1.publish("putFont",{font:j=c1[g],out:C,newObject:S1,putStream:b2}),!0!==j.isAlreadyPutted&&(j.objectNumber=S1(),C("<<"),C("/Type /Font"),C("/BaseFont /"+j.postScriptName),C("/Subtype /Type1"),"string"==typeof j.encoding&&C("/Encoding /"+j.encoding),C("/FirstChar 32"),C("/LastChar 255"),C(">>"),C("endobj")));var j}(),V1.publish("putResources"),G1(D1,!0),C("<<"),function(){for(var g in C("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),C("/Font <<"),c1)c1.hasOwnProperty(g)&&(!1===G||!0===G&&Q.hasOwnProperty(g))&&C("/"+g+" "+c1[g].objectNumber+" 0 R");C(">>"),C("/XObject <<"),V1.publish("putXobjectDict"),C(">>")}(),C(">>"),C("endobj"),V1.publish("postPutResources"),Z1(),p2();var g=O;return _2(),c2(),C("startxref"),C(""+g),C("%%EOF"),w=!0,F.join("\n")},h4=l.__private__.getBlob=function(g){return new Blob([e1(g)],{type:"application/pdf"})},Z4=l.output=l.__private__.output=((S=function(g,j){j=j||{};var a1=F2();switch("string"==typeof j?j={filename:j}:j.filename=j.filename||"generated.pdf",g){case void 0:return a1;case"save":l.save(j.filename);break;case"arraybuffer":return e1(a1);case"blob":return h4(a1);case"bloburi":case"bloburl":if(void 0!==a.URL&&"function"==typeof a.URL.createObjectURL)return a.URL&&a.URL.createObjectURL(h4(a1))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+j.filename+";base64,"+btoa(a1);case"dataurlnewwindow":var g1='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',z1=a.open();if(null!==z1&&z1.document.write(g1),z1||typeof safari>"u")return z1;case"datauri":case"dataurl":return a.document.location.href="data:application/pdf;filename="+j.filename+";base64,"+btoa(a1);default:return null}}).foo=function(){try{return S.apply(this,arguments)}catch(a1){var g=a1.stack||"";~g.indexOf(" at ")&&(g=g.split(" at ")[1]);var j="Error in function "+g.split("\n")[0].split("<")[0]+": "+a1.message;if(!a.console)throw new Error(j);a.console.error(j,a1),a.alert&&alert(j)}},(S.foo.bar=S).foo),q2=function(g){return!0===Array.isArray(E1)&&-1<E1.indexOf(g)};switch(s){case"pt":b=1;break;case"mm":b=72/25.4;break;case"cm":b=72/2.54;break;case"in":b=72;break;case"px":b=1==q2("px_scaling")?.75:96/72;break;case"pc":case"em":b=12;break;case"ex":b=6;break;default:throw new Error("Invalid unit: "+s)}X(),l1();var U4=l.__private__.getPageInfo=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:d1[g].objId,pageNumber:g,pageContext:d1[g]}},d3=l.__private__.getPageInfoByObjId=function(g){for(var j in d1)if(d1[j].objId===g)break;if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return U4(j)},p3=l.__private__.getCurrentPageInfo=function(){return{objId:d1[I].objId,pageNumber:I,pageContext:d1[I]}};l.addPage=function(){return L1.apply(this,arguments),this},l.setPage=function(){return y1.apply(this,arguments),this},l.insertPage=function(g){return this.addPage(),this.movePage(I,g),this},l.movePage=function(g,j){if(j<g){for(var a1=L[g],g1=d1[g],z1=g;j<z1;z1--)L[z1]=L[z1-1],d1[z1]=d1[z1-1];L[j]=a1,d1[j]=g1,this.setPage(j)}else if(g<j){for(a1=L[g],g1=d1[g],z1=g;z1<j;z1++)L[z1]=L[z1+1],d1[z1]=d1[z1+1];L[j]=a1,d1[j]=g1,this.setPage(j)}return this},l.deletePage=function(){return function(g){0<g&&g<=_1&&(L.splice(g,1),--_1<I&&(I=_1),this.setPage(I))}.apply(this,arguments),this},l.__private__.text=l.text=function(g,j,a1,g1){var z1;"number"!=typeof g||"number"!=typeof j||"string"!=typeof a1&&!Array.isArray(a1)||(z1=a1,a1=j,j=g,g
1=z1);var H1=arguments[3],T1=arguments[4],Y1=arguments[5];if("object"===s2(H1)&&null!==H1||("string"==typeof T1&&(Y1=T1,T1=null),"string"==typeof H1&&(Y1=H1,H1=null),"number"==typeof H1&&(T1=H1,H1=null),g1={flags:H1,angle:T1,align:Y1}),(H1=H1||{}).noBOM=H1.noBOM||!0,H1.autoencode=H1.autoencode||!0,isNaN(j)||isNaN(a1)||null==g)throw new Error("Invalid arguments passed to jsPDF.text");if(0===g.length)return w2;var n2,u2="",z2="number"==typeof g1.lineHeightFactor?g1.lineHeightFactor:E2,w2=g1.scope||this;function Y2(U2){for(var V2,W2=U2.concat(),L2=[],j4=W2.length;j4--;)"string"==typeof(V2=W2.shift())?L2.push(V2):Array.isArray(U2)&&1===V2.length?L2.push(V2[0]):L2.push([V2[0],V2[1],V2[2]]);return L2}function D4(U2,V2){var W2;if("string"==typeof U2)W2=V2(U2)[0];else if(Array.isArray(U2)){for(var L2,j4,A6=U2.concat(),_6=[],F6=A6.length;F6--;)"string"==typeof(L2=A6.shift())?_6.push(V2(L2)[0]):Array.isArray(L2)&&"string"===L2[0]&&(j4=V2(L2[0],L2[1],L2[2]),_6.push([j4[0],j4[1],j4[2]]));W2=_6}return W2}var H4=!1,T2=!0;if("string"==typeof g)H4=!0;else if(Array.isArray(g)){for(var S2,q4=g.concat(),M2=[],Z2=q4.length;Z2--;)("string"!=typeof(S2=q4.shift())||Array.isArray(S2)&&"string"!=typeof S2[0])&&(T2=!1);H4=T2}if(!1===H4)throw new Error('Type of text must be string or Array. "'+g+'" is not recognized.');var g6=c1[v].encoding;"WinAnsiEncoding"!==g6&&"StandardEncoding"!==g6||(g=D4(g,function(U2,V2,W2){return[(L2=U2,L2=L2.split("\t").join(Array(g1.TabLen||9).join(" ")),C1(L2,H1)),V2,W2];var L2})),"string"==typeof g&&(g=g.match(/[\r?\n]/)?g.split(/\r\n|\r|\n/g):[g]);var _3=u1/w2.internal.scaleFactor,z3=_3*(E2-1);switch(g1.baseline){case"bottom":a1-=z3;break;case"top":a1+=_3-z3;break;case"hanging":a1+=_3-2*z3;break;case"middle":a1+=_3/2-z3}0<(p4=g1.maxWidth||0)&&("string"==typeof g?g=w2.splitTextToSize(g,p4):"[object Array]"===Object.prototype.toString.call(g)&&(g=w2.splitTextToSize(g.join(" "),p4)));var P2={text:g,x:j,y:a1,options:g1,mutex:{pdfEscape:C1,activeFontKey:v,fonts:c1,activeFontSize:u1}};V1.publish("preProcessText",P2),g=P2.text,T1=(g1=P2.options).angle;var F4=w2.internal.scaleFactor,R3=[];if(T1){T1*=Math.PI/180;var l2=Math.cos(T1),e4=Math.sin(T1);R3=[J(l2),J(e4),J(-1*e4),J(l2)]}void 0!==(R2=g1.charSpace)&&(u2+=$(R2*F4)+" Tc\n");var h2=-1,v6=void 0!==g1.renderingMode?g1.renderingMode:g1.stroke,p1=w2.internal.getCurrentPageInfo().pageContext;switch(v6){case 0:case!1:case"fill":h2=0;break;case 1:case!0:case"stroke":h2=1;break;case 2:case"fillThenStroke":h2=2;break;case 3:case"invisible":h2=3;break;case 4:case"fillAndAddForClipping":h2=4;break;case 5:case"strokeAndAddPathForClipping":h2=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":h2=6;break;case 7:case"addToPathForClipping":h2=7}-1!==h2?u2+=h2+" Tr\n":-1!==(void 0!==p1.usedRenderingMode?p1.usedRenderingMode:-1)&&(u2+="0 Tr\n"),-1!==h2&&(p1.usedRenderingMode=h2),Y1=g1.align||"left";var j3=u1*z2,u6=w2.internal.pageSize.getWidth(),m6=(F4=w2.internal.scaleFactor,c1[v]),R2=g1.charSpace||E3,p4=g1.maxWidth||0,R4=(H1={},[]);if("[object Array]"===Object.prototype.toString.call(g)){var x2,D2;M2=Y2(g),"left"!==Y1&&(D2=M2.map(function(U2){return w2.getStringUnitWidth(U2,{font:m6,charSpace:R2,fontSize:u1})*u1/F4})),Math.max.apply(Math,D2);var n4,J3=0;if("right"===Y1){j-=D2[0],g=[];var J1=0;for(Z2=M2.length;J1<Z2;J1++)x2=0===J1?(n4=i2(j),o2(a1)):(n4=(J3-D2[J1])*F4,-j3),g.push([M2[J1],n4,x2]),J3=D2[J1]}else if("center"===Y1)for(j-=D2[0]/2,g=[],J1=0,Z2=M2.length;J1<Z2;J1++)x2=0===J1?(n4=i2(j),o2(a1)):(n4=(J3-D2[J1])/2*F4,-j3),g.push([M2[J1],n4,x2]),J3=D2[J1];else if("left"===Y1)for(g=[],J1=0,Z2=M2.length;J1<Z2;J1++)x2=0===J1?o2(a1):-j3,n4=0===J1?i2(j):0,g.push(M2[J1]);else{if("justify"!==Y1)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(g=[],p4=0!==p4?p4:u6,J1=0,Z2=M2.length;J1<Z2;J1++)x2=0===J1?o2(a1):-j3,n4=0===J1?i2(j):0,J1<Z2-1&&R4.push(((p4-D2[J1])/(M2[J1].split(" ").length-1)*F4).toFixed(2)),g.push([M2[J1],n4,x2])}}!0===("boolean"==typeof g1.R2L?g1.R2L:m1)&&(g=D4(g,function(U2,V2,W2){return[U2.split("").reverse().join(""),V2,W2]})),V1.publish("postProcessText",P2={text:g,x:j,y:a1,options:g1,mutex:{pdfEscape:C1,activeFontKey:v,fonts:c1,activeFontSize:u1}}),n2=P2.mutex.isHex,M2=Y2(g=P2.text),g=[];var Y3,W3,w3,Q3=0,M3=(Z2=M2.length,"");for(J1=0;J1<Z2;J1++)M3="",Array.isArray(M2[J1])?(Y3=parseFloat(M2[J1][1]),W3=parseFloat(M2[J1][2]),w3=(n2?"<":"(")+M2[J1][0]+(n2?">":")"),Q3=1):(Y3=i2(j),W3=o2(a1),w3=(n2?"<":"(")+M2[J1]+(n2?">":")")),void 0!==R4&&void 0!==R4[J1]&&(M3=R4[J1]+" Tw\n"),g.push(0!==R3.length&&0===J1?M3+R3.join(" ")+" "+Y3.toFixed(2)+" "+W3.toFixed(2)+" Tm\n"+w3:1===Q3||0===Q3&&0===J1?M3+Y3.toFixed(2)+" "+W3.toFixed(2)+" Td\n"+w3:M3+w3);g=g.join(0===Q3?" Tj\nT* ":" Tj\n"),g+=" Tj\n";var f6="BT\n/"+v+" "+u1+" Tf\n"+(u1*z2).toFixed(2)+" TL\n"+U3+"\n";return f6+=u2,f6+=g,C(f6+="ET"),Q[v]=!0,w2},l.__private__.lstext=l.lstext=function(g,j,a1,g1){return console.warn("jsPDF.lstext is deprecated"),this.text(g,j,a1,{charSpace:g1})},l.__private__.clip=l.clip=function(g){C("evenodd"===g?"W*":"W"),C("n")}
1,l.__private__.clip_fixed=l.clip_fixed=function(g){console.log("clip_fixed is deprecated"),l.clip(g)};var J2=l.__private__.isValidStyle=function(g){var j=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(g)&&(j=!0),j},y4=l.__private__.getStyle=function(g){var j="S";return"F"===g?j="f":"FD"===g||"DF"===g?j="B":"f"!==g&&"f*"!==g&&"B"!==g&&"B*"!==g||(j=g),j};l.__private__.line=l.line=function(g,j,a1,g1){if(isNaN(g)||isNaN(j)||isNaN(a1)||isNaN(g1))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[a1-g,g1-j]],g,j)},l.__private__.lines=l.lines=function(g,j,a1,g1,z1,H1){var T1,Y1,n2,u2,z2,w2,Y2,D4,H4,T2,S2,q4;if("number"==typeof g&&(q4=a1,a1=j,j=g,g=q4),g1=g1||[1,1],H1=H1||!1,isNaN(j)||isNaN(a1)||!Array.isArray(g)||!Array.isArray(g1)||!J2(z1)||"boolean"!=typeof H1)throw new Error("Invalid arguments passed to jsPDF.lines");for(C($(i2(j))+" "+$(o2(a1))+" m "),T1=g1[0],Y1=g1[1],u2=g.length,T2=j,S2=a1,n2=0;n2<u2;n2++)2===(z2=g[n2]).length?(S2=z2[1]*Y1+S2,C($(i2(T2=z2[0]*T1+T2))+" "+$(o2(S2))+" l")):(w2=z2[0]*T1+T2,Y2=z2[1]*Y1+S2,D4=z2[2]*T1+T2,H4=z2[3]*Y1+S2,T2=z2[4]*T1+T2,S2=z2[5]*Y1+S2,C($(i2(w2))+" "+$(o2(Y2))+" "+$(i2(D4))+" "+$(o2(H4))+" "+$(i2(T2))+" "+$(o2(S2))+" c"));return H1&&C(" h"),null!==z1&&C(y4(z1)),this},l.__private__.rect=l.rect=function(g,j,a1,g1,z1){if(isNaN(g)||isNaN(j)||isNaN(a1)||isNaN(g1)||!J2(z1))throw new Error("Invalid arguments passed to jsPDF.rect");return C([J(i2(g)),J(o2(j)),J(a1*b),J(-g1*b),"re"].join(" ")),null!==z1&&C(y4(z1)),this},l.__private__.triangle=l.triangle=function(g,j,a1,g1,z1,H1,T1){if(isNaN(g)||isNaN(j)||isNaN(a1)||isNaN(g1)||isNaN(z1)||isNaN(H1)||!J2(T1))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[a1-g,g1-j],[z1-a1,H1-g1],[g-z1,j-H1]],g,j,[1,1],T1,!0),this},l.__private__.roundedRect=l.roundedRect=function(g,j,a1,g1,z1,H1,T1){if(isNaN(g)||isNaN(j)||isNaN(a1)||isNaN(g1)||isNaN(z1)||isNaN(H1)||!J2(T1))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Y1=4/3*(Math.SQRT2-1);return this.lines([[a1-2*z1,0],[z1*Y1,0,z1,H1-H1*Y1,z1,H1],[0,g1-2*H1],[0,H1*Y1,-z1*Y1,H1,-z1,H1],[2*z1-a1,0],[-z1*Y1,0,-z1,-H1*Y1,-z1,-H1],[0,2*H1-g1],[0,-H1*Y1,z1*Y1,-H1,z1,-H1]],g+z1,j,[1,1],T1),this},l.__private__.ellipse=l.ellipse=function(g,j,a1,g1,z1){if(isNaN(g)||isNaN(j)||isNaN(a1)||isNaN(g1)||!J2(z1))throw new Error("Invalid arguments passed to jsPDF.ellipse");var H1=4/3*(Math.SQRT2-1)*a1,T1=4/3*(Math.SQRT2-1)*g1;return C([J(i2(g+a1)),J(o2(j)),"m",J(i2(g+a1)),J(o2(j-T1)),J(i2(g+H1)),J(o2(j-g1)),J(i2(g)),J(o2(j-g1)),"c"].join(" ")),C([J(i2(g-H1)),J(o2(j-g1)),J(i2(g-a1)),J(o2(j-T1)),J(i2(g-a1)),J(o2(j)),"c"].join(" ")),C([J(i2(g-a1)),J(o2(j+T1)),J(i2(g-H1)),J(o2(j+g1)),J(i2(g)),J(o2(j+g1)),"c"].join(" ")),C([J(i2(g+H1)),J(o2(j+g1)),J(i2(g+a1)),J(o2(j+T1)),J(i2(g+a1)),J(o2(j)),"c"].join(" ")),null!==z1&&C(y4(z1)),this},l.__private__.circle=l.circle=function(g,j,a1,g1){if(isNaN(g)||isNaN(j)||isNaN(a1)||!J2(g1))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(g,j,a1,a1,g1)},l.setFont=function(g,j){return v=B1(g,j,{disableWarning:!1}),this},l.setFontStyle=l.setFontType=function(g){return v=B1(void 0,g),this},l.__private__.getFontList=l.getFontList=function(){var g,j,a1,g1={};for(g in i1)if(i1.hasOwnProperty(g))for(j in g1[g]=a1=[],i1[g])i1[g].hasOwnProperty(j)&&a1.push(j);return g1},l.addFont=function(g,j,a1,g1){I2.call(this,g,j,a1,g1=g1||"Identity-H")};var E2,L4=z.lineWidth||.200025,E4=l.__private__.setLineWidth=l.setLineWidth=function(g){return C((g*b).toFixed(2)+" w"),this},A4=(l.__private__.setLineDash=d.API.setLineDash=function(g,j){if(g=g||[],j=j||0,isNaN(j)||!Array.isArray(g))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return g=g.map(function(a1){return(a1*b).toFixed(3)}).join(" "),j=parseFloat((j*b).toFixed(3)),C("["+g+"] "+j+" d"),this},l.__private__.getLineHeight=l.getLineHeight=function(){return u1*E2}),g3=(A4=l.__private__.getLineHeight=l.getLineHeight=function(){return u1*E2},l.__private__.setLineHeightFactor=l.setLineHeightFactor=function(g){return"number"==typeof(g=g||1.15)&&(E2=g),this}),v3=l.__private__.getLineHeightFactor=l.getLineHeightFactor=function(){return E2};g3(z.lineHeight);var i2=l.__private__.getHorizontalCoordinate=function(g){return g*b},o2=l.__private__.getVerticalCoordinate=function(g){return d1[I].mediaBox.topRightY-d1[I].mediaBox.bottomLeftY-g*b},u3=l.__private__.getHorizontalCoordinateString=function(g){return J(g*b)},m3=l.__private__.getVerticalCoordinateString=function(g){return J(d1[I].mediaBox.topRightY-d1[I].mediaBox.bottomLeftY-g*b)},d4=z.strokeColor||"0 G",Z3=(l.__private__.getStrokeColor=l.getDrawColor=function(){return f1(d4)},l.__private__.setStrokeColor=l.setDrawColor=function(g,j,a1,g1){return d4=k1({ch1:g,ch2:j,ch3:a1,ch4:g1,pdfColorType:"draw",precision:2}),C(d4),this},z.fillColor||"0 g"),U3=(l.__private__.getFillColor=l.getFillColor=function(){return f1(Z3)},l.__private__.setFillColor=l.setFillColor=function(g,j,a1,g1){return Z3=k1({ch1:g,ch2:j,ch3:a1,ch4:g1,pdfColorType:"fill",precision:2}),C(Z3),this},z.textColor||"0 g"),b6=l.__private__.getTextColor=l.getTextColor=function(){return f1(U3)},E3=(l.__private__.setTextColor=l.setTextColor=function(g,j,a1,g1){return U3=k1({ch1:g,ch2:j,ch3:a1,ch4:g1,pdfColorType:"text",precision:3}),this},z.charSpace||0),y6=l.__private__.getCharSpace=l.getCharSpace=function(){return E3},D3=(l.__private__.setCharSpace=l.setCharSpace=function(g){if(isNaN(g))throw new Error("Invalid argument passed to 
1jsPDF.setCharSpace");return E3=g,this},0);l.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},l.__private__.setLineCap=l.setLineCap=function(g){var j=l.CapJoinStyles[g];if(void 0===j)throw new Error("Line cap style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return C((D3=j)+" J"),this};var p6,q3=0;for(var f3 in l.__private__.setLineJoin=l.setLineJoin=function(g){var j=l.CapJoinStyles[g];if(void 0===j)throw new Error("Line join style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return C((q3=j)+" j"),this},l.__private__.setMiterLimit=l.setMiterLimit=function(g){if(g=g||0,isNaN(g))throw new Error("Invalid argument passed to jsPDF.setMiterLimit");return p6=parseFloat(J(g*b)),C(p6+" M"),this},l.save=function(g,j){if(g=g||"generated.pdf",(j=j||{}).returnPromise=j.returnPromise||!1,!1!==j.returnPromise)return new Promise(function(a1,g1){try{var z1=l4(h4(F2()),g);"function"==typeof l4.unload&&a.setTimeout&&setTimeout(l4.unload,911),a1(z1)}catch(H1){g1(H1.message)}});l4(h4(F2()),g),"function"==typeof l4.unload&&a.setTimeout&&setTimeout(l4.unload,911)},d.API)d.API.hasOwnProperty(f3)&&("events"===f3&&d.API.events.length?function(g,j){var g1,z1;for(z1=j.length-1;-1!==z1;z1--)g.subscribe.apply(g,[j[z1][0]].concat("function"==typeof(g1=j[z1][1])?[g1]:g1))}(V1,d.API.events):l[f3]=d.API[f3]);return l.internal={pdfEscape:C1,getStyle:y4,getFont:function(){return c1[B1.apply(l,arguments)]},getFontSize:r1,getCharSpace:y6,getTextColor:b6,getLineHeight:A4,getLineHeightFactor:v3,write:W,getHorizontalCoordinate:i2,getVerticalCoordinate:o2,getCoordinateString:u3,getVerticalCoordinateString:m3,collections:{},newObject:S1,newAdditionalObject:Q1,newObjectDeferred:O1,newObjectDeferredBegin:G1,getFilters:C2,putStream:b2,events:V1,scaleFactor:b,pageSize:{getWidth:function(){return(d1[I].mediaBox.topRightX-d1[I].mediaBox.bottomLeftX)/b},setWidth:function(g){d1[I].mediaBox.topRightX=g*b+d1[I].mediaBox.bottomLeftX},getHeight:function(){return(d1[I].mediaBox.topRightY-d1[I].mediaBox.bottomLeftY)/b},setHeight:function(g){d1[I].mediaBox.topRightY=g*b+d1[I].mediaBox.bottomLeftY}},output:Z4,getNumberOfPages:b1,pages:L,out:C,f2:J,f3:$,getPageInfo:U4,getPageInfoByObjId:d3,getCurrentPageInfo:p3,getPDFVersion:x,hasHotfix:q2},Object.defineProperty(l.internal.pageSize,"width",{get:function(){return(d1[I].mediaBox.topRightX-d1[I].mediaBox.bottomLeftX)/b},set:function(g){d1[I].mediaBox.topRightX=g*b+d1[I].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(l.internal.pageSize,"height",{get:function(){return(d1[I].mediaBox.topRightY-d1[I].mediaBox.bottomLeftY)/b},set:function(g){d1[I].mediaBox.topRightY=g*b+d1[I].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),function(g){for(var j=0,a1=s1.length;j<a1;j++){var g1=I2(g[j][0],g[j][1],g[j][2],s1[j][3],!0);Q[g1]=!0;var z1=g[j][0].split("-");y2(g1,z1[0],z1[1]||"")}V1.publish("addFonts",{fonts:c1,dictionary:i1})}(s1),v="F1",L1(h,u),V1.publish("initialized"),l}return d.API={events:[]},d.version="1.5.3",void 0!==(m2=function(){return d}.call(o4,P1,o4,W4))&&(W4.exports=m2),d}(typeof self<"u"&&self||typeof window<"u"&&window||typeof global<"u"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());(function(a,i){var d,u=1,s=function(H){return H.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},h=function(H){return H.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},f=function(H){if(isNaN(H))throw new Error("Invalid argument passed to jsPDF.f2");return H.toFixed(2)},z=function(H){if(isNaN(H))throw new Error("Invalid argument passed to jsPDF.f2");return H.toFixed(5)};a.__acroform__={};var p=function(H,Z){H.prototype=Object.create(Z.prototype),H.prototype.constructor=H},k=function(H){return H*u},G=function(H){return H/u},Q=function(H){var Z=new b,B=o1.internal.getHeight(H)||0,E=o1.internal.getWidth(H)||0;return Z.BBox=[0,0,Number(f(E)),Number(f(B))],Z},l=a.__acroform__.setBit=function(H,Z){if(H=H||0,Z=Z||0,isNaN(H)||isNaN(Z))throw new Error("Invalid arguments passed to 
1jsPDF.API.__acroform__.setBit");return H|1<<Z},_=a.__acroform__.clearBit=function(H,Z){if(H=H||0,Z=Z||0,isNaN(H)||isNaN(Z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return H&~(1<<Z)},x=a.__acroform__.getBit=function(H,Z){if(isNaN(H)||isNaN(Z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return H&1<<Z?1:0},A=a.__acroform__.getBitForPdf=function(H,Z){if(isNaN(H)||isNaN(Z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return x(H,Z-1)},V=a.__acroform__.setBitForPdf=function(H,Z){if(isNaN(H)||isNaN(Z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return l(H,Z-1)},T=a.__acroform__.clearBitForPdf=function(H,Z,B){if(isNaN(H)||isNaN(Z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return _(H,Z-1)},J=a.__acroform__.calculateCoordinates=function(H){var Z=this.internal.getHorizontalCoordinate,B=this.internal.getVerticalCoordinate,E=H[0],c1=H[1],i1=H[2],_1=H[3],d1={};return d1.lowerLeft_X=Z(E)||0,d1.lowerLeft_Y=B(c1+_1)||0,d1.upperRight_X=Z(E+i1)||0,d1.upperRight_Y=B(c1)||0,[Number(f(d1.lowerLeft_X)),Number(f(d1.lowerLeft_Y)),Number(f(d1.upperRight_X)),Number(f(d1.upperRight_Y))]},$=function(H){if(H.appearanceStreamContent)return H.appearanceStreamContent;if(H.V||H.DV){var Z=[],E=K(H,H.V||H.DV),c1=d.internal.getFont(H.fontName,H.fontStyle).id;Z.push("/Tx BMC"),Z.push("q"),Z.push("BT"),Z.push(d.__private__.encodeColorString(H.color)),Z.push("/"+c1+" "+f(E.fontSize)+" Tf"),Z.push("1 0 0 1 0 0 Tm"),Z.push(E.text),Z.push("ET"),Z.push("Q"),Z.push("EMC");var i1=new Q(H);return i1.stream=Z.join("\n"),i1}},K=function(H,Z){var B=H.maxFontSize||12,E={text:"",fontSize:""},c1=(Z=")"==(Z="("==Z.substr(0,1)?Z.substr(1):Z).substr(Z.length-1)?Z.substr(0,Z.length-1):Z).split(" "),i1=(d.__private__.encodeColorString(H.color),B),_1=o1.internal.getHeight(H)||0;_1=_1<0?-_1:_1;var d1=o1.internal.getWidth(H)||0;d1=d1<0?-d1:d1;var y2,I2,C1;i1++;t:for(;;){Z="";var V1=h1("3",H,--i1).height,E1=H.multiline?_1-i1:(_1-V1)/2,S1=-2,O1=E1+=2,G1=0,Q1=0,e2=0;if(i1<=0){Z="(...) Tj\n",Z+="% Width of Text: "+h1(Z,H,i1=12).width+", FieldWidth:"+d1+"\n";break}e2=h1(c1[0]+" ",H,i1).width;var D1="",f1=0;for(var k1 in c1)if(c1.hasOwnProperty(k1)){D1=" "==(D1+=c1[k1]+" ").substr(D1.length-1)?D1.substr(0,D1.length-1):D1;var C2=parseInt(k1);e2=h1(D1+" ",H,i1).width;var b2=(I2=D1,C1=i1,(y2=C2)+1<c1.length&&h1(I2+" "+c1[y2+1],H,C1).width<=d1-4),G2=k1>=c1.length-1;if(b2&&!G2){D1+=" ";continue}if(b2||G2){if(G2)Q1=C2;else if(H.multiline&&_1<(V1+2)*(f1+2)+2)continue t}else{if(!H.multiline||_1<(V1+2)*(f1+2)+2)continue t;Q1=C2}for(var d2="",H2=G1;H2<=Q1;H2++)d2+=c1[H2]+" ";switch(d2=" "==d2.substr(d2.length-1)?d2.substr(0,d2.length-1):d2,e2=h1(d2,H,i1).width,H.textAlign){case"right":S1=d1-e2-2;break;case"center":S1=(d1-e2)/2;break;default:S1=2}Z+=f(S1)+" "+f(O1)+" Td\n",Z+="("+s(d2)+") Tj\n",Z+=-f(S1)+" 0 Td\n",O1=-(i1+2),e2=0,G1=Q1+1,f1++,D1=""}break}return E.text=Z,E.fontSize=i1,E},h1=function(H,Z,B){var E=d.internal.getFont(Z.fontName,Z.fontStyle),c1=d.getStringUnitWidth(H,{font:E,fontSize:parseFloat(B),charSpace:0})*parseFloat(B);return{height:d.getStringUnitWidth("3",{font:E,fontSize:parseFloat(B),charSpace:0})*parseFloat(B)*1.5,width:c1}},l1={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},q=function(){d.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var H=d.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Z in H)if(H.hasOwnProperty(Z)){var B=H[Z];B.objId=void 0,B.hasAnnotation&&y.call(d,B)}},y=function(H){var Z={type:"reference",object:H};void 0===d.internal.getPageInfo(H.page).pageContext.annotations.find(function(B){return B.type===Z.type&&B.object===Z.object})&&d.internal.getPageInfo(H.page).pageContext.annotations.push(Z)},X=function(){if(void 0===d.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");d.internal.write("/AcroForm "+d.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},N=function(){d.internal.events.unsubscribe(d.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete d.internal.acroformPlugin.acroFormDictionaryRoot._eventID,d.internal.acroformPlugin.printedOut=!0},I=function(H){var Z=!H;for(var B in H||(d.internal.newObjectDeferredBegin(d.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),d.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),H=H||d.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(H.hasOwnProperty(B)){var E=H[B],c1=[],i1=E.Rect;if(E.Rect&&(E.Rect=J.call(this,E.Rect)),d.internal.newObjectDeferredBegin(E.objId,!0),E.DA=o1.createDefaultAppearanceStream(E),"object"===s2(E)&&"function"==typeof E.getKeyValueListForStream&&(c1=E.getKeyValueListForStream()),E.Rect=i1,E.hasAppearanceStream&&!E.appearanceStreamContent){var _1=$.call(this,E);c1.push({key:"AP",value:"<</N "+_1+">>"}),d.internal.acroformPlugin.xForms.push(_1)}if(E.appearanceStreamContent){var d1="";for(var U1 in E.appearanceStreamContent)if(E.appearanceStreamContent.hasOwnProperty(U1)){var V1=E.appearanceStreamContent[U1];if(d1+="/"+U1+" ",d1+="<<",1<=Object.keys(V1).length||Array.isArray(V1))for(var B in V1){var E1;V1.hasOwnProperty(B)&&("function"==typeof(E1=V1[B])&&(E1=E1.call(this,E)),d1+="/"+B+" "+E1+" ",0<=d.internal.acroformPlugin.xForms.indexOf(E1)||d.internal.acroformPlugin.xForms.push(E1))}else"function"==typeof(E1=V1)&&(E1=E1.call(this,E)),d1+="/"+B+" "+E1,0<=d.internal.acroformPlugin.xForms.indexOf(E1)||d.internal.acroformPlugin.xForms.push(E1);d1+=">>"}c1.push({key:"AP",value:"<<\n"+d1+">>"})}d.internal.putStream({additionalKeyValues:c1}),d.internal.out("endobj")}Z&&D.call(this,d.internal.acroformPlugin.xForms)},D=function(H){for(var Z in H)if(H.hasOwnProperty(Z)){var B=Z,E=H[Z];d.internal.newObjectDeferredBegin(E&&E.objId,!0),"object"===s2(E)&&"function"==typeof E.putStream&&E.putStream(),delete H[B]}},Y=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(d=this,r.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(l1)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");u=d.internal.scaleFactor,d.internal.acroformPlugin.acroFormDictionaryRoot=new S,d.internal.acroformPlugin.acroFormDictionaryRoot._eventID=d.internal.events.subscribe("postPutResources",N),d.internal.events.subscribe("buildDocument",q),d.internal.events.subscribe("putCatalog",X),d.internal.events.subscribe("postPutPages",I),d.internal.acroformPlugin.isInitialized=!0}},R=a.__acroform__.arrayToPdfArray=function(H){if(Array.isArray(H)){for(var Z="[",B=0;B<H.length;B++)switch(0!==B&&(Z+=" "),s2(H[B])){case"boolean":case"number":case"object":Z+=H[B].toString();break;case"string":"/"!==H[B].substr(0,1)?Z+="("+s(H[B].toString())+")":Z+=H[B].toString()}return Z+"]"}
1throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},P=function(H){return(H=H||"").toString(),"("+s(H)+")"},v=function(){var H;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(H||(H=d.internal.newObjectDeferred()),!H)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return H},set:function(Z){H=Z}})};v.prototype.toString=function(){return this.objId+" 0 R"},v.prototype.putStream=function(){var H=this.getKeyValueListForStream();d.internal.putStream({data:this.stream,additionalKeyValues:H}),d.internal.out("endobj")},v.prototype.getKeyValueListForStream=function(){return function(H){var Z=[],B=Object.getOwnPropertyNames(H).filter(function(_1){return"content"!=_1&&"appearanceStreamContent"!=_1&&"_"!=_1.substring(0,1)});for(var E in B)if(!1===Object.getOwnPropertyDescriptor(H,B[E]).configurable){var c1=B[E],i1=H[c1];i1&&(Array.isArray(i1)?Z.push({key:c1,value:R(i1)}):i1 instanceof v?Z.push({key:c1,value:i1.objId+" 0 R"}):"function"!=typeof i1&&Z.push({key:c1,value:i1}))}return Z}(this)};var b=function(){v.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var H,Z=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return Z},set:function(B){Z=B}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(B){H=B.trim()},get:function(){return H||null}})};p(b,v);var S=function(){v.call(this);var H,Z=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<Z.length?Z:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return Z}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(H)return"("+H+")"},set:function(B){H=B}})};p(S,v);var r=function H(){v.call(this);var Z=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Z},set:function(f1){if(isNaN(f1))throw new Error('Invalid value "'+f1+'" for attribute F supplied.');Z=f1}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(Z,3))},set:function(f1){this.F=!0===Boolean(f1)?V(Z,3):T(Z,3)}});var B=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return B},set:function(f1){if(isNaN(f1))throw new Error('Invalid value "'+f1+'" for attribute Ff supplied.');B=f1}});var E=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==E.length)return E},set:function(f1){E=void 0!==f1?f1:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!E||isNaN(E[0])?0:G(E[0])},set:function(f1){E[0]=k(f1)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!E||isNaN(E[1])?0:G(E[1])},set:function(f1){E[1]=k(f1)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!E||isNaN(E[2])?0:G(E[2])},set:function(f1){E[2]=k(f1)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!E||isNaN(E[3])?0:G(E[3])},set:function(f1){E[3]=k(f1)}});var c1="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return c1},set:function(f1){switch(f1){case"/Btn":case"/Tx":case"/Ch":case"/Sig":c1=f1;break;default:throw new Error('Invalid value "'+f1+'" for attribute FT supplied.')}}});var i1=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i1||i1.length<1){if(this instanceof s1)return;i1="FieldObject"+H.FieldNum++}return"("+s(i1)+")"},set:function(f1){i1=f1.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i1},set:function(f1){i1=f1}});var _1="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return _1},set:function(f1){_1=f1}});var d1="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return d1},set:function(f1){d1=f1}});var U1=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return G(U1)},set:function(f1){U1=k(f1)}});var V1=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return G(V1)},set:function(f1){V1=k(f1)}});var E1="black";
1Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return E1},set:function(f1){E1=f1}});var S1="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!S1||this instanceof s1||this instanceof r1))return P(S1)},set:function(f1){f1=f1.toString(),S1=f1}});var O1=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(O1)return this instanceof C?O1:P(O1)},set:function(f1){f1=f1.toString(),O1=this instanceof C?f1:"("===f1.substr(0,1)?h(f1.substr(1,f1.length-2)):h(f1)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof C?h(O1.substr(1,O1.length-1)):O1},set:function(f1){f1=f1.toString(),O1=this instanceof C?"/"+f1:f1}});var G1=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(G1)return this instanceof C?G1:P(G1)},set:function(f1){f1=f1.toString(),G1=this instanceof C?f1:"("===f1.substr(0,1)?h(f1.substr(1,f1.length-2)):h(f1)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof C?h(G1.substr(1,G1.length-1)):G1},set:function(f1){f1=f1.toString(),G1=this instanceof C?"/"+f1:f1}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var Q1,e2=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return e2},set:function(f1){f1=Boolean(f1),e2=f1}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(Q1)return Q1},set:function(f1){Q1=f1}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,1))},set:function(f1){this.Ff=!0===Boolean(f1)?V(this.Ff,1):T(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,2))},set:function(f1){this.Ff=!0===Boolean(f1)?V(this.Ff,2):T(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,3))},set:function(f1){this.Ff=!0===Boolean(f1)?V(this.Ff,3):T(this.Ff,3)}});var D1=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==D1)return D1},set:function(f1){if(-1===[0,1,2].indexOf(f1))throw new Error('Invalid value "'+f1+'" for attribute Q supplied.');D1=f1}}),Object.defineProperty(this,"textAlign",{get:function(){var f1="left";switch(D1){case 0:default:f1="left";break;case 1:f1="center";break;case 2:f1="right"}return f1},configurable:!0,enumerable:!0,set:function(f1){switch(f1){case"right":case 2:D1=2;break;case"center":case 1:D1=1;break;default:D1=0}}})};p(r,v);var w=function(){r.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var H=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return H},set:function(B){H=B}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return H},set:function(B){H=B}});var Z=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return R(Z)},set:function(B){var E,c1;c1=[],"string"==typeof(E=B)&&(c1=function(i1,_1,d1){d1||(d1=1);for(var U1,V1=[];U1=_1.exec(i1);)V1.push(U1[d1]);return V1}(E,/\((.*?)\)/g)),Z=c1}}),this.getOptions=function(){return Z},this.setOptions=function(B){Z=B,this.sort&&Z.sort()},this.addOption=function(B){B=(B=B||"").toString(),Z.push(B),this.sort&&Z.sort()},this.removeOption=function(B,E){for(E=E||!1,B=(B=B||"").toString();-1!==Z.indexOf(B)&&(Z.splice(Z.indexOf(B),1),!1!==E););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,18))},set:function(B){this.Ff=!0===Boolean(B)?V(this.Ff,18):T(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,19))},set:function(B){!0===this.combo&&(this.Ff=!0===Boolean(B)?V(this.Ff,19):T(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,20))},set:function(B){!0===Boolean(B)?(this.Ff=V(this.Ff,20),Z.sort()):this.Ff=T(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,22))},set:function(B){this.Ff=!0===Boolean(B)?V(this.Ff,22):T(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,23))},set:function(B){this.Ff=!0===Boolean(B)?V(this.Ff,23):T(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,27))},set:function(B){this.Ff=!0===Boolean(B)?V(this.Ff,27):T(this.Ff,27)}}),this.hasAppearanceStream=!1};p(w,r);var L=function(){w.call(this),this.fontName="helvetica",this.combo=!1};p(L,w);
1var F=function(){L.call(this),this.combo=!0};p(F,L);var O=function(){F.call(this),this.edit=!0};p(O,F);var C=function(){r.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,15))},set:function(B){this.Ff=!0===Boolean(B)?V(this.Ff,15):T(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,16))},set:function(B){this.Ff=!0===Boolean(B)?V(this.Ff,16):T(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,17))},set:function(B){this.Ff=!0===Boolean(B)?V(this.Ff,17):T(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,26))},set:function(B){this.Ff=!0===Boolean(B)?V(this.Ff,26):T(this.Ff,26)}});var H,Z={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(0!==Object.keys(Z).length){var B,E=[];for(B in E.push("<<"),Z)E.push("/"+B+" ("+Z[B]+")");return E.push(">>"),E.join("\n")}},set:function(B){"object"===s2(B)&&(Z=B)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Z.CA||""},set:function(B){"string"==typeof B&&(Z.CA=B)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return H},set:function(B){H=B}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return H.substr(1,H.length-1)},set:function(B){H="/"+B}})};p(C,r);var W=function(){C.call(this),this.pushButton=!0};p(W,C);var e1=function(){C.call(this),this.radio=!0,this.pushButton=!1;var H=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return H},set:function(Z){H=void 0!==Z?Z:[]}})};p(e1,C);var s1=function(){var H,Z;r.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return H},set:function(c1){H=c1}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Z},set:function(c1){Z=c1}});var B,E={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var c1,i1=[];for(c1 in i1.push("<<"),E)i1.push("/"+c1+" ("+E[c1]+")");return i1.push(">>"),i1.join("\n")},set:function(c1){"object"===s2(c1)&&(E=c1)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return E.CA||""},set:function(c1){"string"==typeof c1&&(E.CA=c1)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return B},set:function(c1){B=c1}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return B.substr(1,B.length-1)},set:function(c1){B="/"+c1}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=o1.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};p(s1,r),e1.prototype.setAppearance=function(H){if(!("createAppearanceStream"in H)||!("getCA"in H))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Z in this.Kids)if(this.Kids.hasOwnProperty(Z)){var B=this.Kids[Z];B.appearanceStreamContent=H.createAppearanceStream(B.optionName),B.caption=H.getCA()}},e1.prototype.createOption=function(H){var Z=new s1;return Z.Parent=this,Z.optionName=H,this.Kids.push(Z),M1.call(this,Z),Z};var u1=function(){C.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=o1.CheckBox.createAppearanceStream()};p(u1,C);var r1=function(){r.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,13))},set:function(Z){this.Ff=!0===Boolean(Z)?V(this.Ff,13):T(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,21))},set:function(Z){this.Ff=!0===Boolean(Z)?V(this.Ff,21):T(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,23))},set:function(Z){this.Ff=!0===Boolean(Z)?V(this.Ff,23):T(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,24))},set:function(Z){this.Ff=!0===Boolean(Z)?V(this.Ff,24):T(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,25))},set:function(Z){this.Ff=!0===Boolean(Z)?V(this.Ff,25):T(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,26))},set:function(Z){this.Ff=!0===Boolean(Z)?V(this.Ff,26):T(this.Ff,26)}});var H=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return H},set:function(Z){H=Z}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return H},set:function(Z){Number.isInteger(Z)&&(H=Z)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};p(r1,r);
1var m1=function(){r1.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,14))},set:function(H){this.Ff=!0===Boolean(H)?V(this.Ff,14):T(this.Ff,14)}}),this.password=!0};p(m1,r1);var o1={CheckBox:{createAppearanceStream:function(){return{N:{On:o1.CheckBox.YesNormal},D:{On:o1.CheckBox.YesPushDown,Off:o1.CheckBox.OffPushDown}}},YesPushDown:function(H){var Z=Q(H),B=[],E=d.internal.getFont(H.fontName,H.fontStyle).id,c1=d.__private__.encodeColorString(H.color),i1=K(H,H.caption);return B.push("0.749023 g"),B.push("0 0 "+f(o1.internal.getWidth(H))+" "+f(o1.internal.getHeight(H))+" re"),B.push("f"),B.push("BMC"),B.push("q"),B.push("0 0 1 rg"),B.push("/"+E+" "+f(i1.fontSize)+" Tf "+c1),B.push("BT"),B.push(i1.text),B.push("ET"),B.push("Q"),B.push("EMC"),Z.stream=B.join("\n"),Z},YesNormal:function(H){var Z=Q(H),B=d.internal.getFont(H.fontName,H.fontStyle).id,E=d.__private__.encodeColorString(H.color),c1=[],i1=o1.internal.getHeight(H),_1=o1.internal.getWidth(H),d1=K(H,H.caption);return c1.push("1 g"),c1.push("0 0 "+f(_1)+" "+f(i1)+" re"),c1.push("f"),c1.push("q"),c1.push("0 0 1 rg"),c1.push("0 0 "+f(_1-1)+" "+f(i1-1)+" re"),c1.push("W"),c1.push("n"),c1.push("0 g"),c1.push("BT"),c1.push("/"+B+" "+f(d1.fontSize)+" Tf "+E),c1.push(d1.text),c1.push("ET"),c1.push("Q"),Z.stream=c1.join("\n"),Z},OffPushDown:function(H){var Z=Q(H),B=[];return B.push("0.749023 g"),B.push("0 0 "+f(o1.internal.getWidth(H))+" "+f(o1.internal.getHeight(H))+" re"),B.push("f"),Z.stream=B.join("\n"),Z}},RadioButton:{Circle:{createAppearanceStream:function(H){var Z={D:{Off:o1.RadioButton.Circle.OffPushDown},N:{}};return Z.N[H]=o1.RadioButton.Circle.YesNormal,Z.D[H]=o1.RadioButton.Circle.YesPushDown,Z},getCA:function(){return"l"},YesNormal:function(H){var Z=Q(H),B=[],E=o1.internal.getWidth(H)<=o1.internal.getHeight(H)?o1.internal.getWidth(H)/4:o1.internal.getHeight(H)/4;E=Number((.9*E).toFixed(5));var i1=Number((E*o1.internal.Bezier_C).toFixed(5));return B.push("q"),B.push("1 0 0 1 "+z(o1.internal.getWidth(H)/2)+" "+z(o1.internal.getHeight(H)/2)+" cm"),B.push(E+" 0 m"),B.push(E+" "+i1+" "+i1+" "+E+" 0 "+E+" c"),B.push("-"+i1+" "+E+" -"+E+" "+i1+" -"+E+" 0 c"),B.push("-"+E+" -"+i1+" -"+i1+" -"+E+" 0 -"+E+" c"),B.push(i1+" -"+E+" "+E+" -"+i1+" "+E+" 0 c"),B.push("f"),B.push("Q"),Z.stream=B.join("\n"),Z},YesPushDown:function(H){var Z=Q(H),B=[],E=o1.internal.getWidth(H)<=o1.internal.getHeight(H)?o1.internal.getWidth(H)/4:o1.internal.getHeight(H)/4,c1=(E=Number((.9*E).toFixed(5)),Number((2*E).toFixed(5))),i1=Number((c1*o1.internal.Bezier_C).toFixed(5)),_1=Number((E*o1.internal.Bezier_C).toFixed(5));return B.push("0.749023 g"),B.push("q"),B.push("1 0 0 1 "+z(o1.internal.getWidth(H)/2)+" "+z(o1.internal.getHeight(H)/2)+" cm"),B.push(c1+" 0 m"),B.push(c1+" "+i1+" "+i1+" "+c1+" 0 "+c1+" c"),B.push("-"+i1+" "+c1+" -"+c1+" "+i1+" -"+c1+" 0 c"),B.push("-"+c1+" -"+i1+" -"+i1+" -"+c1+" 0 -"+c1+" c"),B.push(i1+" -"+c1+" "+c1+" -"+i1+" "+c1+" 0 c"),B.push("f"),B.push("Q"),B.push("0 g"),B.push("q"),B.push("1 0 0 1 "+z(o1.internal.getWidth(H)/2)+" "+z(o1.internal.getHeight(H)/2)+" cm"),B.push(E+" 0 m"),B.push(E+" "+_1+" "+_1+" "+E+" 0 "+E+" c"),B.push("-"+_1+" "+E+" -"+E+" "+_1+" -"+E+" 0 c"),B.push("-"+E+" -"+_1+" -"+_1+" -"+E+" 0 -"+E+" c"),B.push(_1+" -"+E+" "+E+" -"+_1+" "+E+" 0 c"),B.push("f"),B.push("Q"),Z.stream=B.join("\n"),Z},OffPushDown:function(H){var Z=Q(H),B=[],E=o1.internal.getWidth(H)<=o1.internal.getHeight(H)?o1.internal.getWidth(H)/4:o1.internal.getHeight(H)/4,c1=(E=Number((.9*E).toFixed(5)),Number((2*E).toFixed(5))),i1=Number((c1*o1.internal.Bezier_C).toFixed(5));return B.push("0.749023 g"),B.push("q"),B.push("1 0 0 1 "+z(o1.internal.getWidth(H)/2)+" "+z(o1.internal.getHeight(H)/2)+" cm"),B.push(c1+" 0 m"),B.push(c1+" "+i1+" "+i1+" "+c1+" 0 "+c1+" c"),B.push("-"+i1+" "+c1+" -"+c1+" "+i1+" -"+c1+" 0 c"),B.push("-"+c1+" -"+i1+" -"+i1+" -"+c1+" 0 -"+c1+" c"),B.push(i1+" -"+c1+" "+c1+" -"+i1+" "+c1+" 0 c"),B.push("f"),B.push("Q"),Z.stream=B.join("\n"),Z}},Cross:{createAppearanceStream:function(H){var Z={D:{Off:o1.RadioButton.Cross.OffPushDown},N:{}}
1;return Z.N[H]=o1.RadioButton.Cross.YesNormal,Z.D[H]=o1.RadioButton.Cross.YesPushDown,Z},getCA:function(){return"8"},YesNormal:function(H){var Z=Q(H),B=[],E=o1.internal.calculateCross(H);return B.push("q"),B.push("1 1 "+f(o1.internal.getWidth(H)-2)+" "+f(o1.internal.getHeight(H)-2)+" re"),B.push("W"),B.push("n"),B.push(f(E.x1.x)+" "+f(E.x1.y)+" m"),B.push(f(E.x2.x)+" "+f(E.x2.y)+" l"),B.push(f(E.x4.x)+" "+f(E.x4.y)+" m"),B.push(f(E.x3.x)+" "+f(E.x3.y)+" l"),B.push("s"),B.push("Q"),Z.stream=B.join("\n"),Z},YesPushDown:function(H){var Z=Q(H),B=o1.internal.calculateCross(H),E=[];return E.push("0.749023 g"),E.push("0 0 "+f(o1.internal.getWidth(H))+" "+f(o1.internal.getHeight(H))+" re"),E.push("f"),E.push("q"),E.push("1 1 "+f(o1.internal.getWidth(H)-2)+" "+f(o1.internal.getHeight(H)-2)+" re"),E.push("W"),E.push("n"),E.push(f(B.x1.x)+" "+f(B.x1.y)+" m"),E.push(f(B.x2.x)+" "+f(B.x2.y)+" l"),E.push(f(B.x4.x)+" "+f(B.x4.y)+" m"),E.push(f(B.x3.x)+" "+f(B.x3.y)+" l"),E.push("s"),E.push("Q"),Z.stream=E.join("\n"),Z},OffPushDown:function(H){var Z=Q(H),B=[];return B.push("0.749023 g"),B.push("0 0 "+f(o1.internal.getWidth(H))+" "+f(o1.internal.getHeight(H))+" re"),B.push("f"),Z.stream=B.join("\n"),Z}}},createDefaultAppearanceStream:function(H){var Z=d.internal.getFont(H.fontName,H.fontStyle).id,B=d.__private__.encodeColorString(H.color);return"/"+Z+" "+H.fontSize+" Tf "+B}};o1.internal={Bezier_C:.551915024494,calculateCross:function(H){var Z=o1.internal.getWidth(H),B=o1.internal.getHeight(H),E=Math.min(Z,B);return{x1:{x:(Z-E)/2,y:(B-E)/2+E},x2:{x:(Z-E)/2+E,y:(B-E)/2},x3:{x:(Z-E)/2,y:(B-E)/2},x4:{x:(Z-E)/2+E,y:(B-E)/2+E}}}},o1.internal.getWidth=function(H){var Z=0;return"object"===s2(H)&&(Z=k(H.Rect[2])),Z},o1.internal.getHeight=function(H){var Z=0;return"object"===s2(H)&&(Z=k(H.Rect[3])),Z};var M1=a.addField=function(H){if(Y.call(this),!(H instanceof r))throw new Error("Invalid argument passed to jsPDF.addField.");return function(Z){d.internal.acroformPlugin.printedOut&&(d.internal.acroformPlugin.printedOut=!1,d.internal.acroformPlugin.acroFormDictionaryRoot=null),d.internal.acroformPlugin.acroFormDictionaryRoot||Y.call(d),d.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Z)}.call(this,H),H.page=d.internal.getCurrentPageInfo().pageNumber,this};a.addButton=function(H){if(!(H instanceof C))throw new Error("Invalid argument passed to jsPDF.addButton.");return M1.call(this,H)},a.addTextField=function(H){if(!(H instanceof r1))throw new Error("Invalid argument passed to jsPDF.addTextField.");return M1.call(this,H)},a.addChoiceField=function(H){if(!(H instanceof w))throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return M1.call(this,H)},"object"==s2(i)&&void 0===i.ChoiceField&&void 0===i.ListBox&&void 0===i.ComboBox&&void 0===i.EditBox&&void 0===i.Button&&void 0===i.PushButton&&void 0===i.RadioButton&&void 0===i.CheckBox&&void 0===i.TextField&&void 0===i.PasswordField?(i.ChoiceField=w,i.ListBox=L,i.ComboBox=F,i.EditBox=O,i.Button=C,i.PushButton=W,i.RadioButton=e1,i.CheckBox=u1,i.TextField=r1,i.PasswordField=m1,i.AcroForm={Appearance:o1}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),a.AcroFormChoiceField=w,a.AcroFormListBox=L,a.AcroFormComboBox=F,a.AcroFormEditBox=O,a.AcroFormButton=C,a.AcroFormPushButton=W,a.AcroFormRadioButton=e1,a.AcroFormCheckBox=u1,a.AcroFormTextField=r1,a.AcroFormPasswordField=m1,a.AcroFormAppearance=o1,a.AcroForm={ChoiceField:w,ListBox:L,ComboBox:F,EditBox:O,Button:C,PushButton:W,RadioButton:e1,CheckBox:u1,TextField:r1,PasswordField:m1,Appearance:o1}})((window.tmp=$1).API,typeof window<"u"&&window||typeof global<"u"&&global),
2/** @license
3           * jsPDF addImage plugin
4           * Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/
5           *               2013 Chris Dowling, https://github.com/gingerchris
6           *               2013 Trinh Ho, https://github.com/ineedfat
7           *               2013 Edwin Alejandro Perez, https://github.com/eaparango
8           *               2013 Norah Smith, https://github.com/burnburnrocket
9           *               2014 Diego Casorran, https://github.com/diegocr
10           *               2014 James Robb, https://github.com/jamesbrobb
11           *
12           * 
13           */
14function(a){var i="addImage_",d={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},u=a.getImageFileTypeByImageData=function(l,_){var x,A;_=_||"UNKNOWN";var V,T,J,$="UNKNOWN";for(J in a.isArrayBufferView(l)&&(l=a.arrayBufferToBinaryString(l)),d)for(V=d[J],x=0;x<V.length;x+=1){for(T=!0,A=0;A<V[x].length;A+=1)if(void 0!==V[x][A]&&V[x][A]!==l.charCodeAt(A)){T=!1;break}if(!0===T){$=J;break}}return"UNKNOWN"===$&&"UNKNOWN"!==_&&(console.warn('FileType of Image not recognized. Processing image as "'+_+'".'),$=_),$},s=function l(_){for(var x=this.internal.newObject(),A=this.internal.write,V=this.internal.putStream,T=(0,this.internal.getFilters)();-1!==T.indexOf("FlateEncode");)T.splice(T.indexOf("FlateEncode"),1);_.n=x;var J=[];
14if(J.push({key:"Type",value:"/XObject"}),J.push({key:"Subtype",value:"/Image"}),J.push({key:"Width",value:_.w}),J.push({key:"Height",value:_.h}),_.cs===this.color_spaces.INDEXED?J.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(_.pal.length/3-1)+" "+("smask"in _?x+2:x+1)+" 0 R]"}):(J.push({key:"ColorSpace",value:"/"+_.cs}),_.cs===this.color_spaces.DEVICE_CMYK&&J.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),J.push({key:"BitsPerComponent",value:_.bpc}),"dp"in _&&J.push({key:"DecodeParms",value:"<<"+_.dp+">>"}),"trns"in _&&_.trns.constructor==Array){for(var $="",K=0,h1=_.trns.length;K<h1;K++)$+=_.trns[K]+" "+_.trns[K]+" ";J.push({key:"Mask",value:"["+$+"]"})}if("smask"in _&&J.push({key:"SMask",value:x+1+" 0 R"}),V({data:_.data,additionalKeyValues:J,alreadyAppliedFilters:void 0!==_.f?["/"+_.f]:void 0}),A("endobj"),"smask"in _){var y={w:_.w,h:_.h,cs:"DeviceGray",bpc:_.bpc,dp:"/Predictor "+_.p+" /Colors 1 /BitsPerComponent "+_.bpc+" /Columns "+_.w,data:_.smask};"f"in _&&(y.f=_.f),l.call(this,y)}_.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),V({data:this.arrayBufferToBinaryString(new Uint8Array(_.pal))}),A("endobj"))},h=function(){var l=this.internal.collections[i+"images"];for(var _ in l)s.call(this,l[_])},f=function(){var l,_=this.internal.collections[i+"images"],x=this.internal.write;for(var A in _)x("/I"+(l=_[A]).i,l.n,"0","R")},z=function(l){return"function"==typeof a["process"+l.toUpperCase()]},p=function(l){return"object"===s2(l)&&1===l.nodeType},k=function(l,_){if("IMG"===l.nodeName&&l.hasAttribute("src")){var x=""+l.getAttribute("src");if(0===x.indexOf("data:image/"))return unescape(x);var A=a.loadFile(x);if(void 0!==A)return btoa(A)}if("CANVAS"===l.nodeName){var V=l;return l.toDataURL("image/jpeg",1)}(V=document.createElement("canvas")).width=l.clientWidth||l.width,V.height=l.clientHeight||l.height;var T=V.getContext("2d");if(!T)throw"addImage requires canvas to be supported by browser.";return T.drawImage(l,0,0,V.width,V.height),V.toDataURL("png"==(""+_).toLowerCase()?"image/png":"image/jpeg")},G=function(l,_){var x;if(_)for(var A in _)if(l===_[A].alias){x=_[A];break}return x};a.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},a.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},a.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},a.sHashCode=function(l){var _,x=0;if(0===(l=l||"").length)return x;for(_=0;_<l.length;_++)x=(x<<5)-x+l.charCodeAt(_),x|=0;return x},a.isString=function(l){return"string"==typeof l},a.validateStringAsBase64=function(l){(l=l||"").toString().trim();var _=!0;return 0===l.length&&(_=!1),l.length%4!=0&&(_=!1),!1===/^[A-Za-z0-9+\/]+$/.test(l.substr(0,l.length-2))&&(_=!1),!1===/^[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==$/.test(l.substr(-2))&&(_=!1),_},a.extractInfoFromBase64DataURI=function(l){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(l)},a.extractImageFromDataUrl=function(l){var _=(l=l||"").split("base64,"),x=null;if(2===_.length){var A=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(_[0]);Array.isArray(A)&&(x={mimeType:A[1],charset:A[2],data:_[1]})}return x},a.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"},a.isArrayBuffer=function(l){return!!this.supportsArrayBuffer()&&l instanceof ArrayBuffer},a.isArrayBufferView=function(l){return!!this.supportsArrayBuffer()&&typeof Uint32Array<"u"&&(l instanceof Int8Array||l instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)},a.binaryStringToUint8Array=function(l){for(var _=l.length,x=new Uint8Array(_),A=0;A<_;A++)x[A]=l.charCodeAt(A);return x},a.arrayBufferToBinaryString=function(l){if("function"==typeof atob)return atob(this.arrayBufferToBase64(l))},a.arrayBufferToBase64=function(l){for(var _,x="",A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
14+/",V=new Uint8Array(l),T=V.byteLength,J=T%3,$=T-J,K=0;K<$;K+=3)x+=A[(16515072&(_=V[K]<<16|V[K+1]<<8|V[K+2]))>>18]+A[(258048&_)>>12]+A[(4032&_)>>6]+A[63&_];return 1==J?x+=A[(252&(_=V[$]))>>2]+A[(3&_)<<4]+"==":2==J&&(x+=A[(64512&(_=V[$]<<8|V[$+1]))>>10]+A[(1008&_)>>4]+A[(15&_)<<2]+"="),x},a.createImageInfo=function(l,_,x,A,V,T,J,$,K,h1,l1,q,y){var X={alias:$,w:_,h:x,cs:A,bpc:V,i:J,data:l};return T&&(X.f=T),K&&(X.dp=K),h1&&(X.trns=h1),l1&&(X.pal=l1),q&&(X.smask=q),y&&(X.p=y),X},a.addImage=function(l,_,x,A,V,T,J,$,K){var h1="";if("string"!=typeof _){var l1=T;T=V,V=A,A=x,x=_,_=l1}if("object"===s2(l)&&!p(l)&&"imageData"in l){var q=l;l=q.imageData,_=q.format||_||"UNKNOWN",x=q.x||x||0,A=q.y||A||0,V=q.w||V,T=q.h||T,J=q.alias||J,$=q.compression||$,K=q.rotation||q.angle||K}var y=this.internal.getFilters();if(void 0===$&&-1!==y.indexOf("FlateEncode")&&($="SLOW"),"string"==typeof l&&(l=unescape(l)),isNaN(x)||isNaN(A))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var X,N,I,D,Y,R,P,v=function(){var b=this.internal.collections[i+"images"];return b||(this.internal.collections[i+"images"]=b={},this.internal.events.subscribe("putResources",h),this.internal.events.subscribe("putXobjectDict",f)),b}.call(this);if(!((X=G(l,v))||(p(l)&&(l=k(l,_)),(null==(P=J)||0===P.length)&&(J="string"==typeof(R=l)?a.sHashCode(R):a.isArrayBufferView(R)?a.sHashCode(a.arrayBufferToBinaryString(R)):null),X=G(J,v)))){if(this.isString(l)&&(""!==(h1=this.convertStringToImageData(l))||void 0!==(h1=a.loadFile(l)))&&(l=h1),_=this.getImageFileTypeByImageData(l,_),!z(_))throw new Error("addImage does not support files of type '"+_+"', please ensure that a plugin for '"+_+"' support is added.");if(this.supportsArrayBuffer()&&(l instanceof Uint8Array||(N=l,l=this.binaryStringToUint8Array(l))),!(X=this["process"+_.toUpperCase()](l,(Y=0,(D=v)&&(Y=Object.keys?Object.keys(D).length:function(b){var S=0;for(var r in b)b.hasOwnProperty(r)&&S++;return S}(D)),Y),J,((I=$)&&"string"==typeof I&&(I=I.toUpperCase()),I in a.image_compression?I:a.image_compression.NONE),N)))throw new Error("An unknown error occurred whilst processing the image")}return function(b,S,r,w,L,F,O,C){var W=function(M1,H,Z){return M1||H||(H=M1=-96),M1<0&&(M1=-1*Z.w*72/M1/this.internal.scaleFactor),H<0&&(H=-1*Z.h*72/H/this.internal.scaleFactor),0===M1&&(M1=H*Z.w/Z.h),0===H&&(H=M1*Z.h/Z.w),[M1,H]}
14.call(this,r,w,L),e1=this.internal.getCoordinateString,s1=this.internal.getVerticalCoordinateString;if(r=W[0],w=W[1],O[F]=L,C){C*=Math.PI/180;var u1=Math.cos(C),r1=Math.sin(C),m1=function(M1){return M1.toFixed(4)},o1=[m1(u1),m1(r1),m1(-1*r1),m1(u1),0,0,"cm"]}this.internal.write("q"),C?(this.internal.write([1,"0","0",1,e1(b),s1(S+w),"cm"].join(" ")),this.internal.write(o1.join(" ")),this.internal.write([e1(r),"0","0",e1(w),"0","0","cm"].join(" "))):this.internal.write([e1(r),"0","0",e1(w),e1(b),s1(S+w),"cm"].join(" ")),this.internal.write("/I"+L.i+" Do"),this.internal.write("Q")}.call(this,x,A,V,T,X,X.i,v,K),this},a.convertStringToImageData=function(l){var _,x="";if(this.isString(l)){var A;_=null!==(A=this.extractImageFromDataUrl(l))?A.data:l;try{x=atob(_)}catch(V){throw a.validateStringAsBase64(_)?new Error("atob-Error in jsPDF.convertStringToImageData "+V.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return x};var Q=function(l,_){return l.subarray(_,_+5)};a.processJPEG=function(l,_,x,A,V,T){var J,$=this.decode.DCT_DECODE;if(!this.isString(l)&&!this.isArrayBuffer(l)&&!this.isArrayBufferView(l))return null;if(this.isString(l)&&(J=function(K){var h1;if("JPEG"!==u(K))throw new Error("getJpegSize requires a binary string jpeg file");for(var l1=256*K.charCodeAt(4)+K.charCodeAt(5),q=4,y=K.length;q<y;){if(255!==K.charCodeAt(q+=l1))throw new Error("getJpegSize could not find the size of the image");if(192===K.charCodeAt(q+1)||193===K.charCodeAt(q+1)||194===K.charCodeAt(q+1)||195===K.charCodeAt(q+1)||196===K.charCodeAt(q+1)||197===K.charCodeAt(q+1)||198===K.charCodeAt(q+1)||199===K.charCodeAt(q+1))return h1=256*K.charCodeAt(q+5)+K.charCodeAt(q+6),[256*K.charCodeAt(q+7)+K.charCodeAt(q+8),h1,K.charCodeAt(q+9)];l1=256*K.charCodeAt(q+=2)+K.charCodeAt(q+1)}}(l)),this.isArrayBuffer(l)&&(l=new Uint8Array(l)),this.isArrayBufferView(l)&&(J=function(K){if(65496!=(K[0]<<8|K[1]))throw new Error("Supplied data is not a JPEG");for(var h1,l1=K.length,q=(K[4]<<8)+K[5],y=4;y<l1;){if(q=((h1=Q(K,y+=q))[2]<<8)+h1[3],(192===h1[1]||194===h1[1])&&255===h1[0]&&7<q)return{width:((h1=Q(K,y+5))[2]<<8)+h1[3],height:(h1[0]<<8)+h1[1],numcomponents:h1[4]};y+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(l),l=V||this.arrayBufferToBinaryString(l)),void 0===T)switch(J.numcomponents){case 1:T=this.color_spaces.DEVICE_GRAY;break;case 4:T=this.color_spaces.DEVICE_CMYK;break;default:T=this.color_spaces.DEVICE_RGB}return this.createImageInfo(l,J.width,J.height,T,8,$,_,x)},a.processJPG=function(){return this.processJPEG.apply(this,arguments)},a.getImageProperties=function(l){var _,x,A="";if(p(l)&&(l=k(l)),this.isString(l)&&(""!==(A=this.convertStringToImageData(l))||void 0!==(A=a.loadFile(l)))&&(l=A),x=this.getImageFileTypeByImageData(l),!z(x))throw new Error("addImage does not support files of type '"+x+"', please ensure that a plugin for '"+x+"' support is added.");if(this.supportsArrayBuffer()&&(l instanceof Uint8Array||(l=this.binaryStringToUint8Array(l))),!(_=this["process"+x.toUpperCase()](l)))throw new Error("An unknown error occurred whilst processing the image");return{fileType:x,width:_.w,height:_.h,colorSpace:_.cs,compressionMode:_.f,bitsPerComponent:_.bpc}}}($1.API),
15/**
16           * @license
17           * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
18           *
19           * Licensed under the MIT License.
20           * http://opensource.org/licenses/mit-license
21           */
22s4=$1.API,$1.API.events.push(["addPage",function(a){this.internal.getPageInfo(a.pageNumber).pageContext.annotations=[]}]),s4.events.push(["putPage",function(a){for(var i=this.internal.getPageInfoByObjId(a.objId),d=a.pageContext.annotations,u=function(J){if(void 0!==J&&""!=J)return!0},s=!1,h=0;h<d.length&&!s;h++)switch((p=d[h]).type){case"link":if(u(p.options.url)||u(p.options.pageNumber)){s=!0;break}case"reference":case"text":case"freetext":s=!0}if(0!=s){this.internal.write("/Annots [");var f=this.internal.getCoordinateString,z=this.internal.getVerticalCoordinateString;for(h=0;h<d.length;h++){var p;switch((p=d[h]).type){case"reference":this.internal.write(" "+p.object.objId+" 0 R ");break;case"text":var k=this.internal.newAdditionalObject(),G=this.internal.newAdditionalObject(),Q=p.title||"Note";V="<</Type /Annot /Subtype /Text "+(_="/Rect ["+f(p.bounds.x)+" "+z(p.bounds.y+p.bounds.h)+" "+f(p.bounds.x+p.bounds.w)+" "+z(p.bounds.y)+"] ")+"/Contents ("+p.contents+")",V+=" /Popup "+G.objId+" 0 R",V+=" /P "+i.objId+" 0 R",k.content=V+=" /T ("+Q+") >>";var l=k.objId+" 0 R";V="<</Type /Annot /Subtype /Popup "+(_="/Rect ["+f(p.bounds.x+30)+" "+z(p.bounds.y+p.bounds.h)+" "+f(p.bounds.x+p.bounds.w+30)+" "+z(p.bounds.y)+"] ")+" /Parent "+l,p.open&&(V+=" /Open true"),G.content=V+=" >>",this.internal.write(k.objId,"0 R",G.objId,"0 R");break;case"freetext":var _="/Rect ["+f(p.bounds.x)+" "+z(p.bounds.y)+" "+f(p.bounds.x+p.bounds.w)+" "+z(p.bounds.y+p.bounds.h)+"] ";V="<</Type /Annot /Subtype /FreeText "+_+"/Contents ("+p.contents+")",V+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(p.color||"#000000")+")",V+=" /Border [0 0 0]",this.internal.write(V+=" >>");break;case"link":if(p.options.name){var A=this.annotations._nameMap[p.options.name];p.options.pageNumber=A.page,p.options.top=A.y}else p.options.top||(p.options.top=0);_="/Rect ["+f(p.x)+" "+z(p.y)+" "+f(p.x+p.w)+" "+z(p.y+p.h)+"] ";var V="";if(p.options.url)V="<</Type /Annot /Subtype /Link "+_+"/Border [0 0 0] /A <</S /URI /URI ("+p.options.url+") >>";else if(p.options.pageNumber)switch(V="<</Type /Annot /Subtype /Link "+_+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(p.options.pageNumber).objId+" 0 R",p.options.magFactor=p.options.magFactor||"XYZ",p.options.magFactor){case"Fit":V+=" /Fit]";break;case"FitH":V+=" /FitH "+p.options.top+"]";break;case"FitV":p.options.left=p.options.left||0,V+=" /FitV "+p.options.left+"]";break;default:var T=z(p.options.top);p.options.left=p.options.left||0,void 0===p.options.zoom&&(p.options.zoom=0),V+=" /XYZ "+p.options.left+" "+T+" "+p.options.zoom+"]"}""!=V&&this.internal.write(V+=" >>")}}this.internal.write("]")}}]),s4.createAnnotation=function(a){var i=this.internal.getCurrentPageInfo();switch(a.type){case"link":this.link(a.bounds.x,a.bounds.y,a.bounds.w,a.bounds.h,a);break;case"text":case"freetext":i.pageContext.annotations.push(a)}},s4.link=function(a,i,d,u,s){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:a,y:i,w:d,h:u,options:s,type:"link"})},s4.textWithLink=function(a,i,d,u){var s=this.getTextWidth(a),h=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(a,i,d),this.link(i,(d+=.2*h)-h,s,h,u),s},s4.getTextWidth=function(a){var i=this.internal.getFontSize();
22return this.getStringUnitWidth(a)*i/this.internal.scaleFactor},
23/**
24           * @license
25           * Copyright (c) 2017 Aras Abbasi 
26           *
27           * Licensed under the MIT License.
28           * http://opensource.org/licenses/mit-license
29           */
30function(a){var i={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,6437
vendor: 1,530 bytes, line 30
307],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},d={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},u={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];a.__arabicParser__={};var h=a.__arabicParser__.isInArabicSubstitutionA=function(x){return void 0!==i[x.charCodeAt(0)]},f=a.__arabicParser__.isArabicLetter=function(x){return"string"==typeof x&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(x)},z=a.__arabicParser__.isArabicEndLetter=function(x){return f(x)&&h(x)&&i[x.charCodeAt(0)].length<=2},p=a.__arabicParser__.isArabicAlfLetter=function(x){return f(x)&&0<=s.indexOf(x.charCo
30deAt(0))},k=(a.__arabicParser__.arabicLetterHasIsolatedForm=function(x){return f(x)&&h(x)&&1<=i[x.charCodeAt(0)].length},a.__arabicParser__.arabicLetterHasFinalForm=function(x){return f(x)&&h(x)&&2<=i[x.charCodeAt(0)].length}),G=(a.__arabicParser__.arabicLetterHasInitialForm=function(x){return f(x)&&h(x)&&3<=i[x.charCodeAt(0)].length},a.__arabicParser__.arabicLetterHasMedialForm=function(x){return f(x)&&h(x)&&4==i[x.charCodeAt(0)].length}),Q=a.__arabicParser__.resolveLigatures=function(x){var A=0,V=d,T=0,J="",$=0;for(A=0;A<x.length;A+=1)void 0!==V[x.charCodeAt(A)]?($++,"number"==typeof(V=V[x.charCodeAt(A)])&&(T=-1!==(T=l(x.charAt(A),x.charAt(A-$),x.charAt(A+1)))?T:0,J+=String.fromCharCode(V),V=d,$=0),A===x.length-1&&(V=d,J+=x.charAt(A-($-1)),A-=$-1,$=0)):(V=d,J+=x.charAt(A-$),A-=$,$=0);return J},l=(a.__arabicParser__.isArabicDiacritic=function(x){return void 0!==x&&void 0!==u[x.charCodeAt(0)]},a.__arabicParser__.getCorrectForm=function(x,A,V){return f(x)?!1===h(x)?-1:!k(x)||!f(A)&&!f(V)||!f(V)&&z(A)||z(x)&&!f(A)||z(x)&&p(A)||z(x)&&z(A)?0:G(x)&&f(A)&&!z(A)&&f(V)&&k(V)?3:z(x)||!f(V)?1:2:-1}),_=a.__arabicParser__.processArabic=a.processArabic=function(x){var A=0,V=0,T=0,J="",$="",K="",h1=(x=x||"").split("\\s+"),l1=[];for(A=0;A<h1.length;A+=1){for(l1.push(""),V=0;V<h1[A].length;V+=1)$=h1[A][V-1],K=h1[A][V+1],f(J=h1[A][V])?(T=l(J,$,K),l1[A]+=-1!==T?String.fromCharCode(i[J.charCodeAt(0)][T]):J):l1[A]+=J;l1[A]=Q(l1[A])}return l1.join(" ")};a.events.push(["preProcessText",function(x){var A=x.text,T=[];if("[object Array]"===Object.prototype.toString.call(A)){var J=0;for(T=[],J=0;J<A.length;J+=1)"[object Array]"===Object.prototype.toString.call(A[J])?T.push([_(A[J][0]),A[J][1],A[J][2]]):T.push([_(A[J])]);x.text=T}else x.text=_(A)}])}($1.API),$1.API.autoPrint=function(a){var i;return"javascript"===((a=a||{}).variant=a.variant||"non-conform",a.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){i=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+i+" 0 R")})),this},
31/**
32           * @license
33           * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
34           *
35           * Licensed under the MIT License.
36           * http://opensource.org/licenses/mit-license
37           */
38Q4=$1.API,(I4=function(){var a=void 0;Object.defineProperty(this,"pdf",{get:function(){return a}
38,set:function(h){a=h}});var i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(h){i=isNaN(h)||!1===Number.isInteger(h)||h<0?150:h,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+1)}});var d=300;Object.defineProperty(this,"height",{get:function(){return d},set:function(h){d=isNaN(h)||!1===Number.isInteger(h)||h<0?300:h,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=d+1)}});var u=[];Object.defineProperty(this,"childNodes",{get:function(){return u},set:function(h){u=h}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(h){s=h}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(a,i){var d;if("2d"!==(a=a||"2d"))return null;for(d in i)this.pdf.context2d.hasOwnProperty(d)&&(this.pdf.context2d[d]=i[d]);return(this.pdf.context2d._canvas=this).pdf.context2d},I4.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Q4.events.push(["initialized",function(){this.canvas=new I4,this.canvas.pdf=this}]),f4={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},_4=1,S4=function(a,i,d,u,s){f4={x:a,y:i,w:d,h:u,ln:s}},P4=function(){return f4},K4={left:0,top:0,bottom:0},(
39/** 
40           * @license
41           * ====================================================================
42           * Copyright (c) 2013 Youssef Beddad, [email protected]
43           *               2013 Eduardo Menezes de Morais, [email protected]
44           *               2013 Lee Driscoll, https://github.com/lsdriscoll
45           *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
46           *               2014 James Hall, [email protected]
47           *               2014 Diego Casorran, https://github.com/diegocr
48           *
49           * 
50           * ====================================================================
51           */
52N1=$1.API).setHeaderFunction=function(a){b3=a},N1.getTextDimensions=function(a,i){var d=this.table_font_size||this.internal.getFontSize(),u=(this.internal.getFont(),(i=i||{}).scaleFactor||this.internal.scaleFactor),s=0,h=0,f=0;if("string"==typeof a)0!=(s=this.getStringUnitWidth(a)*d)&&(h=1);else{if("[object Array]"!==Object.prototype.toString.call(a))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var z=0;z<a.length;z++)s<(f=this.getStringUnitWidth(a[z])*d)&&(s=f);0!==s&&(h=a.length)}return{w:s/=u,h:Math.max((h*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/u,0)}},N1.cellAddPage=function(){var a=this.margins||K4;this.addPage(),S4(a.left,a.top,void 0,void 0),_4+=1},N1.cellInitialize=function(){f4={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},_4=1},N1.cell=function(a,i,d,u,s,h,f){var z=P4(),p=!1;if(void 0!==z.ln)if(z.ln===h)a=z.x+z.w,i=z.y;else{var k=this.margins||K4;z.y+z.h+u+13>=this.internal.pageSize.getHeight()-k.bottom&&(this.cellAddPage(),p=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(h,!0)),i=P4().y+P4().h,p&&(i=23)}if(void 0!==s[0])if(this.printingHeaderRow?this.rect(a,i,d,u,"FD"):this.rect(a,i,d,u),"right"===f){s instanceof Array||(s=[s]);for(var G=0;G<s.length;G++){var Q=s[G],l=this.getStringUnitWidth(Q)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(Q,a+d-l-3,i+this.internal.getLineHeight()*(G+1))}}else this.text(s,a+3,i+this.internal.getLineHeight());return S4(a,i,d,u,h),this},N1.arrayMax=function(a,i){var d,u,s,h=a[0];for(d=0,u=a.length;d<u;d+=1)s=a[d],i?-1===i(h,s)&&(h=s):h<s&&(h=s);return h},N1.table=function(a,i,d,u,s){if(!d)throw"No data for PDF table";var h,f,z,p,G,Q,l,_,x,A=[],V=[],T={},J={},$=[],K=[],h1=!1,l1=!0,q=12,y=K4;if(y.width=this.internal.pageSize.getWidth(),s&&(!0===s.autoSize&&(h1=!0),!1===s.printHeaders&&(l1=!1),s.fontSize&&(q=s.fontSize),s.css&&void 0!==s.css["font-size"]&&(q=16*s.css["font-size"]),s.margins&&(y=s.margins)),this.lnMod=0,f4={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},_4=1,this.printHeaders=l1,this.margins=y,this.setFontSize(q),this.table_font_size=q,null==u)A=Object.keys(d[0]);else if(u[0]&&"string"!=typeof u[0])for(f=0,z=u.length;f<z;f+=1)A.push((h=u[f]).name),V.push(h.prompt),J[h.name]=h.width*(19.049976/25.4);else A=u;if(h1)for(x=function(N){return N[h]},f=0,z=A.length;f<z;f+=1){for(T[h=A[f]]=d.map(x),$.push(this.getTextDimensions(V[f]||h,{scaleFactor:1}
52).w),Q=0,p=(G=T[h]).length;Q<p;Q+=1)$.push(this.getTextDimensions(G[Q],{scaleFactor:1}).w);J[h]=N1.arrayMax($),$=[]}if(l1){var X=this.calculateLineHeight(A,J,V.length?V:A);for(f=0,z=A.length;f<z;f+=1)K.push([a,i,J[h=A[f]],X,String(V.length?V[f]:h)]);this.setTableHeaderRow(K),this.printHeaderRow(1,!1)}for(f=0,z=d.length;f<z;f+=1)for(X=this.calculateLineHeight(A,J,l=d[f]),Q=0,_=A.length;Q<_;Q+=1)this.cell(a,i,J[h=A[Q]],X,l[h],f+2,h.align);return this.lastCellPos=f4,this.table_x=a,this.table_y=i,this},N1.calculateLineHeight=function(a,i,d){for(var u,s=0,h=0;h<a.length;h++){d[u=a[h]]=this.splitTextToSize(String(d[u]),i[u]-3);var f=this.internal.getLineHeight()*d[u].length+3;s<f&&(s=f)}return s},N1.setTableHeaderRow=function(a){this.tableHeaderRow=a},N1.printHeaderRow=function(a,i){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var d,u,s,h;if(this.printingHeaderRow=!0,void 0!==b3){var f=b3(this,_4);S4(f[0],f[1],f[2],f[3],-1)}this.setFontStyle("bold");var z=[];for(s=0,h=this.tableHeaderRow.length;s<h;s+=1)this.setFillColor(200,200,200),d=this.tableHeaderRow[s],i&&(this.margins.top=13,d[1]=this.margins&&this.margins.top||0,z.push(d)),u=[].concat(d),this.cell.apply(this,u.concat(a));0<z.length&&this.setTableHeaderRow(z),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(a,i){var d,u,s,h,f,z=function(r){return this.isStrokeTransparent=(r=r||{}).isStrokeTransparent||!1,this.strokeOpacity=r.strokeOpacity||1,this.strokeStyle=r.strokeStyle||"#000000",this.fillStyle=r.fillStyle||"#000000",this.isFillTransparent=r.isFillTransparent||!1,this.fillOpacity=r.fillOpacity||1,this.font=r.font||"10px sans-serif",this.textBaseline=r.textBaseline||"alphabetic",this.textAlign=r.textAlign||"left",this.lineWidth=r.lineWidth||1,this.lineJoin=r.lineJoin||"miter",this.lineCap=r.lineCap||"butt",this.path=r.path||[],this.transform=void 0!==r.transform?r.transform.clone():new S,this.globalCompositeOperation=r.globalCompositeOperation||"normal",this.globalAlpha=r.globalAlpha||1,this.clip_path=r.clip_path||[],this.currentPoint=r.currentPoint||new v,this.miterLimit=r.miterLimit||10,this.lastPoint=r.lastPoint||new v,this.ignoreClearRect="boolean"!=typeof r.ignoreClearRect||r.ignoreClearRect,this};a.events.push(["initialized",function(){this.context2d=new p(this),d=this.internal.f2,u=this.internal.getCoordinateString,
52s=this.internal.getVerticalCoordinateString,h=this.internal.getHorizontalCoordinate,f=this.internal.getVerticalCoordinate}]);var p=function(r){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return r}});var w=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return w},set:function(r1){w=Boolean(r1)}});var L=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return L},set:function(r1){L=Boolean(r1)}});var F=0;Object.defineProperty(this,"posX",{get:function(){return F},set:function(r1){isNaN(r1)||(F=r1)}});var O=0;Object.defineProperty(this,"posY",{get:function(){return O},set:function(r1){isNaN(r1)||(O=r1)}});var C=!1;Object.defineProperty(this,"autoPaging",{get:function(){return C},set:function(r1){C=Boolean(r1)}});var W=0;Object.defineProperty(this,"lastBreak",{get:function(){return W},set:function(r1){W=r1}});var e1=[];Object.defineProperty(this,"pageBreaks",{get:function(){return e1},set:function(r1){e1=r1}});var s1=new z;Object.defineProperty(this,"ctx",{get:function(){return s1},set:function(r1){r1 instanceof z&&(s1=r1)}}),Object.defineProperty(this,"path",{get:function(){return s1.path},set:function(r1){s1.path=r1}});var u1=[];Object.defineProperty(this,"ctxStack",{get:function(){return u1},set:function(r1){u1=r1}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(r1){var m1;m1=k(r1),this.ctx.fillStyle=m1.style,this.ctx.isFillTransparent=0===m1.a,this.ctx.fillOpacity=m1.a,this.pdf.setFillColor(m1.r,m1.g,m1.b,{a:m1.a}),this.pdf.setTextColor(m1.r,m1.g,m1.b,{a:m1.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(r1){var m1=k(r1);this.ctx.strokeStyle=m1.style,this.ctx.isStrokeTransparent=0===m1.a,this.ctx.strokeOpacity=m1.a,0===m1.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(m1.r,m1.g,m1.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(r1){-1!==["butt","round","square"].indexOf(r1)&&(this.ctx.lineCap=r1,this.pdf.setLineCap(r1))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(r1){isNaN(r1)||(this.ctx.lineWidth=r1,this.pdf.setLineWidth(r1))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(r1){-1!==["bevel","round","miter"].indexOf(r1)&&(this.ctx.lineJoin=r1,this.pdf.setLineJoin(r1))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(r1){isNaN(r1)||(this.ctx.miterLimit=r1,this.pdf.setMiterLimit(r1))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(r1){this.ctx.textBaseline=r1}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(r1){-1!==["right","end","center","left","start"].indexOf(r1)&&(this.ctx.textAlign=r1)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(r1){var m1;if(this.ctx.font=r1,null!==(m1=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(r1))){var o1=m1[1],M1=m1[3],H=m1[4],Z=m1[5],B=m1[6];H=Math.floor("px"===Z?parseFloat(H):"em"===Z?parseFloat(H)*this.pdf.getFontSize():parseFloat(H)),this.pdf.setFontSize(H);var E="";("bold"===M1||700<=parseInt(M1,10)||"bold"===o1)&&(E="bold"),"italic"===o1&&(E+="italic"),0===E.length&&(E="normal");for(var c1="",i1=B.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),_1={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",cursive:"Times",fantasy:"Times",serif:"Times"},d1=0;d1<i1.length;d1++){if(void 0!==this.pdf.internal.getFont(i1[d1],E,{noFallback:!0,disableWarning:!0})){c1=i1[d1];break}if("bolditalic"===E&&void 0!==this.pdf.internal.getFont(i1[d1],"bold",{noFallback:!0,disableWarning:!0}))c1=i1[d1],E="bold";else if(void 0!==this.pdf.internal.getFont(i1[d1],"normal",{noFallback:!0,disableWarning:!0})){c1=i1[d1],E="normal";break}}if(""===c1)for(d1=0;d1<i1.length;d1++)if(_1[i1[d1]]){c1=_1[i1[d1]];break}this.pdf.setFont(c1=""===c1?"Times":c1,E)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(r1){this.ctx.globalCompositeOperation=r1}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(r1){this.ctx.globalAlpha=r1}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(r1){this.ctx.ignoreClearRect=Boolean(r1)}})};p.prototype.fill=function(){A.call(this,"fill",!1)},p.prototype.stroke=function(){A.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(r,w){if(isNaN(r)||isNaN(w))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
52jsPDF.context2d.moveTo");var L=this.ctx.transform.applyToPoint(new v(r,w));this.path.push({type:"mt",x:L.x,y:L.y}),this.ctx.lastPoint=new v(r,w)},p.prototype.closePath=function(){var r=new v(0,0),w=0;for(w=this.path.length-1;-1!==w;w--)if("begin"===this.path[w].type&&"object"===s2(this.path[w+1])&&"number"==typeof this.path[w+1].x){r=new v(this.path[w+1].x,this.path[w+1].y),this.path.push({type:"lt",x:r.x,y:r.y});break}"object"===s2(this.path[w+2])&&"number"==typeof this.path[w+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[w+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new v(r.x,r.y)},p.prototype.lineTo=function(r,w){if(isNaN(r)||isNaN(w))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var L=this.ctx.transform.applyToPoint(new v(r,w));this.path.push({type:"lt",x:L.x,y:L.y}),this.ctx.lastPoint=new v(L.x,L.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},p.prototype.quadraticCurveTo=function(r,w,L,F){if(isNaN(L)||isNaN(F)||isNaN(r)||isNaN(w))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var O=this.ctx.transform.applyToPoint(new v(L,F)),C=this.ctx.transform.applyToPoint(new v(r,w));this.path.push({type:"qct",x1:C.x,y1:C.y,x:O.x,y:O.y}),this.ctx.lastPoint=new v(O.x,O.y)},p.prototype.bezierCurveTo=function(r,w,L,F,O,C){if(isNaN(O)||isNaN(C)||isNaN(r)||isNaN(w)||isNaN(L)||isNaN(F))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var W=this.ctx.transform.applyToPoint(new v(O,C)),e1=this.ctx.transform.applyToPoint(new v(r,w)),s1=this.ctx.transform.applyToPoint(new v(L,F));this.path.push({type:"bct",x1:e1.x,y1:e1.y,x2:s1.x,y2:s1.y,x:W.x,y:W.y}),this.ctx.lastPoint=new v(W.x,W.y)},p.prototype.arc=function(r,w,L,F,O,C){if(isNaN(r)||isNaN(w)||isNaN(L)||isNaN(F)||isNaN(O))throw console.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(C=Boolean(C),!this.ctx.transform.isIdentity){var W=this.ctx.transform.applyToPoint(new v(r,w));r=W.x,w=W.y;var e1=this.ctx.transform.applyToPoint(new v(0,L)),s1=this.ctx.transform.applyToPoint(new v(0,0));L=Math.sqrt(Math.pow(e1.x-s1.x,2)+Math.pow(e1.y-s1.y,2))}Math.abs(O-F)>=2*Math.PI&&(F=0,O=2*Math.PI),this.path.push({type:"arc",x:r,y:w,radius:L,startAngle:F,endAngle:O,counterclockwise:C})},p.prototype.arcTo=function(r,w,L,F,O){throw new Error("arcTo not implemented.")},p.prototype.rect=function(r,w,L,F){if(isNaN(r)||isNaN(w)||isNaN(L)||isNaN(F))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(r,w),this.lineTo(r+L,w),this.lineTo(r+L,w+F),this.lineTo(r,w+F),this.lineTo(r,w),this.lineTo(r+L,w),this.lineTo(r,w)},p.prototype.fillRect=function(r,w,L,F){if(isNaN(r)||isNaN(w)||isNaN(L)||isNaN(F))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!G.call(this)){var O={};"butt"!==this.lineCap&&(O.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(O.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(r,w,L,F),this.fill(),O.hasOwnProperty("lineCap")&&(this.lineCap=O.lineCap),O.hasOwnProperty("lineJoin")&&(this.lineJoin=O.lineJoin)}},p.prototype.strokeRect=function(r,w,L,F){if(isNaN(r)||isNaN(w)||isNaN(L)||isNaN(F))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Q.call(this)||(this.beginPath(),this.rect(r,w,L,F),this.stroke())},p.prototype.clearRect=function(r,w,L,F){if(isNaN(r)||isNaN(w)||isNaN(L)||isNaN(F))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(r,w,L,F))},p.prototype.save=function(r){r="boolean"!=typeof r||r;for(var w=this.pdf.internal.getCurrentPageInfo().pageNumber,L=0;L<this.pdf.internal.getNumberOfPages();L++)this.pdf.setPage(L+1),this.pdf.internal.out("q");
vendor: 4,119 bytes, line 52
52if(this.pdf.setPage(w),r){this.ctx.fontSize=this.pdf.internal.getFontSize();var F=new z(this.ctx);this.ctxStack.push(this.ctx),this.ctx=F}},p.prototype.restore=function(r){r="boolean"!=typeof r||r;for(var w=this.pdf.internal.getCurrentPageInfo().pageNumber,L=0;L<this.pdf.internal.getNumberOfPages();L++)this.pdf.setPage(L+1),this.pdf.internal.out("Q");this.pdf.setPage(w),r&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var k=function(r){var w,L,F,O;if(!0===r.isCanvasGradient&&(r=r.getColor()),!r)return{r:0,g:0,b:0,a:0,style:r};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(r))O=F=L=w=0;else{var C=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(r);if(null!==C)w=parseInt(C[1]),L=parseInt(C[2]),F=parseInt(C[3]),O=1;else if(null!==(C=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/.exec(r)))w=parseInt(C[1]),L=parseInt(C[2]),F=parseInt(C[3]),O=parseFloat(C[4]);else{if(O=1,"string"==typeof r&&"#"!==r.charAt(0)){var W=new RGBColor(r);r=W.ok?W.toHex():"#000000"}4===r.length?(w=r.substring(1,2),w+=w,L=r.substring(2,3),L+=L,F=r.substring(3,4),F+=F):(w=r.substring(1,3),L=r.substring(3,5),F=r.substring(5,7)),w=parseInt(w,16),L=parseInt(L,16),F=parseInt(F,16)}}return{r:w,g:L,b:F,a:O,style:r}},G=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},Q=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(r,w,L,F){if(isNaN(w)||isNaN(L)||"string"!=typeof r)throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(F=isNaN(F)?void 0:F,!G.call(this)){L=T.call(this,L);var O=D(this.ctx.transform.rotation);l1.call(this,{text:r,x:w,y:L,scale:this.ctx.transform.scaleX,angle:O,align:this.textAlign,maxWidth:F})}},p.prototype.strokeText=function(r,w,L,F){if(isNaN(w)||isNaN(L)||"string"!=typeof r)throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Q.call(this)){F=isNaN(F)?void 0:F,L=T.call(this,L);var O=D(this.ctx.transform.rotation);l1.call(this,{text:r,x:w,y:L,scale:this.ctx.transform.scaleX,renderingMode:"stroke",angle:O,align:this.textAlign,maxWidth:F})}},p.prototype.measureText=function(r){if("string"!=typeof r)throw console.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var w=this.pdf,L=this.pdf.internal.scaleFactor,F=w.internal.getFontSize(),O=w.getStringUnitWidth(r)*F/w.internal.scaleFactor;return new function(C){var W=(C=C||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return W}}),this}({width:O*=Math.round(96*L/72*1e4)/1e4})},p.prototype.scale=function(r,w){if(isNaN(r)||isNaN(w))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var L=new S(r,0,0,w,0,0);this.ctx.transform=this.ctx.transform.multiply(L)},p.prototype.rotate=function(r){if(isNaN(r))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var w=new S(Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0);this.ctx.transform=this.ctx.transform.multiply(w)},p.prototype.translate=function(r,w){if(isNaN(r)||isNaN(w))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var L=new S(1,0,0,1,r,w);this.ctx.transform=this.ctx.transform.multiply(L)},p.prototype.transform=function(r,w,L,F,O,C){if(isNaN(r)||isNaN(w)||isNaN(L)||isNaN(F)||isNaN(O)||isNaN(C))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to 
52jsPDF.context2d.transform");var W=new S(r,w,L,F,O,C);this.ctx.transform=this.ctx.transform.multiply(W)},p.prototype.setTransform=function(r,w,L,F,O,C){r=isNaN(r)?1:r,w=isNaN(w)?0:w,L=isNaN(L)?0:L,F=isNaN(F)?1:F,O=isNaN(O)?0:O,C=isNaN(C)?0:C,this.ctx.transform=new S(r,w,L,F,O,C)},p.prototype.drawImage=function(r,w,L,F,O,C,W,e1,s1){var u1=this.pdf.getImageProperties(r),r1=1,m1=1,o1=1,M1=1;void 0!==F&&void 0!==e1&&(o1=e1/F,M1=s1/O,r1=u1.width/F*e1/F,m1=u1.height/O*s1/O),void 0===C&&(C=w,W=L,L=w=0),void 0!==F&&void 0===e1&&(e1=F,s1=O),void 0===F&&void 0===e1&&(e1=u1.width,s1=u1.height);for(var B,H=this.ctx.transform.decompose(),Z=D(H.rotate.shx),E=new S,c1=((E=(E=(E=E.multiply(H.translate)).multiply(H.skew)).multiply(H.scale)).applyToPoint(new v(e1,s1)),E.applyToRectangle(new b(C-w*o1,W-L*M1,F*r1,O*m1))),i1=l.call(this,c1),_1=[],d1=0;d1<i1.length;d1+=1)-1===_1.indexOf(i1[d1])&&_1.push(i1[d1]);if(_1.sort(),this.autoPaging)for(var V1=_1[_1.length-1],E1=_1[0];E1<V1+1;E1++){if(this.pdf.setPage(E1),0!==this.ctx.clip_path.length){var S1=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(B,this.posX,-1*this.pdf.internal.pageSize.height*(E1-1)+this.posY),V.call(this,"fill",!0),this.path=S1}var O1=JSON.parse(JSON.stringify(c1));O1=x([O1],this.posX,-1*this.pdf.internal.pageSize.height*(E1-1)+this.posY)[0],this.pdf.addImage(r,"jpg",O1.x,O1.y,O1.w,O1.h,null,null,Z)}else this.pdf.addImage(r,"jpg",c1.x,c1.y,c1.w,c1.h,null,null,Z)};var l=function(r,w,L){var F=[];switch(w=w||this.pdf.internal.pageSize.width,L=L||this.pdf.internal.pageSize.height,r.type){default:case"mt":case"lt":F.push(Math.floor((r.y+this.posY)/L)+1);break;case"arc":F.push(Math.floor((r.y+this.posY-r.radius)/L)+1),F.push(Math.floor((r.y+this.posY+r.radius)/L)+1);break;case"qct":var O=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,r.x1,r.y1,r.x,r.y);F.push(Math.floor(O.y/L)+1),F.push(Math.floor((O.y+O.h)/L)+1);break;case"bct":var C=P(this.ctx.lastPoint.x,this.ctx.lastPoint.y,r.x1,r.y1,r.x2,r.y2,r.x,r.y);F.push(Math.floor(C.y/L)+1),F.push(Math.floor((C.y+C.h)/L)+1);break;case"rect":F.push(Math.floor((r.y+this.posY)/L)+1),F.push(Math.floor((r.y+r.h+this.posY)/L)+1)}for(var W=0;W<F.length;W+=1)for(;this.pdf.internal.getNumberOfPages()<F[W];)_.call(this);return F},_=function(){var r=this.fillStyle,w=this.strokeStyle,L=this.font,F=this.lineCap,O=this.lineWidth,C=this.lineJoin;this.pdf.addPage(),this.fillStyle=r,this.strokeStyle=w,this.font=L,this.lineCap=F,this.lineWidth=O,this.lineJoin=C},x=function(r,w,L){for(var F=0;F<r.length;F++)switch(r[F].type){case"bct":r[F].x2+=w,r[F].y2+=L;case"qct":r[F].x1+=w,r[F].y1+=L;default:r[F].x+=w,r[F].y+=L}return r},A=function(r,w){for(var L,F,O=this.fillStyle,C=this.strokeStyle,W=this.lineCap,e1=this.lineWidth,s1=this.lineJoin,u1=JSON.parse(JSON.stringify(this.path)),r1=JSON.parse(JSON.stringify(this.path)),m1=[],o1=0;o1<r1.length;o1++)if(void 0!==r1[o1].x)for(var M1=l.call(this,r1[o1]),H=0;H<M1.length;H+=1)-1===m1.indexOf(M1[H])&&m1.push(M1[H]);for(o1=0;o1<m1.length;o1++)for(;this.pdf.internal.getNumberOfPages()<m1[o1];)_.call(this);if(m1.sort(),this.autoPaging){var B=m1[m1.length-1];for(o1=m1[0];o1<B+1;o1++){if(this.pdf.setPage(o1),this.fillStyle=O,this.strokeStyle=C,this.lineCap=W,this.lineWidth=e1,this.lineJoin=s1,0!==this.ctx.clip_path.length){var E=this.path;L=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(L,this.posX,-1*this.pdf.internal.pageSize.height*(o1-1)+this.posY),V.call(this,r,!0),this.path=E}F=JSON.parse(JSON.stringify(u1)),this.path=x(F,this.posX,-1*this.pdf.internal.pageSize.height*(o1-1)+this.posY),!1!==w&&0!==o1||V.call(this,r,w)}}else V.call(this,r,w);this.path=u1},V=function(r,w){if(("stroke"!==r||w||!Q.call(this))&&("stroke"===r||w||!G.call(this))){for(var F,L=[],O=this.path,C=0;C<O.length;C++){var W=O[C];switch(W.type){case"begin":L.push({begin:!0});break;case"close":L.push({close:!0});break;case"mt":L.push({start:W,deltas:[],abs:[]});break;case"lt":var e1=L.length;if(!isNaN(O[C-1].x)){var s1=[W.x-O[C-1].x,W.y-O[C-1].y];if(0<e1)for(;0<=e1;e1--)if(!0!==L[e1-1].close&&!0!==L[e1-1].begin){L[e1-1].deltas.push(s1),L[e1-1].abs.push(W);break}}break;case"bct":L[L.length-1].deltas.push(s1=[W.x1-O[C-1].x,W.y1-O[C-1].y,W.x2-O[C-1].x,W.y2-O[C-1].y,W.x-O[C-1].x,W.y-O[C-1].y]);break;case"qct":L[L.length-1].deltas.push(s1=[O[C-1].x+2/3*(W.x1-O[C-1].x)-O[C-1].x,O[C-1].y+2/3*(W.y1-O[C-1].y)-O[C-1].y,W.x+2/3*(W.x1-W.x)-O[C-1].x,W.y+2/3*(W.y1-W.y)-O[C-1].y,W.x-O[C-1].x,W.y-O[C-1].y]);break;case"arc":L.push({deltas:[],abs:[],arc:!0}),Array.isArray(L[L.length-1].abs)&&L[L.length-1].abs.push(W)}}for(F=w?null:"stroke"===r?"stroke":"fill",C=0;C<L.length;C++){if(L[C].arc)for(var Z=L[C].abs,B=0;B<Z.length;B++){var E=Z[B];if(void 0!==E.startAngle){var c1=D(E.startAngle),i1=D(E.endAngle),_1=E.x,d1=E.y;J.call(this,_1,d1,E.radius,c1,i1,E.counterclockwise,F,w)}else q.call(this,E.x,E.y)}!L[C].arc&&!0!==L[C].close&&!0!==L[C].begin&&y.call(this,L[C].deltas,_1=L[C].start.x,d1=L[C].start.y,null,null)}F&&$.call(this,F),w&&K.call(this)}},T=function(r){var w=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,L=w*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return r-L;case"top":return r+w-L;case"hanging":return r+w-2*L;case"middle":return r+w/2-L;default:return r}};p.prototype.createLinearGradient=function(){var r=function(){};return r.colorStops=[],r.addColorStop=function(w,L){this.colorStops.push([w,L])},r.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},r.isCanvasGradient=!0,r},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var J=function(r,w,L,F,O,C,W,e1){for(var s1=Y(F),u1=Y(O),r1=N.call(this,L,s1,u1,C),m1=0;m1<r1.length;m1++){var o1=r1[m1];0===m1&&h1.call(this,o1.x1+r,o1.y1+w),X.call(this,r,w,o1.x2,o1.y2,o1.x3,o1.y3,o1.x4,o1.y4)}e1?K.call(this):$.call(this,W)},$=function(r){switch(r){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},K=function(){this.pdf.clip()},h1=function(r,w){this.pdf.internal.out(u(r)+" "+s(w)+" m")},l1=function(r){var w;switch(r.align){case"right":case"end":w="right";break;case"center":w="center";break;default:w="left"}var L=this.ctx.transform.applyToPoint(new v(r.x,r.y)),F=this.ctx.transform.decompose(),O=new S;O=(O=(O=O.multiply(F.translate)).multiply(F.skew)).multiply(F.scale);for(var C,W=this.pdf.getTextDimensions(r.text),e1=this.ctx.transform.applyToRectangle(new b(r.x,r.y,W.w,W.h)),s1=O.applyToRectangle(new b(r.x,r.y-W.h,W.w,W.h)),u1=l.call(this,s1),r1=[],m1=0;m1<u1.length;m1+=1)-1===r1.indexOf(u1[m1])&&r1.push(u1[m1]);if(r1.sort(),!0===this.autoPaging)for(var M1=r1[r1.length-1],H=r1[0];H<M1+1;H++){if(this.pdf.setPage(H),0!==this.ctx.clip_path.length){var Z=this.path;C=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(C,this.posX,-1*this.pdf.internal.pageSize.height*(H-1)+this.posY),V.call(this,"fill",!0),this.path=Z}var B=JSON.parse(JSON.stringify(e1));if(B=x([B],this.posX,-1*this.pdf.internal.pageSize.height*(H-1)+this.posY)[0],.01<=r.scale){var E=this.pdf.internal.getFontSize();this.pdf.setFontSize(E*r.scale)}this.pdf.text(r.text,B.x,B.y,{angle:r.angle,align:w,renderingMode:r.renderingMode,maxWidth:r.maxWidth}),.01<=r.scale&&this.pdf.setFontSize(E)}else.01<=r.scale&&(E=this.pdf.internal.getFontSize(),this.pdf.setFontSize(E*r.scale)),this.pdf.text(r.text,L.x+this.posX,L.y+this.posY,{angle:r.angle,align:w,renderingMode:r.renderingMode,maxWidth:r.maxWidth}),.01<=r.scale&&this.pdf.setFontSize(E)}
52,q=function(r,w,L,F){F=F||0,this.pdf.internal.out(u(r+(L=L||0))+" "+s(w+F)+" l")},y=function(r,w,L){return this.pdf.lines(r,w,L,null,null)},X=function(r,w,L,F,O,C,W,e1){this.pdf.internal.out([d(h(L+r)),d(f(F+w)),d(h(O+r)),d(f(C+w)),d(h(W+r)),d(f(e1+w)),"c"].join(" "))},N=function(r,w,L,F){var O=2*Math.PI,C=w;(C<O||O<C)&&(C%=O);var W=L;(W<O||O<W)&&(W%=O);for(var e1=[],s1=Math.PI/2,u1=F?-1:1,r1=w,m1=Math.min(O,Math.abs(W-C));1e-5<m1;){var o1=r1+u1*Math.min(m1,s1);e1.push(I.call(this,r,r1,o1)),m1-=Math.abs(o1-r1),r1=o1}return e1},I=function(r,w,L){var F=(L-w)/2,O=r*Math.cos(F),C=r*Math.sin(F),W=O,e1=-C,s1=W*W+e1*e1,u1=s1+W*O+e1*C,r1=4/3*(Math.sqrt(2*s1*u1)-u1)/(W*C-e1*O),m1=W-r1*e1,o1=e1+r1*W,M1=m1,H=-o1,Z=F+w,B=Math.cos(Z),E=Math.sin(Z);return{x1:r*Math.cos(w),y1:r*Math.sin(w),x2:m1*B-o1*E,y2:m1*E+o1*B,x3:M1*B-H*E,y3:M1*E+H*B,x4:r*Math.cos(L),y4:r*Math.sin(L)}},D=function(r){return 180*r/Math.PI},Y=function(r){return r*Math.PI/180},R=function(r,w,L,F,O,C){var W=r+.5*(L-r),e1=w+.5*(F-w),s1=O+.5*(L-O),u1=C+.5*(F-C),r1=Math.min(r,O,W,s1),m1=Math.max(r,O,W,s1),o1=Math.min(w,C,e1,u1),M1=Math.max(w,C,e1,u1);return new b(r1,o1,m1-r1,M1-o1)},P=function(r,w,L,F,O,C,W,e1){for(var s1,u1,r1,m1,o1,M1,H,Z,B,E,c1,i1,_1,d1=L-r,U1=F-w,V1=O-L,E1=C-F,S1=W-O,O1=e1-C,G1=0;G1<41;G1++)Z=(M1=(u1=r+(s1=G1/40)*d1)+s1*((m1=L+s1*V1)-u1))+s1*(m1+s1*(O+s1*S1-m1)-M1),B=(H=(r1=w+s1*U1)+s1*((o1=F+s1*E1)-r1))+s1*(o1+s1*(C+s1*O1-o1)-H),_1=0==G1?(i1=E=Z,c1=B):(E=Math.min(E,Z),c1=Math.min(c1,B),i1=Math.max(i1,Z),Math.max(_1,B));return new b(Math.round(E),Math.round(c1),Math.round(i1-E),Math.round(_1-c1))},v=function(r,w){var L=r||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return L},set:function(C){isNaN(C)||(L=parseFloat(C))}});var F=w||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return F},set:function(C){isNaN(C)||(F=parseFloat(C))}});var O="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return O},set:function(C){O=C.toString()}}),this},b=function(r,w,L,F){v.call(this,r,w),this.type="rect";var O=L||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return O},set:function(W){isNaN(W)||(O=parseFloat(W))}});var C=F||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return C},set:function(W){isNaN(W)||(C=parseFloat(W))}}),this},S=function(r,w,L,F,O,C){var W=[];return Object.defineProperty(this,"sx",{get:function(){return W[0]},set:function(e1){W[0]=Math.round(1e5*e1)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return W[1]},set:function(e1){W[1]=Math.round(1e5*e1)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return W[2]},set:function(e1){W[2]=Math.round(1e5*e1)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return W[3]}
52,set:function(e1){W[3]=Math.round(1e5*e1)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return W[4]},set:function(e1){W[4]=Math.round(1e5*e1)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return W[5]},set:function(e1){W[5]=Math.round(1e5*e1)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),this.sx=isNaN(r)?1:r,this.shy=isNaN(w)?0:w,this.shx=isNaN(L)?0:L,this.sy=isNaN(F)?1:F,this.tx=isNaN(O)?0:O,this.ty=isNaN(C)?0:C,this};S.prototype.multiply=function(r){return new S(r.sx*this.sx+r.shy*this.shx,r.sx*this.shy+r.shy*this.sy,r.shx*this.sx+r.sy*this.shx,r.shx*this.shy+r.sy*this.sy,r.tx*this.sx+r.ty*this.shx+this.tx,r.tx*this.shy+r.ty*this.sy+this.ty)},S.prototype.decompose=function(){var r=this.sx,w=this.shy,L=this.shx,F=this.sy,O=this.tx,C=this.ty,W=Math.sqrt(r*r+w*w),e1=(r/=W)*L+(w/=W)*F;L-=r*e1,F-=w*e1;var s1=Math.sqrt(L*L+F*F);return e1/=s1,r*(F/=s1)<w*(L/=s1)&&(r=-r,w=-w,e1=-e1,W=-W),{scale:new S(W,0,0,s1,0,0),translate:new S(1,0,0,1,O,C),rotate:new S(r,w,-w,r,0,0),skew:new S(1,0,e1,1,0,0)}},S.prototype.applyToPoint=function(r){return new v(r.x*this.sx+r.y*this.shx+this.tx,r.x*this.shy+r.y*this.sy+this.ty)},S.prototype.applyToRectangle=function(r){var w=this.applyToPoint(r),L=this.applyToPoint(new v(r.x+r.w,r.y+r.h));return new b(w.x,w.y,L.x-w.x,L.y-w.y)},S.prototype.clone=function(){return new S(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)}}($1.API,typeof self<"u"&&self||typeof window<"u"&&window||typeof global<"u"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),y3=function(a){var i,d,u,s,h,f,z,p,k,G;for(/[^\x00-\xFF]/.test(a),d=[],u=0,s=(a+=i="\0\0\0\0".slice(a.length%4||4)).length;u<s;u+=4)0!==(h=(a.charCodeAt(u)<<24)+(a.charCodeAt(u+1)<<16)+(a.charCodeAt(u+2)<<8)+a.charCodeAt(u+3))?(f=(h=((h=((h=((h=(h-(G=h%85))/85)-(k=h%85))/85)-(p=h%85))/85)-(z=h%85))/85)%85,d.push(f+33,z+33,p+33,k+33,G+33)):d.push(122);return function(Q,l){for(var _=i.length;0<_;_--)Q.pop()}(d),String.fromCharCode.apply(String,d)+"~>"},K3=function(a){var i,d,u,s,h,f=String,z="length",p="charCodeAt",k="slice",G="replace";for(a[k](-2),a=a[k](0,-2)[G](/\s/g,"")[G]("z","!!!!!"),u=[],s=0,h=(a+=i="uuuuu"[k](a[z]%5||5))[z];s<h;s+=5)d=52200625*(a[p](s)-33)+614125*(a[p](s+1)-33)+7225*(a[p](s+2)-33)+85*(a[p](s+3)-33)+(a[p](s+4)-33),u.push(255&d>>24,255&d>>16,255&d>>8,255&d);return function(Q,l){for(var _=i[z];0<_;_--)Q.pop()}(u),f.fromCharCode.apply(f,u)},X4=function(a){for(var i="",d=0;d<a.length;d+=1)i+=("0"+a.charCodeAt(d).toString(16)).slice(-2);return i+">"},t3=function(a){var i=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(a=a.replace(/\s/g,"")).indexOf(">")&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),!1===i.test(a))return"";for(var d="",u=0;u<a.length;u+=2)d+=String.fromCharCode("0x"+(a[u]+a[u+1]));return d},L3=function(a,i){i=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},i);for(var d,u,s=[],h=a.length;h--;)s[h]=a.charCodeAt(h);return d=$4.adler32cs.from(a),(u=new Deflater(6)).append(new Uint8Array(s)),a=u.flush(),(s=new Uint8Array(a.length+6)).set(new Uint8Array([120,156])),s.set(a,2),s.set(new Uint8Array([255&d,d>>8&255,d>>16&255,d>>24&255]),a.length+2),String.fromCharCode.apply(null,s)},($4=$1.API).processDataByFilters=function(a,i){var d=0,u=a||"",s=[];for("string"==typeof(i=i||[])&&(i=[i]),d=0;d<i.length;d+=1)switch(i[d]){case"ASCII85Decode":case"/ASCII85Decode":u=K3(u),s.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=y3(u),s.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=t3(u),s.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=X4(u),s.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=L3(u),s.push("/FlateDecode");break;default:throw'The filter: "'+i[d]+'" is not implemented'}return{data:u,reverseChain:s.reverse().join(" ")}},(A3=$1.API).loadFile=function(a,i,d){var u;i=i||!0,d=d||function(){};try{u=function(s,h,f){var z=new XMLHttpRequest,p=[],k=0,G=function(Q){var l=Q.length,_=String.fromCharCode;for(k=0;k<l;k+=1)p.push(_(255&Q.charCodeAt(k)));return p.join("")};if(z.open("GET",s,!h),z.overrideMimeType("text/plain;
52 charset=x-user-defined"),!1===h&&(z.onload=function(){return G(this.responseText)}),z.send(null),200===z.status)return h?G(z.responseText):void 0;console.warn('Unable to load file "'+s+'"')}(a,i)}catch{u=void 0}return u},A3.loadImageFile=A3.loadFile,z4=$1.API,H3=typeof window<"u"&&window||typeof global<"u"&&global,w4=function(a){var i=s2(a);return"undefined"===i?"undefined":"string"===i||a instanceof String?"string":"number"===i||a instanceof Number?"number":"function"===i||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&1===a.nodeType?"element":"object"===i?"object":"unknown"},$2=function(a,i){var d=document.createElement(a);if(i.className&&(d.className=i.className),i.innerHTML){d.innerHTML=i.innerHTML;for(var u=d.getElementsByTagName("script"),s=u.length;0<s--;null)u[s].parentNode.removeChild(u[s])}for(var h in i.style)d.style[h]=i.style[h];return d},(((j1=function a(i){var d=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),u=a.convert(Promise.resolve(),d);return(u=u.setProgress(1,a,1,[a])).set(i)}).prototype=Object.create(Promise.prototype)).constructor=j1).convert=function(a,i){return a.__proto__=i||j1.prototype,a},j1.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{}}},j1.prototype.from=function(a,i){return this.then(function(){switch(i=i||function(d){switch(w4(d)){case"string":return"string";case"element":return"canvas"===d.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.set({src:$2("div",{innerHTML:a})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},j1.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},j1.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:"white"},i=function d(u,s){for(var h=3===u.nodeType?document.createTextNode(u.nodeValue):u.cloneNode(!1),f=u.firstChild;f;f=f.nextSibling)!0!==s&&1===f.nodeType&&"SCRIPT"===f.nodeName||h.appendChild(d(f,s));return 1===u.nodeType&&("CANVAS"===u.nodeName?(h.width=u.width,h.height=u.height,h.getContext("2d").drawImage(u,0,0)):"TEXTAREA"!==u.nodeName&&"SELECT"!==u.nodeName||(h.value=u.value),h.addEventListener("load",function(){h.scrollTop=u.scrollTop,h.scrollLeft=u.scrollLeft},!0)),h}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===i.tagName&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=$2("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=$2("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(i),this.prop.container.firstChild.appendChild($2("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},j1.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(function(){var i=Object.assign({},this.opt.html2canvas);if(delete i.onrendered,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,i)}).then(function(i){(this.opt.html2canvas.onrendered||function(){})(i),this.prop.canvas=i,document.body.removeChild(this.prop.overlay)})},j1.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(function(){var i=this.opt.jsPDF,d=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete d.onrendered,i.context2d.autoPaging=!0,i.context2d.posX=this.opt.x,i.context2d.posY=this.opt.y,d.windowHeight=d.windowHeight||0,d.windowHeight=0==d.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,d)}).then(function(i){(this.opt.html2canvas.onrendered||function(){})(i),this.prop.canvas=i,document.body.removeChild(this.prop.overlay)})},j1.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},j1.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},j1.prototype.output=function(a,i,d){return"img"===(d=d||"pdf").toLowerCase()||"image"===d.toLowerCase()?this.outputImg(a,i):this.outputPdf(a,i)},j1.prototype.outputPdf=function(a,i){return this.thenList([function(){return this.prop.pdf||this.toPdf(
vendor: 5,228 bytes, line 52
52)}]).then(function(){return this.prop.pdf.output(a,i)})},j1.prototype.outputImg=function(a,i){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},j1.prototype.isHtml2CanvasLoaded=function(){var a=void 0!==H3.html2canvas;return a||console.error("html2canvas not loaded."),a},j1.prototype.save=function(a){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},j1.prototype.doCallback=function(a){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},j1.prototype.set=function(a){if("object"!==w4(a))return this;var i=Object.keys(a||{}).map(function(d){if(d in j1.template.prop)return function(){this.prop[d]=a[d]};switch(d){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[d]=a[d]}}},this);return this.then(function(){return this.thenList(i)})},j1.prototype.get=function(a,i){return this.then(function(){var d=a in j1.template.prop?this.prop[a]:this.opt[a];return i?i(d):d})},j1.prototype.setMargin=function(a){return this.then(function(){switch(w4(a)){case"number":a=[a,a,a,a];case"array":if(2===a.length&&(a=[a[0],a[1],a[0],a[1]]),4===a.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},j1.prototype.setPageSize=function(a){function i(d,u){return Math.floor(d*u/72*96)}return this.then(function(){(a=a||$1.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:i(a.inner.width,a.k),height:i(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},j1.prototype.setProgress=function(a,i,d,u){return null!=a&&(this.progress.val=a),null!=i&&(this.progress.state=i),null!=d&&(this.progress.n=d),null!=u&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},j1.prototype.updateProgress=function(a,i,d,u){return this.setProgress(a?this.progress.val+a:null,i||null,d?this.progress.n+d:null,u?this.progress.stack.concat(u):null)},j1.prototype.then=function(a,i){var d=this;return this.thenCore(a,i,function(u,s){return d.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(h){return d.updateProgress(null,u),h}).then(u,s).then(function(h){return d.updateProgress(1),h})})},j1.prototype.thenCore=function(a,i,d){d=d||Promise.prototype.then;var u=this;a&&(a=a.bind(u)),i&&(i=i.bind(u));var s=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?u:j1.convert(Object.assign({},u),Promise.prototype),h=d.call(s,a,i);return j1.convert(h,u.__proto__)},j1.prototype.thenExternal=function(a,i){return Promise.prototype.then.call(this,a,i)},j1.prototype.thenList=function(a){var i=this;return a.forEach(function(d){i=i.thenCore(d)}),i},j1.prototype.catch=function(a){a&&(a=a.bind(this));var i=Promise.prototype.catch.call(this,a);return j1.convert(i,this)},j1.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},j1.prototype.error=function(a){return this.then(function(){throw new Error(a)})},j1.prototype.using=j1.prototype.set,j1.prototype.saveAs=j1.prototype.save,j1.prototype.export=j1.prototype.output,j1.prototype.run=j1.prototype.then,$1.getPageSize=function(a,i,d){if("object"===s2(a)){var u=a;a=u.orientation,i=u.unit||i,d=u.format||d}i=i||"mm",d=d||"a4",a=(""+(a||"P")).toLowerCase();var s=(""+d).toLowerCase(),h={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(i){case"pt":var f=1;break;case"mm":f=72/25.4;break;case"cm":f=72/2.54;break;case"in":f=72;break;case"px":f=.75;break;case"pc":case"em":f=12;break;case"ex":f=6;break;default:throw"Invalid unit: "+i}if(h.hasOwnProperty(s))var z=h[s][1]/f,p=h[s][0]/f;else try{z=d[1],p=d[0]}catch{throw new Error("Invalid format: "+d)}if("p"===a||"portrait"===a){if(a="p",z<p){var k=p;
52p=z,z=k}}else{if("l"!==a&&"landscape"!==a)throw"Invalid orientation: "+a;a="l",p<z&&(k=p,p=z,z=k)}return{width:p,height:z,unit:i,k:f}},z4.html=function(a,i){(i=i||{}).callback=i.callback||function(){},i.html2canvas=i.html2canvas||{},i.html2canvas.canvas=i.html2canvas.canvas||this.canvas,i.jsPDF=i.jsPDF||this;var d=new j1(i);return i.worker?d:d.from(a).doCallback()},$1.API.addJS=function(a){return X3=a,this.internal.events.subscribe("postPutResources",function(i){B2=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(B2+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),$3=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+X3+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==B2&&void 0!==$3&&this.internal.out("/Names <</JavaScript "+B2+" 0 R>>")}),this},
53/**
54           * @license
55           * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
56           *
57           * Licensed under the MIT License.
58           * http://opensource.org/licenses/mit-license
59           */
60(F3=$1.API).events.push(["postPutResources",function(){var a=this,i=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var d=a.outline.render().split(/\r\n/),u=0;u<d.length;u++){var s=d[u],h=i.exec(s);null!=h&&a.internal.newObjectDeferredBegin(h[1],!1),a.internal.write(s)}if(this.outline.createNamedDestinations){var z=this.internal.pages.length,p=[];for(u=0;u<z;u++){var k=a.internal.newObject();p.push(k);var G=a.internal.getPageInfo(u+1);a.internal.write("<< /D["+G.objId+" 0 R /XYZ null null null]>> endobj")}var Q=a.internal.newObject();for(a.internal.write("<< /Names [ "),u=0;u<p.length;u++)a.internal.write("(page_"+(u+1)+")"+p[u]+" 0 R");a.internal.write(" ] >>","endobj"),a.internal.newObject(),a.internal.write("<< /Dests "+Q+" 0 R"),a.internal.write(">>","endobj")}}]),F3.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),F3.events.push(["initialized",function(){var a=this;a.outline={createNamedDestinations:!1,root:{children:[]}},a.outline.add=function(i,d,u){var s={title:d,options:u,children:[]};return null==i&&(i=this.root),i.children.push(s),s},a.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=a,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},a.outline.genIds_r=function(i){i.id=a.internal.newObjectDeferred();for(var d=0;d<i.children.length;d++)this.genIds_r(i.children[d])},a.outline.renderRoot=function(i){this.objStart(i),this.line("/Type /Outlines"),0<i.children.length&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},a.outline.renderItems=function(i){for(var d=this.ctx.pdf.internal.getVerticalCoordinateString,u=0;u<i.children.length;u++){var s=i.children[u];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(i)),0<u&&this.line("/Prev "+this.makeRef(i.children[u-1])),u<i.children.length-1&&this.line("/Next "+this.makeRef(i.children[u+1])),0<s.children.length&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var h=this.count=this.count_r({count:0},s);if(0<h&&this.line("/Count "+h),s.options&&s.options.pageNumber){var f=a.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+d(0)+" 0]")}this.objEnd()}for(u=0;u<i.children.length;u++)this.renderItems(s=i.children[u])},a.outline.line=function(i){this.ctx.val+=i+"\r\n"},a.outline.makeRef=function(i){return i.id+" 0 R"},a.outline.makeString=function(i){return"("+a.internal.pdfEscape(i)+")"},a.outline.objStart=function(i){this.ctx.val+="\r\n"+i.id+" 0 obj\r\n<<\r\n"},a.outline.objEnd=function(i){this.ctx.val+=">> \r\nendobj\r\n"},a.outline.count_r=function(i,d){for(var u=0;u<d.children.length;u++)i.count++,this.count_r(i,d.children[u]);return i.count}}]),I3=function(){var a="function"==typeof Deflater;if(!a)throw new Error("requires deflate.js for compression");return a},e3=function(a,i,d,u){var s=5,h=e;switch(u){case f2.image_compression.FAST:s=3,h=X1;break;case f2.image_compression.MEDIUM:s=6,h=M4;break;case f2.image_compression.SLOW:s=9,h=S3}a=t6(a,i,d,h);var f=new Uint8Array(c3(s)),z=t2(a),p=new Deflater(s),k=p.append(a),G=p.flush(),Q=f.length+k.length+G.length,l=new Uint8Array(Q+4);return l.set(f),l.set(k,f.length),l.set(G,f.length+k.length),l[Q++]=z>>>24&255,l[Q++]=z>>>16&255,l[Q++]=z>>>8&255,l[Q++]=255&z,f2.arrayBufferToBinaryString(l)},c3=function(a,i){var d=Math.LOG2E*Math.log(32768)-8<<4|8,u=d<<8;return u|=Math.min(3,(i-1&255)>>1)<<6,u|=0,[d,255&(u+=31-u%31)]},t2=function(a,i){for(var d,u=1,s=0,h=a.length,f=0;0<h;){for(h-=d=i<h?i:h;s+=u+=a[f++],--d;);u%=65521,s%=65521}return(s<<16|u)>>>0},t6=function(a,i,d,u){for(var s,h,f,z=a.length/i,p=new Uint8Array(a.length+z),k=e6(),G=0;G<z;G++){if(s=a.subarray(f=G*i,f+i),u)p.set(u(s,d,h),f+G);else{for(var Q=0,l=k.length,_=[];Q<l;Q++)_[Q]=k[Q](s,d,h);var x=x4(_.concat());p.set(_[x],f+G)}h=s}return p},a2=function(a,i,d){var u=Array.apply([],a);return u.unshift(0),u},X1=function(a,i,d){var s=[],h=0,f=a.length;for(s[0]=1;h<f;h++)s[h+1]=a[h]-(a[h-i]||0)+256&255;return s},e=function(a,i,d){var s=[],h=0,f=a.length;for(s[0]=2;h<f;h++)s[h+1]=a[h]-(d&&d[h]||0)+256&255;return s},M4=function(a,i,d){var h=[],f=0,z=a.length;for(h[0]=3;f<z;f++)h[f+1]=a[f]+256-((a[f-i]||0)+(d&&d[f]||0)>>>1)&255;return h},S3=function(a,i,d){var f,z=[],p=0,k=a.length;for(z[0]=4;p<k;p++)f=x6(a[p-i]||0,d&&d[p]||0,d&&d[p-i]||0),z[p+1]=a[p]-f+256&255;return z},x6=function(a,i,d){var u=a+i-d,s=Math.abs(u-a),h=Math.abs(u-i),f=Math.abs(u-d);return s<=h&&s<=f?a:h<=f?i:d},e6=function(){return[a2,X1,e,M4,S3]},x4=function(a){for(var i,d,u,s=0,h=a.length;s<h;)((i=V4(a[s].slice(1)))<d||!d)&&(d=i,u=s),s++;return u},V4=function(a){for(var i=0,d=a.length,u=0;i<d;)u+=Math.abs(a[i++]);return u},(
61/**
62           * @license
63           * 
64           * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
65           *
66           * 
67           * ====================================================================
68           */
69f2=$1.API).processPNG=function(a,i,d,u,s){var h,f,z,p,k,G,Q=this.color_spaces.DEVICE_RGB,l=this.decode.FLATE_DECODE,_=8;if(this.isArrayBuffer(a)&&(a=new Uint8Array(a)),this.isArrayBufferView(a)){if("function"!=typeof PNG||"function"!=typeof T3)throw new Error("PNG support requires png.js and zlib.js");if(a=(h=new PNG(a)).imgData,_=h.bits,Q=h.colorSpace,p=h.colors,-1!==[4,6].indexOf(h.colorType)){if(8===h.bits)for(var x,A=(N=32==h.pixelBitlength?new Uint32Array(h.decodePixels().buffer):16==h.pixelBitlength?new Uint16Array(h.decodePixels().buffer):new Uint8Array(h.decodePixels().buffer)).length,V=new Uint8Array(A*h.colors),T=new Uint8Array(A),J=h.pixelBitlength-h.bits,$=0,K=0;$<A;$++){for(h1=N[$],x=0;x<J;)V[K++]=h1>>>x&255,x+=h.bits;T[$]=h1>>>x&255}if(16===h.bits){A=(N=new Uint32Array(h.decodePixels().buffer)).length,V=new Uint8Array(A*(32/h.pixelBitlength)*h.colors),T=new Uint8Array(A*(32/h.pixelBitlength));for(var h1,l1=1<h.colors,q=K=$=0;$<A;)h1=N[$++],V[K++]=h1>>>0&255,l1&&(V[K++]=h1>>>16&255,h1=N[$++],V[K++]=h1>>>0&255),T[q++]=h1>>>16&255;_=8}u!==f2.image_compression.NONE&&I3()?(a=e3(V,h.width*h.colors,h.colors,u),G=e3(T,h.width,1,u)):(a=V,G=T,l=null)}if(3===h.colorType&&(Q=this.color_spaces.INDEXED,k=h.palette,h.transparency.indexed)){var y=h.transparency.indexed,X=0;for($=0,A=y.length;$<A;++$)X+=y[$];if((X/=255)==A-1&&-1!==y.indexOf(0))z=[y.indexOf(0)];else if(X!==A){var N=h.decodePixels();for(T=new Uint8Array(N.length),$=0,A=N.length;$<A;$++)T[$]=y[N[$]];G=e3(T,h.width,1)}}var I=function(D){var Y;switch(D){case f2.image_compression.FAST:Y=11;break;case f2.image_compression.MEDIUM:Y=13;break;case f2.image_compression.SLOW:Y=14;break;default:Y=12}return Y}(u);return f=l===this.decode.FLATE_DECODE?"/Predictor "+I+" /Colors "+p+" /BitsPerComponent "+_+" /Columns "+h.width:"/Colors "+p+" /BitsPerComponent "+_+" /Columns "+h.width,(this.isArrayBuffer(a)||this.isArrayBufferView(a))&&(a=this.arrayBufferToBinaryString(a)),(G&&this.isArrayBuffer(G)||this.isArrayBufferView(G))&&(G=this.arrayBufferToBinaryString(G)),this.createImageInfo(a,h.width,h.height,Q,_,l,i,d,f,z,k,G,I)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},
70/**
71           * @license
72           * Copyright (c) 2017 Aras Abbasi 
73           *
74           * Licensed under the MIT License.
75           * http://opensource.org/licenses/mit-license
76           */
77(n3=$1.API).processGIF89A=function(a,i,d,u,s){var h=new G3(a),f=h.width,z=h.height,p=[];h.decodeAndBlitFrameRGBA(0,p);var k={data:p,width:f,height:z},G=new k3(100).encode(k,100);return n3.processJPEG.call(this,G,i,d,u)},n3.processGIF87A=n3.processGIF89A,(a3=$1.API).processBMP=function(a,i,d,u,s){var h=new k2(a,!1),f=h.width,z=h.height,p={data:h.getData(),width:f,height:z},k=new k3(100).encode(p,100);return a3.processJPEG.call(this,k,i,d,u)},$1.API.setLanguage=function(a){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq
77:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[a]&&(this.internal.languageSettings.languageCode=a,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},r3=(
78/** @license
79           * MIT license.
80           * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
81           *               2014 Diego Casorran, https://github.com/diegocr
82           *
83           * 
84           * ====================================================================
85           */
86B4=$1.API).getCharWidthsArray=function(a,i){var d,u,s,h=(i=i||{}).font||this.internal.getFont(),f=i.fontSize||this.internal.getFontSize(),z=i.charSpace||this.internal.getCharSpace(),p=i.widths?i.widths:h.metadata.Unicode.widths,k=p.fof?p.fof:1,G=i.kerning?i.kerning:h.metadata.Unicode.kerning,Q=G.fof?G.fof:1,l=0,_=p[0]||k,x=[];for(d=0,u=a.length;d<u;d++)s=a.charCodeAt(d),x.push("function"==typeof h.metadata.widthOfString?(h.metadata.widthOfGlyph(h.metadata.characterToGlyph(s))+z*(1e3/f)||0)/1e3:(p[s]||_)/k+(G[s]&&G[s][l]||0)/Q),l=s;return x},N4=B4.getArraySum=function(a){for(var i=a.length,d=0;i;)d+=a[--i];return d},c6=B4.getStringUnitWidth=function(a,i){var d=(i=i||{}).fontSize||this.internal.getFontSize(),u=i.font||this.internal.getFont(),s=i.charSpace||this.internal.getCharSpace();return"function"==typeof u.metadata.widthOfString?u.metadata.widthOfString(a,d,s)/d:N4(r3.apply(this,arguments))},C4=function(a,i,d,u){for(var s=[],h=0,f=a.length,z=0;h!==f&&z+i[h]<d;)z+=i[h],h++;s.push(a.slice(0,h));var p=h;for(z=0;h!==f;)z+i[h]>u&&(s.push(a.slice(p,h)),z=0,p=h),z+=i[h],h++;return p!==h&&s.push(a.slice(p,h)),s},P3=function(a,i,d){d||(d={});var u,s,h,f,z,p,k=[],G=[k],Q=d.textIndent||0,l=0,_=0,x=a.split(" "),A=r3.apply(this,[" ",d])[0];if(p=-1===d.lineIndent?x[0].length+2:d.lineIndent||0){var V=Array(p).join(" "),T=[];x.map(function(K){1<(K=K.split(/\s*\n/)).length?T=T.concat(K.map(function(h1,l1){return(l1&&h1.length?"\n":"")+h1})):T.push(K[0])}),x=T,p=c6.apply(this,[V,d])}for(h=0,f=x.length;h<f;h++){var J=0;if(u=x[h],p&&"\n"==u[0]&&(u=u.substr(1),J=1),s=r3.apply(this,[u,d]),i<Q+l+(_=N4(s))||J){if(i<_){for(z=C4.apply(this,[u,s,i-(Q+l),i]),k.push(z.shift()),k=[z.pop()];z.length;)G.push([z.shift()]);_=N4(s.slice(u.length-(k[0]?k[0].length:0)))}else k=[u];G.push(k),Q=_+p,l=A}else k.push(u),Q+=l+_,l=A}if(p)var $=function(K,h1){return(h1?V:"")+K.join(" ")};else $=function(K){return K.join(" ")};return G.map($)},B4.splitTextToSize=function(a,i,d){var u,s=(d=d||{}).fontSize||this.internal.getFontSize(),h=function(G){if(G.widths&&G.kerning)return{widths:G.widths,kerning:G.kerning};var _=this.internal.getFont(G.fontName,G.fontStyle),x="Unicode";return _.metadata[x]?{widths:_.metadata[x].widths||{0:1},kerning:_.metadata[x].kerning||{}}:{font:_.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,d);u=Array.isArray(a)?a:a.split(/\r?\n/);var f=1*this.internal.scaleFactor*i/s;h.textIndent=d.textIndent?1*d.textIndent*this.internal.scaleFactor/s:0,h.lineIndent=d.lineIndent;var z,p,k=[];for(z=0,p=u.length;z<p;z++)k=k.concat(P3.apply(this,[u[z],f,h]));return k},
87/** @license
88           jsPDF standard_fonts_metrics plugin
89           * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
90           * MIT license.
91           * 
92           * ====================================================================
93           */
94n6=$1.API,N2={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(A2=function(a){for(var i="klmnopqrstuvwxyz",d={},u=0;u<i.length;u++)d[i[u]]="0123456789abcdef"[u];var s,h,f,z,p,k={},G=1,Q=k,l=[],_="",x="",A=a.length-1;for(u=1;u!=A;)p=a[u],u+=1,"'"==p?h=h?(z=h.join(""),s):[]:h?h.push(p):"{"==p?(l.push([Q,z]),Q={},z=s):"}"==p?((f=l.pop())[0][f[1]]=Q,z=s,Q=f[0]):"-"==p?G=-1:z===s?d.hasOwnProperty(p)?(_+=d[p],z=parseInt(_,16)*G,G=1,_=""):_+=p:d.hasOwnProperty(p)?(x+=d[p],Q[z]=parseInt(x,16)*G,G=1,z=s,x=""):x+=p;return k})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},a6={Unicode:{Courier:N2,"Courier-Bold":N2,"Courier-BoldOblique":N2,"Courier-Oblique":N2,Helvetica:N2,"Helvetica-Bold":N2,"Helvetica-BoldOblique":N2,"Helvetica-Oblique":N2,"Times-Roman":N2,"Times-Bold":N2,"Times-BoldItalic":N2,"Times-Italic":N2}},r6={Unicode:{"Courier-Oblique":A2("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":A2("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3me
94k3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":A2("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
94dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:A2("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":A2("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":A2("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:A2("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:A2("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
94dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":A2("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
94dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:A2("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":A2("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":A2("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}
94fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":A2("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":A2("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
94dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}},n6.events.push(["addFont",function(a){var i,d,u,s=a.font,h="Unicode";(i=r6[h][s.postScriptName])&&((d=s.metadata[h]?s.metadata[h]:s.metadata[h]={}).widths=i.widths,d.kerning=i.kerning),(u=a6[h][s.postScriptName])&&((d=s.metadata[h]?s.metadata[h]:s.metadata[h]={}).encoding=u).codePages&&u.codePages.length&&(s.encoding=u.codePages[0])}]),
95/**
96           * @license
97           * Licensed under the MIT License.
98           * http://opensource.org/licenses/mit-license
99           */
100V3=$1,typeof self<"u"&&self||typeof global<"u"&&global||typeof window<"u"&&window||Function("return this")(),V3.API.events.push(["addFont",function(a){var i=a.font,d=a.instance;if(void 0!==d&&d.existsFileInVFS(i.postScriptName)){var u=d.getFileFromVFS(i.postScriptName);if("string"!=typeof u)throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");i.metadata=V3.API.TTFFont.open(i.postScriptName,i.fontName,u,i.encoding),i.metadata.Unicode=i.metadata.Unicode||{encoding:{},kerning:{},widths:[]},i.metadata.glyIdsUsed=[0]}else if(!1===i.isStandardFont)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').")}]),
101/** @license
102           * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
103           * 
104           * 
105           * ====================================================================
106           */
107(i3=$1.API).addSvg=function(a,i,d,u,s){if(void 0===i||void 0===d)throw new Error("addSVG needs values for 'x' and 'y'");function h(y){for(var X=parseFloat(y[1]),N=parseFloat(y[2]),I=[],D=3,Y=y.length;D<Y;)"c"===y[D]?(I.push([parseFloat(y[D+1]),parseFloat(y[D+2]),parseFloat(y[D+3]),parseFloat(y[D+4]),parseFloat(y[D+5]),parseFloat(y[D+6])]),D+=7):"l"===y[D]?(I.push([parseFloat(y[D+1]),parseFloat(y[D+2])]),D+=3):D+=1;return[X,N,I]}var z,p,k,G,Q,l,_,A=((p=((_=(k=document).createElement("iframe"),G=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(l=(Q=k).createElement("style")).type="text/css",l.styleSheet?l.styleSheet.cssText=G:l.appendChild(Q.createTextNode(G)),Q.getElementsByTagName("head")[0].appendChild(l),_.name="childframe",_.setAttribute("width",0),_.setAttribute("height",0),_.setAttribute("frameborder","0"),_.setAttribute("scrolling","no"),_.setAttribute("seamless","seamless"),_.setAttribute("class","jsPDF_sillysvg_iframe"),k.body.appendChild(_),z=_).contentWindow||z.contentDocument).document).write(a),p.close(),p.getElementsByTagName("svg")[0]),V=[1,1],T=parseFloat(A.getAttribute("width")),J=parseFloat(A.getAttribute("height"));T&&J&&(u&&s?V=[u/T,s/J]:u?V=[u/T,u/T]:s&&(V=[s/J,s/J]));var $,K,h1,l1,q=A.childNodes;for($=0,K=q.length;$<K;$++)(h1=q[$]).tagName&&"PATH"===h1.tagName.toUpperCase()&&((l1=h(h1.getAttribute("d").split(" ")))[0]=l1[0]*V[0]+i,l1[1]=l1[1]*V[1]+d,this.lines.call(this,l1[2],l1[0],l1[1],V));return this},i3.addSVG=i3.addSvg,i3.addSvgAsImage=function(a,i,d,u,s,h,f,z){if(isNaN(i)||isNaN(d))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to 
107jsPDF.addSvgAsImage");if(isNaN(u)||isNaN(s))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var p=document.createElement("canvas");p.width=u,p.height=s;var k=p.getContext("2d");return k.fillStyle="#fff",k.fillRect(0,0,p.width,p.height),canvg(p,a,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(p.toDataURL("image/jpeg",1),i,d,u,s,f,z),this},$1.API.putTotalPages=function(a){var i,d;d=parseInt(this.internal.getFont().id.substr(1),10)<15?(i=new RegExp(a,"g"),this.internal.getNumberOfPages()):(i=new RegExp(this.pdfEscape16(a,this.internal.getFont()),"g"),this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var u=1;u<=this.internal.getNumberOfPages();u++)for(var s=0;s<this.internal.pages[u].length;s++)this.internal.pages[u][s]=this.internal.pages[u][s].replace(i,d);return this},$1.API.viewerPreferences=function(a,i){var d;a=a||{},i=i||!1;var u,s,h={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},f=Object.keys(h),z=[],p=0,k=0,G=0,Q=!0;function l(x,A){var V,T=!1;for(V=0;V<x.length;V+=1)x[V]===A&&(T=!0);return T}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),d=this.internal.viewerpreferences.configuration,"reset"===a||!0===i){var _=f.length;for(G=0;G<_;G+=1)d[f[G]].value=d[f[G]].defaultValue,d[f[G]].explicitSet=!1}if("object"===s2(a))for(u in a)if(s=a[u],l(f,u)&&void 0!==s){if("boolean"===d[u].type&&"boolean"==typeof s)d[u].value=s;else if("name"===d[u].type&&l(d[u].valueSet,s))d[u].value=s;else if("integer"===d[u].type&&Number.isInteger(s))d[u].value=s;else if("array"===d[u].type){for(p=0;p<s.length;p+=1)if(Q=!0,1===s[p].length&&"number"==typeof s[p][0])z.push(String(s[p]-1));else if(1<s[p].length){for(k=0;k<s[p].length;k+=1)"number"!=typeof s[p][k]&&(Q=!1);!0===Q&&z.push([s[p][0]-1,s[p][1]-1].join(" "))}d[u].value="["+z.join(" ")+"]"}else d[u].value=d[u].defaultValue;d[u].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var x,A=[];for(x in d)!0===d[x].explicitSet&&A.push("name"===d[x].type?"/"+x+" /"+d[x].value:"/"+x+" "+d[x].value);0!==A.length&&this.internal.write("/ViewerPreferences\n<<\n"+A.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=d,this},O4=B3=o3="",$1.API.addMetadata=function(a,i){return B3=i||"http://jspdf.default.namespaceuri/",o3=a,this.internal.events.subscribe("postPutResources",function(){if(o3){var d='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+B3+'"><jspdf:metadata>',u=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),s=unescape(encodeURIComponent(d)),h=unescape(encodeURIComponent(o3)),f=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),z=unescape(encodeURIComponent("</x:xmpmeta>")),p=s.length+h.length+f.length+u.length+z.length;O4=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+p+" >>"),this.internal.write("stream"),this.internal.write(u+s+h+f+z),this.internal.write("endstream"),this.internal.write("endobj")}else O4=""}),this.internal.events.subscribe("putCatalog",function(){O4&&this.internal.write("/Metadata "+O4+" 0 R")}),this},function(a,i){var d=a.API,u=d.pdfEscape16=function(f,z){for(var p,k=z.metadata.Unicode.widths,G=["","0","00","000","0000"],Q=[""],l=0,_=f.length;l<_;++l){if(p=z.metadata.characterToGlyph(f.charCodeAt(l)),z.metadata.glyIdsUsed.push(p),z.metadata.toUnicode[p]=f.charCodeAt(l),-1==k.indexOf(p)&&(k.push(p),k.push([parseInt(z.metadata.widthOfGlyph(p),10)])),"0"==p)return Q.join("");p=p.toString(16),Q.push(G[4-p.length],p)}return Q.join("")},s=function(f){var z,p,k,G,Q,l,_;for(Q="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",k=[],l=0,_=(p=Object.keys(f).sort(function(x,A){return x-A})).length;l<_;l++)z=p[l],100<=k.length&&(Q+="\n"+k.length+" beginbfchar\n"+k.join("\n")+"\nendbfchar",k=[]),G=("0000"+f[z].toString(16)).slice(-4),z=("0000"+(+z).toString(16)).slice(-4),k.push("<"+z+"><"+G+">");return k.length&&(Q+="\n"+k.length+" beginbfchar\n"+k.join("\n")+"\nendbfchar\n"),Q+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};d.events.push(["putFont",function(f){!function(z,p,k,G){if(z.metadata instanceof a.API.TTFFont&&"Identity-H"===z.encoding){for(var Q=z.metadata.Unicode.widths,l=z.metadata.subset.encode(z.metadata.glyIdsUsed,1),_="",x=0;x<l.length;x++)_+=String.fromCharCode(l[x]);var A=k();G({data:_,addLength1:!0}),p("endobj");var V=k();G({data:s(z.metadata.toUnicode),addLength1:!0}),p("endobj");var T=k();p("<<"),p("/Type /FontDescriptor"),p("/FontName /"+z.fontName),p("/FontFile2 "+A+" 0 R"),p("/FontBBox "+a.API.PDFObject.convert(z.metadata.bbox)),p("/Flags "+z.metadata.flags),p("/StemV "+z.metadata.stemV),p("/ItalicAngle "+z.metadata.italicAngle),p("/Ascent "+z.metadata.ascender),p("/Descent "+z.metadata.decender),p("/CapHeight "+z.metadata.capHeight),p(">>"),p("endobj");var J=k();p("<<"),p("/Type /Font"),p("/BaseFont /"+z.fontName),p("/FontDescriptor "+T+" 0 R"),p("/W "+a.API.PDFObject.convert(Q)),p("/CIDToGIDMap /Identity"),p("/DW 1000"),p("/Subtype /CIDFontType2"),p("/CIDSystemInfo"),p("<<"),p("/Supplement 0"),p("/Registry (Adobe)"),p("/Ordering ("+z.encoding+")"),p(">>"),p(">>"),p("endobj"),z.objectNumber=k(),p("<<"),p("/Type /Font"),p("/Subtype /Type0"),p("/ToUnicode "+V+" 0 R"),p("/BaseFont /"+z.fontName),p("/Encoding /"+z.encoding),p("/DescendantFonts ["+J+" 0 R]"),p(">>"),p("endobj"),z.isAlreadyPutted=!0}}(f.font,f.out,f.newObject,f.putStream)}]),d.events.push(["putFont",function(f){!function(z,p,k,G){if(z.metadata instanceof a.API.TTFFont&&"WinAnsiEncoding"===z.encoding){for(var Q=z.metadata.rawData,l="",_=0;_<Q.length;_++)l+=String.fromCharCode(Q[_]);var x=k();G({data:l,addLength1:!0}),p("endobj");var A=k();G({data:s(z.metadata.toUnicode),addLength1:!0}),p("endobj");var V=k();for(p("<<"),p("/Descent "+z.metadata.decender),p("/CapHeight "+z.metadata.capHeight),p("/StemV "+z.metadata.stemV),p("/Type /FontDescriptor"),p("/FontFile2 "+x+" 0 R"),p("/Flags 96"),p("/FontBBox "+a.API.PDFObject.convert(z.metadata.bbox)),p("/FontName /"+z.fontName),p("/ItalicAngle "+z.metadata.italicAngle),p("/Ascent "+z.metadata.ascender),p(">>"),p("endobj"),z.objectNumber=k(),_=0;_<z.metadata.hmtx.widths.length;_++)z.metadata.hmtx.widths[_]=parseInt(z.metadata.hmtx.widths[_]*(1e3/z.metadata.head.unitsPerEm));p("<</Subtype/TrueType/Type/Font/ToUnicode "+A+" 0 R/BaseFont/"+z.fontName+"/FontDescriptor "+V+" 0 R/Encoding/"+z.encoding+" /FirstChar 29 /LastChar 255 /Widths "+a.API.PDFObject.convert(z.metadata.hmtx.widths)+">>"),p("endobj"),z.isAlreadyPutted=!0}}(f.font,f.out,f.newObject,f.putStream)}]);var h=function(f){var z,p,k=f.text||"",G=f.x,Q=f.y,l=f.options||{},_=f.mutex||{},x=_.pdfEscape,A=_.activeFontKey,V=_.fonts,T="",J=0,$="",K=V[p=A].encoding;if("Identity-H"!==V[p].encoding)return{text:k,x:G,y:Q,options:l,mutex:_};for($=k,p=A,"[object Array]"===Object.prototype.toString.call(k)&&($=k[0]),J=0;J<$.length;J+=1)V[p].metadata.hasOwnProperty("cmap")&&(z=V[p].metadata.cmap.unicode.codeMap[$[J].
107charCodeAt(0)]),z||$[J].charCodeAt(0)<256&&V[p].metadata.hasOwnProperty("Unicode")?T+=$[J]:T+="";var h1="";return parseInt(p.slice(1))<14||"WinAnsiEncoding"===K?h1=function(l1){for(var q="",y=0;y<l1.length;y++)q+=""+l1.charCodeAt(y).toString(16);return q}(x(T,p)):"Identity-H"===K&&(h1=u(T,V[p])),_.isHex=!0,{text:h1,x:G,y:Q,options:l,mutex:_}};d.events.push(["postProcessText",function(f){var z=f.text||"",l=[],_={text:z,x:f.x,y:f.y,options:f.options,mutex:f.mutex};if("[object Array]"===Object.prototype.toString.call(z)){var x=0;for(x=0;x<z.length;x+=1)"[object Array]"===Object.prototype.toString.call(z[x])&&3===z[x].length?l.push([h(Object.assign({},_,{text:z[x][0]})).text,z[x][1],z[x][2]]):l.push(h(Object.assign({},_,{text:z[x]})).text);f.text=l}else f.text=h(Object.assign({},_,{text:z})).text}])}($1,typeof self<"u"&&self||typeof global<"u"&&global||typeof window<"u"&&window||Function("return this")()),l3=function(a){return void 0!==a&&(void 0===a.vFS&&(a.vFS={}),!0)},(s3=$1.API).existsFileInVFS=function(a){return!!l3(this.internal)&&void 0!==this.internal.vFS[a]},s3.addFileToVFS=function(a,i){return l3(this.internal),this.internal.vFS[a]=i,this},s3.getFileFromVFS=function(a){return l3(this.internal),void 0!==this.internal.vFS[a]?this.internal.vFS[a]:null},$1.API.addHTML=function(a,i,d,u,s){if(typeof html2canvas>"u"&&typeof rasterizeHTML>"u")throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof i&&(u=i,s=d),"function"==typeof u&&(s=u,u=null),"function"!=typeof s&&(s=function(){});var h=this.internal,f=h.scaleFactor,z=h.pageSize.getWidth(),p=h.pageSize.getHeight();if((u=u||{}).onrendered=function(G){i=parseInt(i)||0,d=parseInt(d)||0;var Q=u.dim||{},l=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},u.margin),_=Q.h||Math.min(p,G.height/f),x=Q.w||Math.min(z,G.width/f)-i,A=u.format||"JPEG",V=u.imageCompression||"SLOW";if(G.height>p-l.top-l.bottom&&u.pagesplit){var T=function(l1,q,y,X,N){var I=document.createElement("canvas");I.height=N,I.width=X;var D=I.getContext("2d");return D.mozImageSmoothingEnabled=!1,D.webkitImageSmoothingEnabled=!1,D.msImageSmoothingEnabled=!1,D.imageSmoothingEnabled=!1,D.fillStyle=u.backgroundColor||"#ffffff",D.fillRect(0,0,X,N),D.drawImage(l1,q,y,X,N,0,0,X,N),I},J=function(){for(var l1,q,y=0,X=0,N={},I=!1;;){var D;if(X=0,N.top=0!==y?l.top:d,N.left=0!==y?l.left:i,I=(z-l.left-l.right)*f<G.width,"content"===l.useFor?0===y?(l1=Math.min((z-l.left)*f,G.width),q=Math.min((p-l.top)*f,G.height-y)):(l1=Math.min(z*f,G.width),q=Math.min(p*f,G.height-y),N.top=0):(l1=Math.min((z-l.left-l.right)*f,G.width),q=Math.min((p-l.bottom-l.top)*f,G.height-y)),I)for(;;){"content"===l.useFor&&(0===X?l1=Math.min((z-l.left)*f,G.width):(l1=Math.min(z*f,G.width-X),N.left=0));var Y=[D=T(G,X,y,l1,q),N.left,N.top,D.width/f,D.height/f,A,null,V];if(this.addImage.apply(this,Y),(X+=l1)>=G.width)break;this.addPage()}else Y=[D=T(G,0,y,l1,q),N.left,N.top,D.width/f,D.height/f,A,null,V],this.addImage.apply(this,Y);if((y+=q)>=G.height)break;this.addPage()}s(x,y,null,Y)}.bind(this);if("CANVAS"===G.nodeName){var $=new Image;$.onload=J,$.src=G.toDataURL("image/png"),G=$}else J()}else{var K=Math.random().toString(35),h1=[G,i,d,x,_,A,K,V];this.addImage.apply(this,h1),s(x,_,K,h1)}}.bind(this),typeof html2canvas<"u"&&!u.rstz)return html2canvas(a,u);if(typeof rasterizeHTML>"u")return null;var k="drawDocument";return"string"==typeof a&&(k=/^http/.test(a)?"drawURL":"drawHTML"),u.width=u.width||z*f,rasterizeHTML[k](a,void 0,u).then(function(G){u.onrendered(G.image)},function(G){s(null,G)})},
108/**
109           * jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser
110           * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
111           *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
112           *               2014 Diego Casorran, https://github.com/diegocr
113           *               2014 Daniel Husar, https://github.com/danielhusar
114           *               2014 Wolfgang Gassler, https://github.com/woolfg
115           *               2014 Steven Spungin, https://github.com/flamenco
116           *
117           * @license
118           * 
119           * ====================================================================
120           */
121function(a){var i,d,u,s,h,f,z,p,k,G,Q,l,_,x,A,V,T,J,$,K;i=function(){return function(y){return q.prototype=y,new q};function q(){}}(),G=function(q){var y,X,N,I,D,Y,R;for(X=0,N=q.length,y=void 0,Y=I=!1;!I&&X!==N;)(y=q[X]=q[X].trimLeft())&&(I=!0),X++;for(X=N-1;N&&!Y&&-1!==X;
121)(y=q[X]=q[X].trimRight())&&(Y=!0),X--;for(D=/\s+$/g,R=!0,X=0;X!==N;)"\u2028"!=q[X]&&(y=q[X].replace(/\s+/g," "),R&&(y=y.trimLeft()),y&&(R=D.test(y)),q[X]=y),X++;return q},l=function(q){var y,X,N;for(y=void 0,X=(N=q.split(",")).shift();!y&&X;)y=u[X.trim().toLowerCase()],X=N.shift();return y},_=function(q){var y;return-1<(q="auto"===q?"0px":q).indexOf("em")&&!isNaN(Number(q.replace("em","")))&&(q=18.719*Number(q.replace("em",""))+"px"),-1<q.indexOf("pt")&&!isNaN(Number(q.replace("pt","")))&&(q=1.333*Number(q.replace("pt",""))+"px"),(y=x[q])?y:void 0!==(y={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[q])||(y=parseFloat(q))?x[q]=y/16:(y=q.match(/([\d\.]+)(px)/),x[q]=Array.isArray(y)&&3===y.length?parseFloat(y[1])/16:1)},k=function(q){var y,X,N,I,D;return D=q,I=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(D,null):D.currentStyle?D.currentStyle:D.style,X=void 0,(y={})["font-family"]=l((N=function(Y){return Y=Y.replace(/-\D/g,function(R){return R.charAt(1).toUpperCase()}),I[Y]})("font-family"))||"times",y["font-style"]=s[N("font-style")]||"normal",y["text-align"]=h[N("text-align")]||"left","bold"===(X=f[N("font-weight")]||"normal")&&(y["font-style"]="normal"===y["font-style"]?X:X+y["font-style"]),y["font-size"]=_(N("font-size"))||1,y["line-height"]=_(N("line-height"))||1,y.display="inline"===N("display")?"inline":"block",y["margin-top"]=(X="block"===y.display)&&_(N("margin-top"))||0,y["margin-bottom"]=X&&_(N("margin-bottom"))||0,y["padding-top"]=X&&_(N("padding-top"))||0,y["padding-bottom"]=X&&_(N("padding-bottom"))||0,y["margin-left"]=X&&_(N("margin-left"))||0,y["margin-right"]=X&&_(N("margin-right"))||0,y["padding-left"]=X&&_(N("padding-left"))||0,y["padding-right"]=X&&_(N("padding-right"))||0,y["page-break-before"]=N("page-break-before")||"auto",y.float=z[N("cssFloat")]||"none",y.clear=p[N("clear")]||"none",y.color=N("color"),y},A=function(q,y,X){var N,I,D,Y,R;if(D=!1,Y=I=void 0,N=X["#"+q.id])if("function"==typeof N)D=N(q,y);else for(I=0,Y=N.length;!D&&I!==Y;)D=N[I](q,y),I++;if(N=X[q.nodeName],!D&&N)if("function"==typeof N)D=N(q,y);else for(I=0,Y=N.length;!D&&I!==Y;)D=N[I](q,y),I++;for(R="string"==typeof q.className?q.className.split(" "):[],I=0;I<R.length;I++)if(N=X["."+R[I]],!D&&N)if("function"==typeof N)D=N(q,y);else for(I=0,Y=N.length;!D&&I!==Y;)D=N[I](q,y),I++;return D},K=function(q,y){var X,N,I,D,Y,R,P,v,b;for(X=[],N=[],I=0,b=q.rows[0].cells.length,P=q.clientWidth;I<b;)N[I]={name:(v=q.rows[0].cells[I]).textContent.toLowerCase().replace(/\s+/g,""),prompt:v.textContent.replace(/\r?\n/g,""),width:v.clientWidth/P*y.pdf.internal.pageSize.getWidth()},I++;for(I=1;I<q.rows.length;){for(R=q.rows[I],Y={},D=0;D<R.cells.length;)Y[N[D].name]=R.cells[D].textContent.replace(/\r?\n/g,""),D++;X.push(Y),I++}return{rows:X,headers:N}};var h1={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},l1=1;d=function(q,y,X){var N,I,D,Y,R,P,v,b;for(I=q.childNodes,N=void 0,(R="block"===(D=k(q)).display)&&(y.setBlockBoundary(),y.setBlockStyle(D)),Y=0,P=I.length;Y<P;){if("object"===s2(N=I[Y])){if(y.executeWatchFunctions(N),1===N.nodeType&&"HEADER"===N.nodeName){var S=N,r=y.pdf.margins_doc.top;y.pdf.internal.events.subscribe("addPage",function(B){y.y=r,d(S,y,X),y.pdf.margins_doc.top=y.y+10,y.y+=10},!1)}if(8===N.nodeType&&"#comment"===N.nodeName)~N.textContent.indexOf("ADD_PAGE")&&(y.pdf.addPage(),y.y=y.pdf.margins_doc.top);else if(1!==N.nodeType||h1[N.nodeName])if(3===N.nodeType){var w=N.nodeValue;if(N.nodeValue&&"LI"===N.parentNode.nodeName)if("OL"===N.parentNode.parentNode.nodeName)w=l1+++". "+w;else{var L=D["font-size"],F=(3-.75*L)*y.pdf.internal.scaleFactor,O=.75*L*y.pdf.internal.scaleFactor,C=1.74*L/y.pdf.internal.scaleFactor;b=function(B,E){this.pdf.circle(B+F,E+O,C,"FD")}}16&N.ownerDocument.body.compareDocumentPosition(N)&&y.addText(w,D)}else"string"==typeof N&&y.addText(N,D);else{var W;if("IMG"===N.nodeName){var e1=N.getAttribute("src");W=V[y.pdf.sHashCode(e1)||e1]}if(W){y.pdf.internal.pageSize.getHeight()-y.pdf.margins_doc.bottom<y.y+N.height&&y.y>y.pdf.margins_doc.top&&(y.pdf.addPage(),y.y=y.pdf.margins_doc.top,y.executeWatchFunctions(N));var s1=k(N),u1=y.x,r1=12/y.pdf.internal.scaleFactor,m1=(s1["margin-left"]+s1["padding-left"])*r1,o1=(s1["margin-right"]+s1["padding-right"])*r1,M1=(s1["margin-top"]+s1["padding-top"])*r1,H=(s1["margin-bottom"]+s1["padding-bottom"])*r1;y.pdf.addImage(W,u1+=void 0!==s1.float&&"right"===s1.float?y.settings.width-N.width-o1:m1,y.y+M1,N.width,N.height),W=void 0,"right"===s1.float||"left"===s1.float?(y.watchFunctions.push(function(B,E,c1,i1){return y.y>=E?(y.x+=B,y.settings.width+=c1,!0):!!(i1&&1===i1.nodeType&&!h1[i1.nodeName]&&y.x+i1.width>y.pdf.margins_doc.left+y.pdf.margins_doc.width)&&(y.x+=B,y.y=E,y.settings.width+=c1,!0)}.bind(this,"left"===s1.float?-N.width-m1-o1:0,y.y+N.height+M1+H,N.width)),y.watchFunctions.push(function(B,E,c1){return!(y.y<B&&E===y.pdf.internal.getNumberOfPages())||1===c1.nodeType&&"both"===k(c1).clear&&(y.y=B,!0)}.bind(this,y.y+N.height,y.pdf.internal.getNumberOfPages())),y.settings.width-=N.width+m1+o1,"left"===s1.float&&(y.x+=N.width+m1+o1)):y.y+=N.height+M1+H}else if("TABLE"===N.nodeName)v=K(N,y),y.y+=10,y.pdf.table(y.x,y.y,v.rows,v.headers,{autoSize:!1,printHeaders:X.printHeaders,margins:y.pdf.margins_doc,css:k(N)}),y.y=y.pdf.lastCellPos.y+y.pdf.lastCellPos.h+20;else if("OL"===N.nodeName||"UL"===N.nodeName)l1=1,A(N,y,X)||d(N,y,X),y.y+=10;else if("LI"===N.nodeName){var Z=y.x;y.x+=20/y.pdf.internal.scaleFactor,y.y+=3,A(N,y,X)||d(N,y,X),y.x=Z}else"BR"===N.nodeName?(y.y+=D["font-size"]*y.pdf.internal.scaleFactor,y.addText("\u2028",i(D))):A(N,y,X)||d(N,y,X)}}Y++}if(X.outY=y.y,R)return y.setBlockBoundary(b)},V={},T=function(q,y,X,N){var I,D=q.getElementsByTagName("img"),Y=D.length,R=0;function P(){y.pdf.internal.events.publish("imagesLoaded"),N(I)}function v(b,S,r){if(b){var w=new Image;I=++R,w.crossOrigin="",w.onerror=w.onload=function(){if(w.complete&&(0===w.src.indexOf("data:image/")&&(w.width=S||w.width||0,w.height=r||w.height||0),w.width+w.height)){var L=y.pdf.sHashCode(b)||b;V[L]=V[L]||w}--R||P()},w.src=b}}for(;Y--;)v(D[Y].getAttribute("src"),D[Y].width,D[Y].height);return R||P()},J=function(q,y,X){var N=q.getElementsByTagName("footer");if(0<N.length){N=N[0];var I=y.pdf.internal.write,D=y.y;y.pdf.internal.write=function(){},d(N,y,X);var Y=Math.ceil(y.y-D)+5;y.y=D,y.pdf.internal.write=I,y.pdf.margins_doc.bottom+=Y;for(var R=function(b){var S=void 0!==b?b.pageNumber:1,r=y.y;y.y=y.pdf.internal.pageSize.getHeight()-y.pdf.margins_doc.bottom,y.pdf.margins_doc.bottom-=Y;for(var w=N.getElementsByTagName("span"),L=0;L<w.length;++L)-1<(" "+w[L].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(w[L].innerHTML=S),-1<(" "+w[L].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(w[L].innerHTML="###jsPDFVarTotalPages###");d(N,y,X),y.pdf.margins_doc.bottom+=Y,y.y=r},P=N.getElementsByTagName("span"),v=0;v<P.length;++v)-1<(" "+P[v].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&y.pdf.internal.events.subscribe("htmlRenderingFinished",y.pdf.putTotalPages.bind(y.pdf,"###jsPDFVarTotalPages###"),!0);y.pdf.internal.events.subscribe("addPage",R,!1),R(),h1.FOOTER=1}},$=function(q,y,X,N,I,D){if(!y)return!1;var Y,R,P,v;"string"==typeof y||y.parentNode||(y=""+y.innerHTML),"string"==typeof y&&(Y=y.replace(/<\/?script[^>]*?>/gi,""),v="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(P=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",P.innerHTML='<iframe style="height:1px;width:1px" name="'+v+'" />',document.body.appendChild(P),(R=window.frames[v]).document.open(),R.document.writeln(Y),R.document.close(),y=R.document.body);var b,S=new Q(q,X,N,I);return T.call(this,y,S,I.elementHandlers,function(r){J(y,S,I.elementHandlers),d(y,S,I.elementHandlers),S.pdf.internal.events.publish("htmlRenderingFinished"),b=S.dispose(),"function"==typeof D?D(b):r&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),b||{x:S.x,y:S.y}},(Q=function(q,y,X,N){return this.pdf=q,this.x=y,this.y=X,this.settings=N,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},Q.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}}
121,Q.prototype.executeWatchFunctions=function(q){var y=!1,X=[];if(0<this.watchFunctions.length){for(var N=0;N<this.watchFunctions.length;++N)!0===this.watchFunctions[N](q)?y=!0:X.push(this.watchFunctions[N]);this.watchFunctions=X}return y},Q.prototype.splitFragmentsIntoLines=function(q,y){var X,N,I,D,Y,R,P,v,b,S,r,w,L,F;for(S=this.pdf.internal.scaleFactor,D={},R=P=v=F=Y=I=b=N=void 0,w=[r=[]],X=0,L=this.settings.width;q.length;)if(Y=q.shift(),F=y.shift(),Y)if((I=D[(N=F["font-family"])+(b=F["font-style"])])||(I=this.pdf.internal.getFont(N,b).metadata.Unicode,D[N+b]=I),P=this.pdf.getStringUnitWidth(Y,v={widths:I.widths,kerning:I.kerning,fontSize:12*F["font-size"],textIndent:X})*v.fontSize/S,"\u2028"==Y)w.push(r=[]);else if(L<X+P){for(R=this.pdf.splitTextToSize(Y,L,v),r.push([R.shift(),F]);R.length;)r=[[R.shift(),F]],w.push(r);X=this.pdf.getStringUnitWidth(r[0][0],v)*v.fontSize/S}else r.push([Y,F]),X+=P;if(void 0!==F["text-align"]&&("center"===F["text-align"]||"right"===F["text-align"]||"justify"===F["text-align"]))for(var O=0;O<w.length;++O){var C=this.pdf.getStringUnitWidth(w[O][0][0],v)*v.fontSize/S;0<O&&(w[O][0][1]=i(w[O][0][1]));var W=L-C;if("right"===F["text-align"])w[O][0][1]["margin-left"]=W;else if("center"===F["text-align"])w[O][0][1]["margin-left"]=W/2;else if("justify"===F["text-align"]){var e1=w[O][0][0].split(" ").length-1;w[O][0][1]["word-spacing"]=W/e1,O===w.length-1&&(w[O][0][1]["word-spacing"]=0)}}return w},Q.prototype.RenderTextFragment=function(q,y){var X,N;N=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(y.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),N=Math.max(N,y["line-height"],y["font-size"]),this.pdf.internal.write(0,(-12*N).toFixed(2),"Td")),X=this.pdf.internal.getFont(y["font-family"],y["font-style"]);var I=this.getPdfColor(y.color);I!==this.lastTextColor&&(this.pdf.internal.write(I),this.lastTextColor=I),void 0!==y["word-spacing"]&&0<y["word-spacing"]&&this.pdf.internal.write(y["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+X.id,(12*y["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(q)+") Tj"),void 0!==y["word-spacing"]&&this.pdf.internal.write(0,"Tw")},Q.prototype.getPdfColor=function(q){var y,X,N,I=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(q);if(null!=I)y=parseInt(I[1]),X=parseInt(I[2]),N=parseInt(I[3]);else{if("string"==typeof q&&"#"!=q.charAt(0)){var D=new RGBColor(q);q=D.ok?D.toHex():"#000000"}y=q.substring(1,3),y=parseInt(y,16),X=q.substring(3,5),X=parseInt(X,16),N=q.substring(5,7),N=parseInt(N,16)}if("string"==typeof y&&/^#[0-9A-Fa-f]{6}$/.test(y)){var Y=parseInt(y.substr(1),16);y=Y>>16&255,X=Y>>8&255,N=255&Y}var R=this.f3;return 0===y&&0===X&&0===N||void 0===X?R(y/255)+" g":[R(y/255),R(X/255),R(N/255),"rg"].join(" ")},Q.prototype.f3=function(q){return q.toFixed(3)},Q.prototype.renderParagraph=function(q){var y,X,N,I,D,Y,R,P,v,b,S,r,w;if(N=G(this.paragraph.text),r=this.paragraph.style,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:y=this.paragraph.blockstyle},N.join("").trim()){R=this.splitFragmentsIntoLines(N,r),P=Y=void 0,X=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,S=(Math.max((y["margin-top"]||0)-this.priorMarginBottom,0)+(y["padding-top"]||0))*X,b=((y["margin-bottom"]||0)+(y["padding-bottom"]||0))*X,this.priorMarginBottom=y["margin-bottom"]||0,"always"===y["page-break-before"]&&(this.pdf.addPage(),this.y=0,S=((y["margin-top"]||0)+(y["padding-top"]||0))*X),v=this.pdf.internal.write,D=I=void 0,this.y+=S,v("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var L=0;R.length;){for(I=P=0,D=(Y=R.shift()).length;I!==D;)Y[I][0].trim()&&(P=Math.max(P,Y[I][1]["line-height"],Y[I][1]["font-size"]),w=7*Y[I][1]["font-size"]),I++;var F=0,O=0;for(void 0!==Y[0][1]["margin-left"]&&0<Y[0][1]["margin-left"]&&(F=(O=this.pdf.internal.getCoordinateString(Y[0][1]["margin-left"]))-L,L=O),v(F+Math.max(y["margin-left"]||0,0)*X,(-12*P).toFixed(2),"Td"),I=0,D=Y.length;I!==D;)Y[I][0]&&this.RenderTextFragment(Y[I][0],Y[I][1]),I++;if(this.y+=P*X,this.executeWatchFunctions(Y[0][1])&&0<R.length){var C=[],W=[];R.forEach(function(e1){for(var s1=0,u1=e1.length;s1!==u1;)e1[s1][0]&&(C.push(e1[s1][0]+" "),W.push(e1[s1][1])),++s1}),R=this.splitFragmentsIntoLines(G(C),W),v("ET","Q"),v("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return q&&"function"==typeof q&&q.call(this,this.x-9,this.y-w/2),v("ET","Q"),this.y+=b}},Q.prototype.setBlockBoundary=function(q){return this.renderParagraph(q)},Q.prototype.setBlockStyle=function(q){return this.paragraph.blockstyle=q},Q.prototype.addText=function(q,y){return this.paragraph.text.push(q),this.paragraph.style.push(y)},u={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},f={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},s={normal:"normal",italic:"italic",oblique:"italic"},h={left:"left",right:"right",center:"center",justify:"justify"},z={none:"none",right:"right",left:"left"},p={none:"none",both:"both"},x={normal:1},a.fromHTML=function(q,y,X,N,I,D){return this.margins_doc=D||{top:0,bottom:0},N||(N={}),N.elementHandlers||(N.elementHandlers={}),$(this,q,isNaN(y)?4:y,isNaN(X)?4:X,N,I)}}($1.API),(typeof window<"u"&&window||typeof global<"u"&&global).html2pdf=function(a,i,d){var u=i.canvas;if(u){var s,h;if((u.pdf=i).annotations={_nameMap:[],createAnnotation:function(G,Q){var l,_=i.context2d._wrapX(Q.left),x=i.context2d._wrapY(Q.top),A=(i.context2d._page(Q.top),G.indexOf("#"));l=0<=A?{name:G.substring(A+1)}:{url:G},i.link(_,x,Q.right-Q.left,Q.bottom-Q.top,l)},setName:function(G,Q){var l=i.context2d._wrapX(Q.left),_=i.context2d._wrapY(Q.top),x=i.context2d._page(Q.top);this._nameMap[G]={page:x,x:l,y:_}}},u.annotations=i.annotations,i.context2d._pageBreakAt=function(G){this.pageBreaks.push(G)},i.context2d._gotoPage=function(G){for(;i.internal.getNumberOfPages()<G;)i.addPage();i.setPage(G)},"string"==typeof a){a=a.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var f,z,p=document.createElement("iframe");document.body.appendChild(p),null!=(f=p.contentDocument)&&null!=f||(f=p.contentWindow.document),f.open(),f.write(a),f.close(),s=f.body,z=f.body||{},a=f.documentElement||{},h=Math.max(z.scrollHeight,z.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight)}else z=(s=a).body||{},h=Math.max(z.scrollHeight,z.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight);var k={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:u,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:h=i.internal.pageSize.getHeight(),scrollY:h};i.context2d.pageWrapYEnabled=!0,i.context2d.pageWrapY=i.internal.pageSize.getHeight(),html2canvas(s,k).then(function(G){d&&(p&&p.parentElement.removeChild(p),d(i))})}else alert("jsPDF canvas plugin not installed")},window.tmp=html2pdf,function(a){var i=a.BlobBuilder||a.WebKitBlobBuilder||a.MSBlobBuilder||a.MozBlobBuilder;
121a.URL=a.URL||a.webkitURL||function(x,A){return(A=document.createElement("a")).href=x,A};var d=a.Blob,u=URL.createObjectURL,s=URL.revokeObjectURL,h=a.Symbol&&a.Symbol.toStringTag,f=!1,z=!1,p=!!a.ArrayBuffer,k=i&&i.prototype.append&&i.prototype.getBlob;try{f=2===new Blob(["\xe4"]).size,z=2===new Blob([new Uint8Array([1,2])]).size}catch{}function G(x){return x.map(function(A){if(A.buffer instanceof ArrayBuffer){var V=A.buffer;if(A.byteLength!==V.byteLength){var T=new Uint8Array(A.byteLength);T.set(new Uint8Array(V,A.byteOffset,A.byteLength)),V=T.buffer}return V}return A})}function Q(x,A){A=A||{};var V=new i;return G(x).forEach(function(T){V.append(T)}),A.type?V.getBlob(A.type):V.getBlob()}function l(x,A){return new d(G(x),A||{})}if(a.Blob&&(Q.prototype=Blob.prototype,l.prototype=Blob.prototype),h)try{File.prototype[h]="File",Blob.prototype[h]="Blob",FileReader.prototype[h]="FileReader"}catch{}function _(){var x=!!a.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,A=a.XMLHttpRequest&&a.XMLHttpRequest.prototype.send;x&&A&&(XMLHttpRequest.prototype.send=function(T){T instanceof Blob&&this.setRequestHeader("Content-Type",T.type),A.call(this,T)});try{new File([],"")}catch{try{var V=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();a.File=V}catch{a.File=V=function($,K,h1){var l1=new Blob($,h1),q=h1&&void 0!==h1.lastModified?new Date(h1.lastModified):new Date;return l1.name=K,l1.lastModifiedDate=q,l1.lastModified=+q,l1.toString=function(){return"[object File]"},h&&(l1[h]="File"),l1}}}}f?(_(),a.Blob=z?a.Blob:l):k?(_(),a.Blob=Q):function(){function x(N){for(var I=[],D=0;D<N.length;D++){var Y=N.charCodeAt(D);Y<128?I.push(Y):Y<2048?I.push(192|Y>>6,128|63&Y):Y<55296||57344<=Y?I.push(224|Y>>12,128|Y>>6&63,128|63&Y):(D++,Y=65536+((1023&Y)<<10|1023&N.charCodeAt(D)),I.push(240|Y>>18,128|Y>>12&63,128|Y>>6&63,128|63&Y))}return I}function A(N){var I,D,Y,R,P,v;for(I="",Y=N.length,D=0;D<Y;)switch((R=N[D++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:I+=String.fromCharCode(R);break;case 12:case 13:P=N[D++],I+=String.fromCharCode((31&R)<<6|63&P);break;case 14:P=N[D++],v=N[D++],I+=String.fromCharCode((15&R)<<12|(63&P)<<6|(63&v)<<0)}return I}function V(N){for(var I=new Array(N.byteLength),D=new Uint8Array(N),Y=I.length;Y--;)I[Y]=D[Y];return I}function T(N){for(var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",D=[],Y=0;Y<N.length;Y+=3){var R=N[Y],P=Y+1<N.length,v=P?N[Y+1]:0,b=Y+2<N.length,S=b?N[Y+2]:0,L=(15&v)<<2|S>>6,F=63&S;b||(F=64,P||(L=64)),D.push(I[R>>2],I[(3&R)<<4|v>>4],I[L],I[F])}return D.join("")}var J=Object.create||function(N){function I(){}return I.prototype=N,new I};if(p)var $=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],K=ArrayBuffer.isView||function(N){return N&&-1<$.indexOf(Object.prototype.toString.call(N))};function h1(N,I){for(var D=0,Y=(N=N||[]).length;D<Y;D++){var R=N[D];N[D]=R instanceof h1?R._buffer:"string"==typeof R?x(R):p&&(ArrayBuffer.prototype.isPrototypeOf(R)||K(R))?V(R):p&&(P=R)&&DataView.prototype.isPrototypeOf(P)?V(R.buffer):x(String(R))}var P;this._buffer=[].concat.apply([],N),this.size=this._buffer.length,this.type=I&&I.type||""}function l1(N,I,D){var Y=h1.call(this,N,D=D||{})||this;return Y.name=I,Y.lastModifiedDate=D.lastModified?new Date(D.lastModified):new Date,Y.lastModified=+Y.lastModifiedDate,Y}if(h1.prototype.slice=function(N,I,D){return new h1([this._buffer.slice(N||0,I||this._buffer.length)],{type:D})},h1.prototype.toString=function(){return"[object Blob]"},(l1.prototype=J(h1.prototype)).constructor=l1,Object.setPrototypeOf)Object.setPrototypeOf(l1,h1);else try{l1.__proto__=h1}catch{}function q(){if(!(this instanceof q))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object c
121onstructor cannot be called as a function.");var N=document.createDocumentFragment();this.addEventListener=N.addEventListener,this.dispatchEvent=function(I){var D=this["on"+I.type];"function"==typeof D&&D(I),N.dispatchEvent(I)},this.removeEventListener=N.removeEventListener}function y(N,I,D){if(!(I instanceof h1))throw new TypeError("Failed to execute '"+D+"' on 'FileReader': parameter 1 is not of type 'Blob'.");N.result="",setTimeout(function(){this.readyState=q.LOADING,N.dispatchEvent(new Event("load")),N.dispatchEvent(new Event("loadend"))})}l1.prototype.toString=function(){return"[object File]"},q.EMPTY=0,q.LOADING=1,q.DONE=2,q.prototype.error=null,q.prototype.onabort=null,q.prototype.onerror=null,q.prototype.onload=null,q.prototype.onloadend=null,q.prototype.onloadstart=null,q.prototype.onprogress=null,q.prototype.readAsDataURL=function(N){y(this,N,"readAsDataURL"),this.result="data:"+N.type+";base64,"+T(N._buffer)},q.prototype.readAsText=function(N){y(this,N,"readAsText"),this.result=A(N._buffer)},q.prototype.readAsArrayBuffer=function(N){y(this,N,"readAsText"),this.result=N._buffer.slice()},q.prototype.abort=function(){},URL.createObjectURL=function(N){return N instanceof h1?"data:"+N.type+";base64,"+T(N._buffer):u.call(URL,N)},URL.revokeObjectURL=function(N){s&&s.call(URL,N)};var X=a.XMLHttpRequest&&a.XMLHttpRequest.prototype.send;X&&(XMLHttpRequest.prototype.send=function(N){N instanceof h1?(this.setRequestHeader("Content-Type",N.type),X.call(this,A(N._buffer))):X.call(this,N)}),a.FileReader=q,a.File=l1,a.Blob=h1}()}(typeof self<"u"&&self||typeof window<"u"&&window||typeof global<"u"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var o6,s6,l6,j2,X2,G4,b4,h3,O2,t4,k4,T4,N3,O3,C6,l4=l4||function(a){if(!(void 0===a||typeof navigator<"u"&&/MSIE [1-9]\./.test(navigator.userAgent))){var d=function(){return a.URL||a.webkitURL||a},u=a.document.createElementNS("http://www.w3.org/1999/xhtml","a"),s="download"in u,h=/constructor/i.test(a.HTMLElement)||a.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent),z=a.setImmediate||a.setTimeout,p=function(_){z(function(){throw _},0)},k=function(_){setTimeout(function(){"string"==typeof _?d().revokeObjectURL(_):_.remove()},4e4)},G=function(_){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(_.type)?new Blob([String.fromCharCode(65279),_],{type:_.type}):_},Q=function(_,x,A){A||(_=G(_));var V,T=this,J="application/octet-stream"===_.type,$=function(){!function(K,h1,l1){for(var q=(h1=[].concat(h1)).length;q--;){var y=K["on"+h1[q]];if("function"==typeof y)try{y.call(K,K)}catch(X){p(X)}}}(T,"writestart progress write writeend".split(" "))};if(T.readyState=T.INIT,s)return V=d().createObjectURL(_),void z(function(){var K,h1;u.href=V,u.download=x,K=u,h1=new MouseEvent("click"),K.dispatchEvent(h1),$(),k(V),T.readyState=T.DONE},0);!function(){if((f||J&&h)&&a.FileReader){var K=new FileReader;return K.onloadend=function(){var h1=f?K.result:K.result.replace(/^data:[^;]*;/,"data:attachment/file;");a.open(h1,"_blank")||(a.location.href=h1),h1=void 0,T.readyState=T.DONE,$()},K.readAsDataURL(_),T.readyState=T.INIT}V||(V=d().createObjectURL(_)),J?a.location.href=V:a.open(V,"_blank")||(a.location.href=V),T.readyState=T.DONE,$(),k(V)}()},l=Q.prototype;return typeof navigator<"u"&&navigator.msSaveOrOpenBlob?function(_,x,A){return x=x||_.name||"download",A||(_=G(_)),navigator.msSaveOrOpenBlob(_,x)}:(l.abort=function(){},l.readyState=l.INIT=0,l.WRITING=1,l.DONE=2,l.error=l.onwritestart=l.onprogress=l.onwrite=l.onabort=l.onerror=l.onwriteend=null,function(_,x,A){return new Q(_,x||_.name||"download",A)})}}(typeof self<"u"&&self||typeof window<"u"&&window||void 0);function G3(a){var i=0;if(71!==a[i++]||73!==a[i++]||70!==a[i++]||56!==a[i++]||56!=(a[i++]+1&253)||97!==a[i++])throw"Invalid GIF 87a/89a header.";var d=a[i++]|a[i++]<<8,u=a[i++]|a[i++]<<8,s=a[i++];i++,i++;var z=null;s>>7&&(z=i,i+=3*(1<<1+(7&s)));var p=!0,k=[],G=0,Q=null,l=0,_=null;for(this.width=d,this.height=u;p&&i<a.length;)switch(a[i++]){case 33:switch(a[i++]){case 255:if(11!==a[i]||78==a[i+1]&&69==a[i+2]&&84==a[i+3]&&83==a[i+4]&&67==a[i+5]&&65==a[i+6]&&80==a[i+7]&&69==a[i+8]&&50==a[i+9]&&46==a[i+10]&&48==a[i+11]&&3==a[i+12]&&1==a[i+13]&&0==a[i+16])i+=14,_=a[i++]|a[i++]<<8,i++;else for(i+=12;0!==(y=a[i++]);)i+=y;break;case 249:if(4!==a[i++]||0!==a[i+4])throw"Invalid graphics extension block.";var x=a[i++];G=a[i++]|a[i++]<<8,Q=a[i++],!(1&x)&&(Q=null),l=x>>2&7,i++;break;case 254:for(;0!==(y=a[i++]);)i+=y;break;default:throw"Unknown graphic control label: 0x"+a[i-1].toString(16)}break;case 44:var A=a[i++]|a[i++]<<8,V=a[i++]|a[i++]<<8,T=a[i++]|a[i++]<<8,J=a[i++]|a[i++]<<8,$=a[i++],K=$>>6&1,h1=z,l1=!1;$>>7&&(l1=!0,h1=i,i+=3*(1<<1+(7&$)));var q=i;for(i++;;){var y;if(0===(y=a[i++]))break;i+=y}k.push({x:A,y:V,width:T,height:J,has_local_palette:l1,palette_offset:h1,data_offset:q,data_length:i-q,transparent_index:Q,interlaced:!!K,delay:G,disposal:l});break;case 59:p=!1;break;default:throw"Unknown gif block: 0x"+a[i-1].toString(16)}this.numFrames=function(){return k.length},this.loopCount=function(){return _},this.frameInfo=function(X){if(X<0||X>=k.length)throw"Frame index out of range.";return k[X]},this.decodeAndBlitFrameBGRA=function(X,N){var I=this.frameInfo(X),D=I.width*I.height,Y=new Uint8Array(D);h6(a,I.data_offset,Y,D);var R=I.palette_offset,P=I.transparent_index;
121null===P&&(P=256);var v=I.width,b=d-v,S=v,r=4*(I.y*d+I.x),w=4*((I.y+I.height)*d+I.x),L=r,F=4*b;!0===I.interlaced&&(F+=4*(v+b)*7);for(var O=8,C=0,W=Y.length;C<W;++C){var e1=Y[C];if(0===S&&(S=v,w<=(L+=F)&&(F=b+4*(v+b)*(O-1),L=r+(v+b)*(O<<1),O>>=1)),e1===P)L+=4;else{var s1=a[R+3*e1],u1=a[R+3*e1+1];N[L++]=a[R+3*e1+2],N[L++]=u1,N[L++]=s1,N[L++]=255}--S}},this.decodeAndBlitFrameRGBA=function(X,N){var I=this.frameInfo(X),D=I.width*I.height,Y=new Uint8Array(D);h6(a,I.data_offset,Y,D);var R=I.palette_offset,P=I.transparent_index;null===P&&(P=256);var v=I.width,b=d-v,S=v,r=4*(I.y*d+I.x),w=4*((I.y+I.height)*d+I.x),L=r,F=4*b;!0===I.interlaced&&(F+=4*(v+b)*7);for(var O=8,C=0,W=Y.length;C<W;++C){var e1=Y[C];if(0===S&&(S=v,w<=(L+=F)&&(F=b+4*(v+b)*(O-1),L=r+(v+b)*(O<<1),O>>=1)),e1===P)L+=4;else{var u1=a[R+3*e1+1],r1=a[R+3*e1+2];N[L++]=a[R+3*e1],N[L++]=u1,N[L++]=r1,N[L++]=255}--S}}}function h6(a,i,d,u){for(var s=a[i++],h=1<<s,f=h+1,z=f+1,p=s+1,k=(1<<p)-1,G=0,Q=0,l=0,_=a[i++],x=new Int32Array(4096),A=null;;){for(;G<16&&0!==_;)Q|=a[i++]<<G,G+=8,1===_?_=a[i++]:--_;if(G<p)break;var V=Q&k;if(Q>>=p,G-=p,V!==h){if(V===f)break;for(var T=V<z?V:A,J=0,$=T;h<$;)$=x[$]>>8,++J;var K=$;if(u<l+J+(T!==V?1:0))return void console.log("Warning, gif stream longer than expected.");d[l++]=K;var h1=l+=J;for(T!==V&&(d[l++]=K),$=T;J--;)d[--h1]=255&($=x[$]),$>>=8;null!==A&&z<4096&&(x[z++]=A<<8|K,k+1<=z&&p<12&&(++p,k=k<<1|1)),A=V}else z=f+1,k=(1<<(p=s+1))-1,A=null}return l!==u&&console.log("Warning, gif stream shorter than expected."),d}try{o4.GifWriter=function(a,i,d,u){var s=0,h=void 0===(u=void 0===u?{}:u).loop?null:u.loop,f=void 0===u.palette?null:u.palette;if(i<=0||d<=0||65535<i||65535<d)throw"Width/Height invalid.";function z(A){var V=A.length;if(V<2||256<V||V&V-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return V}a[s++]=71,a[s++]=73,a[s++]=70,a[s++]=56,a[s++]=57,a[s++]=97;var p=0,k=0;if(null!==f){for(var G=z(f);G>>=1;)++p;if(G=1<<p,--p,void 0!==u.background){if(G<=(k=u.background))throw"Background index out of range.";if(0===k)throw"Background index explicitly passed as 0."}}if(a[s++]=255&i,a[s++]=i>>8&255,a[s++]=255&d,a[s++]=d>>8&255,a[s++]=(null!==f?128:0)|p,a[s++]=k,a[s++]=0,null!==f)for(var Q=0,l=f.length;Q<l;++Q){var _=f[Q];a[s++]=_>>16&255,a[s++]=_>>8&255,a[s++]=255&_}if(null!==h){if(h<0||65535<h)throw"Loop count invalid.";a[s++]=33,a[s++]=255,a[s++]=11,a[s++]=78,a[s++]=69,a[s++]=84,a[s++]=83,a[s++]=67,a[s++]=65,a[s++]=80,a[s++]=69,a[s++]=50,a[s++]=46,a[s++]=48,a[s++]=3,a[s++]=1,a[s++]=255&h,a[s++]=h>>8&255,a[s++]=0}var x=!1;this.addFrame=function(A,V,T,J,$,K){if(!0===x&&(--s,x=!1),A<0||V<0||65535<A||65535<V)throw"x/y invali
121d.";if(T<=0||J<=0||65535<T||65535<J)throw"Width/Height invalid.";if($.length<T*J)throw"Not enough pixels for the frame size.";var h1=!0,l1=(K=void 0===K?{}:K).palette;if(null==l1&&(h1=!1,l1=f),null==l1)throw"Must supply either a local or global palette.";for(var q=z(l1),y=0;q>>=1;)++y;q=1<<y;var X=void 0===K.delay?0:K.delay,N=void 0===K.disposal?0:K.disposal;if(N<0||3<N)throw"Disposal out of range.";var I=!1,D=0;if(null!=K.transparent&&(I=!0,(D=K.transparent)<0||q<=D))throw"Transparent color index.";if((0!==N||I||0!==X)&&(a[s++]=33,a[s++]=249,a[s++]=4,a[s++]=N<<2|(!0===I?1:0),a[s++]=255&X,a[s++]=X>>8&255,a[s++]=D,a[s++]=0),a[s++]=44,a[s++]=255&A,a[s++]=A>>8&255,a[s++]=255&V,a[s++]=V>>8&255,a[s++]=255&T,a[s++]=T>>8&255,a[s++]=255&J,a[s++]=J>>8&255,a[s++]=!0===h1?128|y-1:0,!0===h1)for(var Y=0,R=l1.length;Y<R;++Y){var P=l1[Y];a[s++]=P>>16&255,a[s++]=P>>8&255,a[s++]=255&P}s=function(v,b,S,r){v[b++]=S;var w=b++,L=1<<S,F=L-1,O=L+1,C=O+1,W=S+1,e1=0,s1=0;function u1(c1){for(;c1<=e1;)v[b++]=255&s1,s1>>=8,e1-=8,b===w+256&&(v[w]=255,w=b++)}function r1(c1){s1|=c1<<e1,e1+=W,u1(8)}var m1=r[0]&F,o1={};r1(L);for(var M1=1,H=r.length;M1<H;++M1){var Z=r[M1]&F,B=m1<<8|Z,E=o1[B];if(void 0===E){for(s1|=m1<<e1,e1+=W;8<=e1;)v[b++]=255&s1,s1>>=8,e1-=8,b===w+256&&(v[w]=255,w=b++);4096===C?(r1(L),C=O+1,W=S+1,o1={}):(1<<W<=C&&++W,o1[B]=C++),m1=Z}else m1=E}return r1(m1),r1(O),u1(1),w+1===b?v[w]=0:(v[w]=b-w-1,v[b++]=0),b}(a,s,y<2?2:y,$)},this.end=function(){return!1===x&&(a[s++]=59,x=!0),s}},o4.GifReader=G3}catch{}function k3(a){var i,d,u,s,h,f=Math.floor,z=new Array(64),p=new Array(64),k=new Array(64),G=new Array(64),Q=new Array(65535),l=new Array(65535),_=new Array(64),x=new Array(64),A=[],V=0,T=7,J=new Array(64),$=new Array(64),K=new Array(64),h1=new Array(256),l1=new Array(2048),q=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],y=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],X=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],D=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Y=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],P=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function v(F,O){for(var C=0,W=0,e1=new Array,s1=1;s1<=16;s1++){for(var u1=1;u1<=F[s1];u1++)e1[O[W]]=[],e1[O[W]][0]=C,e1[O[W]][1]=s1,W++,C++;C*=2}return e1}function b(F){for(var O=F[0],C=F[1]-1;0<=C;)O&1<<C&&(V|=1<<T),C--,--T<0&&(255==V?(S(255),S(0)):S(V),T=7,V=0)}function S(F){A.push(F)}function r(F){S(F>>8&255),S(255&F)}function w(F,O,C,W,e1){for(var s1,u1=e1[0],r1=e1[240],m1=function(_1,d1){var U1,V1,E1,S1,O1,G1,Q1,e2,D1,f1,k1=0;for(D1=0;D1<8;++D1){var C2=(U1=_1[k1])+(e2=_1[k1+7]),b2=U1-e2,G2=(V1=_1[k1+1])+(Q1=_1[k1+6]),d2=V1-Q1,H2=(E1=_1[k1+2])+(G1=_1[k1+5]),y2=E1-G1,I2=(S1=_1[k1+3])+(O1=_1[k1+4]),C1=S1-O1,x1=C2+I2,L1=C2-I2,y1=G2+H2,b1=G2-H2;_1[k1]=x1+y1,_1[k1+4]=x1-y1;var B1=.707106781*(b1+L1);_1[k1+2]=L1+B1,_1[k1+6]=L1-B1;var Z1=.382683433*((x1=C1+y2)-(b1=d2+b2)),p2=.5411961*x1+Z1,c2=1.306562965*b1+Z1,r2=.707106781*(y1=y2+d2),_2=b2+r2,F2=b2-r2;_1[k1+5]=F2+p2,_1[k1+3]=F2-p2,_1[k1+1]=_2+c2,_1[k1+7]=_2-c2,k1+=8}for(D1=k1=0;D1<8;++D1){var h4=(U1=_1[k1])+(e2=_1[k1+56]),Z4=U1-e2,q2=(V1=_1[k1+8])+(Q1=_1[k1+48]),U4=V1-Q1,d3=(E1=_1[k1+16])+(G1=_1[k1+40]),p3=E1-G1,J2=(S1=_1[k1+24])+(O1=_1[k1+32]),y4=S1-O1,E2=h4+J2,L4=h4-J2,E4=q2+d3,A4=q2-d3;_1[k1]=E2+E4,_1[k1+32]=E2-E4;var g3=.707106781*(A4+L4);_1[k1+16]=L4+g3,_1[k1+48]=L4-g3;var v3=.382683433*((E2=y4+p3)-(A4=U4+Z4)),i2=.5411961*E2+v3,o2=1.306562965*A4+v3,u3=.707106781*(E4=p3+U4),m3=Z4+u3,d4=Z4-u3;_1[k1+40]=d4+i2,_1[k1+24]=d4-i2,_1[k1+8]=m3+o2,_1[k1+56]=m3-o2,k1++}for(D1=0;D1<64;++D1)_[D1]=0<(f1=_1[D1]*d1[D1])?f1+.5|0:f1-.5|0;return _}(F,O),o1=0;o1<64;++o1)x[q[o1]]=m1[o1];var M1=x[0]-C;C=x[0],0==M1?b(W[0]):(b(W[l[s1=32767+M1]]),b(Q[s1]));for(var H=63;0<H&&0==x[H];H--);if(0==H)return b(u1),C;for(var Z,B=1;B<=H;){for(var E=B;0==x[B]&&B<=H;++B);var c1=B-E;
121if(16<=c1){Z=c1>>4;for(var i1=1;i1<=Z;++i1)b(r1);c1&=15}b(e1[(c1<<4)+l[s1=32767+x[B]]]),b(Q[s1]),B++}return 63!=H&&b(u1),C}function L(F){F<=0&&(F=1),100<F&&(F=100),h!=F&&(function(O){for(var C=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],W=0;W<64;W++){var e1=f((C[W]*O+50)/100);e1<1?e1=1:255<e1&&(e1=255),z[q[W]]=e1}for(var s1=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],u1=0;u1<64;u1++){var r1=f((s1[u1]*O+50)/100);r1<1?r1=1:255<r1&&(r1=255),p[q[u1]]=r1}for(var m1=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],o1=0,M1=0;M1<8;M1++)for(var H=0;H<8;H++)k[o1]=1/(z[q[o1]]*m1[M1]*m1[H]*8),G[o1]=1/(p[q[o1]]*m1[M1]*m1[H]*8),o1++}(F<50?Math.floor(5e3/F):Math.floor(200-2*F)),h=F)}this.encode=function(F,O){var C,W;(new Date).getTime(),O&&L(O),A=new Array,V=0,T=7,r(65496),r(65504),r(16),S(74),S(70),S(73),S(70),S(0),S(1),S(1),S(0),r(1),r(1),S(0),S(0),function(){r(65499),r(132),S(0);for(var S1=0;S1<64;S1++)S(z[S1]);S(1);for(var O1=0;O1<64;O1++)S(p[O1])}(),C=F.width,W=F.height,r(65472),r(17),S(8),r(W),r(C),S(3),S(1),S(17),S(0),S(2),S(17),S(1),S(3),S(17),S(1),function(){r(65476),r(418),S(0);for(var S1=0;S1<16;S1++)S(y[S1+1]);for(var O1=0;O1<=11;O1++)S(X[O1]);S(16);for(var G1=0;G1<16;G1++)S(N[G1+1]);for(var Q1=0;Q1<=161;Q1++)S(I[Q1]);S(1);for(var e2=0;e2<16;e2++)S(D[e2+1]);for(var D1=0;D1<=11;D1++)S(Y[D1]);S(17);for(var f1=0;f1<16;f1++)S(R[f1+1]);for(var k1=0;k1<=161;k1++)S(P[k1])}(),r(65498),r(12),S(3),S(1),S(0),S(2),S(17),S(3),S(17),S(0),S(63),S(0);var e1=0,s1=0,u1=0;V=0,T=7,this.encode.displayName="_encode_";for(var r1,m1,o1,M1,H,Z,B,E,c1,i1=F.data,d1=F.height,U1=4*F.width,V1=0;V1<d1;){for(r1=0;r1<U1;){for(Z=H=U1*V1+r1,B=-1,c1=E=0;c1<64;c1++)Z=H+(E=c1>>3)*U1+(B=4*(7&c1)),d1<=V1+E&&(Z-=U1*(V1+1+E-d1)),U1<=r1+B&&(Z-=r1+B-U1+4),m1=i1[Z++],o1=i1[Z++],M1=i1[Z++],J[c1]=(l1[m1]+l1[o1+256>>0]+l1[M1+512>>0]>>16)-128,$[c1]=(l1[m1+768>>0]+l1[o1+1024>>0]+l1[M1+1280>>0]>>16)-128,K[c1]=(l1[m1+1280>>0]+l1[o1+1536>>0]+l1[M1+1792>>0]>>16)-128;e1=w(J,k,e1,i,u),s1=w($,G,s1,d,s),u1=w(K,G,u1,d,s),r1+=32}V1+=8}if(0<=T){var E1=[];E1[1]=T+1,E1[0]=(1<<T+1)-1,b(E1)}return r(65497),new Uint8Array(A)},(new Date).getTime(),a||(a=50),function(){for(var F=String.fromCharCode,O=0;O<256;O++)h1[O]=F(O)}(),i=v(y,X),d=v(D,Y),u=v(N,I),s=v(R,P),function(){for(var F=1,O=2,C=1;C<=15;C++){for(var W=F;W<O;W++)l[32767+W]=C,Q[32767+W]=[],Q[32767+W][1]=C,Q[32767+W][0]=W;for(var e1=-(O-1);e1<=-F;e1++)l[32767+e1]=C,Q[32767+e1]=[],Q[32767+e1][1]=C,Q[32767+e1][0]=O-1+e1;F<<=1,O<<=1}}(),function(){for(var F=0;F<256;F++)l1[F]=19595*F,l1[F+256>>0]=38470*F,l1[F+512>>0]=7471*F+32768,l1[F+768>>0]=-11059*F,l1[F+1024>>0]=-21709*F,l1[F+1280>>0]=32768*F+8421375,l1[F+1536>>0]=-27439*F,l1[F+1792>>0]=-5329*F}(),L(a),(new Date).getTime()}function k2(a,i){if(this.pos=0,this.buffer=a,this.datav=new DataView(a.buffer),this.is_with_alpha=!!i,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}window.tmp=G3,$1.API.adler32cs=(G4="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,b4=null,h3=function(){if(!G4)return function(){return!1};try{var a={};"function"==typeof a.Buffer&&(b4=a.Buffer)}catch{}return function(i){return i instanceof ArrayBuffer||null!==b4&&i instanceof b4}}(),O2=null!==b4?function(a){return new b4(a,"utf8").toString("binary")}:function(a){return unescape(encodeURIComponent(a))},t4=function(a,i){for(var d=65535&a,u=a>>>16,s=0,h=i.length;s<h;s++)u=(u+(d=(d+(255&i.charCodeAt(s)))%65521))%65521;return(u<<16|d)>>>0},k4=function(a,i){for(var d=65535&a,u=a>>>16,s=0,h=i.length;s<h;s++)u=(u+(d=(d+i[s])%65521))%65521;return(u<<16|d)>>>0},N3=(T4={}
121).Adler32=(((X2=(j2=function(a){if(!(this instanceof j2))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(a=null==a?1:+a))throw new Error("First arguments needs to be a finite number.");this.checksum=a>>>0}).prototype={}).constructor=j2).from=((o6=function(a){if(!(this instanceof j2))throw new TypeError("Constructor cannot called be as a function.");if(null==a)throw new Error("First argument needs to be a string.");this.checksum=t4(1,a.toString())}).prototype=X2,o6),j2.fromUtf8=((s6=function(a){if(!(this instanceof j2))throw new TypeError("Constructor cannot called be as a function.");if(null==a)throw new Error("First argument needs to be a string.");var i=O2(a.toString());this.checksum=t4(1,i)}).prototype=X2,s6),G4&&(j2.fromBuffer=((l6=function(a){if(!(this instanceof j2))throw new TypeError("Constructor cannot called be as a function.");if(!h3(a))throw new Error("First argument needs to be ArrayBuffer.");var i=new Uint8Array(a);return this.checksum=k4(1,i)}).prototype=X2,l6)),X2.update=function(a){if(null==a)throw new Error("First argument needs to be a string.");return a=a.toString(),this.checksum=t4(this.checksum,a)},X2.updateUtf8=function(a){if(null==a)throw new Error("First argument needs to be a string.");var i=O2(a.toString());return this.checksum=t4(this.checksum,i)},G4&&(X2.updateBuffer=function(a){if(!h3(a))throw new Error("First argument needs to be ArrayBuffer.");var i=new Uint8Array(a);return this.checksum=k4(this.checksum,i)}),X2.clone=function(){return new N3(this.checksum)},j2),T4.from=function(a){if(null==a)throw new Error("First argument needs to be a string.");return t4(1,a.toString())},T4.fromUtf8=function(a){if(null==a)throw new Error("First argument needs to be a string.");var i=O2(a.toString());return t4(1,i)},G4&&(T4.fromBuffer=function(a){if(!h3(a))throw new Error("First argument need to be ArrayBuffer.");var i=new Uint8Array(a);return k4(1,i)}),T4),function(a){a.__bidiEngine__=a.prototype.__bidiEngine__=function(u){var s,h,f,z,p,k,G,Q=i,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],_=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],x={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},A={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},V=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],T=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),J=!1,$=0;this.__bidiEngine__={};var K=function(I){var D=I.charCodeAt(),Y=D>>8,R=A[Y];return void 0!==R?Q[256*R+(255&D)]:252===Y||253===Y?"AL":T.test(Y)?"L":8===Y?"R":"N"},h1=function(I){for(var D,Y=0;Y<I.length;Y++){if("L"===(D=K(I.charAt(Y))))return!1;if("R"===D)return!0}return!1},l1=function(I,D,Y,R){var P,v,b,S,r=D[R];switch(r){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":J=!1;break;case"N":case"AN":break;case"EN":J&&(r="AN");break;case"AL":J=!0,r="R";break;case"WS":case"BN":r="N";break;case"CS":R<1||R+1>=D.length||"EN"!==(P=Y[R-1])&&"AN"!==P||"EN"!==(v=D[R+1])&&"AN"!==v?r="N":J&&(v="AN"),r=v===P?v:"N";break;case"ES":r="EN"===(P=0<R?Y[R-1]:"B")&&R+1<D.length&&"EN"===D[R+1]?"EN":"N";break;case"ET":if(0<R&&"EN"===Y[R-1]){r="EN";break}if(J){r="N";break}for(b=R+1,S=D.length;b<S&&"ET"===D[b];)b++;r=b<S&&"EN"===D[b]?"EN":"N";break;case"NSM":if(f&&!z){for(S=D.length,b=R+1;b<S&&"NSM"===D[b];)b++;if(b<S){var w=I[R];if(P=D[b],(1425<=w&&w<=2303||64286===w)&&("R"===P||"AL"===P)){r="R";break}}}r=R<1||"B"===(P=D[R-1])?"N":Y[R-1];break;case"B":s=!(J=!1),r=$;break;case"S":h=!0,r="N"}return r},q=function(I,D,Y){var R=I.split("");return Y&&y(R,Y,{hiLevel:$}),R.reverse(),D&&D.reverse(),R.join("")},y=function(I,D,Y){var R,P,v,b,S,r=-1,w=I.length,L=0,F=[],O=$?_:l,C=[];for(h=s=J=!1,P=0;P<w;P++)C[P]=K(I[P]);for(v=0;v<w;v++){if(S=L,F[v]=l1(I,C,F,v),R=240&(L=O[S][x[F[v]]]),D[v]=b=O[L&=15][5],0<R)if(16===R){for(P=r;P<v;P++)D[P]=1;r=-1}else r=-1;if(O[L][6])-1===r&&(r=v);else if(-1<r){for(P=r;P<v;P++)D[P]=b;r=-1}"B"===C[v]&&(D[v]=0),Y.hiLevel|=b}h&&function(W,e1,s1){for(var u1=0;u1<s1;u1++)if("S"===W[u1]){e1[u1]=$;for(var r1=u1-1;0<=r1&&"WS"===W[r1];r1--)e1[r1]=$}}(C,D,w)},X=function(I,D,Y,R,P){if(!(P.hiLevel<I)){if(1===I&&1===$&&!s)return D.reverse(),void(Y&&Y.reverse());for(var v,b,S,r,w=D.length,L=0;L<w;){if(R[L]>=I){for(S=L+1;S<w&&R[S]>=I;)S++;for(r=L,b=S-1;r<b;r++,b--)v=D[r],D[r]=D[b],D[b]=v,Y&&(v=Y[r],Y[r]=Y[b],Y[b]=v);L=S}L++}}},N=function(I,D,Y){var R=I.split(""),P={hiLevel:$};return Y||(Y=[]),y(R,Y,P),function(v,b,S){if(0!==S.hiLevel&&G)for(var r,w=0;w<v.length;w++)1===b[w]&&0<=(r=V.indexOf(v[w]))&&(v[w]=V[r+1])}(R,Y,P),X(2,R,D,Y,P),X(1,R,D,Y,P),R.join("")};return this.__bidiEngine__.doBidiReorder=function(I,D,Y){if(function(P,v){if(v)for(var b=0;b<P.length;b++)v[b]=b;void 0===z&&(z=h1(P)),void 0===k&&(k=h1(P))}(I,D),f||!p||k)if(f&&p&&z^k)$=z?1:0,I=q(I,D,Y);else if(!f&&p&&k)$=z?1:0,I=N(I,D,Y),I=q(I,D);else if(!f||z||p||k){if(f&&!p&&z^k)I=q(I,D),I=z?($=0,N(I,D,Y)):($=1,I=N(I,D,Y),q(I,D));else if(f&&z&&!p&&k)$=1,I=N(I,D,Y),I=q(I,D);else if(!f&&!p&&z^k){var R=G;z?($=1,I=N(I,D,Y),$=0,G=!1,I=N(I,D,Y),G=R):($=0,I=N(I,D,Y),I=q(I,D),G=!($=1),I=N(I,D,Y),G=R,I=q(I,D))}}else $=0,I=N(I,D,Y);else $=z?1:0,I=N(I,D,Y);return I},this.__bidiEngine__.setOptions=function(I){I&&(f=I.isInputVisual,p=I.isOutputVisual,z=I.isInputRtl,k=I.isOutputRtl,G=I.isSymmetricSwapping)},this.__bidiEngine__.setOptions(u),this.__bidiEngine__};var i=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],d=new a.__bidiEngine__({isInputVisual:!0});a.API.events.push(["postProcessText",function(u){var s=u.text,f=[];if("[object Array]"===Object.prototype.toString.call(s)){var z=0;for(f=[],z=0;z<s.length;z+=1)"[object Array]"===Object.prototype.toString.call(s[z])?f.push([d.doBidiReorder(s[z][0]),s[z][1],s[z][2]]):f.push([d.doBidiReorder(s[z])]);u.text=f}else u.text=d.doBidiReorder(s)}])}($1),window.tmp=k3,k2.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+
121=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var a=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(a);for(var i=0;i<a;i++){var d=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0);this.palette[i]={red:s,green:u,blue:d,quad:h}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},k2.prototype.parseBGR=function(){this.pos=this.offset;try{var a="bit"+this.bitPP;this.data=new Uint8Array(this.width*this.height*4),this[a]()}catch(d){console.log("bit decode error:"+d)}},k2.prototype.bit1=function(){var a=Math.ceil(this.width/8),i=a%4,d=0<=this.height?this.height-1:-this.height;for(d=this.height-1;0<=d;d--){for(var u=this.bottom_up?d:this.height-1-d,s=0;s<a;s++)for(var h=this.datav.getUint8(this.pos++,!0),f=u*this.width*4+8*s*4,z=0;z<8&&8*s+z<this.width;z++){var p=this.palette[h>>7-z&1];this.data[f+4*z]=p.blue,this.data[f+4*z+1]=p.green,this.data[f+4*z+2]=p.red,this.data[f+4*z+3]=255}0!=i&&(this.pos+=4-i)}},k2.prototype.bit4=function(){for(var a=Math.ceil(this.width/2),i=a%4,d=this.height-1;0<=d;d--){for(var u=this.bottom_up?d:this.height-1-d,s=0;s<a;s++){var h=this.datav.getUint8(this.pos++,!0),f=u*this.width*4+2*s*4,p=15&h,k=this.palette[h>>4];if(this.data[f]=k.blue,this.data[f+1]=k.green,this.data[f+2]=k.red,this.data[f+3]=255,2*s+1>=this.width)break;this.data[f+4]=(k=this.palette[p]).blue,this.data[f+4+1]=k.green,this.data[f+4+2]=k.red,this.data[f+4+3]=255}0!=i&&(this.pos+=4-i)}},k2.prototype.bit8=function(){for(var a=this.width%4,i=this.height-1;0<=i;i--){for(var d=this.bottom_up?i:this.height-1-i,u=0;u<this.width;u++){var s=this.datav.getUint8(this.pos++,!0),h=d*this.width*4+4*u;if(s<this.palette.length){var f=this.palette[s];this.data[h]=f.red,this.data[h+1]=f.green,this.data[h+2]=f.blue,this.data[h+3]=255}else this.data[h]=255,this.data[h+1]=255,this.data[h+2]=255,this.data[h+3]=255}0!=a&&(this.pos+=4-a)}},k2.prototype.bit15=function(){for(var a=this.width%3,i=parseInt("11111",2),d=this.height-1;0<=d;d--){for(var u=this.bottom_up?d:this.height-1-d,s=0;s<this.width;s++){var h=this.datav.getUint16(this.pos,!0);this.pos+=2;var f=(h&i)/i*255|0,z=(h>>5&i)/i*255|0,k=h>>15?255:0,G=u*this.width*4+4*s;this.data[G]=(h>>10&i)/i*255|0,this.data[G+1]=z,this.data[G+2]=f,this.data[G+3]=k}this.pos+=a}},k2.prototype.bit16=function(){for(var a=this.width%3,i=parseInt("11111",2),d=parseInt("111111",2),u=this.height-1;0<=u;u--){for(var s=this.bottom_up?u:this.height-1-u,h=0;h<this.width;h++){var f=this.datav.getUint16(this.pos,!0);this.pos+=2;var z=(f&i)/i*255|0,p=(f>>5&d)/d*255|0,G=s*this.width*4+4*h;this.data[G]=(f>>11)/i*255|0,this.data[G+1]=p,this.data[G+2]=z,this.data[G+3]=255}this.pos+=a}},k2.prototype.bit24=function(){for(var a=this.height-1;0<=a;a--){for(var i=this.bottom_up?a:this.height-1-a,d=0;d<this.width;d++){var u=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0),f=i*this.width*4+4*d;this.data[f]=h,this.data[f+1]=s,this.data[f+2]=u,this.data[f+3]=255}this.pos+=this.width%4}},k2.prototype.bit32=function(){for(var a=this.height-1;0<=a;a--)for(var i=this.bottom_up?a:this.height-1-a,d=0;d<this.width;d++){var u=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0),f=this.datav.getUint8(this.pos++,!0),z=i*this.width*4+4*d;this.data[z]=h,this.data[z+1]=s,this.data[z+2]=u,this.data[z+3]=f}},k2.prototype.getData=function(){return this.data},window.tmp=k2,function(a){var i=15,d=573,u=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function s(){var _=this;function x(A,V){for(var T=0;T|=1&A,A>>>=1,T<<=1,0<--V;);return T>>>1}_.build_tree=function(A){var V,T,J,$=_.dyn_tree,K=_.stat_desc.static_tree,h1=_.stat_desc.elems,l1=-1;for(A.heap_len=0,A.heap_max=d,V=0;V<h1;V++)0!==$[2*V]?(A.heap[++A.heap_len]=l1=V,A.depth[V]=0):$[2*V+1]=0;for(;
121A.heap_len<2;)$[2*(J=A.heap[++A.heap_len]=l1<2?++l1:0)]=1,A.depth[J]=0,A.opt_len--,K&&(A.static_len-=K[2*J+1]);for(_.max_code=l1,V=Math.floor(A.heap_len/2);1<=V;V--)A.pqdownheap($,V);for(J=h1;V=A.heap[1],A.heap[1]=A.heap[A.heap_len--],A.pqdownheap($,1),T=A.heap[1],A.heap[--A.heap_max]=V,A.heap[--A.heap_max]=T,$[2*J]=$[2*V]+$[2*T],A.depth[J]=Math.max(A.depth[V],A.depth[T])+1,$[2*V+1]=$[2*T+1]=J,A.heap[1]=J++,A.pqdownheap($,1),2<=A.heap_len;);A.heap[--A.heap_max]=A.heap[1],function(q){var y,X,N,I,D,Y,R=_.dyn_tree,P=_.stat_desc.static_tree,v=_.stat_desc.extra_bits,b=_.stat_desc.extra_base,S=_.stat_desc.max_length,r=0;for(I=0;I<=i;I++)q.bl_count[I]=0;for(R[2*q.heap[q.heap_max]+1]=0,y=q.heap_max+1;y<d;y++)S<(I=R[2*R[2*(X=q.heap[y])+1]+1]+1)&&(I=S,r++),R[2*X+1]=I,X>_.max_code||(q.bl_count[I]++,D=0,b<=X&&(D=v[X-b]),q.opt_len+=(Y=R[2*X])*(I+D),P&&(q.static_len+=Y*(P[2*X+1]+D)));if(0!==r){do{for(I=S-1;0===q.bl_count[I];)I--;q.bl_count[I]--,q.bl_count[I+1]+=2,q.bl_count[S]--,r-=2}while(0<r);for(I=S;0!==I;I--)for(X=q.bl_count[I];0!==X;)(N=q.heap[--y])>_.max_code||(R[2*N+1]!=I&&(q.opt_len+=(I-R[2*N+1])*R[2*N],R[2*N+1]=I),X--)}}(A),function(q,y,X){var N,I,D,Y=[],R=0;for(N=1;N<=i;N++)Y[N]=R=R+X[N-1]<<1;for(I=0;I<=y;I++)0!==(D=q[2*I+1])&&(q[2*I]=x(Y[D]++,D))}($,_.max_code,A.bl_count)}}function h(_,x,A,V,T){this.static_tree=_,this.extra_bits=x,this.extra_base=A,this.elems=V,this.max_length=T}function f(_,x,A,V,T){this.good_length=_,this.max_lazy=x,this.nice_length=A,this.max_chain=V,this.func=T}s._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],s.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],s.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],s.d_code=function(_){return _<256?u[_]:u[256+(_>>>7)]},s.extra_lbits=[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],s.extra_dbits=[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],s.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],s.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,3
12167,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],h.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],h.static_l_desc=new h(h.static_ltree,s.extra_lbits,257,286,i),h.static_d_desc=new h(h.static_dtree,s.extra_dbits,0,30,i),h.static_bl_desc=new h(null,s.extra_blbits,0,19,7);var z=[new f(0,0,0,0,0),new f(4,4,8,4,1),new f(4,5,16,8,1),new f(4,6,32,32,1),new f(4,4,16,16,2),new f(8,16,32,32,2),new f(8,16,128,128,2),new f(8,32,128,256,2),new f(32,128,258,1024,2),new f(32,258,258,4096,2)],p=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function k(_,x,A,V){var T=_[2*x],J=_[2*A];return T<J||T==J&&V[x]<=V[A]}function G(){var _,x,A,V,T,J,$,K,h1,l1,q,y,X,N,I,D,Y,R,P,v,b,S,r,w,L,F,O,C,W,e1,s1,u1,r1,m1,o1,M1,H,Z,B,E,c1,i1=this,_1=new s,d1=new s,U1=new s;function V1(){var C1;for(C1=0;C1<286;C1++)s1[2*C1]=0;for(C1=0;C1<30;C1++)u1[2*C1]=0;for(C1=0;C1<19;C1++)r1[2*C1]=0;s1[512]=1,i1.opt_len=i1.static_len=0,M1=Z=0}function E1(C1,x1){var L1,y1,b1=-1,B1=C1[1],Z1=0,p2=7,c2=4;for(0===B1&&(p2=138,c2=3),C1[2*(x1+1)+1]=65535,L1=0;L1<=x1;L1++)y1=B1,B1=C1[2*(L1+1)+1],++Z1<p2&&y1==B1||(Z1<c2?r1[2*y1]+=Z1:0!==y1?(y1!=b1&&r1[2*y1]++,r1[32]++):Z1<=10?r1[34]++:r1[36]++,b1=y1,c2=(Z1=0)===B1?(p2=138,3):y1==B1?(p2=6,3):(p2=7,4))}function S1(C1){i1.pending_buf[i1.pending++]=C1}function O1(C1){S1(255&C1),S1(C1>>>8&255)}function G1(C1,x1){var L1,y1=x1;16-y1<c1?(O1(E|=(L1=C1)<<c1&65535),E=L1>>>16-c1,c1+=y1-16):(E|=C1<<c1&65535,c1+=y1)}function Q1(C1,x1){var L1=2*C1;G1(65535&x1[L1],65535&x1[L1+1])}function e2(C1,x1){var L1,y1,b1=-1,B1=C1[1],Z1=0,p2=7,c2=4;for(0===B1&&(p2=138,c2=3),L1=0;L1<=x1;L1++)if(y1=B1,B1=C1[2*(L1+1)+1],!(++Z1<p2&&y1==B1)){if(Z1<c2)for(;Q1(y1,r1),0!=--Z1;);else 0!==y1?(y1!=b1&&(Q1(y1,r1),Z1--),Q1(16,r1),G1(Z1-3,2)):Z1<=10?(Q1(17,r1),G1(Z1-3,3)):(Q1(18,r1),G1(Z1-11,7));b1=y1,c2=(Z1=0)===B1?(p2=138,3):y1==B1?(p2=6,3):(p2=7,4)}}function D1(){16==c1?(O1(E),c1=E=0):8<=c1&&(S1(255&E),E>>>=8,c1-=8)}function f1(C1,x1){var L1,y1,b1;if(i1.pending_buf[H+2*M1]=C1>>>8&255,i1.pending_buf[H+2*M1+1]=255&C1,i1.pending_buf[m1+M1]=255&x1,M1++,0===C1?s1[2*x1]++:(Z++,C1--,s1[2*(s._length_code[x1]+256+1)]++,u1[2*s.d_code(C1)]++),0==(8191&M1)&&2<O){for(L1=8*M1,y1=b-Y,b1=0;b1<30;b1++)L1+=u1[2*b1]*(5+s.extra_dbits[b1]);if(L1>>>=3,Z<Math.floor(M1/2)&&L1<Math.floor(y1/2))return!0}return M1==o1-1}function k1(C1,x1){var L1,y1,b1,B1,Z1=0;if(0!==M1)for(;L1=i1.pending_buf[H+2*Z1]<<8&65280|255&i1.pending_buf[H+2*Z1+1],y1=255&i1.pending_buf[m1+Z1],Z1++,0===L1?Q1(y1,C1):(Q1((b1=s._length_code[y1])+256+1,C1),0!==(B1=s.extra_lbits[b1])&&G1(y1-=s.base_length[b1],B1),Q1(b1=s.d_code(--L1),x1),0!==(B1=s.extra_dbits[b1])&&G1(L1-=s.base_dist[b1],B1)),Z1<M1;);Q1(256,C1),B=C1[513]}function C2(){8<c1?O1(E):0<c1&&S1(255&E),c1=E=0}function b2(C1,x1,L1){var y1,b1;G1(0+(L1?1:0),3),y1=C1,b1=x1,C2(),B=8,O1(b1),O1(~b1),i1.pending_buf.set(K.subarray(y1,y1+b1),i1.pending),i1.pending+=b1}function d2(C1){(function G2(C1,x1,L1){var y1,b1,B1=0;0<O?(_1.build_tree(i1),d1.build_tree(i1),B1=function(){var Z1;for(E1(s1,_1.max_code),E1(u1,d1.max_code),U1.build_tree(i1),Z1=18;3<=Z1&&0===r1[2*s.bl_order[Z1]+1];Z1--);return i1.opt_len+=3*(Z1+1)+5+5+4,Z1}(),(b1=i1.static_len+3+7>>>3)<=(y1=i1.opt_len+3+7>>>3)&&(y1=b1)):y1=b1=x1+5,x1+4<=y1&&-1!=C1?b2(C1,x1,L1):b1==y1?(G1(2+(L1?1:0),3),k1(h.static_ltree,h.static_dtree)):(G1(4+(L1?1:0),3),function(Z1,p2,c2){var r2;for(G1(Z1-257,5),G1(p2-1,5),G1(c2-4,4),r2=0;r2<c2;r2++)G1(r1[2*s.bl_order[r2]+1],3);e2(s1,Z1-1),e2(u1,p2-1)}(_1.max_code+1,d1.max_code+1,B1+1),k1(s1,u1)),V1(),L1&&C2()})(0<=Y?Y:-1,b-Y,C1),Y=b,_.flush_pending()}function H2(){var C1,x1,L1,y1;do{if(0==(y1=h1-r-b)&&0===b&&0===r)y1=T;else if(-1==y1)y1--;else if(T+T-262<=b){for(K.set(K.subarray(T,T+T),0),S-=T,b-=T,Y-=T,L1=C1=X;x1=65535&q[--L1],q[L1]=T<=x1?x1-T:0,0!=--C1;);for(L1=C1=T;x1=65535&l1[--L1],l1[L1]=T<=x1?x1-T:0,0!=--C1;);y1+=T}if(0===_.avail_in)return;C1=_.read_buf(K,b+r,y1),3<=(r+=C1)&&(y=((y=255&K[b])<<D^255&K[b+1])&I)}while(r<262&&0!==_.avail_in)}function y2(C1){var x1,L1,y1=L,b1=b,B1=w,Z1=T-262<b?b-(T-262):0,p2=e1,c2=$,r2=b+258,_2=K[b1+B1-1],F2=K[b1+B1];W<=w&&(y1>>=2),r<p2&&(p2=r);
121do{if(K[(x1=C1)+B1]==F2&&K[x1+B1-1]==_2&&K[x1]==K[b1]&&K[++x1]==K[b1+1]){b1+=2,x1++;do{}while(K[++b1]==K[++x1]&&K[++b1]==K[++x1]&&K[++b1]==K[++x1]&&K[++b1]==K[++x1]&&K[++b1]==K[++x1]&&K[++b1]==K[++x1]&&K[++b1]==K[++x1]&&K[++b1]==K[++x1]&&b1<r2);if(L1=258-(r2-b1),b1=r2-258,B1<L1){if(S=C1,p2<=(B1=L1))break;_2=K[b1+B1-1],F2=K[b1+B1]}}}while((C1=65535&l1[C1&c2])>Z1&&0!=--y1);return B1<=r?B1:r}i1.depth=[],i1.bl_count=[],i1.heap=[],s1=[],u1=[],r1=[],i1.pqdownheap=function(C1,x1){for(var L1=i1.heap,y1=L1[x1],b1=x1<<1;b1<=i1.heap_len&&(b1<i1.heap_len&&k(C1,L1[b1+1],L1[b1],i1.depth)&&b1++,!k(C1,y1,L1[b1],i1.depth));)L1[x1]=L1[b1],x1=b1,b1<<=1;L1[x1]=y1},i1.deflateInit=function(C1,x1,L1,y1,b1,B1){return y1||(y1=8),b1||(b1=8),B1||(B1=0),C1.msg=null,-1==x1&&(x1=6),b1<1||9<b1||8!=y1||L1<9||15<L1||x1<0||9<x1||B1<0||2<B1?-2:(C1.dstate=i1,$=(T=1<<(J=L1))-1,I=(X=1<<(N=b1+7))-1,D=Math.floor((N+3-1)/3),K=new Uint8Array(2*T),l1=[],q=[],o1=1<<b1+6,i1.pending_buf=new Uint8Array(4*o1),A=4*o1,H=Math.floor(o1/2),m1=3*o1,O=x1,C=B1,function I2(C1){return C1.total_in=C1.total_out=0,C1.msg=null,i1.pending=0,i1.pending_out=0,x=113,V=0,_1.dyn_tree=s1,_1.stat_desc=h.static_l_desc,d1.dyn_tree=u1,d1.stat_desc=h.static_d_desc,U1.dyn_tree=r1,U1.stat_desc=h.static_bl_desc,c1=E=0,B=8,V1(),function(){var x1;for(h1=2*T,x1=q[X-1]=0;x1<X-1;x1++)q[x1]=0;F=z[O].max_lazy,W=z[O].good_length,e1=z[O].nice_length,L=z[O].max_chain,R=w=2,y=v=r=Y=b=0}(),0}(C1))},i1.deflateEnd=function(){return 42!=x&&113!=x&&666!=x?-2:(i1.pending_buf=null,K=l1=q=null,i1.dstate=null,113==x?-3:0)},i1.deflateParams=function(C1,x1,L1){var y1=0;return-1==x1&&(x1=6),x1<0||9<x1||L1<0||2<L1?-2:(z[O].func!=z[x1].func&&0!==C1.total_in&&(y1=C1.deflate(1)),O!=x1&&(F=z[O=x1].max_lazy,W=z[O].good_length,e1=z[O].nice_length,L=z[O].max_chain),C=L1,y1)},i1.deflateSetDictionary=function(C1,x1,L1){var y1,b1=L1,B1=0;if(!x1||42!=x)return-2;if(b1<3)return 0;for(T-262<b1&&(B1=L1-(b1=T-262)),K.set(x1.subarray(B1,B1+b1),0),Y=b=b1,y=((y=255&K[0])<<D^255&K[1])&I,y1=0;y1<=b1-3;y1++)l1[y1&$]=q[y=(y<<D^255&K[y1+2])&I],q[y]=y1;return 0},i1.deflate=function(C1,x1){var L1,y1,b1,B1,Z1,p2;if(4<x1||x1<0)return-2;if(!C1.next_out||!C1.next_in&&0!==C1.avail_in||666==x&&4!=x1)return C1.msg=p[4],-2;if(0===C1.avail_out)return C1.msg=p[7],-5;if(_=C1,B1=V,V=x1,42==x&&(y1=8+(J-8<<4)<<8,3<(b1=(O-1&255)>>1)&&(b1=3),y1|=b1<<6,0!==b&&(y1|=32),x=113,S1((p2=y1+=31-y1%31)>>8&255),S1(255&p2)),0!==i1.pending){if(_.flush_pending(),0===_.avail_out)return V=-1,0}else if(0===_.avail_in&&x1<=B1&&4!=x1)return _.msg=p[7],-5;if(666==x&&0!==_.avail_in)return C1.msg=p[7],-5;if(0!==_.avail_in||0!==r||0!=x1&&666!=x){switch(Z1=-1,z[O].func){case 0:Z1=function(c2){var r2,_2=65535;for(A-5<_2&&(_2=A-5);;){if(r<=1){if(H2(),0===r&&0==c2)return 0;if(0===r)break}if(b+=r,r2=Y+_2,((r=0)===b||r2<=b)&&(r=b-r2,b=r2,d2(!1),0===_.avail_out)||T-262<=b-Y&&(d2(!1),0===_.avail_out))return 0}return d2(4==c2),0===_.avail_out?4==c2?2:0:4==c2?3:1}(x1);break;case 1:Z1=function(c2){for(var r2,_2=0;;){if(r<262){if(H2(),r<262&&0==c2)return 0;if(0===r)break}if(3<=r&&(_2=65535&q[y=(y<<D^255&K[b+2])&I],l1[b&$]=q[y],q[y]=b),0!==_2&&(b-_2&65535)<=T-262&&2!=C&&(R=y2(_2)),3<=R)if(r2=f1(b-S,R-3),r-=R,R<=F&&3<=r){for(R--;y=(y<<D^255&K[2+ ++b])&I,_2=65535&q[y],l1[b&$]=q[y],q[y]=b,0!=--R;);b++}else b+=R,R=0,y=((y=255&K[b])<<D^255&K[b+1])&I;else r2=f1(0,255&K[b]),r--,b++;if(r2&&(d2(!1),0===_.avail_out))return 0}return d2(4==c2),0===_.avail_out?4==c2?2:0:4==c2?3:1}(x1);break;case 2:Z1=function(c2){for(var r2,_2,F2=0;;){if(r<262){if(H2(),r<262&&0==c2)return 0;if(0===r)break}if(3<=r&&(F2=65535&q[y=(y<<D^255&K[b+2])&I],l1[b&$]=q[y],q[y]=b),w=R,P=S,R=2,0!==F2&&w<F&&(b-F2&65535)<=T-262&&(2!=C&&(R=y2(F2)),R<=5&&(1==C||3==R&&4096<b-S)&&(R=2)),3<=w&&R<=w){for(_2=b+r-3,r2=f1(b-1-P,w-3),r-=w-1,w-=2;++b<=_2&&(F2=65535&q[y=(y<<D^255&K[b+2])&I],l1[b&$]=q[y],q[y]=b),0!=--w;);if(v=0,R=2,b++,r2&&(d2(!1),0===_.avail_out))return 0}else if(0!==v){if((r2=f1(0,255&K[b-1]))&&d2(!1),b++,r--,0===_.avail_out)return 0}else v=1,b++,r--}return 0!==v&&(r2=f1(0,255&K[b-1]),v=0),d2(4==c2),0===_.avail_out?4==c2?2:0:4==c2?3:1}(x1)}if(2!=Z1&&3!=Z1||(x=666),0==Z1||2==Z1)return 0===_.avail_out&&(V=-1),0;if(1==Z1){if(1==x1)G1(2,3),Q1(256,h.static_ltree),D1(),1+B+10-c1<9&&(G1(2,3),Q1(256,h.static_ltree),D1()),B=7;else if(b2(0,0,!1),3==x1)for(L1=0;L1<X;L1++)q[L1]=0;if(_.flush_pending(),0===_.avail_out)return V=-1,0}}return 4!=x1?0:1}}function Q(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}Q.prototype={deflateInit:function(_,x){return this.dstate=new G,x||(x=i),this.dstate.deflateInit(this,_,x)},deflate:function(_){return this.dstate?this.dstate.deflate(this,_):-2},deflateEnd:function(){if(!this.dstate)return-2;var _=this.dstate.deflateEnd();return this.dstate=null,_},deflateParams:function(_,x){return this.dstate?this.dstate.deflateParams(this,_,x):-2},deflateSetDictionary:function(_,x){return this.dstate?this.dstate.deflateSetDictionary(this,_,x):-2},read_buf:function(_,x,A){var V=this.avail_in;return A<V&&(V=A),0===V?0:(this.avail_in-=V,_.set(this.next_in.subarray(this.next_in_index,this.next_in_index+V),x),this.next_in_index+=V,this.total_in+=V,V)},flush_pending:function(){var _=this,x=_.dstate.pending;x>_.avail_out&&(x=_.avail_out),0!==x&&(_.next_out.set(_.dstate.pending_buf.subarray(_.dstate.pending_out,_.dstate.pending_out+x),_.next_out_index),_.next_out_index+=x,_.dstate.pending_out+=x,_.total_out+=x,_.avail_out-=x,_.dstate.pending-=x,0===_.dstate.pending&&(_.dstate.pending_out=0))}};var l=a.zip||a;l.Deflater=l._jzlib_Deflater=function(_){var x=new Q,A=new Uint8Array(512),V=_?_.level:-1;void 0===V&&(V=-1),x.deflateInit(V),x.next_out=A,this.append=function(T,J){var $,K=[],h1=0,l1=0,q=0;if(T.length){x.next_in_index=0,x.next_in=T,x.avail_in=T.length;do{if(x.next_out_index=0,x.avail_out=512,0!=x.deflate(0))throw new Error("deflating: "+x.msg);x.next_out_index&&K.push(512==x.next_out_index?new Uint8Array(A):new Uint8Array(A.subarray(0,x.next_out_index))),q+=x.next_out_index,J&&0<x.next_in_index&&x.next_in_index!=h1&&(J(x.next_in_index),h1=x.next_in_index)}while(0<x.avail_in||0===x.avail_out);
121return $=new Uint8Array(q),K.forEach(function(y){$.set(y,l1),l1+=y.length}),$}},this.flush=function(){var T,J,$=[],K=0,h1=0;do{if(x.next_out_index=0,x.avail_out=512,1!=(T=x.deflate(4))&&0!=T)throw new Error("deflating: "+x.msg);0<512-x.avail_out&&$.push(new Uint8Array(A.subarray(0,x.next_out_index))),h1+=x.next_out_index}while(0<x.avail_in||0===x.avail_out);return x.deflateEnd(),J=new Uint8Array(h1),$.forEach(function(l1){J.set(l1,K),K+=l1.length}),J}}}(typeof self<"u"&&self||typeof window<"u"&&window||typeof global<"u"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),(typeof self<"u"&&self||typeof window<"u"&&window||typeof global<"u"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()).RGBColor=function(a){var i;a=a||"",this.ok=!1,"#"==a.charAt(0)&&(a=a.substr(1,6)),a=(a=a.replace(/ /g,"")).toLowerCase();var d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
1210",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var u in d)a==u&&(a=d[u]);for(var s=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(k){return[parseInt(k[1]),parseInt(k[2]),parseInt(k[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(k){return[parseInt(k[1],16),parseInt(k[2],16),parseInt(k[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(k){return[parseInt(k[1]+k[1],16),parseInt(k[2]+k[2],16),parseInt(k[3]+k[3],16)]}}],h=0;h<s.length;h++){var z=s[h].process,p=s[h].re.exec(a);p&&(i=z(p),this.r=i[0],this.g=i[1],this.b=i[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var k=this.r.toString(16),G=this.g.toString(16),Q=this.b.toString(16);return 1==k.length&&(k="0"+k),1==G.length&&(G="0"+G),1==Q.length&&(Q="0"+Q),"#"+k+G+Q}},function(a){var i="+".charCodeAt(0),d="/".charCodeAt(0),u="0".charCodeAt(0),s="a".charCodeAt(0),h="A".charCodeAt(0),f="-".charCodeAt(0),z="_".charCodeAt(0),p=function(R){var P=R.charCodeAt(0);return P===i||P===f?62:P===d||P===z?63:P<u?-1:P<u+10?P-u+26+26:P<h+26?P-h:P<s+26?P-s+26:void 0};a.API.TTFFont=function(){function R(P,v,b){var S;if(this.rawData=P,S=this.contents=new G(P),this.contents.pos=4,"ttcf"===S.readString(4))throw v?new Error("Font "+v+" not found in TTC file."):new Error("Mu
121st specify a font name for TTC files.");S.pos=0,this.parse(),this.subset=new Y(this),this.registerTTF()}return R.open=function(P,v,b,S){if("string"!=typeof b)throw new Error("Invalid argument supplied in TTFFont.open");return new R(function(r){var w,L,F,O,C,W;if(0<r.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var e1=r.length;C="="===r.charAt(e1-2)?2:"="===r.charAt(e1-1)?1:0,W=new Uint8Array(3*r.length/4-C),F=0<C?r.length-4:r.length;var s1=0;function u1(r1){W[s1++]=r1}for(L=w=0;w<F;w+=4,L+=3)u1((16711680&(O=p(r.charAt(w))<<18|p(r.charAt(w+1))<<12|p(r.charAt(w+2))<<6|p(r.charAt(w+3))))>>16),u1((65280&O)>>8),u1(255&O);return 2===C?u1(255&(O=p(r.charAt(w))<<2|p(r.charAt(w+1))>>4)):1===C&&(u1((O=p(r.charAt(w))<<10|p(r.charAt(w+1))<<4|p(r.charAt(w+2))>>2)>>8&255),u1(255&O)),W}(b),v,S)},R.prototype.parse=function(){return this.directory=new Q(this.contents),this.head=new x(this),this.name=new h1(this),this.cmap=new V(this),this.toUnicode=new Map,this.hhea=new T(this),this.maxp=new l1(this),this.hmtx=new q(this),this.post=new $(this),this.os2=new J(this),this.loca=new D(this),this.glyf=new X(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},R.prototype.registerTTF=function(){var v,b,S,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var w,L,F,O;for(O=[],w=0,L=(F=this.bbox).length;w<L;w++)O.push(Math.round(F[w]*this.scaleFactor));return O}.call(this),this.stemV=0,this.post.exists?(b=255&(S=this.post.italic_angle),!0&(v=S>>16)&&(v=-(1+(65535^v))),this.italicAngle=+(v+"."+b)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},R.prototype.characterToGlyph=function(P){var v;return(null!=(v=this.cmap.unicode)?v.codeMap[P]:void 0)||0},R.prototype.widthOfGlyph=function(P){var v;return v=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(P).advance*v},R.prototype.widthOfString=function(P,v,b){var S,r,w,L,F;for(r=L=w=0,F=(P=""+P).length;0<=F?L<F:F<L;r=0<=F?++L:--L)S=P.charCodeAt(r),w+=this.widthOfGlyph(this.characterToGlyph(S))+b*(1e3/v)||0;return w*(v/1e3)},R.prototype.lineHeight=function(P,v){return null==v&&(v=!1),(this.ascender+(v?this.lineGap:0)-this.decender)/1e3*P},R}();var k,G=function(){function R(P){this.data=P??[],this.pos=0,this.length=this.data.length}return R.prototype.readByte=function(){return this.data[this.pos++]},R.prototype.writeByte=function(P){return this.data[this.pos++]=P},R.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},R.prototype.writeUInt32=function(P){return this.writeByte(P>>>24&255),this.writeByte(P>>16&255),this.writeByte(P>>8&255),this.writeByte(255&P)},R.prototype.readInt32=function(){var P;return 2147483648<=(P=this.readUInt32())?P-4294967296:P},R.prototype.writeInt32=function(P){return P<0&&(P+=4294967296),this.writeUInt32(P)},R.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},R.prototype.writeUInt16=function(P){return this.writeByte(P>>8&255),this.writeByte(255&P)},R.prototype.readInt16=function(){var P;return 32768<=(P=this.readUInt16())?P-65536:P},R.prototype.writeInt16=function(P){return P<0&&(P+=65536),this.writeUInt16(P)},R.prototype.readString=function(P){var v,b,S;for(b=[],v=S=0;0<=P?S<P:P<S;v=0<=P?++S:--S)b[v]=String.fromCharCode(this.readByte());return b.join("")},R.prototype.writeString=function(P){var v,b,S,r;for(r=[],v=b=0,S=P.length;0<=S?b<S:S<b;v=0<=S?++b:--b)r.push(this.writeByte(P.charCodeAt(v)));return r},R.prototype.readShort=function(){return this.readInt16()},R.prototype.writeShort=function(P){return this.writeInt16(P)},R.prototype.readLongLong=function(){var P,v,b,S,r,w,L,F;return P=this.readByte(),v=this.readByte(),b=this.readByte(),S=this.readByte(),r=this.readByte(),w=this.readByte(),L=this.readByte(),F=this.readByte(),128&P?-1*(72057594037927940*(255^P)+281474976710656*(255^v)+1099511627776*(255^b)+4294967296*(255^S
vendor: 11,091 bytes, line 121
121)+16777216*(255^r)+65536*(255^w)+256*(255^L)+(255^F)+1):72057594037927940*P+281474976710656*v+1099511627776*b+4294967296*S+16777216*r+65536*w+256*L+F},R.prototype.writeLongLong=function(P){var v,b;return v=Math.floor(P/4294967296),b=4294967295&P,this.writeByte(v>>24&255),this.writeByte(v>>16&255),this.writeByte(v>>8&255),this.writeByte(255&v),this.writeByte(b>>24&255),this.writeByte(b>>16&255),this.writeByte(b>>8&255),this.writeByte(255&b)},R.prototype.readInt=function(){return this.readInt32()},R.prototype.writeInt=function(P){return this.writeInt32(P)},R.prototype.read=function(P){var v,b;for(v=[],b=0;0<=P?b<P:P<b;0<=P?++b:--b)v.push(this.readByte());return v},R.prototype.write=function(P){var b,S,r;for(r=[],b=0,S=P.length;b<S;b++)r.push(this.writeByte(P[b]));return r},R}(),Q=function(){var R;function P(v){var b,S,r;for(this.scalarType=v.readInt(),this.tableCount=v.readShort(),this.searchRange=v.readShort(),this.entrySelector=v.readShort(),this.rangeShift=v.readShort(),this.tables={},S=0,r=this.tableCount;0<=r?S<r:r<S;0<=r?++S:--S)b={tag:v.readString(4),checksum:v.readInt(),offset:v.readInt(),length:v.readInt()},this.tables[b.tag]=b}return P.prototype.encode=function(v){var b,S,w,L,F,O,C,W,e1,s1,u1,r1;for(r1 in s1=Object.keys(v).length,F=Math.log(2),W=16*Math.floor(Math.log(s1)/F),w=Math.floor(W/F),C=16*s1-W,(S=new G).writeInt(this.scalarType),S.writeShort(s1),S.writeShort(W),S.writeShort(w),S.writeShort(C),O=S.pos+16*s1,L=null,u1=[],v)for(e1=v[r1],S.writeString(r1),S.writeInt(R(e1)),S.writeInt(O),S.writeInt(e1.length),u1=u1.concat(e1),"head"===r1&&(L=O),O+=e1.length;O%4;)u1.push(0),O++;return S.write(u1),b=2981146554-R(S.data),S.pos=L+8,S.writeUInt32(b),S.data},R=function(v){var b,S,r,w;for(v=y.call(v);v.length%4;)v.push(0);for(S=new G(v),r=b=0,w=v.length;r<w;r+=4)b+=S.readUInt32();return 4294967295&b},P}(),l={}.hasOwnProperty,_=function(R,P){for(var v in P)l.call(P,v)&&(R[v]=P[v]);function b(){this.constructor=R}return b.prototype=P.prototype,R.prototype=new b,R.__super__=P.prototype,R};k=function(){function R(P){var v;this.file=P,this.exists=!!(v=this.file.directory.tables[this.tag]),v&&(this.offset=v.offset,this.length=v.length,this.parse(this.file.contents))}return R.prototype.parse=function(){},R.prototype.encode=function(){},R.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},R}();var x=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="head",P.prototype.parse=function(v){return v.pos=this.offset,this.version=v.readInt(),this.revision=v.readInt(),this.checkSumAdjustment=v.readInt(),this.magicNumber=v.readInt(),this.flags=v.readShort(),this.unitsPerEm=v.readShort(),this.created=v.readLongLong(),this.modified=v.readLongLong(),this.xMin=v.readShort(),this.yMin=v.readShort(),this.xMax=v.readShort(),this.yMax=v.readShort(),this.macStyle=v.readShort(),this.lowestRecPPEM=v.readShort(),this.fontDirectionHint=v.readShort(),this.indexToLocFormat=v.readShort(),this.glyphDataFormat=v.readShort()},P.prototype.encode=function(v){var b;return(b=new G).writeInt(this.version),b.writeInt(this.revision),b.writeInt(this.checkSumAdjustment),b.writeInt(this.magicNumber),b.writeShort(this.flags),b.writeShort(this.unitsPerEm),b.writeLongLong(this.created),b.writeLongLong(this.modified),b.writeShort(this.xMin),b.writeShort(this.yMin),b.writeShort(this.xMax),b.writeShort(this.yMax),b.writeShort(this.macStyle),b.writeShort(this.lowestRecPPEM),b.writeShort(this.fontDirectionHint),b.writeShort(v),b.writeShort(this.glyphDataFormat),b.data},P}(),A=function(){function R(P,v){var b,S,r,w,L,F,O,C,W,e1,s1,u1,r1,m1,o1,M1,H,Z;switch(this.platformID=P.readUInt16(),this.encodingID=P.readShort(),this.offset=v+P.readInt(),W=P.pos,P.pos=this.offset,this.format=P.readUInt16(),this.length=P.readUInt16(),this.language=P.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(F=o1=0;o1<256;F=++o1)this.codeMap[F]=P.readByte();break;case 4:for(s1=P.readUInt16(),e1=s1/2,P.pos+=6,r=function(){var B,E;for(E=[],F=B=0;0<=e1?B<e1:e1<B;F=0<=e1?++B:--B)E.push(P.readUInt16());return E}(),P.pos+=2,r1=function(){var B,E;for(E=[],F=B=0;0<=e1?B<e1:e1<B;F=0<=e1?++B:--B)E.push(P.readUInt16());return E}(),O=function(){var B,E;for(E=[],F=B=0;0<=e1?B<e1:e1<B;F=0<=e1?++B:--B)E.push(P.readUInt16());return E}(),C=function(){var B,E;for(E=[],F=B=0;0<=e1?B<e1:e1<B;F=0<=e1?++B:--B)E.push(P.readUInt16());return E}(),S=(this.length-P.pos+this.offset)/2,L=function(){var B,E;for(E=[],F=B=0;0<=S?B<S:S<B;F=0<=S?++B:--B)E.push(P.readUInt16());return E}(),F=M1=0,Z=r.length;M1<Z;F=++M1)for(m1=r[F],b=H=u1=r1[F];u1<=m1?H<=m1:m1<=H;b=u1<=m1?++H:--H)0===C[F]?w=b+O[F]:0!==(w=L[C[F]/2+(b-u1)-(e1-F)]||0)&&(w+=O[F]),this.codeMap[b]=65535&w}P.pos=W}return R.encode=function(P,v){var b,S,r,w,L,F,O,C,W,e1,s1,u1,r1,m1,o1,M1,H,B,E,c1,i1,_1,d1,U1,V1,E1,S1,O1,G1,Q1,e2,D1,f1,k1,C2,b2,G2,d2,H2,y2,I2,C1,x1,L1,y1;switch(S1=new G,w=Object.keys(P).sort(function(b1,B1){return b1-B1}),v){case"macroman":for(r1=0,m1=function(){var b1,B1;for(B1=[],u1=b1=0;b1<256;u1=++b1)B1.push(0);return B1}(),M1={0:0},r={},O1=0,D1=w.length;O1<D1;O1++)null==M1[C1=P[S=w[O1]]]&&(M1[C1]=++r1),r[S]={old:P[S],new:M1[P[S]]},m1[S]=M1[P[S]];return S1.writeUInt16(1),S1.writeUInt16(0),S1.writeUInt32(12),S1.writeUInt16(0),S1.writeUInt16(262),S1.writeUInt16(0),S1.write(m1),{charMap:r,subtable:S1.data,maxGlyphID:r1+1};case"unicode":for(V1=[],W=[],M1={},b={},o1=O=null,G1=H=0,f1=w.length;G1<f1;G1++)null==M1[B=P[S=w[G1]]]&&(M1[B]=++H),b[S]={old:B,new:M1[B]},L=M1[B]-S,null!=o1&&L===O||(o1&&W.push(o1),V1.push(S),O=L),o1=S;for(o1&&W.push(o1),W.push(65535),V1.push(65535),d1=2*(_1=V1.length),i1=2*Math.pow(Math.log(_1)/Math.LN2,2),e1=Math.log(i1/2)/Math.LN2,c1=2*_1-i1,F=[],E=[],s1=[],u1=Q1=0,k1=V1.length;Q1<k1;u1=++Q1){if(C=W[u1],65535===(U1=V1[u1])){F.push(0),E.push(0);break}if(32768<=U1-(E1=b[U1].new))for(F.push(0),E.push(2*(s1.length+_1-u1)),S=e2=U1;U1<=C?e2<=C:C<=e2;S=U1<=C?++e2:--e2)s1.push(b[S].new);else F.push(E1-U1),E.push(0)}for(S1.writeUInt16(3),S1.writeUInt16(1),S1.writeUInt32(12),S1.writeUInt16(4),S1.writeUInt16(16+8*_1+2*s1.length),S1.writeUInt16(0),S1.writeUInt16(d1),S1.writeUInt16(i1),S1.writeUInt16(e1),S1.writeUInt16(c1),y2=0,C2=W.length;y2<C2;y2++)S1.writeUInt16(S=W[y2]);for(S1.writeUInt16(0),I2=0,b2=V1.length;I2<b2;I2++)S1.writeUInt16(S=V1[I2]);for(x1=0,G2=F.length;x1<G2;x1++)S1.writeUInt16(L=F[x1]);for(L1=0,d2=E.length;L1<d2;L1++)S1.writeUInt16(E[L1]);for(y1=0,H2=s1.length;y1<H2;y1++)S1.writeUInt16(r1=s1[y1]);return{charMap:b,subtable:S1.data,maxGlyphID:H+1}}},R}(),V=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="cmap",P.prototype.parse=function(v){var b,S,r;for(v.pos=this.offset,this.version=v.readUInt16(),S=v.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=S?r<S:S<r;0<=S?++r:--r)b=new A(v,this.offset),this.tables.push(b),b.isUnicode&&null==this.unicode&&(this.unicode=b);return!0},P.encode=function(v,b){var S,r;return null==b&&(b="macroman"),S=A.encode(v,b),(r=new G).writeUInt16(0),r.writeUInt16(1),S.table=r.data.concat(S.subtable),S},P}(),T=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="hhea",P.prototype.parse=function(v){return v.pos=this.offset,this.version=v.readInt(),this.ascender=v.readShort(),this.decender=v.readShort(),this.lineGap=v.readShort(),this.advanceWidthMax=v.readShort(),this.minLeftSideBearing=v.readShort(),this.minRightSideBearing=v.readShort(),this.xMaxExtent=v.readShort(),this.caretSlopeRise=v.readShort(),this.caretSlopeRun=v.readShort(),this.caretOffset=v.readShort(),v.pos+=8,this.metricDataFormat=v.readShort(),this.numberOfMetrics=v.readUInt16()},P}(),J=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="OS/2",P.prototype.parse=function(v){if(v.pos=this.offset,this.version=v.readUInt16(),this.averageCharWidth=v.readShort(),this.weightClass=v.readUInt16(),this.widthClass=v.readUInt16(),this.type=v.readShort(),this.ySubscriptXSize=v.readShort(),this.ySubscriptYSize=v.readShort(),this.ySubscriptXOffset=v.readShort(),this.ySubscriptYOffset=v.readShort(),this.ySuperscriptXSize=v.readShort(),this.ySuperscriptYSize=v.readShort(),this.ySuperscriptXOffset=v.readShort(),this.ySuperscriptYOffset=v.readShort(),this.yStrikeoutSize=v.readShort(),this.yStrikeoutPosition=v.readShort(),this.familyClass=v.readShort(),this.panose=function(){var b,S;for(S=[],b=0;b<10;++b)S.push(v.readByte());return S}(),this.charRange=function(){var b,S;for(S=[],b=0;b<4;++b)S.push(v.readInt());return S}(),this.vendorID=v.readString(4),this.selection=v.readShort(),this.firstCharIndex=v.readShort(),this.lastCharIndex=v.readShort(),0<this.version&&(this.ascent=v.readShort(),this.descent=v.readShort(),this.lineGap=v.readShort(),this.winAscent=v.readShort(),this.winDescent=v.readShort(),this.codePageRange=function(){var b,S;for(S=[],b=0;b<2;++b)S.push(v.readInt());return S}(),1<this.version))return this.xHeight=v.readShort(),this.capHeight=v.readShort(),this.defaultChar=v.readShort(),this.breakChar=v.readShort(),this.maxContext=v.readShort()},P}(),$=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="post",P.prototype.parse=function(v){var b,S,r,w;switch(v.pos=this.offset,this.format=v.readInt(),this.italicAngle=v.readInt(),this.underlinePosition=v.readShort(),this.underlineThickness=v.readShort(),this.isFixedPitch=v.readInt(),this.minMemType42=v.readInt(),this.maxMemType42=v.readInt(),this.minMemType1=v.readInt(),this.maxMemType1=v.readInt(),this.format){case 65536:case 196608:break;case 131072:for(S=v.readUInt16(),this.glyphNameIndex=[],r=0;0<=S?r<S:S<r;0<=S?++r:--r)this.glyphNameIndex.push(v.readUInt16());for(this.names=[],w=[];v.pos<this.offset+this.length;)b=v.readByte(),w.push(this.names.push(v.readString(b)));return w;case 151552:return S=v.readUInt16(),this.offsets=v.read(S);case 262144:return this.map=function(){var L,F,O;for(O=[],L=0,F=this.file.maxp.numGlyphs;0<=F?L<F:F<L;0<=F?++L:--L)O.push(v.readUInt32());return O}.call(this)}},P}(),K=function(R,P){this.raw=R,this.length=R.length,this.platformID=P.platformID,this.encodingID=P.encodingID,this.languageID=P.languageID},h1=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="name",P.prototype.parse=function(v){var b,S,r,w,L,F,O,C,W,e1,s1,u1;for(v.pos=this.offset,v.readShort(),b=v.readShort(),F=v.readShort(),S=[],w=W=0;0<=b?W<b:b<W;w=0<=b?++W:--W)S.push({platformID:v.readShort(),encodingID:v.readShort(),languageID:v.readShort(),nameID:v.readShort(),length:v.readShort(),offset:this.offset+F+v.readShort()});for(O={},w=e1=0,s1=S.length;e1<s1;w=++e1)v.pos=(r=S[w]).offset,C=v.readString(r.length),L=new K(C,r),null==O[u1=r.nameID]&&(O[u1]=[]),O[r.nameID].push(L);this.strings=O,this.copyright=O[0],this.fontFamily=O[1],this.fontSubfam
121ily=O[2],this.uniqueSubfamily=O[3],this.fontName=O[4],this.version=O[5];try{this.postscriptName=O[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=O[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=O[7],this.manufacturer=O[8],this.designer=O[9],this.description=O[10],this.vendorUrl=O[11],this.designerUrl=O[12],this.license=O[13],this.licenseUrl=O[14],this.preferredFamily=O[15],this.preferredSubfamily=O[17],this.compatibleFull=O[18],this.sampleText=O[19]},P}(),l1=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="maxp",P.prototype.parse=function(v){return v.pos=this.offset,this.version=v.readInt(),this.numGlyphs=v.readUInt16(),this.maxPoints=v.readUInt16(),this.maxContours=v.readUInt16(),this.maxCompositePoints=v.readUInt16(),this.maxComponentContours=v.readUInt16(),this.maxZones=v.readUInt16(),this.maxTwilightPoints=v.readUInt16(),this.maxStorage=v.readUInt16(),this.maxFunctionDefs=v.readUInt16(),this.maxInstructionDefs=v.readUInt16(),this.maxStackElements=v.readUInt16(),this.maxSizeOfInstructions=v.readUInt16(),this.maxComponentElements=v.readUInt16(),this.maxComponentDepth=v.readUInt16()},P}(),q=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="hmtx",P.prototype.parse=function(v){var b,S,w,L,F,O;for(v.pos=this.offset,this.metrics=[],w=0,F=this.file.hhea.numberOfMetrics;0<=F?w<F:F<w;0<=F?++w:--w)this.metrics.push({advance:v.readUInt16(),lsb:v.readInt16()});for(S=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var C,W;for(W=[],C=0;0<=S?C<S:S<C;0<=S?++C:--C)W.push(v.readInt16());return W}(),this.widths=function(){var C,W,e1,s1;for(s1=[],C=0,W=(e1=this.metrics).length;C<W;C++)s1.push(e1[C].advance);return s1}.call(this),b=this.widths[this.widths.length-1],O=[],L=0;0<=S?L<S:S<L;0<=S?++L:--L)O.push(this.widths.push(b));return O},P.prototype.forGlyph=function(v){return v in this.metrics?this.metrics[v]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[v-this.metrics.length]}},P}(),y=[].slice,X=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="glyf",P.prototype.parse=function(v){return this.cache={}},P.prototype.glyphFor=function(v){var b,S,r,w,L,F,O,C,W,e1;return v in this.cache?this.cache[v]:(b=this.file.contents,S=(w=this.file.loca).indexOf(v),0===(r=w.lengthOf(v))?this.cache[v]=null:(b.pos=this.offset+S,L=(F=new G(b.read(r))).readShort(),C=F.readShort(),e1=F.readShort(),O=F.readShort(),W=F.readShort(),this.cache[v]=-1===L?new I(F,C,e1,O,W):new N(F,L,C,e1,O,W),this.cache[v]))},P.prototype.encode=function(v,b,S){var r,w,L,F,O;for(L=[],w=[],F=0,O=b.length;F<O;F++)r=v[b[F]],w.push(L.length),r&&(L=L.concat(r.encode(S)));return w.push(L.length),{table:L,offsets:w}},P}(),N=function(){function R(P,v,b,S,r,w){this.raw=P,this.numberOfContours=v,this.xMin=b,this.yMin=S,this.xMax=r,this.yMax=w,this.compound=!1}return R.prototype.encode=function(){return this.raw.data},R}(),I=function(){function R(P,v,b,S,r){var w,L;for(this.raw=P,this.xMin=v,this.yMin=b,this.xMax=S,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],w=this.raw;L=w.readShort(),this.glyphOffsets.push(w.pos),this.glyphIDs.push(w.readShort()),32&L;)w.pos+=1&L?4:2,128&L?w.pos+=8:64&L?w.pos+=4:8&L&&(w.pos+=2)}return R.prototype.encode=function(P){var v,b,S,r;for(b=new G(y.call(this.raw.data)),v=S=0,r=this.glyphIDs.length;S<r;v=++S)b.pos=this.glyphOffsets[v];return b.data},R}(),D=function(R){function P(){return P.__super__.constructor.apply(this,arguments)}return _(P,k),P.prototype.tag="loca",P.prototype.parse=function(v){return v.pos=this.offset,this.offsets=0===this.file.head.indexToLocFormat?function(){var S,r,w;for(w=[],S=0,r=this.length;S<r;S+=2)w.push(2*v.readUInt16());return w}.call(this):function(){var S,r,w;for(w=[],S=0,r=this.length;S<r;S+=4)w.push(v.readUInt32());return w}.call(this)},P.prototype.indexOf=function(v){return this.offsets[v]},P.prototype.lengthOf=function(v){return this.offsets[v+1]-this.offsets[v]},P.prototype.encode=function(v,b){for(var S=new Uint32Array(this.offsets.length),r=0,w=0,L=0;L<S.length;++L)if(S[L]=r,w<b.length&&b[w]==L){++w,S[L]=r;var O=this.offsets[L+1]-this.offsets[L];0<O&&(r+=O)}for(var C=new Array(4*S.length),W=0;W<S.length;++W)C[4*W+3]=255&S[W],C[4*W+2]=(65280&S[W])>>8,C[4*W+1]=(16711680&S[W])>>16,C[4*W]=(4278190080&S[W])>>24;return C},P}(),Y=function(){function R(P){this.font=P,this.subset={},this.unicodes={},this.next=33}return R.prototype.generateCmap=function(){var P,v,S,r;for(v in S=this.font.cmap.tables[0].codeMap,P={},r=this.subset)P[v]=S[r[v]];return P},R.prototype.glyphsFor=function(P){var v,b,S,r,w,L,F;for(S={},w=0,L=P.length;w<L;w++)S[r=P[w]]=this.font.glyf.glyphFor(r);for(r in v=[],S)null!=(b=S[r])&&b.compound&&v.push.apply(v,b.glyphIDs);if(0<v.length)for(r in F=this.glyphsFor(v))S[r]=b=F[r];return S},R.prototype.encode=function(P,v){var b,S,r,w,F,O,C,W,e1,s1,u1,r1,m1,o1;
121for(S in b=V.encode(this.generateCmap(),"unicode"),w=this.glyphsFor(P),s1={0:0},o1=b.charMap)s1[(F=o1[S]).old]=F.new;for(u1 in e1=b.maxGlyphID,w)u1 in s1||(s1[u1]=e1++);return C=function(M1){var H,Z;for(H in Z={},M1)Z[M1[H]]=H;return Z}(s1),W=Object.keys(C).sort(function(M1,H){return M1-H}),r1=function(){var M1,H,Z;for(Z=[],M1=0,H=W.length;M1<H;M1++)Z.push(C[W[M1]]);return Z}(),r=this.font.glyf.encode(w,r1,s1),O=this.font.loca.encode(r.offsets,r1),m1={cmap:this.font.cmap.raw(),glyf:r.table,loca:O,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(v)},this.font.os2.exists&&(m1["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m1)},R}();a.API.PDFObject=function(){var R;function P(){}return R=function(v,b){return(Array(b+1).join("0")+v).slice(-b)},P.convert=function(v){var S,r;if(Array.isArray(v))return"["+function(){var L,F,O;for(O=[],L=0,F=v.length;L<F;L++)O.push(P.convert(v[L]));return O}().join(" ")+"]";if("string"==typeof v)return"/"+v;if(v?.isString)return"("+v+")";if(v instanceof Date)return"(D:"+R(v.getUTCFullYear(),4)+R(v.getUTCMonth(),2)+R(v.getUTCDate(),2)+R(v.getUTCHours(),2)+R(v.getUTCMinutes(),2)+R(v.getUTCSeconds(),2)+"Z)";if("[object Object]"!=={}.toString.call(v))return""+v;for(S in r=["<<"],v)r.push("/"+S+" "+P.convert(v[S]));return r.push(">>"),r.join("\n")},P}()}($1),O3=typeof self<"u"&&self||typeof window<"u"&&window||typeof global<"u"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")(),C6=function(){var a,i,d;function u(s){var h,z,p,k,G,Q,l,_,x,A,V,T,J;for(this.data=s,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},G=null;;){switch(h=this.readUInt32(),_=function(){var $,K;for(K=[],$=0;$<4;++$)K.push(String.fromCharCode(this.data[this.pos++]));return K}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(h);break;case"fcTL":G&&this.animation.frames.push(G),this.pos+=4,G={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},k=this.readUInt16(),p=this.readUInt16()||100,G.delay=1e3*k/p,G.disposeOp=this.data[this.pos++],G.blendOp=this.data[this.pos++],G.data=[];break;case"IDAT":case"fdAT":for("fdAT"===_&&(this.pos+=4,h-=4),s=G?.data||this.imgData,V=0;0<=h?V<h:h<V;0<=h?++V:--V)s.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(z=this.palette.length/3,this.transparency.indexed=this.read(h),this.transparency.indexed.length>z)throw new Error("More transparent colors than palette size");if(0<(x=z-this.transparency.indexed.length))for(T=0;0<=x?T<x:x<T;0<=x?++T:--T)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(h)[0];break;case 2:this.transparency.rgb=this.read(h)}break;case"tEXt":Q=(A=this.read(h)).indexOf(0),l=String.fromCharCode.apply(String,A.slice(0,Q)),this.text[l]=String.fromCharCode.apply(String,A.slice(Q+1));break;case"IEND":return G&&this.animation.frames.push(G),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(J=this.colorType)||6===J,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=h}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}u.load=function(s,h,f){var z;return"function"==typeof h&&(f=h),(z=new XMLHttpRequest).open("GET",s,!0),z.responseType="arraybuffer",z.onload=function(){var p;
121return p=new u(new Uint8Array(z.response||z.mozResponseArrayBuffer)),"function"==typeof h?.getContext&&p.render(h),"function"==typeof f?f(p):void 0},z.send(null)},u.prototype.read=function(s){var h,f;for(f=[],h=0;0<=s?h<s:s<h;0<=s?++h:--h)f.push(this.data[this.pos++]);return f},u.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},u.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},u.prototype.decodePixels=function(s){var h=this.pixelBitlength/8,f=new Uint8Array(this.width*this.height*h),z=0,p=this;if(null==s&&(s=this.imgData),0===s.length)return new Uint8Array(0);function k(G,Q,l,_){var x,A,V,T,J,$,K,h1,q,y,X,N,I,D,Y,R,P,v,b,S,r=Math.ceil((p.width-G)/l),w=Math.ceil((p.height-Q)/_),L=p.width==r&&p.height==w;for(I=h*r,X=L?f:new Uint8Array(I*w),$=s.length,A=N=0;N<w&&z<$;){switch(s[z++]){case 0:for(T=R=0;R<I;T=R+=1)X[A++]=s[z++];break;case 1:for(T=P=0;P<I;T=P+=1)x=s[z++],J=T<h?0:X[A-h],X[A++]=(x+J)%256;break;case 2:for(T=v=0;v<I;T=v+=1)x=s[z++],V=(T-T%h)/h,X[A++]=((D=N&&X[(N-1)*I+V*h+T%h])+x)%256;break;case 3:for(T=b=0;b<I;T=b+=1)x=s[z++],V=(T-T%h)/h,J=T<h?0:X[A-h],D=N&&X[(N-1)*I+V*h+T%h],X[A++]=(x+Math.floor((J+D)/2))%256;break;case 4:for(T=S=0;S<I;T=S+=1)x=s[z++],V=(T-T%h)/h,0===N?D=Y=0:(D=X[(N-1)*I+V*h+T%h],Y=V&&X[(N-1)*I+(V-1)*h+T%h]),K=(J=T<h?0:X[A-h])+D-Y,h1=Math.abs(K-J),q=Math.abs(K-D),y=Math.abs(K-Y),X[A++]=(x+(h1<=q&&h1<=y?J:q<=y?D:Y))%256;break;default:throw new Error("Invalid filter algorithm: "+s[z-1])}if(!L){var F=((Q+N*_)*p.width+G)*h,O=N*I;for(T=0;T<r;T+=1){for(var C=0;C<h;C+=1)f[F++]=X[O++];F+=(l-1)*h}}N++}}return s=(s=new T3(s)).getBytes(),1==p.interlaceMethod?(k(0,0,8,8),k(4,0,8,8),k(0,4,4,8),k(2,0,4,4),k(0,2,2,4),k(1,0,2,2),k(0,1,1,2)):k(0,0,1,1),f},u.prototype.decodePalette=function(){var s,h,f,z,p,k,G,Q,l;for(f=this.palette,k=this.transparency.indexed||[],p=new Uint8Array((k.length||0)+f.length),z=0,h=G=s=0,Q=f.length;G<Q;h=G+=3)p[z++]=f[h],p[z++]=f[h+1],p[z++]=f[h+2],p[z++]=null!=(l=k[s++])?l:255;return p},u.prototype.copyToImageData=function(s,h){var f,z,p,k,G,Q,l,_,x,A,V;if(z=this.colors,x=null,f=this.hasAlphaChannel,this.palette.length&&(x=null!=(V=this._decodedPalette)?V:this._decodedPalette=this.decodePalette(),z=4,f=!0),_=(p=s.data||s).length,G=x||h,k=Q=0,1===z)for(;k<_;)l=x?4*h[k/4]:Q,A=G[l++],p[k++]=A,p[k++]=A,p[k++]=A,p[k++]=f?G[l++]:255,Q=l;else for(;k<_;)l=x?4*h[k/4]:Q,p[k++]=G[l++],p[k++]=G[l++],p[k++]=G[l++],p[k++]=f?G[l++]:255,Q=l},u.prototype.decode=function(){var s;return s=new Uint8Array(this.width*this.height*4),this.copyToImageData(s,this.decodePixels()),s};try{i=O3.document.createElement("canvas"),d=i.getContext("2d")}catch{return-1}return a=function(s){var h;return d.width=s.width,d.height=s.height,d.clearRect(0,0,s.width,s.height),d.putImageData(s,0,0),(h=new Image).src=i.toDataURL(),h},u.prototype.decodeFrames=function(s){var h,f,z,p,k,G,Q,l;if(this.animation){for(l=[],f=k=0,G=(Q=this.animation.frames).length;k<G;f=++k)z=s.createImageData((h=Q[f]).width,h.height),p=this.decodePixels(new Uint8Array(h.data)),this.copyToImageData(z,p),h.imageData=z,l.push(h.image=a(z));return l}},u.prototype.renderFrame=function(s,h){var f,z,p;return f=(z=this.animation.frames)[h],p=z[h-1],0===h&&s.clearRect(0,0,this.width,this.height),1===p?.disposeOp?s.clearRect(p.xOffset,p.yOffset,p.width,p.height):2===p?.disposeOp&&s.putImageData(p.imageData,p.xOffset,p.yOffset),0===f.blendOp&&s.clearRect(f.xOffset,f.yOffset,f.width,f.height),s.drawImage(f.image,f.xOffset,f.yOffset)},u.prototype.animate=function(s){var h,f,z,p,k,G,Q=this;return f=0,p=(G=this.animation).numFrames,z=G.frames,k=G.numPlays,(h=function(){var l,_;if(l=f++%p,_=z[l],Q.renderFrame(s,l),1<p&&f/p<k)return Q.animation._timeout=setTimeout(h,_.delay)})()},u.prototype.stopAnimation=function(){var s;return clearTimeout(null!=(s=this.animation)?s._timeout:void 0)},u.prototype.render=function(s){var h,f;return s._png&&s._png.stopAnimation(),s._png=this,s.width=this.width,s.height=this.height,h=s.getContext("2d"),this.animation?(this.decodeFrames(h),this.animate(h)):(f=h.createImageData(this.width,this.height),this.copyToImageData(f,this.decodePixels()),h.putImageData(f,0,0))},u}(),O3.PNG=C6;var d6=function(){function a(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return a.prototype={ensureBuffer:function(i){var d=this.buffer,u=d?d.byteLength:0;if(i<u)return d;for(var s=512;s<i;)s<<=1;for(var h=new Uint8Array(s),f=0;f<u;++f)h[f]=d[f];return this.buffer=h},getByte:function(){for(var i=this.pos;this.bufferLength<=i;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(i){var d=this.pos;if(i){this.ensureBuffer(d+i);for(var u=d+i;!this.eof&&this.bufferLength<u;)this.readBlock();var s=this.bufferLength;s<u&&(u=s)}else{for(;!this.eof;)this.readBlock();u=this.bufferLength}return this.pos=u,this.buffer.subarray(d,u)},lookChar:function(){for(var i=this.pos;this.bufferLength<=i;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var i=this.pos;this.bufferLength<=i;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(i,d,u){for(var s=i+d;this.bufferLength<=s&&!this.eof;)this.readBlock();return new Stream(this.buffer,i,d,u)},skip:function(i){i||(i=1),this.pos+=i},reset:function(){this.pos=0}},a}(),T3=function(){if(typeof Uint32Array<"u"){var a=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),i=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),d=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),u=[new Uint32Array([459008,5243
vendor: 6,671 bytes, line 121
12168,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],s=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(f.prototype=Object.create(d6.prototype)).getBits=function(z){for(var p,k=this.codeSize,G=this.codeBuf,Q=this.bytes,l=this.bytesPos;k<z;)void 0===(p=Q[l++])&&h("Bad encoding in flate stream"),G|=p<<k,k+=8;return p=G&(1<<z)-1,this.codeBuf=G>>z,this.codeSize=k-=z,this.bytesPos=l,p},f.prototype.getCode=function(z){for(var p=z[0],k=z[1],G=this.codeSize,Q=this.codeBuf,l=this.bytes,_=this.bytesPos;G<k;){var x;void 0===(x=l[_++])&&h("Bad encoding in flate stream"),Q|=x<<G,G+=8}var A=p[Q&(1<<k)-1],V=A>>16,T=65535&A;return(0==G||G<V||0==V)&&h("Bad encoding in flate stream"),this.codeBuf=Q>>V,this.codeSize=G-V,this.bytesPos=_,T},f.prototype.generateHuffmanTable=function(z){for(var p=z.length,k=0,G=0;G<p;++G)z[G]>k&&(k=z[G]);for(var Q=1<<k,l=new Uint32Array(Q),_=1,x=0,A=2;_<=k;++_,x<<=1,A<<=1)for(var V=0;V<p;++V)if(z[V]==_){var T=0,J=x;for(G=0;G<_;++G)T=T<<1|1&J,J>>=1;for(G=T;G<Q;G+=A)l[G]=_<<16|V;++x}return[l,k]},f.prototype.readBlock=function(){function z(w,L,F,O,C){for(var W=w.getBits(F)+O;0<W--;)L[A++]=C}var p=this.getBits(3);if(1&p&&(this.eof=!0),0!=(p>>=1)){var k,G;if(1==p)k=u,G=s;else if(2==p){for(var Q=this.getBits(5)+257,l=this.getBits(5)+1,_=this.getBits(4)+4,x=Array(a.length),A=0;A<_;)x[a[A++]]=this.getBits(3);for(var V=this.generateHuffmanTable(x),T=0,J=(A=0,Q+l),$=new Array(J);A<J;){var K=this.getCode(V);16==K?z(this,$,2,3,T):17==K?z(this,$,3,3,T=0):18==K?z(this,$,7,11,T=0):$[A++]=T=K}k=this.generateHuffmanTable($.slice(0,Q)),G=this.generateHuffmanTable($.slice(Q,J))}else h("Unknown block type in flate stream");for(var h1=(b=this.buffer)?b.length:0,l1=this.bufferLength;;){var q=this.getCode(k);if(q<256)h1<=l1+1&&(h1=(b=this.ensureBuffer(l1+1)).length),b[l1++]=q;else{if(256==q)return void(this.bufferLength=l1);var y=(q=i[q-=257])>>16;0<y&&(y=this.getBits(y)),T=(65535&q)+y,q=this.getCode(G),0<(y=(q=d[q])>>16)&&(y=this.getBits(y));var X=(65535&q)+y;h1<=l1+T&&(h1=(b=this.ensureBuffer(l1+T)).length);for(var N=0;N<T;++N,++l1)b[l1]=b[l1-X]}}}else{var I,D=this.bytes,Y=this.bytesPos;void 0===(I=D[Y++])&&h("Bad block header in flate stream");var R=I;void 0===(I=D[Y++])&&h("Bad block header in flate stream"),R|=I<<8,void 0===(I=D[Y++])&&h("Bad block header in flate stream");var P=I;void 0===(I=D[Y++])&&h("Bad block header in flate stream"),(P|=I<<8)!=(65535&~R)&&h("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var v=this.bufferLength,b=this.ensureBuffer(v+R),S=v+R;this.bufferLength=S;for(var r=v;r<S;++r){if(void 0===(I=D[Y++])){this.eof=!0;break}b[r]=I}this.bytesPos=Y}},f}function h(z){throw new Error(z)}function f(z){var p=0,k=z[p++],G=z[p++];-1!=k&&-1!=G||h("Invalid header in flate stream"),8!=(15&k)&&h("Unknown compression method in flate stream"),((k<<8)+G)%31!=0&&h("Bad FCHECK in flate stream"),32&G&&h("FDICT bit set in flate stream"),this.bytes=z,this.bytesPos=2,this.co
121deSize=0,this.codeBuf=0,d6.call(this)}}();window.tmp=T3},void 0!==(m2=v2.call(o4,P1,o4,W4))&&(W4.exports=m2);try{W4.exports=jsPDF}catch{}}}]);

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.