1import{a as bu,c as Qf}from"./chunk-2JDRM3UW.js";import{a as Zf}from"./chunk-BYUDL27I.js";import{a as Yt,b as em}from"./chunk-X6ACAMQ6.js";import{a as _u,b as Kf,c as yu,d as Xf}from"./chunk-34OQU76W.js";import{a as ec,b as vu}from"./chunk-CGC3M27C.js";import{S as $f,d as gu}from"./chunk-V7JO6LTL.js";import{$ as xl,$c as ws,$d as oa,$e as P0,$i as Cr,Aa as De,Ad as bi,Ag as q0,Ak as Bi,B as Kd,Bd as yr,Be as Ao,Bf as xr,Bk as Ra,C as bl,Ca as z,Cd as Co,Ce as h0,Cj as Yl,Df as ai,Dj as du,Ed as er,Ef as wr,Eg as U0,F as ye,Fe as sa,Ff as yp,G as Fe,Ga as ka,Gb as st,Ge as mn,Gf as Di,Gi as qn,H as Re,Ha as Da,Hd as rn,He as Ml,Hf as an,Hi as Eo,Hj as Ss,Hk as si,I as up,Ia as Ba,Ib as i0,Ie as br,Ij as Un,Jb as Gt,Je as Oa,Jg as To,Ji as Lo,Jj as Mo,K as Xd,Kb as St,Kd as Fn,Ke as kl,Ld as So,Le as hn,M as Ma,Ma as Lt,Mb as n0,Mh as bp,Na as gt,Nb as wl,Ne as g0,Nf as on,Ng as ql,Nh as Q0,Nj as pa,Od as u0,Oe as Dl,Of as Vf,Oh as Z0,Oj as Jl,Pa as tt,Pe as Bl,Ph as Vl,Qa as A,Qe as v0,Qg as Ul,Qj as uu,Ra as ke,Rb as r0,Rh as xp,S as wo,Sa as R,Sf as Fl,Sh as zl,T as Zn,Ta as Bn,Td as f0,Te as _0,Th as Wf,Tj as $l,Ub as ti,Ue as y0,Uh as eu,Ui as Cs,Uj as fu,Va as fp,Vh as Fa,Vi as Hf,Vj as Jf,W as c,Wa as vi,We as b0,Wf as Io,Wh as wp,Xa as _i,Xe as x0,Xj as da,Ya as yi,Ye as w0,Yg as Rn,Yi as gn,Ze as C0,Zg as V0,_ as ct,_c as c0,_d as Po,_e as S0,_f as L0,_g as zf,a as pp,ab as qr,ad as Pl,ae as Tl,af as tr,ag as M0,aj as nu,bb as Ot,be as jf,bf as A0,bj as ru,c as Hd,ca as ae,cb as Zd,cc as a0,cd as p0,ce as Nl,ch as jn,cj as Gf,df as It,dg as Rl,dh as z0,dk as mu,e as Gd,ea as nn,ed as Al,eg as k0,eh as W0,ej as au,fb as ra,fg as D0,fh as H0,fi as tu,fj as Yf,gb as On,gf as Ol,gg as B0,gh as G0,gi as No,gj as ca,h as Sn,ha as Gi,hb as mp,hc as Ff,hd as gp,hh as Y0,hj as ou,hk as ua,i as jr,ia as ni,ib as e0,ih as J0,ij as Wl,ik as Kl,j as Yd,ja as ri,jh as la,ji as iu,jk as ko,ke as _p,kg as O0,kh as $0,kk as Do,lb as w,le as qf,lf as I0,lj as Hl,mb as N,me as El,mf as T0,mj as su,nb as At,nc as s0,nk as Xl,oa as S,oc as Rf,oh as K0,p as Jd,pa as g,pe as Ll,pg as F0,ph as X0,pj as Ti,pk as Ql,qa as h,qb as Ui,r as _r,ra as ve,rb as Vi,rj as lu,rk as vn,sb as t0,sd as vp,te as fn,tf as N0,tg as R0,tj as cu,ub as aa,uc as l0,ud as Il,uf as E0,uj as Gl,v as $d,va as qe,w as dp,wa as Ue,wc as Sl,we as m0,wf as Yi,wk as hu,x as La,xa as Qd,xb as hp,xj as pu,xk as Zl,y as xo,ya as Ze,yd as d0,ye as Je,yg as jl,ze as Uf,zg as j0,zj as Cp}from"./chunk-BJZJLQLU.js";import{a as Cl,d as o0}from"./chunk-SJRFNZVL.js";import{f as Nt,g as Of,h as cp,i as nt}
1from"./chunk-CBXJW4OS.js";function tm(t,n){t&1&&ve(0,"cp-icon-balanced",9),t&2&&(tt("mb-3 pb-0 change-payment-method-modal"),S("viewBox","0 0 85 85"))}function im(t,n){t&1&&ve(0,"cp-icon-warning",9),t&2&&(tt("mb-3 pb-0 change-payment-method-modal"),S("viewBox","0 0 72 72"))}function nm(t,n){if(t&1){let e=Ze();g(0,"cp-contract",13),w(1,"translate"),w(2,"translate"),De("linkClicked",function(r){Fe(e);let o=z(3);return Re(o._onContractClick(r))}),h()}if(t&2){let e=n.$implicit,i=z(3);S("contract",e)("linkText",N(1,4,"myProfile.payments.assignPaymentModal.select"))("selectedText",N(2,6,"myProfile.payments.assignPaymentModal.unselect"))("selected",i.isSelected(e))}}function rm(t,n){if(t&1&&(qe(0),g(1,"p",10),A(2),w(3,"translate"),h(),g(4,"div",11),ae(5,nm,3,8,"cp-contract",12),h(),Ue()),t&2){let e=z(2);c(2),R(" ",N(3,2,"myProfile.payments.assignPaymentModal.copyAssign")," "),c(3),S("ngForOf",e.assignableContracts)}}function am(t,n){t&1&&(qe(0),g(1,"p",10),A(2),w(3,"translate"),h(),Ue()),t&2&&(c(2),R(" ",N(3,1,"myProfile.payments.assignPaymentModal.allContractsAssigned")," "))}function om(t,n){if(t&1&&(qe(0),ae(1,rm,6,4,"ng-container",7)(2,am,4,3,"ng-container",7),Ue()),t&2){let e=z();c(),S("ngIf",e.assignableContracts&&e.assignableContracts.length),c(),S("ngIf",!e.assignableContracts||!e.assignableContracts.length)}}function sm(t,n){if(t&1&&ve(0,"cp-contract",17),t&2){let e=n.$implicit;S("contract",e)}}function lm(t,n){if(t&1&&(qe(0),g(1,"p",10),A(2),w(3,"translate"),h(),ve(4,"cp-payment-method",14),g(5,"p",15),A(6),w(7,"translate"),h(),g(8,"div",11),ae(9,sm,1,1,"cp-contract",16),h(),Ue()),t&2){let e=z();c(2),R(" ",N(3,5,"myProfile.payments.assignPaymentModal.copyConfirm")," "),c(2),S("paymentMethod",e.paymentMean)("paymentMethodType","dd"),c(2),R(" ",N(7,7,"myProfile.payments.assignPaymentModal.followingContracts")," "),c(3),S("ngForOf",e.selectedContracts)}}function cm(t,n){t&1&&(qe(0),g(1,"p",18),A(2),w(3,"translate"),h(),Ue()),t&2&&(c(2),R(" ",N(3,1,"myProfile.payments.assignPaymentModal.copySuccess")," "))}function pm(t,n){t&1&&(qe(0),g(1,"p",18),A(2),w(3,"translate"),h(),Ue()),t&2&&(c(2),R(" ",N(3,1,"myProfile.payments.assignPaymentModal.copyError")," "))}function dm(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myProfile.payments.modal.next")))}function um(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myProfile.payments.modal.confirm")))}function fm(t,n){if(t&1){let e=Ze();qe(0),g(1,"button",19),De("click",function(){Fe(e);let r=z();return Re(r.back())}),A(2),w(3,"translate"),h(),g(4,"button",20),De("click",function(){Fe(e);let r=z();return Re(r.next())}),ae(5,dm,3,3,"ng-container",7)(6,um,3,3,"ng-container",7),h(),Ue()}if(t&2){let e=z();c(2),R(" ",N(3,6,"myProfile.payments.modal.back")," "),c(2),gt("btn-loading",e.isState("REQUESTING")),S("disabled",e.nextDisabled()),c(),S("ngIf",e.isState("SELECT_CONTRACTS")),c(),S("ngIf",e.isState("CONFIRM")||e.isState("REQUESTING"))}}function mm(t,n){if(t&1){let e=Ze();qe(0),g(1,"button",19),De("click",function(){Fe(e);let r=z();return Re(r.next())}),A(2),w(3,"translate"),h(),Ue()}t&2&&(c(2),R(" ",N(3,1,"myProfile.payments.modal.close")," "))}var Sp,fa,xu=Nt(()=>{st();si();xp();la();It();st();ti();Ti();Rn();It();Sp=(()=>{class t{constructor(){this.activeModal=ye(jn),this.paymentMeanService=ye(Xl),this.contractService=ye(pa),this.translatePipe=ye(Je),this.profileService=ye(vn),this.contracts=[],this.assignableContracts=[],this.selectedContracts=[],this._modalState=fa.INIT}get modalState(){return this._modalState}set modalState(e){switch(this.getTitle(e),e){case fa.REQUESTING:this.assignPaymentMethod();break;default:break}this._modalState=e}ngOnInit(){let e=this.subscriptions.filter(i=>i.subscriptionType!==Vl.NON_COMODITY);this.contracts=this.contractService.resolveContracts(e,this.billingAccounts);for(let i of this.contracts)this.isAssigned(i)||this.assignableContracts.push(i);this.modalState=fa.SELECT_CONTRACTS}getTitle(e){(this.isState("CONFIRM")||this.isState("REQUESTING"))&&(this.modalTitle=this.translatePipe.transform("myProfile.payments.assignPaymentModal.titles.CONFIRM")),this.modalTitle=this.translatePipe.transform(`myProfile.payments.assignPaymentModal.titles.${fa[e]}`)}isState(e){return this.modalState===fa[e]}_onContractClick(e){if(this.isSelected(e)){let i=this.selectedContracts.indexOf(e);i>-1&&this.selectedContracts.splice(i,1)}else this.selectedContracts.push(e)}isSelected(e){return this.selectedContracts.includes(e)}isAssigned(e){let i=this.billingAccounts.filter(r=>r.paymentMeanOuid===this.paymentMean.ouid).map(r=>
1r.billingAccountOuid);return e.group?i.includes(e.parentBillingAccountOuid):e.services[0].paymentMeanOuid?e.services[0].paymentMeanOuid===this.paymentMean.ouid:i.includes(e.parentBillingAccountOuid)}next(){this.isState("SUCCESS")&&this.activeModal.close("success"),this.isState("ERROR")&&this.activeModal.close(),!this.isState("REQUESTING")&&this.modalState++}back(){if(this.isState("SELECT_CONTRACTS")){this.activeModal.close(()=>{this.modalState--});return}this.isState("REQUESTING")||this.modalState--}nextDisabled(){return this.isState("SELECT_CONTRACTS")&&this.selectedContracts.length===0}assignPaymentMethod(){return nt(this,null,function*(){let e=this.paymentMeanService.getBillingAccountsToAssign(this.selectedContracts),i=this.paymentMeanService.getLinkPaymentMeanPromises(this.contracts,e,this.selectedContracts);try{yield Promise.all(i),yield this.profileService.linkPaymentMean({paymentMeanOuid:this.paymentMean.ouid,billingAccountOuids:e}),this.modalState=fa.SUCCESS}catch{this.modalState=fa.ERROR}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-assign-payment-method-modal"]],inputs:{paymentMean:"paymentMean",subscriptions:"subscriptions",billingAccounts:"billingAccounts"},standalone:!1,decls:17,vars:11,consts:[["content",""],[1,"payment-modal","full-height"],[1,"modal-header","payment-modal__header"],[3,"class","viewBox",4,"ngIf"],[1,"payment-modal__header__title"],[3,"clicked"],[1,"modal-body","payment-modal__body"],[4,"ngIf"],[1,"modal-footer","payment-modal__footer"],[3,"viewBox"],[1,"payment-modal__copy"],[1,"payment-modal__contract-container"],[3,"contract","linkText","selectedText","selected","linkClicked",4,"ngFor","ngForOf"],[3,"linkClicked","contract","linkText","selectedText","selected"],[3,"paymentMethod","paymentMethodType"],[1,"text-center","font-weight-bold","mb-4"],[3,"contract",4,"ngFor","ngForOf"],[3,"contract"],[1,"payment-modal__copy","payment-modal__copy--no-margin"],[1,"btn","btn-purple","btn--small",3,"click"],[1,"btn","btn-purple","btn--small",3,"click","disabled"]],template:function(i,r){if(i&1){let o=Ze();qe(0,null,0),g(2,"div",1)(3,"div",2),ae(4,tm,1,3,"cp-icon-balanced",3)(5,im,1,3,"cp-icon-warning",3),g(6,"h2",4),A(7),h(),g(8,"cp-modal-close",5),De("clicked",function(){return Fe(o),Re(r.activeModal.close())}),h()(),g(9,"div",6),ae(10,om,3,2,"ng-container",7)(11,lm,10,9,"ng-container",7)(12,cm,4,3,"ng-container",7)(13,pm,4,3,"ng-container",7),g(14,"div",8),ae(15,fm,7,8,"ng-container",7)(16,mm,4,3,"ng-container",7),h()()(),Ue()}i&2&&(c(4),S("ngIf",r.isState("SUCCESS")),c(),S("ngIf",r.isState("ERROR")),c(2),ke(r.modalTitle),c(3),S("ngIf",r.isState("SELECT_CONTRACTS")),c(),S("ngIf",r.isState("CONFIRM")||r.isState("REQUESTING")),c(),S("ngIf",r.isState("SUCCESS")),c(),S("ngIf",r.isState("ERROR")),c(),gt("payment-modal__footer--center",r.isState("SUCCESS")||r.isState("ERROR")),c(),S("ngIf",r.isState("SELECT_CONTRACTS")||r.isState("CONFIRM")||r.isState("REQUESTING")),c(),S("ngIf",r.isState("SUCCESS")||r.isState("ERROR")))},dependencies:[Gt,St,qn,ca,Wl,Io,Ul,Je],encapsulation:2})}}return t})(),fa=function(t){return t[t.INIT=0]="INIT",t[t.SELECT_CONTRACTS=1]="SELECT_CONTRACTS",t[t.CONFIRM=2]="CONFIRM",t[t.REQUESTING=3]="REQUESTING",t[t.SUCCESS=4]="SUCCESS",t[t.EXIT=5]="EXIT",t[t.ERROR=6]="ERROR",t}(fa||{})});function gm(t,n){t&1&&ve(0,"cp-icon-balanced",8),t&2&&(tt("mb-3 pb-0 change-payment-method-modal"),S("viewBox","0 0 85 85"))}function vm(t,n){t&1&&ve(0,"cp-icon-warning",8),t&2&&(tt("mb-3 pb-0 change-payment-method-modal"),S("viewBox","0 0 72 72"))}function _m(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myProfile.payments.changePaymentModal.titleChange")))}function ym(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myProfile.payments.changePaymentModal.titleSuccess")))}function bm(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myProfile.payments.changePaymentModal.titleError")))}function xm(t,n){if(t&1){let e=Ze();g(0,"div",17),De("click",function(){let r=Fe(e).$implicit,o=z(3);return Re(o.selectPaymentMean(r))}),A(1),w(2,"translate"),h()}if(t&2){let e=n.$implicit,i=z(3);gt("payment-modal__select-payment-method__item--selected",e===i.selectedPaymentMean),c(),Bn(" ",N(2,4,"myprofile.payments.method.type.sepa")," - ",e.iban," ")}}function wm(t,n){if(t&1&&(qe(0),ae(1,xm,3,6,"div",16),Ue()),t&2){let e=z(2);c(),S("ngForOf",e.availablePaymentMeans)}}function Cm(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),R(" ",N(2,1,"myProfile.payments.changePaymentModal.noOtherMethods")," "))}function Sm(t,n){if(t&1){let e=Ze();qe(0),ve(1,"cp-payment-method",9),g(2,"p",10),A(3),w(4,"translate"),h(),g(5,"div",11),ae(6,wm,2,1,"ng-container",4)(7,Cm,3,3,"ng-container",4),h(),g(8,"div",12),De("click",function(){Fe(e);let r=z();
1return Re(r.addNewPaymentMean())}),g(9,"div",13)(10,"div",14),ve(11,"cp-icon-add"),h(),g(12,"span",15),A(13),w(14,"translate"),h()()(),Ue()}if(t&2){let e=z();c(),S("paymentMethod",e.contract.paymentMean)("paymentMethodType","dd")("wide",!0),c(2),R(" ",N(4,11,"myProfile.payments.changePaymentModal.changeTo")," "),c(2),gt("payment-modal__select-payment-method--empty",!e.availablePaymentMeans.length),c(),S("ngIf",e.availablePaymentMeans.length),c(),S("ngIf",!e.availablePaymentMeans.length),c(4),tt("change-payment-method-modal"),c(2),ke(N(14,13,"myProfile.payments.addNewPaymentMean"))}}function Pm(t,n){if(t&1&&(qe(0),g(1,"p",18),ve(2,"cp-markdown",19),w(3,"translate"),h(),ve(4,"cp-payment-method",20),Ue()),t&2){let e=z();c(2),S("data",At(3,5,"myProfile.payments.changePaymentModal.copyConfirm",On(8,hm,e.contract.id))),c(2),S("paymentMethod",e.selectedPaymentMean)("paymentMethodType","dd")("wide",!0)("margin",!1)}}function Am(t,n){t&1&&(qe(0),g(1,"p",21),A(2),w(3,"translate"),h(),Ue()),t&2&&(c(2),R(" ",N(3,1,"myProfile.payments.changePaymentModal.copySuccess")," "))}function Im(t,n){t&1&&(qe(0),g(1,"p",21),A(2),w(3,"translate"),h(),Ue()),t&2&&(c(2),R(" ",N(3,1,"myProfile.payments.changePaymentModal.copyError")," "))}function Tm(t,n){if(t&1){let e=Ze();qe(0),g(1,"button",22),De("click",function(){Fe(e);let r=z();return Re(r.back())}),A(2),w(3,"translate"),h(),Ue()}t&2&&(c(2),R(" ",N(3,1,"myProfile.payments.modal.back")," "))}function Nm(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myProfile.payments.modal.next")))}function Em(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myProfile.payments.modal.confirm")))}function Lm(t,n){if(t&1){let e=Ze();qe(0),g(1,"button",23),De("click",function(){Fe(e);let r=z();return Re(r.next())}),ae(2,Nm,3,3,"ng-container",4)(3,Em,3,3,"ng-container",4),h(),Ue()}if(t&2){let e=z();c(),gt("btn-loading",e.isState("REQUESTING")),S("disabled",e.nextDisabled()),c(),S("ngIf",e.isState("SELECT_PAYMENT_METHOD")),c(),S("ngIf",e.isState("CONFIRM")||e.isState("REQUESTING"))}}function Mm(t,n){if(t&1){let e=Ze();qe(0),g(1,"button",22),De("click",function(){Fe(e);let r=z();return Re(r.next())}),A(2),w(3,"translate"),h(),Ue()}t&2&&(c(2),R(" ",N(3,1,"myProfile.payments.modal.close")," "))}var hm,Ps,ja,wu=Nt(()=>{st();si();El();la();st();ti();Ti();Rn();It();hm=t=>[t];Ps=(()=>{class t{constructor(){this.activeModal=ye(jn),this.paymentMeanService=ye(Xl),this.contractService=ye(pa),this.profileService=ye(vn),this.addPaymentMethodRequest=new nn,this._modalState=ja.INIT,this.availablePaymentMeans=[],this.contracts=[]}get modalState(){return this._modalState}set modalState(e){switch(e){case ja.REQUESTING:this.changePaymentMethod();break;default:break}this._modalState=e}ngOnInit(){if(this.profileService.profile){let e=this.profileService.profile.paymentMeans.filter(i=>Co(i));this.availablePaymentMeans=this.contract.paymentMean?e.filter(i=>i.ouid!==this.contract.paymentMean?.ouid):e}this.subscriptions&&(this.contracts=this.contractService.resolveContracts(this.subscriptions,this.billingAccounts)),this.modalState=ja.SELECT_PAYMENT_METHOD}next(){this.isState("SUCCESS")&&this.activeModal.close("success"),this.isState("ERROR")&&this.activeModal.close(),!this.isState("REQUESTING")&&this.modalState++}back(){if(this.isState("SELECT_PAYMENT_METHOD")){this.activeModal.close(()=>{this.modalState--});return}this.isState("REQUESTING")||this.modalState--}isState(e){return this.modalState===ja[e]}nextDisabled(){return!this.selectedPaymentMean}selectPaymentMean(e){this.selectedPaymentMean=e}changePaymentMethod(){return nt(this,null,function*(){if(this.selectedPaymentMean){let e=[];
1if(this.contract.group){for(let o of this.contract.services)e.push(o.billingAccountOuid);e.includes(this.contract.parentBillingAccountOuid)||e.push(this.contract.parentBillingAccountOuid)}else e.push(this.contract.services[0].billingAccountOuid);let i=[this.contract],r=this.paymentMeanService.getLinkPaymentMeanPromises(this.contracts,e,i);try{yield Promise.all(r),yield this.profileService.linkPaymentMean({paymentMeanOuid:this.selectedPaymentMean.ouid,billingAccountOuids:e}),this.modalState=ja.SUCCESS}catch{this.modalState=ja.ERROR}}})}addNewPaymentMean(){this.activeModal.close(),this.addPaymentMethodRequest.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-change-payment-method-modal"]],inputs:{contract:"contract",subscriptions:"subscriptions",billingAccounts:"billingAccounts"},outputs:{addPaymentMethodRequest:"addPaymentMethodRequest"},standalone:!1,decls:18,vars:16,consts:[[1,"payment-modal","full-height"],[1,"modal-header","payment-modal__header"],[3,"class","viewBox",4,"ngIf"],[1,"payment-modal__header__title"],[4,"ngIf"],[3,"clicked"],[1,"modal-body","payment-modal__body"],[1,"modal-footer","payment-modal__footer","mt-3"],[3,"viewBox"],[3,"paymentMethod","paymentMethodType","wide"],[1,"font-weight-bold","mb-2"],[1,"payment-modal__select-payment-method"],[1,"payment-methods__card","payment-methods__card--add-new","payment-methods__card--add-new--small",3,"click"],[1,"payment-methods__card__inner"],[1,"payment-methods__card__icon"],[1,"payment-methods__card__text"],["class","payment-modal__select-payment-method__item",3,"payment-modal__select-payment-method__item--selected","click",4,"ngFor","ngForOf"],[1,"payment-modal__select-payment-method__item",3,"click"],[1,"payment-modal__copy"],[3,"data"],[3,"paymentMethod","paymentMethodType","wide","margin"],[1,"payment-modal__copy","payment-modal__copy--no-margin"],[1,"btn","btn-purple","btn--small",3,"click"],[1,"btn","btn-purple","btn--small",3,"click","disabled"]],template:function(i,r){i&1&&(g(0,"div",0)(1,"div",1),ae(2,gm,1,3,"cp-icon-balanced",2)(3,vm,1,3,"cp-icon-warning",2),g(4,"h2",3),ae(5,_m,3,3,"ng-container",4)(6,ym,3,3,"ng-container",4)(7,bm,3,3,"ng-container",4),h(),g(8,"cp-modal-close",5),De("clicked",function(){return r.activeModal.close()}),h()(),g(9,"div",6),ae(10,Sm,15,15,"ng-container",4)(11,Pm,5,10,"ng-container",4)(12,Am,4,3,"ng-container",4)(13,Im,4,3,"ng-container",4),g(14,"div",7),ae(15,Tm,4,3,"ng-container",4)(16,Lm,4,5,"ng-container",4)(17,Mm,4,3,"ng-container",4),h()()()),i&2&&(c(2),S("ngIf",r.isState("SUCCESS")),c(),S("ngIf",r.isState("ERROR")),c(2),S("ngIf",r.isState("SELECT_PAYMENT_METHOD")||r.isState("CONFIRM")||r.isState("REQUESTING")),c(),S("ngIf",r.isState("SUCCESS")),c(),S("ngIf",r.isState("ERROR")),c(3),S("ngIf",r.isState("SELECT_PAYMENT_METHOD")),c(),S("ngIf",r.isState("CONFIRM")||r.isState("REQUESTING")),c(),S("ngIf",r.isState("SUCCESS")),c(),S("ngIf",r.isState("ERROR")),c(),gt("payment-modal__footer--center",r.isState("SUCCESS")||r.isState("ERROR"))("payment-modal__footer--right",r.isState("SELECT_PAYMENT_METHOD")),c(),S("ngIf",r.isState("CONFIRM")||r.isState("REQUESTING")),c(),S("ngIf",r.isState("SELECT_PAYMENT_METHOD")||r.isState("CONFIRM")||r.isState("REQUESTING")),c(),S("ngIf",r.isState("SUCCESS")||r.isState("ERROR")))},dependencies:[Gt,St,Cr,ca,Wl,Io,Fl,Ul,Je],encapsulation:2})}}return t})(),ja=function(t){return t[t.INIT=0]="INIT",t[t.SELECT_PAYMENT_METHOD=1]="SELECT_PAYMENT_METHOD",t[t.CONFIRM=2]="CONFIRM",t[t.REQUESTING=3]="REQUESTING",t[t.SUCCESS=4]="SUCCESS",t[t.EXIT=5]="EXIT",t[t.ERROR=6]="ERROR",t}(ja||{})});function km(t,n){t&1&&(g(0,"p"),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"postalChange.confirmationModal.text")," "))}function Dm(t,n){t&1&&ve(0,"cp-loading-spinner",12),t&2&&S("iconOnly",!0)}var Pp,Cu=Nt(()=>{st();si();la();It();st();ti();Ti();It();Pp=(()=>{class t{constructor(){this.activeModal=ye(jn),this.accountDetailsService=ye(Ol),this.notificationService=ye(Do),this.translate=ye(Je),this.save=new nn,this.cancelled=new nn}submitPostalChange(){return nt(this,null,function*(){this.loading=!0;try{for(let e of this.newPreferences)yield this.accountDetailsService.updateCommunicationPreference(e)}catch{this.activeModal.close({status:"error"}),yield this.notificationService.error(this.translate.transform("error.unknown"));return}this.closeOnSuccess()})}closeOnSuccess(){this.loading=!1,this.save.emit()}cancelModal(){this.cancelled.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-confirm-postal-change-modal"]],inputs:{newPreferences:"newPreferences"},outputs:{save:"save",cancelled:"cancelled"},standalone:!1,decls:21,vars:15,consts:[[1,"modal-cancel"],[1,"modal-close",3,"click"],["src","managed-assets/generated/CUSTOMER_PORTAL_CI_ICONS/modal-close.png",3,"alt"],[1,"modal-header"],[1,"c-brand-purple"],[1,"modal-body","text-center"],[4,"ngIf"],[3,"iconOnly",4,"ngIf"],[1,"modal-footer","no-gutters"],[1,"col"],[1,"btn","btn-block","btn-grey",3,"click"],[1,"btn","btn-block","btn-primary",3,"click"],[3,"iconOnly"]],template:function(i,r){i&1&&(qe(0),g(1,"div",0)(2,"span",1),De("click",function(){return r.activeModal.close()}),ve(3,"img",2),w(4,"translate"),h()(),g(5,"div",3)(6,"h2",4),A(7),w(8,"translate"),h()(),g(9,"div",5),ae(10,km,3,3,"p",6)(11,Dm,1,1,"cp-loading-spinner",7),h(),g(12,"div",8)(13,"div",9)(14,"button",10),De("click",function(){return r.cancelModal()}),A(15),w(16,"translate"),h()(),g(17,"div",9)(18,"button",11),De("click",function(){return r.submitPostalChange()}),A(19),w(20,"translate"),h()()(),Ue()),i&2&&(c(3),S("alt",qr(N(4,7,"global.close"))),c(4),R(" ",N(8,9,"moving.confirmationModal.title")," "),c(3),S("ngIf",!r.loading),c(),S("ngIf",r.loading),c(4),R(" ",N(16,11,"cancel")," "),c(4),R(" ",N(20,13,"continue")," "))},dependencies:[St,gn,Je],encapsulation:2})}}return t})()});function Bm(t,n){if(t&1&&(g(0,"tr")(1,"td"),A(2),h(),g(3,"td",7),A(4),w(5,"ed4Date"),w(6,"ed4Date"),h(),g(7,"td")(8,"a",9),w(9,"translate"),g(10,"span",10),ve(11,"cp-icon-download"),h()()()()),t&2){let e=n.$implicit,i=z();c(2),ke(e._title||e.description||e.id),c(2),R(" ",e.documentCreatedAt?N(5,6,e.documentCreatedAt):N(6,8,i.getAttachmentCreationDate())," "),c(4),S("href",e.url??i.documentService.getDocumentUrl(e.documentOuid),Zn),Gi("aria-label",N(9,10,"cp.documents.modal.download")),c(3),tt("important-documents-modal")}}
1function Om(t){return t.filter((n,e,i)=>i.map(r=>r.id).indexOf(n.id)===e)}var Ap,Su=Nt(()=>{st();N0();Ss();si();la();It();xo();st();ti();Ti();Rn();It();Ap=(()=>{class t{constructor(){this.activeModal=ye(jn),this.documentService=ye($l),this.translatePipe=ye(Je),this.featureFlagService=ye(da),this.documentsControllerService=ye(T0),this.languageService=ye(mu),this.grouped=!1,this.serviceDocuments=[],this.productDocuments=[],this.documents$=new Hd(1)}ngOnInit(){this.initDocuments()}addDocumentToServiceDocuments(e){if(!this.skipDocument(e)){if(e.pdfTemplate){let i=this.mapDocTypeForTranslation(e.pdfTemplate);e._title=this.translatePipe.transform({path:`importantDocuments.${i}`,fallback:e.id})}this.allServices.map(i=>i.services).reduce((i,r)=>i.concat(r),[]).filter(i=>e.contractIds.some(r=>r===i.productSerialNumber)||e.pdfTemplate==="sepaMandate"||e.pdfTemplate==="epilotBilling").forEach((i,r,o)=>{(r===0||!o.filter(p=>p.parentBillingAccountOuid===i.parentBillingAccountOuid&&i.billType===Yi.BILL_RAW_TYPE_GROUPED&&p.billType===Yi.BILL_RAW_TYPE_GROUPED).some(p=>p.importantDocuments?.some(u=>u.id===e.id))&&!this.serviceDocuments.some(p=>p.id===e.id))&&this.serviceDocuments.push(e)})}}mapDocTypeForTranslation(e){return e?.startsWith("priceChange")?"priceChange":e}skipDocument(e){return!e.isCustomerVisible||this.skipPriceChange(e)}skipPriceChange(e){return e.pdfTemplate?.startsWith(Yi.DOCUMENT_TEMPLATE.PRICE_CHANGE)&&!this.featureFlagService.isEnabled("CP.showPriceChangePdf")}initDocuments(){return nt(this,null,function*(){this.serviceDocuments=[],yield this.prepareServiceDocuments(),yield this.prepareProductDocuments(),this.documents$.next(this.prepareViewDocuments())})}prepareServiceDocuments(){return nt(this,null,function*(){let e=yield this.documentService.getRefreshedDocumentList();for(let i of e)yield this.addDocumentToServiceDocuments(i)})}prepareProductDocuments(){return nt(this,null,function*(){if(!this.grouped&&!this.service)return;let e;this.grouped?e=this.groupedServices.map(r=>r.planName):e=this.service.offers?.map(r=>r?.planName);let i=yield Sn(this.documentsControllerService.getDocuments({locale:this.languageService.language()?.localeId??"de-DE",ids:e}));if(i?.body?.length)for(let r of i.body)this.productDocuments.push(...r.documents)})}prepareViewDocuments(){let e=[...this.productDocuments,...this.serviceDocuments,...this.grouped?this.getGroupedAttachments():this.service?.attachments||[]];return e.sort((i,r)=>this.getDateFromViewDocument(i)<=this.getDateFromViewDocument(r)?1:-1),e.filter(i=>i?._title||i?.description||i?.id)}getAttachmentCreationDate(){return this.groupedServices?this.groupedServices.map(i=>i.dateTimeCreate).sort()[0]:this.service.dateTimeCreate}getServiceDocuments(){return this.grouped?this.groupedServices.flatMap(e=>e.importantDocuments):this.service.importantDocuments||[]}getGroupedAttachments(){let e=this.groupedServices.map(i=>i.attachments).reduce((i,r)=>i.concat(r));return Om(e)}getDateFromViewDocument(e){return e.dateTimeCreate??this.getAttachmentCreationDate()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-important-documents-modal"]],standalone:!1,decls:26,vars:18,consts:[[1,"modal-header"],[1,"documents-modal__header"],[3,"clicked"],[1,"modal-body","text-center"],[1,"mb-4"],[1,"documents-modal__table__container"],[1,"documents-modal__table"],[1,"d-none","d-sm-table-cell"],[4,"ngFor","ngForOf"],["target","_blank",1,"documents-modal__download",3,"href"],[1,"documents-modal__icon"]],template:function(i,r){i&1&&(qe(0),g(1,"div",0)(2,"h2",1),A(3),w(4,"translate"),h(),g(5,"cp-modal-close",2),De("clicked",function(){return r.activeModal.close()}),h()(),g(6,"div",3)(7,"p",4),A(8),w(9,"translate"),h(),g(10,"div",5)(11,"table",6)(12,"thead")(13,"tr")(14,"th"),A(15),w(16,"translate"),h(),g(17,"th",7),A(18),w(19,"translate"),h(),g(20,"th"),A(21),w(22,"translate"),h()()(),g(23,"tbody"),ae(24,Bm,12,12,"tr",8),w(25,"async"),h()()()(),Ue()),i&2&&(c(3),R(" ",N(4,6,"myServices.importantDocuments")," "),c(5),R(" ",N(9,8,"myServices.importantDocumentsText")," "),c(7),R(" ",N(16,10,"importantDocuments.documentType")," "),c(3),R(" ",N(19,12,"importantDocuments.date")," "),c(3),R(" ",N(22,14,"importantDocuments.pdf")," "),c(3),S("ngForOf",N(25,16,r.documents$)))},dependencies:[Gt,ca,Rl,wl,fn,Je],encapsulation:2})}}return t})()});function Fm(t,n){t&1&&(ve(0,"cp-loading-spinner",8),w(1,"translate")),t&2&&S("loadingText",qr(N(1,2,"moving.confirmationModal.submitting")))}var Ip,Pu=Nt(()=>{st();Nl();So();wp();si();la();It();st();ti();Ti();It();Ip=(()=>{class t{constructor(){this.activeModal=ye(jn),this.movingService=ye(ko),this.datePipe=ye(fn),this.terminations=[]}processTerminations(){this.loading=!0,this.movingData.services.filter(e=>
1!e.terminationDetails).forEach(e=>{let i={customerOuid:this.movingData.customerOuid,subscriptionOuid:e,billingAccountOuid:this.movingData.billingAccountOuid[e],terminationDate:this.movingData.terminationDate,terminationReason:oa.MOVINGOUT,transactionReason:Po.MOVING_OUT,contactChannel:this.movingData.contactChannel};this.terminations.push(this.submitMoveTermination(i))}),Promise.all(this.terminations).then(e=>{this.loading=!1;let i=e.filter(o=>!o.terminated),r=i.map(o=>o.errorCodeParams);i.length>0?this.activeModal.close({status:"error",failedTerminations:i,errorCodeParams:[...r]}):this.activeModal.close({status:"success",terminatedServices:e})}).catch(()=>{})}submitMoveTermination(e){return new Promise(i=>{this.movingService.moveWithoutEd4(e).subscribe(r=>{if(r.trpcStatus==="VALIDATED")i({terminated:!0,subscriptionOuid:e.subscriptionOuid});else{let o=this.subscriptions.find(u=>u.subscriptionOuid===e.subscriptionOuid),p=[];r.errorCodeList.includes(Fn.TERMINATION_REQUESTED_BEFORE_NEXT_POSSIBLE_DATE)&&p.push(new Fa(Fn.TERMINATION_REQUESTED_BEFORE_NEXT_POSSIBLE_DATE,[this.datePipe.transform(o.nextPossibleTerminationDate)])),r.errorCodeList.includes(Fn.TERMINATION_REQUESTED_AFTER_COMMITMENT_END_DATE)&&p.push(new Fa(Fn.TERMINATION_REQUESTED_AFTER_COMMITMENT_END_DATE,[this.datePipe.transform(o.nextPossibleTerminationDate)])),i({terminated:!1,subscriptionOuid:e.subscriptionOuid,errorCodeParams:p})}},()=>{i({terminated:!1,subscriptionOuid:e.subscriptionOuid})})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-moving-confirmation-modal"]],inputs:{movingData:"movingData",subscriptions:"subscriptions"},standalone:!1,decls:19,vars:13,consts:[[1,"modal-header"],[1,"c-brand-purple"],[1,"modal-body","text-center"],[3,"loadingText",4,"ngIf"],[1,"modal-footer","no-gutters"],[1,"col"],[1,"btn","btn-block","btn-outline-secondary",3,"click"],[1,"btn","btn-block","btn-primary",3,"click"],[3,"loadingText"]],template:function(i,r){i&1&&(qe(0),g(1,"div",0)(2,"h2",1),A(3),w(4,"translate"),h()(),g(5,"div",2)(6,"p"),A(7),w(8,"translate"),h(),ae(9,Fm,2,4,"cp-loading-spinner",3),h(),g(10,"div",4)(11,"div",5)(12,"button",6),De("click",function(){return r.activeModal.close({status:"cancel"})}),A(13),w(14,"translate"),h()(),g(15,"div",5)(16,"button",7),De("click",function(){return r.processTerminations()}),A(17),w(18,"translate"),h()()(),Ue()),i&2&&(c(3),R(" ",N(4,5,"moving.confirmationModal.title")," "),c(4),R(" ",N(8,7,"moving.confirmationModal.text")," "),c(2),S("ngIf",r.loading),c(4),R(" ",N(14,9,"cancel")," "),c(4),R(" ",N(18,11,"continue")," "))},dependencies:[St,gn,Je],encapsulation:2})}}return t})()});function Rm(t,n){if(t&1){let e=Ze();g(0,"cp-contract",10),w(1,"translate"),De("linkClicked",function(r){Fe(e);let o=z(2);return Re(o._onContractClick(r))}),h()}if(t&2){let e=n.$implicit;S("contract",e)("linkText",N(1,2,"myProfile.payments.paymentDetailsModal.change"))}}function jm(t,n){if(t&1&&(g(0,"div",8),ae(1,Rm,2,4,"cp-contract",9),h()),t&2){let e=z();c(),S("ngForOf",e.contracts)}}var Tp,Au=Nt(()=>{st();si();la();st();ti();Ti();It();Tp=(()=>{class t{constructor(){this.activeModal=ye(jn),this.contractService=ye(pa),this.changePaymentMethodRequest=new nn,this.contracts=[]}ngOnInit(){this.contracts=this.contractService.resolveContracts(this.linkedSubs,this.billingAccounts)}_onContractClick(e){this.activeModal.close(),this.changePaymentMethodRequest.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-payment-details-modal"]],inputs:{linkedSubs:"linkedSubs",billingAccounts:"billingAccounts"},outputs:{changePaymentMethodRequest:"changePaymentMethodRequest"},standalone:!1,decls:13,vars:7,consts:[["content",""],[1,"payment-modal","full-height"],[1,"modal-header","payment-modal__header"],[1,"payment-modal__header__title"],[3,"clicked"],[1,"modal-body","payment-modal__body"],[1,"payment-modal__copy"],["class","payment-modal__contract-container",4,"ngIf"],[1,"payment-modal__contract-container"],[3,"contract","linkText","linkClicked",4,"ngFor","ngForOf"],[3,"linkClicked","contract","linkText"]],template:function(i,r){if(i&1){let o=Ze();qe(0,null,0),g(2,"div",1)(3,"div",2)(4,"h2",3),A(5),w(6,"translate"),h(),g(7,"cp-modal-close",4),De("clicked",function(){return Fe(o),Re(r.activeModal.close())}),h()(),g(8,"div",5)(9,"p",6),A(10),w(11,"translate"),h(),ae(12,jm,2,1,"div",7),h()(),Ue()}i&2&&(c(5),R(" ",N(6,3,"myProfile.payments.paymentDetailsModal.title")," "),c(5),R(" ",N(11,5,"myProfile.payments.paymentDetailsModal.copy")," "),c(2),S("ngIf",r.contracts&&r.contracts.length))},dependencies:[Gt,St,qn,ca,Je],encapsulation:2})}}return t})()});var Iu=Nt(()=>{si();yr();It()});var qa=Nt(()=>{qa();xu();wu();Cu();Su();Pu();Au();Iu()});function qm(t,n){if(t&1&&(qe(0),A(1),w(2,"translate"),g(3,"span",10),A(4),h(),Ue()),t&2){let e=z(2);c(),R(" ",N(2,3,"myServices.contractID"),": "),c(2),Gi("data-track","contract-card-"+(e.service==null?null:e.service.service)+"-id-label"),c(),ke(e.service.customerFacingId)}}function Um(t,n){if(t&1&&(A(0),w(1,"translate"),g(2,"span",10),A(3),h()),t&2){let e=z(2);R(" ",N(1,3,"nonComodity.serviceType."+e.service.service)," : "),c(2),Gi("data-track","contract-card-"+(e.service==null?null:e.service.service)+"-id-label"),c(),ke(e.service.customerFacingId)}}function Vm(t,n){if(t&1&&(qe(0),ae(1,qm,5,5,"ng-container",9)(2,Um,4,5,"ng-template",null,0,Ui),Ue()),t&2){let e=Lt(3),i=z(
1);c(),S("ngIf",(i.service==null?null:i.service.subscriptionType)!=="NON_COMODITY")("ngIfElse",e)}}function zm(t,n){if(t&1&&(qe(0),A(1),w(2,"translate"),g(3,"span",10),A(4),h(),Ue()),t&2){let e=z();c(),R(" ",N(2,3,"myServices.billingID"),": "),c(2),Gi("data-track","contract-card-"+(e.service==null?null:e.service.service)+"-id-label"),c(),ke(e.groupedServices[0]==null?null:e.groupedServices[0].customerFacingId)}}function Wm(t,n){if(t&1){let e=Ze();g(0,"cp-contract",11),w(1,"translate"),De("linkClicked",function(r){Fe(e);let o=z();return Re(o.showContractInfo(r))}),h()}if(t&2){let e=z();S("contract",e.service)("singleService",!0)("linkText",N(1,3,"myServices.viewTariffDetails"))}}function Hm(t,n){if(t&1){let e=Ze();g(0,"cp-contract",11),w(1,"translate"),De("linkClicked",function(r){Fe(e);let o=z();return Re(o.showContractInfo(r))}),h()}if(t&2){let e=n.$implicit;S("contract",e)("singleService",!0)("linkText",N(1,3,"myServices.viewTariffDetails"))}}var Np,Tu=Nt(()=>{st();Di();si();qa();tu();st();ti();Ti();It();Np=(()=>{class t{constructor(){this.modalService=ye(ua),this.router=ye(ai),this.contractService=ye(pa),this.subscriptionService=ye(Bi),this.grouped=!1,this.refresh=new nn}openImportantDocumentsModal(e,i=!1){return nt(this,null,function*(){yield this.modalService.open(Ap,{data:{allServices:this.allServices.filter(r=>r.individualServices?.some(o=>o.billingAccountOuid===e?.billingAccountOuid)||r.groupedServices?.some(o=>o.parentBillingAccountOuid===e?.parentBillingAccountOuid)),service:e,grouped:i,groupedServices:this.groupedServices}})})}openChangePaymentMethodModal(e){return nt(this,null,function*(){let i;e?i=this.contractService.resolveContracts([e],this.billingAccounts):i=this.contractService.resolveContracts(this.groupedServices,this.billingAccounts);let r=yield this.modalService.open(Ps,{size:"sm",windowClass:"payment-details-modal payment-details-modal--small",data:{contract:i[0],billingAccounts:this.billingAccounts,subscriptions:this.allServices.map(o=>o.services).reduce((o,p)=>o.concat(p))}});r.componentInstance.getData("addPaymentMethodRequest").subscribe(()=>{this.openAddPaymentMethodModal(i[0])}),r.result.then(o=>{o==="success"&&this.refresh.emit()}).catch(()=>{})})}openAddPaymentMethodModal(e){return nt(this,null,function*(){(yield this.modalService.open(zl,{size:"sm",windowClass:"payment-details-modal payment-details-modal--medium",data:{contractToAssign:e,subscriptions:this.allServices.map(r=>r.services).reduce((r,o)=>r.concat(o)),billingAccounts:this.billingAccounts}})).result.then(r=>{r==="success"&&this.refresh.emit()}).catch(()=>{})})}showContractInfo(e){let i=e.isNonComodity?e.contract.subscriptionOuid:e.subscriptionOuid,r=e.isNonComodity?e.aggregatedProduct.name:null;this.router.navigate(["/profil/tarif-informationen",i],{queryParams:{productName:r}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-contract-card"]],inputs:{service:"service",allServices:"allServices",grouped:"grouped",groupedServices:"groupedServices",billingAccounts:"billingAccounts"},outputs:{refresh:"refresh"},standalone:!1,decls:16,vars:13,consts:[["nonComodityHeader",""],[1,"contract-card","mx-0"],[1,"contract-card__header"],[4,"ngIf"],[1,"contract-card__links"],[1,"contract-card__link",3,"click"],[3,"hidden"],[3,"contract","singleService","linkText","linkClicked",4,"ngIf"],[3,"contract","singleService","linkText","linkClicked",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[1,"contract-card__id"],[3,"linkClicked","contract","singleService","linkText"]],template:function(i,r){i&1&&(g(0,"div")(1,"div",1)(2,"div",2),ae(3,Vm,4,2,"ng-container",3)(4,zm,5,5,"ng-container",3),h(),g(5,"ul",4)(6,"li")(7,"a",5),De("click",function(){return r.grouped?r.openImportantDocumentsModal(r.groupedServices[0],!0):r.openImportantDocumentsModal(r.service)}),A(8),w(9,"translate"),h()(),g(10,"li",6)(11,"a",5),De("click",function(){return r.grouped?r.openChangePaymentMethodModal(null):r.openChangePaymentMethodModal(r.service)}),A(12),w(13,"translate"),h()()(),ae(14,Wm,2,5,"cp-contract",7)(15,Hm,2,5,"cp-contract",8),h()()),i&2&&(c(3),S("ngIf",!r.grouped),c(),S("ngIf",r.grouped),c(3),Gi("data-track","contract-card-"+(r.
1service==null?null:r.service.service)+"-documents-link"),c(),R(" ",N(9,9,"myServices.importantDocuments")," "),c(2),S("hidden",!r.grouped&&r.service.statusSemantic==="ABORTED"),c(),Gi("data-track","contract-card-"+(r.service==null?null:r.service.service)+"-payments-link"),c(),R(" ",N(13,11,"myServices.changePaymentMethod")," "),c(2),S("ngIf",!r.grouped),c(),S("ngForOf",r.groupedServices))},dependencies:[Gt,St,qn,Je],encapsulation:2})}}return t})()});var Pn,Nu=Nt(()=>{st();Di();si();st();Rn();It();Pn=(()=>{class t{constructor(){this.router=ye(ai),this.route=ye(xr),this.authService=ye(Un)}navigate(e){this.router.navigate([e],{relativeTo:this.route})}logout(){return nt(this,null,function*(){yield this.authService.logout(),this.router.navigate(["/login"]),location.href=location.origin})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-my-profile-nav"]],inputs:{currentPage:"currentPage"},standalone:!1,decls:21,vars:36,consts:[[1,"list-group","data-grid"],[3,"click"],[3,"viewBox"]],template:function(i,r){i&1&&(g(0,"div",0)(1,"a",1),De("click",function(){return r.navigate("/profil/profil-daten")}),A(2),w(3,"translate"),ve(4,"cp-icon-person"),h(),g(5,"a",1),De("click",function(){return r.navigate("/profil/meine-services")}),A(6),w(7,"translate"),ve(8,"cp-icon-contract",2),h(),g(9,"a",1),De("click",function(){return r.navigate("/profil/zahlungsart")}),A(10),w(11,"translate"),ve(12,"cp-icon-euro",2),h(),g(13,"a",1),De("click",function(){return r.navigate("/profil/communications")}),A(14),w(15,"translate"),ve(16,"cp-icon-envelope"),h(),g(17,"a",1),De("click",function(){return r.logout()}),A(18),w(19,"translate"),ve(20,"cp-icon-logout",2),h()()),i&2&&(c(),gt("active",r.currentPage==="account-details"),c(),R(" ",N(3,26,"myProfile.accountDetails.heading")," "),c(2),tt("my-profile-nav"),c(),gt("active",r.currentPage==="my-services"),c(),R(" ",N(7,28,"myProfile.myServices.heading")," "),c(2),tt("my-profile-nav"),S("viewBox","0 0 18 24"),c(),gt("active",r.currentPage==="payments"),c(),R(" ",N(11,30,"dashboard.zahlungsart.title")," "),c(2),tt("my-profile-nav"),S("viewBox","0 0 26 26"),c(),gt("active",r.currentPage==="communications"),c(),R(" ",N(15,32,"dashboard.communications.title")," "),c(2),tt("my-profile-nav"),c(2),R(" ",N(19,34,"global.logOut")," "),c(2),tt("my-profile-nav"),S("viewBox","0 0 24 24"))},dependencies:[j0,M0,B0,D0,F0,Je],encapsulation:2})}}return t})()});function Gm(t,n){t&1&&(g(0,"div",7),ve(1,"span",8),h())}var Ep,Eu=Nt(()=>{st();ti();It();Ep=(()=>{class t{constructor(){this.disableIcon=!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-payment-mean-card"]],inputs:{paymentMean:"paymentMean",disableIcon:"disableIcon"},standalone:!1,decls:11,vars:7,consts:[[1,"container-fluid"],[1,"row","payment-mean-card__card","payment-mean-card__card--no-shadow","payment-details__card--bank_account"],["class","col-md-4 col-lg-2 d-flex align-items-center flex-column",4,"ngIf"],[1,"row"],[1,"col-12"],[1,"payment-mean-card__card__title"],[1,"payment-mean-card__card__info"],[1,"col-md-4","col-lg-2","d-flex","align-items-center","flex-column"],[1,"payment-details__card__icon"]],template:function(i,r){i&1&&(g(0,"div",0)(1,"div",1),ae(2,Gm,2,0,"div",2),g(3,"div")(4,"div",3)(5,"div",4)(6,"span",5),A(7),w(8,"translate"),h(),g(9,"span",6),A(10),h()()()()()()),i&2&&(c(2),S("ngIf",!r.disableIcon),c(),tt(r.disableIcon?"col-12":"col-lg-10 col-md-8"),c(4),ke(N(8,5,"myProfile.payments.paymentTypes.bankAccount")),c(3),ke(r.paymentMean.iban))},dependencies:[St,Je],encapsulation:2})}}return t})()});function Ym(t,n){if(t&1&&(g(0,"a",13),A(1),h()),t&2){let e=z();S("href","mailto:"+e.emailAddress,Zn),c(),ke(e.emailAddress)}}function Jm(t,n){t&1&&(g(0,"div"),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"communications.marketingPreferencesSuccess.optIn")," "))}function $m(t,n){t&1&&(g(0,"div"),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"communications.marketingPreferencesSuccess.optOut")," "))}function Km(t,n){if(t&1&&(g(0,"div",6),ni(1,Jm,3,3,"div")(2,$m,3,3,"div"),h()),t&2){let e=z();c(),ri(e.userOptedIn?1:2)}}function Xm(t,n){if(t&1&&(g(0,"a",14),A(1),h()),t&2){let e=z();S("href","tel:"+e.phoneNumber,Zn),c(),ke(e.phoneNumber)}}function Qm(t,n){t&1&&(g(0,"p",15),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"communications.phoneMarketingPreferencesCheckBoxNoNumber")," "))}function Zm(t,n){t&1&&(g(0,"div"),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"communications.phoneMarketingPreferencesCheckBoxNoNumber")," "))}function eh(t,n){t&1&&(A(0),w(1,"translate")),t&2&&R(" ",N(1,1,"communications.phoneMarketingPreferences.optIn")," ")}function th(t,n){if(t&1&&(g(0,"div"),ae(1,Zm,3,3,"div",18)(2,eh,2,3,"ng-template",null,0,Ui),h()),t&2){let e=Lt(3),i=z(2);c(),S("ngIf",i.phoneNumber===void 0)("ngIfElse",e)}}function ih(t,n){t&1&&(g(0,"div"),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"communications.phoneMarketingPreferences.optOut")," "))}function nh(t,n){if(t&1&&(g(0,"div",16),ae(1,th,4,2,"div",17)(2,ih,3,3,"div",17),h()),t&2){let e=z();c(),S("ngIf",e.phoneOptIn),c(),S("ngIf",!e.phoneOptIn)}}var Lp,Lu=Nt(()=>{st();tr();si();It();st();tr();ti();It();Lp=(()=>{class t{constructor(){this.notificationService=ye(Do),this.translate=ye(Je),this.isLoading=!1,this.showNewsletterAlert=!1,this.userOptedIn=!1,this.showPhoneAlert=!1,this.newsletterOptIn=!1,this.phoneOptIn=!1,this.save=new nn,this.initForm=new nn,this.form=new Ml({newsletter:new Oa(!1),phone:new Oa(!1,[e=>e.value!==!0||this.phoneNumber?null:{phoneMissing:!0}])})}ngOnInit(){this.form.get("newsletter").setValue(this.newsletterOptIn),this.form.get("phone").setValue(this.phoneOptIn),this.initForm.emit(this.form)}onSubmit(){return nt(this,null,function*(){if(!this.form.valid){yield this.notificationService.error(this.translate.transform("communications.marketingPreferences.error"));return}this.phoneOptIn=this.form.value.phone,this.save.emit(this.form.getRawValue()),this.form.get("newsletter").setValue(!1),this.newsletterOptIn=!1})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-my-profile-communication-opt-ins"]],inputs:{isLoading:"isLoading",showNewsletterAlert:"showNewsletterAlert",userOptedIn:"userOptedIn",showPhoneAlert:"showPhoneAlert",emailAddress:"emailAddress",phoneNumber:"phoneNumber",newsletterOptIn:"newsletterOptIn",phoneOptIn:"phoneOptIn"},outputs:{save:"save",initForm:"initForm"},standalone:!1,decls:26,vars:21,consts:[["phoneOptInMsg",""],[3,"formGroup"],["data-track","communication-optin-header-label",1,"communications__subheading"],["id","newsletterOptIn","type","checkbox","formControlName","newsletter","data-track","communication-optin-newsletter-checkbox",1,"enercity-checkbox"],["for","newsletterOptIn",1,"mb-3"],["data-track","communication-optin-newsletter-checkbox-email-link",3,"href",4,"ngIf"],["id","tailwind-component",1,"lg:mb-12","text-base","bg-primary-100","text-primary-600","px-4","py-2","mb-4","rounded"],["id","telephoneOptIn","type","checkbox","formControlName","phone","data-track","communication-optin-phone-checkbox",1,"enercity-checkbox"],["for","telephoneOptIn",1,"mb-3"],["data-track","communication-optin-phone-link",3,"href",4,"ngIf"],["class","c-red",4,"ngIf"],["class","alert alert-info",4,"ngIf"],["data-track","communication-optin-save-button","type","submit",1,"btn","communications__btn","communications__btn--gradient","mt-4",3,"click","disabled"],["data-track","communication-optin-newsletter-checkbox-email-link",3,"href"],["data-track","communication-optin-phone-link",3,"href"],[1,"c-red"],[1,"alert","alert-info"],[4,"ngIf"],[4,"ngIf","ngIfElse"]],template:function(i,r){if(i&1&&(g(0,"form",1)(1,"div")(2,"h3",2),A(3),w(4,"translate"),h(),g(5,"div"),ve(6,"input",3),g(7,"label",4),A(8),w(9,"translate"),ve(10,"br"),ae(11,Ym,2,2,"a",5),h()(),ni(12,Km,3,1,"div",6),g(13,"div"),ve(14,"input",7),g(15,"label",8),A(16),w(17,"translate"),ve(18,"br"),ae(19,Xm,2,2,"a",9),h(),ae(20,Qm,3,3,"p",10),h(),ae(21,nh,3,2,"div",11),h(),g(22,"div")(23,"button",12),De("click",function(){return r.onSubmit()}),A(24),w(25,"translate"),h()()()),i&2){let o;S("formGroup",r.form),c(3),R(" ",N(4,13,"myProfile.accountDetails.headingMarketingPreferences")," "),c(5),R(" ",N(9,15,"communications.marketingPreferencesCheckBox")),c(3),S("ngIf",r.emailAddress),c(),ri(r.showNewsletterAlert?12:-1),c(4),R(" ",N(17,17,"communications.phoneMarketingPreferencesCheckBox")),c(3),S("ngIf",r.phoneNumber),c(),S("ngIf",(o=r.form.get("phone").errors)==null?null:o.phoneMissing),c(),S("ngIf",r.showPhoneAlert),c(2),gt("spinner",r.isLoading),S("disabled",r.isLoading),c(),R(" ",N(25,19,"global.update")," ")}},dependencies:[hn,Ao,sa,mn,St,Bl,v0,Je],encapsulation:2})}}return t})()});function ah(t,n){if(t&1&&(g(0,"div"),ve(1,"input",10),g(2,"label",11),A(3),h()()),t&2){let e=n.$implicit,i=n.index,r=z(2);c(),S("id",Ot("communicationPreference",i))("formControl",r.form.get("postal").get(On(8,rh,i))),Gi("data-track","communication-preference-"+i+"-checkbox"),c(),S("for",Ot("communicationPreference",i)),Gi("data-track","communication-preference-"+i+"-checkbox-label"),c(),R(" ",e.address," ")}}function oh(t,n){t&1&&(g(0,"div"),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"communications.postalPreferencesSuccess.optIn")," "))}function sh(t,n){t&1&&(A(0),w(1,"translate")),t&2&&R(" ",N(1,1,"communications.postalPreferencesSuccess.optout")," ")}function lh(t,n){if(t&1&&(g(0,"div",12),ae(1,oh,3,3,"div",5)(2,sh,2,3,"ng-template",null,1,Ui),h()),t&2){let e=Lt(3),i=z(2);c(),S("ngIf",i.showOptInText)("ngIfElse",e)}}function ch(t,n){t&1&&ve(0,"cp-loading-spinner",13),t&2&&S("iconOnly",!0)("whiteIcon",!0)}function ph(t,n){if(t&1){let e=Ze();qe(0),ae(1,ah,4,10,"div",6)(2,lh,4,2,"div",7),g(3,"div")(4,"button",8),De("click",function(){let r=Fe(e).ngIf,o=z();return Re(o.clickSavePostalPreferences(r))}),A(5),w(6,"translate"),ae(7,ch,1,2,"cp-loading-spinner",9),h()(),Ue()}if(t&2){let e=n.ngIf,i=z();c(),S("ngForOf",e),c(),S("ngIf",i.showPostalAlert),c(2),gt("spinner",i.isLoading),S("disabled",i.isLoading),c(),R(" ",N(6,7,"global.update")," "),c(2),S("ngIf",i.isLoading)}}function dh(t,n){t&1&&ve(0,"cp-loading-spinner",14)}var rh,Mp,Mu=Nt(()=>{st();tr();Ma();
1So();st();tr();ti();Ti();It();rh=t=>[t];Mp=(()=>{class t{constructor(){this.showPostalAlert=!1,this.isLoading=!1,this.showOptInText=!1,this.save=new nn,this.initForm=new nn,this.form=new Ml({postal:new C0([])})}ngOnInit(){this.communicationPreferences$&&this.initPostalPreferences()}initPostalPreferences(){this.communicationPreferences$=this.communicationPreferences$.pipe(La(e=>{e.filter(i=>!i.optIn&&i.value===er.EMAIL||i.optIn&&i.value===er.POSTMAIL).forEach(i=>{let r=new Oa(i.optIn);this.postalPreferences.push(r)}),this.initForm.emit(this.form)}))}get postalPreferences(){return this.form.get("postal")}clickSavePostalPreferences(e){e.forEach((i,r)=>i.optIn=this.postalPreferences.get(r+"").value),this.save.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-my-profile-communication-postal-opt-ins"]],inputs:{showPostalAlert:"showPostalAlert",isLoading:"isLoading",showOptInText:"showOptInText",communicationPreferences$:"communicationPreferences$"},outputs:{save:"save",initForm:"initForm"},standalone:!1,decls:11,vars:11,consts:[["loadingPostalPref",""],["showOptOutText",""],[3,"formGroup"],[1,"communications__subheading"],[1,"mb-3"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],["class","alert alert-info mt-3",4,"ngIf"],["data-track","communication-update-post-save-button",1,"btn","communications__btn","communications__btn--gradient","mt-4",3,"click","disabled"],[3,"iconOnly","whiteIcon",4,"ngIf"],["type","checkbox","name","postalPreferences",1,"enercity-checkbox",3,"id","formControl"],[1,"mb-3",3,"for"],[1,"alert","alert-info","mt-3"],[3,"iconOnly","whiteIcon"],["data-track","communication-postal-loading-spinner"]],template:function(i,r){if(i&1&&(g(0,"form",2)(1,"h3",3),A(2),w(3,"translate"),h(),g(4,"p",4),A(5),w(6,"translate"),h(),ae(7,ph,8,9,"ng-container",5),w(8,"async"),ae(9,dh,1,0,"ng-template",null,0,Ui),h()),i&2){let o=Lt(10);S("formGroup",r.form),c(2),R(" ",N(3,5,"myProfile.accountDetails.headingPostPreferences")," "),c(3),R(" ",N(6,7,"communications.postalPreferencesCheckBox")," "),c(2),S("ngIf",N(8,9,r.communicationPreferences$))("ngIfElse",o)}},dependencies:[hn,Ao,sa,mn,Gt,St,gn,Dl,Bl,wl,Je],encapsulation:2})}}return t})()});function fh(t,n){t&1&&(up(),g(0,"svg",3),ve(1,"path",8),h())}function mh(t,n){t&1&&(up(),g(0,"svg",4)(1,"g",9),ve(2,"path",10),h(),g(3,"defs")(4,"clipPath",11),ve(5,"rect",12),h()()())}function hh(t,n){if(t&1&&(A(0),w(1,"translate")),t&2){let e=z();R(" ",N(1,1,"contracts."+e.operation()+".success-alert.title")," ")}}function gh(t,n){if(t&1&&(A(0),w(1,"translate")),t&2){let e=z();R(" ",N(1,1,"contracts."+e.operation()+".error-alert.title")," ")}}function vh(t,n){if(t&1&&(A(0),w(1,"translate")),t&2){let e=z();R(" ",N(1,1,"contracts."+e.operation()+".success-alert.body")," ")}}function _h(t,n){if(t&1&&(g(0,"div",7),A(1),w(2,"translate"),h()),t&2){let e=z();c(),R(" ",N(2,1,"contracts."+e.operation()+".error-alert.body")," ")}}var uh,tc,kp=Nt(()=>{st();$f();du();st();ti();It();uh=()=>({success:"bg-success-100",err:"bg-danger-100"});tc=(()=>{class t{constructor(){this.state=hp.required(),this.operation=hp.required()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-contract-operation-message"]],inputs:{state:[1,"state"],operation:[1,"operation"]},decls:11,vars:7,consts:[["id","tailwind-component",1,"inner-form","empty:hidden"],[1,"w-full",3,"dismissable","ngClass"],["icon",""],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true",1,"[&_path]:fill-success-500"],["width","20","height","20","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg","ariaria-hidden","true",1,"[&_path]:fill-danger-500"],["title","",1,"font-semibold","flex","justify-between"],["body",""],[1,"mb-4"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.81282 16.1872C5.45376 17.8281 7.67936 18.75 10 18.75C12.3206 18.75 14.5462 17.8281 16.1872 16.1872C17.8281 14.5462 18.75 12.3206 18.75 10C18.75 7.67936 17.8281 5.45376 16.1872 3.81282C14.5462 2.17187 12.3206 1.25 10 1.25C7.67936 1.25 5.45376 2.17187 3.81282 3.81282C2.17187 5.45376 1.25 7.67936 1.25 10C1.25 12.3206 2.17187 14.5462 3.81282 16.1872ZM17.0711 17.0711C15.1957 18.9464 12.6522 20 10 20C7.34784 20 4.8043 18.9464 2.92893 17.0711C1.05357 15.1957 0 12.6522 0 10C0 7.34784 1.05357 4.8043 2.92893 2.92893
1C4.8043 1.05357 7.34784 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 12.6522 18.9464 15.1957 17.0711 17.0711ZM13.6875 6.23997C13.6952 6.23028 13.7036 6.2211 13.7125 6.21247C13.8874 6.03906 14.1236 5.94146 14.3699 5.94078C14.6162 5.9401 14.8529 6.03639 15.0288 6.20884C15.2047 6.38128 15.3057 6.61602 15.3099 6.8623C15.3141 7.10859 15.2212 7.34663 15.0513 7.52497L10.0613 13.7625C9.97551 13.8547 9.87208 13.9286 9.75712 13.98C9.64217 14.0313 9.51806 14.059 9.39219 14.0613C9.26631 14.0636 9.14126 14.0406 9.02448 13.9935C8.90771 13.9465 8.80161 13.8764 8.7125 13.7875L5.405 10.4787C5.2394 10.301 5.14925 10.0659 5.15353 9.82307C5.15782 9.58019 5.25621 9.34846 5.42798 9.17669C5.59974 9.00493 5.83147 8.90654 6.07435 8.90225C6.31723 8.89797 6.55228 8.98812 6.73 9.15372L9.34625 11.7712L13.6875 6.23997Z","fill","#16A34A"],["clip-path","url(#clip0_12476_78922)"],["fill-rule","evenodd","clip-rule","evenodd","d","M10.0021 2.49982C9.97418 2.49949 9.94663 2.50638 9.92213 2.51982C9.89358 2.53701 9.87025 2.56164 9.85463 2.59107L1.28463 17.1748C1.26327 17.2091 1.25175 17.2485 1.25131 17.2888C1.25087 17.3292 1.26153 17.3689 1.28213 17.4036C1.29798 17.4338 1.32119 17.4596 1.34963 17.4786C1.37435 17.4938 1.40311 17.5012 1.43213 17.4998H18.5721C18.6011 17.5012 18.6299 17.4938 18.6546 17.4786C18.6831 17.4596 18.7063 17.4338 18.7221 17.4036C18.7634 17.3298 18.7646 17.2498 18.7196 17.1748L10.1484 2.59107C10.1328 2.5616 10.1095 2.53696 10.0809 2.51982C10.0567 2.50659 10.0296 2.49971 10.0021 2.49982ZM10.7099 1.43816C10.925 1.56269 11.1034 1.74177 11.2271 1.95732L19.7971 16.5411C20.3696 17.5123 19.6834 18.7498 18.5721 18.7498H1.43088C0.319627 18.7498 -0.365373 17.5136 0.205877 16.5411L8.77713 1.95732C8.90086 1.74177 9.07928 1.56269 9.29437 1.43816C9.50945 1.31362 9.75359 1.24805 10.0021 1.24805C10.2507 1.24805 10.4948 1.31362 10.7099 1.43816ZM8.84759 14.5214C8.78477 14.6731 8.75244 14.8356 8.75244 14.9998C8.75244 15.3313 8.88414 15.6493 9.11856 15.8837C9.35298 16.1181 9.67092 16.2498 10.0024 16.2498C10.334 16.2498 10.6519 16.1181 10.8863 15.8837C11.1207 15.6493 11.2524 15.3313 11.2524 14.9998C11.2524 14.8356 11.2201 14.6731 11.1573 14.5214C11.0945 14.3698 11.0024 14.232 10.8863 14.1159C10.7703 13.9998 10.6325 13.9078 10.4808 13.8449C10.3291 13.7821 10.1666 13.7498 10.0024 13.7498C9.83829 13.7498 9.67574 13.7821 9.52409 13.8449C9.37243 13.9078 9.23463 13.9998 9.11856 14.1159C9.00249 14.232 8.91041 14.3698 8.84759 14.5214ZM8.92394 7.02558C8.87499 7.17641 8.8583 7.33585 8.87494 7.49355L9.31244 11.8773C9.32714 12.0495 9.40594 12.2099 9.53325 12.3268C9.66055 12.4437 9.8271 12.5086 9.99994 12.5086C10.1728 12.5086 10.3393 12.4437 10.4666 12.3268C10.5939 12.2099 10.6727 12.0495 10.6874 11.8773L11.1249 7.49355C11.1416 7.33585 11.1249 7.17641 11.0759 7.02558C11.027 6.87475 10.9469 6.7359 10.8408 6.61803C10.7347 6.50016 10.605 6.40591 10.4602 6.3414C10.3153 6.27688 10.1585 6.24355 9.99994 6.24355C9.84137 6.24355 9.68456 6.27688 9.53971 6.3414C9.39485 6.40591 9.26517 6.50016 9.15909 6.61803C9.05301 6.7359 8.97289 6.87475 8.92394 7.02558Z"],["id","clip0_12476_78922"],["width","20","height","20","fill","white"]],template:function(i,r){i&1&&(g(0,"div",0)(1,"cui-alert",1),qe(2,2),ni(3,fh,2,0,":svg:svg",3),ni(4,mh,6,0,":svg:svg",4),Ue(),g(5,"div",5),ni(6,hh,2,3)(7,gh,2,3),h(),qe(8,6),ni(9,vh,2,3)(10,_h,3,3,"div",7),Ue(),h()()),i&2&&(c(),S("dismissable",!0)("ngClass",ra(6,uh)[r.state()]),c(2),ri(r.state()==="success"?3:-1),c(),ri(r.state()==="err"?4:-1),c(2),ri(r.state()==="success"?6:7),c(3),ri(r.state()==="success"?9:10))},dependencies:[gu,Yl,i0,Je],encapsulation:2})}}return t})()});var Ur=Nt(()=>{Ur();Tu();Nu();Eu();Lu();Mu();kp()});function Ph(t,n){t&1&&(g(0,"header",45)(1,"div",17)(2,"div",36)(3,"h1",46),A(4),w(5,"translate"),h(),g(6,"h1",47),A(7),w(8,"translate"),h()()()()),t&2&&(c(4),R(" ",N(5,2,"myProfile.title")," "),c(3),R(" ",N(8,4,"myProfile.title")," "))}function Ah(t,n){t&1&&(g(0,"div",48),ve(1,"cp-my-profile-nav",49),h()),t&2&&(c(),S("currentPage","account-details"))}function Ih(t,n){if(t&1){let e=Ze();g(0,"span",50),De("click",function(){Fe(e);let r=z();return Re(r.toggleEditPersonalDetails(!0))}),ve(1,"cp-icon-edit",51),h()}
1t&2&&(c(),tt("icon edit-icon account-details"),S("viewBox","0 0 17 17"))}function Th(t,n){t&1&&(ve(0,"cp-loading-spinner",52),w(1,"translate")),t&2&&S("loadingText",N(1,1,"loading"))}function Nh(t,n){if(t&1){let e=Ze();g(0,"div",56)(1,"cp-text-field",61),w(2,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z(2);return _i(o.profile.title,r)||(o.profile.title=r),Re(r)}),h()()}if(t&2){let e=z(2);c(),S("label",N(2,3,"customerDetail.salutation")),vi("ngModel",e.profile.title),S("disabled",!0)}}function Eh(t,n){if(t&1){let e=Ze();g(0,"div",65)(1,"input",71),w(2,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z(3);return _i(o.profile.title,r)||(o.profile.title=r),Re(r)}),h(),g(3,"label",72),A(4),w(5,"translate"),h()()}if(t&2){let e=z(3);c(),S("disabled",!0),vi("ngModel",e.profile.title),S("value",N(2,4,"contactDetails.company")),c(3),R(" ",N(5,6,"contactDetails.company")," ")}}function Lh(t,n){if(t&1){let e=Ze();g(0,"div",62)(1,"div",63)(2,"label"),A(3),w(4,"translate"),h()(),g(5,"div",64)(6,"div",65)(7,"input",66),w(8,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z(2);return _i(o.profile.title,r)||(o.profile.title=r),Re(r)}),h(),g(9,"label",67),A(10),w(11,"translate"),h()(),g(12,"div",65)(13,"input",68),w(14,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z(2);return _i(o.profile.title,r)||(o.profile.title=r),Re(r)}),h(),g(15,"label",69),A(16),w(17,"translate"),h()(),ae(18,Eh,6,8,"div",70),h()()}if(t&2){let e=z(2);c(3),ke(N(4,12,"customerDetail.salutation")),c(3),gt("col-sm-6",!e.isCompanyAccount),c(),vi("ngModel",e.profile.title),S("value",N(8,14,"contactDetails.mrs")),c(3),R(" ",N(11,16,"contactDetails.mrs")," "),c(2),gt("col-sm-6",!e.isCompanyAccount),c(),vi("ngModel",e.profile.title),S("value",N(14,18,"contactDetails.mr")),c(3),R(" ",N(17,20,"contactDetails.mr")," "),c(2),S("ngIf",e.isCompanyAccount)}}function Mh(t,n){if(t&1&&(g(0,"div",73),ve(1,"cp-text-field",74),w(2,"translate"),h()),t&2){let e=z(2);c(),S("label",N(2,3,"customerDetail.firstName"))("ngModel",e.profile.firstName)("disabled",!0)}}function kh(t,n){t&1&&(g(0,"span",80),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"contactDetails.errors.lastNameRequired")," "))}function Dh(t,n){t&1&&(g(0,"span",81),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"contactDetails.errors.lastNamePattern")," "))}function Bh(t,n){t&1&&(g(0,"span",82),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"contactDetails.errors.lastNameLengthShort")," "))}function Oh(t,n){t&1&&(g(0,"span",83),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"contactDetails.errors.lastNameLengthLong")," "))}function Fh(t,n){if(t&1&&(g(0,"div",75),ae(1,kh,3,3,"span",76)(2,Dh,3,3,"span",77)(3,Bh,3,3,"span",78)(4,Oh,3,3,"span",79),h()),t&2){z();let e=Lt(8);c(),S("ngIf",e.errors.required),c(),S("ngIf",e.errors.pattern),c(),S("ngIf",e.errors.minlength&&!e.errors.pattern),c(),S("ngIf",e.errors.maxlength&&!e.errors.pattern)}}function Rh(t,n){t&1&&(g(0,"span",87),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"contactDetails.errors.phonePattern")," "))}function jh(t,n){t&1&&(g(0,"span",88),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"contactDetails.errors.phoneLengthShort")," "))}function qh(t,n){t&1&&(g(0,"span",89),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"contactDetails.errors.phoneLengthLong")," "))}function Uh(t,n){if(t&1&&(g(0,"div",75),ae(1,Rh,3,3,"span",84)(2,jh,3,3,"span",85)(3,qh,3,3,"span",86),h()),t&2){z();let e=Lt(16);c(),S("ngIf",e.errors.pattern),c(),S("ngIf",e.errors.minlength&&!e.errors.pattern),c(),S("ngIf",e.errors.maxlength&&!e.errors.pattern)}}function Vh(t,n){if(t&1&&(g(0,"div",90)(1,"div",17)(2,"div",36)(3,"label",91),A(4),w(5,"translate"),h()()(),ve(6,"cp-date-fields",92),h()),t&2){let e=z(2);gt("form-field__lock",e.hasDob),c(4),R(" ",N(5,7,"customerDetail.birthDate")," "),c(2),S("data",e.dateOfBirth)("profileDob",e.hasDob)("disabled",!e.editPersonalDetails)("autocomplete",ra(9,Sh))}}function zh(t,n){if(t&1){let e=Ze();g(0,"div",17)(1,"div",39),ae(2,Nh,3,5,"div",53)(3,Lh,19,22,"div",54)(4,Mh,3,5,"div",55),g(5,"div",56),w(6,"validateField"),g(7,"cp-text-field",57,2),w(9,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z();return _i(o.profile.lastName,r)||(o.profile.lastName=r),Re(r)}),h(),ae(10,Fh,5,4,"div",58),w(11,"validateField"),h()(),g(12,"div",39)(13,"div",56),w(14,"validateField"),g(15,"cp-text-field",59,3),w(17,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z();return _i(o.profile.mobileNumber.number,r)||(o.profile.mobileNumber.number=r),Re(r)}),h(),ae(18,Uh,4,3,"div",58),w(19,"validateField"),h(),ae(20,Vh,7,10,"div",60),h()()}if(t&2){let e=Lt(8),i=Lt(16),r=z();c(2),S("ngIf",!r.editPersonalDetails),c(),S("ngIf",r.editPersonalDetails),c(),S("ngIf",!r.isCompanyAccount),c(),gt("form-field--invalid",At(6,16,e,r.showFormErrors.personalDetails)),c(2),S("label",N(9,19,"customerDetail.lastName")),vi("ngModel",r.profile.lastName),S("disabled",!r.editPersonalDetails),c(3),S("ngIf",At(11,21,e,r.showFormErrors.personalDetails)),c(3),gt("form-field--invalid",At(14,24,i,r.showFormErrors.personalDetails)),c(2),S("label",N(17,27,"customerDetail.accountPhone")),vi("ngModel",r.profile.mobileNumber.number),S("disabled",!r.editPersonalDetails),c(3),S("ngIf",At(19,29,i,r.showFormErrors.personalDetails)),c(2),S("ngIf",!r.isCompanyAccount)}}function Wh(t,n){t&1&&(g(0,"div",97),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"myProfile.accountDetails.personalDetailsError")," "))}function Hh(t,n){if(t&1){let e=Ze();g(0,"section",93),ae(1,Wh,3,3,"div",94),g(2,"button",95),De("click",function(){Fe(e);let r=z();return Re(r.toggleEditPersonalDetails(!1))}),A(3),w(4,"translate"),h(),g(5,"button",96),De("click",function(){Fe(e);let r=z();return Re(r.savePersonalDetails())}),A(6),w(7,"translate"),h()()}if(t&2){let e=z();c(),S("ngIf",e.personalDetailsError),c(2),R(" ",N(4,5,"cancel")," "),c(2),gt("btn-loading",e.savingPersonalDetails),c(),R(" ",N(7,7,"save")," ")}}function Gh(t,n){t&1&&(g(0,"div",98),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"myProfile.accountDetails.personalDetailsSuccess")," "))}function Yh(t,n){if(t&1){let e=Ze();g(0,"span",99),De("click",function(){Fe(e);let r=z();return Re(r.toggleEditBillingAddress(!0))}),ve(1,"cp-icon-edit",51),h()}
1t&2&&(c(),tt("icon edit-icon account-details"),S("viewBox","0 0 17 17"))}function Jh(t,n){if(t&1&&(ve(0,"cp-checkbox",100),w(1,"translate")),t&2){let e=z();S("label",N(1,2,"myProfile.accountDetails.isPostboxAddress"))("formControl",e.isPostboxAddress)}}function $h(t,n){t&1&&(ve(0,"cp-loading-spinner",101),w(1,"translate")),t&2&&S("loadingText",N(1,1,"loading"))}function Kh(t,n){if(t&1){let e=Ze();g(0,"div",107)(1,"cp-text-field",108),w(2,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z(2);return _i(o.profile.billingAddress.careOf,r)||(o.profile.billingAddress.careOf=r),Re(r)}),h()()}if(t&2){let e=z(2);c(),S("disabled",!e.editBillingAddress),vi("ngModel",e.profile.billingAddress.careOf),S("label",N(2,3,"myProfile.accountDetails.careOfPrefix"))}}function Xh(t,n){if(t&1){let e=Ze();g(0,"li")(1,"a",113),De("click",function(){let r=Fe(e).$implicit,o=z(4);return Re(o.selectStreet(r))}),A(2),h()()}if(t&2){let e=n.$implicit,i=n.i;c(),Gi("data-track","account-details-billing-form-street-search-result-"+i+"-button"),c(),ke(e)}}function Qh(t,n){if(t&1&&(g(0,"div",111)(1,"ul"),ae(2,Xh,3,2,"li",112),h()()),t&2){let e=z(3);gt("account-detail__manual-autocomplete--active",e.routeSearchResults),c(2),S("ngForOf",e.routeSearchResults)}}function Zh(t,n){t&1&&(g(0,"span",118),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.streetNameRequired")," "))}function e2(t,n){t&1&&(g(0,"span",119),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.streetNameFormat")," "))}function t2(t,n){t&1&&(g(0,"span",120),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.streetNameLengthShort")," "))}function i2(t,n){t&1&&(g(0,"span",121),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.streetNameLengthLong")," "))}function n2(t,n){if(t&1&&(g(0,"div",75),ae(1,Zh,3,3,"span",114)(2,e2,3,3,"span",115)(3,t2,3,3,"span",116)(4,i2,3,3,"span",117),h()),t&2){z();let e=Lt(3);c(),S("ngIf",e.errors==null?null:e.errors.required),c(),S("ngIf",e.errors==null?null:e.errors.pattern),c(),S("ngIf",e.errors.minlength&&!e.errors.pattern),c(),S("ngIf",e.errors.maxlength&&!e.errors.pattern)}}function r2(t,n){if(t&1){let e=Ze();g(0,"div",104),w(1,"validateField"),g(2,"cp-text-field",109,6),w(4,"translate"),w(5,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z(2);return _i(o.profile.billingAddress.street,r)||(o.profile.billingAddress.street=r),Re(r)}),De("func",function(){Fe(e);let r=z(2);return Re(r.searchAddress())}),h(),ae(6,Qh,3,3,"div",110)(7,n2,5,4,"div",58),w(8,"validateField"),h()}if(t&2){let e=Lt(3),i=z(2);gt("form-field--invalid",At(1,9,e,i.showFormErrors.billingAddress)),c(2),vi("ngModel",i.profile.billingAddress.street),S("label",N(4,12,"address.street"))("value",N(5,14,"address.street"))("disabled",!i.editBillingAddress)("delay",400),c(4),S("ngIf",i.routeSearchResults&&i.routeSearchResults.length>0),c(),S("ngIf",At(8,16,e,i.showFormErrors.billingAddress))}}function a2(t,n){t&1&&(g(0,"span",127),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.streetNumberRequired")," "))}function o2(t,n){t&1&&(g(0,"span",128),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.streetNumberFormat")," "))}function s2(t,n){t&1&&(g(0,"span",129),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.streetNumberLengthShort")," "))}function l2(t,n){t&1&&(g(0,"span",130),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.streetNumberLengthLong")," "))}function c2(t,n){if(t&1&&(g(0,"div",75),ae(1,a2,3,3,"span",123)(2,o2,3,3,"span",124)(3,s2,3,3,"span",125)(4,l2,3,3,"span",126),h()),t&2){z();let e=Lt(3);c(),S("ngIf",e.errors==null?null:e.errors.required),c(),S("ngIf",e.errors==null?null:e.errors.pattern),c(),S("ngIf",e.errors.minlength&&!e.errors.pattern),c(),S("ngIf",e.errors.maxlength&&!e.errors.pattern)}}function p2(t,n){if(t&1){let e=Ze();g(0,"div",104),w(1,"validateField"),g(2,"cp-text-field",122,7),w(4,"translate"),w(5,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z(2);return _i(o.profile.billingAddress.houseNumber,r)||(o.profile.billingAddress.houseNumber=r),Re(r)}),h(),ae(6,c2,5,4,"div",58),w(7,"validateField"),h()}if(t&2){let e=Lt(3),i=z(2);gt("form-field--invalid",At(1,7,e,i.showFormErrors.billingAddress)),c(2),vi("ngModel",i.profile.billingAddress.houseNumber),S("label",N(4,10,"address.number"))("value",N(5,12,"address.number"))("disabled",!i.editBillingAddress),c(4),S("ngIf",At(7,14,e,i.showFormErrors.billingAddress))}}function d2(t,n){if(t&1){let e=Ze();g(0,"div",107)(1,"cp-text-field",131),w(2,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z(2);return _i(o.profile.billingAddress.additionalLine,r)||(o.profile.billingAddress.additionalLine=r),Re(r)}),h()()}if(t&2){let e=z(2);c(),S("disabled",!e.editBillingAddress),vi("ngModel",e.profile.billingAddress.additionalLine),S("label",N(2,3,"address.additionalInformation"))}}function u2(t,n){if(t&1){let e=Ze();g(0,"div",107)(1,"cp-text-field",132),w(2,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z(2);return _i(o.profile.billingAddress.postOfficeBox,r)||(o.profile.billingAddress.postOfficeBox=r),Re(r)}),h()()}if(t&2){let e=z(2);c(),S("disabled",!e.editBillingAddress),vi("ngModel",e.profile.billingAddress.postOfficeBox),S("label",N(2,3,"myProfile.accountDetails.postboxPrefix"))}}function f2(t,n){t&1&&(g(0,"span",136),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.postalCodeRequired")," "))}function m2(t,n){t&1&&(g(0,"span",137),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.postalCodeFormat")," "))}function h2(t,n){t&1&&(g(0,"span",138),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.postalCodeLengthError")," "))}function g2(t,n){if(t&1&&(g(0,"div",75),ae(1,f2,3,3,"span",133)(2,m2,3,3,"span",134)(3,h2,3,3,"span",135),h()),t&2){z();let e=Lt(9);c(),S("ngIf",e.errors==null?null:e.errors.required),c(),S("ngIf",e.errors==null?null:e.errors.pattern),c(),S("ngIf",(e.errors.minlength||e.errors.maxlength)&&!e.errors.pattern)}}function v2(t,n){t&1&&(g(0,"span",143),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.localityRequired")," "))}function _2(t,n){t&1&&(g(0,"span",144),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.localityFormat")," "))}function y2(t,n){t&1&&(g(0,"span",145),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.localityLengthShort")," "))}function b2(t,n){t&1&&(g(0,"span",146),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"address.errors.localityLengthLong")," "))}function x2(t,n){if(t&1&&(g(0,"div",75),ae(1,v2,3,3,"span",139)(2,_2,3,3,"span",140)(3,y2,3,3,"span",141)(4,b2,3,3,"span",142),h()),t&2){z();let e=Lt(17);c(),S("ngIf",e.errors==null?null:e.errors.required),c(),S("ngIf",e.errors==null?null:e.errors.pattern),c(),S("ngIf",e.errors.minlength&&!e.errors.pattern),c(),S("ngIf",e.errors.maxlength&&!e.errors.pattern)}}function w2(t,n){if(t&1){let e=Ze();g(0,"div",17),ae(1,Kh,3,5,"div",102)(2,r2,9,19,"div",103)(3,p2,8,17,"div",103)(4,d2,3,5,"div",102)(5,u2,3,5,"div",102),g(6,"div",104),w(7,"validateField"),g(8,"cp-text-field",105,4),w(10,"translate"),w(11,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z();return _i(o.profile.billingAddress.postalCode,r)||(o.profile.billingAddress.postalCode=r),Re(r)}),h(),ae(12,g2,4,3,"div",58),w(13,"validateField"),h(),g(14,"div",104),w(15,"validateField"),g(16,"cp-text-field",106,5),w(18,"translate"),w(19,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z();return _i(o.profile.billingAddress.city,r)||(o.profile.billingAddress.city=r),Re(r)}),h(),ae(20,x2,5,4,"div",58),w(21,"validateField"),h()()}if(t&2){let e=Lt(9),i=Lt(17),r=z();c(),S("ngIf",r.profile.billingAddress.careOf||r.editBillingAddress),c(),S("ngIf",!r.isPostboxAddress.value),
1c(),S("ngIf",!r.isPostboxAddress.value),c(),S("ngIf",r.profile.billingAddress.additionalLine||r.editBillingAddress),c(),S("ngIf",r.isPostboxAddress.value),c(),gt("form-field--invalid",At(7,19,e,r.showFormErrors.billingAddress)),c(2),vi("ngModel",r.profile.billingAddress.postalCode),S("label",N(10,22,"address.postcode"))("value",N(11,24,"address.postcode"))("disabled",!r.editBillingAddress),c(4),S("ngIf",At(13,26,e,r.showFormErrors.billingAddress)),c(2),gt("form-field--invalid",At(15,29,i,r.showFormErrors.billingAddress)),c(2),vi("ngModel",r.profile.billingAddress.city),S("label",N(18,32,"address.city"))("value",N(19,34,"address.city"))("disabled",!r.editBillingAddress),c(4),S("ngIf",At(21,36,i,r.showFormErrors.billingAddress))}}function C2(t,n){t&1&&(g(0,"div",151),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"addressSearch.invalid")," "))}function S2(t,n){t&1&&(g(0,"div",152),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"myProfile.accountDetails.billingAddressError")," "))}function P2(t,n){if(t&1){let e=Ze();g(0,"section",93),ae(1,C2,3,3,"div",147)(2,S2,3,3,"div",148),g(3,"button",149),De("click",function(){Fe(e);let r=z();return Re(r.toggleEditBillingAddress(!1))}),A(4),w(5,"translate"),h(),g(6,"button",150),De("click",function(){Fe(e);let r=z();return Re(r.saveBillingAddress())}),A(7),w(8,"translate"),h()()}if(t&2){let e=z();c(),S("ngIf",e.invalidAddress),c(),S("ngIf",e.billingAddressError),c(2),R(" ",N(5,6,"cancel")," "),c(2),gt("btn-loading",e.savingBillingAddress),c(),R(" ",N(8,8,"save")," ")}}function A2(t,n){t&1&&(g(0,"div",153),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"myProfile.accountDetails.billingAddressSuccess")," "))}function I2(t,n){t&1&&(g(0,"section",154)(1,"div",155),ve(2,"cp-icon-tick-circle-gradient",156),h(),g(3,"p",157),A(4),w(5,"translate"),h(),g(6,"p",158),A(7),w(8,"translate"),h()()),t&2&&(c(2),tt("usage-tick"),S("width",50)("height",50)("viewBox","0 0 70 70"),c(2),R(" ",N(5,7,"password.reset.success.title")," "),c(3),R(" ",N(8,9,"password.reset.success.text")," "))}function T2(t,n){t&1&&(g(0,"div",173),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"password.errors.required")," "))}function N2(t,n){t&1&&(g(0,"div",174),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"password.errors.required")," "))}function E2(t,n){t&1&&(g(0,"div",175),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"password.errors.strength")," "))}function L2(t,n){t&1&&(g(0,"div",176),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"password.errors.required")," "))}function M2(t,n){t&1&&(g(0,"div",177),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"password.errors.match")," "))}function k2(t,n){t&1&&(g(0,"div",178),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"password.reset.error.text")," "))}function D2(t,n){t&1&&(g(0,"div",179),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"password.reset.error.oldPassword")," "))}function B2(t,n){t&1&&(g(0,"div",180),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"password.errors.strength")," "))}function O2(t,n){if(t&1){let e=Ze();g(0,"section",23)(1,"form",159,8)(4,"div",17)(5,"div",39)(6,"div",56)(7,"cp-text-field",160,9),w(9,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z();return _i(o.passwordForm.oldPassword,r)||(o.passwordForm.oldPassword=r),Re(r)}),h(),ae(10,T2,3,3,"div",161),h()(),g(11,"div",39)(12,"div",56)(13,"cp-text-field",162,10),w(15,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z();return _i(o.passwordForm.newPassword,r)||(o.passwordForm.newPassword=r),Re(r)}),h(),ae(16,N2,3,3,"div",163)(17,E2,3,3,"div",164),h(),g(18,"div",56)(19,"cp-text-field",165,11),w(21,"translate"),yi("ngModelChange",function(r){Fe(e);let o=z();return _i(o.passwordForm.confirmPassword,r)||(o.passwordForm.confirmPassword=r),Re(r)}),h(),ae(22,L2,3,3,"div",166)(23,M2,3,3,"div",167),ve(24,"cp-password-validator",168,12),h()()(),g(26,"button",169),De("click",function(){Fe(e);let r=z();return Re(r.resetPassword())}),A(27),w(28,"translate"),h(),ae(29,k2,3,3,"div",170)(30,D2,3,3,"div",171)(31,B2,3,3,"div",172),h()()}if(t&2){let e=Lt(8),i=Lt(14),r=Lt(20),o=z();c(6),gt("form-field--invalid",o.error(e)),c(),vi("ngModel",o.passwordForm.oldPassword),S("placeholder",N(9,24,"customerAccount.oldPassword")),c(3),S("ngIf",o.error(e)&&!o.passwordForm.oldPassword),c(2),gt("form-field--invalid",o.error(i)),c(),vi("ngModel",o.passwordForm.newPassword),S("placeholder",N(15,26,"customerAccount.newPassword")),c(3),S("ngIf",o.error(i)&&!o.passwordForm.newPassword),c(),S("ngIf",i.invalid&&o.passwordForm.newPassword),c(),gt("form-field--invalid",o.error(r)),c(),vi("ngModel",o.passwordForm.confirmPassword),S("placeholder",N(21,28,"customerAccount.confirmPassword"))("equal",o.passwordForm.newPassword),c(3),S("ngIf",o.error(r)&&!(r.errors!=null&&r.errors.equal)),c(),S("ngIf",r.errors==null?null:r.errors.equal),c(),S("password",o.passwordForm.newPassword),c(2),S("disabled",i.invalid||r.errors),c(),R(" ",N(28,30,"global.update")," "),c(2),S("ngIf",o.passwordForm.error),c(),S("ngIf",o.passwordForm.oldPasswordError),c(),S("ngIf",o.passwordForm.strengthError)}}var bh,xh,wh,Ch,Sh,Dp,Du=Nt(()=>{Ff();st();tr();Di();Ss();si();El();yr();Ti();It();Il();st();tr();ti();X0();Cp();Ti();Rn();Ur();It();bh=["passwordValidator"],xh=["passwordResetForm"],wh=["personalDetailsForm"],Ch=["billingAddressForm"],Sh=()=>({day:"bday-day",month:"bday-month",year:"bday-year"});Dp=(()=>{class t{constructor(){this.router=ye(ai),this.profileService=ye(vn),this.addressService=ye(E0),this.translate=ye(Je),this.authService=ye(Un),this.passwordForm={oldPassword:null,newPassword:null,confirmPassword:null},this.editPersonalDetails=!1,this.editBillingAddress=!1,this.savingPersonalDetails=!1,this.savingBillingAddress=!1,this.personalDetailsError=!1,this.billingAddressError=!1,this.invalidAddress=!1,this.personalDetailsSuccess=!1,this.billingAddressSuccess=!1,this.hasDob=!1,this.show
1FormErrors={personalDetails:!1,billingAddress:!1},this.isPostboxAddress=new Oa(!1),this.isCompanyAccount=!1,this.isHybrid=bi.hybridEnabled}ngOnInit(){return nt(this,null,function*(){try{this.resetProfile()}catch(e){console.error(e)}})}cancelPasswordReset(){this.passwordResetForm.nativeElement.reset(),this.passwordValidator.resetValidator()}resetPassword(){return nt(this,null,function*(){this.passwordForm.strengthError=!1,this.passwordForm.oldPasswordError=!1,this.passwordForm.error=!1;try{yield this.authService.changePassword(this.passwordForm.oldPassword,this.passwordForm.newPassword),this.passwordForm.success=!0}catch(e){if(e instanceof a0){if(e.status===412){switch(JSON.parse(e.error).error.message){case"NEW_PASSWORD_STRENGTH_TOO_LOW":this.passwordForm.strengthError=!0;break;case"OLD_PASSWORD_WRONG":this.passwordForm.oldPasswordError=!0;break}return}this.passwordForm.error=!0}}})}error(e){return e.errors&&e.dirty&&!e.pristine&&e.touched}toggleEditPersonalDetails(e){this.editPersonalDetails=e,this.editPersonalDetails?(this.personalDetailsError=!1,this.personalDetailsSuccess=!1):this.resetProfile()}toggleEditBillingAddress(e){this.editBillingAddress=e,this.routeSearchResults=null,this.editBillingAddress?(this.billingAddressError=!1,this.billingAddressSuccess=!1,this.invalidAddress=!1):this.resetProfile()}savePersonalDetails(){return nt(this,null,function*(){if(!this.personalDetailsForm.valid){setTimeout(()=>{this.showFormErrors.personalDetails=!0});return}this.savingPersonalDetails=!0;try{yield this.profileService.updatePersonalData({title:this.profile.title,gender:u0(this.profile.title,this.translate.transform("contactDetails.mr"),this.translate.transform("contactDetails.mrs"),this.translate.transform("contactDetails.company")),lastName:this.profile.lastName,mobileNumber:this.profile.mobileNumber,dateOfBirth:this.formDateFieldsToString(this.dateOfBirth)}),this.resetProfile(),this.personalDetailsSuccess=!0,this.editPersonalDetails=!1,this.savingPersonalDetails=!1,setTimeout(()=>{this.personalDetailsSuccess=!1},2500)}catch{this.personalDetailsError=!0,this.savingPersonalDetails=!1}})}saveBillingAddress(){return nt(this,null,function*(){if(!this.billingAddressForm.valid){setTimeout(()=>{this.showFormErrors.billingAddress=!0});return}this.savingBillingAddress=!0;let e=this.isPostboxAddress?.value;if(!e)try{yield this.addressService.getSanitizedAddress({postalCode:this.profile.billingAddress.postalCode,city:this.profile.billingAddress.city,street:this.profile.billingAddress.street,houseNumber:this.profile.billingAddress.houseNumber})}catch{this.savingBillingAddress=!1,this.invalidAddress=!0;return}if(!this.invalidAddress){e?(this.profile.billingAddress.street="",this.profile.billingAddress.houseNumber=""):this.profile.billingAddress.postOfficeBox="";try{yield this.profileService.updateBillingAddress({billingAddress:this.profile.billingAddress}),this.resetProfile(),this.billingAddressSuccess=!0,this.editBillingAddress=!1,this.savingBillingAddress=!1,setTimeout(()=>{this.billingAddressSuccess=!1},2500)}catch{this.billingAddressError=!0,this.savingBillingAddress=!1}}})}searchAddress(){return nt(this,null,function*(){if(!this.profile.billingAddress?.street){this.routeSearchResults=null;return}try{let e=yield this.addressService.searchStreets({street:this.profile.billingAddress.street,postalCode:this.profile.billingAddress.postalCode,city:this.profile.billingAddress.city});this.routeSearchResults=e.sort((i,r)=>i.localeCompare(r))}catch(e){console.error("Error searching for address"),console.error(e)}})}selectStreet(e){this.profile.billingAddress.street=e,this.routeSearchResults=null}resetProfile(){this.profile=structuredClone(this.profileService.profile),this.isCompanyAccount=["Firma","Company"].includes(this.profile.title),this.setPersonalAccountDetails(),this.initDateOfBirth(),this.isPostboxAddress.setValue(!!this.profile.billingAddress.postOfficeBox)}setPersonalAccountDetails(){this.profile.mobileNumber||(this.profile.mobileNumber={number:""}),this.profile.homeNumber||(this.profile.homeNumber={number:""}),this.profile.title===Yi.TITLE_OTHER&&(this.profile.title=" "),this.profile.title||(this.profile.title=d0(this.profile.gender,this.translate.transform("contactDetails.mr"),this.translate.transform("contactDetails.mrs")))}
1initDateOfBirth(){let e=this.createBirthDate();this.hasDob=!!e,this.dateOfBirth=this.createFormDateFields(e)}createBirthDate(){return this.profile.dateOfBirth?l0(new Date(this.profile.dateOfBirth),12):null}createFormDateFields(e){return{year:e?e.getFullYear():null,month:e?e.getMonth()+1:null,day:e?e.getDate():null}}formDateFieldsToString(e){return!e||!e.year||!e.month||!e.day?null:`${e.year}-${e.month.toString().padStart(2,"0")}-${e.day.toString().padStart(2,"0")}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-account-details-page"]],viewQuery:function(i,r){if(i&1&&(ka(bh,7),ka(xh,7),ka(wh,7),ka(Ch,7)),i&2){let o;Da(o=Ba())&&(r.passwordValidator=o.first),Da(o=Ba())&&(r.passwordResetForm=o.first),Da(o=Ba())&&(r.personalDetailsForm=o.first),Da(o=Ba())&&(r.billingAddressForm=o.first)}},standalone:!1,decls:53,vars:33,consts:[["personalDetailsForm","ngForm"],["billingAddressForm","ngForm"],["lastName","ngModel"],["phone","ngModel"],["postalCode","ngModel"],["locality","ngModel"],["route","ngModel"],["streetNumber","ngModel"],["passwordResetForm","","form","ngForm"],["oldPassword","ngModel"],["newPassword","ngModel"],["confirmPassword","ngModel"],["passwordValidator",""],[1,"activity-log","container"],["class","account-detail-header",4,"ngIf"],[1,"row","header-row","pt-md-5"],[1,"col-6","col-xs-6","col-md-3","dropdown-mobile"],[1,"row"],["class","col-6 col-xs-12 col-md-3 profile-listing sidebar-offcanvas","id","sidebar",4,"ngIf"],[1,"col-12","col-md-9","right-content-div","account-detail-div"],[1,"inner-section","pt-2"],["data-track","account-details-data-header-label"],["data-track","account-details-data-header-edit-button",3,"click",4,"ngIf"],[1,"block-section"],["data-track","account-details-data-form-loading-spinner",3,"loadingText",4,"ngIf"],["class","row",4,"ngIf"],["class","block-section mt-3",4,"ngIf"],["class","mt-3 text-center c-brand-purple font-italic","data-track","account-details-data-form-result-label",4,"ngIf"],[1,"inner-section","billing-address"],["data-track","account-details-billing-header-label"],["data-track","account-details-billing-header-edit-button",3,"click",4,"ngIf"],["id","postbox-checkbox","dataTestAutoId","account-details-billing-postbox",3,"label","formControl",4,"ngIf"],["data-track","account-details-billing-form-loading-spinner",3,"loadingText",4,"ngIf"],["class","mt-3 text-center c-brand-purple font-italic","data-track","account-details-billing-form-result-label",4,"ngIf"],[1,"inner-section"],["data-track","account-details-email-header-label"],[1,"col-12"],["data-track","account-details-email-label",1,"form-group","email-address"],["data-track","account-details-email-value-label",1,"font-weight-bold","break-word"],[1,"col-sm-6"],["data-track","account-details-password-header-label"],["class","block-section text-center",4,"ngIf"],["class","block-section",4,"ngIf"],[1,"clearfix"],[1,"col-sm-12"],[1,"account-detail-header"],["data-track","account-details-header-desktop-label"],["data-track","account-details-header-mobile-label",1,"header-mobile"],["id","sidebar",1,"col-6","col-xs-12","col-md-3","profile-listing","sidebar-offcanvas"],[3,"currentPage"],["data-track","account-details-data-header-edit-button",3,"click"],[3,"viewBox"],["data-track","account-details-data-form-loading-spinner",3,"loadingText"],["class","form-field",4,"ngIf"],["class","form-field edit-personal-details",4,"ngIf"],["class","form-field__lock",4,"ngIf"],[1,"form-field"],["name","lastName","pattern","^[a-zA-Z0-9\\u00c4\\u00d6\\u00dc\\u1e9e\\u00e4\\u00f6\\u00fc\\u00df',.&-\\s]*$","required","","minlength","2","maxlength","38","autocomplete","family-name","dataTestAutoId","account-details-data-form-lastname",3,"ngModelChange","label","ngModel","disabled"],["class","validation-message",4,"ngIf"],["name","phone","type","tel","pattern","^[0-9]*$","minlength","7","maxlength","18","autocomplete","tel","dataTestAutoId","account-details-data-form-phone",3,"ngModelChange","label","ngModel","disabled"],["class","account-form-date-input",3,"form-field__lock",4,"ngIf"],["name","title","dataTestAutoId","account-details-data-form-title",3,"ngModelChange","label","ngModel","disabled"],[1,"form-field","edit-personal-details"],[1,"col-12","form-group","pl-0"],[1,"row","no-gutters","edit-personal-details__salutation"],[1,"col-4"],["name","title","id","mrs","type","radio","data-track","account-details-data-form-title-mrs-input",1,"enercity-radio",3,"ngModelChange","ngModel","value"],["for","mrs",1,"mb-0","d-block"],["name","title","id","mr","type","radio","data-track","account-details-data-form-title-mr-input",1,"enercity-radio",3,"ngModelChange","ngModel","value"],["for","mr",1,"mb-0","d-block"],["class","col-4",4,"ngIf"],["name","title","id","company","type","radio","data-track","account-details-data-form-title-company-input",1,"enercity-radio",3,"ngModelChange","disabled","ngModel","value"],["for","company",1,"mb-0","d-block"],[1,"form-field__lock"],["name","firstName","autocomplete","given-name","dataTestAutoId","account-details-data-form-firstname",3,"label","ngModel","disabled"],[1,"validation-message"],["data-track","account-details-data-form-error-lastnamerequired-label",4,"ngIf"],["data-track","account-details-data-form-error-lastnamepattern-label",4,"ngIf"],["data-track","account-details-data-form-error-lastnameshort-label",4,"ngIf"],["data-track","account-details-data-form-error-lastnamelong-label",4,"ngIf"],["data-track","account-details-data-form-error-lastnamerequired-label"],["data-track","account-details-data-form-error-lastnamepattern-label"],["data-track","account-details-data-form-error-lastnameshort-label"],["data-track","account-details-data-form-error-lastnamelong-label"],["data-track","account-details-data-form-error-phonepattern-label",4,"ngIf"],["data-track","account-details-data-form-error-phoneshort-label",4,"ngIf"],["data-track","account-details-data-form-error-phonelong-label",4,"ngIf"],["data-track","account-details-data-form-error-phonepattern-label"],["data-track","account-details-data-form-error-phoneshort-label"],["data-track","account-details-data-form-error-phonelong-label"],[1,"account-form-date-input"],[1,"font-weight-light"],["dataTestAutoId","account-details-data-form-birthdate",3,"data","profileDob","disabled","autocomplete"],[1,"block-section","mt-3"],["class","text-danger mb-3","data-track","account-details-data-form-error-details-label",4,"ngIf"],["data-track","account-details-data-form-cancel-button",1,"btn","btn-primary","mr-2",3,"click"],["data-track","account-details-data-form-save-button",1,"btn","btn-primary","mr-0",3,"click"],["data-track","account-details-data-form-error-details-label",1,"text-danger","mb-3"],["data-track","account-details-data-form-result-label",1,"mt-3","text-center","c-brand-purple","font-italic"],["data-track","account-details-billing-header-edit-button",3,"click"],["id","postbox-checkbox","dataTestAutoId","account-details-billing-postbox",3,"label","formControl"],["data-track","account-details-billing-form-loading-spinner",3,"loadingText"],["class","form-field col-sm-12",4,"ngIf"],["class","form-field col-sm-6",3,"form-field--invalid",4,"ngIf"],[1,"form-field","col-sm-6"],["name","billingPostcode","type","text","inputmode","numeric","pattern","^[0-9]*$","minlength","5","maxlength","5","required","","autocomplete","billing postal-code","dataTestAutoId","account-details-billing-form-additionalinfo",3,"ngModelChange","ngModel","label","value","disabled"],["name","billingLocality","required","","minlength","2","maxlength","30","autocomplete","billing address-level2","dataTestAutoId","account-details-billing-form-locality",3,"ngModelChange","ngModel","label","value","disabled"],[1,"form-field","col-sm-12"],["name","careOf","dataTestAutoId","account-details-billing-form-careof",3,"ngModelChange","disabled","ngModel","label"],["name","billingRoute","required","","cp-d-debounce","","autocomplete","billing street-address","dataTestAutoId","account-details-billing-form-street",3,"ngModelChange","func","ngModel","label","value","disabled","delay"],["class","account-detail__manual-autocomplete",3,"account-detail__manual-autocomplete--active",4,"ngIf"],[1,"account-detail__manual-autocomplete"],[4,"ngFor","ngForOf"],["tabindex","0",3,"click"],["data-track","account-details-billing-form-street-error-required-label",4,"ngIf"],["data-track","account-details-billing-form-street-error-format-label",4,"ngIf"],["data-track","account-details-billing-form-street-error-short-label",4,"ngIf"],["data-track","account-details-billing-form-street-error-long-label",4,"ngIf"],["data-track","account-details-billing-form-street-error-required-label"],["data-track","account-details-billing-form-street-error-format-label"],["data-track","account-details-billing-form-street-error-short-label"],["data-track","account-details-billing-form-street-error-long-label"],["name","billingStreetNumber","pattern","^[0-9a-zA-Z-/]*$","minlength","1","maxlength","9","required","","dataTestAutoId","account-details-billing-form-streetnumber",3,"ngModelChange","ngModel","label","value","disabled"],["data-track","account-details-billing-form-streetnumber-error-required-label",4,"ngIf"],["data-track","account-details-billing-form-streetnumber-error-format-label",4,"ngIf"],["data-track","account-details-billing-form-streetnumber-error-short-label",4,"ngIf"],["data-track","account-details-billing-form-streetnumber-error-long-label",4,"ngIf"],["data-track","account-details-billing-form-streetnumber-error-required-label"],["data-track","account-details-billing-form-streetnumber-error-format-label"],["data-track","account-details-billing-form-streetnumber-error-short-label"],["data-track","account-details-billing-form-streetnumber-error-long-label"],["name","additionalInformation","dataTestAutoId","account-details-billing-form-additionalinfo",3,"ngModelChange","disabled","ngModel","label"],["name","postbox","dataTestAutoId","account-details-billing-form-postbox",3,"ngModelChange","disabled","ngModel","label"],["data-track","account-details-billing-form-additionalinfo-error-required-label",4,"ngIf"],["data-track","account-details-billing-form-additionalinfo-error-pattern-label",4,"ngIf"],["data-track","account-details-billing-form-additionalinfo-error-length-label",4,"ngIf"],["data-track","account-details-billing-form-additionalinfo-error-required-label"],["data-track","account-details-billing-form-additionalinfo-error-pattern-label"],["data-track","account-details-billing-form-additionalinfo-error-length-label"],["data-track","account-details-billing-form-locality-error-required-label",4,"ngIf"],["data-track","account-details-billing-form-locality-error-format-label",4,"ngIf"],["data-track","account-details-billing-form-locality-error-short-label",4,"ngIf"],["data-track","account-details-billing-form-locality-error-length-label",4,"ngIf"],["data-track","account-details-billing-form-locality-error-required-label"],["data-track","account-details-billing-form-locality-error-format-label"],["data-track","account-details-billing-form-locality-error-short-label"],["data-track","account-details-billing-form-locality-error-length-label"],["class","text-danger mb-3","data-track","account-details-billing-form-addresssearch-error-label",4,"ngIf"],["class","text-danger mb-3","data-track","account-details-billing-form-addresssearch-error-billing-label",4,"ngIf"],["data-track","account-details-billing-form-cancel-button",1,"btn","btn-primary","mr-2",3,"click"],["id","save-billing-address-btn","data-track","account-details-billing-form-save-button",1,"btn","btn-primary","mr-0",3,"click"],["data-track","account-details-billing-form-addresssearch-error-label",1,"text-danger","mb-3"],["data-track","account-details-billing-form-addresssearch-error-billing-label",1,"text-danger","mb-3"],["data-track","account-details-billing-form-result-label",1,"mt-3","text-center","c-brand-purple","font-italic"],[1,"block-section","text-center"],[1,"gradient-icon"],[3,"width","height","viewBox"],["data-track","account-details-password-success-title-label",1,"lead","c-brand-purple"],["data-track","account-details-password-success-text-label"],["novalidate",""],["name","oldPassword","type","password","required","","dataTestAutoId","account-details-password-form-oldpassword","autocomplete","current-password",3,"ngModelChange","ngModel","placeholder"],["class","validation-message","data-track","account-details-password-form-oldpassword-error-required-label",4,"ngIf"],["name","newPassword","type","password","required","","cp-d-password-validate","","autocomplete","new-password","dataTestAutoId","account-details-password-form-newpassword",3,"ngModelChange","ngModel","placeholder"],["class","validation-message","data-track","account-details-password-form-newpassword-error-required-label",4,"ngIf"],["class","validation-message","data-track","account-details-password-form-newpassword-error-strength-label",4,"ngIf"],["name","confirmPassword","type","password","required","","autocomplete","new-password","dataTestAutoId","account-details-password-form-confirmpassword",3,"ngModelChange","ngModel","placeholder","equal"],["class","validation-message","data-track","account-details-password-form-confirmpassword-error-required-label",4,"ngIf"],["class","validation-message","data-track","account-details-password-form-confirmpassword-error-match-label",4,"ngIf"],[3,"password"],["tabindex","0","data-track","account-details-password-reset-button",1,"btn","btn-primary",3,"click","disabled"],["class","validation-message","data-track","account-details-password-reset-error-label",4,"ngIf"],["class","validation-message","data-track","account-details-password-reset-error-old-password-label",4,"ngIf"],["class","validation-message","data-track","account-details-password-reset-error-strength-label",4,"ngIf"],["data-track","account-details-password-form-oldpassword-error-required-label",1,"validation-message"],["data-track","account-details-password-form-newpassword-error-required-label",1,"validation-message"],["data-track","account-details-password-form-newpassword-error-strength-label",1,"validation-message"],["data-track","account-details-password-form-confirmpassword-error-required-label",1,"validation-message"],["data-track","account-details-password-form-confirmpassword-error-match-label",1,"validation-message"],["data-track","account-details-password-reset-error-label",1,"validation-message"],["data-track","account-details-password-reset-error-old-password-label",1,"validation-message"],["data-track","account-details-password-reset-error-strength-label",1,"validation-message"]],template:function(i,r){i&1&&(g(0,"section",13),ae(1,Ph,9,6,"header",14),g(2,"div",15),ve(3,"div",16),h(),g(4,"div",17),ae(5,Ah,2,1,"div",18),g(6,"div",19)(7,"div",20)(8,"h3",21),A(9),w(10,"translate"),ae(11,Ih,2,3,"span",22),h(),g(12,"form",null,0)(14,"section",23),ae(15,Th,2,3,"cp-loading-spinner",24)(16,zh,21,32,"div",25),h(),ae(17,Hh,8,9,"
1section",26)(18,Gh,3,3,"div",27),h()(),g(19,"div",28)(20,"h3",29),A(21),w(22,"translate"),ae(23,Yh,2,3,"span",30),h(),ae(24,Jh,2,4,"cp-checkbox",31),g(25,"form",null,1)(27,"section",23),ae(28,$h,2,3,"cp-loading-spinner",32)(29,w2,22,39,"div",25),h(),ae(30,P2,9,10,"section",26)(31,A2,3,3,"div",33),h()(),g(32,"div",34)(33,"h3",35),A(34),w(35,"translate"),h(),g(36,"section",23)(37,"div",17)(38,"div",36)(39,"div",37),A(40),w(41,"translate"),g(42,"span",38),A(43),h()()(),ve(44,"div",39),h()()(),g(45,"div",34)(46,"h3",40),A(47),w(48,"translate"),h(),ae(49,I2,9,11,"section",41)(50,O2,32,32,"section",42),h()(),ve(51,"div",43)(52,"div",44),h()()),i&2&&(c(),S("ngIf",!r.isHybrid),c(4),S("ngIf",!r.isHybrid),c(),gt("pt-0",r.isHybrid),c(3),R(" ",N(10,23,"myProfile.accountDetails.headingPersonalDetails")," "),c(2),S("ngIf",!r.editPersonalDetails),c(4),S("ngIf",!r.profile),c(),S("ngIf",r.profile),c(),S("ngIf",r.editPersonalDetails),c(),S("ngIf",r.personalDetailsSuccess),c(3),R(" ",N(22,25,"myProfile.accountDetails.headingBillingAddress")," "),c(2),S("ngIf",!r.editBillingAddress),c(),S("ngIf",r.editBillingAddress),c(4),S("ngIf",!r.profile),c(),S("ngIf",r.profile),c(),S("ngIf",r.editBillingAddress),c(),S("ngIf",r.billingAddressSuccess),c(3),R(" ",N(35,27,"myProfile.accountDetails.headingEmailAddress")," "),c(6),R(" ",N(41,29,"myProfile.accountDetails.yourEmailAddressIs")," "),c(3),ke(r.authService.loginDetails==null?null:r.authService.loginDetails.email),c(4),R(" ",N(48,31,"myProfile.accountDetails.headingChangePassword")," "),c(2),S("ngIf",r.passwordForm.success),c(),S("ngIf",!r.passwordForm.success))},dependencies:[hn,h0,g0,sa,mn,_0,b0,x0,w0,kl,br,Gt,St,$0,lu,pu,iu,Eo,su,gn,ou,k0,To,Dl,Pn,Je,A0],encapsulation:2})}}return t})()});var Bp,Bu=Nt(()=>{st();Ur();It();Bp=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-bonus-page"]],standalone:!1,decls:16,vars:4,consts:[[1,"activity-log","container"],[1,"account-detail-header"],[1,"row"],[1,"col-12"],[1,"row","header-row"],[1,"col-12","col-xs-12","col-md-6","offset-md-3",2,"text-align","center"],[1,""],[1,"col-12","col-xs-12","col-md-3","dropdown-mobile"],["id","sidebar",1,"col-6","col-xs-12","col-md-3","profile-listing","sidebar-offcanvas"],[3,"currentPage"],[1,"col-12","col-md-9","right-content-div","contacts-div","account-detail-div"]],template:function(i,r){i&1&&(g(0,"section",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"h1"),A(5),w(6,"translate"),h()()()(),g(7,"div",4)(8,"div",5)(9,"h2",6),A(10,"\xA0"),h()(),ve(11,"div",7),h(),g(12,"div",2)(13,"div",8),ve(14,"cp-my-profile-nav",9),h(),ve(15,"div",10),h()()),i&2&&(c(5),R(" ",N(6,2,"myProfile.title")," "),c(9),S("currentPage","bonus"))},dependencies:[Pn,Je],encapsulation:2})}}return t})()});function F2(t,n){if(t&1&&ve(0,"cp-contract",16),t&2){let e=z();S("contract",e.subscription)("singleService",!0)}}function R2(t,n){t&1&&(ve(0,"cp-loading-spinner",17),w(1,"translate")),t&2&&S("loadingText",N(1,1,"myServices.loading"))}function j2(t,n){if(t&1){let e=Ze();qe(0),g(1,"h3"),A(2),w(3,"translate"),h(),g(4,"div"),A(5),w(6,"translate"),h(),g(7,"cp-tariff-item",18),De("moreInfo",function(r){Fe(e);let o=z();return Re(o.productChangeService.onMoreInfo(r))})("tariffSelected",function(r){Fe(e);let o=z();return Re(o.onTariffSelected(r))}),h(),Ue()}if(t&2){let e=z();c(2),ke(N(3,4,"tariffDetail.productChange.selectTariff.tariffOptions")),c(3),R(" ",N(6,6,"tariffDetail.productChange.selectTariff.tariffOptionsDetails")," "),c(2),S("selectedServices",e.selectedTariff)("tariffList",e.tariffList)}}function q2(t,n){if(t&1&&(qe(0),g(1,"h3"),A(2),w(3,"translate"),h(),g(4,"div"),A(5),w(6,"translate"),g(7,"span",19),A(8),h()(),g(9,"div"),A(10),w(11,"translate"),g(12,"span",19),A(13),h()(),Ue()),t&2){let e=z();c(2),ke(N(3,5,"tariffDetail.productChange.selectTariff.changeDate")),c(3),R(" ",N(6,7,"tariffDetail.productChange.selectTariff.currentEndDate")," "),c(3),ke(e.nextPossibleTerminationDate()),c(2),R(" ",N(11,9,"tariffDetail.productChange.selectTariff.newStartDate")," "),c(3),ke(e.nextPossibleContractStartDate())}}var Op,Ou=Nt(()=>{st();Di();si();It();Ma();st();tr();ti();Ti();It();Op=(()=>{class t{constructor(){this.productChangeService=ye(Ql),this.subscriptionService=ye(Bi),this.router=ye(ai),this.datePipe=ye(fn),this.tariffList=[],this.selectedTariff={},this.hasSelectedTariff=()=>Object.keys(this.selectedTariff).length>0,this.nextPossibleTerminationDate=()=>this.nextChangeDate?this.datePipe.transform(this.nextChangeDate-864e4):"",this.nextPossibleContractStartDate=()=>this.nextChangeDate?this.datePipe.transform(this.nextChangeDate):""}ngOnInit(){this.productChangeService.currentProductOuid&&this.subscriptionService.getMyServiceBySubscriptionOuid(this.productChangeService.currentProductOuid).pipe(_r(1)).subscribe(e=>{this.subscription=e,this.productChangeService.searchTariffsAvailableForProductChange(this.subscription.address,this.subscription.yearlyEstimate,this.subscription.service).pipe(_r(1)).subscribe(i=>{this.agreements=i.agreements,this.offers=i.products,this.tariffList.push(this.productChangeService.formatTariffs(i,this.subscription.service,this.subscription.planName)),this.tariffList[0].tariffs.length===1&&this.onTariffSelected({service:this.tariffList[0].tariffs[0].service,value:this.tariffList[0].tariffs[0].name})})})}get subscriptionPrices(){let e=this.subscription.offers.find(i=>this.subscription.planName===i.planName);if(e)return JSON.stringify(e.subscriptionPrices)}onTariffSelected(e){this.selectedTariff[e.service]=e.value;let i=Object.values(this.selectedTariff)[0],r=this.subscription.address;this.productChangeService.fetchNextPossibleChangeDate({commitmentEndDate:this.subscription.commitmentEndDate||void 0,terminationDate:this.subscription.nextPossibleTerminationDate,consumption:this.subscription.yearlyEstimate,offerN
1ame:i,address:JSON.stringify({postCode:r.postalCode,city:r.locality,streetName:r.route,houseNumber:r.streetNumber}),subscriptionPrices:this.subscriptionPrices}).pipe(_r(1)).subscribe(o=>{this.nextChangeDate=o.nextChangeDate})}confirmTariffChange(){let e=Object.values(this.selectedTariff)[0],i=[{type:this.tariffList[0].type,tariffs:this.tariffList[0].tariffs.filter(r=>r.name===e)}];this.productChangeService.newProduct=i,this.productChangeService.nextChangeDate=this.nextChangeDate,this.productChangeService.currentProductConsumption=this.subscription.yearlyEstimate,this.productChangeService.newProductAgreements=this.agreements[this.tariffList[0].type][e],this.router.navigate(["/profil/vertrag-wechseln/bestaetigen"])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-change-product-page"]],standalone:!1,decls:32,vars:17,consts:[["form","ngForm"],[1,"activity-log","container"],[1,"sub-header"],[1,"row","align-items-center"],[1,"col-12","text-left"],["ng-reflect-class-name","sub-header__heading ",1,"sub-header__heading"],[1,"row"],[1,"col-12","contracts-div","cancel-contract-div"],[1,"col-12","col-md-4","data-grid"],[3,"contract","singleService",4,"ngIf"],[1,"tariffs-list-par","col-md-8"],["class","d-block pt-3",3,"loadingText",4,"ngIf"],[4,"ngIf"],[1,"col-4"],[1,"btn","btn-primary","btn--small","float-left",3,"click"],[1,"btn","btn-primary","btn--small","float-right",3,"click","disabled"],[3,"contract","singleService"],[1,"d-block","pt-3",3,"loadingText"],[3,"moreInfo","tariffSelected","selectedServices","tariffList"],[1,"font-weight-bold"]],template:function(i,r){if(i&1){let o=Ze();g(0,"section",1)(1,"form",null,0)(3,"header",2)(4,"div",3)(5,"div",4)(6,"h2",5),A(7),w(8,"translate"),h(),ve(9,"hr"),h()()(),g(10,"div",6)(11,"div",7)(12,"div",6)(13,"div",8)(14,"h3"),A(15),w(16,"translate"),h(),ae(17,F2,1,2,"cp-contract",9),h(),g(18,"div",10),ae(19,R2,2,3,"cp-loading-spinner",11)(20,j2,8,8,"ng-container",12),h()(),g(21,"div",6)(22,"div",13)(23,"button",14),De("click",function(){return Fe(o),Re(r.productChangeService.onBackClick())}),A(24),w(25,"translate"),h()(),g(26,"div",13),ae(27,q2,14,11,"ng-container",12),h(),g(28,"div",13)(29,"button",15),De("click",function(){return Fe(o),Re(r.confirmTariffChange())}),A(30),w(31,"translate"),h()()()()()()()}i&2&&(c(7),R(" ",N(8,9,"tariffDetail.productChange.heading")," "),c(8),ke(N(16,11,"tariffDetail.productChange.selectTariff.currentProduct")),c(2),S("ngIf",r.subscription),c(2),S("ngIf",!r.tariffList.length),c(),S("ngIf",r.tariffList.length),c(4),R(" ",N(25,13,"tariffDetail.productChange.selectTariff.back")," "),c(3),S("ngIf",r.hasSelectedTariff()),c(2),S("disabled",!r.hasSelectedTariff()||!r.nextChangeDate),c(),R(" ",N(31,15,"tariffDetail.productChange.selectTariff.submit")," "))},dependencies:[hn,mn,br,St,qn,gn,Hl,Je],encapsulation:2})}}return t})()});var Fu,Ru=Nt(()=>{st();Nl();So();si();Ma();st();Fu=(()=>{class t{constructor(){this.subscriptionService=ye(Bi),this.billingAccountsService=ye(Mo)}list(){let e;return this.subscriptionService.getSubscriptions().pipe($d(i=>(e=i,this.billingAccountsService.getBillingAccounts())),jr(i=>{let r=[];for(let o of e){let p=o.services[0].parentBillingAccountOuid,u=i.find(f=>f.billingAccountOuid===p);r.push(this.parseComminucationPreference(o,u))}return r}))}parseComminucationPreference(e,i){return i.billPresentationMedia===er.EMAIL_AND_POSTMAIL&&(i.billPresentationMedia=er.POSTMAIL),{billingAccountOuid:i.billingAccountOuid,address:e.address,individualBillingAccountOuids:e.services.filter(r=>r.billingAccountOuid&&r.billType===f0.INDIVIDUAL).map(r=>r.billingAccountOuid),value:i.billPresentationMedia,optIn:i.billPresentationMedia===er.POSTMAIL}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Kd({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});function U2(t,n){t&1&&(g(0,"div",16),ve(1,"cp-my-profile-nav",17),h()),t&2&&(c(),S("currentPage","communications"))}function V2(t,n){if(t&1){let e=Ze();g(0,"cp-my-profile-communication-postal-opt-ins",18),De("save",function(r){Fe(e);let o=z();return Re(o.updatePostalSavePreferences(r))})("initForm",function(r){Fe(e);let o=z();return Re(o.initFormPostal(r))}),h()}if(t&2){let e=z();S("communicationPreferences$",e.communicationPreferences$)("showPostalAlert",e.showPostalAlert)("isLoading",e.isLoadingPostal)("showOptInText",e.showOptInText)}}function z2(t,n){if(t&1&&(g(0,"div",19)(1,"h2",20),A(2),w(3,"translate"),h(),ve(4,"cp-markdown",21),w(5,"translate"),g(6,"a",22),A(7),w(8,"translate"),h()()),t&2){let e=z();c(2),R(" ",N(3,4,"communications.friends.title")," "),c(2),S("data",N(5,6,"communications.friends.text")),c(2),S("href",e.recommendationHref,Zn),c(),R(" ",N(8,8,"communications.friends.button")," ")}}var Fp,ju=Nt(()=>{st();So();si();yr();qa();Ru();It();Ma();st();ti();Ti();Ur();It();Fp=(()=>{class t{constructor(){this.accountDetailsService=ye(Ol),this.communicationPreferenceService=ye(Fu),this.modalService=ye(ua),this.notificationService=ye(Do),this.translate=ye(Je),this.featureFlagService=ye(da),this.configService=ye(Jl),this.profileService=ye(vn),this.authService=ye(Un),this.userOptedIn=!1,this.isLoadingPostal=!1,this.isLoadingCommunication=!1,this.showOptInText=!1,this.alertTimeoutInMs=15e3}ngOnInit(){this.recommendationHref=this.recommendationLink,this.communicationPreferences$=this.loadCommunicationPreferences()}updatePostalSavePreferences(e){return nt(this,null,function*(){let i=e.map(r=>this.createPostalPreferenceDetails({optIn:r.optIn,billingAccountOuid:r.billingAccountOuid,individualBillingAccountOuids:r.individualBillingAccountOuids,customerOuid:this.authService.loginDetail
1s?.customerOuid,address:r.address}));yield this.choosePostalNotification(i)})}initFormPostal(e){this.postalForm=e,this.postalFormCancellationValue=e.get("postal").value}updateCommunicationSavePreferences(e){return nt(this,null,function*(){this.isLoadingCommunication=!0,this.hideCommunicationAlerts();let i=this.profileService.profile.optins.newsletter!==e.newsletter,r=this.profileService.profile.optins.phone!==e.phone,o=e.newsletter?"newsletterRequested":"newsletter";yield this.profileService.updateOptins({optins:{[o]:e.newsletter,phone:e.phone}}),this.isLoadingCommunication=!1,this.showNewsletterAlert=i,this.userOptedIn=!!e.newsletter,this.showPhoneAlert=r,this.hideCommunicationAlertTimeout()})}get isHybrid(){return bi.hybridEnabled}get recommendationLink(){return this.configService.customerPortalConfig.CUSTOMER_PORTAL_CI_REFERRAL_LINK?this.isHybrid?`${this.configService.customerPortalConfig.CUSTOMER_PORTAL_CI_REFERRAL_LINK}?source=app`:`${this.configService.customerPortalConfig.CUSTOMER_PORTAL_CI_REFERRAL_LINK}?source=CustomerPortal`:null}get isCommunicationPreferencesEnabled(){return this.featureFlagService.isEnabled("CP.communicationPreferences")}loadCommunicationPreferences(e=!1){return!e&&this.communicationPreferences$?this.communicationPreferences$:this.communicationPreferenceService.list()}modalOpenConfirmPostal(e){return nt(this,null,function*(){this.showPostalAlert=!1,this.isLoadingPostal=!1;let i=yield this.modalService.openBottomSheet(Pp,{data:{newPreferences:e}});
1i.componentInstance.getData("save").pipe(_r(1),La(()=>{i.close(),this.communicationPreferences$=this.loadCommunicationPreferences(!0),this.postalFormCancellationValue=this.postalForm.get("postal").value,this.showPostalAlert=!0,this.showOptInText=this.activateNewPostalOptIn(e),this.hidePostalAlertTimeout()})).subscribe(),i.componentInstance.getData("cancelled").pipe(_r(1),La(()=>{i.close(),this.postalForm.get("postal").setValue(this.postalFormCancellationValue)})).subscribe()})}alertConfirmPostal(e,i){return nt(this,null,function*(){try{for(let r of e)this.isLoadingPostal||(this.isLoadingPostal=!0),yield this.accountDetailsService.updateCommunicationPreference(r);this.showPostalAlert=!0,this.showOptInText=i,this.isLoadingPostal=!1,this.hidePostalAlertTimeout()}catch{yield this.notificationService.error(this.translate.transform("error.unknown"));return}})}activateNewPostalOptIn(e){for(let i of this.postalFormCancellationValue.keys())if(this.postalFormCancellationValue[i]&&e[i].billPresentationMedia!==er.POSTMAIL)return!1;return!0}createPostalPreferenceDetails(e){return{billingAccountOuid:e.billingAccountOuid,customerOuid:e.customerOuid,billPresentationMedia:e.optIn?er.POSTMAIL.valueOf():er.EMAIL.valueOf(),individualBillingAccountOuids:e.individualBillingAccountOuids}}hideCommunicationAlerts(){this.showNewsletterAlert=!1,this.showPhoneAlert=!1}hideCommunicationAlertTimeout(){clearTimeout(this.alertTimeoutCommunication),this.alertTimeoutCommunication=window.setTimeout(()=>{this.hideCommunicationAlerts(),clearTimeout(this.alertTimeoutCommunication)},this.alertTimeoutInMs)}hidePostalAlertTimeout(){clearTimeout(this.alertTimeoutPostal),this.alertTimeoutPostal=window.setTimeout(()=>{this.showPostalAlert=!1,clearTimeout(this.alertTimeoutPostal)},this.alertTimeoutInMs)}choosePostalNotification(e){return nt(this,null,function*(){let i=this.activateNewPostalOptIn(e);i?yield this.modalOpenConfirmPostal(e):yield this.alertConfirmPostal(e,i)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-communications-page"]],standalone:!1,decls:24,vars:20,consts:[[1,"activity-log","container"],[1,"account-detail-header","md-5"],[1,"row"],[1,"col-12"],["data-track","communication-header-desktop-label"],["data-track","communication-header-mobile-label",1,"header-mobile"],[1,"row","header-row","no-gutters","pt-md-5"],["class","col-6 col-xs-12 col-md-3 profile-listing sidebar-offcanvas","id","sidebar",4,"ngIf"],[1,"col-12","col-md-9","right-content-div","account-detail-div"],[1,"inner-section","communication-prefs"],["data-track","communication-communication-header-label",1,"communications__heading","mb-4"],[3,"save","emailAddress","phoneNumber","newsletterOptIn","phoneOptIn","showNewsletterAlert","userOptedIn","showPhoneAlert","isLoading"],[3,"communicationPreferences$","showPostalAlert","isLoading","showOptInText","save","initForm",4,"ngIf"],["class","inner-section","id","recommend",4,"ngIf"],[1,"clearfix"],[1,"col-sm-12"],["id","sidebar",1,"col-6","col-xs-12","col-md-3","profile-listing","sidebar-offcanvas"],[3,"currentPage"],[3,"save","initForm","communicationPreferences$","showPostalAlert","isLoading","showOptInText"],["id","recommend",1,"inner-section"],[1,"communications__heading"],[3,"data"],["target","_blank","data-track","communication-recommend-link",1,"btn","communications__btn","communications__btn--gradient","mt-2",3,"href"]],template:function(i,r){i&1&&(g(0,"section",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"h1",4),A(5),w(6,"translate"),h(),g(7,"h1",5),A(8),w(9,"translate"),h()()()(),ve(10,"div",6),g(11,"div",2),ae(12,U2,2,1,"div",7),g(13,"div",8)(14,"div",9)(15,"h2",10),A(16),w(17,"translate"),h(),g(18,"cp-my-profile-communication-opt-ins",11),De("save",function(p){return r.updateCommunicationSavePreferences(p)}),h(),ve(19,"hr"),ae(20,V2,1,4,"cp-my-profile-communication-postal-opt-ins",12),h(),ae(21,z2,9,10,"div",13),h(),ve(22,"div",14)(23,"div",15),h()()),i&2&&(c(5),R(" ",N(6,14,"myProfile.title")," "),c(3),R(" ",N(9,16,"dashboard.communications.title")," "),c(4),S("ngIf",!r.isHybrid),c(4),R(" ",N(17,18,"communications.title")," "),c(2),S("emailAddress",r.authService.loginDetail
1s==null?null:r.authService.loginDetails.email)("phoneNumber",r.profileService.profile.mobileNumber==null?null:r.profileService.profile.mobileNumber.number)("newsletterOptIn",r.profileService.profile.optins.newsletter)("phoneOptIn",r.profileService.profile.optins.phone)("showNewsletterAlert",r.showNewsletterAlert)("userOptedIn",r.userOptedIn)("showPhoneAlert",r.showPhoneAlert)("isLoading",r.isLoadingCommunication),c(2),S("ngIf",r.isCommunicationPreferencesEnabled),c(),S("ngIf",r.recommendationHref))},dependencies:[St,Cr,Pn,Lp,Mp,Je],encapsulation:2})}}return t})()});function W2(t,n){t&1&&(g(0,"span"),A(1),w(2,"translate"),h()),t&2&&(c(),R("",N(2,1,"termsAndConditions.iHaveRead")," "))}function H2(t,n){t&1&&(g(0,"span"),A(1),w(2,"translate"),h()),t&2&&(c(),R("",N(2,1,"termsAndConditions.iHaveReadSingle")," "))}function G2(t,n){t&1&&(g(0,"span"),A(1,", "),h())}function Y2(t,n){if(t&1&&(g(0,"span")(1,"a",25),A(2),h(),ae(3,G2,2,0,"span",21),h()),t&2){let e=n.$implicit,i=n.last;c(),S("href",qr(e.url),Zn),c(),ke(e.description),c(),S("ngIf",!i)}}function J2(t,n){if(t&1){let e=Ze();qe(0),g(1,"input",22),yi("ngModelChange",function(r){Fe(e);let o=z().$implicit,p=z();return _i(p.agreeTerms[o],r)||(p.agreeTerms[o]=r),Re(r)}),h(),g(2,"label",23),ae(3,W2,3,3,"span",21)(4,H2,3,3,"span",21)(5,Y2,4,4,"span",24),h(),Ue()}if(t&2){let e=z().$implicit,i=z();c(),S("id",qr(e))("name",qr(e)),vi("ngModel",i.agreeTerms[e]),c(),S("for",qr(e)),c(),S("ngIf",e!=="cancellation"),c(),S("ngIf",e==="cancellation"),c(),S("ngForOf",i.agreementAttachments[e])}}function $2(t,n){if(t&1&&(g(0,"div",20),ae(1,J2,6,10,"ng-container",21),h()),t&2){let e=n.$implicit,i=z();c(),S("ngIf",i.productAgreements&&(i.productAgreements[e]==null?null:i.productAgreements[e].length)>0)}}function K2(t,n){if(t&1&&(g(0,"div",15),ve(1,"cp-error-notice",26),h()),t&2){let e=z();c(),S("errorText",e.getErrorText())}}var Rp,qu=Nt(()=>{st();Di();si();yr();It();xo();Ma();st();tr();ti();Ti();It();Rp=(()=>{class t{constructor(){this.productChangeService=ye(Ql),this.subscriptionService=ye(Bi),this.router=ye(ai),this.signupService=ye(Zl),this.datePipe=ye(fn),this.translatePipe=ye(Je),this.agreementAttachments={},this.error=!1,this.loading=!1,this.agreeTermsAccepted=()=>!!this.agreeTerms.cancellation&&!!this.agreeTerms[this.productChangeService.newProduct[0].type],this.getErrorText=()=>this.translatePipe.transform("tariffDetail.productChange.confirmTariff.errorText"),this.isHybrid=()=>bi.hybridEnabled}ngOnInit(){this.productChangeService.currentProductOuid&&this.subscriptionService.getMyServiceBySubscriptionOuid(this.productChangeService.currentProductOuid).pipe(_r(1)).subscribe(e=>{this.subscription=[{type:e.service,tariffs:[this.productChangeService.formatOwnTariff(e)]}],this.address=e.address,this.subscription[0]?.tariffs[0]?.overview?.bestOption&&(this.subscription[0].tariffs[0].overview.bestOption=!1)}),this.agreeTerms={},this.productAgreementTypes=["power","gas","cancellation"],this.productAgreementTypes.forEach(e=>{this.agreeTerms[e]=!1}),this.productAgreements=this.prepareAgreements(),this.prepareAgreementAttachments()}performProductChange(){this.loading=!0,this.productChangeService.performProductChange(this.address).pipe(_r(1),Jd(()=>(this.error=!0,Gd(null)))).subscribe(e=>nt(this,null,function*(){this.loading=!1,e.status!=="ACKNOWLEDGED"?yield this.router.navigate(["/profil/vertrag-wechseln/bestaetigung"],{replaceUrl:!0}):this.error=!0}))}buildInfoText(){return this.translatePipe.transform("tariffDetail.productChange.confirmTariff.infoText",[this.subscription[0].tariffs[0].overview.displayName,this.productChangeService.newProduct[0].tariffs[0].overview.displayName,this.datePipe.transform(this.productChangeService.nextChangeDate)])}prepareAgreements(){let e=this.productChangeService.newProduct[0].type,i=["CANCELLATION_POLICY","PRIVACY_STATEMENT"],r=[];return i.forEach(o=>{let p=this.productChangeService.newProductAgreements.find(u=>u.name.includes(o));p&&r.push(p)}),{[e]:this.productChangeService.newProductAgreements.filter(o=>!i.includes(o.name)),cancellation:r}}prepareAgreementAttachments(){this.agreementAttachments.cancellation=this.productAgreements.cancellation?.map(i=>i.agreementAttachments)?.reduce((i,r)=>i.concat(r),[]);let e=this.productChangeService.newProduct[0].type;this.agreementAttachments[e]=this.productAgreements[e]?.map(i=>i.agreementAttachments)?.reduce((i,r)=>i.concat(r),[]),this.agreementAttachments[e]=this.agreementAttachments[e].filter(i=>!this.agreementAttachments.cancellation.some(r=>r.id===i.id))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-confirm-product-change-page"]],standalone:!1,decls:33,vars:25,consts:[["form","ngForm"],[1,"activity-log","container"],[1,"sub-header"],[1,"row","align-items-center"],[1,"col-12","text-left"],["ng-reflect-class-name","sub-header__heading ",1,"sub-header__heading"],[3,"data"],[1,"tariffs-list-par","product-change-confirmation","row"],[1,"col-md-5"],[3,"moreInfo","tariffSelected","selectedServices","tariffList","singleItem","hideBonus"],[1,"col-md-2","text-center"],[1,"fa","fa-chevron-right","fa-large","fa-gray","d-none","d-md-block"],[1,"fa","fa-chevron-down","fa-large","fa-gray","d-md-none"],[3,"moreInfo","tariffSelected","selectedServices","tariffList","singleItem"],["class","row no-gutters",4,"ngFor","ngForOf"],[1,"row"],[1,"col"],[1,"btn","btn-primary","btn--small","float-left",3,"click"],[1,"btn","btn-primary","btn--small","float-right",3,"click","disabled"],["class","row",4,"ngIf"],[1,"row","no-gutters"],[4,"ngIf"],["type","checkbox","value","true","required","",1,"enercity-checkbox",3,"ngModelChange","id","ngModel","name"],[1,"mb-4",3,"for"],[4,"ngFor","ngForOf"],["target","_blank",1,"enercity-checkbox__link","c-brand-purple",3,"href"],[3,"errorText"]],template:function(i,r){if(i&1){let o=Ze();g(0,"section",1)(1,"form",null,0)(3,"header",2)(4,"div",3)(5,"div",4)(6,"h2",5),A(7),w(8,"translate"),h(),ve(9,"hr"),h()()(),g(10,"h3"),A(11),w(12,"translate"),h(),g(13,"div"),ve(14,"cp-markdown",6),h(),g(15,"div",7)(16,"div",8)(17,"cp-tariff-item",9),De("moreInfo",function(u){return Fe(o),Re(r.productChangeService.onMoreInfo(u))})("tariffSelected",function(){return Fe(o),Re(null)}),h()(),g(18,"div",10),ve(19,"i",11)(20,"i",12),h(),g(21,"div",8)(22,"cp-tariff-item",13),De("moreInfo",function(u){return Fe(o),Re(r.productChangeService.onMoreInfo(u))})("tariffSelected",function(){return Fe(o),Re(null)}),h()()(),ae(23,$2,2,1,"div",14),g(24,"div",15)(25,"div",16)(26,"button",17),De("click",function(){return Fe(o),Re(r.productChangeService.onBackClick())}),A(27),w(28,"translate"),h(),g(29,"button",18),De("click",function(){return Fe(o),Re(r.performProductChange())}),A(30),w(31,"translate"),h()()(),ae(32,K2,2,1,"div",19),h()()}i&2&&(c(7),R(" ",N(8,17,"tariffDetail.productChange.heading")," "),c(4),ke(N(12,19,"tariffDetail.productChange.confirmTariff.subHeading")),c(3),S("data",r.buildInfoText()),c(3),gt("col-sm-12",r.isHybrid()),S("tariffList",r.subscription)("singleItem",!0)("hideBonus",!0),c(5),gt("col-sm-12",r.isHybrid()),S("tariffList",r.productChangeService.newProduct)("singleItem",!0),c(),S("ngForOf",r.productAgreementTypes),c(4),R(" ",N(28,21,"tariffDetail.productChange.selectTariff.back")," "),c(2),S("disabled",!r.agreeTermsAccepted()||r.loading),c(),R(" ",N(31,23,"tariffDetail.productChange.confirmTariff.submit")," "),c(2),S("ngIf",r.error))},dependencies:[hn,Ao,sa,mn,y0,kl,br,Gt,St,Lo,Cr,Hl,Je],encapsulation:2})}}return t})()});function X2(t,n){t&1&&(g(0,"div",13),ve(1,"cp-my-profile-nav",14),h()),t&2&&(c(),S("currentPage","payments"))}function Q2(t,n){if(t&1&&(g(0,"div",16),ve(1,"cp-payment-mean-card",17),h()),t&2){let e=n.$implicit;c(),S("paymentMean",e)("disableIcon",!0)}}function Z2(t,n){if(t&1&&(g(0,"div",5),ae(1,Q2,2,2,"div",15),h()),t&2){let e=z();c(),S("ngForOf",e.inactivePaymentMeans)}}function eg(t,n){t&1&&(g(0,"div",5)(1,"div",18),ve(2,"cp-icon-payment-credit-card"),g(3,"h2"),A(4),w(5,"translate"),h(),g(6,"p"),A(7),w(8,"translate"),h()()()),t&2&&(c(2),tt("inactive-payments"),c(2),R(" ",N(5,4,"myProfile.inactivePayments.noInactivePaymentsHeader")," "),c(3),R(" ",N(8,6,"myProfile.inactivePayments.noInactivePayments")," "))}var jp,Uu=Nt(()=>{st();Di();si();El();yr();st();ti();Rn();Ur();It();jp=(()=>{class t{constructor(){this.router=ye(ai),this.route=ye(xr),this.profileService=ye(vn),this.inactivePaymentMeans=[]}ngOnInit(){this.inactivePaymentMeans=this.profileService.profile.paymentMeans.filter(e=>!Co(e))}navigate(e){this.router.navigate([e],{relativeTo:this.route})}
1isHybrid(){return bi.hybridEnabled}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-inactive-payments-page"]],standalone:!1,decls:18,vars:13,consts:[[1,"activity-log","container"],[1,"row","header-row","no-gutters"],[1,"col-12","col-xs-12","col-md-6"],[1,""],[1,"col-12","col-xs-12","col-md-3","dropdown-mobile"],[1,"row"],["class","col-6 col-xs-12 col-md-3 profile-listing sidebar-offcanvas","id","sidebar",4,"ngIf"],[1,"col-12","col-md-9","right-content-div","account-detail-div","payment-details","inactive"],[1,"inner-form"],[1,"col"],["tabindex","-1",1,"payment-details__block__cta","payment-details__block__cta--left-caret",3,"click"],[3,"viewBox"],["class","row",4,"ngIf"],["id","sidebar",1,"col-6","col-xs-12","col-md-3","profile-listing","sidebar-offcanvas"],[3,"currentPage"],["class","col-12 col-md-6 mb-lg-3",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","mb-lg-3"],[3,"paymentMean","disableIcon"],[1,"col","no-inactive-payments"]],template:function(i,r){i&1&&(g(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2",3),A(4,"\xA0"),h()(),ve(5,"div",4),h(),g(6,"div",5),ae(7,X2,2,1,"div",6),g(8,"section",7)(9,"div",8)(10,"div",5)(11,"div",9)(12,"a",10),De("click",function(){return r.navigate("/profil/zahlungsart")}),ve(13,"cp-icon-ui-chevron",11),A(14),w(15,"translate"),h()()(),ae(16,Z2,2,1,"div",12)(17,eg,9,8,"div",12),h()()()()),i&2&&(c(7),S("ngIf",!r.isHybrid()),c(),gt("col-md-12",r.isHybrid()),c(),gt("hybrid",r.isHybrid()),c(4),tt("inactive-payments top"),S("viewBox","0 0 5.5 9.2"),c(),R("",N(15,11,"myProfile.inactivePayments.back")," "),c(2),S("ngIf",r.inactivePaymentMeans.length>0),c(),S("ngIf",r.inactivePaymentMeans.length===0))},dependencies:[Gt,St,ql,jl,Pn,Ep,Je],encapsulation:2})}}return t})()});var Vu=Of((S4,ic)=>{var tg=function(){"use strict";function t(x,C){return C!=null&&x instanceof C}var n;try{n=Map}catch{n=function(){}}var e;try{e=Set}catch{e=function(){}}var i;try{i=Promise}catch{i=function(){}}function r(x,C,L,v,V){typeof C=="object"&&(L=C.depth,v=C.prototype,V=C.includeNonEnumerable,C=C.circular);var O=[],G=[],k=typeof Buffer<"u";typeof C>"u"&&(C=!0),typeof L>"u"&&(L=1/0);function U($,he){if($===null)return null;if(he===0)return $;var pe,Le;if(typeof $!="object")return $;if(t($,n))pe=new n;else if(t($,e))pe=new e;else if(t($,i))pe=new i(function(_e,fe){$.then(function(xe){_e(U(xe,he-1))},function(xe){fe(U(xe,he-1))})});else if(r.__isArray($))pe=[];else if(r.__isRegExp($))pe=new RegExp($.source,_($)),$.lastIndex&&(pe.lastIndex=$.lastIndex);else if(r.__isDate($))pe=new Date($.getTime());else{if(k&&Buffer.isBuffer($))return Buffer.allocUnsafe?pe=Buffer.allocUnsafe($.length):pe=new Buffer($.length),$.copy(pe),pe;t($,Error)?pe=Object.create($):typeof v>"u"?(Le=Object.getPrototypeOf($),pe=Object.create(Le)):(pe=Object.create(v),Le=v)}if(C){var de=O.indexOf($);if(de!=-1)return G[de];O.push($),G.push(pe)}t($,n)&&$.forEach(function(_e,fe){var xe=U(fe,he-1),le=U(_e,he-1);pe.set(xe,le)}),t($,e)&&$.forEach(function(_e){var fe=U(_e,he-1);pe.add(fe)});for(var J in $){var ue;Le&&(ue=Object.getOwnPropertyDescriptor(Le,J)),!(ue&&ue.set==null)&&(pe[J]=U($[J],he-1))}if(Object.getOwnPropertySymbols)for(var Pe=Object.getOwnPropertySymbols($),J=0;J<Pe.length;J++){var D=Pe[J],B=Object.getOwnPropertyDescriptor($,D);B&&!B.enumerable&&!V||(pe[D]=U($[D],he-1),B.enumerable||Object.defineProperty(pe,D,{enumerable:!1}))}if(V)for(var ee=Object.getOwnPropertyNames($),J=0;J<ee.length;J++){var Y=ee[J],B=Object.getOwnPropertyDescriptor($,Y);B&&B.enumerable||(pe[Y]=U($[Y],he-1),Object.defineProperty(pe,Y,{enumerable:!1}))}return pe}return U(x,L)}r.clonePrototype=function(C){if(C===null)return null;var L=function(){};return L.prototype=C,new L};function o(x){return Object.prototype.toString.call(x)}r.__objToStr=o;function p(x){return typeof x=="object"&&o(x)==="[object Date]"}r.__isDate=p;function u(x){return typeof x=="object"&&o(x)==="[object Array]"}r.__isArray=u;function f(x){return typeof x=="object"&&o(x)==="[object RegExp]"}r.__isRegExp=f;function _(x){var C="";return x.global&&(C+="g"),x.ignoreCase&&(C+="i"),x.multiline&&(C+="m"),C}return r.__getRegExpFlags=_,r}();typeof ic=="object"&&ic.exports&&(ic.exports=tg)});function ng(t,n){if(t&1&&(g(0,"div",8)(1,"div",19),ve(2,"p",20),h()()),t&2){let e=z();c(2),S("innerHTML",e.subscription.address,wo)}}function rg(t,n){t&1&&(qe(0),ve(1,"cp-error-notice",21),w(2,"translate"),Ue()),t&2&&(c(),S("errorText",N(2,1,"moving.errors.noSubscription")))}function ag(t,n){if(t&1&&(g(0,"div",8),ve(1,"cp-error-notice",27),h()),t&2){let e=z(2);c(),S("errorCodeList",e.errorCodeList)("errorCodeParams",e.errorCodeParams)}}function og(t,n){t&1&&(ve(0,"cp-error-notice",29),w(1,"translate")),t&2&&S("errorText",N(1,1,"moving.errors.termination"))}function sg(t,n){t&1&&(ve(0,"cp-error-notice",29),w(1,"translate")),t&2&&S("errorText",N(1,1,"moving.errors.terminationPartial"))}function lg(t,n){if(t&1&&(g(0,"div",8),ae(1,og,2,3,"cp-error-notice",28)(2,sg,2,3,"cp-error-notice",28),h()),t&2){let e=z(2);c(),S("ngIf",e.errors.failedTerminations.length===0),c(),S("ngIf",e.errors.failedTerminations.length>0)}}function cg(t,n){if(t&1){let e=Ze();qe(0),g(1,"div",22),ve(2,"p",23),w(3,"translate"),g(4,"cp-date-fields",24,1),De("validateFunction",function(r){Fe(e);let o=z();return Re(o.dateValidation(r))}),h()(),g(6,"div",25),ve(7,"p",26),w(8,"translate"),h(),ae(9,ag,2,2,"div",6)(10,lg,3,2,"div",6),Ue()}if(t&2){let e=z();c(2),S("innerHTML",N(3,9,"moving.enterMovingDate"),wo),c(2),S("data",e.movingDate)("minDate",e.minTerminationDate())("maxDate",e.maxTerminationDate())("futureMinDate",e.minDateFuture())("required",!0),c(3),S("innerHTML",N(8,11,"moving.warning"),wo),c(2),S("ngIf",e.errors.terminationError&&e.errorCodeParams.length),c(),S("ngIf",e.errors.terminationError&&!e.errorCodeParams.length)}}function pg(t,n){t&1&&(qe(0),ve(1,"cp-error-notice",21),w(2,"translate"),Ue()),t&2&&(c(),S("errorText",N(2,1,"moving.errors.noServices")))}function dg(t,n){if(t&1&&ve(0,"cp-contract",31),t&2){let e=n.$implicit;S("contract",e)("singleService",!0)}}function ug(t,n){if(t&1&&(qe(0),ae(1,dg,1,2,"cp-contract",30),Ue()),t&2){let e=z();c(),S("ngForOf",e.subscription.services)}}var zu,ig,qp,Wu=Nt(()=>{st();Di();N0();Nl();wp();si();Yf();qa();zu=cp(Vu());Il();xo();st();Di();tr();ti();Ti();It();ig=["dateFields"];qp=(()=>{class t{constructor(){this.router=ye(ai),this.modalService=ye(ua),this.movingService=ye(ko),this.subscriptionService=ye(Bi),this.authService=ye(Un),this.meteringService=ye(au),this.configService=ye(Jl),this.dateService=ye(I0),this.movingDate=new eu,this.errors={noSubscription:!1,showErrors:!1,terminationError:!1,failedTerminations:[]},this.blockingPreriod=aa({params:()=>
1({configString:this.configService.customerPortalConfig.CUSTOMER_PORTAL_TERMINATION_BLOCKING_PERIOD}),loader:i=>nt(this,[i],function*({params:e}){return yield Sn(this.dateService.getWorkingDay(e))})}),this.blockingPreriodSmartMeter=aa({params:()=>({configString:this.configService.customerPortalConfig.CUSTOMER_PORTAL_TERMINATION_BLOCKING_PERIOD_SMART_METER}),loader:i=>nt(this,[i],function*({params:e}){return yield Sn(this.dateService.getWorkingDay(e))})}),this.latestTerminationDate=aa({params:()=>({configString:this.configService.customerPortalConfig.CUSTOMER_PORTAL_LATEST_TERMINATION_DATE}),loader:i=>nt(this,[i],function*({params:e}){return yield Sn(this.dateService.getWorkingDay(e))})}),this.latestTerminationDateSmartMeter=aa({params:()=>({configString:this.configService.customerPortalConfig.CUSTOMER_PORTAL_LATEST_TERMINATION_DATE_SMART_METER}),loader:i=>nt(this,[i],function*({params:e}){return yield Sn(this.dateService.getWorkingDay(e))})}),this.hasSmartMeter=Vi(()=>this.subscriptionMeterNumbers?.some(e=>this.meteringService.smartMeterNumbers()?.includes(e))),this.minTerminationDate=Vi(()=>this.hasSmartMeter()?this.blockingPreriodSmartMeter.value()?.date:this.blockingPreriod.value()?.date),this.maxTerminationDate=Vi(()=>this.hasSmartMeter()?this.latestTerminationDateSmartMeter.value()?.date:this.latestTerminationDate.value()?.date),this.minDateFuture=Vi(()=>Pl(Sl(new Date(this.minTerminationDate())),new Date)),this.subscriptionOuids=[],this.subscriptionMeterNumbers=[],this.billingOuids={}}ngOnInit(){this.movingService.getAddressIndex().then(e=>{let i=Number(e);this.subscriptionService.getSubscriptions().subscribe(r=>{r[i]?(this.subscription=(0,zu.default)(r[i]),this.subscription.services=this.subscription.services.filter(o=>!o.terminationDetails&&o.status!=="ABORTED"),this.subscription.services.forEach(o=>{this.subscriptionOuids.push(o.subscriptionOuid),this.subscriptionMeterNumbers.push(String(o.meterNumber)),this.billingOuids[o.subscriptionOuid]=o.billingAccountOuid})):this.errors.noSubscription=!0},()=>{console.error("Error getting subscriptions")})},()=>{this.router.navigateByUrl("/profil/meine-services")})}dateValidation(e){this.movingDate.valid=e===""}openConfirmationModal(e){return nt(this,null,function*(){this.errors.showErrors=!1,e.valid&&this.movingDate.valid?(yield this.modalService.openBottomSheet(Ip,{data:{movingData:{customerOuid:this.authService.loginDetails?.customerOuid,services:this.subscriptionOuids,billingAccountOuid:this.billingOuids,terminationDate:this.movingDate.timeStamp,terminationReason:oa.MOVINGOUT,transactionReason:Po.MOVING_OUT,contactChannel:Tl.AGENT_DECISION},subscriptions:this.subscription.services}})).result.then(r=>{r.status==="success"?this.router.navigateByUrl("/profil/bewegender-erfolg"):r.status==="error"?(this.errors.terminationError=!0,this.errorCodeParams=r.errorCodeParams,this.errorCodeList=this.errorCodeParams.map(o=>o.code),setTimeout(()=>{this.errors.failedTerminations=r.failedTerminations,this.subscription.services.forEach(o=>{this.errors.failedTerminations.filter(p=>p.subscriptionOuid===o.subscriptionOuid).length>0&&(o.failedTermination=!0)})})):r.status==="cancel"&&this.router.navigateByUrl("/profil/meine-services")},()=>{}):(this.errors.showErrors=!0,this.dateFields.validateDate())})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-moving-page"]],viewQuery:function(i,r){if(i&1&&ka(ig,7),i&2){let o;Da(o=Ba())&&(r.dateFields=o.first)}},standalone:!1,decls:26,vars:15,consts:[["movingForm","ngForm"],["dateFields",""],[1,"activity-log","container"],[1,"row","header-row"],[1,"col-12","col-xs-12","col-md-6","offset-md-3",2,"text-align","center"],[1,""],["class","row",4,"ngIf"],["novalidate",""],[1,"row"],[1,"col-12","col-lg-8"],[4,"ngIf"],["id","sidebar",1,"col-12","col-lg-4","d-md-flex","flex-lg-column","flex-lg-first"],[1,"col-12"],[1,"signup-navigation"],[1,"row","align-items-center"],[1,"col-6","text-left"],["routerLink","/profil/meine-services",1,"btn","btn-outline-secondary"],[1,"col-6","text-right"],[1,"btn","btn-primary",3,"click"],[1,"col"],[1,"text-right",3,"innerHTML"],[3,"errorText"],[1,"row","mb-3","mb-sm-4"],[1,"lead","col-12",3,"innerHTML"],[1,"col-12","col-lg-7",3,"validateFunction","data","minDate","maxDate","futureMinDate","required"],[1,"row","mb-md-2","mb-lg-3"],[1,"col-12","col-lg-7",3,"innerHTML"],[3,"errorCodeList","errorCodeParams"],["class","ml-3",3,"errorText",4,"ngIf"],[1,"ml-3",3,"errorText"],[3,"contract","singleService",4,"ngFor","ngForOf"],[3,"contract","singleService"]],template:function(i,r){if(i&1){let o=Ze();g(0,"section",2)(1,"div",3)(2,"div",4),ve(3,"h2",5),h()(),ae(4,ng,3,1,"div",6),g(5,"form",7,0)(7,"div",8)(8,"div",9),ae(9,rg,3,3,"ng-container",10)(10,cg,11,13,"ng-container",10),h(),g(11,"div",11),ae(12,pg,3,3,"ng-container",10)(13,ug,2,1,"ng-container",10),h()(),g(14,"div",8)(15,"div",12)(16,"n
1av",13)(17,"div",14)(18,"div",15)(19,"a",16),A(20),w(21,"translate"),h()(),g(22,"div",17)(23,"a",18),De("click",function(){Fe(o);let u=Lt(6);return Re(r.openConfirmationModal(u))}),A(24),w(25,"translate"),h()()()()()()()()}if(i&2){let o=Lt(6);c(4),S("ngIf",r.subscription),c(5),S("ngIf",r.errors.noSubscription),c(),S("ngIf",r.subscription),c(2),S("ngIf",r.errors.noSubscription||r.subscription&&r.subscription.services.length===0),c(),S("ngIf",r.subscription&&r.subscription.services.length>0),c(7),ke(N(21,11,"previous")),c(3),gt("btn-disabled",!(o.valid&&r.movingDate.valid))("btn-ready",o.valid&&r.movingDate.valid),c(),ke(N(25,13,"confirm"))}},dependencies:[wr,hn,mn,br,Gt,St,qn,Eo,Lo,Je],encapsulation:2})}}return t})()});function fg(t,n){t&1&&(ve(0,"cp-markdown",14),w(1,"translate")),t&2&&S("data",N(1,1,"moveProcess.moveOut.legacySignup"))}var Up,Hu=Nt(()=>{st();si();st();Di();ti();Ti();Rn();It();Up=(()=>{class t{constructor(){this.moveProcessService=ye(Kl)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-moving-success-page"]],standalone:!1,decls:21,vars:16,consts:[[1,"activity-log","container"],[1,"signup-energy-requirements","text-center"],[1,"row","justify-content-center"],[1,"col-sm-","col-lg-5"],[1,"gradient-icon"],[3,"width","height","viewBox"],[1,"c-brand-purple","text-center"],[3,"data",4,"ngIf"],[1,"signup-navigation"],[1,"row","align-items-center"],[1,"col-6","text-left"],["routerLink","/profil/meine-services",1,"btn","btn-secondary"],[1,"col-6","text-right"],[3,"hideCardShowButton","serviceType","addressIndex"],[3,"data"]],template:function(i,r){i&1&&(g(0,"section",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4),ve(5,"cp-icon-tick-circle-gradient",5),h(),g(6,"h1",6),A(7),w(8,"translate"),h(),g(9,"p"),A(10),w(11,"translate"),h(),ae(12,fg,2,3,"cp-markdown",7),h()()(),g(13,"nav",8)(14,"div",9)(15,"div",10)(16,"a",11),A(17),w(18,"translate"),h()(),g(19,"div",12),ve(20,"cp-add-service-button",13),h()()()()),i&2&&(c(5),S("width",50)("height",50)("viewBox","0 0 70 70"),c(2),R(" ",N(8,10,"moving.success.title")," "),c(3),R(" ",N(11,12,"moving.success.text")," "),c(2),S("ngIf",r.moveProcessService.isMoveOutOnly()),c(5
1),R(" ",N(18,14,"myProfile.myServices.backToContracts")," "),c(3),S("hideCardShowButton",!0)("serviceType","")("addressIndex",null))},dependencies:[wr,St,No,Cr,To,Je],encapsulation:2})}}return t})()});function mg(t,n){t&1&&(g(0,"div",11),ve(1,"cp-my-profile-nav",12),h()),t&2&&(c(),S("currentPage","my-services"))}function hg(t,n){t&1&&ve(0,"cp-contract-operation-message",8),t&2&&S("state",n)}function gg(t,n){t&1&&ve(0,"cp-contract-operation-message",9),t&2&&S("state",n)}function vg(t,n){t&1&&(qe(0),g(1,"div",13),ve(2,"cp-loading-spinner",14),w(3,"translate"),h(),Ue()),t&2&&(c(2),S("loadingText",N(3,1,"myServices.loading")))}function _g(t,n){if(t&1){let e=Ze();g(0,"button",27),De("click",function(){Fe(e);let r=z().index,o=z(2);return Re(o.movingHome(r))}),g(1,"span"),ve(2,"cp-icon-moving"),A(3),w(4,"translate"),h()()}t&2&&(c(2),tt("icon icon-moving-home my-services-page"),c(),R(" ",N(4,3,"myServices.movingHome")," "))}function yg(t,n){if(t&1&&(g(0,"div",20)(1,"span",29),A(2),w(3,"translate"),h(),A(4),h()),t&2){let e=z(2).$implicit,i=z(2);c(2),R("",N(3,2,"customer.profile.additional.mba.info"),":"),c(2),R(" ",i.mbaAdditionalInfo(e.services[0].parentBillingAccountOuid)," ")}}function bg(t,n){t&1&&ae(0,yg,5,4,"div",28),t&2&&S("cpFeatureFlag","CP.mbaInfoVisible")}function xg(t,n){if(t&1){let e=Ze();g(0,"cp-contract-card",30),De("refresh",function(){Fe(e);let r=z(3);return Re(r.load(!0))}),h()}if(t&2){let e=z().$implicit,i=z(2);S("grouped",!0)("groupedServices",e.groupedServices)("allServices",i.myServices)("billingAccounts",i.billingAccounts)}}function wg(t,n){if(t&1){let e=Ze();g(0,"cp-contract-card",32),De("refresh",function(){Fe(e);let r=z(4);return Re(r.load(!0))}),h()}if(t&2){let e=z().$implicit,i=z(3);S("service",e)("allServices",i.myServices)("billingAccounts",i.billingAccounts)}}function Cg(t,n){if(t&1&&(qe(0),ae(1,wg,1,3,"cp-contract-card",31),Ue()),t&2){let e=n.$implicit;c(),S("ngIf",(e.terminationDetails==null?null:e.terminationDetails.terminationState)!=="stateTwo")}}function Sg(t,n){t&1&&(g(0,"div",3)(1,"h5",33),A(2),w(3,"translate"),h()()),t&2&&(c(2),R(" ",N(3,1,"myServices.terminated.title")," "))}function Pg(t,n){if(t&1){let e=Ze();g(0,"div",34)(1,"cp-contract-card",35),De("refresh",function(){Fe(e);let r=z(3);return Re(r.load(!0))}),h()()}if(t&2){let e=n.$implicit,i=z(3);c(),S("service",e)("allServices",i.myServices)("billingAccounts",i.billingAccounts)}}function Ag(t,n){if(t&1&&(g(0,"div",19)(1,"div",3)(2,"div",20)(3,"h2",21),A(4),h(),ae(5,_g,5,5,"button",22),h(),ni(6,bg,1,1,"div",20),h(),g(7,"div",2)(8,"div",3)(9,"div",2),ae(10,xg,1,4,"cp-contract-card",23)(11,Cg,2,1,"ng-container",24)(12,Sg,4,3,"div",25)(13,Pg,2,3,"div",26),h()()()()),t&2){let e=n.$implicit,i=z(2);c(4),R(" ",e.address," "),c(),S("ngIf",!e.isNonComodity&&!e.isHtNt&&i.contractNotTerminated(e)&&e.moveAvailable),c(),ri(i.mbaAdditionalInfo(e.services[0].parentBillingAccountOuid)?6:-1),c(4),S("ngIf",e.groupedServices&&e.groupedServices.length>0),c(),S("ngForOf",e.individualServices),c(),S("ngIf",e.terminatedServices&&e.terminatedServices.length>0),c(),S("ngForOf",e.terminatedServices)}}function Ig(t,n){if(t&1&&(qe(0),ae(1,Ag,14,7,"div",15),g(2,"div",16)(3,"div",2)(4,"div",17),ve(5,"cp-add-service-button",18),h()()(),Ue()),t&2){let e=z();c(),S("ngForOf",e.myServices),c(4),S("square",!0)("serviceType","")("addressIndex",null)("flat",!0)}}var Vp,Gu=Nt(()=>{ti();st();Di();Ss();si();xp();yr();xo();st();ti();Cp();Ti();Rn();kp();Ur();It();Vp=(()=>{class t{constructor(){this.subscriptionsService=ye(Bi),this.router=ye(ai),this.movingService=ye(ko),this.billingAccountsService=ye(Mo),this.moveProcessService=ye(Kl),this.signupService=ye(Zl),this.featureFlagService=ye(da),this.route=ye(xr),this.document=ye(Xd),this.serviceList=Object.values(Z0),this.nonComodityServiceList=Object.values(Q0),this.terminatedServices=[],this.mbaAdditionalInfos=[],this.isLoading=!1,this.changeTariffState=aa({loader:()=>nt(this,null,function*(){return yield Sn(this.route.queryParamMap.pipe(jr(i=>i.get("change"))))})}),this.addContractState=aa({loader:()=>nt(this,null,function*(){return yield Sn(this.route.queryParamMap.pipe(jr(i=>i.get("add"))))})}),this.isHybrid=()=>bi.hybridEnabled,this.subscriptionsService.getSubscriptions()}ngOnInit(){this.load(!0)}load(e=!1){return nt(this,null,function*(){this.isLoading=!0;try{this.myServices=yield Sn(this.subscriptionsService.getSubscriptions(e)),this.billingAccounts=yield this.billingAccountsService.getBillingAccounts(e),this.mbasWithInfo(),this.processServiceGroups()}catch(i){console.error(i)}finally{this.isLoading=!1}})}showContractInfo(e){this.router.navigate(["/profil/tarif-informationen",e])}movingHome(e){let i=this.myServices[e];this.movingService.setAddressIndex(e),this.moveProcessService.resetMoveData(),this.moveProcessService.setMoveData({address:i.services[0].address,subscriptions:i.services,eosMeterReadings:[]}),this.signupService.setPageVisited("/profil/meine-services"),this.featureFlagService.isEnabled("CP.moveRework")?this.router.navigate(["/move"]):this.router.navigate(["/umzug"])}contractNotTerminated(e){return e.services.some(i=>i.terminationDate===null)}mbaAdditionalInfo(e){return this.mbaAdditionalInfos.find(i=>i.billingAccountOuid===e)?.billSubjects}navigateToCustomerService(){return nt(this,null,function*(){let e=bi.helpdeskUrl,i=this.document.defaultView.open(e,"_blank");i.opener=null})}processServiceGroups(){for(let e of this.myServices)e.isNonComodity=e.services.some(i=>i.subscriptionType===Vl.NON_COMODITY),e.moveAvailable=e.services.filter(i=>
1i.terminationDetails).length<e.services.length,e.isHtNt=e.services.some(i=>i.isHtNtMeter),e.groupedServices=e.services.filter(i=>i.billType===Yi.BILL_RAW_TYPE_GROUPED),e.individualServices=e.services.filter(i=>i.billType===Yi.BILL_RAW_TYPE_UNGROUPED),e.addService={},this.serviceList.forEach(i=>{e.addService[i]=!0}),e.services.forEach(i=>{e.addService[i.service.toLowerCase()]=!1}),e.terminatedServices=e.services.filter(i=>i.terminationDetails&&i.terminationDetails.terminationState==="stateTwo")}mbasWithInfo(){this.mbaAdditionalInfos=this.billingAccounts.filter(e=>e.state==="ACTIVE"&&e.billSubjects!==null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-my-services-page"]],standalone:!1,decls:18,vars:11,consts:[[1,"activity-log","container"],[1,"account-detail-header"],[1,"row"],[1,"col-12"],[1,"header-mobile"],[1,"row","header-row","pt-md-5"],["class","col-6 col-xs-12 col-md-3 profile-listing sidebar-offcanvas","id","sidebar",4,"ngIf"],[1,"col-12","col-md-9","right-content-div","contracts-div"],["operation","change-tariff",3,"state"],["operation","add-contract",3,"state"],[4,"ngIf"],["id","sidebar",1,"col-6","col-xs-12","col-md-3","profile-listing","sidebar-offcanvas"],[3,"currentPage"],[1,"inner-form","mb-4"],[3,"loadingText"],["class","inner-form mb-0",4,"ngFor","ngForOf"],[1,"inner-form"],[1,"col-12","col-md-6"],[3,"square","serviceType","addressIndex","flat"],[1,"inner-form","mb-0"],[1,"row","mb-4"],[1,"contract-heading","col-12","col-lg-9"],["class","btn btn-primary moving-home-button col-12 col-lg-3","tabindex","0",3,"click",4,"ngIf"],["class","col-12 col-lg-6",3,"grouped","groupedServices","allServices","billingAccounts","refresh",4,"ngIf"],[4,"ngFor","ngForOf"],["class","col-12",4,"ngIf"],["class","col-12 col-lg-6",4,"ngFor","ngForOf"],["tabindex","0",1,"btn","btn-primary","moving-home-button","col-12","col-lg-3",3,"click"],["class","row mb-4",4,"cpFeatureFlag"],[1,"c-brand-purple","pr-1"],[1,"col-12","col-lg-6",3,"refresh","grouped","groupedServices","allServices","billingAccounts"],["class","col-12 col-lg-6",3,"service","allServices","billingAccounts","refresh",4,"ngIf"],[1,"col-12","col-lg-6",3,"refresh","service","allServices","billingAccounts"],[1,"contract-heading","mb-4"],[1,"col-12","col-lg-6"],[3,"refresh","service","allServices","billingAccounts"]],template:function(i,r){if(i&1&&(g(0,"section",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"h1"),A(5),w(6,"translate"),h(),g(7,"h1",4),A(8),w(9,"translate"),h()()()(),ve(10,"div",5),g(11,"div",2),ae(12,mg,2,1,"div",6),g(13,"div",7),ni(14,hg,1,1,"cp-contract-operation-message",8),ni(15,gg,1,1,"cp-contract-operation-message",9),ae(16,vg,4,3,"ng-container",10)(17,Ig,6,5,"ng-container",10),h()()()),i&2){let o,p;c(5),R(" ",N(6,7,"myProfile.title")," "),c(3),R(" ",N(9,9,"myProfile.myServices.heading")," "),c(4),S("ngIf",!r.isHybrid()),c(2),ri((o=r.changeTariffState.value())?14:-1,o),c(),ri((p=r.addContractState.value())?15:-1,p),c(),S("ngIf",r.isLoading),c(),S("ngIf",!r.isLoading)}},dependencies:[Gt,St,Gl,No,gn,R0,tc,Np,Pn,Je],encapsulation:2})}}return t})()});function Tg(t,n){t&1&&(g(0,"div",15),ve(1,"cp-my-profile-nav",16),h()),t&2&&(c(),S("currentPage","payments"))}function Ng(t,n){t&1&&(qe(0),ve(1,"cp-loading-spinner",17),w(2,"translate"),ve(3,"div",18),Ue()),t&2&&(c(),S("loadingText",N(2,1,"myProfile.payments.loadingPayments")))}function Eg(t,n){if(t&1){let e=Ze();g(0,"div",34),De("click",function(){Fe(e);let r=z().$implicit,o=z(3);return Re(o._onPaymentMethodInfoClick(o.activePaymentMeansLinkedToSubscriptions[r.ouid]))}),A(1," i "),h()}}function Lg(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myprofile.payments.method.type.ibanoutgoing")))}function Mg(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myprofile.payments.method.type.sepa")))}function kg(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),R(" ",N(2,1,"myprofile.payments.method.usedfor.singular")," "))}function Dg(t,n){if(t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2){let e=z(2).$implicit,i=z(3);c(),R(" ",At(2,1,"myprofile.payments.method.usedfor.plural",On(4,Yu,i.getContractIds(i.activePaymentMeansLinkedToSubscriptions[e.ouid]).length))," ")}}function Bg(t,n){if(t&1&&(qe(0),ae(1,kg,3,3,"ng-container",10)(2,Dg,3,6,"ng-container",10),Ue()),t&2){let e=z().$implicit,i=z(3);c(),S("ngIf",i.getContractIds(i.activePaymentMeansLinkedToSubscriptions[e.ouid]).length===1),c(),S("ngIf",i.getContractIds(i.activePaymentMeansLinkedToSubscriptions[e.ouid]).length>1)}}function Og(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"myprofile.payments.method.usedfor.notUsed")))}function Fg(t,n){if(t&1){let e=Ze();g(0,"div",22)(1,"div",27)(2,"div",24),ae(3,Eg,2,0,"div",28),g(4,"p",29),A(5),w(6,"translate"),h(),g(7,"h4",30),ae(8,Lg,3,3,"ng-container",10)(9,Mg,3,3,"ng-container",10),h(),g(10,"p",31),A(11),h(),g(12,"p",32),ae(13,Bg,3,2,"ng-container",10)(14,Og,3,3,"ng-container",10),h(),g(15,"button",33),De("click",function(){let r=Fe(e).$implicit,o=z(3);return Re(o._onAssignButtonClick(r))}),A(16),w(17,"translate"),h()()()()}if(t&2){let e=n.$implicit,i=z(3);c(3),S("ngIf",i.activePaymentMeansLinkedToSubscriptions[e.ouid]&&i.activePaymentMeansLinkedToSubscriptions[e.ouid].length),c(2),Bn(" ",N(6,9,"myprofile.payments.method.holder"),": ",i.getAccountHolder(e)," "),c(3),S("ngIf",e.authorizedTransactionType==="CREDIT"),c(),S("ngIf",e.authorizedTransactionType!=="CREDIT"),c(2),R(" ",e.iban," "),c(2),S("ngIf",i.activePaymentMeansLinkedToSubscriptions[e.ouid]&&i.activePaymentMeansLinkedToSubscriptions[e.ouid].length),c(),S("ngIf",!i.activePaymentMeansLinkedToSubscriptions[e.ouid]||!i.activePaymentMeansLinkedToSubscriptions[e.ouid].length),c(2),R(" ",N(17,11,"myprofile.payments.method.assignTo")," ")}}function Rg(t,n){if(t&1){let e=Ze();g(0,"div",34),De("click",function(){Fe(e);let r=z(4);return Re(r._onPaymentMethodInfoClick(r.subscriptionWithoutPaymentMean))}),A(1," i "),h()}}function jg(t,n){t&1&&(g(0,"p"),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"myprofile.payments.method.usedfor.singular")," "))}function qg(t,n){if(t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2){let e=z(4);c(),R(" ",At(2,1,"myprofile.payments.method.usedfor.plural",On(4,Yu,e.getContractIds(e.subscriptionWithoutPaymentMean).length))," ")}}function Ug(t,n){if(t&1&&(g(0,"div",22)(1,"div",27)(2,"div",24),ae(3,Rg,2,0,"div",28),g(4,"h4",30),A(5),w(6,"translate"),h(),ae(7,jg,3,3,"p",10)(8,qg,3,6,"ng-container",10),h()()()),t&2){let e=z(3);c(3),S("ngIf",e.subscriptionWithoutPaymentMean),c(2),R(" ",N(6,4,"myProfile.payments.addPaymentModal.methodOptions.bt")," "),c(2),S("ngIf",e.getContractIds(e.subscriptionWithoutPaymentMean).length===1),c(),S("ngIf",e.getContractIds(e.subscriptionWithoutPaymentMean).length>1)}}function Vg(t,n){if(t&1){let e=Ze();g(0,"div",11)(1,"div",2),ae(2,Fg,18,13,"div",20)(3,Ug,9,6,"div",21),g(4,"div",22)(5,"div",23),De("click",function(){Fe(e);let r=z(2);return Re(r.openAddPaymentMethodModal())}),g(6,"div",24)(7,"div",25),ve(8,"cp-icon-add"),h(),g(9,"span",26),A(10),w(11,"translate"),h()()()()()()}if(t&2){let e=z(2);c(2),S("ngForOf",e.activePaymentMeans),c(),S("ngIf",e.subscriptionWithoutPaymentMean==null?null:e.subscriptionWithoutPaymentMean.length),c(5),tt("payments"),c(2),ke(N(11,5,"myProfile.payments.addNewPaymentMean"))}}function zg(t,n){if(t&1){let e=Ze();g(0,"div",11)(1,"div",35),ve(2,"cp-icon-payment-credit-card"),g(3,"h2",36),A(4),w(5,"translate"),h(),ve(6,"p",37),w(7,"translate"),h(),g(8,"div",2)(9,"div",3)(10,"div",38),De("click",function(){Fe(e);let r=z(2);return Re(r.openAddPaymentMethodModal())}),g(11,"div",24)(12,"div",25),ve(13,"cp-icon-add"),h(),g(14,"span",26),A(15),w(16,"translate"),h()()()()()()}t&2&&(c(2),tt("payment-methods-no-active"),c(2),R(" ",N(5,7,"myProfile.payments.noActivePaymentMethodsHeader")," "),c(2),S("innerHTML",N(7,9,"myProfile.payments.noActivePaymentMethods"),wo),c(7),tt("payments-no-active"),c(2),ke(N(16,11,"myProfile.payments.addNewPaymentMean")))}function Wg(t,n){if(t&1&&(qe(0),ae(1,Vg,12,7,"div",19)(2,zg,17,13,"div",19),Ue()),t&2){let e=z();c(),S("ngIf",e.activePaymentMeans&&e.activePaymentMeans.length||(e.subscriptionWithoutPaymentMean==null?null:e.subscriptionWithoutPaymentMean.length)),c(),S("ngIf",(!e.activePaymentMeans||!e.activePaymentMeans.length)&&!(e.subscriptionWithoutPaymentMean!=null&&e.subscriptionWithoutPaymentMean.length))}}var Yu,zp,Ju=Nt(()=>{st();Di();Ss();si();El();yr();qa();tu();Ma();st();ti();Ti();Rn();Ur();It();Yu=t=>[t];zp=(()=>{class t{constructor(){this.modalService=ye(ua),this.router=ye(ai),this.route=ye(xr),this.billingAccountsService=ye(Mo),this.addressPickerService=ye(hu),this.profileService=ye(vn),this.isLoading=!1,this.subscriptions=[],this.billingAccounts=[],this.activePaymentMeansLinkedToSubscriptions={},this.isHybrid=()=>bi.hybridEnabled}ngOnInit(){this.addressPickerService.selectedService$.pipe(jr(e=>[e.firstSubscription,...e.otherSubscriptions])).subscribe(e=>{this.subscriptions=e,this.load()})}load(e=!1){return nt(this,null,function*(){this.isLoading=!0;try{this.billingAccounts=yield this.billingAccountsService.getBillingAccounts(e),this.activePaymentMeans=this.profileService.profile?.paymentMeans.filter(i=>Co(i)),this.activePaymentMeans?.forEach(i=>
1{let r=this.billingAccounts.filter(o=>o.paymentMeanOuid===i.ouid).map(o=>o.billingAccountOuid);this.activePaymentMeansLinkedToSubscriptions[i.ouid]=this.subscriptions.filter(o=>o.statusSemantic!=="ABORTED"&&o.statusSemantic!=="TERMINATED").filter(o=>o.billType===Yi.BILL_RAW_TYPE_UNGROUPED&&o.paymentMeanOuid?o.paymentMeanOuid===i.ouid:r.includes(o.parentBillingAccountOuid))}),this.subscriptionWithoutPaymentMean=this.filterActiveSubscriptionsNotLinkedToActivePaymentMean(this.subscriptions,this.activePaymentMeansLinkedToSubscriptions)}catch(i){console.error(i)}finally{this.isLoading=!1}})}navigate(e){this.router.navigate([e],{relativeTo:this.route})}getContractIds(e){return e?e.map(i=>i.billType===Yi.BILL_RAW_TYPE_GROUPED?i.billingId:i.productSerialNumber).filter((i,r,o)=>o.indexOf(i)===r):[]}_onPaymentMethodInfoClick(e){return nt(this,null,function*(){(yield this.modalService.open(Tp,{size:"sm",windowClass:"payment-details-modal payment-details-modal--small",data:{linkedSubs:e,billingAccounts:this.billingAccounts}})).componentInstance.getData("changePaymentMethodRequest").subscribe(r=>{this.openChangePaymentMethodModal(r)})})}_onAssignButtonClick(e){return nt(this,null,function*(){let i=yield this.modalService.open(Sp,{size:"sm",windowClass:"payment-details-modal payment-details-modal--small",data:{paymentMean:e,subscriptions:this.subscriptions.filter(r=>r.statusSemantic!=="ABORTED"&&r.statusSemantic!=="TERMINATED"),billingAccounts:this.billingAccounts}});try{yield i.result,this.load(!0)}catch{}})}filterActiveSubscriptionsNotLinkedToActivePaymentMean(e,i){let r=Object.keys(i).map(o=>i[o].length?i[o]:void 0).filter(Boolean).flat().map(o=>o.subscriptionOuid);return e.filter(o=>!r.includes(o.subscriptionOuid)&&o.status==="ACTIVE")}openChangePaymentMethodModal(e){return nt(this,null,function*(){let i=yield this.modalService.open(Ps,{size:"sm",windowClass:"payment-details-modal payment-details-modal--small",data:{contract:e,billingAccounts:this.billingAccounts,subscriptions:this.subscriptions.filter(r=>r.statusSemantic!=="ABORTED"&&r.statusSemantic!=="TERMINATED")}});i.componentInstance.getData("addPaymentMethodRequest").subscribe(()=>{this.openAddPaymentMethodModal(e)});try{yield i.result,this.load(!0)}catch{}})}openAddPaymentMethodModal(e){return nt(this,null,function*(){let i=yield this.modalService.open(zl,{size:"sm",windowClass:"payment-details-modal payment-details-modal--medium",data:{contractToAssign:e,subscriptions:this.subscriptions.filter(r=>r.statusSemantic!=="ABORTED"&&r.statusSemantic!=="TERMINATED"),billingAccounts:this.billingAccounts}});try{yield i.result,this.load(!0)}catch{}})}getAccountHolder(e){return e.holder?e.holder:this.profileService.fullName}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-payments-page"]],standalone:!1,decls:24,vars:15,consts:[[1,"activity-log","container"],[1,"account-detail-header"],[1,"row"],[1,"col-12"],["data-track","payment-header-desktop-label"],["data-track","payment-header-mobile-label",1,"header-mobile"],[1,"row","header-row","no-gutters","pt-md-5"],["class","col-6 col-xs-12 col-md-3 profile-listing sidebar-offcanvas","id","sidebar",4,"ngIf"],[1,"col-12","col-md-9","right-content-div","account-detail-div","payment-details"],[1,"inner-form"],[4,"ngIf"],[1,"payment-details__block"],[1,"col"],["tabindex","-1","data-track","payment-inactive-link",1,"payment-details__block__cta",3,"click"],[3,"viewBox"],["id","sidebar",1,"col-6","col-xs-12","col-md-3","profile-listing","sidebar-offcanvas"],[3,"currentPage"],["data-track","payments-loading-spinner",3,"loadingText"],[1,"mt-3"],["class","payment-details__block",4,"ngIf"],["class","col-12 col-md-6 col-lg-4 payment-methods__card__container",4,"ngFor","ngForOf"],["class","col-12 col-md-6 col-lg-4 payment-methods__card__container",4,"ngIf"],[1,"col-12","col-md-6","col-lg-4","payment-methods__card__container"],["data-track","payment-mean-add-button",1,"payment-methods__card","payment-methods__card--add-new",3,"click"],[1,"payment-methods__card__inner"],[1,"payment-methods__card__icon"],[1,"payment-methods__card__text"],[1,"payment-methods__card"],["class","payment-methods__card__info-btn","data-track","payment-mean-info-button",3,"click",4,"ngIf"],["data-track","payment-mean-account-holder-label",1,"payment-methods__card__holder"],["data-track","payment-mean-title-label",1,"payment-methods__card__title"],["data-track","payment-mean-bank-account-label",1,"payment-methods__card__details","mb-2"],["data-track","payment-mean-linked-label",1,"payment-methods__card__details"],["data-track","payment-mean-assign-button",1,"btn","btn-purple","btn--small","payment-methods__card__button",3,"click"],["data-track","payment-mean-info-button",1,"payment-methods__card__info-btn",3,"click"],[1,"payment-methods__no-active"],["data-track","payment-mean-empty-header-label"],[3,"innerHTML"],["data-track","payment-mean-add-button",1,"payment-methods__card","payment-methods__card--add-new","payment-methods__card","payment-methods__card--add-new--wide",3,"click"]],template:function(i,r){i&1&&(g(0,"section",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"h1",4),A(5),w(6,"translate"),h(),g(7,"h1",5),A(8),w(9,"translate"),h()()()(),ve(10,"div",6),g(11,"div",2),ae(12,Tg,2,1,"div",7),g(13,"section",8)(14,"div",9),ae(15,Ng,4,3,"ng-container",10)(16,Wg,3,2,"ng-container",10),g(17,"div",11)(18,"div",2)(19,"div",12)(20,"a",13),De("click",function(){return r.navigate("/profil/zahlungsart/inactive")}),A(21),w(22,"translate"),ve(23,"cp-icon-ui-chevron",14),h()()()()()()()()),i&2&&(c(5),R(" ",N(6,9,"myProfile.title")," "),c(3),R(" ",N(9,11,"dashboard.zahlungsart.title")," "),c(4),S("ngIf",!r.isHybrid()),c(3),S("ngIf",r.isLoading),c(),S("ngIf",!r.isLoading),c(5),R(" ",N(22,13,"myProfile.payments.showInactiveMethods")," "),c(2),tt("payment-details"),S("viewB
1ox","0 0 5.5 9.2"))},dependencies:[Gt,St,gn,ql,Fl,jl,Pn,Je],encapsulation:2})}}return t})()});var Wp,$u=Nt(()=>{st();Di();st();Rn();It();Wp=(()=>{class t{constructor(){this.router=ye(ai)}goToAbschlagChange(){this.router.navigate(["/zahlungen"])}goToContractsPage(){this.router.navigate(["/profil/meine-services"])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-success-product-change-page"]],standalone:!1,decls:17,vars:18,consts:[[1,"container"],[1,"product-change-confirmation__success-screen"],[3,"viewBox"],["href","javascript:void(0);",1,"mb-1","default-link",3,"click"],[1,"btn","btn-primary","btn--small",3,"click"]],template:function(i,r){i&1&&(g(0,"section",0)(1,"div",1),ve(2,"cp-icon-balanced",2),g(3,"h1"),A(4),w(5,"translate"),h(),g(6,"div"),A(7),w(8,"translate"),g(9,"a",3),De("click",function(){return r.goToContractsPage()}),A(10),w(11,"translate"),h(),A(12),w(13,"translate"),h(),g(14,"button",4),De("click",function(){return r.goToAbschlagChange()}),A(15
1),w(16,"translate"),h()()()),i&2&&(c(2),tt("mb-3 pb-0 success-product-change-page"),S("viewBox","0 0 85 85"),c(2),ke(N(5,8,"tariffDetail.productChange.success.heading")),c(3),R(" ",N(8,10,"tariffDetail.productChange.success.info1")," "),c(3),R(" ",N(11,12,"tariffDetail.productChange.success.backToTariffs")," "),c(2),R(" ",N(13,14,"tariffDetail.productChange.success.info2")," "),c(3),R(" ",N(16,16,"tariffDetail.productChange.success.abschlagChange")," "))},dependencies:[Io,Je],encapsulation:2})}}return t})()});function Yg(t,n){t&1&&(g(0,"span"),A(1," von: "),h())}function Jg(t,n){if(t&1&&(qe(0),ae(1,Yg,2,0,"span",14),g(2,"span"),A(3),w(4,"ed4Date"),h(),Ue()),t&2){let e=z().$implicit;c(),S("ngIf",!e.offerEndDateTime),c(2),R(" ",N(4,2,e.offerStartDateTime)," ")}}function $g(t,n){if(t&1&&(g(0,"span"),A(1),w(2,"ed4Date"),h()),t&2){let e=z().$implicit;c(),R(" - ",N(2,1,e.offerEndDateTime)," ")}}function Kg(t,n){if(t&1&&(g(0,"span"),A(1),w(2,"ed4Date"),w(3,"translate"),h()),t&2){let e=z(5);c(),ke(At(3,3,"tariffDetail.pricesAtGlanceValidFrom",On(6,rc,N(2,1,e.pricingSheetValidFrom()))))}}function Xg(t,n){t&1&&(A(0),w(1,"translate")),t&2&&R(" ",N(1,1,"tariffDetail.unitPriceAggregated")," ")}function Qg(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),ni(4,Xg,2,3),h(),g(5,"td"),A(6),w(7,"ed4Currency"),h()()),t&2){let e=z(5);c(2),R(" ",N(3,6,(e.service==null?null:e.service.service)==="water"?"tariffDetail.pricePerM3":"tariffDetail.pricePerKwh")," "),c(2),ri(e.isDynamicContract()&&!e.priceSliceStartsInTheFuture()?4:-1),c(),tt(Ot("c-",e.service==null?null:e.service.service)),c(),R(" ",At(7,8,e.unitPrice(),e.unitPriceUnit())," ")}}function Zg(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"ed4Currency"),h()(),g(7,"tr")(8,"th"),A(9),w(10,"translate"),h(),g(11,"td"),A(12),w(13,"ed4Currency"),h()()),t&2){let e=z(5);c(2),R(" ",N(3,10,"tariffDetail.pricePerKwhHT")," "),c(2),tt(Ot("c-",e.service==null?null:e.service.service)),c(),R(" ",At(6,12,e.unitPriceHt(),e.unitPriceUnit())," "),c(4),R(" ",N(10,15,"tariffDetail.pricePerKwhNT")," "),c(2),tt(Ot("c-",e.service==null?null:e.service.service)),c(),R(" ",At(13,17,e.unitPriceNt(),e.unitPriceUnit())," ")}}function e5(t,n){if(t&1&&(g(0,"tr")(1,"td",36)(2,"div",37)(3,"table",27)(4,"tr")(5,"th",38),A(6),w(7,"translate"),h(),g(8,"td"),A(9),w(10,"ed4Currency"),h()(),g(11,"tr")(12,"th",38),A(13),w(14,"translate"),h(),g(15,"td"),A(16),w(17,"ed4Currency"),h()()()()()()),t&2){let e=z(6);c(6),R(" ",N(7,10,"tariffDetail.averageEpexPrice")," "),c(2),tt(Ot("c-",e.service==null?null:e.service.service," nobreak")),c(),R(" ",At(10,12,e.epexPrice(),"ct")," "),c(4),R(" ",N(14,15,"tariffDetail.otherCostComponents")," "),c(2),tt(Ot("c-",e.service==null?null:e.service.service," nobreak")),c(),R(" ",At(17,17,e.otherCostsPerUnit(),"ct")," ")}}function t5(t,n){t&1&&ae(0,e5,18,20,"tr",35),t&2&&S("cpFeatureFlag","CP.showDynamicCostDetails")}function i5(t,n){if(t&1&&(g(0,"tr")(1,"th")(2,"strong"),A(3),w(4,"translate"),h()(),g(5,"td"),A(6),w(7,"ed4Currency"),h()()),t&2){let e=z(5);c(3),ke(N(4,5,"tariffDetail.pricePerYear")),c(2),tt(Ot("c-",e.service==null?null:e.service.service)),c(),R(" ",At(7,7,e.yearlyPrice(),"eur")," ")}}function n5(t,n){t&1&&Qd(0)}function r5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"ed4Currency"),h()()),t&2){let e=z(2).wasteWaterUnitPrice,i=z(5);c(2),ke(N(3,5,"tariffInformation.wasteWaterFee")),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),R(" ",At(6,7,e/100,"eur")," ")}}function a5(t,n){if(t&1&&(g(0,"tr")(1,"th")(2,"strong"),A(3),w(4,"translate"),h(),g(5,"small",42),A(6),w(7,"translate"),h()(),g(8,"td"),A(9),w(10,"ed4Currency"),h()()),t&2){let e=z(2).wasteWaterMonthlyPrice,i=z(5);c(3),ke(N(4,6,"tariffInformation.totalFeePerMonth")),c(3),ke(At(7,8,"tariffInformation.includesUst",ra(14,Gg))),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),R(" ",At(10,11,e,"eur")," ")}}function o5(t,n){if(t&1&&(g(0,"div",40)(1,"table",27),ae(2,r5,7,10,"tr",14)(3,a5,11,15,"tr",14),h(),g(4,"div")(5,"div",28)(6,"div",41)(7,"span",30),A(8),w(9,"translate"),h()()()()()),t&2){let e=z(),i=e.wasteWaterUnitPrice,r=e.wasteWaterMonthlyPrice;c(2),S("ngIf",i),c(),S("ngIf",r),c(5),ke(N(9,3,"tariffInformation.isCommunityFee"))}}
1function s5(t,n){if(t&1&&ae(0,o5,10,5,"div",39),t&2){let e=n.isWaterService,i=n.wasteWaterUnitPrice,r=n.wasteWaterMonthlyPrice;S("ngIf",e&&(i||r))}}function l5(t,n){if(t&1&&(A(0),w(1,"translate")),t&2){let e=z(6);R(" ",At(1,1,"tariffInformation.pricesForYearlyConsumptionHTNT",mp(4,Ku,e.service==null?null:e.service.yearlyEstimateHT,e.service==null?null:e.service.yearlyEstimateNT))," ")}}function c5(t,n){if(t&1&&(A(0),w(1,"translate"),w(2,"translate")),t&2){let e=z(6);Bn(" ",At(1,2,"tariffInformation.pricesForYearlyConsumptionNoUnit",On(7,rc,e.service==null?null:e.service.yearlyEstimate))," ",N(2,5,(e.service==null?null:e.service.service)==="water"?"tariffInformation.unitM3":"tariffInformation.unitKwh")," ")}}function p5(t,n){if(t&1&&(g(0,"div",28)(1,"div",43),ni(2,l5,2,7)(3,c5,3,9),h()()),t&2){let e=z(5);c(2),ri(e.service.isHtNtMeter&&(e.service!=null&&e.service.yearlyEstimateHT)&&(e.service!=null&&e.service.yearlyEstimateNT)?2:3)}}function d5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"ed4Currency"),h()()),t&2){let e=z(2),i=z(5);c(2),ke(N(3,5,"tariffDetail.newBasicPricePerMonth")),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),R(" ",At(6,7,e.monthlyBasePrice,"eur")," ")}}function u5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"ed4Currency"),h()()),t&2){let e=z(2),i=z(5);c(2),ke(N(3,5,"tariffDetail.newPricePerYear")),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),R(" ",At(6,7,e.yearlyPrice,"eur")," ")}}function f5(t,n){if(t&1&&(g(0,"div",32)(1,"h4",25),A(2),w(3,"translate"),h(),g(4,"p",26),A(5),w(6,"translate"),w(7,"ed4Date"),h(),g(8,"table",27),ni(9,d5,7,10,"tr"),g(10,"tr")(11,"th"),A(12),w(13,"translate"),h(),g(14,"td"),A(15),w(16,"ed4Currency"),h()(),ni(17,u5,7,10,"tr"),h()()),t&2){let e=z(),i=z(5);c(2),R(" ",N(3,10,"tariffDetail.priceChange.heading")," "),c(3),Bn(" ",N(6,12,"tariffDetail.priceChange.subheading")," ",N(7,14,e.priceChangeDate)," "),c(4),ri(e.monthlyBasePrice?9:-1),c(3),ke(N(13,16,"tariffDetail.newPricePerKwh")),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),R(" ",At(16,18,e.consumptionPrice,i.service.service.toLowerCase()==="water"?"eur":"ct")," "),c(2),ri(i.isDynamicContract()?-1:17)}}function m5(t,n){t&1&&ae(0,f5,18,21,"div",44),t&2&&S("cpFeatureFlag","CP.displayPriceChange")}function h5(t,n){if(t&1&&(g(0,"div",52)(1,"div",48),A(2),h(),g(3,"div",49),A(4),h(),g(5,"div",50),A(6),h(),g(7,"div",50),A(8),h()()),t&2){let e=n.$implicit;c(2),ke(e.payoutDate),c(2),ke(e.amount),c(2),ke(e.type),c(2),ke(e.reason)}}function g5(t,n){if(t&1&&(qe(0),g(1,"div",47)(2,"div",48),A(3),w(4,"translate"),h(),g(5,"div",49),A(6),w(7,"translate"),h(),g(8,"div",50),A(9),w(10,"translate"),h(),g(11,"div",50),A(12),w(13,"translate"),h()(),ae(14,h5,9,4,"div",51),Ue()),t&2){let e=z(5).$implicit,i=z(2);c(3),R(" ",N(4,5,"tariffDetail.manualBonus.table.payoutDate")," "),c(3),R(" ",N(7,7,"tariffDetail.manualBonus.table.amount")," "),c(3),R(" ",N(10,9,"tariffDetail.manualBonus.table.type")," "),c(3),R(" ",N(13,11,"tariffDetail.manualBonus.table.reason")," "),c(2),S("ngForOf",i.getManualBonuses(e))}}function v5(t,n){if(t&1&&(g(0,"div",55)(1,"div")(2,"span",56),A(3),w(4,"translate"),h(),g(5,"span",57),A(6),h()(),g(7,"div")(8,"span",56),A(9),w(10,"translate"),h(),g(11,"span",57),A(12),h()(),g(13,"div")(14,"span",56),A(15),w(16,"translate"),h(),g(17,"span",57),A(18),h()(),g(19,"div")(20,"span",56),A(21),w(22,"translate"),h(),g(23,"span",57),A(24),h()()()),t&2){let e=n.$implicit;c(3),ke(N(4,8,"tariffDetail.manualBonus.table.payoutDate")),c(3),ke(e.payoutDate),c(3),ke(N(10,10,"tariffDetail.manualBonus.table.amount")),c(3),ke(e.amount),c(3),ke(N(16,12,"tariffDetail.manualBonus.table.type")),c(3),ke(e.type),c(3),ke(N(22,14,"tariffDetail.manualBonus.table.reason")),c(3),ke(e.reason)}}function _5(t,n){if(t&1&&(g(0,"div",53),ae(1,v5,25,16,"div",54),h()),t&2){let e=z(5).$implicit,i=z(2);c(),S("ngForOf",i.getManualBonuses(e))}}function y5(t,n){if(t&1&&ae(0,g5,15,13,"ng-container",6)(1,_5,2,1,"ng-template",null,3,Ui),t&2){let e=Lt(2),i=z(6);S("ngIf",!i.isMobile)("ngIfElse",e)}}function b5(t,n){t&1&&(g(0,"div",46),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"tariffDetail.manualBonus.table.noneExists")," "))}function x5(t,n){if(t&1&&(g(0,"div",45)(1,"h3",25),A(2),w(3,"translate"),h(),g(4,"p",26),A(5),w(6,"translate"),h(),ni(7,y5,3,2),ni(8,b5,3,3,"div",46),h()),t&2){let e,i,r=z(3).$implicit,o=z(2);c(2),R(" ",N(3,4,"tariffDetail.manualBonus.heading")," "),c(3),R(" ",N(6,6,"tariffDetail.manualBonus.subline")," "),c(2),ri(((e=o.getManualBonuses(r))==null?null:e.length)>0?7:-1),c(),ri(((i=o.getManualBonuses(r))==null?null:i.length)===0?8:-1)}}function w5(t,n){if(t&1&&(qe(0),A(1),w(2,"ed4Date"),Ue()),t&2){let e=z(5).$implicit;c(),ke(N(2,1,e.offerStartDateTime))}}function C5(t,n){if(t&1&&(qe(0),A(1),w(2,"ed4Date"),Ue()),t&2){let e=z(5).$implicit;c(),ke(N(2,1,e.commitmentStartDate))}}function S5(t,n){t&1&&(qe(0),A(1),w(2,"translate"),Ue()),t&2&&(c(),ke(N(2,1,"tariffDetail.upcoming")))}function P5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),ae(5,w5,3,3,"ng-container",14)(6,C5,3,3,"ng-container",14)(7,S5,3,3,"ng-container",14),h()()),t&2){let e=z(4).$implicit,i=z(2);c(2),R(" ",N(3,7,"tariffDetail.contractStart")," "),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),S("ngIf",e.offerStartDateTime),c(),S("ngIf",!e.offerStartDateTime&&e.commitmentStartDate),c(),S("ngIf",!e.offerStartDateTime&&!e.commitmentStartDate)}}function A5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"ed4Date"),w(7,"translate"),h()()),t&2){let e=z(4).$implicit,i=z(2);c(2),R(" ",N(3,5,"tariffDetail.priceGuarantee")," "),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),R(" ",At(7,9,"tariffDetail.priceGuaranteeDate",On(12,rc,N(6,7,e.priceGuaranteeEndDate)))," ")}}function I5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"translate"),h()()),t&2){let e=z(6);c(2),R(" ",N(3,5,"tariffDetail.powerQuality")," "),c(2),tt(Ot("c-",e.service==null?null:e.service.service)),c(),R(" ",N(6,7,"tariffDetail.greenEnergy")," ")}}function T5(t,n){t&1&&(g(0,"tr"),ve(1,"td",58),h())}function N5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"ed4Date"),h()()),t&2){let e=z(4).$implicit,i=z(2);c(2),R(" ",N(3,5,"tariffDetail.endOfContract")," "),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),R(" ",N(6,7,e.offerEndDateTime)," ")}}function E5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"translate"),h()()),t&2){let e=z(4).$implicit,i=z(2);c(2),R(" ",N(3,5,"tariffDetail.terminationPeriod.label")," "),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),R(" ",At(6,7,"tariffDetail.terminationPeriod.value",mp(10,Ku,e.terminationPeriodDuration,i.resolveDurationUnitKey(e.terminationPeriodUnit)))," ")}}
1function L5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"translate"),h()()),t&2){let e=z(6);c(2),R(" ",N(3,5,"tariffDetail.contractProlongation")," "),c(2),tt(Ot("c-",e.service==null?null:e.service.service)),c(),R(" ",N(6,7,"tariffDetail.contractProlongationLength")," ")}}function M5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"ed4Date"),h()()),t&2){let e=z(6);c(2),R(" ",N(3,5,"tariffDetail.yearlyBillDate")," "),c(2),tt(Ot("c-",e.service==null?null:e.service.service)),c(),R(" ",N(6,7,e.service==null?null:e.service.nextBillingDate)," ")}}function k5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),h()()),t&2){let e=z(4).$implicit,i=z(2);c(2),R(" ",N(3,5,"tariffDetail.discount")," "),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),ke(i.getDiscount(e))}}function D5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),h()()),t&2){let e=z(4).$implicit,i=z(2);c(2),R(" ",N(3,5,"tariffDetail.bonus")," "),c(2),tt(Ot("c-",i.service==null?null:i.service.service)),c(),ke(i.getBonus(e))}}function B5(t,n){if(t&1&&(g(0,"div",24)(1,"h3",25),A(2),w(3,"translate"),h(),g(4,"p",26),A(5),w(6,"translate"),h(),g(7,"table",27),ae(8,P5,8,9,"tr",13)(9,A5,8,14,"tr",14),g(10,"tr"),ve(11,"td",58),h(),ae(12,I5,7,9,"tr",14)(13,T5,2,0,"tr",14)(14,N5,7,9,"tr",14)(15,E5,7,13,"tr",14)(16,L5,7,9,"tr",14)(17,M5,7,9,"tr",14),g(18,"tr"),ve(19,"td",58),h(),ae(20,k5,6,7,"tr",14)(21,D5,6,7,"tr",14),h()()),t&2){let e=z(3).$implicit,i=z(2);c(2),R(" ",N(3,12,"tariffInformation.tariffDetails")," "),c(3),R(" ",At(6,14,"tariffInformation.contractDetails",On(17,rc,e.displayName))," "),c(3),S("cpFeatureFlagDisabled","CP.hideContractStartDate"),c(),S("ngIf",e.priceGuaranteeEndDate),c(3),S("ngIf",(i.service==null?null:i.service.service.toLowerCase())==="power"),c(),S("ngIf",(i.service==null?null:i.service.service.toLowerCase())==="power"),c(),S("ngIf",e.offerEndDateTime),c(),S("ngIf",e.terminationPeriodDuration&&e.terminationPeriodUnit),c(),S("ngIf",e.commitmentProlonged),c(),S("ngIf",e.offerStatus!=="PENDING_ACTIVE"),c(3),S("ngIf",i.getDiscount(e)),c(),S("ngIf",i.getBonus(e))}}function O5(t,n){if(t&1&&(g(0,"div",22)(1,"div",17)(2,"div",23)(3,"div",24)(4,"h3",25),A(5),w(6,"translate"),h(),g(7,"p",26),A(8),w(9,"translate"),ae(10,Kg,4,8,"span",14),h(),g(11,"table",27)(12,"tr")(13,"th"),A(14),w(15,"translate"),h(),g(16,"td"),A(17),w(18,"ed4Currency"),h()(),ni(19,Qg,8,11,"tr")(20,Zg,14,20),ni(21,t5,1,1,"tr"),ni(22,i5,8,10,"tr"),h(),g(23,"div",28)(24,"div",29)(25,"span",30),A(26),w(27,"translate"),h()()(),ae(28,n5,1,0,"ng-container",31)(29,s5,1,1,"ng-template",null,2,Ui),ni(31,p5,4,1,"div",28),ni(32,m5,1,1,"div",32),h(),ae(33,x5,9,8,"div",33)(34,B5,22,19,"div",34),h()()()),t&2){let e,i=Lt(30),r=z(2).$implicit,o=z(2);c(5),R(" ",N(6,18,"tariffInformation.priceOverview")," "),c(3),R(" ",N(9,20,"tariffDetail.pricesAtGlance")),c(2),S("ngIf",o.pricingSheetValidFrom()),c(4),R(" ",N(15,22,"tariffDetail.basicPricePerMonth")," "),c(2),tt(Ot("c-",o.service==null?null:o.service.service)),c(),R(" ",At(18,24,o.monthlyBasePrice(),"eur")," "),c(2),ri(!o.service.isHtNtMeter||!(r.subscriptionPrices[0].usageHT!=null&&r.subscriptionPrices[0].usageHT.unitPrice)&&!(r.subscriptionPrices[0].usageNT!=null&&r.subscriptionPrices[0].usageNT.unitPrice)?19:20),c(2),ri(o.isDynamicContract()&&!o.priceSliceStartsInTheFuture()?21:-1),c(),ri(o.isDynamicContract()?-1:22),c(4),ke(N(27,27,"tariffInformation.includeTaxes")),c(2),S("ngTemplateOutlet",i)("ngTemplateOutletContext",e0(29,Hg,(o.service==null?null:o.service.service)==="water",o.getWasteWaterUnitPrice(r),o.getWasteWaterMonthlyPrice(r))),c(3),ri(o.isDynamicContract()?-1:31),c(),ri((e=o.nextFuturePriceUpdate())?32:-1,e),c(),S("cpFeatureFlag","CP.tariffInformationBonuses"),c(),S("ngIf",(o.service==null?null:o.service.service)!=="water")}}function F5(t,n){t&1&&(g(0,"p",63),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"tariffDetail.productChange.info")," "))}function R5(t,n){t&1&&(g(0,"p",63),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"tariffDetail.productChange.infoNotPossible")," "))}
1function j5(t,n){if(t&1){let e=Ze();qe(0),g(1,"div",59)(2,"h4",60),A(3),w(4,"translate"),h(),ae(5,F5,3,3,"p",61)(6,R5,3,3,"p",61),g(7,"button",62),De("click",function(){Fe(e);let r=z(4);return Re(r.changeContractNewJourney())}),A(8),w(9,"translate"),h()(),Ue()}if(t&2){let e=z(4);c(3),R(" ",N(4,5,"tariffDetail.productChange.heading")," "),c(2),S("ngIf",!e.hasActiveTariffChange()),c(),S("ngIf",e.hasActiveTariffChange()),c(),S("disabled",e.hasActiveTariffChange()),c(),R(" ",N(9,7,"tariffDetail.productChange.buttonText")," ")}}function q5(t,n){if(t&1){let e=Ze();g(0,"div",59)(1,"h4",60),A(2),w(3,"translate"),h(),g(4,"p",63),A(5),w(6,"translate"),h(),g(7,"button",64),De("click",function(){Fe(e);let r=z(4);return Re(r._onTerminateContractClick())}),A(8),w(9,"translate"),h()()}t&2&&(c(2),R(" ",N(3,3,"tariffInformation.terminateHeading")," "),c(3),R(" ",N(6,5,"tariffInformation.terminateInfo")," "),c(3),R(" ",N(9,7,"tariffInformation.terminateButton")," "))}function U5(t,n){if(t&1&&(g(0,"div",16)(1,"div",17)(2,"h2"),A(3),h()(),g(4,"div",18)(5,"span",19),A(6),w(7,"translate"),h()()(),ae(8,O5,35,33,"div",20)(9,j5,10,9,"ng-container",14)(10,q5,10,9,"div",21)),t&2){let e=z().$implicit,i=z(2);c(2),tt(Ot("tariff-information__service c-",i.service==null?null:i.service.service)),c(),R(" ",e.displayName," "),c(3),Bn("",N(7,9,"tariffInformation.meterNo")," ",i.service==null?null:i.service.meterNumber),c(2),S("ngIf",i.service&&i.contract().isOk()),c(),S("ngIf",(i.service==null?null:i.service.service)!=="water"&&!e.offerEndDateTime&&!i.service.terminationDate),c(),S("ngIf",i.showTerminationSection(e))}}function V5(t,n){if(t&1){let e=Ze();g(0,"li",10),De("click",function(){let r=Fe(e).$implicit,o=z(2);return Re(o.offerTabClicked(r))}),g(1,"a",11)(2,"div",12),A(3),h(),ae(4,Jg,5,4,"ng-container",13)(5,$g,3,3,"span",14),h(),ae(6,U5,11,11,"ng-template",15),h()}if(t&2){let e=n.$implicit,i=n.index,r=z(2);S("id",Zd("",r.tabIdPrefix,"",i))("ngbNavItem",r.tabIdPrefix+i),c(3),ke(e.displayName),c(),S("cpFeatureFlagDisabled","CP.hideContractStartDate"),c(),S("ngIf",e.offerEndDateTime)}}function z5(t,n){if(t&1){let e=Ze();qe(0),g(1,"ul",7,1),yi("activeIdChange",function(r){Fe(e);let o=z();return _i(o.activeTabId,r)||(o.activeTabId=r),Re(r)}),ae(3,V5,7,7,"li",8),h(),ve(4,"div",9),Ue()}if(t&2){let e=Lt(2),i=z();c(),vi("activeId",i.activeTabId),S("destroyOnHide",!1),c(2),S("ngForOf",i.service==null?null:i.service.offers),c(),S("ngbNavOutlet",e)}}function W5(t,n){t&1&&ve(0,"cp-icon-charging-system-circle",71),t&2&&(tt("tariff-information-no-commodity-charging-system"),S("viewBox","0 0 24 24"))}function H5(t,n){t&1&&ve(0,"cp-icon-photovoltaic-circle",71),t&2&&(tt("tariff-information-no-commodity-photovoltaic"),S("viewBox","0 0 24 24"))}function G5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),h(),g(3,"td"),A(4),w(5,"ed4Currency"),h()()),t&2){let e=n.$implicit,i=z(2);c(2),ke(e.description),c(),tt(Ot("c-",i.service==null?null:i.service.service)),c(),R(" ",At(5,5,e.productPricing.price.taxIncludedAmount/100,e.productPricing.price.currencyCode)," ")}}function Y5(t,n){if(t&1&&(g(0,"tr")(1,"th"),A(2),w(3,"translate"),h(),g(4,"td"),A(5),w(6,"ed4Date"),h()()),t&2){let e=z(2);c(2),ke(N(3,5,"nonComodity.products.nextBillingDate.label")),c(2),tt(Ot("c-",e.service==null?null:e.service.service)),c(),ke(N(6,7,e.product.nextBillingDate))}}function J5(t,n){if(t&1&&(g(0,"div",16)(1,"div",17)(2,"div",65)(3,"div",66)(4,"h2"),A(5),w(6,"translate"),ae(7,W5,1,3,"cp-icon-charging-system-circle",67)(8,H5,1,3,"cp-icon-photovoltaic-circle",67),h(),g(9,"p"),A(10),w(11,"translate"),w(12,"translate"),ve(13,"br"),A(14),w(15,"translate"),w(16,"translate"),h(),ve(17,"hr"),g(18,"div",24)(19,"h3",25),A(20),w(21,"translate"),h(),ve(22,"p",26),g(23,"table",27),ae(24,G5,6,8,"tr",68),h()(),g(25,"div",24)(26,"h3",25),A(27),w(28,"translate"),h(),ve(29,"p",26),g(30,"table",27)(31,"tr")(32,"th"),A(33),w(34,"translate"),h(),g(35,"td"),A(36),w(37,"ed4Date"),h()(),g(38,"tr")(39,"th"),A(40),w(41,"translate"),h(),g(42,"td"),A(43),w(44,"ed4Date"),h()(),ae(45,Y5,7,9,"tr",14),h()()()()(),g(46,"div",17)(47,"h3",69),A(48),w(49,"translate"),h(),ve(50,"cp-markdown",70),w(51,"translate"),h()()),t&2){let e=z();c(4),tt(Ot("tariff-information__service c-",e.service==null?null:e.service.service)),c(),R(" ",N(6,26,"nonComodity.products.names."+e.product.name)," "),c(2),S("ngIf",e.service.service==="charging_system"),c(),S("ngIf",e.service.service==="photovoltaic"),c(2),Bn(" ",N(11,28,"nonComodity.products.priceType.label"),": ",N(12,30,"nonComodity.products.priceType."+e.product.priceType)," "),c(4),Bn(" ",N(15,32,"nonComodity.products.status.label"),": ",N(16,34,"nonComodity.products.status."+e.product.status)," "),c(6),R(" ",N(21,36,"nonComodity.productOveriew.label")," "),c(4),S("ngForOf",e.product.products),c(3),R(" ",N(28,38,"
1nonComodity.productDetails.label")," "),c(6),ke(N(34,40,"nonComodity.products.startDateTime.label")),c(2),tt(Ot("c-",e.service==null?null:e.service.service)),c(),ke(N(37,42,e.product.startDateTime)),c(4),ke(N(41,44,"nonComodity.products.endDateTime.label")),c(2),tt(Ot("c-",e.service==null?null:e.service.service)),c(),ke(N(44,46,e.product.endDateTime)),c(2),S("ngIf",e.product.priceType==="RECURRING"),c(3),R(" ",N(49,48,"nonComodity.productInformation.label")," "),c(2),S("data",N(51,50,"nonComodity.productInformation.text."+e.product.name))}}var Hg,rc,Gg,Ku,Hp,Xu=Nt(()=>{st();Di();Kf();Ss();si();Jf();Xf();Gf();qf();xp();yr();It();vu();Il();xo();Ma();st();Di();ti();la();Cp();Ti();Rn();It();Hg=(t,n,e)=>({isWaterService:t,wasteWaterUnitPrice:n,wasteWaterMonthlyPrice:e}),rc=t=>[t],Gg=()=>[0],Ku=(t,n)=>[t,n];Hp=(()=>{class t{nextFuturePriceUpdate(){let e=this.unityContractsService.nextPriceChangeDate();if(!e)return;let i=this.unityContractsService.findPriceElementAtDate(e,this.unityContractsService.basePriceSlices());if(!i?.priceValue)return;let r=this.pricePipe.transform(i?.priceValue,"euro"),o=r/Yi.MONTHS_PER_YEAR,p=this.unityContractsService.findPriceElementAtDate(e,this.unityContractsService.consumptionPriceSlices());if(!p?.priceValue)return;let u=this.pricePipe.transform(p?.priceValue,this.contract().value.realizingService==="WATER"?"euro":"cent"),f=this.contract().value?.abschlags?.[0]?.estimatedYearlyConsumption,x=this.pricePipe.transform(p?.priceValue,"euro")*f+r;return{priceChangeDate:e,monthlyBasePrice:o,consumptionPrice:u,yearlyPrice:x}}constructor(){this.route=ye(xr),this.subscriptionService=ye(Bi),this.router=ye(ai),this.terminationService=ye(Ra),this.currencyPipe=ye(Ll),this.documentService=ye($l),this.datePipe=ye(fn),this.translatePipe=ye(Je),this.featureFlagService=ye(da),this.subscriptionStateService=ye(nu),this.changeTariffStateService=ye(_u),this.unityContractsService=ye(yu),this.dynamicContractService=ye(fu),this.pricingState=ye(ru),this.pricingSheetValidFrom=this.unityContractsService.pricesValidFromDate,this.hasPriceChangeNotification=!1,this.tabIdPrefix="tariff-detail-tab-",this.isMobile=bi.hybridEnabled,this.priceChangeVisible$=new pp,this.ngOnDestroy$=new pp,this.pricePipe=ye(ec),this.numberFormat=ye(m0),this.isDynamicContract=this.dynamicContractService.isViewProductDynamic,this.contract=Vi(()=>this.unityContractsService.contractBySelectedId()),this.yearlyBasePrice=Vi(()=>this.contract().isOk()?this.pricePipe.transform(this.unityContractsService.basePriceElementByViewDate()?.priceValue,"euro"):null),this.monthlyBasePrice=Vi(()=>this.yearlyBasePrice()!=null?this.yearlyBasePrice()/Yi.MONTHS_PER_YEAR:null),this.unitPrice=Vi(()=>{if(!this.contract().isOk())return null;let e=this.unityContractsService.consumptionPriceElementByViewDate(),i=this.contract().value.realizingService==="WATER"?"euro":"cent",r=_p(e.priceValue);return this.pricePipe.transform(r,i)}),this.unitPriceHt=Vi(()=>
1{if(!this.contract().isOk())return null;let e=this.contract().value.consumptions.flatMap(i=>i.pricesElements).find(i=>i.priceType==="HT")?.priceValue;return this.pricePipe.transform(e,"cent")}),this.unitPriceNt=Vi(()=>{if(!this.contract().isOk())return null;let e=this.contract().value.consumptions.flatMap(i=>i.pricesElements).find(i=>i.priceType==="NT")?.priceValue;return this.pricePipe.transform(e,"cent")}),this.unitPriceUnit=Vi(()=>this.contract().value?.realizingService==="WATER"?"eur":"ct"),this.yearlyPrice=Vi(()=>{if(!this.contract().isOk())return null;if(this.subscriptionStateService.selectedSubscriptionHasHTNTTariff())return this.getHTNTPricePerYear(this.service.offers[0]);let e=this.unityContractsService.basePriceSlice()?.priceValue,i=this.contract().value?.abschlags?.[0]?.estimatedYearlyConsumption,r=_p(this.unityContractsService.consumptionPriceSlice()?.priceValue);return e?.taxIncludedAmount/100+i*r?.taxIncludedAmount/100}),this.epexPrice=Vi(()=>Al(this.unityContractsService.consumptionPriceSlice()?.startsAt)?void 0:this.pricingState.pricesForViewParams.value()?.averagePrice),this.otherCostsPerUnit=Vi(()=>this.isDynamicContract()?this.unitPrice()-this.epexPrice():void 0),this.priceSliceStartsInTheFuture=Vi(()=>Al(new Date(this.unityContractsService.consumptionPriceSlice()?.startsAt??new Date))),t0(()=>{if(this.contract()?.isOk()){let e=this.unityContractsService.priceSliceForEpexCalculation();if(e){let i=new Date(e?.startsAt).toISOString(),r=gp(new Date(e?.endsAt))?e?.endsAt:new Date().toISOString();this.pricingState.setViewParamsTo({startDateTime:i,endDateTime:r})}else this.pricingState.setViewParamsTo(void 0)}},{allowSignalWrites:!0})}ngOnInit(){this.handleQueryParams()}ngOnDestroy(){this.ngOnDestroy$.next(),this.ngOnDestroy$.complete()}offerTabClicked(e){this.setSelectedPriceTimeSlice(e),this.dynamicContractService.viewProduct.set(e),this.dynamicContractService.viewSubscription.set(this.service)}setSelectedPriceTimeSlice(e){if(p0(this.unityContractsService.selectedPriceSliceStartDate(),e.offerStartDateTime))return;this.unityContractsService.selectedPriceSliceStartDate.set(new Date(Number(e.offerStartDateTime)));let i=this.unityContractsService.consumptionPriceSlice();if(!Al(i?.startsAt))if(i?.endsAt){let r=gp(new Date(i.endsAt))?i.endsAt:new Date,o=Pl(vp(r,1),i.startsAt)?vp(r,1):i.startsAt;this.pricingState.setViewParamsTo({startDateTime:ws(o),endDateTime:ws(r),aggregate:"month"})}else i&&this.pricingState.setViewParamsTo({startDateTime:ws(i.startsAt),endDateTime:ws(new Date)})}changeContractNewJourney(){let e=this.subscriptionStateService.subscriptions().get(this.service.subscriptionOuid);this.changeTariffStateService.currentSubscription.set(e),this.router.navigateByUrl("/contracts/change-tariff")}loadSubscription(e){this.subscriptionService.getMyServiceBySubscriptionOuid(e).pipe(dp(this.ngOnDestroy$)).subscribe(i=>nt(this,null,function*(){this.service=i,this.setActiveTab(),yield this.loadDocuments(),this.setProductName(this.productName),this.dynamicContractService.viewProduct.set(i.offers[0]),this.dynamicContractService.viewSubscription.set(this.service),this.unityContractsService.selectedPriceSliceStartDate.set(new Date(Number(i.offers[0].offerStartDateTime)))}))}handleQueryParams(){Yd([this.route.params,this.route.queryParams]).pipe(jr(([e,i])=>({subscriptionOuid:e?.id,productName:i?.productName})),La(({subscriptionOuid:e,productName:i})=>{this.loadSubscription(e),this.setProductName(i),this.unityContractsService.selectedSubscriptionOuid.set(e)}),dp(this.ngOnDestroy$)).subscribe()}setProductName(e){this.productName=e,this.productName&&this.service&&(this.product=this.service.aggregatedProducts?.find(i=>i.name===this.productName))}setActiveTab(){let e=this.service.offers.findIndex(i=>!i.offerEndDateTime);e>=0&&(this.activeTabId=`${this.tabIdPrefix}${e}`)}getPdfTemplate(){return this.service.service===bp.gas?"pricingGas":this.service.service===bp.power?"pricingPower":""}loadDocuments(){return nt(this,null,function*(){let e=yield this.documentService.getRefreshedDocumentList();this.getPdfTemplate()&&(e.sort((r,o)=>o.dateTimeCreate-r.dateTimeCreate),this.hasPriceChangeNotification=e.some(r=>r.pdfTemplate.startsWith(Yi.DOCUMENT_TEMPLATE.PRICE_CHANGE)))})}_onTerminateContractClick(){this.terminationService.setTerminationOuid(this.service.subscriptionOuid),this.router.navigate(["/profil/service-kuendigen"])}getDiscount(e){let i=e.bonuses.find(r=>r.name.includes("_OFFER_RATE"));return i?.percentage>0?`${i.percentage}%`:""}getBonus(e){let i=e.products?.find(r=>r.name&&r.name.includes("LOYALTY"));if(i&&i.productPrices?.length){let r=i.productPrices[0].price;return this.currencyPipe.transform(Math.round(r.taxIncludedAmount),r.currencyCode,!0)}return""}getManualBonuses(e){return(e.products?.filter(r=>r.name?.includes("MANUAL_BONUS")&&r.productPrices?.some(o=>o.price.taxIncludedAmount>0))||[]).flatMap(r=>(r.productPrices?.filter(p=>p.price.taxIncludedAmount>0)||[]).map(p=>{let u=this.datePipe.transform(r.endDateTime);
1if(!r.endDateTime){let x=r.characteristics?.DEFERRED_PERIOD_NUMBER?r.characteristics.DEFERRED_PERIOD_NUMBER:"";u=this.translatePipe.transform("tariffDetail.manualBonus.table.deferredPeriod").replace(/\${days}/g,x)}let f={taxIncludedAmount:p.price.taxIncludedAmount,unit:"CENT",createdAt:p.dateTimeCreate.toString(),dutyFreeAmount:p.price.dutyFreeAmount,taxRate:p.price.taxRate},_=p.price.currencyCode==="EUR"?"euro":"cent";return{payoutDate:u,amount:this.numberFormat.transform(this.pricePipe.transform(f,_)),type:this.translatePipe.transform(`tariffDetail.manualBonus.table.${p.priceType}`),reason:this.translatePipe.transform(`tariffDetail.manualBonus.table.${r.characteristics?.REASON?.replace(/\s*/g,"")}`)}}))}getWasteWaterUnitPrice(e){let i=e.products.find(r=>r.realizingService==="WASTE_WATER"&&r.productPrices.some(o=>o.price.priceType==="USAGE"));if(i)return i.productPrices[0].price.taxIncludedAmount/1e3}getWasteWaterMonthlyPrice(e){let i=e.products.find(r=>r.realizingService==="WASTE_WATER"&&r.productPrices.some(o=>o.price.priceType==="RECURRING"));if(i)return i.productPrices[0].price.taxIncludedAmount/100}getHTNTPricePerYear(e){return this.service.yearlyEstimateHT*(parseFloat(e.subscriptionPrices[0].usageHT.unitPrice.toFixed(2))/100)+this.service.yearlyEstimateNT*(parseFloat(e.subscriptionPrices[0].usageNT.unitPrice.toFixed(2))/100)+parseFloat(((e.subscriptionPrices[0].planHTNT?.subscriptionPart??0)*12).toFixed(2))}getNewPricePerYear(e){return e.yearlyEstimate*(parseFloat(e.productPrices.newPricesAfterPriceChange?.ppKWh?.value.toFixed(2))/100)+parseFloat(e.productPrices.newPricesAfterPriceChange?.ppmBasic?.value.toFixed(2))*12}resolveDurationUnitKey(e){return this.translatePipe.transform(`tariffDetail.terminationPeriod.${e}`)}hasActiveTariffChange(){return!!this.service.offers?.find(e=>e.offerStartDateTime>new Date().getTime())}showTerminationSection(e){return this.service?.service!=="water"&&!e.offerEndDateTime&&!this.service.terminationDate&&!this.featureFlagService.isEnabled("CP.hideTerminationButton")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-tariff-information-page"]],standalone:!1,decls:7,vars:5,consts:[["nonComodityInfo",""],["nav","ngbNav"],["wasteWaterFeeInfo",""],["mobileBonuses",""],[1,"tariff-information","container"],["tabindex","0","routerLink","/profil/meine-services",1,"tariff-information__return"],[4,"ngIf","ngIfElse"],["ngbNav","",1,"nav-tabs","nav","mt-4",3,"activeIdChange","activeId","destroyOnHide"],["class","inline-flex",3,"ngbNavItem","id","click",4,"ngFor","ngForOf"],[1,"mt-2",3,"ngbNavOutlet"],[1,"inline-flex",3,"click","ngbNavItem","id"],["ngbNavLink",""],[1,"font-weight-bold"],[4,"cpFeatureFlagDisabled"],[4,"ngIf"],["ngbNavContent",""],[1,"row","mt-4"],[1,"col-12","col-md-6"],[1,"col-12","col-md-6","text-md-right"],[1,"tariff-information__meter-no"],["class","row",4,"ngIf"],["class","tariff-information__terminate",4,"ngIf"],[1,"row"],[1,"tariff-information__card"],[1,"tariff-information__table__container"],[1,"tariff-information__heading"],[1,"tariff-information__subheading"],[1,"tariff-information__table"],[1,"row","tariff-information__small"],[1,"col-12","text-right","text-xs"],[1,"tariff-information__taxes"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mt-4"],["class","tariff-information__table__container bonuses",4,"cpFeatureFlag"],["class","tariff-information__table__container",4,"ngIf"],[4,"cpFeatureFlag"],["colspan","2"],[1,"pl-3","dyn-tariff-subtable-border-left"],[1,"text-left"],["class","tariff-information__borderbox",4,"ngIf"],[1,"tariff-information__borderbox"],[1,"col-12","col-md-4","push-md-8","text-right"],[1,"tariff-information__mutet"],[1,"col-12","col-md-8","pull-md-4"],["class","mt-4",4,"cpFeatureFlag"],[1,"tariff-information__table__container","bonuses"],[1,"row","justify-content-center","mt-4"],[1,"row","text-weight-400","table-header"],[1,"col-4"],[1,"col-2"],[1,"col-3"],["class","row mt-1 table-content text-weight-100",4,"ngFor","ngForOf"],[1,"row","mt-1","table-content","text-weight-100"],[1,"mobile-bonuses"],["class","mt-3 bonus-item",4,"ngFor","ngForOf"],[1,"mt-3","bonus-item"],[1,"title"],[1,"value"],[1,"tariff-information__table__divider"],[1,"tariff-information__terminate"],[1,"tariff-information__terminate__heading"],["class","tariff-information__terminate__info",4,"ngIf"],[1,"btn","btn-primary","btn--small","btn--product-change",3,"click","disabled"],[1,"tariff-information__terminate__info"],[1,"btn","btn-primary","btn--small",3,"click"],[1,"card","p-3"],[1,"card-body"],[3,"class","viewBox",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tariff-information__heading","pb-3"],[3,"data"],[3,"viewBox"]],template:function(i,r){if(i&1&&(g(0,"div",4)(1,"a",5),A(2),w(3,"translate"),h(),ae(4,z5,5,4,"ng-container",6)(5,J5,52,52,"ng-template",null,0,Ui),h()),i&2){let o=Lt(6);c(2),ke(N(3,3,"tariffInformation.return")),c(2),S("ngIf",(r.service==null?null:r.service.subscriptionType)!=="NON_COMODITY")("ngIfElse",o)}},dependencies:[wr,Gt,St,n0,z0,H0,W0,G0,Y0,Gl,cu,Cr,q0,L0,Ll,fn,Je],encapsulation:2})}}return t})()});function K5(t,n){if(t&1&&ve(0,"cp-contract",24),t&2){let e=z();S("contract",e.subscription)("singleService",!0)}}function X5(t,n){t&1&&(g(0,"p"),A(1),w(2,"translate"),h()),t&2&&(c(),R(" ",N(2,1,"terminateService.terminationDateIntroText")," "))}function Q5(t,n){t&1&&(g(0,"span",27),ve(1,"span",28),h())}function Z5(t,n){if(t&1&&(g(0,"p"),ae(1,Q5,2,0,"span",26),A(2),w(3,"translate"),h()),t&2){let e=z(2);c(),S("ngIf",!e.isHybrid),c(),R(" ",N(3,2,"terminateService.terminationDateLoading")," ")}}function ev(t,n){if(t&1&&ae(0,Z5,4,4,"p",25),t&2){let e=z();S("ngIf",e.disableTerminationInputs)}}function tv(t,n){if(t&1){let e=Ze();qe(0),g(1,"label")(2,"input",34),De("click",function(){let r=Fe(e).$implicit,o=z(2);return Re(o.terminationReasonText!==r.value?o.selectService(r):void 0)}),h(),ve(3,"span",35),g(4,"span"),A(5),h()(),Ue()}if(t&2){let e=n.$implicit,i=n.index,r=z(2);c(2),gt("active-item",r.terminationReasonText===e.value),S("checked",r.terminationReasonText===e.value),Gi("aria-labelledby","item-"+i),c(),S("id",Ot("item-",i)),c(2),ke(e.value)}}function iv(t,n){if(t&1&&(g(0,"div",29)(1,"h2",30),A(2),w(3,"translate"),h(),g(4,"p",31),A(5),w(6,"translate"),h(),g(7,"div",32),ae(8,tv,6,7,"ng-container",33),h()()),t&2){let e=z();c(2),R(" ",N(3,3,"customerTerminationReason.title")," "),c(3),ke(N(6,5,"customerTerminationReason.instruction")),c(3),S("ngForOf",e.customerTerminationReasons)}}function nv(t,n){if(t&1&&ve(0,"cp-error-notice",36),t&2){let e=z();S("errorCodeList",e.errorCodeList)("errorCodeParams",e.errorCodeParams)}}var $5,Gp,Qu=Nt(()=>{st();Di();Nl();jf();So();wp();si();yr();It();Uf();Il();xo();st();Di();tr();ti();Ti();It();$5=()=>[0,"days"];Gp=(()=>{class t{constructor(){this.terminationService=ye(Ra),this.subscriptionService=ye(Bi),this.router=ye(ai),this.authService=ye(Un),this.datePipe=ye(fn),this.dateService=ye(uu),this.translatePipe=ye(Je),this.isHybrid=bi.hybridEnabled,this.disableTerminationInputs=!0,this.today=new Date,this.showTerminationReasons=!1,this.disableSubmitBtn=!0,this.showMenu=!0}ngOnInit(){return nt(this,null,function*(){if(!this.terminationService.getTerminationOuid()){yield this.router.navigateByUrl("/profil/meine-services");return}this.createFormAndErrors(),yield this.initData()})}isFormValid(){return!!this.formData.date.day&&!!this.formData.date.month&&!!this.formData.date.year}hasSpecialTerminationRight(){return this.subscription.productPrices.newPricesAfterPriceChange?this.subscription.productPrices.newPricesAfterPriceChange.startDateTime>new Date().getTime():!1}isTimespanForMoveTerminationWithSpecialTerminationRightTooShort(){let e=this.nextMoveSpecialTerminationDate.getTime()>this.subscription.nextPossibleTerminationDate,i=this.formData.date.timeStamp===this.subscription.nextPossibleTerminationDate;return e&&i}clearErrors(){this.terminationError=!1,this.disableSubmitBtn=!this.isFormValid()}submitTermination(){if(this.isFormValid()){let e={customerOuid:this.authService.loginDetail
1s?.customerOuid,subscriptionOuid:this.subscription.subscriptionOuid,billingAccountOuid:this.subscription.billingAccountOuid,terminationDate:this.formData.date.timeStamp,terminationReason:this.getEnumByValue(this.terminationReasonKey),transactionReason:Po.CHANGE_OF_SUPPLIER,contactChannel:Tl.AGENT_DECISION};this.terminationService.terminateSubscription(e).subscribe(i=>{i.trpcStatus==="VALIDATED"?(this.router.navigateByUrl("/profil/kuendigungsbestaetigung"),this.subscriptionService.setTerminationDate({subscriptionOuid:e.subscriptionOuid,service:this.subscription,date:e.terminationDate})):this.setErrors(i.errorCodeList)},i=>{console.error("Error terminating contract"),console.error(i),this.terminationError=!0})}}getProperTerminationDate(){let e=this.subscription.nextPossibleTerminationDate;return this.subscription.productPrices.newPricesAfterPriceChange&&this.subscription.productPrices.newPricesAfterPriceChange?.startDateTime===this.subscription.nextPossibleTerminationDate&&(e=new Date(this.subscription.nextPossibleTerminationDate).setDate(0)),e}selectService(e){this.terminationReasonText=e.value,this.terminationReasonKey=e.key,this.disableSubmitBtn=!this.isFormValid()||this.terminationReasonKey.length<1,this.showMenu=!1}initData(){return nt(this,null,function*(){this.createTerminationTranslations(),this.subscription=yield Sn(this.subscriptionService.getMyServiceBySubscriptionOuid(this.terminationService.getTerminationOuid()));let e=yield this.dateService.getNextWorkingDay(10);this.nextMoveSpecialTerminationDate=new Date(e),this.setNextPossibleTerminationDate()})}createFormAndErrors(){this.formData={date:{day:"",month:"",year:""},reason:"null",message:""},this.errorCodeList=[],this.errorCodeParams=[]}createTerminationTranslations(){bi.organisation==="q-cells"?this.customerTerminationReasons=this.getTerminationTranslationsAndShuffle(["notSpecified"]):this.customerTerminationReasons=this.getTerminationTranslationsAndShuffle(["priceAdjustmentReceived","newSupplierBetterOffer","dissatisfactionWithService","unsufficientRewardExistingCustomer","enercityImage","other","notSpecified"])}getTerminationTranslationsAndShuffle(e){let i=[];return e.forEach((r,o)=>{i.push({key:e[o],value:this.translatePipe.transform("customerTerminationReason."+e[o])})}),this.shuffleCustomerTerminationReasons(i)}setNextPossibleTerminationDate(){let e=c0(Sl(this.subscription.nextPossibleTerminationDate),"yyyy-MM-dd"),i=window.setTimeout(()=>{this.formData.date={year:e.split("-")[0],month:e.split("-")[1],day:e.split("-")[2],timeStamp:this.subscription.nextPossibleTerminationDate.toString()},this.disableTerminationInputs=!1,clearTimeout(i),this.showTerminationReasons=!0},1e3)}setErrors(e){let i=this.getProperTerminationDate();this.terminationError=!0,this.errorCodeList=e,e?.includes(Fn.TERMINATION_REQUESTED_BEFORE_NEXT_POSSIBLE_DATE)&&this.setTerminationRequestedBeforeNextPossibleDateError(i),e?.includes(Fn.TERMINATION_REQUESTED_AFTER_COMMITMENT_END_DATE)&&this.setTerminationRequestedAfterCommitmentEndDateError(i)}setTerminationRequestedBeforeNextPossibleDateError(e){this.hasSpecialTerminationRight()&&this.isTimespanForMoveTerminationWithSpecialTerminationRightTooShort()?(this.errorCodeParams.push(new Fa(Fn.TERMINATION_SPECIAL_RIGHT_MOVING_DATE_TOO_EARLY,[this.datePipe.transform(e)])),this.errorCodeList=[Fn.TERMINATION_SPECIAL_RIGHT_MOVING_DATE_TOO_EARLY]):this.errorCodeParams.push(new Fa(Fn.TERMINATION_REQUESTED_BEFORE_NEXT_POSSIBLE_DATE,[this.datePipe.transform(e)]))}setTerminationRequestedAfterCommitmentEndDateError(e){this.errorCodeParams.push(new Fa(Fn.TERMINATION_REQUESTED_AFTER_COMMITMENT_END_DATE,[this.datePipe.transform(e)]))}shuffleCustomerTerminationReasons(e){let i=e.length,r,o;for(;i;
1)o=Math.floor(Math.random()*i--),r=e[i],e[i]=e[o],e[o]=r;return e}getEnumByValue(e){let i=Object.values(oa).indexOf(e),r=Object.keys(oa)[i];return oa[r]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-terminate-contract-page"]],standalone:!1,decls:41,vars:32,consts:[["form","ngForm"],["nextTerminationDateIsRequested",""],[1,"activity-log","container"],[1,"sub-header"],[1,"row","align-items-center"],[1,"col-12","text-left"],["ng-reflect-class-name","sub-header__heading ",1,"sub-header__heading"],[1,"row"],[1,"col-12","contracts-div","cancel-contract-div"],[1,"col-12","col-md-5","data-grid"],[3,"contract","singleService",4,"ngIf"],[1,"col-12","col-md-6","right-content"],[1,"inner-section","right-content__copy"],[1,"c-brand-purple"],[1,"inner-section"],[4,"ngIf","ngIfElse"],[3,"validateFunction","data","minDate","required"],["class","inner-section right-content mb-4",4,"ngIf"],["class","ml-3",3,"errorCodeList","errorCodeParams",4,"ngIf"],[1,"signup-navigation"],[1,"col-6","text-left"],["routerLink","/profil/meine-services",1,"btn","btn-outline-secondary"],[1,"col-6","text-right"],[1,"btn","btn-primary",3,"click"],[3,"contract","singleService"],[4,"ngIf"],["class","pr-3",4,"ngIf"],[1,"pr-3"],[1,"loading-spinner--inline"],[1,"inner-section","right-content","mb-4"],[1,"c-brand-purple","mb-2"],[1,"mb-4"],[1,"radio-selection"],[4,"ngFor","ngForOf"],["type","radio","name","radio-selection",3,"click","checked"],[1,"radio-icon",3,"id"],[1,"ml-3",3,"errorCodeList","errorCodeParams"]],template:function(i,r){if(i&1){let o=Ze();g(0,"section",2)(1,"form",null,0)(3,"header",3)(4,"div",4)(5,"div",5)(6,"h2",6),A(7),w(8,"translate"),h()()()(),g(9,"div",7)(10,"div",8)(11,"div",7)(12,"div",9),ae(13,K5,1,2,"cp-contract",10),h(),g(14,"div",11)(15,"div",12)(16,"h2",13),A(17),w(18,"translate"),h(),A(19),w(20,"translate"),h(),g(21,"div",14)(22,"h2",13),A(23),w(24,"translate"),h(),ae(25,X5,3,3,"p",15)(26,ev,1,1,"ng-template",null,1,Ui),g(28,"cp-date-fields",16),De("validateFunction",function(){return Fe(o),Re(r.clearErrors())}),h()(),ae(29,iv,9,7,"div",17)(30,nv,1,2,"cp-error-notice",18),h()()()(),g(31,"nav",19)(32,"div",4)(33,"div",20)(34,"a",21),A(35),w(36,"translate"),h()(),g(37,"div",22)(38,"a",23),De("click",function(){return Fe(o),Re(r.disableSubmitBtn?void 0:r.submitTermination())}),A(39),w(40,"translate"),h()()()()()()}if(i&2){let o=Lt(27);c(7),R(" ",N(8,19,"terminateService.pageTitle")," "),c(6),S("ngIf",r.subscription),c(4),R(" ",N(18,21,"terminateService.title")," "),c(2),R(" ",N(20,23,"terminateService.description")," "),c(4),R(" ",N(24,25,"terminateService.terminationDate")," "),c(2),S("ngIf",!r.disableTerminationInputs)("ngIfElse",o),c(3),S("data",r.formData==null?null:r.formData.date)("minDate",ra(31,$5))("required",!0),c(),S("ngIf",r.showTerminationReasons),c(),S("ngIf",r.terminationError),c(5),R(" ",N(36,27,"previous")," "),c(3),gt("btn-disabled",r.disableSubmitBtn)("btn-ready",!r.disableSubmitBtn),Gi("disabled",r.disableSubmitBtn?"true":void 0),c(),R(" ",N(40,29,"confirm")," ")}},dependencies:[wr,hn,mn,br,Gt,St,qn,Eo,Lo,Je],encapsulation:2})}}return t})()});var Zu=Nt(()=>{});var e1,t1=Nt(()=>{o0();Zu();e1=Cl("Media",{web:()=>import("./chunk-4NYOWAPM.js").then(t=>new t.MediaWeb)})});var i1,n1=Nt(()=>{o0();Qf();i1=Cl("Filesystem",{web:()=>import("./chunk-Z37OA6OO.js").then(t=>new t.FilesystemWeb)})});function sc(t,n){n||(n={});var e=m1();e.p(t);var i=fv(t,n,n.dictionary?6:2,4);return mv(i,n),h1(i,i.length-4,e.d()),i}function g1(t,n){return pv(t.subarray(hv(t,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}var Ji,An,ed,ac,oc,Kp,s1,l1,c1,Xp,p1,rv,r1,Qp,Vr,jt,Sr,ma,jt,jt,jt,jt,Ts,jt,av,ov,sv,lv,Yp,nr,Jp,td,d1,cv,rr,pv,zr,As,$p,Zp,a1,Is,u1,o1,dv,f1,uv,m1,fv,h1,mv,hv,gv,vv,v1=Nt(()=>{Ji=Uint8Array,An=Uint16Array,ed=Int32Array,ac=new Ji([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),oc=new Ji([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,0,0]),Kp=new Ji([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s1=function(t,n){for(var e=new An(31),i=0;i<31;++i)e[i]=n+=1<<t[i-1];for(var r=new ed(e[30]),i=1;i<30;++i)for(var o=e[i];o<e[i+1];++o)r[o]=o-e[i]<<5|i;return{b:e,r}},l1=s1(ac,2),c1=l1.b,Xp=l1.r;c1[28]=258,Xp[258]=28;p1=s1(oc,0),rv=p1.b,r1=p1.r,Qp=new An(32768);for(jt=0;jt<32768;++jt)Vr=(jt&43690)>>1|(jt&21845)<<1,Vr=(Vr&52428)>>2|(Vr&13107)<<2,Vr=(Vr&61680)>>4|(Vr&3855)<<4,Qp[jt]=((Vr&65280)>>8|(Vr&255)<<8)>>1;Sr=function(t,n,e){for(var i=t.length,r=0,o=new An(n);r<i;++r)t[r]&&++o[t[r]-1];var p=new An(n);for(r=1;r<n;++r)p[r]=p[r-1]+o[r-1]<<1;var u;if(e){u=new An(1<<n);var f=15-n;for(r=0;r<i;++r)if(t[r])for(var _=r<<4|t[r],x=n-t[r],C=p[t[r]-1]++<<x,L=C|(1<<x)-1;C<=L;++C)u[Qp[C]>>f]=_}else for(u=new An(i),r=0;r<i;++r)t[r]&&(u[r]=Qp[p[t[r]-1]++]>>15-t[r]);return u},ma=new Ji(288);for(jt=0;jt<144;++jt)ma[jt]=8;for(jt=144;jt<256;++jt)ma[jt]=9;for(jt=256;jt<280;++jt)ma[jt]=7;for(jt=280;jt<288;++jt)ma[jt]=8;Ts=new Ji(32);for(jt=0;jt<32;++jt)Ts[jt]=5;av=Sr(ma,9,0),ov=Sr(ma,9,1),sv=Sr(Ts,5,0),lv=Sr(Ts,5,1),Yp=function(t){for(var n=t[0],e=1;e<t.length;++e)t[e]>n&&(n=t[e]);return n},nr=function(t,n,e){var i=n/8|0;return(t[i]|t[i+1]<<8)>>(n&7)&e},Jp=function(t,n){var e=n/8|0;return(t[e]|t[e+1]<<8|t[e+2]<<16)>>(n&7)},td=function(t){return(t+7)/8|0},d1=function(t,n,e){return(n==null||n<0)&&(n=0),(e==null||e>t.length)&&(e=t.length),new Ji(t.subarray(n,e))}
vendor: 4,488 bytes, line 1
1,cv=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],rr=function(t,n,e){var i=new Error(n||cv[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,rr),!e)throw i;return i},pv=function(t,n,e,i){var r=t.length,o=i?i.length:0;if(!r||n.f&&!n.l)return e||new Ji(0);var p=!e,u=p||n.i!=2,f=n.i;p&&(e=new Ji(r*3));var _=function(Oe){var Ye=e.length;if(Oe>Ye){var We=new Ji(Math.max(Ye*2,Oe));We.set(e),e=We}},x=n.f||0,C=n.p||0,L=n.b||0,v=n.l,V=n.d,O=n.m,G=n.n,k=r*8;do{if(!v){x=nr(t,C,1);var U=nr(t,C+1,3);if(C+=3,U)if(U==1)v=ov,V=lv,O=9,G=5;else if(U==2){var Le=nr(t,C,31)+257,de=nr(t,C+10,15)+4,J=Le+nr(t,C+5,31)+1;C+=14;for(var ue=new Ji(J),Pe=new Ji(19),D=0;D<de;++D)Pe[Kp[D]]=nr(t,C+D*3,7);C+=de*3;for(var B=Yp(Pe),ee=(1<<B)-1,Y=Sr(Pe,B,1),D=0;D<J;){var _e=Y[nr(t,C,ee)];C+=_e&15;var $=_e>>4;if($<16)ue[D++]=$;else{var fe=0,xe=0;for($==16?(xe=3+nr(t,C,3),C+=2,fe=ue[D-1]):$==17?(xe=3+nr(t,C,7),C+=3):$==18&&(xe=11+nr(t,C,127),C+=7);xe--;)ue[D++]=fe}}var le=ue.subarray(0,Le),Ce=ue.subarray(Le);O=Yp(le),G=Yp(Ce),v=Sr(le,O,1),V=Sr(Ce,G,1)}else rr(1);else{var $=td(C)+4,he=t[$-4]|t[$-3]<<8,pe=$+he;if(pe>r){f&&rr(0);break}u&&_(L+he),e.set(t.subarray($,pe),L),n.b=L+=he,n.p=C=pe*8,n.f=x;continue}if(C>k){f&&rr(0);break}}u&&_(L+131072);for(var Ae=(1<<O)-1,$e=(1<<G)-1,T=C;;T=C){var fe=v[Jp(t,C)&Ae],j=fe>>4;if(C+=fe&15,C>k){f&&rr(0);break}if(fe||rr(2),j<256)e[L++]=j;else if(j==256){T=C,v=null;break}else{var W=j-254;if(j>264){var D=j-257,X=ac[D];W=nr(t,C,(1<<X)-1)+c1[D],C+=X}var ne=V[Jp(t,C)&$e],ce=ne>>4;ne||rr(3),C+=ne&15;var Ce=rv[ce];if(ce>3){var X=oc[ce];Ce+=Jp(t,C)&(1<<X)-1,C+=X}if(C>k){f&&rr(0);break}u&&_(L+131072);var me=L+W;if(L<Ce){var ge=o-Ce,je=Math.min(Ce,me);for(ge+L<0&&rr(3);L<je;++L)e[L]=i[ge+L]}for(;L<me;++L)e[L]=e[L-Ce]}}n.l=v,n.p=T,n.b=L,n.f=x,v&&(x=1,n.m=O,n.d=V,n.n=G)}while(!x);return L!=e.length&&p?d1(e,0,L):e.subarray(0,L)},zr=function(t,n,e){e<<=n&7;var i=n/8|0;t[i]|=e,t[i+1]|=e>>8},As=function(t,n,e){e<<=n&7;var i=n/8|0;t[i]|=e,t[i+1]|=e>>8,t[i+2]|=e>>16},$p=function(t,n){for(var e=[],i=0;i<t.length;++i)t[i]&&e.push({s:i,f:t[i]});var r=e.length,o=e.slice();if(!r)return{t:f1,l:0};if(r==1){var p=new Ji(e[0].s+1);return p[e[0].s]=1,{t:p,l:1}}e.sort(function(pe,Le){return pe.f-Le.f}),e.push({s:-1,f:25001});var u=e[0],f=e[1],_=0,x=1,C=2;for(e[0]={s:-1,f:u.f+f.f,l:u,r:f};x!=r-1;)u=e[e[_].f<e[C].f?_++:C++],f=e[_!=x&&e[_].f<e[C].f?_++:C++],e[x++]={s:-1,f:u.f+f.f,l:u,r:f};for(var L=o[0].s,i=1;i<r;++i)o[i].s>L&&(L=o[i].s);var v=new An(L+1),V=Zp(e[x-1],v,0);if(V>n){var i=0,O=0,G=V-n,k=1<<G;for(o.sort(function(Le,de){return v[de.s]-v[Le.s]||Le.f-de.f});i<r;++i){var U=o[i].s;if(v[U]>n)O+=k-(1<<V-v[U]),v[U]=n;else break}for(O>>=G;O>0;){var $=o[i].s;v[$]<n?O-=1<<n-v[$]++-1:++i}for(;i>=0&&O;--i){var he=o[i].s;v[he]==n&&(--v[he],++O)}V=n}return{t:new Ji(v),l:V}},Zp=function(t,n,e){return t.s==-1?Math.max(Zp(t.l,n,e+1),Zp(t.r,n,e+1)):n[t.s]=e},a1=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new An(++n),i=0,r=t[0],o=1,p=function(f){e[i++]=f},u=1;u<=n;++u)if(t[u]==r&&u!=n)++o;else{if(!r&&o>2){for(;o>138;o-=138)p(32754);o>2&&(p(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(p(r),--o;o>6;o-=6)p(8304);o>2&&(p(o-3<<5|8208),o=0)}for(;o--;)p(r);o=1,r=t[u]}return{c:e.subarray(0,i),n}},Is=function(t,n){for(var e=0,i=0;i<n.length;++i)e+=t[i]*n[i];return e},u1=function(t,n,e){var i=e.length,r=td(n+2);t[r]=i&255,t[r+1]=i>>8,t[r+2]=t[r]^255,t[r+3]=t[r+1]^255;for(var o=0;o<i;++o)t[r+o+4]=e[o];return(r+4+i)*8},o1=function(t,n,e,i,r,o,p,u,f,_,x){zr(n,x++,e),++r[256];for(var C=$p(r,15),L=C.t,v=C.l,V=$p(o,15),O=V.t,G=V.l,k=a1(L),U=k.c,$=k.n,he=a1(O),pe=he.c,Le=he.n,de=new An(19),J=0;J<U.length;++J)++de[U[J]&31];for(var J=0;J<pe.length;++J)++de[pe[J]&31];for(var ue=$p(de,7),Pe=ue.t,D=ue.l,B=19;B>4&&!Pe[Kp[B-1]];--B);var ee=_+5<<3,Y=Is(r,ma)+Is(o,Ts)+p,_e=Is(r,L)+Is(o,O)+p+14+3*B+Is(de,Pe)+2*de[16]+3*de[17]+7*de[18];if(f>=0&&ee<=Y&&ee<=_e)return u1(n,x,t.subarray(f,f+_));var fe,xe,le,Ce;if(zr(n,x,1+(_e<Y)),x+=2,_e<Y){fe=Sr(L,v,0),xe=L,le=Sr(O,G,0),Ce=O;var Ae=Sr(Pe,D,0);zr(n,x,$-257),zr(n,x+5,Le-1),zr(n,x+10,B-4),x+=14;for(var J=0;J<B;++J)zr(n,x+3*J,Pe[Kp[J]]);x+=3*B;for(var $e=[U,pe],T=0;T<2;++T)for(var j=$e[T],J=0;J<j.length;++J){var W=j[J]&31;zr(n,x,Ae[W]),x+=Pe[W],W>15&&(zr(n,x,j[J]>>5&127),x+=j[J]>
1>12)}}else fe=av,xe=ma,le=sv,Ce=Ts;for(var J=0;J<u;++J){var X=i[J];if(X>255){var W=X>>18&31;As(n,x,fe[W+257]),x+=xe[W+257],W>7&&(zr(n,x,X>>23&31),x+=ac[W]);var ne=X&31;As(n,x,le[ne]),x+=Ce[ne],ne>3&&(As(n,x,X>>5&8191),x+=oc[ne])}else As(n,x,fe[X]),x+=xe[X]}return As(n,x,fe[256]),x+xe[256]},dv=new ed([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),f1=new Ji(0),uv=function(t,n,e,i,r,o){var p=o.z||t.length,u=new Ji(i+p+5*(1+Math.ceil(p/7e3))+r),f=u.subarray(i,u.length-r),_=o.l,x=(o.r||0)&7;if(n){x&&(f[0]=o.r>>3);for(var C=dv[n-1],L=C>>13,v=C&8191,V=(1<<e)-1,O=o.p||new An(32768),G=o.h||new An(V+1),k=Math.ceil(e/3),U=2*k,$=function(ut){return(t[ut]^t[ut+1]<<k^t[ut+2]<<U)&V},he=new ed(25e3),pe=new An(288),Le=new An(32),de=0,J=0,ue=o.i||0,Pe=0,D=o.w||0,B=0;ue+2<p;++ue){var ee=$(ue),Y=ue&32767,_e=G[ee];if(O[Y]=_e,G[ee]=Y,D<=ue){var fe=p-ue;if((de>7e3||Pe>24576)&&(fe>423||!_)){x=o1(t,f,0,he,pe,Le,J,Pe,B,ue-B,x),Pe=de=J=0,B=ue;for(var xe=0;xe<286;++xe)pe[xe]=0;for(var xe=0;xe<30;++xe)Le[xe]=0}var le=2,Ce=0,Ae=v,$e=Y-_e&32767;if(fe>2&&ee==$(ue-$e))for(var T=Math.min(L,fe)-1,j=Math.min(32767,ue),W=Math.min(258,fe);$e<=j&&--Ae&&Y!=_e;){if(t[ue+le]==t[ue+le-$e]){for(var X=0;X<W&&t[ue+X]==t[ue+X-$e];++X);if(X>le){if(le=X,Ce=$e,X>T)break;for(var ne=Math.min($e,X-2),ce=0,xe=0;xe<ne;++xe){var me=ue-$e+xe&32767,ge=O[me],je=me-ge&32767;je>ce&&(ce=je,_e=me)}}}Y=_e,_e=O[Y],$e+=Y-_e&32767}if(Ce){he[Pe++]=268435456|Xp[le]<<18|r1[Ce];var Oe=Xp[le]&31,Ye=r1[Ce]&31;J+=ac[Oe]+oc[Ye],++pe[257+Oe],++Le[Ye],D=ue+le,++de}else he[Pe++]=t[ue],++pe[t[ue]]}}for(ue=Math.max(ue,D);ue<p;++ue)he[Pe++]=t[ue],++pe[t[ue]];x=o1(t,f,_,he,pe,Le,J,Pe,B,ue-B,x),_||(o.r=x&7|f[x/8|0]<<3,x-=7,o.h=G,o.p=O,o.i=ue,o.w=D)}else{for(var ue=o.w||0;ue<p+_;ue+=65535){var We=ue+65535;We>=p&&(f[x/8|0]=_,We=p),x=u1(f,x+1,t.subarray(ue,We))}o.i=p}return d1(u,0,i+td(x)+r)},m1=function(){var t=1,n=0;return{p:function(e){for(var i=t,r=n,o=e.length|0,p=0;p!=o;){for(var u=Math.min(p+2655,o);p<u;++p)r+=i+=e[p];i=(i&65535)+15*(i>>16),r=(r&65535)+15*(r>>16)}t=i,n=r},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},fv=function(t,n,e,i,r){if(!r&&(r={l:1},n.dictionary)){var o=n.dictionary.subarray(-32768),p=new Ji(o.length+t.length);p.set(o),p.set(t,o.length),t=p,r.w=o.length}return uv(t,n.level==null?6:n.level,n.mem==null?r.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,i,r)},h1=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8},mv=function(t,n){var e=n.level,i=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=i<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var r=m1();r.p(n.dictionary),h1(t,2,r.d())}},hv=function(t,n){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&rr(6,"invalid zlib data"),(t[1]>>5&1)==+!n&&rr(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};gv=typeof TextDecoder<"u"&&new TextDecoder,vv=0;try{gv.decode(f1,{stream:!0}),vv=1}catch{}});function id(){ft.console&&typeof ft.console.log=="function"&&ft.console.log.apply(ft.console,arguments)}function nd(t,n,e){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){Ua(i.response,n,e)},i.onerror=function(){Xt.error("could not download file")},i.send()}function _1(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function lc(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");
1n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}function B1(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={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
10",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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],i=0;i<e.length;i++){var r=e[i].re,o=e[i].process,p=r.exec(t);p&&(n=o(p),this.r=n[0],this.g=n[1],this.b=n[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var u=this.r.toString(16),f=this.g.toString(16),_=this.b.toString(16);return u.length==1&&(u="0"+u),f.length==1&&(f="0"+f),_.length==1&&(_="0"+_),"#"+u+f+_}}function rd(t,n){var e=t[0],i=t[1],r=t[2],o=t[3];e=$i(e,i,r,o,n[0],7,-680876936),o=$i(o,e,i,r,n[1],12,-389564586),r=$i(r,o,e,i,n[2],17,606105819),i=$i(i,r,o,e,n[3],22,-1044525330),e=$i(e,i,r,o,n[4],7,-176418897),o=$i(o,e,i,r,n[5],12,1200080426),r=$i(r,o,e,i,n[6],17,-1473231341),i=$i(i,r,o,e,n[7],22,-45705983),e=$i(e,i,r,o,n[8],7,1770035416),o=$i(o,e,i,r,n[9],12,-1958414417),r=$i(r,o,e,i,n[10],17,-42063),i=$i(i,r,o,e,n[11],22,-1990404162),e=$i(e,i,r,o,n[12],7,1804603682),o=$i(o,e,i,r,n[13],12,-40341101),r=$i(r,o,e,i,n[14],17,-1502002290),e=Ki(e,i=$i(i,r,o,e,n[15],22,1236535329),r,o,n[1],5,-165796510),o=Ki(o,e,i,r,n[6],9,-1069501632),r=Ki(r,o,e,i,n[11],14,643717713),i=Ki(i,r,o,e,n[0],20,-373897302),e=Ki(e,i,r,o,n[5],5,-701558691),o=Ki(o,e,i,r,n[10],9,38016083),r=Ki(r,o,e,i,n[15],14,-660478335),i=Ki(i,r,o,e,n[4],20,-405537848),e=Ki(e,i,r,o,n[9],5,568446438),o=Ki(o,e,i,r,n[14],9,-1019803690),r=Ki(r,o,e,i,n[3],14,-187363961),i=Ki(i,r,o,e,n[8],20,1163531501),e=Ki(e,i,r,o,n[13],5,-1444681467),o=Ki(o,e,i,r,n[2],9,-51403784),r=Ki(r,o,e,i,n[7],14,1735328473),e=Xi(e,i=Ki(i,r,o,e,n[12],20,-1926607734),r,o,n[5],4,-378558),o=Xi(o,e,i,r,n[8],11,-2022574463),r=Xi(r,o,e,i,n[11],16,1839030562),i=Xi(i,r,o,e,n[14],23,-35309556),e=Xi(e,i,r,o,n[1],4,-1530992060),o=Xi(o,e,i,r,n[4],11,1272893353),r=Xi(r,o,e,i,n[7],16,-155497632),i=Xi(i,r,o,e,n[10],23,-1094730640),e=Xi(e,i,r,o,n[13],4,681279174),o=Xi(o,e,i,r,n[0],11,-358537222),r=Xi(r,o,e,i,n[3],16,-722521979),i=Xi(i,r,o,e,n[6],23,76029189),e=Xi(e,i,r,o,n[9],4,-640364487),o=Xi(o,e,i,r,n[12],11,-421815835),r=Xi(r,o,e,i,n[15],16,530742520),e=Qi(e,i=Xi(i,r,o,e,n[2],23,-995338651),r,o,n[0],6,-198630844),o=Qi(o,e,i,r,n[7],10,1126891415),r=Qi(r,o,e,i,n[14],15,-1416354905),i=Qi(i,r,o,e,n[5],21,-57434055),e=Qi(e,i,r,o,n[12],6,1700485571),o=Qi(o,e,i,r,n[3],10,-1894986606),r=Qi(r,o,e,i,n[10],15,-1051523),i=Qi(i,r,o,e,n[1],21,-2054922799),e=Qi(e,i,r,o,n[8],6,1873313359),o=Qi(o,e,i,r,n[15],10,-30611744),r=Qi(r,o,e,i,n[6],15,-1560198380),i=Qi(i,r,o,e,n[13],21,1309151649),e=Qi(e,i,r,o,n[4],6,-145523070),o=Qi(o,e,i,r,n[11],10,-1120210379),r=Qi(r,o,e,i,n[2],15,718787259),i=Qi(i,r,o,e,n[9],21,-343485551),t[0]=ga(e,t[0]),t[1]=ga(i,t[1]),t[2]=ga(r,t[2]),t[3]=ga(o,t[3])}function _c(t,n,e,i,r,o){return n=ga(ga(n,t),ga(i,o)),ga(n<<r|n>>>32-r,e)}function $i(t,n,e,i,r,o,p){return _c(n&e|~n&i,t,n,r,o,p)}function Ki(t,n,e,i,r,o,p){return _c(n&i|e&~i,t,n,r,o,p)}function Xi(t,n,e,i,r,o,p){return _c(n^e^i,t,n,r,o,p)}function Qi(t,n,e,i,r,o,p){return _c(e^(n|~i),t,n,r,o,p)}function O1(t){var n,e=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)rd(i,_v(t.substring(n-64,n)));t=t.substring(n-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)r[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(r[n>>2]|=128<<(n%4<<3),n>55)for(rd(i,r),n=0;n<16;n++)r[n]=0;return r[14]=8*e,rd(i,r),i}function _v(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}function yv(t){for(var n="",e=0;e<4;e++)n+=y1[t>>8*e+4&15]+y1[t>>8*e&15];return n}function bv(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function cd(t){return O1(t).map(bv).join("")}function ga(t,n){if(xv){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function pd(t,n){var e,i,r,o;
1if(t!==e){for(var p=(r=t,o=1+(256/t.length>>0),new Array(o+1).join(r)),u=[],f=0;f<256;f++)u[f]=f;var _=0;for(f=0;f<256;f++){var x=u[f];_=(_+x+p.charCodeAt(f))%256,u[f]=u[_],u[_]=x}e=t,i=u}else u=i;var C=n.length,L=0,v=0,V="";for(f=0;f<C;f++)v=(v+(x=u[L=(L+1)%256]))%256,u[L]=u[v],u[v]=x,p=u[(u[L]+u[v])%256],V+=String.fromCharCode(n.charCodeAt(f)^p);return V}function jo(t,n,e,i){this.v=1,this.r=2;var r=192;t.forEach(function(u){if(b1.perm!==void 0)throw new Error("Invalid permission: "+u);r+=b1[u]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA�\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var o=(n+this.padding).substr(0,32),p=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,p),this.P=-(1+(255^r)),this.encryptionKey=cd(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=pd(this.encryptionKey,this.padding)}function qo(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,i=0;i<e;i++){var r=t.charCodeAt(i);r<33||r===35||r===37||r===40||r===41||r===47||r===60||r===62||r===91||r===93||r===123||r===125||r>126?n+="#"+("0"+r.toString(16)).slice(-2):n+=t[i]}return n}function x1(t){if(Yt(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,i,r){if(r=r||!1,typeof e!="string"||typeof i!="function"||typeof r!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var o=Math.random().toString(35);return n[e][o]=[i,!!r],o},this.unsubscribe=function(e){for(var i in n)if(n[i][e])return delete n[i][e],Object.keys(n[i]).length===0&&delete n[i],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var i=Array.prototype.slice.call(arguments,1),r=[];for(var o in n[e]){var p=n[e][o];try{p[0].apply(t,i)}catch(u){ft.console&&Xt.error("jsPDF PubSub Error",u.message,u)}p[1]&&r.push(o)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function gc(t){if(!(this instanceof gc))return new gc(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function F1(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function Va(t,n,e,i,r){if(!(this instanceof Va))return new Va(t,n,e,i,r);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,F1.call(this,i,r)}function Uo(t,n,e,i,r){if(!(this instanceof Uo))return new Uo(t,n,e,i,r);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,F1.call(this,i,r)}function dt(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],r=arguments[2],o=arguments[3],p=[],u=1,f=16,_="S",x=null;Yt(t=t||{})==="object"&&(e=t.orientation,i=t.unit||i,r=t.format||r,o=t.compress||t.compressPdf||o,(x=t.encryption||null)!==null&&(x.userPassword=x.userPassword||"",x.ownerPassword=x.ownerPassword||"",x.userPermissions=x.userPermissions||[]),u=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(f=t.floatPrecision),_=t.defaultPathOperation||"S"),p=t.filters||(o===!0?["FlateEncode"]:p),i=i||"mm",e=(""+(e||"P")).toLowerCase();var C=t.putOnlyUsedFonts||!1,L={},v={internal:{},__private__:{}};v.__private__.PubSub=x1;var V="1.3",O=v.__private__.getPdfVersion=function(){return V};v.__private__.setPdfVersion=function(l){V=l};var 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.__private__.getPageFormats=function(){return G};var k=v.__private__.getPageFormat=function(l){return G[l]};r=r||"a4";var U={COMPAT:"compat",ADVANCED:"advanced"},$=U.COMPAT;function he(){this.saveGraphicsState(),H(new pt(Xe,0,0,-Xe,0,Gr()*Xe).toString()+" cm"),this.setFontSize(this.getFontSize()/Xe),_="n",$=U.ADVANCED}function pe(){this.restoreGraphicsState(),_="S",$=U.COMPAT}var Le=v.__private__.combineFontStyleAndFontWeight=function(l,b){if(l=="bold"&&b=="normal"||l=="bold"&&b==400||l=="normal"&&b=="italic"||l=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(l=b==400||b==="normal"?l==="italic"?"italic":"normal":b!=700&&b!=="bold"||l!=="normal"?(b==700?"bold":b)+""+l:"bold"),l};v.advancedAPI=function(l){var b=$===U.COMPAT;return b&&he.call(this),typeof l!="function"||(l(this),b&&pe.call(this)),this},v.compatAPI=function(l){var b=$===U.ADVANCED;return b&&pe.call(this),typeof l!="function"||(l(this),b&&he.call(this)),this},v.isAdvancedAPI=function(){return $===U.ADVANCED};var de,J=function(l){if($!==U.ADVANCED)throw new Error(l+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},ue=v.roundToPrecision=v.__private__.roundToPrecision=function(l,b){var q=n||b;if(isNaN(l)||isNaN(q))throw new Error("Invalid argument passed to
1jsPDF.roundToPrecision");return l.toFixed(q).replace(/0+$/,"")};de=v.hpf=v.__private__.hpf=typeof f=="number"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return ue(l,f)}:f==="smart"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return ue(l,l>-1&&l<1?16:5)}:function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return ue(l,16)};var Pe=v.f2=v.__private__.f2=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f2");return ue(l,2)},D=v.__private__.f3=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f3");return ue(l,3)},B=v.scale=v.__private__.scale=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.scale");return $===U.COMPAT?l*Xe:$===U.ADVANCED?l:void 0},ee=function(l){return $===U.COMPAT?Gr()-l:$===U.ADVANCED?l:void 0},Y=function(l){return B(ee(l))};v.__private__.setPrecision=v.setPrecision=function(l){typeof parseInt(l,10)=="number"&&(n=parseInt(l,10))};var _e,fe="00000000000000000000000000000000",xe=v.__private__.getFileId=function(){return fe},le=v.__private__.setFileId=function(l){return fe=l!==void 0&&/^[a-fA-F0-9]{32}$/.test(l)?l.toUpperCase():fe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),x!==null&&(Wi=new jo(x.userPermissions,x.userPassword,x.ownerPassword,fe)),fe};v.setFileId=function(l){return le(l),this},v.getFileId=function(){return xe()};var Ce=v.__private__.convertDateToPDFDate=function(l){var b=l.getTimezoneOffset(),q=b<0?"+":"-",K=Math.floor(Math.abs(b/60)),re=Math.abs(b%60),we=[q,W(K),"'",W(re),"'"].join("");return["D:",l.getFullYear(),W(l.getMonth()+1),W(l.getDate()),W(l.getHours()),W(l.getMinutes()),W(l.getSeconds()),we].join("")},Ae=v.__private__.convertPDFDateToDate=function(l){var b=parseInt(l.substr(2,4),10),q=parseInt(l.substr(6,2),10)-1,K=parseInt(l.substr(8,2),10),re=parseInt(l.substr(10,2),10),we=parseInt(l.substr(12,2),10),Me=parseInt(l.substr(14,2),10);return new Date(b,q,K,re,we,Me,0)},$e=v.__private__.setCreationDate=function(l){var b;if(l===void 0&&(l=new Date),l instanceof Date)b=Ce(l);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(l))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=l}return _e=b},T=v.__private__.getCreationDate=function(l){var b=_e;return l==="jsDate"&&(b=Ae(_e)),b};v.setCreationDate=function(l){return $e(l),this},v.getCreationDate=function(l){return T(l)};var j,W=v.__private__.padd2=function(l){return("0"+parseInt(l)).slice(-2)},X=v.__private__.padd2Hex=function(l){return("00"+(l=l.toString())).substr(l.length)},ne=0,ce=[],me=[],ge=0,je=[],Oe=[],Ye=!1,We=me,ut=function(){ne=0,ge=0,me=[],ce=[],je=[],Nr=Si(),Hn=Si()};v.__private__.setCustomOutputDestination=function(l){Ye=!0,We=l};var Se=function(l){Ye||(We=l)};v.__private__.resetCustomOutputDestination=function(){Ye=!1,We=me};var H=v.__private__.out=function(l){return l=l.toString(),ge+=l.length+1,We.push(l),We},xt=v.__private__.write=function(l){return H(arguments.length===1?l.toString():Array.prototype.join.call(arguments," "))},rt=v.__private__.getArrayBuffer=function(l){for(var b=l.length,q=new ArrayBuffer(b),K=new Uint8Array(q);b--;)K[b]=l.charCodeAt(b);return q},Be=[["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]];v.__private__.getStandardFonts=function(){return Be};var Ve=t.fontSize||16;v.__private__.setFontSize=v.setFontSize=function(l){return Ve=$===U.ADVANCED?l/Xe:l,this};var Ke,Ge=v.__private__.getFontSize=v.getFontSize=function(){return $===U.COMPAT?Ve:Ve*Xe},at=t.R2L||!1;v.__private__.setR2L=v.setR2L=function(l){return at=l,this},v.__private__.getR2L=v.getR2L=function(){return at};var vt,Pt=v.__private__.setZoomMode=function(l){var b=[void 0,null,"fullwidth","fullheight","fullpage","original"];
1if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(l))Ke=l;else if(isNaN(l)){if(b.indexOf(l)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+l+'" is not recognized.');Ke=l}else Ke=parseInt(l,10)};v.__private__.getZoomMode=function(){return Ke};var Tt,Dt=v.__private__.setPageMode=function(l){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(l)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+l+'" is not recognized.');vt=l};v.__private__.getPageMode=function(){return vt};var Wt=v.__private__.setLayoutMode=function(l){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(l)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+l+'" is not recognized.');Tt=l};v.__private__.getLayoutMode=function(){return Tt},v.__private__.setDisplayMode=v.setDisplayMode=function(l,b,q){return Pt(l),Wt(b),Dt(q),this};var mt={title:"",subject:"",author:"",keywords:"",creator:""};v.__private__.getDocumentProperty=function(l){if(Object.keys(mt).indexOf(l)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return mt[l]},v.__private__.getDocumentProperties=function(){return mt},v.__private__.setDocumentProperties=v.setProperties=v.setDocumentProperties=function(l){for(var b in mt)mt.hasOwnProperty(b)&&l[b]&&(mt[b]=l[b]);return this},v.__private__.setDocumentProperty=function(l,b){if(Object.keys(mt).indexOf(l)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return mt[l]=b};var Et,Xe,zi,Ft,Vn,$t={},ii={},lr=[],qt={},_a={},li={},zn={},Tr=null,ci=0,_t=[],Ut=new x1(v),ya=t.hotfixes||[],Ri={},cr={},pr=[],pt=function l(b,q,K,re,we,Me){if(!(this instanceof l))return new l(b,q,K,re,we,Me);isNaN(b)&&(b=1),isNaN(q)&&(q=0),isNaN(K)&&(K=0),isNaN(re)&&(re=1),isNaN(we)&&(we=0),isNaN(Me)&&(Me=0),this._matrix=[b,q,K,re,we,Me]};Object.defineProperty(pt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(pt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(pt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(pt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(pt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(pt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(pt.prototype,"a",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(pt.prototype,"b",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(pt.prototype,"c",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(pt.prototype,"d",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(pt.prototype,"e",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(pt.prototype,"f",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(pt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(pt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(pt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(pt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),pt.prototype.join=function(l){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(de).join(l)},pt.prototype.multiply=function(l){var b=l.sx*this.sx+l.shy*this.shx,q=l.sx*this.shy+l.shy*this.sy,K=l.shx*this.sx+l.sy*this.shx,re=l.shx*this.shy+l.sy*this.sy,we=l.tx*this.sx+l.ty*this.shx+this.tx,Me=l.tx*this.shy+l.ty*this.sy+this.ty;return new pt(b,q,K,re,we,Me)},pt.prototype.decompose=function(){var l=this.sx,b=this.shy,q=this.shx,K=this.sy,re=this.tx,we=this.t
1y,Me=Math.sqrt(l*l+b*b),Qe=(l/=Me)*q+(b/=Me)*K;q-=l*Qe,K-=b*Qe;var ot=Math.sqrt(q*q+K*K);return Qe/=ot,l*(K/=ot)<b*(q/=ot)&&(l=-l,b=-b,Qe=-Qe,Me=-Me),{scale:new pt(Me,0,0,ot,0,0),translate:new pt(1,0,0,1,re,we),rotate:new pt(l,b,-b,l,0,0),skew:new pt(1,0,Qe,1,0,0)}},pt.prototype.toString=function(l){return this.join(" ")},pt.prototype.inversed=function(){var l=this.sx,b=this.shy,q=this.shx,K=this.sy,re=this.tx,we=this.ty,Me=1/(l*K-b*q),Qe=K*Me,ot=-b*Me,wt=-q*Me,yt=l*Me;return new pt(Qe,ot,wt,yt,-Qe*re-wt*we,-ot*re-yt*we)},pt.prototype.applyToPoint=function(l){var b=l.x*this.sx+l.y*this.shx+this.tx,q=l.x*this.shy+l.y*this.sy+this.ty;return new ro(b,q)},pt.prototype.applyToRectangle=function(l){var b=this.applyToPoint(l),q=this.applyToPoint(new ro(l.x+l.w,l.y+l.h));return new is(b.x,b.y,q.x-b.x,q.y-b.y)},pt.prototype.clone=function(){var l=this.sx,b=this.shy,q=this.shx,K=this.sy,re=this.tx,we=this.ty;return new pt(l,b,q,K,re,we)},v.Matrix=pt;var Wn=v.matrixMult=function(l,b){return b.multiply(l)},dr=new pt(1,0,0,1,0,0);v.unitMatrix=v.identityMatrix=dr;var sn=function(l,b){if(!_a[l]){var q=(b instanceof Va?"Sh":"P")+(Object.keys(qt).length+1).toString(10);b.id=q,_a[l]=q,qt[q]=b,Ut.publish("addPattern",b)}};v.ShadingPattern=Va,v.TilingPattern=Uo,v.addShadingPattern=function(l,b){return J("addShadingPattern()"),sn(l,b),this},v.beginTilingPattern=function(l){J("beginTilingPattern()"),Js(l.boundingBox[0],l.boundingBox[1],l.boundingBox[2]-l.boundingBox[0],l.boundingBox[3]-l.boundingBox[1],l.matrix)},v.endTilingPattern=function(l,b){J("endTilingPattern()"),b.stream=Oe[j].join(` 2`),sn(l,b),Ut.publish("endTilingPattern",b),pr.pop().restore()};var Ni=v.__private__.newObject=function(){var l=Si();return yn(l,!0),l},Si=v.__private__.newObjectDeferred=function(){return ne++,ce[ne]=function(){return ge},ne},yn=function(l,b){return b=typeof b=="boolean"&&b,ce[l]=ge,b&&H(l+" 0 obj"),l},Ha=v.__private__.newAdditionalObject=function(){var l={objId:Si(),content:""};return je.push(l),l},Nr=Si(),Hn=Si(),Gn=v.__private__.decodeColorString=function(l){var b=l.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length===5&&(b[4]==="k"||b[4]==="K")&&(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var q=parseFloat(b[0]);b=[q,q,q,"r"]}for(var K="#",re=0;re<3;re++)K+=("0"+Math.floor(255*parseFloat(b[re])).toString(16)).slice(-2);return K},Yn=v.__private__.encodeColorString=function(l){var b;typeof l=="string"&&(l={ch1:l});var q=l.ch1,K=l.ch2,re=l.ch3,we=l.ch4,Me=l.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof q=="string"&&q.charAt(0)!=="#"){var Qe=new B1(q);if(Qe.ok)q=Qe.toHex();else if(!/^\d*\.?\d*$/.test(q))throw new Error('Invalid color "'+q+'" passed to jsPDF.encodeColorString.')}if(typeof q=="string"&&/^#[0-9A-Fa-f]{3}$/.test(q)&&(q="#"+q[1]+q[1]+q[2]+q[2]+q[3]+q[3]),typeof q=="string"&&/^#[0-9A-Fa-f]{6}$/.test(q)){var ot=parseInt(q.substr(1),16);q=ot>>16&255,K=ot>>8&255,re=255&ot}if(K===void 0||we===void 0&&q===K&&K===re)if(typeof q=="string")b=q+" "+Me[0];else switch(l.precision){case 2:b=Pe(q/255)+" "+Me[0];break;case 3:default:b=D(q/255)+" "+Me[0]}else if(we===void 0||Yt(we)==="object"){if(we&&!isNaN(we.a)&&we.a===0)return b=["1.","1.","1.",Me[1]].join(" ");if(typeof q=="string")b=[q,K,re,Me[1]].join(" ");else switch(l.precision){case 2:b=[Pe(q/255),Pe(K/255),Pe(re/255),Me[1]].join(" ");break;default:case 3:b=[D(q/255),D(K/255),D(re/255),Me[1]].join(" ")}}else if(typeof q=="string")b=[q,K,re,we,Me[2]].join(" ");else switch(l.precision){case 2:b=[Pe(q),Pe(K),Pe(re),Pe(we),Me[2]].join(" ");break;case 3:default:b=[D(q),D(K),D(re),D(we),Me[2]].join(" ")}return b},ur=v.__private__.getFilters=function(){return p},In=v.__private__.putStream=function(l){var b=(l=l||{}).data||"",q=l.filters||ur(),K=l.alreadyAppliedFilters||[],re=l.addLength1||!1,we=b.length,Me=l.objectId,Qe=function(Hi){return Hi};if(x!==null&&Me===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");x!==null&&(Qe=Wi.encryptor(Me,0));var ot={};q===!0&&(q=["FlateEncode"]);var wt=l.additionalKeyValues||[],yt=(ot=dt.API.processDataByFilters!==void 0?dt.API.processDataByFilters(b,q):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(K)?K.join(" "):K.toString());if(ot.data.length!==0&&(wt.push({key:"Length",value:ot.data.length}),re===!0&&wt.push({key:"Length1",value:we})),yt.length!=0)if(yt.split("/").length-1==1)wt.push({key:"Filter",value:yt});else{wt.push({key:"Filter",value:"["+yt+"]"});for(var kt=0;kt<wt.length;kt+=1)if(wt[kt].key==="DecodeParms"){for(var oi=[],pi=0;pi<ot.reverseChain.split("/").length-1;pi+=1)oi.push("null");oi.push(wt[kt].value),wt[kt].value="["+oi.join(" ")+"]"}}H("<<");for(var Pi=0;Pi<wt.length;Pi++)H("/"+wt[Pi].key+" "+wt[Pi].value);H(">>"),ot.data.length!==0&&(H("stream"),H(Qe(ot.data)),H("endstream"))},fr=v.__private__.putPage=function(l){var b=l.number,q=l.data,K=l.objId,re=l.contentsObjId;yn(K,!0),H("<</Type /Page"),H("/Parent "+l.rootDictionaryObjId+" 0 R"),H("/Resources "+l.resourceDictionaryObjId+" 0 R"),H("/MediaBox ["+parseFloat(de(l.mediaBox.bottomLeftX))+" "+parseFloat(de(l.mediaBox.bottomLeftY))+" "+de(l.mediaBox.topRightX)+" "+de(l.mediaBox.topRightY)+"]"),l.cropBox!==null&&H("/CropBox ["+de(l.cropBox.bottomLeftX)+" "+de(l.cropBox.bottomLeftY)+" "+de(l.cropBox.topRightX)+" "+de(l.cropBox.topRightY)+"]"),l.bleedBox!==null&&H("/BleedBox ["+de(l.bleedBox.bottomLeftX)+" "+de(l.bleedBox.bottomLeftY)+" "+de(l.bleedBox.topRightX)+" "+de(l.bleedBox.topRightY)+"]"),l.trimBox!==null&&H("/TrimBox ["+de(l.trimBox.bottomLeftX)+" "+de(l.trimBox.bottomLeftY)+" "+de(l.trimBox.topRightX)+" "+de(l.trimBox.topRightY)+"]"),l.artBox!==null&&H("/ArtBox ["+de(l.artBox.bottomLeftX)+" "+de(l.artBox.bottomLeftY)+" "+de(l.artBox.topRightX)+" "+de(l.artBox.topRightY)+"]"),typeof l.userUnit=="number"&&l.userUnit!==1&&H("/UserUnit "+l.userUnit),Ut.publish("putPage",{objId:K,pageContext:_t[b],pageNumber:b,page:q}),H("/Contents "+re+" 0 R"),H(">>"),H("endobj");
vendor: 5,013 bytes, lines 2-5
2var we=q.join(` 3`);return $===U.ADVANCED&&(we+=` 4Q`),yn(re,!0),In({data:we,filters:ur(),objectId:re}),H("endobj"),K},ba=v.__private__.putPages=function(){var l,b,q=[];for(l=1;l<=ci;l++)_t[l].objId=Si(),_t[l].contentsObjId=Si();for(l=1;l<=ci;l++)q.push(fr({number:l,data:Oe[l],objId:_t[l].objId,contentsObjId:_t[l].contentsObjId,mediaBox:_t[l].mediaBox,cropBox:_t[l].cropBox,bleedBox:_t[l].bleedBox,trimBox:_t[l].trimBox,artBox:_t[l].artBox,userUnit:_t[l].userUnit,rootDictionaryObjId:Nr,resourceDictionaryObjId:Hn}));yn(Nr,!0),H("<</Type /Pages");var K="/Kids [";for(b=0;b<ci;b++)K+=q[b]+" 0 R ";H(K+"]"),H("/Count "+ci),H(">>"),H("endobj"),Ut.publish("postPutPages")},Ga=function(l){Ut.publish("putFont",{font:l,out:H,newObject:Ni,putStream:In}),l.isAlreadyPutted!==!0&&(l.objectNumber=Ni(),H("<<"),H("/Type /Font"),H("/BaseFont /"+qo(l.postScriptName)),H("/Subtype /Type1"),typeof l.encoding=="string"&&H("/Encoding /"+l.encoding),H("/FirstChar 32"),H("/LastChar 255"),H(">>"),H("endobj"))},Ya=function(){for(var l in $t)$t.hasOwnProperty(l)&&(C===!1||C===!0&&L.hasOwnProperty(l))&&Ga($t[l])},Ja=function(l){l.objectNumber=Ni();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[de(l.x),de(l.y),de(l.x+l.width),de(l.y+l.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+l.matrix.toString()+"]"});var q=l.pages[1].join(` 5`);In({data:q,additionalKeyValues:b,objectId:l.objectNumber}),H("endobj")},$a=function(){for(var l in Ri)Ri.hasOwnProperty(l)&&Ja(Ri[l])},Es=function(l,b){var q,K=[],re=1/(b-1);for(q=0;q<1;q+=re)K.push(q);if(K.push(1),l[0].offset!=0){var we={offset:0,color:l[0].color};l.unshift(we)}if(l[l.length-1].offset!=1){var Me={offset:1,color:l[l.length-1].color};l.push(Me)}for(var Qe="",ot=0,wt=0;wt<K.length;wt++){for(q=K[wt];q>l[ot+1].offset;)ot++;var yt=l[ot].offset,kt=(q-yt)/(l[ot+1].offset-yt),oi=l[ot].color,pi=l[ot+1].color;Qe+=X(Math.round((1-kt)*oi[0]+kt*pi[0]).toString(16))+X(Math.round((1-kt)*oi[1]+kt*pi[1]).toString(16))+X(Math.round((1-kt)*oi[2]+kt*pi[2]).toString(16))}return Qe.trim()},xc=function(l,b){b||(b=21);var q=Ni(),K=Es(l.colors,b),re=[];re.push({key:"FunctionType",value:"0"}),re.push({key:"Domain",value:"[0.0 1.0]"}),re.push({key:"Size",value:"["+b+"]"}),re.push({key:"BitsPerSample",value:"8"}),re.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),re.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),In({data:K,additionalKeyValues:re,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:q}),H("endobj"),l.objectNumber=Ni(),H("<< /ShadingType "+l.type),H("/ColorSpace /DeviceRGB");var we="/Coords ["+de(parseFloat(l.coords[0]))+" "+de(parseFloat(l.coords[1]))+" ";l.type===2?we+=de(parseFloat(l.coords[2]))+" "+de(parseFloat(l.coords[3])):we+=de(parseFloat(l.coords[2]))+" "+de(parseFloat(l.coords[3]))+" "+de(parseFloat(l.coords[4]))+" "+de(parseFloat(l.coords[5])),H(we+="]"),l.matrix&&H("/Matrix ["+l.matrix.toString()+"]"),H("/Function "+q+" 0 R"),H("/Extend [true true]"),H(">>"),H("endobj")},wc=function(l,b){var q=Si(),K=Ni();b.push({resourcesOid:q,objectOid:K}),l.objectNumber=K;var re=[];re.push({key:"Type",value:"/Pattern"}),re.push({key:"PatternType",value:"1"}),re.push({key:"PaintType",value:"1"}),re.push({key:"TilingType",value:"1"}),re.push({key:"BBox",value:"["+l.boundingBox.map(de).join(" ")+"]"}),re.push({key:"XStep",value:de(l.xStep)}),re.push({key:"YStep",value:de(l.yStep)}),re.push({key:"Resources",value:q+" 0 R"}),l.matrix&&re.push({key:"Matrix",value:"["+l.matrix.toString()+"]"}),In({data:l.stream,additionalKeyValues:re,objectId:l.objectNumber}),H("endobj")},Ka=function(l){var b;for(b in qt)qt.hasOwnProperty(b)&&(qt[b]instanceof Va?xc(qt[b]):qt[b]instanceof Uo&&wc(qt[b],l))},Ls=function(l){for(var b in l.objectNumber=Ni(),H("<<"),l)switch(b){case"opacity":H("/ca "+Pe(l[b]));break;case"stroke-opacity":H("/CA "+Pe(l[b]))}H(">>"),H("endobj")},Cc=function(){var l;for(l in li)li.hasOwnProperty(l)&&Ls(li[l])},Go=function(){for(var l in H("/XObject <<"),Ri)Ri.hasOwnProperty(l)&&Ri[l].objectNumber>=0&&H("/"+l+" "+Ri[l].objectNumber+" 0 R");Ut.publish("putXobjectDict"),H(">>")},Sc=function(){Wi.oid=Ni(),H("<<"),H("/Filter /Standard"),H("/V "+Wi.v),H("/R "+Wi.r),H("/U <"+Wi.toHexString(Wi.U)+">"),H("/O <"+Wi.toHexString(Wi.O)+">"),H("/P "+Wi.P),H(">>"),H("endobj")},Ms=function(){for(var l in H("/Font <<"),$t)$t.hasOwnProperty(l)&&(C===!1||C===!0&&L.hasOwnProperty(l))&&H("/"+l+" "+$t[l].objectNumber+" 0 R");H(">>")},Pc=function(){if(Object.keys(qt).length>0){for(var l in H("/Shading <<"),qt)qt.hasOwnProperty(l)&&qt[l]instanceof Va&&qt[l].objectNumber>=0&&H("/"+l+" "+qt[l].objectNumber+" 0 R");Ut.publish("putShadingPatternDict"),H(">>")}},Xa=function(l){if(Object.keys(qt).length>0){for(var b in H("/Pattern <<"),qt)qt.hasOwnProperty(b)&&qt[b]instanceof v.TilingPattern&&qt[b].objectNumber>=0&&qt[b].objectNumber<l&&H("/"+b+" "+qt[b].objectNumber+" 0 R");Ut.publish("putTilingPatternDict"),H(">>")}},Ac=function(){if(Object.keys(li).length>0){var l;
5for(l in H("/ExtGState <<"),li)li.hasOwnProperty(l)&&li[l].objectNumber>=0&&H("/"+l+" "+li[l].objectNumber+" 0 R");Ut.publish("putGStateDict"),H(">>")}},mi=function(l){yn(l.resourcesOid,!0),H("<<"),H("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ms(),Pc(),Xa(l.objectOid),Ac(),Go(),H(">>"),H("endobj")},ks=function(){var l=[];Ya(),Cc(),$a(),Ka(l),Ut.publish("putResources"),l.forEach(mi),mi({resourcesOid:Hn,objectOid:Number.MAX_SAFE_INTEGER}),Ut.publish("postPutResources")},Ds=function(){Ut.publish("putAdditionalObjects");for(var l=0;l<je.length;l++){var b=je[l];yn(b.objId,!0),H(b.content),H("endobj")}Ut.publish("postPutAdditionalObjects")},Bs=function(l){ii[l.fontName]=ii[l.fontName]||{},ii[l.fontName][l.fontStyle]=l.id},Yo=function(l,b,q,K,re){var we={id:"F"+(Object.keys($t).length+1).toString(10),postScriptName:l,fontName:b,fontStyle:q,encoding:K,isStandardFont:re||!1,metadata:{}};return Ut.publish("addFont",{font:we,instance:this}),$t[we.id]=we,Bs(we),we.id},Ic=function(l){for(var b=0,q=Be.length;b<q;b++){var K=Yo.call(this,l[b][0],l[b][1],l[b][2],Be[b][3],!0);C===!1&&(L[K]=!0);var re=l[b][0].split("-");Bs({id:K,fontName:re[0],fontStyle:re[1]||""})}Ut.publish("addFonts",{fonts:$t,dictionary:ii})},Jn=function(l){return l.foo=function(){try{return l.apply(this,arguments)}catch(K){var b=K.stack||"";~b.indexOf(" at ")&&(b=b.split(" at ")[1]);var q="Error in function "+b.split(` 6`)[0].split("<")[0]+": "+K.message;if(!ft.console)throw new Error(q);ft.console.error(q,K),ft.alert&&alert(q)}},l.foo.bar=l,l.foo},Qa=function(l,b){var q,K,re,we,Me,Qe,ot,wt,yt;if(re=(b=b||{}).sourceEncoding||"Unicode",Me=b.outputEncoding,(b.autoencode||Me)&&$t[Et].metadata&&$t[Et].metadata[re]&&$t[Et].metadata[re].encoding&&(we=$t[Et].metadata[re].encoding,!Me&&$t[Et].encoding&&(Me=$t[Et].encoding),!Me&&we.codePages&&(Me=we.codePages[0]),typeof Me=="string"&&(Me=we[Me]),Me)){for(ot=!1,Qe=[],q=0,K=l.length;q<K;q++)(wt=Me[l.charCodeAt(q)])?Qe.push(String.fromCharCode(wt)):Qe.push(l[q]),Qe[q].charCodeAt(0)>>8&&(ot=!0);l=Qe.join("")}for(q=l.length;ot===void 0&&q!==0;)l.charCodeAt(q-1)>>8&&(ot=!0),q--;if(!ot)return l;for(Qe=b.noBOM?[]:[254,255],q=0,K=l.length;q<K;q++){if((yt=(wt=l.charCodeAt(q))>>8)>>8)throw new Error("Character at position "+q+" of string '"+l+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Qe.push(yt),Qe.push(wt-(yt<<8))}return String.fromCharCode.apply(void 0,Qe)},ln=v.__private__.pdfEscape=v.pdfEscape=function(l,b){return Qa(l,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Jo=v.__private__.beginPage=function(l){Oe[++ci]=[],_t[ci]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(l[0]),topRightY:Number(l[1])}},Fs(ci),Se(Oe[j])},Os=function(l,b){var q,K,re;switch(e=b||e,typeof l=="string"&&(q=k(l.toLowerCase()),Array.isArray(q)&&(K=q[0],re=q[1])),Array.isArray(l)&&(K=l[0]*Xe,re=l[1]*Xe),isNaN(K)&&(K=r[0],re=r[1]),(K>14400||re>14400)&&(Xt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),K=Math.min(14400,K),re=Math.min(14400,re)),r=[K,re],e.substr(0,1)){case"l":re>K&&(r=[re,K]);break;case"p":K>re&&(r=[re,K])}Jo(r),zs(Qo),H($n),es!==0&&H(es+" J"),ts!==0&&H(ts+" j"),Ut.publish("addPage",{pageNumber:ci})},Tc=function(l){l>0&&l<=ci&&(Oe.splice(l,1),_t.splice(l,1),ci--,j>ci&&(j=ci),this.setPage(j))},Fs=function(l){l>0&&l<=ci&&(j=l)},Nc=v.__private__.getNumberOfPages=v.getNumberOfPages=function(){return Oe.length-1},Rs=function(l,b,q){var K,re=void 0;return q=q||{},l=l!==void 0?l:$t[Et].fontName,b=b!==void 0?b:$t[Et].fontStyle,K=l.toLowerCase(),ii[K]!==void 0&&ii[K][b]!==void 0?re=ii[K][b]:ii[l]!==void 0&&ii[l][b]!==void 0?re=ii[l][b]:q.disableWarning===!1&&Xt.warn("Unable to look up font label for font '"+l+"', '"+b+"'. Refer to getFontList() for available fonts."),re||q.noFallback||(re=ii.times[b])==null&&(re=ii.times.normal),re},Ec=v.__private__.putInfo=function(){var l=Ni(),b=function(K){return K};for(var q in x!==null&&(b=Wi.encryptor(l,0)),H("<<"),H("/Producer ("+ln(b("jsPDF "+dt.version))+")"),mt)mt.hasOwnProperty(q)&&mt[q]&&H("/"+q.substr(0,1).toUpperCase()+q.substr(1)+" ("+ln(b(mt[q]))+")");H("/CreationDate ("+ln(b(_e))+")"),H(">>"),H("endobj")},$o=v.__private__.putCatalog=function(l){var b=(l=l||{}).rootDictionaryObjId||Nr;switch(Ni(),H("<<"),H("/Type /Catalog"),H("/Pages "+b+" 0 R"),Ke||(Ke="fullwidth"),Ke){case"fullwidth":H("/OpenAction [3 0 R /FitH null]");break;case"fullheight":H("/OpenAction [3 0 R /FitV null]");break;case"fullpage":H("/OpenAction [3 0 R /Fit]");break;case"original":H("/OpenAction [3 0 R /XYZ null null 1]");break;default:var q=""+Ke;q.substr(q.length-1)==="%"&&(Ke=parseInt(Ke)/100),typeof Ke=="number"&&H("/OpenAction [3 0 R /XYZ null null "+Pe(Ke)+"]")}switch(Tt||(Tt="continuous"),Tt){case"continuous":H("/PageLayout /OneColumn");break;case"single":H("/PageLayout /SinglePage");break;case"two":case"twoleft":H("/PageLayout /TwoColumnLeft");break;case"tworight":H("/PageLayout /TwoColumnRight")}vt&&H("/PageMode /"+vt),Ut.publish("putCatalog"),H(">>"),H("endobj")},Lc=v.__private__.putTrailer=function(){H("trailer"),H("<<"),H("/Size "+(ne+1)),H("/Root "+ne+" 0 R"),H("/Info "+(ne-1)+" 0 R"),x!==null&&H("/Encrypt "+Wi.oid+" 0 R"),H("/ID [ <"+fe+"> <"+fe+"> ]"),H(">>")},Mc=v.__private__.putHeader=function(){H("%PDF-"+V),H("%\xBA\xDF\xAC\xE0")},kc=v.__private__.putXRef=function(){var l="0000000000";H("xref"),H("0 "+(ne+1)),H("0000000000 65535 f ");for(var b=1;b<=ne;b++)typeof ce[b]=="function"?H((l+ce[b]()).slice(-10)+" 00000 n "):ce[b]!==void 0?H((l+ce[b]).slice(-10)+" 00000 n "):H("0000000000 00000 n ")},Er=v.__private__.buildDocument=function(){ut(),Se(me),Ut.publish("buildDocument"),Mc(),ba(),Ds(),ks(),x!==null&&Sc(),Ec(),$o();var l=ge;return kc(),Lc(),H("startxref"),H(""+l),H("%%EOF"),Se(Oe[j]),me.join(` 7`)},Za=v.__private__.getBlob=function(l){return new Blob([rt(l)],{type:"application/pdf"})},eo=v.output=v.__private__.output=Jn(function(l,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",l){case void 0:return Er();case"save":v.save(b.filename);break;case"arraybuffer":return rt(Er());case"blob":return Za(Er());case"bloburi":case"bloburl":if(ft.URL!==void 0&&typeof ft.URL.createObjectURL=="function")return ft.URL&&ft.URL.createObjectURL(Za(Er()))||void 0;Xt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var q="",K=Er();try{q=ld(K)}catch{q=ld(unescape(encodeURIComponent(K)))}return"data:application/pdf;filename="+b.filename+";base64,"+q;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ft)==="[object Window]"){var re="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",we=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(re=b.pdfObjectUrl,we="");var Me='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+re+'"'+we+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(b)+");<\/script></body></html>",Qe=ft.open();return Qe!==null&&Qe.document.write(Me),Qe}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ft)==="[object Window]"){var ot='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(b.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+b.filename+'" width="500px" height="400px" /></body></html>',wt=ft.open();if(wt!==null){wt.document.write(ot);var yt=this;wt.document.documentElement.querySelector("#pdfViewer").onload=function(){wt.document.title=b.filename,wt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(yt.output("bloburl"))}}return wt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ft)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var kt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",b)+'"></iframe></body></html>',oi=ft.open();if(oi!==null&&(oi.document.write(kt),oi.document.title=b.filename),oi||typeof safari>"u")return oi;break;case"datauri":case"dataurl":return ft.document.location.href=this.output("datauristring",b);default:return null}}),js=function(l){return Array.isArray(ya)===!0&&ya.indexOf(l)>-1};switch(i){case"pt":Xe=1;break;case"mm":Xe=72/25.4;break;case"cm":Xe=72/2.54;break;case"in":Xe=72;break;case"px":Xe=js("px_scaling")==1?.75:96/72;break;case"pc":case"em":Xe=12;break;case"ex":Xe=6;break;default:if(typeof i!="number")throw new Error("Invalid unit: "+i);Xe=i}var Wi=null;$e(),le();var Dc=function(l){return x!==null?Wi.encryptor(l,0):function(b){return b}},qs=v.__private__.getPageInfo=v.getPageInfo=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to
7jsPDF.getPageInfo");return{objId:_t[l].objId,pageNumber:l,pageContext:_t[l]}},ht=v.__private__.getPageInfoByObjId=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in _t)if(_t[b].objId===l)break;return qs(b)},Bc=v.__private__.getCurrentPageInfo=v.getCurrentPageInfo=function(){return{objId:_t[j].objId,pageNumber:j,pageContext:_t[j]}};v.addPage=function(){return Os.apply(this,arguments),this},v.setPage=function(){return Fs.apply(this,arguments),Se.call(this,Oe[j]),this},v.insertPage=function(l){return this.addPage(),this.movePage(j,l),this},v.movePage=function(l,b){var q,K;if(l>b){q=Oe[l],K=_t[l];for(var re=l;re>b;re--)Oe[re]=Oe[re-1],_t[re]=_t[re-1];Oe[b]=q,_t[b]=K,this.setPage(b)}else if(l<b){q=Oe[l],K=_t[l];for(var we=l;we<b;we++)Oe[we]=Oe[we+1],_t[we]=_t[we+1];Oe[b]=q,_t[b]=K,this.setPage(b)}return this},v.deletePage=function(){return Tc.apply(this,arguments),this},v.__private__.text=v.text=function(l,b,q,K,re){var we,Me,Qe,ot,wt,yt,kt,oi,pi,Pi=(K=K||{}).scope||this;if(typeof l=="number"&&typeof b=="number"&&(typeof q=="string"||Array.isArray(q))){var Hi=q;q=b,b=l,l=Hi}if(arguments[3]instanceof pt?(J("The transform parameter of text() with a Matrix value"),pi=re):(Qe=arguments[4],ot=arguments[5],Yt(kt=arguments[3])==="object"&&kt!==null||(typeof Qe=="string"&&(ot=Qe,Qe=null),typeof kt=="string"&&(ot=kt,kt=null),typeof kt=="number"&&(Qe=kt,kt=null),K={flags:kt,angle:Qe,align:ot})),isNaN(b)||isNaN(q)||l==null)throw new Error("Invalid arguments passed to jsPDF.text");if(l.length===0)return Pi;var Li="",Kn=!1,bn=typeof K.lineHeightFactor=="number"?K.lineHeightFactor:wa,gr=Pi.internal.scaleFactor;function $s(Qt){return Qt=Qt.split(" ").join(Array(K.TabLen||9).join(" ")),ln(Qt,kt)}function os(Qt){for(var Zt,gi=Qt.concat(),Ei=[],Br=gi.length;Br--;)typeof(Zt=gi.shift())=="string"?Ei.push(Zt):Array.isArray(Qt)&&(Zt.length===1||Zt[1]===void 0&&Zt[2]===void 0)?Ei.push(Zt[0]):Ei.push([Zt[0],Zt[1],Zt[2]]);return Ei}function ss(Qt,Zt){var gi;if(typeof Qt=="string")gi=Zt(Qt)[0];else if(Array.isArray(Qt)){for(var Ei,Br,hs=Qt.concat(),go=[],el=hs.length;el--;)typeof(Ei=hs.shift())=="string"?go.push(Zt(Ei)[0]):Array.isArray(Ei)&&typeof Ei[0]=="string"&&(Br=Zt(Ei[0],Ei[1],Ei[2]),go.push([Br[0],Br[1],Br[2]]));gi=go}return gi}var oo=!1,ls=!0;if(typeof l=="string")oo=!0;else if(Array.isArray(l)){var cs=l.concat();Me=[];for(var so,ji=cs.length;ji--;)(typeof(so=cs.shift())!="string"||Array.isArray(so)&&typeof so[0]!="string")&&(ls=!1);oo=ls}if(oo===!1)throw new Error('Type of text must be string or Array. "'+l+'" is not recognized.');typeof l=="string"&&(l=l.match(/[\r?\n]/)?l.split(/\r\n|\r|\n/g):[l]);var lo=Ve/Pi.internal.scaleFactor,co=lo*(bn-1);switch(K.baseline){case"bottom":q-=co;break;case"top":q+=lo-co;break;case"hanging":q+=lo-2*co;break;case"middle":q+=lo/2-co}if((yt=K.maxWidth||0)>0&&(typeof l=="string"?l=Pi.splitTextToSize(l,yt):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(Qt,Zt){return Qt.concat(Pi.splitTextToSize(Zt,yt))},[]))),we={text:l,x:b,y:q,options:K,mutex:{pdfEscape:ln,activeFontKey:Et,fonts:$t,activeFontSize:Ve}},Ut.publish("preProcessText",we),l=we.text,Qe=(K=we.options).angle,!(pi instanceof pt)&&Qe&&typeof Qe=="number"){Qe*=Math.PI/180,K.rotationDirection===0&&(Qe=-Qe),$===U.ADVANCED&&(Qe=-Qe);var po=Math.cos(Qe),ps=Math.sin(Qe);pi=new pt(po,ps,-ps,po,0,0)}else Qe&&Qe instanceof pt&&(pi=Qe);$!==U.ADVANCED||pi||(pi=dr),(wt=K.charSpace||no)!==void 0&&(Li+=de(B(wt))+` Tc 8`,this.setCharSpace(this.getCharSpace()||0)),(oi=K.horizontalScale)!==void 0&&(Li+=de(100*oi)+` Tz 9`),K.lang;var cn=-1,Hc=K.renderingMode!==void 0?K.renderingMode:K.stroke,ds=Pi.internal.getCurrentPageInfo().pageContext;switch(Hc){case 0:case!1:case"fill":cn=0;break;case 1:case!0:case"stroke":cn=1;break;case 2:case"fillThenStroke":cn=2;break;case 3:case"invisible":cn=3;break;case 4:case"fillAndAddForClipping":cn=4;break;case 5:case"strokeAndAddPathForClipping":cn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":cn=6;break;case 7:case"addToPathForClipping":cn=7}var Ks=ds.usedRenderingMode!==void 0?ds.usedRenderingMode:-1;cn!==-1?Li+=cn+` Tr 10`:Ks!==-1&&(Li+=`0 Tr 11`),cn!==-1&&(ds.usedRenderingMode=cn),ot=K.align||"left";var Tn,uo=Ve*bn,Xs=Pi.internal.pageSize.getWidth(),Qs=$t[Et];wt=K.charSpace||no,yt=K.maxWidth||0,kt=Object.assign({autoencode:!0,noBOM:!0},K.flags);var Yr=[],Pa=function(Qt){return Pi.getStringUnitWidth(Qt,{font:Qs,charSpace:wt,fontSize:Ve,doKerning:!1})*Ve/gr};if(Object.prototype.toString.call(l)==="[object Array]"){var pn;Me=os(l),ot!=="left"&&(Tn=Me.map(Pa));var Zi,Jr=0;if(ot==="right"){b-=Tn[0],l=[],ji=Me.length;for(var Mr=0;Mr<ji;Mr++)Mr===0?(Zi=hr(b),pn=Lr(q)):(Zi=B(Jr-Tn[Mr]),pn=-uo),l.push([Me[Mr],Zi,pn]),Jr=Tn[Mr]}else if(ot==="center"){b-=Tn[0]/2,l=[],ji=Me.length;for(var kr=0;kr<ji;
11kr++)kr===0?(Zi=hr(b),pn=Lr(q)):(Zi=B((Jr-Tn[kr])/2),pn=-uo),l.push([Me[kr],Zi,pn]),Jr=Tn[kr]}else if(ot==="left"){l=[],ji=Me.length;for(var fo=0;fo<ji;fo++)l.push(Me[fo])}else if(ot==="justify"&&Qs.encoding==="Identity-H"){l=[],ji=Me.length,yt=yt!==0?yt:Xs;for(var Dr=0,hi=0;hi<ji;hi++)if(pn=hi===0?Lr(q):-uo,Zi=hi===0?hr(b):Dr,hi<ji-1){var us=B((yt-Tn[hi])/(Me[hi].split(" ").length-1)),en=Me[hi].split(" ");l.push([en[0]+" ",Zi,pn]),Dr=0;for(var Nn=1;Nn<en.length;Nn++){var mo=(Pa(en[Nn-1]+" "+en[Nn])-Pa(en[Nn]))*gr+us;Nn==en.length-1?l.push([en[Nn],mo,0]):l.push([en[Nn]+" ",mo,0]),Dr-=mo}}else l.push([Me[hi],Zi,pn]);l.push(["",Dr,0])}else{if(ot!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(l=[],ji=Me.length,yt=yt!==0?yt:Xs,hi=0;hi<ji;hi++)pn=hi===0?Lr(q):-uo,Zi=hi===0?hr(b):0,hi<ji-1?Yr.push(de(B((yt-Tn[hi])/(Me[hi].split(" ").length-1)))):Yr.push(0),l.push([Me[hi],Zi,pn])}}var Zs=typeof K.R2L=="boolean"?K.R2L:at;Zs===!0&&(l=ss(l,function(Qt,Zt,gi){return[Qt.split("").reverse().join(""),Zt,gi]})),we={text:l,x:b,y:q,options:K,mutex:{pdfEscape:ln,activeFontKey:Et,fonts:$t,activeFontSize:Ve}},Ut.publish("postProcessText",we),l=we.text,Kn=we.mutex.isHex||!1;var fs=$t[Et].encoding;fs!=="WinAnsiEncoding"&&fs!=="StandardEncoding"||(l=ss(l,function(Qt,Zt,gi){return[$s(Qt),Zt,gi]})),Me=os(l),l=[];for(var Aa,Ia,$r,Ta=0,ho=1,Na=Array.isArray(Me[0])?ho:Ta,Kr="",ms=function(Qt,Zt,gi){var Ei="";return gi instanceof pt?(gi=typeof K.angle=="number"?Wn(gi,new pt(1,0,0,1,Qt,Zt)):Wn(new pt(1,0,0,1,Qt,Zt),gi),$===U.ADVANCED&&(gi=Wn(new pt(1,0,0,-1,0,0),gi)),Ei=gi.join(" ")+` Tm 12`):Ei=de(Qt)+" "+de(Zt)+` Td 13`,Ei},En=0;En<Me.length;En++){switch(Kr="",Na){case ho:$r=(Kn?"<":"(")+Me[En][0]+(Kn?">":")"),Aa=parseFloat(Me[En][1]),Ia=parseFloat(Me[En][2]);break;case Ta:$r=(Kn?"<":"(")+Me[En]+(Kn?">":")"),Aa=hr(b),Ia=Lr(q)}Yr!==void 0&&Yr[En]!==void 0&&(Kr=Yr[En]+` Tw 14`),En===0?l.push(Kr+ms(Aa,Ia,pi)+$r):Na===Ta?l.push(Kr+$r):Na===ho&&l.push(Kr+ms(Aa,Ia,pi)+$r)}l=Na===Ta?l.join(` Tj 15T* `):l.join(` Tj 16`),l+=` Tj 17`;var Ln=`BT 18/`;return Ln+=Et+" "+Ve+` Tf 19`,Ln+=de(Ve*bn)+` TL 20`,Ln+=Ca+` 21`,Ln+=Li,Ln+=l,H(Ln+="ET"),L[Et]=!0,Pi};var Oc=v.__private__.clip=v.clip=function(l){return H(l==="evenodd"?"W*":"W"),this};v.clipEvenOdd=function(){return Oc("evenodd")},v.__private__.discardPath=v.discardPath=function(){return H("n"),this};var mr=v.__private__.isValidStyle=function(l){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(l)!==-1&&(b=!0),b};v.__private__.setDefaultPathOperation=v.setDefaultPathOperation=function(l){return mr(l)&&(_=l),this};var Us=v.__private__.getStyle=v.getStyle=function(l){var b=_;switch(l){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=l}return b},Vs=v.close=function(){return H("h"),this};v.stroke=function(){return H("S"),this},v.fill=function(l){return to("f",l),this},v.fillEvenOdd=function(l){return to("f*",l),this},v.fillStroke=function(l){return to("B",l),this},v.fillStrokeEvenOdd=function(l){return to("B*",l),this};var to=function(l,b){Yt(b)==="object"?Rc(b,l):H(l)},Ko=function(l){l===null||$===U.ADVANCED&&l===void 0||(l=Us(l),H(l))};function Fc(l,b,q,K,re){var we=new Uo(b||this.boundingBox,q||this.xStep,K||this.yStep,this.gState,re||this.matrix);we.stream=this.stream;var Me=l+"$$"+this.cloneIndex+++"$$";return sn(Me,we),we}var Rc=function(l,b){var q=_a[l.key],K=qt[q];if(K instanceof Va)H("q"),H(jc(b)),K.gState&&v.setGState(K.gState),H(l.matrix.toString()+" cm"),H("/"+q+" sh"),H("Q");else if(K instanceof Uo){var re=new pt(1,0,0,-1,0,Gr());l.matrix&&(re=re.multiply(l.matrix||dr),q=Fc.call(K,l.key,l.boundingBox,l.xStep,l.yStep,re).id),H("q"),H("/Pattern cs"),H("/"+q+" scn"),K.gState&&v.setGState(K.gState),H(b),H("Q")}},jc=function(l){switch(l){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Xo=v.moveTo=function(l,b){return H(de(B(l))+" "+de(Y(b))+" m"),this},xa=v.lineTo=function(l,b){return H(de(B(l))+" "+de(Y(b))+" l"),this},Wr=v.curveTo=function(l,b,q,K,re,we){return H([de(B(l)),de(Y(b)),de(B(q)),de(Y(K)),de(B(re)),de(Y(we)),"c"].join(" ")),this};v.__private__.line=v.line=function(l,b,q,K,re){if(isNaN(l)||isNaN(b)||isNaN(q)||isNaN(K)||!mr(re))throw new Error("Invalid arguments passed to
21jsPDF.line");return $===U.COMPAT?this.lines([[q-l,K-b]],l,b,[1,1],re||"S"):this.lines([[q-l,K-b]],l,b,[1,1]).stroke()},v.__private__.lines=v.lines=function(l,b,q,K,re,we){var Me,Qe,ot,wt,yt,kt,oi,pi,Pi,Hi,Li,Kn;if(typeof l=="number"&&(Kn=q,q=b,b=l,l=Kn),K=K||[1,1],we=we||!1,isNaN(b)||isNaN(q)||!Array.isArray(l)||!Array.isArray(K)||!mr(re)||typeof we!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Xo(b,q),Me=K[0],Qe=K[1],wt=l.length,Hi=b,Li=q,ot=0;ot<wt;ot++)(yt=l[ot]).length===2?(Hi=yt[0]*Me+Hi,Li=yt[1]*Qe+Li,xa(Hi,Li)):(kt=yt[0]*Me+Hi,oi=yt[1]*Qe+Li,pi=yt[2]*Me+Hi,Pi=yt[3]*Qe+Li,Hi=yt[4]*Me+Hi,Li=yt[5]*Qe+Li,Wr(kt,oi,pi,Pi,Hi,Li));return we&&Vs(),Ko(re),this},v.path=function(l){for(var b=0;b<l.length;b++){var q=l[b],K=q.c;switch(q.op){case"m":Xo(K[0],K[1]);break;case"l":xa(K[0],K[1]);break;case"c":Wr.apply(this,K);break;case"h":Vs()}}return this},v.__private__.rect=v.rect=function(l,b,q,K,re){if(isNaN(l)||isNaN(b)||isNaN(q)||isNaN(K)||!mr(re))throw new Error("Invalid arguments passed to jsPDF.rect");return $===U.COMPAT&&(K=-K),H([de(B(l)),de(Y(b)),de(B(q)),de(B(K)),"re"].join(" ")),Ko(re),this},v.__private__.triangle=v.triangle=function(l,b,q,K,re,we,Me){if(isNaN(l)||isNaN(b)||isNaN(q)||isNaN(K)||isNaN(re)||isNaN(we)||!mr(Me))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[q-l,K-b],[re-q,we-K],[l-re,b-we]],l,b,[1,1],Me,!0),this},v.__private__.roundedRect=v.roundedRect=function(l,b,q,K,re,we,Me){if(isNaN(l)||isNaN(b)||isNaN(q)||isNaN(K)||isNaN(re)||isNaN(we)||!mr(Me))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Qe=4/3*(Math.SQRT2-1);return re=Math.min(re,.5*q),we=Math.min(we,.5*K),this.lines([[q-2*re,0],[re*Qe,0,re,we-we*Qe,re,we],[0,K-2*we],[0,we*Qe,-re*Qe,we,-re,we],[2*re-q,0],[-re*Qe,0,-re,-we*Qe,-re,-we],[0,2*we-K],[0,-we*Qe,re*Qe,-we,re,-we]],l+re,b,[1,1],Me,!0),this},v.__private__.ellipse=v.ellipse=function(l,b,q,K,re){if(isNaN(l)||isNaN(b)||isNaN(q)||isNaN(K)||!mr(re))throw new Error("Invalid arguments passed to jsPDF.ellipse");var we=4/3*(Math.SQRT2-1)*q,Me=4/3*(Math.SQRT2-1)*K;return Xo(l+q,b),Wr(l+q,b-Me,l+we,b-K,l,b-K),Wr(l-we,b-K,l-q,b-Me,l-q,b),Wr(l-q,b+Me,l-we,b+K,l,b+K),Wr(l+we,b+K,l+q,b+Me,l+q,b),Ko(re),this},v.__private__.circle=v.circle=function(l,b,q,K){if(isNaN(l)||isNaN(b)||isNaN(q)||!mr(K))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(l,b,q,q,K)},v.setFont=function(l,b,q){return q&&(b=Le(b,q)),Et=Rs(l,b,{disableWarning:!1}),this};var qc=v.__private__.getFont=v.getFont=function(){return $t[Rs.apply(v,arguments)]};v.__private__.getFontList=v.getFontList=function(){var l,b,q={};for(l in ii)if(ii.hasOwnProperty(l))for(b in q[l]=[],ii[l])ii[l].hasOwnProperty(b)&&q[l].push(b);return q},v.addFont=function(l,b,q,K,re){var we=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&we.indexOf(arguments[3])!==-1?re=arguments[3]:arguments[3]&&we.indexOf(arguments[3])==-1&&(q=Le(q,K)),re=re||"Identity-H",Yo.call(this,l,b,q,re)};var wa,Qo=t.lineWidth||.200025,io=v.__private__.getLineWidth=v.getLineWidth=function(){return Qo},zs=v.__private__.setLineWidth=v.setLineWidth=function(l){return Qo=l,H(de(B(l))+" w"),this};v.__private__.setLineDash=dt.API.setLineDash=dt.API.setLineDashPattern=function(l,b){if(l=l||[],b=b||0,isNaN(b)||!Array.isArray(l))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return l=l.map(function(q){return de(B(q))}).join(" "),b=de(B(b)),H("["+l+"] "+b+" d"),this};var Ws=v.__private__.getLineHeight=v.getLineHeight=function(){return Ve*wa};v.__private__.getLineHeight=v.getLineHeight=function(){return Ve*wa};var Hs=v.__private__.setLineHeightFactor=v.setLineHeightFactor=function(l){return typeof(l=l||1.15)=="number"&&(wa=l),this},Gs=v.__private__.getLineHeightFactor=v.getLineHeightFactor=function(){return wa};Hs(t.lineHeight);var hr=v.__private__.getHorizontalCoordinate=function(l){return B(l)},Lr=v.__private__.getVerticalCoordinate=function(l){return $===U.ADVANCED?l:_t[j].mediaBox.topRightY-_t[j].mediaBox.bottomLeftY-B(l)},Uc=v.__private__.getHorizontalCoordinateString=v.getHorizontalCoordinateString=function(l){return de(hr(l))},Hr=v.__private__.getVerticalCoordinateString=v.getVerticalCoordinateString=function(l){return de(Lr(l))},$n=t.strokeColor||"0 G";v.__private__.getStrokeColor=v.getDrawColor=function(){return Gn($n)},v.__private__.setStrokeColor=v.setDrawColor=function(l,b,q,K){return $n=Yn({ch1:l,ch2:b,ch3:q,ch4:K,pdfColorType:"draw",precision:2}),H($n),this};var Zo=t.fillColor||"0 g";v.__private__.getFillColor=v.getFillColor=function(){return Gn(Zo)},v.__private__.setFillColor=v.setFillColor=function(l,b,q,K){return Zo=Yn({ch1:l,ch2:b,ch3:q,ch4:K,pdfColorType:"fill",precision:2}),H(Zo),this};var Ca=t.textColor||"0 g",Vc=v.__private__.getTextColor=v.getTextColor=function(){return Gn(Ca)};v.__private__.setTextColor=v.setTextColor=function(l,b,q,K){return Ca=Yn({ch1:l,ch2:b,ch3:q,ch4:K,pdfColorType:"text",precision:3}),this};var no=t.charSpace,zc=v.__private__.getCharSpace=v.getCharSpace=function(){return parseFloat(no||0)};v.__private__.setCharSpace=v.setCharSpace=function(l){if(isNaN(l))throw new Error("Invalid argument passed to
21jsPDF.setCharSpace");return no=l,this};var es=0;v.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},v.__private__.setLineCap=v.setLineCap=function(l){var b=v.CapJoinStyles[l];if(b===void 0)throw new Error("Line cap style of '"+l+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return es=b,H(b+" J"),this};var ts=0;v.__private__.setLineJoin=v.setLineJoin=function(l){var b=v.CapJoinStyles[l];if(b===void 0)throw new Error("Line join style of '"+l+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ts=b,H(b+" j"),this},v.__private__.setLineMiterLimit=v.__private__.setMiterLimit=v.setLineMiterLimit=v.setMiterLimit=function(l){if(l=l||0,isNaN(l))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return H(de(B(l))+" M"),this},v.GState=gc,v.setGState=function(l){(l=typeof l=="string"?li[zn[l]]:Ys(null,l)).equals(Tr)||(H("/"+l.id+" gs"),Tr=l)};var Ys=function(l,b){if(!l||!zn[l]){var q=!1;for(var K in li)if(li.hasOwnProperty(K)&&li[K].equals(b)){q=!0;break}if(q)b=li[K];else{var re="GS"+(Object.keys(li).length+1).toString(10);li[re]=b,b.id=re}return l&&(zn[l]=b.id),Ut.publish("addGState",b),b}};v.addGState=function(l,b){return Ys(l,b),this},v.saveGraphicsState=function(){return H("q"),lr.push({key:Et,size:Ve,color:Ca}),this},v.restoreGraphicsState=function(){H("Q");var l=lr.pop();return Et=l.key,Ve=l.size,Ca=l.color,Tr=null,this},v.setCurrentTransformationMatrix=function(l){return H(l.toString()+" cm"),this},v.comment=function(l){return H("#"+l),this};var ro=function(l,b){var q=l||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return q},set:function(we){isNaN(we)||(q=parseFloat(we))}});var K=b||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return K},set:function(we){isNaN(we)||(K=parseFloat(we))}});var re="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return re},set:function(we){re=we.toString()}}),this},is=function(l,b,q,K){ro.call(this,l,b),this.type="rect";var re=q||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return re},set:function(Me){isNaN(Me)||(re=parseFloat(Me))}});var we=K||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return we},set:function(Me){isNaN(Me)||(we=parseFloat(Me))}}),this},ns=function(){this.page=ci,this.currentPage=j,this.pages=Oe.slice(0),this.pagesContext=_t.slice(0),this.x=zi,this.y=Ft,this.matrix=Vn,this.width=Sa(j),this.height=Gr(j),this.outputDestination=We,this.id="",this.objectNumber=-1};ns.prototype.restore=function(){ci=this.page,j=this.currentPage,_t=this.pagesContext,Oe=this.pages,zi=this.x,Ft=this.y,Vn=this.matrix,rs(j,this.width),as(j,this.height),We=this.outputDestination};var Js=function(l,b,q,K,re){pr.push(new ns),ci=j=0,Oe=[],zi=l,Ft=b,Vn=re,Jo([q,K])},Wc=function(l){if(cr[l])pr.pop().restore();else{var b=new ns,q="Xo"+(Object.keys(Ri).length+1).toString(10);b.id=q,cr[l]=q,Ri[q]=b,Ut.publish("addFormObject",b),pr.pop().restore()}};for(var ao in v.beginFormObject=function(l,b,q,K,re){return Js(l,b,q,K,re),this},v.endFormObject=function(l){return Wc(l),this},v.doFormObject=function(l,b){var q=Ri[cr[l]];return H("q"),H(b.toString()+" cm"),H("/"+q.id+" Do"),H("Q"),this},v.getFormObject=function(l){var b=Ri[cr[l]];return{x:b.x,y:b.y,width:b.width,height:b.height,matrix:b.matrix}},v.save=function(l,b){return l=l||"generated.pdf",(b=b||{}).returnPromise=b.returnPromise||!1,b.returnPromise===!1?(Ua(Za(Er()),l),typeof Ua.unload=="function"&&ft.setTimeout&&setTimeout(Ua.unload,911),this):new Promise(function(q,K){try{var re=Ua(Za(Er()),l);typeof Ua.unload=="function"&&ft.setTimeout&&setTimeout(Ua.unload,911),q(re)}catch(we){K(we.message)}})},dt.API)dt.API.hasOwnProperty(ao)&&(ao==="events"&&dt.API.events.length?function(l,b){var q,K,re;for(re=b.length-1;re!==-1;re--)q=b[re][0],K=b[re][1],l.subscribe.apply(l,[q].concat(typeof K=="function"?[K]:K))}(Ut,dt.API.events):v[ao]=dt.API[ao]);var Sa=v.getPageWidth=function(l){return(_t[l=l||j].mediaBox.topRightX-_t[l].mediaBox.bottomLeftX)/Xe},rs=v.setPageWidth=function(l,b){_t[l].mediaBox.topRightX=b*Xe+_t[l].mediaBox.bottomLeftX},Gr=v.getPageHeight=function(l){return(_t[l=l||j].mediaBox.topRightY-_t[l].mediaBox.bottomLeftY)/Xe},as=v.setPageHeight=function(l,b){_t[l].mediaBox.topRightY=b*Xe+_t[l].mediaBox.bottomLeftY};return v.internal={pdfEscape:ln,getStyle:Us,getFont:qc,getFontSize:Ge,getCharSpace:zc,getTextColor:Vc,getLineHeight:Ws,getLineHeightFactor:Gs,getLineWidth:io,write:xt,getHorizontalCoordinate:hr,getVerticalCoordinate:Lr,getCoordinateString:Uc,getVerticalCoordinateString:Hr,collections:{},newObject:Ni,newAdditionalObject:Ha,newObjectDeferred:Si,newObjectDeferredBegin:yn,getFilters:ur,putStream:In,events:Ut,scaleFactor:Xe,pageSize:{getWidth:function(){return Sa(j)},setWidth:function(l){rs(j,l)},getHeight:function(){return Gr(j)},setHeight:function(l){as(j,l)}},encryptionOptions:x,encryption:Wi,getEncryptor:Dc,output:eo,getNumberOfPages:Nc,pages:Oe,out:H,f2:Pe,f3:D,getPageInfo:qs,getPageInfoByObjId:ht,getCurrentPageInfo:Bc,getPDFVersion:O,Point:ro,Rectangle:is,Matrix:pt,hasHotfix:js},Object.defineProperty(v.internal.pageSize,"width",{get:function(){return Sa(j)},set:function(l){rs(j,l)},enumerable:!0,configurable:!0}),Object.defineProperty(v.internal.pageSize,"height",{get:function(){return Gr(j)},set:function(l){as(j,l)},enumerable:!0,configurable:!0}),Ic.call(v,Be),Et="F1",Os(r,e),Ut.publish("initialized"),v}function U1(t){return t.reduce(function(n,e,i){return n[e]=i,n},{})}function fd(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=function(o){return V1[o=o||"normal"]?o:"normal"}
21(t.style),i=function(o){if(!o)return 400;if(typeof o=="number")return o>=100&&o<=900&&o%100==0?o:400;if(/^\d00$/.test(o))return parseInt(o);switch(o){case"bold":return 700;case"normal":default:return 400}}(t.weight),r=function(o){return typeof ud[o=o||"normal"]=="number"?o:"normal"}(t.stretch);return{family:n,style:e,weight:i,stretch:r,src:t.src||[],ref:t.ref||{name:n,style:[r,e,i].join(" ")}}}function C1(t,n,e,i){var r;for(r=e;r>=0&&r<n.length;r+=i)if(t[n[r]])return t[n[r]];for(r=e;r>=0&&r<n.length;r-=i)if(t[n[r]])return t[n[r]]}function P1(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Dv(t,n,e){for(var i=(e=e||{}).defaultFontFamily||"times",r=Object.assign({},kv,e.genericFontFamilies||{}),o=null,p=null,u=0;u<n.length;++u)if(r[(o=fd(n[u])).family]&&(o.family=r[o.family]),t.hasOwnProperty(o.family)){p=t[o.family];break}if(!(p=p||t[i]))throw new Error("Could not find a font-family for the rule '"+P1(o)+"' and default family '"+i+"'.");if(p=function(f,_){if(_[f])return _[f];var x=ud[f],C=x<=ud.normal?-1:1,L=C1(_,z1,x,C);if(!L)throw new Error("Could not find a matching font-stretch value for "+f);return L}(o.stretch,p),p=function(f,_){if(_[f])return _[f];for(var x=V1[f],C=0;C<x.length;++C)if(_[x[C]])return _[x[C]];throw new Error("Could not find a matching font-style for "+f)}(o.style,p),!(p=function(f,_){if(_[f])return _[f];if(f===400&&_[500])return _[500];if(f===500&&_[400])return _[400];var x=Mv[f],C=C1(_,W1,x,f<400?-1:1);if(!C)throw new Error("Could not find a matching font-weight for value "+f);return C}(o.weight,p)))throw new Error("Failed to resolve a font for the rule '"+P1(o)+"'.");return p}function A1(t){return t.trimLeft()}function Bv(t,n){for(var e=0;e<t.length;){if(t.charAt(e)===n)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function Ov(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],t.substring(n[0].length)]}function Rv(t){var n=0;if(t[n++]!==71||t[n++]!==73||t[n++]!==70||t[n++]!==56||(t[n++]+1&253)!=56||t[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[n++]|t[n++]<<8,i=t[n++]|t[n++]<<8,r=t[n++],o=r>>7,p=1<<(7&r)+1;t[n++],t[n++];var u=null,f=null;o&&(u=n,f=p,n+=3*p);var _=!0,x=[],C=0,L=null,v=0,V=null;for(this.width=e,this.height=i;_&&n<t.length;)switch(t[n++]){case 33:switch(t[n++]){case 255:if(t[n]!==11||t[n+1]==78&&t[n+2]==69&&t[n+3]==84&&t[n+4]==83&&t[n+5]==67&&t[n+6]==65&&t[n+7]==80&&t[n+8]==69&&t[n+9]==50&&t[n+10]==46&&t[n+11]==48&&t[n+12]==3&&t[n+13]==1&&t[n+16]==0)n+=14,V=t[n++]|t[n++]<<8,n++;else for(n+=12;;){if(!((D=t[n++])>=0))throw Error("Invalid block size");if(D===0)break;n+=D}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var O=t[n++];C=t[n++]|t[n++]<<8,L=t[n++],(1&O)==0&&(L=null),v=O>>2&7,n++;break;case 254:for(;;){if(!((D=t[n++])>=0))throw Error("Invalid block size");if(D===0)break;n+=D}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var G=t[n++]|t[n++]<<8,k=t[n++]|t[n++]<<8,U=t[n++]|t[n++]<<8,$=t[n++]|t[n++]<<8,he=t[n++],pe=he>>6&1,Le=1<<(7&he)+1,de=u,J=f,ue=!1;he>>7&&(ue=!0,de=n,J=Le,n+=3*Le);var Pe=n;for(n++;;){var D;if(!((D=t[n++])>=0))throw Error("Invalid block size");if(D===0)break;n+=D}x.push({x:G,y:k,width:U,height:$,has_local_palette:ue,palette_offset:de,palette_size:J,data_offset:Pe,data_length:n-Pe,transparent_index:L,interlaced:!!pe,delay:C,disposal:v});break;case 59:_=!1;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return x.length},this.loopCount=function(){return V},this.frameInfo=function(B){if(B<0||B>=x.length)throw new Error("Frame index out of range.");return x[B]},this.decodeAndBlitFrameBGRA=function(B,ee){var Y=this.frameInfo(B),_e=Y.width*Y.height,fe=new Uint8Array(_e);M1(t,Y.data_offset,fe,_e);var xe=Y.palette_offset,le=Y.transparent_index;le===null&&(le=256);var Ce=Y.width,Ae=e-Ce,$e=Ce,T=4*(Y.y*e+Y.x),j=4*((Y.y+Y.height)*e+Y.x),W=T,X=4*Ae;Y.interlaced===!0&&(X+=4*e*7);for(var ne=8,ce=0,me=fe.length;ce<me;++ce){var ge=fe[ce];if($e===0&&($e=Ce,(W+=X)>=j&&(X=4*Ae+4*e*(ne-1),W=T+(Ce+Ae)*(ne<<1),ne>>=1)),ge===le)W+=4;else{var je=t[xe+3*ge],Oe=t[xe+3*ge+1],Ye=t[xe+3*ge+2];ee[W++]=Ye,ee[W++]=Oe,ee[W++]=je,ee[W++]=255}--$e}},this.decodeAndBlitFrameRGBA=function(B,ee){var Y=this.frameInfo(B),_e=Y.width*Y.height,fe=new Uint8Array(_e);M1(t,Y.data_offset,fe,_e);var xe=Y.palette_offset,le=Y.transparent_index;le===null&&(le=256);var Ce=Y.width,Ae=e-Ce,$e=Ce,T=4*(Y.y*e+Y.x),j=4*((Y.y+Y.height)*e+Y.x),W=T,X=4*Ae;Y.interlaced===!0&&(X+=4*e*7);for(var ne=8,ce=0,me=fe.length;ce<me;++ce){var ge=fe[ce];if($e===0&&($e=Ce,(W+=X)>=j&&(X=4*Ae+4*e*(ne-1),W=T+(Ce+Ae)*(ne<<1),ne>>=1)),ge===le)W+=4;else{var je=t[xe+3*ge],Oe=t[xe+3*ge+1],Ye=t[xe+3*ge+2];ee[W++]=je,ee[W++]=Oe,ee[W++]=Ye,ee[W++]=255}--$e}}}function M1(t,n,e,i){for(var r=t[n++],o=1<<r,p=o+1,u=p+1,f=r+1,_=(1<<f)-1,x=0,C=0,L=0,v=t[n++],V=new Int32Array(4096),O=null;;){for(;x<16&&v!==0;)C|=t[n++]<<x,x+=8,v===1?v=t[n++]:--v;if(x<f)break;var G=C&_;if(C>>=f,x-=f,G!==o){if(G===p)break;for(var k=G<u?G:O,U=0,$=k;$>o;)$=V[$]>>8,++U;var he=$;if(L+U+(k!==G?1:0)>i)return void Xt.log("Warning, gif stream longer than expected.");e[L++]=he;var pe=L+=U;for(k!==G&&(e[L++]=he),$=k;U--;)$=V[$],e[--pe]=255&$,$>>=8;O!==null&&u<4096&&(V[u++]=O<<8|he,u>=_+1&&f<12&&(++f,_=_<<1|1)),O=G}else u=p+1,_=(1<<(f=r+1))-1,O=null}return L!==i&&Xt.log("Warning, gif stream shorter than expected."),e}function sd(t){var n,e,i,r,o,p=Math.floor,u=new Array(64),f=new Array(64),_=new Array(64),x=new Array(64),C=new Array(65535),L=new Array(65535),v=new Array(64),V=new Array(64),O=[],G=0,k=7,U=new Array(64),$=new Array(64),he=new Array(64),pe=new Array(256),Le=new Array(2048),de=[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],J=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],ue=[0,1,2,3,4,5,6,7,8,9,10,11],Pe=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[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],B=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],ee=[0,1,2,3,4,5,6,7,8,9,10,11],Y=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],_e=[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 fe(T,j){for(var W=0,X=0,ne=new Array,ce=1;ce<=16;ce++){for(var me=1;me<=T[ce];me++)ne[j[X]]=[],ne[j[X]][0]=W,ne[j[X]][1]=ce,X++,W++;W*=2}return ne}function xe(T){for(var j=T[0],W=T[1]-1;W>=0;)j&1<<W&&(G|=1<<k),W--,--k<0&&(G==255?(le(255),le(0)):le(G),k=7,G=0)}function le(T){O.push(T)}function Ce(T){le(T>>8&255),le(255&T)}function Ae(T,j,W,X,ne){for(var ce,me=ne[0],ge=ne[240],je=function(Be,Ve){var Ke,Ge,at,vt,Pt,Tt,Dt,Wt,mt,Et,Xe=0;for(mt=0;mt<8;++mt){Ke=Be[Xe],Ge=Be[Xe+1],at=Be[Xe+2],vt=Be[Xe+3],Pt=Be[Xe+4],Tt=Be[Xe+5],Dt=Be[Xe+6];var zi=Ke+(Wt=Be[Xe+7]),Ft=Ke-Wt,Vn=Ge+Dt,$t=Ge-Dt,ii=at+Tt,lr=at-Tt,qt=vt+Pt,_a=vt-Pt,li=zi+qt,zn=zi-qt,Tr=Vn+ii,ci=Vn-ii;Be[Xe]=li+Tr,Be[Xe+4]=li-Tr;var _t=.707106781*(ci+zn);Be[Xe+2]=zn+_t,Be[Xe+6]=zn-_t;var Ut=.382683433*((li=_a+lr)-(ci=$t+Ft)),ya=.5411961*li+Ut,Ri=1.306562965*ci+Ut,cr=.707106781*(Tr=lr+$t),pr=Ft+cr,pt=Ft-cr;Be[Xe+5]=pt+ya,Be[Xe+3]=pt-ya,Be[Xe+1]=pr+Ri,Be[Xe+7]=pr-Ri,Xe+=8}for(Xe=0,mt=0;mt<8;++mt){Ke=Be[Xe],Ge=Be[Xe+8],at=Be[Xe+16],vt=Be[Xe+24],Pt=Be[Xe+32],Tt=Be[Xe+40],Dt=Be[Xe+48];var Wn=Ke+(Wt=Be[Xe+56]),dr=Ke-Wt,sn=Ge+Dt,Ni=Ge-Dt,Si=at+Tt,yn=at-Tt,Ha=vt+Pt,Nr=vt-Pt,Hn=Wn+Ha,Gn=Wn-Ha,Yn=sn+Si,ur=sn-Si;Be[Xe]=Hn+Yn,Be[Xe+32]=Hn-Yn;var In=.707106781*(ur+Gn);Be[Xe+16]=Gn+In,Be[Xe+48]=Gn-In;var fr=.382683433*((Hn=Nr+yn)-(ur=Ni+dr)),ba=.5411961*Hn+fr,Ga=1.306562965*ur+fr,Ya=.707106781*(Yn=yn+Ni),Ja=dr+Ya,$a=dr-Ya;Be[Xe+40]=$a+ba,Be[Xe+24]=$a-ba,Be[Xe+8]=Ja+Ga,Be[Xe+56]=Ja-Ga,Xe++}for(mt=0;mt<64;++mt)Et=Be[mt]*Ve[mt],v[mt]=Et>0?Et+.5|0:Et-.5|0;return v}(T,j),Oe=0;Oe<64;++Oe)V[de[Oe]]=je[Oe];var Ye=V[0]-W;W=V[0],Ye==0?xe(X[0]):(xe(X[L[ce=32767+Ye]]),xe(C[ce]));for(var We=63;We>0&&V[We]==0;)We--;if(We==0)return xe(me),W;for(var ut,Se=1;Se<=We;){for(var H=Se;V[Se]==0&&Se<=We;)++Se;var xt=Se-H;if(xt>=16){ut=xt>>4;
vendor: 10,836 bytes, line 21
21for(var rt=1;rt<=ut;++rt)xe(ge);xt&=15}ce=32767+V[Se],xe(ne[(xt<<4)+L[ce]]),xe(C[ce]),Se++}return We!=63&&xe(me),W}function $e(T){T=Math.min(Math.max(T,1),100),o!=T&&(function(j){for(var W=[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],X=0;X<64;X++){var ne=p((W[X]*j+50)/100);ne=Math.min(Math.max(ne,1),255),u[de[X]]=ne}for(var ce=[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],me=0;me<64;me++){var ge=p((ce[me]*j+50)/100);ge=Math.min(Math.max(ge,1),255),f[de[me]]=ge}for(var je=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Oe=0,Ye=0;Ye<8;Ye++)for(var We=0;We<8;We++)_[Oe]=1/(u[de[Oe]]*je[Ye]*je[We]*8),x[Oe]=1/(f[de[Oe]]*je[Ye]*je[We]*8),Oe++}(T<50?Math.floor(5e3/T):Math.floor(200-2*T)),o=T)}this.encode=function(T,j){j&&$e(j),O=new Array,G=0,k=7,Ce(65496),Ce(65504),Ce(16),le(74),le(70),le(73),le(70),le(0),le(1),le(1),le(0),Ce(1),Ce(1),le(0),le(0),function(){Ce(65499),Ce(132),le(0);for(var Ge=0;Ge<64;Ge++)le(u[Ge]);le(1);for(var at=0;at<64;at++)le(f[at])}(),function(Ge,at){Ce(65472),Ce(17),le(8),Ce(at),Ce(Ge),le(3),le(1),le(17),le(0),le(2),le(17),le(1),le(3),le(17),le(1)}(T.width,T.height),function(){Ce(65476),Ce(418),le(0);for(var Ge=0;Ge<16;Ge++)le(J[Ge+1]);for(var at=0;at<=11;at++)le(ue[at]);le(16);for(var vt=0;vt<16;vt++)le(Pe[vt+1]);for(var Pt=0;Pt<=161;Pt++)le(D[Pt]);le(1);for(var Tt=0;Tt<16;Tt++)le(B[Tt+1]);for(var Dt=0;Dt<=11;Dt++)le(ee[Dt]);le(17);for(var Wt=0;Wt<16;Wt++)le(Y[Wt+1]);for(var mt=0;mt<=161;mt++)le(_e[mt])}(),Ce(65498),Ce(12),le(3),le(1),le(0),le(2),le(17),le(3),le(17),le(0),le(63),le(0);var W=0,X=0,ne=0;G=0,k=7,this.encode.displayName="_encode_";for(var ce,me,ge,je,Oe,Ye,We,ut,Se,H=T.data,xt=T.width,rt=T.height,Be=4*xt,Ve=0;Ve<rt;){for(ce=0;ce<Be;){for(Oe=Be*Ve+ce,We=-1,ut=0,Se=0;Se<64;Se++)Ye=Oe+(ut=Se>>3)*Be+(We=4*(7&Se)),Ve+ut>=rt&&(Ye-=Be*(Ve+1+ut-rt)),ce+We>=Be&&(Ye-=ce+We-Be+4),me=H[Ye++],ge=H[Ye++],je=H[Ye++],U[Se]=(Le[me]+Le[ge+256>>0]+Le[je+512>>0]>>16)-128,$[Se]=(Le[me+768>>0]+Le[ge+1024>>0]+Le[je+1280>>0]>>16)-128,he[Se]=(Le[me+1280>>0]+Le[ge+1536>>0]+Le[je+1792>>0]>>16)-128;W=Ae(U,_,W,n,i),X=Ae($,x,X,e,r),ne=Ae(he,x,ne,e,r),ce+=32}Ve+=8}if(k>=0){var Ke=[];Ke[1]=k+1,Ke[0]=(1<<k+1)-1,xe(Ke)}return Ce(65497),new Uint8Array(O)},t=t||50,function(){for(var T=String.fromCharCode,j=0;j<256;j++)pe[j]=T(j)}(),n=fe(J,ue),e=fe(B,ee),i=fe(Pe,D),r=fe(Y,_e),function(){for(var T=1,j=2,W=1;W<=15;W++){for(var X=T;X<j;X++)L[32767+X]=W,C[32767+X]=[],C[32767+X][1]=W,C[32767+X][0]=X;for(var ne=-(j-1);ne<=-T;ne++)L[32767+ne]=W,C[32767+ne]=[],C[32767+ne][1]=W,C[32767+ne][0]=j-1+ne;T<<=1,j<<=1}}(),function(){for(var T=0;T<256;T++)Le[T]=19595*T,Le[T+256>>0]=38470*T,Le[T+512>>0]=7471*T+32768,Le[T+768>>0]=-11059*T,Le[T+1024>>0]=-21709*T,Le[T+1280>>0]=32768*T+8421375,Le[T+1536>>0]=-27439*T,Le[T+1792>>0]=-5329*T}(),$e(t)}function ar(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function k1(t){function n(J){if(!J)throw Error("assert :P")}function e(J,ue,Pe){for(var D=0;4>D;D++)if(J[ue+D]!=Pe.charCodeAt(D))return!0;return!1}function i(J,ue,Pe,D,B){for(var ee=0;ee<B;ee++)J[ue+ee]=Pe[D+ee]}function r(J,ue,Pe,D){for(var B=0;B<D;B++)J[ue+B]=Pe}function o(J){return new Int32Array(J)}function p(J,ue){for(var Pe=[],D=0;D<J;D++)Pe.push(new ue);return Pe}function u(J,ue){var Pe=[];return function D(B,ee,Y){for(var _e=Y[ee],fe=0;fe<_e&&(B.push(Y.length>ee+1?[]:new ue),!(Y.length<ee+1));fe++)D(B[fe],ee+1,Y)}(Pe,0,J),Pe}var f=function(){var J=this;function ue(a,s){for(var d=1<<s-1>>>0;a&d;)d>>>=1;return d?(a&d-1)+d:a}function Pe(a,s,d,m,y){n(!(m%d));do a[s+(m-=d)]=y;while(0<m)}function D(a,s,d,m,y){if(n(2328>=y),512>=y)var P=o(512);else if((P=o(y))==null)return 0;return function(I,E,M,F,Q,oe){var se,ie,Ne=E,be=1<<M,Z=o(16),te=o(16);for(n(Q!=0),n(F!=null),n(I!=null),n(0<M),ie=0;ie<Q;++ie){if(15<F[ie])return 0;++Z[F[ie]]}if(Z[0]==Q)return 0;for(te[1]=0,se=1;15>se;++se){if(Z[se]>1<<se)return 0;te[se+1]=te[se]+Z[se]}for(ie=0;ie<Q;++ie)se=F[ie],0<F[ie]&&(oe[te[se]++]=ie);if(te[15]==1)return(F=new B).g=0,F.value=oe[0],Pe(I,Ne,1,be,F),be;var Ie,Ee=-1,Te=be-1,et=0,ze=1,lt=1,He=1<<M;for(ie=0,se=1,Q=2;se<=M;++se,Q<<=1){if(ze+=lt<<=1,0>(lt-=Z[se]))return 0;for(;0<Z[se];--Z[se])(F=new B).g=se,F.value=oe[ie++],Pe(I,Ne+et,Q,He,F),et=ue(et,se)}for(se=M+1,Q=2;15>=se;++se,Q<<=1){if(ze+=lt<<=1,0>(lt-=Z[se]))return 0;for(;0<Z[se];--Z[se]){if(F=new B,(et&Te)!=Ee){for(Ne+=He,Ie=1<<(Ee=se)-M;15>Ee&&!(0>=(Ie-=Z[Ee]));)++Ee,Ie<<=1;be+=He=1<<(Ie=Ee-M),I[E+(Ee=et&Te)].g=Ie+M,I[E+Ee].value=Ne-E-Ee}F.g=se-M,F.value=oe[ie++],Pe(I,Ne+(et>>M),Q,He,F),et=ue(et,se)}}return ze!=2*te[15]-1?0:be}(a,s,d,m,y,P)}function B(){this.value=this.g=0}function ee(){this.value=this.g=0}function Y(){this.G=p(5,B),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=p(ji,ee)}function _e(a,s,d,m){n(a!=null),n(s!=null),n(2147483648>m),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=s,a.pa=d,a.Jd=s,a.Yc=d+m,a.Zc=4<=m?d+m-4+1:d,ce(a)}function fe(a,s){for(var d=0;0<s--;)d|=ge(a,128)<<s;return d}function xe(a,s){var d=fe(a,s);return me(a)?-d:d}function le(a,s,d,m){var y,P=0;for(n(a!=null),n(s!=null),n(4294967288>m),a.Sb=m,a.Ra=0,a.u=0,a.h=0,4<m&&(m=4),y=0;y<m;++y)P+=s[d+y]<<8*y;a.Ra=P,a.bb=m,a.oa=s,a.pa=d}function Ce(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<po-8>>>0,++a.bb,a.u-=8;W(a)&&(a.h=1,a.u=0)}function Ae(a,s){if(n(0<=s),!a.h&&s<=co){var d=j(a)&lo[s];return a.u+=s,Ce(a),d}return a.h=1,a.u=0}function $e(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function T(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function j(a){return a.Ra>>>(a.u&po-1)>>>0}function W(a){return n(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>po}function X(a,s){a.u=s,a.h=W(a)}function ne(a){a.u>=ps&&(n(a.u>=ps),Ce(a))}function ce(a){n(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(n(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function me(a){return fe(a,1)}function ge(a,s){var d=a.Ca;0>a.b&&ce(a);var m=a.b,y=d*s>>>8,P=(a.I>>>m>y)+0;for(P?(d-=y,a.I-=y+1<<m>>>0):d=y+1,m=d,y=0;256<=m;)y+=8,m>>=8;return m=7^y+cn[m],a.b-=m,a.Ca=(d<<m)-1,P}function je(a,s,d){a[s+0]=d>>24&255,a[s+1]=d>>16&255,a[s+2]=d>>8&255,a[s+3]=d>>0&255}function Oe(a,s){return a[s+0]<<0|a[s+1]<<8}function Ye(a,s){return Oe(a,s)|a[s+2]<<16}function We(a,s){return Oe(a,s)|Oe(a,s+2)<<16}function ut(a,s){var d=1<<s;return n(a!=null),n(0<s),a.X=o(d),a.X==null?0:(a.Mb=32-s,a.Xa=s,1)}function Se(a,s){n(a!=null),n(s!=null),n(a.Xa==s.Xa),i(s.X,0,a.X,0,1<<s.Xa)}function H(){this.X=[],this.Xa=this.Mb=0}function xt(a,s,d,m){n(d!=null),n(m!=null);var y=d[0],P=m[0];return y==0&&(y=(a*P+s/2)/s),P==0&&(P=(s*y+a/2)/a),0>=y||0>=P?0:(d[0]=y,m[0]=P,1)}function rt(a,s){return a+(1<<s)-1>>>s}function Be(a,s){return((4278255360&a)+(4278255360&s)>>>0&4278255360)+((16711935&a)+(16711935&s)>>>0&16711935)>>>0}function Ve(a,s){J[s]=function(d,m,y,P,I,E,M){var F;for(F=0;F<I;++F){var Q=J[a](E[M+F-1],y,P+F);E[M+F]=Be(d[m+F],Q)}}}function Ke(){this.ud=this.hd=this.jd=0}function Ge(a,s){return((4278124286&(a^s))>>>1)+(a&s)>>>0}function at(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function vt(a,s){return at(a+(a-s+.5>>1))}function Pt(a,s,d){return Math.abs(s-d)-Math.abs(a-d)}function Tt(a,s,d,m,y,P,I){for(m=P[I-1],d=0;d<y;++d)P[I+d]=m=Be(a[s+d],m)}function Dt(a,s,d,m,y){var P;for(P=0;P<d;++P){var I=a[s+P],E=I>>8&255,M=16711935&(M=(M=16711935&I)+((E<<16)+E));m[y+P]=(4278255360&I)+M>>>0}}function Wt(a,s){s.jd=a>>0&255,s.hd=a>>8&255,s.ud=a>>16&255}function mt(a,s,d,m,y,P){var I;for(I=0;I<m;++I){var E=s[d+I],M=E>>>8,F=E,Q=255&(Q=(Q=E>>>16)+((a.jd<<24>>24)*(M<<24>>24)>>>5));F=255&(F=(F=F+((a.hd<<24>>24)*(M<<24>>24)>>>5))+((a.ud<<24>>24)*(Q<<24>>24)>>>5)),y[P+I]=(4278255360&E)+(Q<<16)+F}}function Et(a,s,d,m,y){J[s]=function(P,I,E,M,F,Q,oe,se,ie){for(M=oe;M<se;++M)for(oe=0;oe<ie;++oe)F[Q++]=y(E[m(P[I++])])},J[a]=function(P,I,E,M,F,Q,oe){var se=8>>P.b,ie=P.Ea,Ne=P.K[0],be=P.w;if(8>se)for(P=(1<<P.b)-1,be=(1<<se)-1;I<E;++I){var Z,te=0;for(Z=0;Z<ie;++Z)Z&P||(te=m(M[F++])),Q[oe++]=y(Ne[te&be]),te>>=se}else J["VP8LMapColor"+d](M,F,Ne,be,Q,oe,I,E,ie)}}function Xe(a,s,d,m,y){for(d=s+d;s<d;){var P=a[s++];m[y++]=P>>16&255,m[y++]=P>>8&255,m[y++]=P>>0&255}}function zi(a,s,d,m,y){for(d=s+d;s<d;){var P=a[s++];m[y++]=P>>16&255,m[y++]=P>>8&255,m[y++]=P>>0&255,m[y++]=P>>24&255}}function Ft(a,s,d,m,y){for(d=s+d;s<d;){var P=(I=a[s++])>>16&240|I>>12&15,I=I>>0&240|I>>28&15;m[y++]=P,m[y++]=I}}function Vn(a,s,d,m,y){for(d=s+d;s<d;){var P=(I=a[s++])>>16&248|I>>13&7,I=I>>5&224|I>>3&31;m[y++]=P,m[y++]=I}}function $t(a,s,d,m,y){for(d=s+d;s<d;){var P=a[s++];m[y++]=P>>0&255,m[y++]=P>>8&255,m[y++]=P>>16&255}}function ii(a,s,d,m,y,P){if(P==0)for(d=s+d;s<d;)je(m,((P=a[s++])[0]>>24|P[1]>>8&65280|P[2]<<8&16711680|P[3]<<24)>>>0),y+=32;else i(m,y,a,s,d)}function lr(a,s){J[s][0]=J[a+"0"],J[s][1]=J[a+"1"],J[s][2]=J[a+"2"],J[s][3]=J[a+"3"],J[s][4]=J[a+"4"],J[s][5]=J[a+"5"],J[s][6]=J[a+"6"],J[s][7]=J[a+"7"],J[s][8]=J[a+"8"],J[s][9]=J[a+"9"],J[s][10]=J[a+"10"],J[s][11]=J[a+"11"],J[s][12]=J[a+"12"],J[s][13]=J[a+"13"],J[s][14]=J[a+"0"],J[s][15]=J[a+"0"]}function qt(a){return a==Jc||a==$c||a==ol||a==Kc}function _a(){this.eb=[],this.size=this.A=this.fb=0}function li(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function zn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new _a,this.f.kb=new li,this.sd=null}function Tr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ci(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function _t(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function Ut(a,s){var d=a.T,m=s.ba.f.RGBA,y=m.eb,P=m.fb+a.ka*m.A,I=kn[s.ba.S],E=a.y,M=a.O,F=a.f,Q=a.N,oe=a.ea,se=a.W,ie=s.cc,Ne=s.dc,be=s.Mc,Z=s.Nc,te=a.ka,Ie=a.ka+a.T,Ee=a.U,Te=Ee+1>>1;for(te==0?I(E,M,null,null,F,Q,oe,se,F,Q,oe,se,y,P,null,null,Ee):(I(s.ec,s.fc,E,M,ie,Ne,be,Z,F,Q,oe,se,y,P-m.A,y,P,Ee),++d);te+2<Ie;te+=2)ie=F,Ne=Q,be=oe,Z=se,Q+=a.Rc,se+=a.Rc,P+=2*m.A,I(E,(M+=2*a.fa)-a.fa,E,M,ie,Ne,be,Z,F,Q,oe,se,y,P-m.A,y,P,Ee);return M+=a.fa,a.j+Ie<a.o?(i(s.ec,s.fc,E,M,Ee),i(s.cc,s.dc,F,Q,Te),i(s.Mc,s.Nc,oe,se,Te),d--):1&Ie||I(E,M,null,
21null,F,Q,oe,se,F,Q,oe,se,y,P+m.A,null,null,Ee),d}function ya(a,s,d){var m=a.F,y=[a.J];if(m!=null){var P=a.U,I=s.ba.S,E=I==al||I==ol;s=s.ba.f.RGBA;var M=[0],F=a.ka;M[0]=a.T,a.Kb&&(F==0?--M[0]:(--F,y[0]-=a.width),a.j+a.ka+a.T==a.o&&(M[0]=a.o-a.j-F));var Q=s.eb;F=s.fb+F*s.A,a=Zt(m,y[0],a.width,P,M,Q,F+(E?0:3),s.A),n(d==M),a&&qt(I)&&Ln(Q,F,E,P,M,s.A)}return 0}function Ri(a){var s=a.ma,d=s.ba.S,m=11>d,y=d==nl||d==rl||d==al||d==Yc||d==12||qt(d);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!ls(s.Oa,a,y?11:12))return 0;if(y&&qt(d)&&Me(),a.da)alert("todo:use_scaling");else{if(m){if(s.Ib=_t,a.Kb){if(d=a.U+1>>1,s.memory=o(a.U+2*d),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+a.U,s.Mc=s.cc,s.Nc=s.dc+d,s.Ib=Ut,Me()}}else alert("todo:EmitYUV");y&&(s.Jb=ya,m&&re())}if(m&&!Id){for(a=0;256>a;++a)vf[a]=89858*(a-128)+ll>>sl,bf[a]=-22014*(a-128)+ll,yf[a]=-45773*(a-128),_f[a]=113618*(a-128)+ll>>sl;for(a=vs;a<Zc;++a)s=76283*(a-16)+ll>>sl,xf[a-vs]=bn(s,255),wf[a-vs]=bn(s+8>>4,15);Id=1}return 1}function cr(a){var s=a.ma,d=a.U,m=a.T;return n(!(1&a.ka)),0>=d||0>=m?0:(d=s.Ib(a,s),s.Jb!=null&&s.Jb(a,s,d),s.Dc+=d,1)}function pr(a){a.ma.memory=null}function pt(a,s,d,m){return Ae(a,8)!=47?0:(s[0]=Ae(a,14)+1,d[0]=Ae(a,14)+1,m[0]=Ae
vendor: 4,773 bytes, line 21
21(a,1),Ae(a,3)!=0?0:!a.h)}function Wn(a,s){if(4>a)return a+1;var d=a-2>>1;return(2+(1&a)<<d)+Ae(s,d)+1}function dr(a,s){return 120<s?s-120:1<=(d=((d=nf[s-1])>>4)*a+(8-(15&d)))?d:1;var d}function sn(a,s,d){var m=j(d),y=a[s+=255&m].g-8;return 0<y&&(X(d,d.u+8),m=j(d),s+=a[s].value,s+=m&(1<<y)-1),X(d,d.u+a[s].g),a[s].value}function Ni(a,s,d){return d.g+=a.g,d.value+=a.value<<s>>>0,n(8>=d.g),a.g}function Si(a,s,d){var m=a.xc;return n((s=m==0?0:a.vc[a.md*(d>>m)+(s>>m)])<a.Wb),a.Ya[s]}function yn(a,s,d,m){var y=a.ab,P=a.c*s,I=a.C;s=I+s;var E=d,M=m;for(m=a.Ta,d=a.Ua;0<y--;){var F=a.gc[y],Q=I,oe=s,se=E,ie=M,Ne=(M=m,E=d,F.Ea);switch(n(Q<oe),n(oe<=F.nc),F.hc){case 2:Ks(se,ie,(oe-Q)*Ne,M,E);break;case 0:var be=Q,Z=oe,te=M,Ie=E,Ee=(He=F).Ea;be==0&&(Hc(se,ie,null,null,1,te,Ie),Tt(se,ie+1,0,0,Ee-1,te,Ie+1),ie+=Ee,Ie+=Ee,++be);for(var Te=1<<He.b,et=Te-1,ze=rt(Ee,He.b),lt=He.K,He=He.w+(be>>He.b)*ze;be<Z;){var Rt=lt,Vt=He,Bt=1;for(ds(se,ie,te,Ie-Ee,1,te,Ie);Bt<Ee;){var Mt=(Bt&~et)+Te;Mt>Ee&&(Mt=Ee),(0,Yr[Rt[Vt++]>>8&15])(se,ie+ +Bt,te,Ie+Bt-Ee,Mt-Bt,te,Ie+Bt),Bt=Mt}ie+=Ee,Ie+=Ee,++be&et||(He+=ze)}oe!=F.nc&&i(M,E-Ne,M,E+(oe-Q-1)*Ne,Ne);break;case 1:for(Ne=se,Z=ie,Ee=(se=F.Ea)-(Ie=se&~(te=(ie=1<<F.b)-1)),be=rt(se,F.b),Te=F.K,F=F.w+(Q>>F.b)*be;Q<oe;){for(et=Te,ze=F,lt=new Ke,He=Z+Ie,Rt=Z+se;Z<He;)Wt(et[ze++],lt),Pa(lt,Ne,Z,ie,M,E),Z+=ie,E+=ie;Z<Rt&&(Wt(et[ze++],lt),Pa(lt,Ne,Z,Ee,M,E),Z+=Ee,E+=Ee),++Q&te||(F+=be)}break;case 3:if(se==M&&ie==E&&0<F.b){for(Z=M,se=Ne=E+(oe-Q)*Ne-(Ie=(oe-Q)*rt(F.Ea,F.b)),ie=M,te=E,be=[],Ie=(Ee=Ie)-1;0<=Ie;--Ie)be[Ie]=ie[te+Ie];for(Ie=Ee-1;0<=Ie;--Ie)Z[se+Ie]=be[Ie];Tn(F,Q,oe,M,Ne,M,E)}else Tn(F,Q,oe,se,ie,M,E)}E=m,M=d}M!=d&&i(m,d,E,M,P)}function Ha(a,s){var d=a.V,m=a.Ba+a.c*a.C,y=s-a.C;if(n(s<=a.l.o),n(16>=y),0<y){var P=a.l,I=a.Ta,E=a.Ua,M=P.width;if(yn(a,y,d,m),y=E=[E],n((d=a.C)<(m=s)),n(P.v<P.va),m>P.o&&(m=P.o),d<P.j){var F=P.j-d;d=P.j,y[0]+=F*M}if(d>=m?d=0:(y[0]+=4*P.v,P.ka=d-P.j,P.U=P.va-P.v,P.T=m-d,d=1),d){if(E=E[0],11>(d=a.ca).S){var Q=d.f.RGBA,oe=(m=d.S,y=P.U,P=P.T,F=Q.eb,Q.A),se=P;for(Q=Q.fb+a.Ma*Q.A;0<se--;){var ie=I,Ne=E,be=y,Z=F,te=Q;switch(m){case il:pn(ie,Ne,be,Z,te);break;case nl:Zi(ie,Ne,be,Z,te);break;case Jc:Zi(ie,Ne,be,Z,te),Ln(Z,te,0,be,1,0);break;case vd:kr(ie,Ne,be,Z,te);break;case rl:ii(ie,Ne,be,Z,te,1);break;case $c:ii(ie,Ne,be,Z,te,1),Ln(Z,te,0,be,1,0);break;case al:ii(ie,Ne,be,Z,te,0);break;case ol:ii(ie,Ne,be,Z,te,0),Ln(Z,te,1,be,1,0);break;case Yc:Jr(ie,Ne,be,Z,te);break;case Kc:Jr(ie,Ne,be,Z,te),Qt(Z,te,be,1,0);break;case _d:Mr(ie,Ne,be,Z,te);break;default:n(0)}E+=M,Q+=oe}a.Ma+=P}else alert("todo:EmitRescaledRowsYUVA");n(a.Ma<=d.height)}}a.C=s,n(a.C<=a.i)}function Nr(a){var s;if(0<a.ua)return 0;for(s=0;s<a.Wb;++s){var d=a.Ya[s].G,m=a.Ya[s].H;if(0<d[1][m[1]+0].g||0<d[2][m[2]+0].g||0<d[3][m[3]+0].g)return 0}return 1}function Hn(a,s,d,m,y,P){if(a.Z!=0){var I=a.qd,E=a.rd;for(n(Qr[a.Z]!=null);s<d;++s)Qr[a.Z](I,E,m,y,m,y,P),I=m,E=y,y+=P;a.qd=I,a.rd=E}}function Gn(a,s){var d=a.l.ma,m=d.Z==0||d.Z==1?a.l.j:a.C;if(m=a.C<m?m:a.C,n(s<=a.l.o),s>m){var y=a.l.width,P=d.ca,I=d.tb+y*m,E=a.V,M=a.Ba+a.c*m,F=a.gc;n(a.ab==1),n(F[0].hc==3),Xs(F[0],m,s,E,M,P,I),Hn(d,m,s,P,I,y)}a.C=a.Ma=s}function Yn(a,s,d,m,y,P,I){var E=a.$/m,M=a.$%m,F=a.m,Q=a.s,oe=d+a.$,se=oe;y=d+m*y;var ie=d+m*P,Ne=280+Q.ua,be=a.Pb?E:16777216,Z=0<Q.ua?Q.Wa:null,te=Q.wc,Ie=oe<ie?Si(Q,M,E):null;n(a.C<P),n(ie<=y);var Ee=!1;e:for(;;){for(;Ee||oe<ie;){var Te=0;if(E>=be){var et=oe-d;n((be=a).Pb),be.wd=be.m,be.xd=et,0<be.s.ua&&Se(be.s.Wa,be.s.vb),be=E+af}if(M&te||(Ie=Si(Q,M,E)),n(Ie!=null),Ie.Qb&&(s[oe]=Ie.qb,Ee=!0),!Ee)if(ne(F),Ie.jc){Te=F,et=s;var ze=oe,lt=Ie.pd[j(Te)&ji-1];n(Ie.jc),256>lt.g?(X(Te,Te.u+lt.g),et[ze]=lt.value,Te=0):(X(Te,Te.u+lt.g-256),n(256<=lt.value),Te=lt.value),Te==0&&(Ee=!0)}else Te=sn(Ie.G[0],Ie.H[0],F);if(F.h)break;if(Ee||256>Te){if(!Ee)if(Ie.nd)s[oe]=(Ie.qb|Te<<8)>>>0;else{if(ne(F),Ee=sn(Ie.G[1],Ie.H[1],F),ne(F),et=sn(Ie.G[2],Ie.H[2],F),ze=sn(Ie.G[3],Ie.H[3],F),F.h)break;s[oe]=(ze<<24|Ee<<16|Te<<8|et)>>>0}if(Ee=!1,++oe,++M>=m&&(M=0,++E,I!=null&&E<=P&&!(E%16)&&I(a,E),Z!=null))for(;se<oe;)Te=s[se++],Z.X[(506832829*Te&4294967295)>>>Z.Mb]=Te}else if(280>Te){if(Te=Wn(Te-256,F),et=sn(Ie.G[4],Ie.H[4],F),ne(F),et=dr(m,et=Wn(et,F)),F.h)break;if(oe-d<et||y-oe<Te)break e;for(ze=0;ze<Te;++ze)s[oe+ze]=s[oe+ze-et];for(oe+=Te,M+=Te;M>=m;)M-=m,++E,I!=null&&E<=P&&!(E%16)&&I(a,E);if(n(oe<=y),M&te&&(Ie=Si(Q,M,E)),Z!=null)for(;se<oe;)Te=s[se++],Z.X[(506832829*Te&4294967295)>>>Z.Mb]=Te}else{if(!(Te<Ne))break e;for(Ee=Te-280,n(Z!=null);se<oe;)Te=s[se++],Z.X[(506832829*Te&4294967295)>>>Z.Mb]=Te;Te=oe,n(!(Ee>>>(et=Z).Xa)),s[Te]=et.X[Ee],Ee=!0}Ee||n(F.h==W(F))}if(a.Pb&&F.h&&oe<y)n(a.m.h),a.a=5,a.m=a.wd,a.$=a.xd,0<a.s.ua&&Se(a.s.vb,a.s.Wa);else{if(F.h)break e;I?.(a,E>P?P:E),a.a=0,a.$=oe-d}return 1}return a.a=3,0}
21function ur(a){n(a!=null),a.vc=null,a.yc=null,a.Ya=null;var s=a.Wa;s!=null&&(s.X=null),a.vb=null,n(a!=null)}function In(){var a=new Wc;return a==null?null:(a.a=0,a.xb=xd,lr("Predictor","VP8LPredictors"),lr("Predictor","VP8LPredictors_C"),lr("PredictorAdd","VP8LPredictorsAdd"),lr("PredictorAdd","VP8LPredictorsAdd_C"),Ks=Dt,Pa=mt,pn=Xe,Zi=zi,Jr=Ft,Mr=Vn,kr=$t,J.VP8LMapColor32b=uo,J.VP8LMapColor8b=Qs,a)}function fr(a,s,d,m,y){var P=1,I=[a],E=[s],M=m.m,F=m.s,Q=null,oe=0;e:for(;;){if(d)for(;P&&Ae(M,1);){var se=I,ie=E,Ne=m,be=1,Z=Ne.m,te=Ne.gc[Ne.ab],Ie=Ae(Z,2);if(Ne.Oc&1<<Ie)P=0;else{switch(Ne.Oc|=1<<Ie,te.hc=Ie,te.Ea=se[0],te.nc=ie[0],te.K=[null],++Ne.ab,n(4>=Ne.ab),Ie){case 0:case 1:te.b=Ae(Z,3)+2,be=fr(rt(te.Ea,te.b),rt(te.nc,te.b),0,Ne,te.K),te.K=te.K[0];break;case 3:var Ee,Te=Ae(Z,8)+1,et=16<Te?0:4<Te?1:2<Te?2:3;if(se[0]=rt(te.Ea,et),te.b=et,Ee=be=fr(Te,1,0,Ne,te.K)){var ze,lt=Te,He=te,Rt=1<<(8>>He.b),Vt=o(Rt);if(Vt==null)Ee=0;else{var Bt=He.K[0],Mt=He.w;for(Vt[0]=He.K[0][0],ze=1;ze<1*lt;++ze)Vt[ze]=Be(Bt[Mt+ze],Vt[ze-1]);for(;ze<4*Rt;++ze)Vt[ze]=0;He.K[0]=null,He.K[0]=Vt,Ee=1}}be=Ee;break;case 2:break;default:n(0)}P=be}}if(I=I[0],E=E[0],P&&Ae(M,1)&&!(P=1<=(oe=Ae(M,4))&&11>=oe)){m.a=3;break e}var Kt;if(Kt=P)t:{var Ht,Ct,Ai,dn=m,Ii=I,un=E,zt=oe,wn=d,Cn=dn.m,Mi=dn.s,qi=[null],tn=1,Dn=0,vr=rf[zt];i:for(;;){if(wn&&Ae(Cn,1)){var ki=Ae(Cn,3)+2,Fr=rt(Ii,ki),Ea=rt(un,ki),vo=Fr*Ea;if(!fr(Fr,Ea,0,dn,qi))break i;for(qi=qi[0],Mi.xc=ki,Ht=0;Ht<vo;++Ht){var Zr=qi[Ht]>>8&65535;qi[Ht]=Zr,Zr>=tn&&(tn=Zr+1)}}if(Cn.h)break i;for(Ct=0;5>Ct;++Ct){var di=yd[Ct];!Ct&&0<zt&&(di+=1<<zt),Dn<di&&(Dn=di)}var ep=p(tn*vr,B),Ed=tn,Ld=p(Ed,Y);if(Ld==null)var pl=null;else n(65536>=Ed),pl=Ld;var _s=o(Dn);if(pl==null||_s==null||ep==null){dn.a=1;break i}var dl=ep;for(Ht=Ai=0;Ht<tn;++Ht){var Qn=pl[Ht],_o=Qn.G,yo=Qn.H,Md=0,ul=1,kd=0;for(Ct=0;5>Ct;++Ct){di=yd[Ct],_o[Ct]=dl,yo[Ct]=Ai,!Ct&&0<zt&&(di+=1<<zt);r:{var fl,tp=di,ml=dn,ys=_s,Pf=dl,Af=Ai,ip=0,ea=ml.m,If=Ae(ea,1);if(r(ys,0,0,tp),If){var Tf=Ae(ea,1)+1,Nf=Ae(ea,1),Dd=Ae(ea,Nf==0?1:8);ys[Dd]=1,Tf==2&&(ys[Dd=Ae(ea,8)]=1);var hl=1}else{var Bd=o(19),Od=Ae(ea,4)+4;if(19<Od){ml.a=3;var gl=0;break r}for(fl=0;fl<Od;++fl)Bd[tf[fl]]=Ae(ea,3);var np=void 0,bs=void 0,Fd=ml,Ef=Bd,vl=tp,Rd=ys,rp=0,ta=Fd.m,jd=8,qd=p(128,B);n:for(;D(qd,0,7,Ef,19);){if(Ae(ta,1)){var Lf=2+2*Ae(ta,3);if((np=2+Ae(ta,Lf))>vl)break n}else np=vl;for(bs=0;bs<vl&&np--;){ne(ta);var Ud=qd[0+(127&j(ta))];X(ta,ta.u+Ud.g);var bo=Ud.value;if(16>bo)Rd[bs++]=bo,bo!=0&&(jd=bo);else{var Mf=bo==16,Vd=bo-16,kf=Z1[Vd],zd=Ae(ta,Q1[Vd])+kf;if(bs+zd>vl)break n;for(var Df=Mf?jd:0;0<zd--;)Rd[bs++]=Df}}rp=1;break n}rp||(Fd.a=3),hl=rp}(hl=hl&&!ea.h)&&(ip=D(Pf,Af,8,ys,tp)),hl&&ip!=0?gl=ip:(ml.a=3,gl=0)}if(gl==0)break i;if(ul&&ef[Ct]==1&&(ul=dl[Ai].g==0),Md+=dl[Ai].g,Ai+=gl,3>=Ct){var xs,ap=_s[0];for(xs=1;xs<di;
21++xs)_s[xs]>ap&&(ap=_s[xs]);kd+=ap}}if(Qn.nd=ul,Qn.Qb=0,ul&&(Qn.qb=(_o[3][yo[3]+0].value<<24|_o[1][yo[1]+0].value<<16|_o[2][yo[2]+0].value)>>>0,Md==0&&256>_o[0][yo[0]+0].value&&(Qn.Qb=1,Qn.qb+=_o[0][yo[0]+0].value<<8)),Qn.jc=!Qn.Qb&&6>kd,Qn.jc){var _l,Rr=Qn;for(_l=0;_l<ji;++_l){var ia=_l,na=Rr.pd[ia],yl=Rr.G[0][Rr.H[0]+ia];256<=yl.value?(na.g=yl.g+256,na.value=yl.value):(na.g=0,na.value=0,ia>>=Ni(yl,8,na),ia>>=Ni(Rr.G[1][Rr.H[1]+ia],16,na),ia>>=Ni(Rr.G[2][Rr.H[2]+ia],0,na),Ni(Rr.G[3][Rr.H[3]+ia],24,na))}}}Mi.vc=qi,Mi.Wb=tn,Mi.Ya=pl,Mi.yc=ep,Kt=1;break t}Kt=0}if(!(P=Kt)){m.a=3;break e}if(0<oe){if(F.ua=1<<oe,!ut(F.Wa,oe)){m.a=1,P=0;break e}}else F.ua=0;var op=m,Wd=I,Bf=E,sp=op.s,lp=sp.xc;if(op.c=Wd,op.i=Bf,sp.md=rt(Wd,lp),sp.wc=lp==0?-1:(1<<lp)-1,d){m.xb=uf;break e}if((Q=o(I*E))==null){m.a=1,P=0;break e}P=(P=Yn(m,Q,0,I,E,E,null))&&!M.h;break e}return P?(y!=null?y[0]=Q:(n(Q==null),n(d)),m.$=0,d||ur(F)):ur(F),P}function ba(a,s){var d=a.c*a.i,m=d+s+16*s;return n(a.c<=s),a.V=o(m),a.V==null?(a.Ta=null,a.Ua=0,a.a=1,0):(a.Ta=a.V,a.Ua=a.Ba+d+s,1)}function Ga(a,s){var d=a.C,m=s-d,y=a.V,P=a.Ba+a.c*d;for(n(s<=a.l.o);0<m;){var I=16<m?16:m,E=a.l.ma,M=a.l.width,F=M*I,Q=E.ca,oe=E.tb+M*d,se=a.Ta,ie=a.Ua;yn(a,I,y,P),gi(se,ie,Q,oe,F),Hn(E,d,d+I,Q,oe,M),m-=I,y+=I*a.c,d+=I}n(d==s),a.C=a.Ma=s}function Ya(){this.ub=this.yd=this.td=this.Rb=0}function Ja(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function $a(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Es(){this.Yb=function(){var a=[];return function s(d,m,y){for(var P=y[m],I=0;I<P&&(d.push(y.length>m+1?[]:0),!(y.length<m+1));I++)s(d[I],m+1,y)}(a,0,[3,11]),a}()}function xc(){this.jb=o(3),this.Wc=u([4,8],Es),this.Xc=u([4,17],Es)}function wc(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Ka(){this.ld=this.La=this.dd=this.tc=0}function Ls(){this.Na=this.la=0}function Cc(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Go(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Sc(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ka),this.Y=0,this.ya=Array(new Go),this.aa=0,this.l=new Xa}function Ms(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Pc(){this.cb=this.a=0,this.sc="",this.m=new $e,this.Od=new Ya,this.Kc=new Ja,this.ed=new wc,this.Qa=new $a,this.Ic=this.$c=this.Aa=0,this.D=new Sc,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=p(8,$e),this.ia=0,this.pb=p(4,Cc),this.Pa=new xc,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ms),this.Hd=0,this.rb=Array(new Ls),this.sb=0,this.wa=Array(new Ka),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Go),this.L=this.aa=0,this.gd=u([4,2],Ka),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Xa(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ac(){var a=new Pc;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,gs||(gs=Bs)),a}function mi(a,s,d){return a.a==0&&(a.a=s,a.sc=d,a.cb=0),0}function ks(a,s,d){return 3<=d&&a[s+0]==157&&a[s+1]==1&&a[s+2]==42}function Ds(a,s){if(a==null)return 0;if(a.a=0,a.sc="OK",s==null)return mi(a,2,"null VP8Io passed to VP8GetHeaders()");var d=s.data,m=s.w,y=s.ha;if(4>y)return mi(a,7,"Truncated header.");var P=d[m+0]|d[m+1]<<8|d[m+2]<<16,I=a.Od;if(I.Rb=!(1&P),I.td=P>>1&7,I.yd=P>>4&1,I.ub=P>>5,3<I.td)return mi(a,3,"Incorrect keyframe parameters.");if(!I.yd)return mi(a,4,"Frame not displayable.");m+=3,y-=3;var E=a.Kc;if(I.Rb){if(7>y)return mi(a,7,"cannot parse picture header");if(!ks(d,m,y))return mi(a,3,"Bad code word");E.c=16383&(d[m+4]<<8|d[m+3]),E.Td=d[m+4]>>6,E.i=16383&(d[m+6]<<8|d[m+5]),E.Ud=d[m+6]>>
216,m+=7,y-=7,a.za=E.c+15>>4,a.Ub=E.i+15>>4,s.width=E.c,s.height=E.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,r((P=a.Pa).jb,0,255,P.jb.length),n((P=a.Qa)!=null),P.Cb=0,P.Bb=0,P.Fb=1,r(P.Zb,0,0,P.Zb.length),r(P.Lb,0,0,P.Lb)}if(I.ub>y)return mi(a,7,"bad partition length");_e(P=a.m,d,m,I.ub),m+=I.ub,y-=I.ub,I.Rb&&(E.Ld=me(P),E.Kd=me(P)),E=a.Qa;var M,F=a.Pa;if(n(P!=null),n(E!=null),E.Cb=me(P),E.Cb){if(E.Bb=me(P),me(P)){for(E.Fb=me(P),M=0;4>M;++M)E.Zb[M]=me(P)?xe(P,7):0;for(M=0;4>M;++M)E.Lb[M]=me(P)?xe(P,6):0}if(E.Bb)for(M=0;3>M;++M)F.jb[M]=me(P)?fe(P,8):255}else E.Bb=0;if(P.Ka)return mi(a,3,"cannot parse segment header");if((E=a.ed).zd=me(P),E.Tb=fe(P,6),E.wb=fe(P,3),E.Pc=me(P),E.Pc&&me(P)){for(F=0;4>F;++F)me(P)&&(E.vd[F]=xe(P,6));for(F=0;4>F;++F)me(P)&&(E.od[F]=xe(P,6))}if(a.L=E.Tb==0?0:E.zd?1:2,P.Ka)return mi(a,3,"cannot parse filter header");var Q=y;if(y=M=m,m=M+Q,E=Q,a.Xb=(1<<fe(a.m,2))-1,Q<3*(F=a.Xb))d=7;else{for(M+=3*F,E-=3*F,Q=0;Q<F;++Q){var oe=d[y+0]|d[y+1]<<8|d[y+2]<<16;oe>E&&(oe=E),_e(a.Jc[+Q],d,M,oe),M+=oe,E-=oe,y+=3}_e(a.Jc[+F],d,M,E),d=M<m?0:5}if(d!=0)return mi(a,d,"cannot parse partitions");for(d=fe(M=a.m,7),y=me(M)?xe(M,4):0,m=me(M)?xe(M,4):0,E=me(M)?xe(M,4):0,F=me(M)?xe(M,4):0,M=me(M)?xe(M,4):0,Q=a.Qa,oe=0;4>oe;++oe){if(Q.Cb){var se=Q.Zb[oe];Q.Fb||(se+=d)}else{if(0<oe){a.pb[oe]=a.pb[0];continue}
vendor: 11,074 bytes, line 21
21se=d}var ie=a.pb[oe];ie.Sc[0]=Xc[bn(se+y,127)],ie.Sc[1]=Qc[bn(se+0,127)],ie.Eb[0]=2*Xc[bn(se+m,127)],ie.Eb[1]=101581*Qc[bn(se+E,127)]>>16,8>ie.Eb[1]&&(ie.Eb[1]=8),ie.Qc[0]=Xc[bn(se+F,117)],ie.Qc[1]=Qc[bn(se+M,127)],ie.lc=se+M}if(!I.Rb)return mi(a,4,"Not a key frame.");for(me(P),I=a.Pa,d=0;4>d;++d){for(y=0;8>y;++y)for(m=0;3>m;++m)for(E=0;11>E;++E)F=ge(P,pf[d][y][m][E])?fe(P,8):lf[d][y][m][E],I.Wc[d][y].Yb[m][E]=F;for(y=0;17>y;++y)I.Xc[d][y]=I.Wc[d][df[y]]}return a.kc=me(P),a.kc&&(a.Bd=fe(P,8)),a.cb=1}function Bs(a,s,d,m,y,P,I){var E=s[y].Yb[d];for(d=0;16>y;++y){if(!ge(a,E[d+0]))return y;for(;!ge(a,E[d+1]);)if(E=s[++y].Yb[0],d=0,y==16)return 16;var M=s[y+1].Yb;if(ge(a,E[d+2])){var F=a,Q=0;if(ge(F,(se=E)[(oe=d)+3]))if(ge(F,se[oe+6])){for(E=0,oe=2*(Q=ge(F,se[oe+8]))+(se=ge(F,se[oe+9+Q])),Q=0,se=of[oe];se[E];++E)Q+=Q+ge(F,se[E]);Q+=3+(8<<oe)}else ge(F,se[oe+7])?(Q=7+2*ge(F,165),Q+=ge(F,145)):Q=5+ge(F,159);else Q=ge(F,se[oe+4])?3+ge(F,se[oe+5]):2;E=M[2]}else Q=1,E=M[1];M=I+sf[y],0>(F=a).b&&ce(F);var oe,se=F.b,ie=(oe=F.Ca>>1)-(F.I>>se)>>31;--F.b,F.Ca+=ie,F.Ca|=1,F.I-=(oe+1&ie)<<se,P[M]=((Q^ie)-ie)*m[(0<y)+0]}return 16}function Yo(a){var s=a.rb[a.sb-1];s.la=0,s.Na=0,r(a.zc,0,0,a.zc.length),a.ja=0}function Ic(a,s){if(a==null)return 0;if(s==null)return mi(a,2,"NULL VP8Io parameter in VP8Decode().");if(!a.cb&&!Ds(a,s))return 0;if(n(a.cb),s.ac==null||s.ac(s)){s.ob&&(a.L=0);var d=cl[a.L];if(a.L==2?(a.yb=0,a.zb=0):(a.yb=s.v-d>>4,a.zb=s.j-d>>4,0>a.yb&&(a.yb=0),0>a.zb&&(a.zb=0)),a.Va=s.o+15+d>>4,a.Hb=s.va+15+d>>4,a.Hb>a.za&&(a.Hb=a.za),a.Va>a.Ub&&(a.Va=a.Ub),0<a.L){var m=a.ed;for(d=0;4>d;++d){var y;if(a.Qa.Cb){var P=a.Qa.Lb[d];a.Qa.Fb||(P+=m.Tb)}else P=m.Tb;for(y=0;1>=y;++y){var I=a.gd[d][y],E=P;if(m.Pc&&(E+=m.vd[0],y&&(E+=m.od[0])),0<(E=0>E?0:63<E?63:E)){var M=E;0<m.wb&&(M=4<m.wb?M>>2:M>>1)>9-m.wb&&(M=9-m.wb),1>M&&(M=1),I.dd=M,I.tc=2*E+M,I.ld=40<=E?2:15<=E?1:0}else I.tc=0;I.La=y}}}d=0}else mi(a,6,"Frame setup failed"),d=a.a;if(d=d==0){if(d){a.$c=0,0<a.Aa||(a.Ic=Sf);e:{d=a.Ic,m=4*(M=a.za);var F=32*M,Q=M+1,oe=0<a.L?M*(0<a.Aa?2:1):0,se=(a.Aa==2?2:1)*M;if((I=m+832+(y=3*(16*d+cl[a.L])/2*F)+(P=a.Fa!=null&&0<a.Fa.length?a.Kc.c*a.Kc.i:0))!=I)d=0;else{if(I>a.Vb){if(a.Vb=0,a.Ec=o(I),a.Fc=0,a.Ec==null){d=mi(a,1,"no memory during frame initialization.");break e}a.Vb=I}I=a.Ec,E=a.Fc,a.Ac=I,a.Bc=E,E+=m,a.Gd=p(F,Ms),a.Hd=0,a.rb=p(Q+1,Ls),a.sb=1,a.wa=oe?p(oe,Ka):null,a.Y=0,a.D.Nb=0,a.D.wa=a.wa,a.D.Y=a.Y,0<a.Aa&&(a.D.Y+=M),n(!0),a.oc=I,a.pc=E,E+=832,a.ya=p(se,Go),a.aa=0,a.D.ya=a.ya,a.D.aa=a.aa,a.Aa==2&&(a.D.aa+=M),a.R=16*M,a.B=8*M,M=(F=cl[a.L])*a.R,F=F/2*a.B,a.sa=I,a.ta=E+M,a.qa=a.sa,a.ra=a.ta+16*d*a.R+F,a.Ha=a.qa,a.Ia=a.ra+8*d*a.B+F,a.$c=0,E+=y,a.mb=P?I:null,a.nb=P?E:null,n(E+P<=a.Fc+a.Vb),Yo(a),r(a.Ac,a.Bc,0,m),d=1}}if(d){if(s.ka=0,s.y=a.sa,s.O=a.ta,s.f=a.qa,s.N=a.ra,s.ea=a.Ha,s.Vd=a.Ia,s.fa=a.R,s.Rc=a.B,s.F=null,s.J=0,!el){for(d=-255;255>=d;++d)Ei[255+d]=0>d?-d:d;for(d=-1020;1020>=d;++d)Br[1020+d]=-128>d?-128:127<d?127:d;for(d=-112;112>=d;++d)hs[112+d]=-16>d?-16:15<d?15:d;for(d=-255;510>=d;++d)go[255+d]=0>d?0:255<d?255:d;el=1}fo=Ec,Dr=Tc,us=Fs,en=Nc,Nn=Rs,hi=Os,mo=Zo,Zs=Ca,fs=zc,Aa=es,Ia=Vc,$r=no,Ta=ts,ho=Ys,Na=Gs,Kr=hr,ms=Lr,En=Uc,Xn[0]=mr,Xn[1]=Lc,Xn[2]=Bc,Xn[3]=Oc,Xn[4]=Us,Xn[5]=to,Xn[6]=Vs,Xn[7]=Ko,Xn[8]=Rc,Xn[9]=Fc,Xr[0]=js,Xr[1]=kc,Xr[2]=Er,Xr[3]=Za,Xr[4]=Wi,Xr[5]=Dc,Xr[6]=qs,Or[0]=Wr,Or[1]=Mc,Or[2]=jc,Or[3]=Xo,Or[4]=wa,Or[5]=qc,Or[6]=Qo,d=1}else d=0}d&&(d=function(ie,Ne){for(ie.M=0;ie.M<ie.Va;++ie.M){var be,Z=ie.Jc[ie.M&ie.Xb],te=ie.m,Ie=ie;for(be=0;be<Ie.za;++be){var Ee=te,Te=Ie,et=Te.Ac,ze=Te.Bc+4*be,lt=Te.zc,He=Te.ya[Te.aa+be];if(Te.Qa.Bb?He.$b=ge(Ee,Te.Pa.jb[0])?2+ge(Ee,Te.Pa.jb[2]):ge(Ee,Te.Pa.jb[1]):He.$b=0,Te.kc&&(He.Ad=ge(Ee,Te.Bd)),He.Za=!ge(Ee,145)+0,He.Za){var Rt=He.Ob,Vt=0;for(Te=0;4>Te;++Te){var Bt,Mt=lt[0+Te];for(Bt=0;4>Bt;++Bt){Mt=cf[et[ze+Bt]][Mt];for(var Kt=bd[ge(Ee,Mt[0])];0<Kt;)Kt=bd[2*Kt+ge(Ee,Mt[Kt])];Mt=-Kt,et[ze+Bt]=Mt}i(Rt,Vt,et,ze,4),Vt+=4,lt[0+Te]=Mt}}else Mt=ge(Ee,156)?ge(Ee,128)?1:3:ge(Ee,163)?2:0,He.Ob[0]=Mt,r(et,ze,Mt,4),r(lt,0,Mt,4);He.Dd=ge(Ee,142)?ge(Ee,114)?ge(Ee,183)?1:3:2:0}if(Ie.m.Ka)return mi(ie,7,"Premature end-of-partition0 encountered.");for(;ie.ja<ie.za;++ie.ja){if(Ie=Z,Ee=(te=ie).rb[te.sb-1],et=te.rb[te.sb+te.ja],be=te.ya[te.aa+te.ja],ze=te.kc?be.Ad:0)Ee.la=et.la=0,be.Za||(Ee.Na=et.Na=0),be.Hc=0,be.Gc=0,be.ia=0;else{var Ht,Ct;if(Ee=et,et=Ie,ze=te.Pa.Xc,lt=te.ya[te.aa+te.ja],He=te.pb[lt.$b],Te=lt.ad,Rt=0,Vt=te.rb[te.sb-1],Mt=Bt=0,r(Te,Rt,0,384),lt.Za)var Ai=0,dn=ze[3];else{Kt=o(16);var Ii=Ee.Na+Vt.Na;if(Ii=gs(et,ze[1],Ii,He.Eb,0,Kt,0),Ee.Na=Vt.Na=(0<Ii)+0,1<Ii)fo(Kt,0,Te,Rt);else{var un=Kt[0]+3>>3;for(Kt=0;256>Kt;Kt+=16)Te[Rt+Kt]=un}Ai=1,dn=ze[0]}var zt=15&Ee.la,wn=15&Vt.la;for(Kt=0;4>Kt;++Kt){var Cn=1&wn;for(un=Ct=0;4>un;++un)zt=zt>>1|(Cn=(Ii=gs(et,dn,Ii=Cn+(1&zt),He.Sc,Ai,Te,Rt))>Ai)<<7,Ct=Ct<<2|(3<Ii?3:1<Ii?2:Te[Rt+0]!=0),Rt+=16;zt>>=4,wn=wn>>1|Cn<<7,Bt=(Bt<<8|Ct)>>>0}for(dn=zt,Ai=wn>>4,Ht=0;4>Ht;Ht+=2){for(Ct=0,zt=Ee.la>>4+Ht,wn=Vt.la>>4+Ht,Kt=0;2>Kt;++Kt){for(Cn=1&wn,un=0;2>un;++un)Ii=Cn+(1&zt),zt=zt>>1|(Cn=0<(Ii=gs(et,ze[2],Ii,He.Qc,0,Te,Rt)))<<3,Ct=Ct<<2|(3<Ii?3:1<Ii?2:Te[Rt+0]!=0),Rt+=16;zt>>=2,wn=wn>>1|Cn<<5}Mt|=Ct<<4*Ht,dn|=zt<<4<<Ht,Ai|=(240&wn)<<Ht}Ee.la=dn,Vt.la=Ai,lt.Hc=Bt,lt.Gc=Mt,lt.ia=43690&Mt?0:He.ia,ze=!(Bt|Mt)}if(0<te.L&&(te.wa[te.Y+te.ja]=te.gd[be.$b][be.Za],te.wa[te.Y+te.ja].La|=!ze),Ie.Ka)return mi(ie,7,"Premature end-of-file encountered.")}if(Yo(ie),te=Ne,Ie=1,be=(Z=ie).D,Ee=0<Z.L&&Z.M>=Z.zb&&Z.M<=Z.Va,Z.Aa==0)e:{if(be.M=Z.M,be.uc=Ee,ss(Z,be),Ie=1,be=(Ct=Z.D).Nb,Ee=(Mt=cl[Z.L])*Z.R,et=Mt/2*Z.B,Kt=16*be*Z.R,un=8*be*Z.B,ze=Z.sa,lt=Z.ta-Ee+Kt,He=Z.qa,Te=Z.ra-et+un,Rt=Z.Ha,Vt=Z.Ia-et+un,wn=(zt=Ct.M)==0,Bt=zt>=Z.Va-1,Z.Aa==2&&ss(Z,Ct),Ct.uc)for(Cn=(Ii=Z).D.M,n(Ii.D.uc),Ct=Ii.yb;Ct<Ii.Hb;++Ct){Ai=Ct,dn=Cn;var Mi=(qi=(di=Ii).D).Nb;Ht=di.R;var qi=qi.wa[qi.Y+Ai],tn=di.sa,Dn=di.ta+16*Mi*Ht+16*Ai,vr=qi.dd,ki=qi.tc;if(ki!=0)if(n(3<=ki),di.L==1)0<Ai&&Kr(tn,Dn,Ht,ki+4),qi.La&&En(tn,Dn,Ht,ki),0<dn&&Na(tn,Dn,Ht,ki+4),qi.La&&ms(tn,Dn,Ht,ki);else{var Fr=di.B,Ea=di.qa,vo=di.ra+8*Mi*Fr+8*Ai,Zr=di.Ha,di=di.Ia+8*Mi*Fr+8*Ai;Mi=qi.ld,0<Ai&&(Zs(tn,Dn,Ht,ki+4,vr,Mi),Aa(Ea,vo,Zr,di,Fr,ki+4,vr,Mi)),qi.La&&($r(tn,Dn,Ht,ki,vr,Mi),ho(Ea,vo,Zr,di,Fr,ki,vr,Mi)),0<dn&&(mo(tn,Dn,Ht,ki+4,vr,Mi),fs(Ea,vo,Zr,di,Fr,ki+4,vr,Mi)),qi.La&&(Ia(tn,Dn,Ht,ki,vr,Mi),Ta(Ea,vo,Zr,di,Fr,ki,vr,Mi))}}if(Z.ia&&alert("todo:DitherRow"),te.put!=null){if(Ct=16*zt,zt=16*(zt+1),wn?(te.y=Z.sa,te.O=Z.ta+Kt,te.f=Z.qa,te.N=Z.ra+un,te.ea=Z.Ha,te.W=Z.Ia+un):(Ct-=Mt,te.y=ze,te.O=lt,te.f=He,te.N=Te,te.ea=Rt,te.W=Vt),Bt||(zt-=Mt),zt>te.o&&(zt=te.o),te.F=null,te.J=null,Z.Fa!=null&&0<Z.Fa.length&&Ct<zt&&(te.J=as(Z,te,Ct,zt-Ct),te.F=Z.mb,te.F==null&&te.F.length==0)){Ie=mi(Z,3,"Could not decode alpha data.");break e}Ct<te.j&&(Mt=te.j-Ct,Ct=te.j,n(!(1&Mt)),te.O+=Z.R*Mt,te.N+=Z.B*(Mt>>1),te.W+=Z.B*(Mt>>1),te.F!=null&&(te.J+=te.width*Mt)),Ct<zt&&(te.O+=te.v,te.N+=te.v>>1,te.W+=te.v>>1,te.F!=null&&(te.J+=te.v),te.ka=Ct-te.j,te.U=te.va-te.v,te.T=zt-Ct,Ie=te.put(te))}be+1!=Z.Ic||Bt||(i(Z.sa,Z.ta-Ee,ze,lt+16*Z.R,Ee),i(Z.qa,Z.ra-et,He,Te+8*Z.B,et),i(Z.Ha,Z.Ia-et,Rt,Vt+8*Z.B,et))}if(!Ie)return mi(ie,6,"Output aborted.")}return 1}(a,s)),s.bc!=null&&s.bc(s),d&=1}return d?(a.cb=0,d):0}function Jn(a,s,d,m,y){y=a[s+d+32*m]+(y>>3),a[s+d+32*m]=-256&y?0>y?0:255:y}function Qa(a,s,d,m,y,P){Jn(a,s,0,d,m+y),Jn(a,s,1,d,m+P),Jn(a,s,2,d,m-P),Jn(a,s,3,d,m-y)}function ln(a){return(20091*a>>16)+a}function Jo(a,s,d,m){var y,P=0,I=o(16);for(y=0;4>y;++y){var E=a[s+0]+a[s+8],M=a[s+0]-a[s+8],F=(35468*a[s+4]>>16)-ln(a[s+12]),Q=ln(a[s+4])+(35468*a[s+12]>>16);I[P+0]=E+Q,I[P+1]=M+F,I[P+2]=M-F,I[P+3]=E-Q,P+=4,s++}for(y=P=0;4>y;++y)E=(a=I[P+0]+4)+I[P+8],M=a-I[P+8],F=(35468*I[P+4]>>16)-ln(I[P+12]),Jn(d,m,0,0,E+(Q=ln(I[P+4])+(35468*I[P+12]>>16))),Jn(d,m,1,0,M+F),Jn(d,m,2,0,M-F),Jn(d,m,3,0,E-Q),P++,m+=32}function Os(a,s,d,m){var y=a[s+0]+4,P=35468*a[s+4]>>16,I=ln(a[s+4]),E=35468*a[s+1]>>16;Qa(d,m,0,y+I,a=ln(a[s+1]),E),Qa(d,m,1,y+P,a,E),Qa(d,m,2,y-P,a,E),Qa(d,m,3,y-I,a,E)}function Tc(a,s,d,m,y){Jo(a,s,d,m),y&&Jo(a,s+16,d,m+4)}function Fs(a,s,d,m){Dr(a,s+0,d,m,1),Dr(a,s+32,d,m+128,1)}function Nc(a,s,d,m){var y;for(a=a[s+0]+4,y=0;4>y;++y)for(s=0;4>s;++s)Jn(d,m,s,y,a)}function Rs(a,s,d,m){a[s+0]&&en(a,s+0,d,m),a[s+16]&&en(a,s+16,d,m+4),a[s+32]&&en(a,s+32,d,m+128),a[s+48]&&en(a,s+48,d,m+128+4)}function Ec(a,s,d,m){var y,P=o(16);for(y=0;4>y;++y){var I=a[s+0+y]+a[s+12+y],E=a[s+4+y]+a[s+8+y],M=a[s+4+y]-a[s+8+y],F=a[s+0+y]-a[s+12+y];P[0+y]=I+E,P[8+y]=I-E,P[4+y]=F+M,P[12+y]=F-M}for(y=0;4>y;++y)I=(a=P[0+4*y]+3)+P[3+4*y],E=P[1+4*y]+P[2+4*y],M=P[1+4*y]-P[2+4*y],F=a-P[3+4*y],d[m+0]=I+E>>3,d[m+16]=F+M>>3,d[m+32]=I-E>>3,d[m+48]=F-M>>3,m+=64}function $o(a,s,d){var m,y=s-32,P=xn,I=255-a[y-1];for(m=0;m<d;++m){var E,M=P,F=I+a[s-1];for(E=0;E<d;++E)a[s+E]=M[F+a[y+E]];s+=32}}function Lc(a,s){$o(a,s,4)}function Mc(a,s){$o(a,s,8)}function kc(a,s){$o(a,s,16)}function Er(a,s){var d;for(d=0;16>d;++d)i(a,s+32*d,a,s-32,16)}function Za(a,s){var d;for(d=16;0<d;--d)r(a,s,a[s-1],16),s+=32}function eo(a,s,d){var m;for(m=0;16>m;++m)r(s,d+32*m,a,16)}function js(a,s){var d,m=16;for(d=0;16>d;++d)m+=a[s-1+32*d]+a[s+d-32];eo(m>>5,a,s)}function Wi(a,s){var d,m=8;for(d=0;16>d;++d)m+=a[s-1+32*d];eo(m>>4,a,s)}function Dc(a,s){var d,m=8;for(d=0;16>d;++d)m+=a[s+d-32];eo(m>>4,a,s)}function qs(a,s){eo(128,a,s)}function ht(a,s,d){return a+2*s+d+2>>2}function Bc(a,s){var d,m=s-32;for(m=new Uint8Array([ht(a[m-1],a[m+0],a[m+1]),ht(a[m+0],a[m+1],a[m+2]),ht(a[m+1],a[m+2],a[m+3]),ht(a[m+2],a[m+3],a[m+4])]),d=0;4>d;++d)i(a,s+32*d,m,0,m.length)}function Oc(a,s){var d=a[s-1],m=a[s-1+32],y=a[s-1+64],P=a[s-1+96];je(a,s+0,16843009*ht(a[s-1-32],d,m)),je(a,s+32,16843009*ht(d,m,y)),je(a,s+64,16843009*ht(m,y,P)),je(a,s+96,16843009*ht(y,P,P))}function mr(a,s){var d,m=4;for(d=0;4>d;++d)m+=a[s+d-32]+a[s-1+32*d];for(m>>=3,d=0;4>d;++d)r(a,s+32*d,m,4)}function Us(a,s){var d=a[s-1+0],m=a[s-1+32],y=a[s-1+64],P=a[s-1-32],I=a[s+0-32],E=a[s+1-32],M=a[s+2-32],F=a[s+3-32];a[s+0+96]=ht(m,y,a[s-1+96]),a[s+1+96]=a[s+0+64]=ht(d,m,y),a[s+2+96]=a[s+1+64]=a[s+0+32]=ht(P,d,m),a[s+3+96]=a[s+2+64]=a[s+1+32]=a[s+0+0]=ht(I,P,d),a[s+3+64]=a[s+2+32]=a[s+1+0]=ht(E,I,P),a[s+3+32]=a[s+2+0]=ht(M,E,I),a[s+3+0]=ht(F,M,E)}function Vs(a,s){var d=a[s+1-32],m=a[s+2-32],y=a[s+3-32],P=a[s+4-32],I=a[s+5-32],E=a[s+6-32],M=a[s+7-32];a[s+0+0]=ht(a[s+0-32],d,m),a[s+1+0]=a[s+0+32]=ht(d,m,y),a[s+2+0]=a[s+1+32]=a[s+0+64]=ht(m,y,P),a[s+3+0]=a[s+2+32]=a[s+1+64]=a[s+0+96]=ht(y,P,I),a[s+3+32]=a[s+2+64]=a[s+1+96]=ht(P,I,E),a[s+3+64]=a[s+2+96]=ht(I,E,M),a[s+3+96]=ht(E,M,M)}function to(a,s){var d=a[s-1+0],m=a[s-1+32],y=a[s-1+64],P=a[s-1-32],I=a[s+0-32],E=a[s+1-32],M=a[s+2-32],F=a[s+3-32];a[s+0+0]=a[s+1+64]=P+I+1>>1,a[s+1+0]=a[s+2+64]=I+E+1>>1,a[s+2+0]=a[s+3+64]=E+M+1>>1,a[s+3+0]=M+F+1>>1,a[s+0+96]=ht(y,m,d),a[s+0+64]=ht(m,d,P),a[s+0+32]=a[s+1+96]=ht(d,P,I),a[s+1+32]=a[s+2+96]=ht(P,I,E),a[s+2+32]=a[s+3+96]=ht(I,E,M),a[s+3+32]=ht(E,M,F)}function Ko(a,s){var d=a[s+0-32],m=a[s+1-32],y=a[s+2-32],P=a[s+3-32],I=a[s+4-32],E=a[s+5-32],M=a[s+6-32],F=a[s+7-32];a[s+0+0]=d+m+1>>1,a[s+1+0]=a[s+0+64]=m+y+1>>1,a[s+2+0]=a[s+1+64]=y+P+1>>1,a[s+3+0]=a[s+2+64]=P+I+1>>
vendor: 12,546 bytes, line 21
211,a[s+0+32]=ht(d,m,y),a[s+1+32]=a[s+0+96]=ht(m,y,P),a[s+2+32]=a[s+1+96]=ht(y,P,I),a[s+3+32]=a[s+2+96]=ht(P,I,E),a[s+3+64]=ht(I,E,M),a[s+3+96]=ht(E,M,F)}function Fc(a,s){var d=a[s-1+0],m=a[s-1+32],y=a[s-1+64],P=a[s-1+96];a[s+0+0]=d+m+1>>1,a[s+2+0]=a[s+0+32]=m+y+1>>1,a[s+2+32]=a[s+0+64]=y+P+1>>1,a[s+1+0]=ht(d,m,y),a[s+3+0]=a[s+1+32]=ht(m,y,P),a[s+3+32]=a[s+1+64]=ht(y,P,P),a[s+3+64]=a[s+2+64]=a[s+0+96]=a[s+1+96]=a[s+2+96]=a[s+3+96]=P}function Rc(a,s){var d=a[s-1+0],m=a[s-1+32],y=a[s-1+64],P=a[s-1+96],I=a[s-1-32],E=a[s+0-32],M=a[s+1-32],F=a[s+2-32];a[s+0+0]=a[s+2+32]=d+I+1>>1,a[s+0+32]=a[s+2+64]=m+d+1>>1,a[s+0+64]=a[s+2+96]=y+m+1>>1,a[s+0+96]=P+y+1>>1,a[s+3+0]=ht(E,M,F),a[s+2+0]=ht(I,E,M),a[s+1+0]=a[s+3+32]=ht(d,I,E),a[s+1+32]=a[s+3+64]=ht(m,d,I),a[s+1+64]=a[s+3+96]=ht(y,m,d),a[s+1+96]=ht(P,y,m)}function jc(a,s){var d;for(d=0;8>d;++d)i(a,s+32*d,a,s-32,8)}function Xo(a,s){var d;for(d=0;8>d;++d)r(a,s,a[s-1],8),s+=32}function xa(a,s,d){var m;for(m=0;8>m;++m)r(s,d+32*m,a,8)}function Wr(a,s){var d,m=8;for(d=0;8>d;++d)m+=a[s+d-32]+a[s-1+32*d];xa(m>>4,a,s)}function qc(a,s){var d,m=4;for(d=0;8>d;++d)m+=a[s+d-32];xa(m>>3,a,s)}function wa(a,s){var d,m=4;for(d=0;8>d;++d)m+=a[s-1+32*d];xa(m>>3,a,s)}function Qo(a,s){xa(128,a,s)}function io(a,s,d){var m=a[s-d],y=a[s+0],P=3*(y-m)+Gc[1020+a[s-2*d]-a[s+d]],I=tl[112+(P+4>>3)];a[s-d]=xn[255+m+tl[112+(P+3>>3)]],a[s+0]=xn[255+y-I]}function zs(a,s,d,m){var y=a[s+0],P=a[s+d];return Mn[255+a[s-2*d]-a[s-d]]>m||Mn[255+P-y]>m}function Ws(a,s,d,m){return 4*Mn[255+a[s-d]-a[s+0]]+Mn[255+a[s-2*d]-a[s+d]]<=m}function Hs(a,s,d,m,y){var P=a[s-3*d],I=a[s-2*d],E=a[s-d],M=a[s+0],F=a[s+d],Q=a[s+2*d],oe=a[s+3*d];return 4*Mn[255+E-M]+Mn[255+I-F]>m?0:Mn[255+a[s-4*d]-P]<=y&&Mn[255+P-I]<=y&&Mn[255+I-E]<=y&&Mn[255+oe-Q]<=y&&Mn[255+Q-F]<=y&&Mn[255+F-M]<=y}function Gs(a,s,d,m){var y=2*m+1;for(m=0;16>m;++m)Ws(a,s+m,d,y)&&io(a,s+m,d)}function hr(a,s,d,m){var y=2*m+1;for(m=0;16>m;++m)Ws(a,s+m*d,1,y)&&io(a,s+m*d,1)}function Lr(a,s,d,m){var y;for(y=3;0<y;--y)Gs(a,s+=4*d,d,m)}function Uc(a,s,d,m){var y;for(y=3;0<y;--y)hr(a,s+=4,d,m)}function Hr(a,s,d,m,y,P,I,E){for(P=2*P+1;0<y--;){if(Hs(a,s,d,P,I))if(zs(a,s,d,E))io(a,s,d);else{var M=a,F=s,Q=d,oe=M[F-2*Q],se=M[F-Q],ie=M[F+0],Ne=M[F+Q],be=M[F+2*Q],Z=27*(Ie=Gc[1020+3*(ie-se)+Gc[1020+oe-Ne]])+63>>7,te=18*Ie+63>>7,Ie=9*Ie+63>>7;M[F-3*Q]=xn[255+M[F-3*Q]+Ie],M[F-2*Q]=xn[255+oe+te],M[F-Q]=xn[255+se+Z],M[F+0]=xn[255+ie-Z],M[F+Q]=xn[255+Ne-te],M[F+2*Q]=xn[255+be-Ie]}s+=m}}function $n(a,s,d,m,y,P,I,E){for(P=2*P+1;0<y--;){if(Hs(a,s,d,P,I))if(zs(a,s,d,E))io(a,s,d);else{var M=a,F=s,Q=d,oe=M[F-Q],se=M[F+0],ie=M[F+Q],Ne=tl[112+((be=3*(se-oe))+4>>3)],be=tl[112+(be+3>>3)],Z=Ne+1>>1;M[F-2*Q]=xn[255+M[F-2*Q]+Z],M[F-Q]=xn[255+oe+be],M[F+0]=xn[255+se-Ne],M[F+Q]=xn[255+ie-Z]}s+=m}}function Zo(a,s,d,m,y,P){Hr(a,s,d,1,16,m,y,P)}function Ca(a,s,d,m,y,P){Hr(a,s,1,d,16,m,y,P)}function Vc(a,s,d,m,y,P){var I;for(I=3;0<I;--I)$n(a,s+=4*d,d,1,16,m,y,P)}function no(a,s,d,m,y,P){var I;for(I=3;0<I;--I)$n(a,s+=4,1,d,16,m,y,P)}function zc(a,s,d,m,y,P,I,E){Hr(a,s,y,1,8,P,I,E),Hr(d,m,y,1,8,P,I,E)}function es(a,s,d,m,y,P,I,E){Hr(a,s,1,y,8,P,I,E),Hr(d,m,1,y,8,P,I,E)}function ts(a,s,d,m,y,P,I,E){$n(a,s+4*y,y,1,8,P,I,E),$n(d,m+4*y,y,1,8,P,I,E)}function Ys(a,s,d,m,y,P,I,E){$n(a,s+4,1,y,8,P,I,E),$n(d,m+4,1,y,8,P,I,E)}function ro(){this.ba=new zn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ci,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function is(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ns(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Js(){this.ua=0,this.Wa=new H,this.vb=new H,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Y,this.yc=new B}function Wc(){this.xb=this.a=0,this.l=new Xa,this.ca=new zn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new T,this.Pb=0,this.wd=new T,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Js,this.ab=0,this.gc=p(4,ns),this.Oc=0}function ao(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Xa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Sa(a,s,d,m,y,P,I){for(a=a==null?0:a[s+0],s=0;s<I;++s)y[P+s]=a+d[m+s]&255,a=y[P+s]}function rs(a,s,d,m,y,P,I){var E;if(a==null)Sa(null,null,d,m,y,P,I);else for(E=0;E<I;++E)y[P+E]=a[s+E]+d[m+E]&255}function Gr(a,s,d,m,y,P,I){if(a==null)Sa(null,null,d,m,y,P,I);else{var E,M=a[s+0],F=M,Q=M;for(E=0;E<I;++E)F=Q+(M=a[s+E])-F,Q=d[m+E]+(-256&F?0>F?0:255:F)&255,F=M,y[P+E]=Q}}function as(a,s,d,m){var y=s.width,P=s.o;if(n(a!=null&&s!=null),0>d||0>=m||d+m>P)return null;if(!a.Cc){if(a.ga==null){var I;if(a.ga=new ao,(I=a.ga==null)||(I=s.width*s.o,n(a.Gb.length==0),a.Gb=o(I),a.Uc=0,a.Gb==null?I=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,I=1),I=!I),!I){I=a.ga;var E=a.Fa,M=a.P,F=a.qc,Q=a.mb,oe=a.nb,se=M+1,ie=F-1,Ne=I.l;if(n(E!=null&&Q!=null&&s!=null),Qr[0]=null,Qr[1]=Sa,Qr[2]=rs,Qr[3]=Gr,I.ca=Q,I.tb=oe,I.c=s.width,I.i=s.height,n(0<I.c&&0<I.i),1>=F)s=0;else if(I.$a=E[M+0]>>0&3,I.Z=E[M+0]>>2&3,I.Lc=E[M+0]>>4&3,M=E[M+0]>>6&3,0>I.$a||1<I.$a||4<=I.Z||1<I.Lc||M)s=0;else if(Ne.put=cr,Ne.ac=Ri,Ne.bc=pr,Ne.ma=I,Ne.width=s.width,Ne.height=s.height,Ne.Da=s.Da,Ne.v=s.v,Ne.va=s.va,Ne.j=s.j,Ne.o=s.o,I.$a)e:{n(I.$a==1),s=In();t:for(;;){if(s==null){s=0;break e}if(n(I!=null),I.mc=s,s.c=I.c,s.i=I.i,s.l=I.l,s.l.ma=I,s.l.width=I.c,s.l.height=I.i,s.a=0,le(s.m,E,se,ie),!fr(I.c,I.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&Nr(s.s)?(I.ic=1,E=s.c*s.i,s.Ta=null,s.Ua=0,s.V=o(E),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(I.ic=0,s=ba(s,I.c)),!s))break t;s=1;break e}I.mc=null,s=0}else s=ie>=I.c*I.i;I=!s}if(I)return null;a.ga.Lc!=1?a.Ga=0:m=P-d}n(a.ga!=null),n(d+m<=P);e:{if(s=(E=a.ga).c,P=E.l.o,E.$a==0){if(se=a.rc,ie=a.Vc,Ne=a.Fa,M=a.P+1+d*s,F=a.mb,Q=a.nb+d*s,n(M<=a.P+a.qc),E.Z!=0)for(n(Qr[E.Z]!=null),I=0;I<m;++I)Qr[E.Z](se,ie,Ne,M,F,Q,s),se=F,ie=Q,Q+=s,M+=s;else for(I=0;I<m;++I)i(F,Q,Ne,M,s),se=F,ie=Q,Q+=s,M+=s;a.rc=se,a.Vc=ie}else{if(n(E.mc!=null),s=d+m,n((I=E.mc)!=null),n(s<=I.i),I.C>=s)s=1;else if(E.ic||re(),E.ic){E=I.V,se=I.Ba,ie=I.c;var be=I.i,Z=(Ne=1,M=I.$/ie,F=I.$%ie,Q=I.m,oe=I.s,I.$),te=ie*be,Ie=ie*s,Ee=oe.wc,Te=Z<Ie?Si(oe,F,M):null;n(Z<=te),n(s<=be),n(Nr(oe));t:for(;;){for(;!Q.h&&Z<Ie;){if(F&Ee||(Te=Si(oe,F,M)),n(Te!=null),ne(Q),256>(be=sn(Te.G[0],Te.H[0],Q)))E[se+Z]=be,++Z,++F>=ie&&(F=0,++M<=s&&!(M%16)&&Gn(I,M));else{if(!(280>be)){Ne=0;break t}be=Wn(be-256,Q);var et,ze=sn(Te.G[4],Te.H[4],Q);if(ne(Q),!(Z>=(ze=dr(ie,ze=Wn(ze,Q)))&&te-Z>=be)){Ne=0;break t}for(et=0;et<be;++et)E[se+Z+et]=E[se+Z+et-ze];for(Z+=be,F+=be;F>=ie;)F-=ie,++M<=s&&!(M%16)&&Gn(I,M);Z<Ie&&F&Ee&&(Te=Si(oe,F,M))}n(Q.h==W(Q))}Gn(I,M>s?s:M);break t}!Ne||Q.h&&Z<te?(Ne=0,I.a=Q.h?5:3):I.$=Z,s=Ne}else s=Yn(I,I.V,I.Ba,I.c,I.i,s,Ga);if(!s){m=0;break e}}d+m>=P&&(a.Cc=1),m=1}if(!m)return null;if(a.Cc&&((m=a.ga)!=null&&(m.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+d*y}function l(a,s,d,m,y,P){for(;0<y--;){var I,E=a,M=s+(d?1:0),F=a,Q=s+(d?0:3);for(I=0;I<m;++I){var oe=F[Q+4*I];oe!=255&&(oe*=32897,E[M+4*I+0]=E[M+4*I+0]*oe>>23,E[M+4*I+1]=E[M+4*I+1]*oe>>23,E[M+4*I+2]=E[M+4*I+2]*oe>>23)}s+=P}}function b(a,s,d,m,y){for(;0<m--;){var P;for(P=0;P<d;++P){var I=a[s+2*P+0],E=15&(F=a[s+2*P+1]),M=4369*E,F=(240&F|F>>4)*M>>16;a[s+2*P+0]=(240&I|I>>4)*M>>16&240|(15&I|I<<4)*M>>16>>4&15,a[s+2*P+1]=240&F|E}s+=y}}function q(a,s,d,m,y,P,I,E){var M,F,Q=255;for(F=0;F<y;++F){for(M=0;M<m;++M){var oe=a[s+M];P[I+4*M]=oe,Q&=oe}s+=d,I+=E}return Q!=255}function K(a,s,d,m,y){var P;for(P=0;P<y;++P)d[m+P]=a[s+P]>>8}function re(){Ln=l,Qt=b,Zt=q,gi=K}function we(a,s,d){J[a]=function(m,y,P,I,E,M,F,Q,oe,se,ie,Ne,be,Z,te,Ie,Ee){var Te,et=Ee-1>>1,ze=E[M+0]|F[Q+0]<<16,lt=oe[se+0]|ie[Ne+0]<<16;n(m!=null);var He=3*ze+lt+131074>>2;for(s(m[y+0],255&He,He>>16,be,Z),P!=null&&(He=3*lt+ze+131074>>2,s(P[I+0],255&He,He>>16,te,Ie)),Te=1;Te<=et;++Te){var Rt=E[M+Te]|F[Q+Te]<<16,Vt=oe[se+Te]|ie[Ne+Te]<<16,Bt=ze+Rt+lt+Vt+524296,Mt=Bt+2*(Rt+lt)>>3;He=Mt+ze>>1,ze=(Bt=Bt+2*(ze+Vt)>>3)+Rt>>1,s(m[y+2*Te-1],255&He,He>>16,be,Z+(2*Te-1)*d),s(m[y+2*Te-0],255&ze,ze>>16,be,Z+(2*Te-0)*d),P!=null&&(He=Bt+lt>>1,ze=Mt+Vt>>1,s(P[I+2*Te-1],255&He,He>>16,te,Ie+(2*Te-1)*d),s(P[I+2*Te+0],255&ze,ze>>16,te,Ie+(2*Te+0)*d)),ze=Rt,lt=Vt}1&Ee||(He=3*ze+lt+131074>>2,s(m[y+Ee-1],255&He,He>>16,be,Z+(Ee-1)*d),P!=null&&(He=3*lt+ze+131074>>2,s(P[I+Ee-1],255&He,He>>16,te,Ie+(Ee-1)*d)))}}function Me(){kn[il]=ff,kn[nl]=wd,kn[vd]=mf,kn[rl]=Cd,kn[al]=Sd,kn[Yc]=Pd,kn[_d]=hf,kn[Jc]=wd,kn[$c]=Cd,kn[ol]=Sd,kn[Kc]=Pd}function Qe(a){return a&~gf?0>a?0:255:a>>Ad}function ot(a,s){return Qe((19077*a>>8)+(26149*s>>8)-14234)}function wt(a,s,d){return Qe((19077*a>>8)-(6419*s>>8)-(13320*d>>8)+8708)}function yt(a,s){return Qe((19077*a>>8)+(33050*s>>8)-17685)}function kt(a,s,d,m,y){m[y+0]=ot(a,d),m[y+1]=wt(a,s,d),m[y+2]=yt(a,s)}function oi(a,s,d,m,y){m[y+0]=yt(a,s),m[y+1]=wt(a,s,d),m[y+2]=ot(a,d)}function pi(a,s,d,m,y){var P=wt(a,s,d);s=P<<3&224|yt(a,s)>>3,m[y+0]=248&ot(a,d)|P>>5,m[y+1]=s}function Pi(a,s,d,m,y){var P=240&yt(a,s)|15;m[y+0]=240&ot(a,d)|wt(a,s,d)>>4,m[y+1]=P}function Hi(a,s,d,m,y){m[y+0]=255,kt(a,s,d,m,y+1)}function Li(a,s,d,m,y){oi(a,s,d,m,y),m[y+3]=255}function Kn(a,s,d,m,y){kt(a,s,d,m,y),m[y+3]=255}function bn(a,s){return 0>a?0:a>s?s:a}function gr(a,s,d){J[a]=function(m,y,P,I,E,M,F,Q,oe){for(var se=Q+(-2&oe)*d;Q!=se;)s(m[y+0],P[I+0],E[M+0],F,Q),s(m[y+1],P[I+0],E[M+0],F,Q+d),y+=2,++I,++M,Q+=2*d;1&oe&&s(m[y+0],P[I+0],E[M+0],F,Q)}}function $s(a,s,d){return d==0?a==0?s==0?6:5:s==0?4:0:d}function os(a,s,d,m,y){switch(a>>>30){case 3:Dr(s,d,m,y,0);break;case 2:hi(s,d,m,y);break;case 1:en(s,d,m,y)}}function ss(a,s){var d,m,y=s.M,P=s.Nb,I=a.oc,E=a.pc+40,M=a.oc,F=a.pc+584,Q=a.oc,oe=a.pc+600;for(d=0;16>d;++d)I[E+32*d-1]=129;for(d=0;8>d;++d)M[F+32*d-1]=129,Q[oe+32*d-1]=129;for(0<y?I[E-1-32]=M[F-1-32]=Q[oe-1-32]=129:(r(I,E-32-1,127,21),r(M,F-32-1,127,9),r(Q,oe-32-1,127,9)),m=0;m<a.za;++m){var se=s.ya[s.aa+m];if(0<m){for(d=-1;16>d;++d)i(I,E+32*d-4,I,E+32*d+12,4);for(d=-1;8>d;++d)i(M,F+32*d-4,M,F+32*d+4,4),i(Q,oe+32*d-4,Q,oe+32*d+4,4)}var ie=a.Gd,Ne=a.Hd+m,be=se.ad,Z=se.Hc;if(0<y&&(i(I,E-32,ie[Ne].y,0,16),i(M,F-32,ie[Ne].f,0,8),i(Q,oe-32,ie[Ne].ea,0,8)),se.Za){var te=I,Ie=E-32+16;for(0<y&&(m>=a.za-1?r(te,Ie,ie[Ne].y[15],4):i(te,Ie,ie[Ne+1].y,0,4)),d=0;4>d;d++)te[Ie+128+d]=te[Ie+256+d]=te[Ie+384+d]=te[Ie+0+d];for(d=0;16>d;++d,Z<<=2)te=I,Ie=E+Td[d],Xn[se.Ob[d]](te,Ie),os(Z,be,16*+d,te,Ie)}else if(te=$s(m,y,se.Ob[0]),Xr[te](I,E),Z!=0)for(d=0;16>d;++d,Z<<=2)os(Z,be,16*+d,I,E+Td[d]);for(d=se.Gc,te=$s(m,y,se.Dd),Or[te](M,F),Or[te](Q,oe),Z=be,te=M,Ie=F,255&(se=d>>0)&&(170&se?us(Z,256,te,Ie):Nn(Z,256,te,Ie)),se=Q,Z=oe,255&(d>>=8)&&(170&d?us(be,320,se,Z):Nn(be,320,se,Z)),y<a.Ub-1&&(i(ie[Ne].y,0,I,E+480,16),i(ie[Ne].f,0,M,F+224,8),i(ie[Ne].ea,0,Q,oe+224,8)),d=8*P*a.B,ie=a.sa,Ne=a.ta+16*m+16*P*a.R,be=a.qa,se=a.ra+8*m+d,Z=a.Ha,te=a.Ia+8*m+d,d=0;16>d;++d)i(ie,Ne+d*a.R,I,E+32*d,16);for(d=0;8>d;++d)i(be,se+d*a.B,M,F+32*d,8),i(Z,te+d*a.B,Q,oe+32*d,8)}}function oo(a,s,d,m,y,P,I,E,M){var F=[0],Q=[0],oe=0,se=M!=null?M.kd:0,ie=M??new is;if(a==null||12>d)return 7;ie.data=a,ie.w=s,ie.ha=d,s=[s],d=[d],ie.gb=[ie.gb];e:{var Ne=s,be=d,Z=ie.gb;if(n(a!=null),n(be!=null),n(Z!=null),Z[0]=0,12<=be[0]&&!e(a,Ne[0],"RIFF")){if(e(a,Ne[0]+8,"WEBP")){Z=3;break e}var te=We(a,Ne[0]+4);if(12>te||4294967286<te){Z=3;break e}if(se&&te>be[0]-8){Z=7;break e}Z[0]=te,Ne[0]+=12,be[0]-=12}Z=0}if(Z!=0)return Z;for(te=0<ie.gb[0],d=d[0];;){e:{var Ie=a;be=s,Z=d;var Ee=F,Te=Q,et=Ne=[0];if((He=oe=[oe])[0]=0,8>Z[0])Z=7;else{if(!e(Ie,be[0],"VP8X")){if(We(Ie,be[0]+4)!=10){Z=3;break e}if(18>Z[0]){Z=7;break e}var ze=We(Ie,be[0]+8),lt=1+Ye(Ie,be[0]+12);if(2147483648<=lt*(Ie=1+Ye(Ie,be[0]+15))){Z=3;break e}et!=null&&(et[0]=ze),Ee!=null&&(Ee[0]=lt),Te!=null&&(Te[0]=Ie),be[0]+=18,Z[0]-=18,He[0]=1}Z=0}}if(oe=oe[0],Ne=Ne[0],Z!=0)return Z;if(be=!!(2&Ne),!te&&oe)return 3;if(P!=null&&(P[0]=!!(16&Ne)),I!=null&&(I[0]=be),E!=null&&(E[0]=0),I=F[0],Ne=Q[0],oe&&be&&M==null){Z=0;break}if(4>d){Z=7;break}if(te&&oe||!te&&!oe&&!e(a,s[0],"ALPH")){d=[d],ie.na=[ie.na],ie.P=[ie.P],ie.Sa=[ie.Sa];e:{ze=a,Z=s,te=d;var He=ie.gb;Ee=ie.na,Te=ie.P,et=ie.Sa,lt=22,n(ze!=null),n(te!=null),Ie=Z[0];var Rt=te[0];for(n(Ee!=null),n(et!=null),Ee[0]=null,Te[0]=null,et[0]=0;;){if(Z[0]=Ie,te[0]=Rt,8>Rt){Z=7;break e}var Vt=We(ze,Ie+4);if(4294967286<Vt){Z=3;break e}var Bt=8+Vt+1&-2;if(lt+=Bt,0<He&<>He){Z=3;break e}if(!e(ze,Ie,"VP8 ")||!e(ze,Ie,"VP8L")){Z=0;break e}if(Rt[0]<Bt){Z=7;break e}e(ze,Ie,"ALPH")||(Ee[0]=ze,Te[0]=Ie+8,et[0]=Vt),Ie+=Bt,Rt-=Bt}}if(d=d[0],ie.na=ie.na[0],ie.P=ie.P[0],ie.Sa=ie.Sa[0],Z!=0)break}
21d=[d],ie.Ja=[ie.Ja],ie.xa=[ie.xa];e:if(He=a,Z=s,te=d,Ee=ie.gb[0],Te=ie.Ja,et=ie.xa,ze=Z[0],Ie=!e(He,ze,"VP8 "),lt=!e(He,ze,"VP8L"),n(He!=null),n(te!=null),n(Te!=null),n(et!=null),8>te[0])Z=7;else{if(Ie||lt){if(He=We(He,ze+4),12<=Ee&&He>Ee-12){Z=3;break e}if(se&&He>te[0]-8){Z=7;break e}Te[0]=He,Z[0]+=8,te[0]-=8,et[0]=lt}else et[0]=5<=te[0]&&He[ze+0]==47&&!(He[ze+4]>>5),Te[0]=te[0];Z=0}if(d=d[0],ie.Ja=ie.Ja[0],ie.xa=ie.xa[0],s=s[0],Z!=0)break;if(4294967286<ie.Ja)return 3;if(E==null||be||(E[0]=ie.xa?2:1),I=[I],Ne=[Ne],ie.xa){if(5>d){Z=7;break}E=I,se=Ne,be=P,a==null||5>d?a=0:5<=d&&a[s+0]==47&&!(a[s+4]>>5)?(te=[0],He=[0],Ee=[0],le(Te=new T,a,s,d),pt(Te,te,He,Ee)?(E!=null&&(E[0]=te[0]),se!=null&&(se[0]=He[0]),be!=null&&(be[0]=Ee[0]),a=1):a=0):a=0}else{if(10>d){Z=7;break}E=Ne,a==null||10>d||!ks(a,s+3,d-3)?a=0:(se=a[s+0]|a[s+1]<<8|a[s+2]<<16,be=16383&(a[s+7]<<8|a[s+6]),a=16383&(a[s+9]<<8|a[s+8]),1&se||3<(se>>1&7)||!(se>>4&1)||se>>5>=ie.Ja||!be||!a?a=0:(I&&(I[0]=be),E&&(E[0]=a),a=1))}if(!a||(I=I[0],Ne=Ne[0],oe&&(F[0]!=I||Q[0]!=Ne)))return 3;M!=null&&(M[0]=ie,M.offset=s-M.w,n(4294967286>s-M.w),n(M.offset==M.ha-d));break}return Z==0||Z==7&&oe&&M==null?(P!=null&&(P[0]|=ie.na!=null&&0<ie.na.length),m!=null&&(m[0]=I),y!=null&&(y[0]=Ne),0):Z}function ls(a,s,d){var m=s.width,y=s.height,P=0,I=0,E=m,M=y;if(s.Da=a!=null&&0<a.Da,s.Da&&(E=a.cd,M=a.bd,P=a.v,I=a.j,11>d||(P&=-2,I&=-2),0>P||0>I||0>=E||0>=M||P+E>m||I+M>y))return 0;if(s.v=P,s.j=I,s.va=P+E,s.o=I+M,s.U=E,s.T=M,s.da=a!=null&&0<a.da,s.da){if(!xt(E,M,d=[a.ib],P=[a.hb]))return 0;s.ib=d[0],s.hb=P[0]}return s.ob=a!=null&&a.ob,s.Kb=a==null||!a.Sd,s.da&&(s.ob=s.ib<3*m/4&&s.hb<3*y/4,s.Kb=0),1}function cs(a){if(a==null)return 2;if(11>a.S){var s=a.f.RGBA;s.fb+=(a.height-1)*s.A,s.A=-s.A}else s=a.f.kb,a=a.height,s.O+=(a-1)*s.fa,s.fa=-s.fa,s.N+=(a-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(a-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(a-1)*s.lb,s.lb=-s.lb);return 0}function so(a,s,d,m){if(m==null||0>=a||0>=s)return 2;if(d!=null){if(d.Da){var y=d.cd,P=d.bd,I=-2&d.v,E=-2&d.j;if(0>I||0>E||0>=y||0>=P||I+y>a||E+P>s)return 2;a=y,s=P}if(d.da){if(!xt(a,s,y=[d.ib],P=[d.hb]))return 2;a=y[0],s=P[0]}}m.width=a,m.height=s;e:{var M=m.width,F=m.height;if(a=m.S,0>=M||0>=F||!(a>=il&&13>a))a=2;else{if(0>=m.Rd&&m.sd==null){I=P=y=s=0;var Q=(E=M*Nd[a])*F;if(11>a||(P=(F+1)/2*(s=(M+1)/2),a==12&&(I=(y=M)*F)),(F=o(Q+2*P+I))==null){a=1;break e}m.sd=F,11>a?((M=m.f.RGBA).eb=F,M.fb=0,M.A=E,M.size=Q):((M=m.f.kb).y=F,M.O=0,M.fa=E,M.Fd=Q,M.f=F,M.N=0+Q,M.Ab=s,M.Cd=P,M.ea=F,M.W=0+Q+P,M.Db=s,M.Ed=P,a==12&&(M.F=F,M.J=0+Q+2*P),M.Tc=I,M.lb=y)}if(s=1,y=m.S,P=m.width,I=m.height,y>=il&&13>y)if(11>y)a=m.f.RGBA,s&=(E=Math.abs(a.A))*(I-1)+P<=a.size,s&=E>=P*Nd[y],s&=a.eb!=null;else{a=m.f.kb,E=(P+1)/2,Q=(I+1)/2,M=Math.abs(a.fa),F=Math.abs(a.Ab);var oe=Math.abs(a.Db),se=Math.abs(a.lb),ie=se*(I-1)+P;s&=M*(I-1)+P<=a.Fd,s&=F*(Q-1)+E<=a.Cd,s=(s&=oe*(Q-1)+E<=a.Ed)&M>=P&F>=E&oe>=E,s&=a.y!=null,s&=a.f!=null,s&=a.ea!=null,y==12&&(s&=se>=P,s&=ie<=a.Tc,s&=a.F!=null)}else s=0;a=s?0:2}}return a!=0||d!=null&&d.fd&&(a=cs(m)),a}var ji=64,lo=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],co=24,po=32,ps=8,cn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ve("Predictor0","PredictorAdd0"),J.Predictor0=function(){return 4278190080},J.Predictor1=function(a){return a},J.Predictor2=function(a,s,d){return s[d+0]},J.Predictor3=function(a,s,d){return s[d+1]},J.Predictor4=function(a,s,d){return s[d-1]},J.Predictor5=function(a,s,d){return Ge(Ge(a,s[d+1]),s[d+0])},J.Predictor6=function(a,s,d){return Ge(a,s[d-1])},J.Predictor7=function(a,s,d){return Ge(a,s[d+0])},J.Predictor8=function(a,s,d){return Ge(s[d-1],s[d+0])},J.Predictor9=function(a,s,d){return Ge(s[d+0],s[d+1])}
vendor: 4,275 bytes, line 21
21,J.Predictor10=function(a,s,d){return Ge(Ge(a,s[d-1]),Ge(s[d+0],s[d+1]))},J.Predictor11=function(a,s,d){var m=s[d+0];return 0>=Pt(m>>24&255,a>>24&255,(s=s[d-1])>>24&255)+Pt(m>>16&255,a>>16&255,s>>16&255)+Pt(m>>8&255,a>>8&255,s>>8&255)+Pt(255&m,255&a,255&s)?m:a},J.Predictor12=function(a,s,d){var m=s[d+0];return(at((a>>24&255)+(m>>24&255)-((s=s[d-1])>>24&255))<<24|at((a>>16&255)+(m>>16&255)-(s>>16&255))<<16|at((a>>8&255)+(m>>8&255)-(s>>8&255))<<8|at((255&a)+(255&m)-(255&s)))>>>0},J.Predictor13=function(a,s,d){var m=s[d-1];return(vt((a=Ge(a,s[d+0]))>>24&255,m>>24&255)<<24|vt(a>>16&255,m>>16&255)<<16|vt(a>>8&255,m>>8&255)<<8|vt(a>>0&255,m>>0&255))>>>0};var Hc=J.PredictorAdd0;J.PredictorAdd1=Tt,Ve("Predictor2","PredictorAdd2"),Ve("Predictor3","PredictorAdd3"),Ve("Predictor4","PredictorAdd4"),Ve("Predictor5","PredictorAdd5"),Ve("Predictor6","PredictorAdd6"),Ve("Predictor7","PredictorAdd7"),Ve("Predictor8","PredictorAdd8"),Ve("Predictor9","PredictorAdd9"),Ve("Predictor10","PredictorAdd10"),Ve("Predictor11","PredictorAdd11"),Ve("Predictor12","PredictorAdd12"),Ve("Predictor13","PredictorAdd13");var ds=J.PredictorAdd2;Et("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),Et("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var Ks,Tn=J.ColorIndexInverseTransform,uo=J.MapARGB,Xs=J.VP8LColorIndexInverseTransformAlpha,Qs=J.MapAlpha,Yr=J.VP8LPredictorsAdd=[];Yr.length=16,(J.VP8LPredictors=[]).length=16,(J.VP8LPredictorsAdd_C=[]).length=16,(J.VP8LPredictors_C=[]).length=16;var Pa,pn,Zi,Jr,Mr,kr,fo,Dr,hi,us,en,Nn,mo,Zs,fs,Aa,Ia,$r,Ta,ho,Na,Kr,ms,En,Ln,Qt,Zt,gi,Ei=o(511),Br=o(2041),hs=o(225),go=o(767),el=0,Gc=Br,tl=hs,xn=go,Mn=Ei,il=0,nl=1,vd=2,rl=3,al=4,Yc=5,_d=6,Jc=7,$c=8,ol=9,Kc=10,Q1=[2,3,7],Z1=[3,3,11],yd=[280,256,256,256,40],ef=[0,1,1,1,0],tf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],nf=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],rf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],af=8,Xc=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Qc=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],gs=null,of=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],sf=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],bd=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],lf=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,25
215,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],cf=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,25
215,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],pf=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
215,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],df=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Xr=[],Xn=[],Or=[],uf=1,xd=2,Qr=[],kn=[];we("UpsampleRgbLinePair",kt,3),we("UpsampleBgrLinePair",oi,3),we("UpsampleRgbaLinePair",Kn,4),we("UpsampleBgraLinePair",Li,4),we("UpsampleArgbLinePair",Hi,4),we("UpsampleRgba4444LinePair",Pi,2),we("UpsampleRgb565LinePair",pi,2);var ff=J.UpsampleRgbLinePair,mf=J.UpsampleBgrLinePair,wd=J.UpsampleRgbaLinePair,Cd=J.UpsampleBgraLinePair,Sd=J.UpsampleArgbLinePair,Pd=J.UpsampleRgba4444LinePair,hf=J.UpsampleRgb565LinePair,sl=16,ll=1<<sl-1,vs=-227,Zc=482,Ad=6,gf=(256<<Ad)-1,Id=0,vf=o(256),_f=o(256),yf=o(256),bf=o(256),xf=o(Zc-vs),wf=o(Zc-vs);gr("YuvToRgbRow",kt,3),gr("YuvToBgrRow",oi,3),gr("YuvToRgbaRow",Kn,4),gr("YuvToBgraRow",Li,4),gr("YuvToArgbRow",Hi,4),gr("YuvToRgba4444Row",Pi,2),gr("YuvToRgb565Row",pi,2);var Td=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],cl=[0,2,8],Cf=[8,7,6,4,4,2,2,2,1,1,1,1],Sf=1;this.WebPDecodeRGBA=function(a,s,d,m,y){var P=nl,I=new ro,E=new zn;I.ba=E,E.S=P,E.width=[E.width],E.height=[E.height];var M=E.width,F=E.height,Q=new Tr;if(Q==null||a==null)var oe=2;else n(Q!=null),oe=oo(a,s,d,Q.width,Q.height,Q.Pd,Q.Qd,Q.format,null);if(oe!=0?M=0:(M!=null&&(M[0]=Q.width[0]),F!=null&&(F[0]=Q.height[0]),M=1),M){E.width=E.width[0],E.height=E.height[0],m!=null&&(m[0]=E.width),y!=null&&(y[0]=E.height);e:{if(m=new Xa,(y=new is).data=a,y.w=s,y.ha=d,y.kd=1,s=[0],n(y!=null),((a=oo(y.data,y.w,y.ha,null,null,null,s,null,y))==0||a==7)&&s[0]&&(a=4),(s=a)==0){if(n(I!=null),m.data=y.data,m.w=y.w+y.offset,m.ha=y.ha-y.offset,m.put=cr,m.ac=Ri,m.bc=pr,m.ma=I,y.xa){if((a=In())==null){I=1;break e}if(function(se,ie){var Ne=[0],be=[0],Z=[0];t:for(;;){if(se==null)return 0;if(ie==null)return se.a=2,0;if(se.l=ie,se.a=0,le(se.m,ie.data,ie.w,ie.ha),!pt(se.m,Ne,be,Z)){se.a=3;break t}if(se.xb=xd,ie.width=Ne[0],ie.height=be[0],!fr(Ne[0],be[0],1,se,null))break t;return 1}return n(se.a!=0),0}(a,m)){if(m=(s=so(m.width,m.height,I.Oa,I.ba))==0){t:{m=a;i:for(;;){if(m==null){m=0;break t}if(n(m.s.yc!=null),n(m.s.Ya!=null),n(0<m.s.Wb),n((d=m.l)!=null),n((y=d.ma)!=null),m.xb!=0){if(m.ca=y.ba,m.tb=y.tb,n(m.ca!=null),!ls(y.Oa,d,rl)){m.a=2;break i}if(!ba(m,d.width)||d.da)break i;if((d.da||qt(m.ca.S))&&re(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),m.ca.f.kb.F!=null&&re()),m.Pb&&0<m.s.ua&&m.s.vb.X==null&&!ut(m.s.vb,m.s.Wa.Xa)){m.a=1;break i}m.xb=0}
21if(!Yn(m,m.V,m.Ba,m.c,m.i,d.o,Ha))break i;y.Dc=m.Ma,m=1;break t}n(m.a!=0),m=0}m=!m}m&&(s=a.a)}else s=a.a}else{if((a=new Ac)==null){I=1;break e}if(a.Fa=y.na,a.P=y.P,a.qc=y.Sa,Ds(a,m)){if((s=so(m.width,m.height,I.Oa,I.ba))==0){if(a.Aa=0,d=I.Oa,n((y=a)!=null),d!=null){if(0<(M=0>(M=d.Md)?0:100<M?255:255*M/100)){for(F=Q=0;4>F;++F)12>(oe=y.pb[F]).lc&&(oe.ia=M*Cf[0>oe.lc?0:oe.lc]>>3),Q|=oe.ia;Q&&(alert("todo:VP8InitRandom"),y.ia=1)}y.Ga=d.Id,100<y.Ga?y.Ga=100:0>y.Ga&&(y.Ga=0)}Ic(a,m)||(s=a.a)}}else s=a.a}s==0&&I.Oa!=null&&I.Oa.fd&&(s=cs(I.ba))}I=s}P=I!=0?null:11>P?E.f.RGBA.eb:E.f.kb.y}else P=null;return P};var Nd=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function _(J,ue){for(var Pe="",D=0;D<4;D++)Pe+=String.fromCharCode(J[ue++]);return Pe}function x(J,ue){return(J[ue+0]<<0|J[ue+1]<<8|J[ue+2]<<16)>>>0}function C(J,ue){return(J[ue+0]<<0|J[ue+1]<<8|J[ue+2]<<16|J[ue+3]<<24)>>>0}new f;var L=[0],v=[0],V=[],O=new f,G=t,k=function(J,ue){var Pe={},D=0,B=!1,ee=0,Y=0;if(Pe.frames=[],!function(j,W,X,ne){for(var ce=0;ce<ne;ce++)if(j[W+ce]!=X.charCodeAt(ce))return!0;return!1}(J,ue,"RIFF",4)){var _e,fe;for(C(J,ue+=4),ue+=8;ue<J.length;){var xe=_(J,ue),le=C(J,ue+=4);ue+=4;var Ce=le+(1&le);switch(xe){case"VP8 ":case"VP8L":Pe.frames[D]===void 0&&(Pe.frames[D]={}),(T=Pe.frames[D]).src_off=B?Y:ue-8,T.src_size=ee+le+8,D++,B&&(B=!1,ee=0,Y=0);break;case"VP8X":(T=Pe.header={}).feature_flags=J[ue];var Ae=ue+4;T.canvas_width=1+x(J,Ae),Ae+=3,T.canvas_height=1+x(J,Ae),Ae+=3;break;case"ALPH":B=!0,ee=Ce+8,Y=ue-8;break;case"ANIM":(T=Pe.header).bgcolor=C(J,ue),Ae=ue+4,T.loop_count=(_e=J)[(fe=Ae)+0]<<0|_e[fe+1]<<8,Ae+=2;break;case"ANMF":var $e,T;(T=Pe.frames[D]={}).offset_x=2*x(J,ue),ue+=3,T.offset_y=2*x(J,ue),ue+=3,T.width=1+x(J,ue),ue+=3,T.height=1+x(J,ue),ue+=3,T.duration=x(J,ue),ue+=3,$e=J[ue++],T.dispose=1&$e,T.blend=$e>>1&1}xe!="ANMF"&&(ue+=Ce)}return Pe}}(G,0);k.response=G,k.rgbaoutput=!0,k.dataurl=!1;var U=k.header?k.header:null,$=k.frames?k.frames:null;if(U){U.loop_counter=U.loop_count,L=[U.canvas_height],v=[U.canvas_width];for(var he=0;he<$.length&&$[he].blend!=0;he++);}var pe=$[0],Le=O.WebPDecodeRGBA(G,pe.src_off,pe.src_size,v,L);pe.rgba=Le,pe.imgwidth=v[0],pe.imgheight=L[0];for(var de=0;de<v[0]*L[0]*4;de++)V[de]=Le[de];return this.width=v,this.height=L,this.data=V,this}var ft,Xt,Ns,ld,Ua,y1,xv,b1,fi,md,Wa,Fo,bt,ha,_n,w1,Pr,wv,Cv,Sv,xi,wi,Ci,Pv,Av,dd,cc,Iv,Tv,Nv,Ev,R1,ad,Ar,j1,q1,or,Vo,zo,Wo,uc,Fi,fc,Ho,vc,mc,za,hc,it,Lv,ox,V1,z1,ud,W1,Mv,kv,S1,pc,I1,T1,od,Ro,dc,N1,E1,L1,Fv,sr,va,jv,qv,Ir,Uv,D1,H1,Vv,zv,Wv,Hv,Gv,Yv,Jv,G1,$v,Kv,Xv,Qv,Zv,Y1,J1=Nt(()=>{em();v1();ft=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();Xt={log:id,warn:function(t){ft.console&&(typeof ft.console.warn=="function"?ft.console.warn.apply(ft.console,arguments):id.call(null,arguments))},error:function(t){ft.console&&(typeof ft.console.error=="function"?ft.console.error.apply(ft.console,arguments):id(t))}};Ua=ft.saveAs||((typeof window>"u"?"undefined":Yt(window))!=="object"||window!==ft?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var i=ft.URL||ft.webkitURL,r=document.createElement("a");n=n||t.name||"download",r.download=n,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?_1(r.href)?nd(t,n,e):lc(r,r.target="_blank"):lc(r)):(r.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(r.href)},4e4),setTimeout(function(){lc(r)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(_1(t))nd(t,n,e);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){lc(i)})}else navigator.msSaveOrOpenBlob(function(r,o){return o===void 0?o={autoBom:!1}:Yt(o)!=="object"&&(Xt.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}(t,e),n)}:function(t,n,e,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof t=="string")return nd(t,n,e);var r=t.type==="application/octet-stream",o=/constructor/i.test(ft.HTMLElement)||ft.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||r&&o)&&(typeof FileReader>"u"?"undefined":Yt(FileReader))==="object"){var u=new FileReader;u.onloadend=function(){var x=u.result;x=p?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=x:location=x,i=null}
21,u.readAsDataURL(t)}else{var f=ft.URL||ft.webkitURL,_=f.createObjectURL(t);i?i.location=_:location.href=_,i=null,setTimeout(function(){f.revokeObjectURL(_)},4e4)}});Ns=ft.atob.bind(ft),ld=ft.btoa.bind(ft);y1="0123456789abcdef".split("");xv=function(t){for(var n=0;n<t.length;n++)t[n]=yv(t[n]);return t.join("")}(O1("hello"))!="5d41402abc4b2a76b9719d911017c592";b1={print:4,modify:8,copy:16,"annot-forms":32};jo.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},jo.prototype.toHexString=function(t){return t.split("").map(function(n){return("0"+(255&n.charCodeAt(0)).toString(16)).slice(-2)}).join("")},jo.prototype.hexToBytes=function(t){for(var n=[],e=0;e<t.length;e+=2)n.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return n.join("")},jo.prototype.processOwnerPassword=function(t,n){return pd(cd(n).substr(0,5),t)},jo.prototype.encryptor=function(t,n){var e=cd(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&n,n>>8&255)).substr(0,10);return function(i){return pd(e,i)}},gc.prototype.equals=function(t){var n,e="id,objectNumber,equals";if(!t||Yt(t)!==Yt(this))return!1;var i=0;for(n in this)if(!(e.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!t.hasOwnProperty(n)||this[n]!==t[n])return!1;i++}for(n in t)t.hasOwnProperty(n)&&e.indexOf(n)<0&&i--;return i===0},dt.API={events:[]},dt.version="2.5.2";fi=dt.API,md=1,Wa=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Fo=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},bt=function(t){return t.toFixed(2)},ha=function(t){return t.toFixed(5)};fi.__acroform__={};_n=function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t},w1=function(t){return t*md},Pr=function(t){var n=new j1,e=it.internal.getHeight(t)||0,i=it.internal.getWidth(t)||0;return n.BBox=[0,0,Number(bt(i)),Number(bt(e))],n},wv=fi.__acroform__.setBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<n},Cv=fi.__acroform__.clearBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<n)},Sv=fi.__acroform__.getBit=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(t&1<<n)==0?0:1},xi=fi.__acroform__.getBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Sv(t,n-1)},wi=fi.__acroform__.setBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return wv(t,n-1)},Ci=fi.__acroform__.clearBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Cv(t,n-1)},Pv=fi.__acroform__.calculateCoordinates=function(t,n){var e=n.internal.getHorizontalCoordinate,i=n.internal.getVerticalCoordinate,r=t[0],o=t[1],p=t[2],u=t[3],f={};return f.lowerLeft_X=e(r)||0,f.lowerLeft_Y=i(o+u)||0,f.upperRight_X=e(r+p)||0,f.upperRight_Y=i(o)||0,[Number(bt(f.lowerLeft_X)),Number(bt(f.lowerLeft_Y)),Number(bt(f.upperRight_X)),Number(bt(f.upperRight_Y))]},Av=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var n=[],e=t._V||t.DV,i=dd(t,e),r=t.scope.internal.getFont(t.fontName,t.fontStyle).id;n.push("/Tx BMC"),n.push("q"),n.push("BT"),n.push(t.scope.__private__.encodeColorString(t.color)),n.push("/"+r+" "+bt(i.fontSize)+" Tf"),n.push("1 0 0 1 0 0 Tm"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC");var o=Pr(t);return o.scope=t.scope,o.stream=n.join(` 22`),o}},dd=function(t,n){var e=t.fontSize===0?t.maxFontSize:t.fontSize,i={text:"",fontSize:""},r=(n=(n=n.substr(0,1)=="("?n.substr(1):n).substr(n.length-1)==")"?n.substr(0,n.length-1):n).split(" ");r=t.multiline?r.map(function(D){return D.split(` 23`)}):r.map(function(D){return[D]});var o=e,p=it.internal.getHeight(t)||0;p=p<0?-p:p;var u=it.internal.getWidth(t)||0;u=u<0?-u:u;var f=function(D,B,ee){if(D+1<r.length){var Y=B+" "+r[D+1][0];return cc(Y,t,ee).width<=u-4}return!1};o++;e:for(;o>0;){n="",o--;var _,x,C=cc("3",t,o).height,L=t.multiline?p-o:(p-C)/2,v=L+=2,V=0,O=0,G=0;if(o<=0){n=`(...) Tj
24`,n+="% Width of Text: "+cc(n,t,o=12).width+", FieldWidth:"+u+` 25`;break}for(var k="",U=0,$=0;$<r.length;$++)if(r.hasOwnProperty($)){var he=!1;if(r[$].length!==1&&G!==r[$].length-1){if((C+2)*(U+2)+2>p)continue e;k+=r[$][G],he=!0,O=$,$--}else{k=(k+=r[$][G]+" ").substr(k.length-1)==" "?k.substr(0,k.length-1):k;var pe=parseInt($),Le=f(pe,k,o),de=$>=r.length-1;if(Le&&!de){k+=" ",G=0;continue}if(Le||de){if(de)O=pe;else if(t.multiline&&(C+2)*(U+2)+2>p)continue e}else{if(!t.multiline||(C+2)*(U+2)+2>p)continue e;O=pe}}for(var J="",ue=V;ue<=O;ue++){var Pe=r[ue];if(t.multiline){if(ue===O){J+=Pe[G]+" ",G=(G+1)%Pe.length;continue}if(ue===V){J+=Pe[Pe.length-1]+" ";continue}}J+=Pe[0]+" "}switch(J=J.substr(J.length-1)==" "?J.substr(0,J.length-1):J,x=cc(J,t,o).width,t.textAlign){case"right":_=u-x-2;break;case"center":_=(u-x)/2;break;case"left":default:_=2}n+=bt(_)+" "+bt(v)+` Td 26`,n+="("+Wa(J)+`) Tj 27`,n+=-bt(_)+` 0 Td 28`,v=-(o+2),x=0,V=he?O:O+1,U++,k=""}break}return i.text=n,i.fontSize=o,i},cc=function(t,n,e){var i=n.scope.internal.getFont(n.fontName,n.fontStyle),r=n.scope.getStringUnitWidth(t,{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:n.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:r}},Iv={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Tv=function(t,n){var e={type:"reference",object:t};n.internal.getPageInfo(t.page).pageContext.annotations.find(function(i){return i.type===e.type&&i.object===e.object})===void 0&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},Nv=function(t,n){for(var e in t)if(t.hasOwnProperty(e)){var i=e,r=t[e];n.internal.newObjectDeferredBegin(r.objId,!0),Yt(r)==="object"&&typeof r.putStream=="function"&&r.putStream(),delete t[i]}},Ev=function(t,n){if(n.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(or.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Iv)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");md=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new q1,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var i=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in i)if(i.hasOwnProperty(r)){var o=i[r];o.objId=void 0,o.hasAnnotation&&Tv(o,e)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(i,r){var o=!i;for(var p in i||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),i=i||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(i.hasOwnProperty(p)){var u=i[p],f=[],_=u.Rect;if(u.Rect&&(u.Rect=Pv(u.Rect,r)),r.internal.newObjectDeferredBegin(u.objId,!0),u.DA=it.createDefaultAppearanceStream(u),Yt(u)==="object"&&typeof u.getKeyValueListForStream=="function"&&(f=u.getKeyValueListForStream()),u.Rect=_,u.hasAppearanceStream&&!u.appearanceStreamContent){var x=Av(u);f.push({key:"AP",value:"<</N "+x+">>"}),r.internal.acroformPlugin.xForms.push(x)}if(u.appearanceStreamContent){var C="";for(var L in u.appearanceStreamContent)if(u.appearanceStreamContent.hasOwnProperty(L)){var v=u.appearanceStreamContent[L];if(C+="/"+L+" ",C+="<<",Object.keys(v).length>=1||Array.isArray(v)){for(var p in v)if(v.hasOwnProperty(p)){var V=v[p];typeof V=="function"&&(V=V.call(r,u)),C+="/"+p+" "+V+" ",r.internal.acroformPlugin.xForms.indexOf(V)>=0||r.internal.acroformPlugin.xForms.push(V)}}else typeof(V=v)=="function"&&(V=V.call(r,u)),C+="/"+p+" "+V,r.internal.acroformPlugin.xForms.indexOf(V)>=0||r.internal.acroformPlugin.xForms.push(V);C+=">>"}f.push({key:"AP",value:`<< 29`+C+">>"})}r.internal.putStream({additionalKeyValues:f,objectId:u.objId}),r.internal.out("endobj")}o&&Nv(r.internal.acroformPlugin.xForms,r)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},R1=fi.__acroform__.arrayToPdfArray=function(t,n,e){var i=function(p){return p};if(Array.isArray(t)){for(var r="[",o=0;o<t.length;o++)switch(o!==0&&(r+=" "),Yt(t[o])){case"boolean":case"number":case"object":r+=t[o].toString();break;case"string":t[o].substr(0,1)!=="/"?(n!==void 0&&e&&(i=e.internal.getEncryptor(n)),r+="("+Wa(i(t[o].toString()))+")"):r+=t[o
29].toString()}return r+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ad=function(t,n,e){var i=function(r){return r};return n!==void 0&&e&&(i=e.internal.getEncryptor(n)),(t=t||"").toString(),t="("+Wa(i(t))+")"},Ar=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ar.prototype.toString=function(){return this.objId+" 0 R"},Ar.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Ar.prototype.getKeyValueListForStream=function(){var t=[],n=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var e in n)if(Object.getOwnPropertyDescriptor(this,n[e]).configurable===!1){var i=n[e],r=this[i];r&&(Array.isArray(r)?t.push({key:i,value:R1(r,this.objId,this.scope)}):r instanceof Ar?(r.scope=this.scope,t.push({key:i,value:r.objId+" 0 R"})):typeof r!="function"&&t.push({key:i,value:r}))}return t};j1=function(){Ar.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,n=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};_n(j1,Ar);q1=function(){Ar.call(this);var t,n=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(i){return i};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Wa(e(t))+")"}},set:function(e){t=e}})};_n(q1,Ar);or=function t(){Ar.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute F supplied.');n=k}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!xi(n,3)},set:function(k){k?this.F=wi(n,3):this.F=Ci(n,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute Ff supplied.');e=k}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(i.length!==0)return i},set:function(k){i=k!==void 0?k:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(k){i[0]=k}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(k){i[1]=k}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(k){i[2]=k}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(k){i[3]=k}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(k){switch(k){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=k;break;default:throw new Error('Invalid value "'+k+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof vc)return;o="FieldObject"+t.FieldNum++}var k=function(U){return U};return this.scope&&(k=this.scope.internal.getEncryptor(this.objId)),"("+Wa(k(o))+")"},set:function(k){o=k.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o}
29,set:function(k){o=k}});var p="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return p},set:function(k){p=k}});var u="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return u},set:function(k){u=k}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(k){f=k}});var _=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return _===void 0?50/md:_},set:function(k){_=k}});var x="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return x},set:function(k){x=k}});var C="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!C||this instanceof vc||this instanceof za))return ad(C,this.objId,this.scope)},set:function(k){k=k.toString(),C=k}});var L=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(L)return this instanceof Fi?L:ad(L,this.objId,this.scope)},set:function(k){k=k.toString(),L=this instanceof Fi?k:k.substr(0,1)==="("?Fo(k.substr(1,k.length-2)):Fo(k)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fi?Fo(L.substr(1,L.length-1)):L},set:function(k){k=k.toString(),L=this instanceof Fi?"/"+k:k}});var v=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(v)return v},set:function(k){this.V=k}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(v)return this instanceof Fi?v:ad(v,this.objId,this.scope)},set:function(k){k=k.toString(),v=this instanceof Fi?k:k.substr(0,1)==="("?Fo(k.substr(1,k.length-2)):Fo(k)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fi?Fo(v.substr(1,v.length-1)):v},set:function(k){k=k.toString(),v=this instanceof Fi?"/"+k:k}}),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 V,O=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return O},set:function(k){k=!!k,O=k}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(V)return V},set:function(k){V=k}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,1)},set:function(k){k?this.Ff=wi(this.Ff,1):this.Ff=Ci(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,2)},set:function(k){k?this.Ff=wi(this.Ff,2):this.Ff=Ci(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,3)},set:function(k){k?this.Ff=wi(this.Ff,3):this.Ff=Ci(this.Ff,3)}});var G=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(G!==null)return G},set:function(k){if([0,1,2].indexOf(k)===-1)throw new Error('Invalid value "'+k+'" for attribute Q supplied.');G=k}}),Object.defineProperty(this,"textAlign",{get:function(){var k;switch(G){case 0:default:k="left";break;case 1:k="center";break;case 2:k="right"}return k},configurable:!0,enumerable:!0,set:function(k){switch(k){case"right":case 2:G=2;break;case"center":case 1:G=1;break;case"left":case 0:default:G=0}}})};_n(or,Ar);Vo=function(){or.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return R1(n,this.objId,this.scope)},set:function(e){var i,r;r=[],typeof(i=e)=="string"&&(r=function(o,p,u){u||(u=1);for(var f,_=[];f=p.exec(o);)_.push(f[u]);return _}(i,/\((.*?)\)/g)),n=r}}),this.getOptions=function(){return n},this.setOptions=function(e){n=e,this.sort&&n.sort()},this.addOption=function(e){e=(e=e||"").toString(),n.push(e),this.sort&&n.sort()},this.removeOption=function(e,i){for(i=i||!1,e=(e=e||"").toString();n.indexOf(e)!==-1&&(n.splice(n.indexOf(e),1),i!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,18)}
29,set:function(e){e?this.Ff=wi(this.Ff,18):this.Ff=Ci(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=wi(this.Ff,19):this.Ff=Ci(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,20)},set:function(e){e?(this.Ff=wi(this.Ff,20),n.sort()):this.Ff=Ci(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,22)},set:function(e){e?this.Ff=wi(this.Ff,22):this.Ff=Ci(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,23)},set:function(e){e?this.Ff=wi(this.Ff,23):this.Ff=Ci(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,27)},set:function(e){e?this.Ff=wi(this.Ff,27):this.Ff=Ci(this.Ff,27)}}),this.hasAppearanceStream=!1};_n(Vo,or);zo=function(){Vo.call(this),this.fontName="helvetica",this.combo=!1};_n(zo,Vo);Wo=function(){zo.call(this),this.combo=!0};_n(Wo,zo);uc=function(){Wo.call(this),this.edit=!0};_n(uc,Wo);Fi=function(){or.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,15)},set:function(e){e?this.Ff=wi(this.Ff,15):this.Ff=Ci(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,16)},set:function(e){e?this.Ff=wi(this.Ff,16):this.Ff=Ci(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,17)},set:function(e){e?this.Ff=wi(this.Ff,17):this.Ff=Ci(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,26)},set:function(e){e?this.Ff=wi(this.Ff,26):this.Ff=Ci(this.Ff,26)}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(o){return o};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(n).length!==0){var i,r=[];for(i in r.push("<<"),n)r.push("/"+i+" ("+Wa(e(n[i]))+")");return r.push(">>"),r.join(` 30`)}},set:function(e){Yt(e)==="object"&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){typeof e=="string"&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};_n(Fi,or);fc=function(){Fi.call(this),this.pushButton=!0};_n(fc,Fi);Ho=function(){Fi.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n!==void 0?n:[]}})};_n(Ho,Fi);vc=function(){var t,n;or.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(r){n=r}});var e,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(u){return u};this.scope&&(r=this.scope.internal.getEncryptor(this.objId));var o,p=[];for(o in p.push("<<"),i)p.push("/"+o+" ("+Wa(r(i[o]))+")");return p.push(">>"),p.join(` 31`)},set:function(r){Yt(r)==="object"&&(i=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(r){typeof r=="string"&&(i.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+r}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=it.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};_n(vc,or),Ho.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var e=this.Kids[n];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}}
vendor: 4,773 bytes, lines 31-35
31,Ho.prototype.createOption=function(t){var n=new vc;return n.Parent=this,n.optionName=t,this.Kids.push(n),Lv.call(this.scope,n),n};mc=function(){Fi.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=it.CheckBox.createAppearanceStream()};_n(mc,Fi);za=function(){or.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,13)},set:function(n){n?this.Ff=wi(this.Ff,13):this.Ff=Ci(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,21)},set:function(n){n?this.Ff=wi(this.Ff,21):this.Ff=Ci(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,23)},set:function(n){n?this.Ff=wi(this.Ff,23):this.Ff=Ci(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,24)},set:function(n){n?this.Ff=wi(this.Ff,24):this.Ff=Ci(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,25)},set:function(n){n?this.Ff=wi(this.Ff,25):this.Ff=Ci(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,26)},set:function(n){n?this.Ff=wi(this.Ff,26):this.Ff=Ci(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){Number.isInteger(n)&&(t=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};_n(za,or);hc=function(){za.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,14)},set:function(t){t?this.Ff=wi(this.Ff,14):this.Ff=Ci(this.Ff,14)}}),this.password=!0};_n(hc,za);it={CheckBox:{createAppearanceStream:function(){return{N:{On:it.CheckBox.YesNormal},D:{On:it.CheckBox.YesPushDown,Off:it.CheckBox.OffPushDown}}},YesPushDown:function(t){var n=Pr(t);n.scope=t.scope;var e=[],i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),o=dd(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+bt(it.internal.getWidth(t))+" "+bt(it.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+i+" "+bt(o.fontSize)+" Tf "+r),e.push("BT"),e.push(o.text),e.push("ET"),e.push("Q"),e.push("EMC"),n.stream=e.join(` 32`),n},YesNormal:function(t){var n=Pr(t);n.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),r=[],o=it.internal.getHeight(t),p=it.internal.getWidth(t),u=dd(t,t.caption);return r.push("1 g"),r.push("0 0 "+bt(p)+" "+bt(o)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+bt(p-1)+" "+bt(o-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+e+" "+bt(u.fontSize)+" Tf "+i),r.push(u.text),r.push("ET"),r.push("Q"),n.stream=r.join(` 33`),n},OffPushDown:function(t){var n=Pr(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+bt(it.internal.getWidth(t))+" "+bt(it.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(` 34`),n}},RadioButton:{Circle:{createAppearanceStream:function(t){var n={D:{Off:it.RadioButton.Circle.OffPushDown},N:{}};return n.N[t]=it.RadioButton.Circle.YesNormal,n.D[t]=it.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(t){var n=Pr(t);n.scope=t.scope;var e=[],i=it.internal.getWidth(t)<=it.internal.getHeight(t)?it.internal.getWidth(t)/4:it.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var r=it.internal.Bezier_C,o=Number((i*r).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+ha(it.internal.getWidth(t)/2)+" "+ha(it.internal.getHeight(t)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),e.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),e.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),e.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` 35`),n},YesPushDown:function(t){var n=Pr(t);n.scope=t.scope;var e=[],i=it.internal.getWidth(t)<=it.internal.getHeight(t)?it.internal.getWidth(t)/4:it.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var r=Number((2*i).toFixed(5)),o=Number((r*it.internal.Bezier_C).toFixed(5)),p=Number((i*it.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ha(it.internal.getWidth(t)/2)+" "+ha(it.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+o+" "+o+" "+r+" 0 "+r
35+" c"),e.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),e.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),e.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+ha(it.internal.getWidth(t)/2)+" "+ha(it.internal.getHeight(t)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+p+" "+p+" "+i+" 0 "+i+" c"),e.push("-"+p+" "+i+" -"+i+" "+p+" -"+i+" 0 c"),e.push("-"+i+" -"+p+" -"+p+" -"+i+" 0 -"+i+" c"),e.push(p+" -"+i+" "+i+" -"+p+" "+i+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` 36`),n},OffPushDown:function(t){var n=Pr(t);n.scope=t.scope;var e=[],i=it.internal.getWidth(t)<=it.internal.getHeight(t)?it.internal.getWidth(t)/4:it.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var r=Number((2*i).toFixed(5)),o=Number((r*it.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ha(it.internal.getWidth(t)/2)+" "+ha(it.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),e.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),e.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),e.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` 37`),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:it.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=it.RadioButton.Cross.YesNormal,n.D[t]=it.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=Pr(t);n.scope=t.scope;var e=[],i=it.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+bt(it.internal.getWidth(t)-2)+" "+bt(it.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(bt(i.x1.x)+" "+bt(i.x1.y)+" m"),e.push(bt(i.x2.x)+" "+bt(i.x2.y)+" l"),e.push(bt(i.x4.x)+" "+bt(i.x4.y)+" m"),e.push(bt(i.x3.x)+" "+bt(i.x3.y)+" l"),e.push("s"),e.push("Q"),n.stream=e.join(` 38`),n},YesPushDown:function(t){var n=Pr(t);n.scope=t.scope;var e=it.internal.calculateCross(t),i=[];return i.push("0.749023 g"),i.push("0 0 "+bt(it.internal.getWidth(t))+" "+bt(it.internal.getHeight(t))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+bt(it.internal.getWidth(t)-2)+" "+bt(it.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(bt(e.x1.x)+" "+bt(e.x1.y)+" m"),i.push(bt(e.x2.x)+" "+bt(e.x2.y)+" l"),i.push(bt(e.x4.x)+" "+bt(e.x4.y)+" m"),i.push(bt(e.x3.x)+" "+bt(e.x3.y)+" l"),i.push("s"),i.push("Q"),n.stream=i.join(` 39`),n},OffPushDown:function(t){var n=Pr(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+bt(it.internal.getWidth(t))+" "+bt(it.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(` 40`),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};it.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=it.internal.getWidth(t),e=it.internal.getHeight(t),i=Math.min(n,e);return{x1:{x:(n-i)/2,y:(e-i)/2+i},x2:{x:(n-i)/2+i,y:(e-i)/2},x3:{x:(n-i)/2,y:(e-i)/2},x4:{x:(n-i)/2+i,y:(e-i)/2+i}}}},it.internal.getWidth=function(t){var n=0;return Yt(t)==="object"&&(n=w1(t.Rect[2])),n},it.internal.getHeight=function(t){var n=0;return Yt(t)==="object"&&(n=w1(t.Rect[3])),n};Lv=fi.addField=function(t){if(Ev(this,t),!(t instanceof or))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};fi.AcroFormChoiceField=Vo,fi.AcroFormListBox=zo,fi.AcroFormComboBox=Wo,fi.AcroFormEditBox=uc,fi.AcroFormButton=Fi,fi.AcroFormPushButton=fc,fi.AcroFormRadioButton=Ho,fi.AcroFormCheckBox=mc,fi.AcroFormTextField=za,fi.AcroFormPasswordField=hc,fi.AcroFormAppearance=it,fi.AcroForm={ChoiceField:Vo,ListBox:zo,ComboBox:Wo,EditBox:uc,Button:Fi,PushButton:fc,RadioButton:Ho,CheckBox:mc,TextField:za,PasswordField:hc,Appearance:it},dt.AcroForm={ChoiceField:Vo,ListBox:zo,ComboBox:Wo,EditBox:uc,Button:Fi,PushButton:fc,RadioButton:Ho,CheckBox:mc,TextField:za,PasswordField:hc,Appearance:it};ox=dt.AcroForm;(function(t){t.__addimage__={};var n="UNKNOWN",e={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],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(D,B){var ee,Y,_e,fe,xe,le=n;if((B=B||n)==="RGBA"||D.data!==void 0&&D.data instanceof Uint8ClampedArray&&"height"in D&&"width"in D)return"RGBA";if(Le(D))for(xe in e)for(_e=e[xe],ee=0;ee<_e.length;ee+=1){for(fe=!0,Y=0;Y<_e[ee].length;Y+=1)if(_e[ee][Y]!==void 0&&_e[ee][Y]!==D[Y]){fe=!1;break}if(fe===!0){le=xe;break}}else for(xe in e)for(_e=e[xe],ee=0;ee<_e.length;ee+=1){for(fe=!0,Y=0;Y<_e[ee].length;
40Y+=1)if(_e[ee][Y]!==void 0&&_e[ee][Y]!==D.charCodeAt(Y)){fe=!1;break}if(fe===!0){le=xe;break}}return le===n&&B!==n&&(le=B),le},r=function D(B){for(var ee=this.internal.write,Y=this.internal.putStream,_e=(0,this.internal.getFilters)();_e.indexOf("FlateEncode")!==-1;)_e.splice(_e.indexOf("FlateEncode"),1);B.objectId=this.internal.newObject();var fe=[];if(fe.push({key:"Type",value:"/XObject"}),fe.push({key:"Subtype",value:"/Image"}),fe.push({key:"Width",value:B.width}),fe.push({key:"Height",value:B.height}),B.colorSpace===G.INDEXED?fe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(B.palette.length/3-1)+" "+("sMask"in B&&B.sMask!==void 0?B.objectId+2:B.objectId+1)+" 0 R]"}):(fe.push({key:"ColorSpace",value:"/"+B.colorSpace}),B.colorSpace===G.DEVICE_CMYK&&fe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),fe.push({key:"BitsPerComponent",value:B.bitsPerComponent}),"decodeParameters"in B&&B.decodeParameters!==void 0&&fe.push({key:"DecodeParms",value:"<<"+B.decodeParameters+">>"}),"transparency"in B&&Array.isArray(B.transparency)){for(var xe="",le=0,Ce=B.transparency.length;le<Ce;le++)xe+=B.transparency[le]+" "+B.transparency[le]+" ";fe.push({key:"Mask",value:"["+xe+"]"})}B.sMask!==void 0&&fe.push({key:"SMask",value:B.objectId+1+" 0 R"});var Ae=B.filter!==void 0?["/"+B.filter]:void 0;if(Y({data:B.data,additionalKeyValues:fe,alreadyAppliedFilters:Ae,objectId:B.objectId}),ee("endobj"),"sMask"in B&&B.sMask!==void 0){var $e="/Predictor "+B.predictor+" /Colors 1 /BitsPerComponent "+B.bitsPerComponent+" /Columns "+B.width,T={width:B.width,height:B.height,colorSpace:"DeviceGray",bitsPerComponent:B.bitsPerComponent,decodeParameters:$e,data:B.sMask};"filter"in B&&(T.filter=B.filter),D.call(this,T)}
40if(B.colorSpace===G.INDEXED){var j=this.internal.newObject();Y({data:J(new Uint8Array(B.palette)),objectId:j}),ee("endobj")}},o=function(){var D=this.internal.collections.addImage_images;for(var B in D)r.call(this,D[B])},p=function(){var D,B=this.internal.collections.addImage_images,ee=this.internal.write;for(var Y in B)ee("/I"+(D=B[Y]).index,D.objectId,"0","R")},u=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",p))},f=function(){var D=this.internal.collections.addImage_images;return u.call(this),D},_=function(){return Object.keys(this.internal.collections.addImage_images).length},x=function(D){return typeof t["process"+D.toUpperCase()]=="function"},C=function(D){return Yt(D)==="object"&&D.nodeType===1},L=function(D,B){if(D.nodeName==="IMG"&&D.hasAttribute("src")){var ee=""+D.getAttribute("src");if(ee.indexOf("data:image/")===0)return Ns(unescape(ee).split("base64,").pop());var Y=t.loadFile(ee,!0);if(Y!==void 0)return Y}if(D.nodeName==="CANVAS"){if(D.width===0||D.height===0)throw new Error("Given canvas must have data. Canvas width: "+D.width+", height: "+D.height);var _e;switch(B){case"PNG":_e="image/png";break;case"WEBP":_e="image/webp";break;case"JPEG":case"JPG":default:_e="image/jpeg"}return Ns(D.toDataURL(_e,1).split("base64,").pop())}},v=function(D){var B=this.internal.collections.addImage_images;if(B){for(var ee in B)if(D===B[ee].alias)return B[ee]}},V=function(D,B,ee){return D||B||(D=-96,B=-96),D<0&&(D=-1*ee.width*72/D/this.internal.scaleFactor),B<0&&(B=-1*ee.height*72/B/this.internal.scaleFactor),D===0&&(D=B*ee.width/ee.height),B===0&&(B=D*ee.height/ee.width),[D,B]},O=function(D,B,ee,Y,_e,fe){var xe=V.call(this,ee,Y,_e),le=this.internal.getCoordinateString,Ce=this.internal.getVerticalCoordinateString,Ae=f.call(this);if(ee=xe[0],Y=xe[1],Ae[_e.index]=_e,fe){fe*=Math.PI/180;var $e=Math.cos(fe),T=Math.sin(fe),j=function(X){return X.toFixed(4)},W=[j($e),j(T),j(-1*T),j($e),0,0,"cm"]}this.internal.write("q"),fe?(this.internal.write([1,"0","0",1,le(D),Ce(B+Y),"cm"].join(" ")),this.internal.write(W.join(" ")),this.internal.write([le(ee),"0","0",le(Y),"0","0","cm"].join(" "))):this.internal.write([le(ee),"0","0",le(Y),le(D),Ce(B+Y),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+_e.index+" Do"),this.internal.write("Q")},G=t.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"};t.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"};var k=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},U=t.__addimage__.sHashCode=function(D){var B,ee,Y=0;
40if(typeof D=="string")for(ee=D.length,B=0;B<ee;B++)Y=(Y<<5)-Y+D.charCodeAt(B),Y|=0;else if(Le(D))for(ee=D.byteLength/2,B=0;B<ee;B++)Y=(Y<<5)-Y+D[B],Y|=0;return Y},$=t.__addimage__.validateStringAsBase64=function(D){(D=D||"").toString().trim();var B=!0;return D.length===0&&(B=!1),D.length%4!=0&&(B=!1),/^[A-Za-z0-9+/]+$/.test(D.substr(0,D.length-2))===!1&&(B=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(D.substr(-2))===!1&&(B=!1),B},he=t.__addimage__.extractImageFromDataUrl=function(D){var B=(D=D||"").split("base64,"),ee=null;if(B.length===2){var Y=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(B[0]);Array.isArray(Y)&&(ee={mimeType:Y[1],charset:Y[2],data:B[1]})}return ee},pe=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(D){return pe()&&D instanceof ArrayBuffer};var Le=t.__addimage__.isArrayBufferView=function(D){return pe()&&typeof Uint32Array<"u"&&(D instanceof Int8Array||D instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&D instanceof Uint8ClampedArray||D instanceof Int16Array||D instanceof Uint16Array||D instanceof Int32Array||D instanceof Uint32Array||D instanceof Float32Array||D instanceof Float64Array)},de=t.__addimage__.binaryStringToUint8Array=function(D){for(var B=D.length,ee=new Uint8Array(B),Y=0;Y<B;Y++)ee[Y]=D.charCodeAt(Y);return ee},J=t.__addimage__.arrayBufferToBinaryString=function(D){for(var B="",ee=Le(D)?D:new Uint8Array(D),Y=0;Y<ee.length;Y+=8192)B+=String.fromCharCode.apply(null,ee.subarray(Y,Y+8192));return B};t.addImage=function(){var D,B,ee,Y,_e,fe,xe,le,Ce;if(typeof arguments[1]=="number"?(B=n,ee=arguments[1],Y=arguments[2],_e=arguments[3],fe=arguments[4],xe=arguments[5],le=arguments[6],Ce=arguments[7]):(B=arguments[1],ee=arguments[2],Y=arguments[3],_e=arguments[4],fe=arguments[5],xe=arguments[6],le=arguments[7],Ce=arguments[8]),Yt(D=arguments[0])==="object"&&!C(D)&&"imageData"in D){var Ae=D;D=Ae.imageData,B=Ae.format||B||n,ee=Ae.x||ee||0,Y=Ae.y||Y||0,_e=Ae.w||Ae.width||_e,fe=Ae.h||Ae.height||fe,xe=Ae.alias||xe,le=Ae.compression||le,Ce=Ae.rotation||Ae.angle||Ce}var $e=this.internal.getFilters();if(le===void 0&&$e.indexOf("FlateEncode")!==-1&&(le="SLOW"),isNaN(ee)||isNaN(Y))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var T=ue.call(this,D,B,xe,le);return O.call(this,ee,Y,_e,fe,T,Ce),this};var ue=function(D,B,ee,Y){var _e,fe,xe;
40if(typeof D=="string"&&i(D)===n){D=unescape(D);var le=Pe(D,!1);(le!==""||(le=t.loadFile(D,!0))!==void 0)&&(D=le)}if(C(D)&&(D=L(D,B)),B=i(D,B),!x(B))throw new Error("addImage does not support files of type '"+B+"', please ensure that a plugin for '"+B+"' support is added.");if(((xe=ee)==null||xe.length===0)&&(ee=function(Ce){return typeof Ce=="string"||Le(Ce)?U(Ce):Le(Ce.data)?U(Ce.data):null}(D)),(_e=v.call(this,ee))||(pe()&&(D instanceof Uint8Array||B==="RGBA"||(fe=D,D=de(D))),_e=this["process"+B.toUpperCase()](D,_.call(this),ee,function(Ce){return Ce&&typeof Ce=="string"&&(Ce=Ce.toUpperCase()),Ce in t.image_compression?Ce:k.NONE}(Y),fe)),!_e)throw new Error("An unknown error occurred whilst processing the image.");return _e},Pe=t.__addimage__.convertBase64ToBinaryString=function(D,B){var ee;B=typeof B!="boolean"||B;var Y,_e="";if(typeof D=="string"){Y=(ee=he(D))!==null?ee.data:D;try{_e=Ns(Y)}catch(fe){if(B)throw $(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+fe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return _e};t.getImageProperties=function(D){var B,ee,Y="";
40if(C(D)&&(D=L(D)),typeof D=="string"&&i(D)===n&&((Y=Pe(D,!1))===""&&(Y=t.loadFile(D)||""),D=Y),ee=i(D),!x(ee))throw new Error("addImage does not support files of type '"+ee+"', please ensure that a plugin for '"+ee+"' support is added.");if(!pe()||D instanceof Uint8Array||(D=de(D)),!(B=this["process"+ee.toUpperCase()](D)))throw new Error("An unknown error occurred whilst processing the image");return B.fileType=ee,B}})(dt.API),function(t){var n=function(e){if(e!==void 0&&e!="")return!0};dt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var i,r,o,p=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(e.objId),_=e.pageContext.annotations,x=!1,C=0;C<_.length&&!x;C++)switch((i=_[C]).type){case"link":(n(i.options.url)||n(i.options.pageNumber))&&(x=!0);break;case"reference":case"text":case"freetext":x=!0}if(x!=0){this.internal.write("/Annots [");for(var L=0;L<_.length;L++){i=_[L];var v=this.internal.pdfEscape,V=this.internal.getEncryptor(e.objId);switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var O=this.internal.newAdditionalObject(),G=this.internal.newAdditionalObject(),k=this.internal.getEncryptor(O.objId),U=i.title||"Note";o="<</Type /Annot /Subtype /Text "+(r="/Rect ["+p(i.bounds.x)+" "+u(i.bounds.y+i.bounds.h)+" "+p(i.bounds.x+i.bounds.w)+" "+u(i.bounds.y)+"] ")+"/Contents ("+v(k(i.contents))+")",o+=" /Popup "+G.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+v(k(U))+") >>",O.content=o;var $=O.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+p(i.bounds.x+30)+" "+u(i.bounds.y+i.bounds.h)+" "+p(i.bounds.x+i.bounds.w+30)+" "+u(i.bounds.y)+"] ")+" /Parent "+$,i.open&&(o+=" /Open true"),o+=" >>",G.content=o,this.internal.write(O.objId,"0 R",G.objId,"0 R");break;case"freetext":r="/Rect ["+p(i.bounds.x)+" "+u(i.bounds.y)+" "+p(i.bounds.x+i.bounds.w)+" "+u(i.bounds.y+i.bounds.h)+"] ";var he=i.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+v(V(i.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+he+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(i.options.name){var pe=this.annotations._nameMap[i.options.name];i.options.pageNumber=pe.page,i.options.top=pe.y}else i.options.top||(i.options.top=0);if(r="/Rect ["+i.finalBounds.x+" "+i.finalBounds.y+" "+i.finalBounds.w+" "+i.finalBounds.h+"] ",o="",i.options.url)o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+v(V(i.options.url))+") >>";else if(i.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(i.options.pageNumber).objId+" 0 R",i.options.magFactor=i.options.magFactor||"XYZ",i.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,o+=" /FitV "+i.options.left+"]";break;case"XYZ":default:var Le=u(i.options.top);i.options.left=i.options.left||0,i.options.zoom===void 0&&(i.options.zoom=0),o+=" /XYZ "+i.options.left+" "+Le+" "+i.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var i=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":i.pageContext.annotations.push(e)}},t.link=function(e,i,r,o,p){var u=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,_=this.internal.getVerticalCoordinateString;u.pageContext.annotations.push({finalBounds:{x:f(e),y:_(i),w:f(e+r),h:_(i+o)},options:p,type:"link"})},t.textWithLink=function(e,i,r,o){var p,u,f=this.getTextWidth(e),_=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){u=o.maxWidth;var x=this.splitTextToSize(e,u).length;p=Math.ceil(_*x)}else u=f,p=_;return this.text(e,i,r,o),r+=.2*_,o.align==="center"&&(i-=f/2),o.align==="right"&&(i-=f),this.link(i,r-_,u,p,o),f},t.getTextWidth=function(e){var i=this.internal.getFontSize();
40return this.getStringUnitWidth(e)*i/this.internal.scaleFactor}}(dt.API),function(t){var n={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
407],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]},e={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}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(O){return n[O.charCodeAt(0)]!==void 0},p=t.__arabicParser__.isArabicLetter=function(O){return typeof O=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(O)},u=t.__arabicParser__.isArabicEndLetter=function(O){return p(O)&&o(O)&&n[O.charCodeAt(0)].length<=2},f=t.__arabicParser__.isArabicAlfLetter=function(O){return p(O)&&r.indexOf(O.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(O){return p(O)&&o(O)&&n[O.charCodeAt(0)].length>=1};var _=t.__arabicParser__.arabicLetterHasFinalForm=function(O){return p(O)&&o(O)&&n[O.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(O){return p(O)&&o(O)&&n[O.charCodeAt(0)].length>=3};var x=t.__arabicParser__.arabicLetterHasMedialForm=function(O){return p(O)&&o(O)&&n[O.charCodeAt(0)].length==4},C=t.__arabicParser__.resolveLigatures=function(O){var G=0,k=e,U="",$=0;for(G=0;G<O.length;G+=1)k[O.charCodeAt(G)]!==void 0?($++,typeof(k=k[O.charCodeAt(G)])=="number"&&(U+=String.fromCharCode(k),k=e,$=0),G===O.length-1&&(k=e,U+=O.charAt(G-($-1)),G-=$-1,$=0)):(k=e,U+=O.charAt(G-$),G-=$,$=0);return U};t.__arabicParser__.isArabicDiacritic=function(O){return O!==void 0&&i[O.charCodeAt(0)]!==void 0};var L=t.__arabicParser__.getCorrectForm=function(O,G,k){return p(O)?o(O)===!1?-1:!_(O)||!p(G)&&!p(k)||!p(k)&&u(G)||u(O)&&!p(G)||u(O)&&f(G)||u(O)&&u(G)?0:x(O)&&p(G)&&!u(G)&&p(k)&&_(k)?3:u(O)||!p(k)?1:2:-1},v=function(O){var G=0,k=0,U=0,$="",he="",pe="",Le=(O=O||"").split("\\s+"),de=[];for(G=0;G<Le.length;G+=1){for(de.push(""),k=0;k<Le[G].length;k+=1)$=Le[G][k],he=Le[G][k-1],pe=Le[G][k+1],p($)?(U=L($,he,pe),de[G]+=U!==-1?String.fromCharCode(n[$.charCodeAt(0)][U]):$):de[G]+=$;de[G]=C(de[G])}return de.join(" ")},V=t.__arabicParser__.processArabic=t.processArabic=function(){var O,G=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,k=[];if(Array.isArray(G)){var U=0;for(k=[],U=0;U<G.length;U+=1)Array.isArray(G[U])?k.push([v(G[U][0]),G[U][1],G[U][2]]):k.push([v(G[U])]);O=k}else O=v(G);return typeof arguments[0]=="string"?O:(arguments[0].text=O,arguments[0])};t.events.push(["preProcessText",V])}(dt.API),dt.API.autoPrint=function(t){var n;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){n=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 "+n+" 0 R")})}return this},function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(u){e=u}});var i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(u){i=isNaN(u)||Number.isInteger(u)===!1||u<0?150:u,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(u){r=isNaN(u)||Number.isInteger(u)===!1||u<0?300:u,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o}
40,set:function(u){o=u}});var p={};Object.defineProperty(this,"style",{get:function(){return p},set:function(u){p=u}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(e,i){var r;if((e=e||"2d")!=="2d")return null;for(r in i)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=i[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])}(dt.API),function(t){var n={left:0,top:0,bottom:0,right:0},e=!1,i=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},n),this.internal.__cell__.margins.width=this.getPageWidth(),r.call(this))},r=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(O){f=O}});var _=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _},set:function(O){_=O}});var x=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return x},set:function(O){x=O}});var C=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return C},set:function(O){C=O}});var L=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return L},set:function(O){L=O}});var v=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return v},set:function(O){v=O}});var V=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return V},set:function(O){V=O}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(f){return i.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},t.getTextDimensions=function(f,_){i.call(this);var x=(_=_||{}).fontSize||this.getFontSize(),C=_.font||this.getFont(),L=_.scaleFactor||this.internal.scaleFactor,v=0,V=0,O=0,G=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var k=_.maxWidth;k>0?typeof f=="string"?f=this.splitTextToSize(f,k):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function($,he){return $.concat(G.splitTextToSize(he,k))},[])):f=Array.isArray(f)?f:[f];for(var U=0;U<f.length;U++)v<(O=this.getStringUnitWidth(f[U],{font:C})*x)&&(v=O);return v!==0&&(V=f.length),{w:v/=L,h:Math.max((V*x*this.getLineHeightFactor()-x*(this.getLineHeightFactor()-1))/L,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var f=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new o(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var p=t.cell=function(){var f;f=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var _=this.internal.__cell__.lastCell,x=this.internal.__cell__.padding,C=this.internal.__cell__.margins||n,L=this.internal.__cell__.tableHeaderRow,v=this.internal.__cell__.printHeaders;return _.lineNumber!==void 0&&(_.lineNumber===f.lineNumber?(f.x=(_.x||0)+(_.width||0),f.y=_.y||0):_.y+_.height+f.height+C.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=C.top,v&&L&&(this.printHeaderRow(f.lineNumber,!0),f.y+=L[0].height)):f.y=_.y+_.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,e===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-x,f.y+x,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+x,{align:"center",baseline:"top",maxWidth:f.width-x-x}):this.text(f.text,f.x+x,f.y+x,{align:"left",baseline:"top",maxWidth:f.
40width-x-x})),this.internal.__cell__.lastCell=f,this};t.table=function(f,_,x,C,L){if(i.call(this),!x)throw new Error("No data for PDF table.");var v,V,O,G,k=[],U=[],$=[],he={},pe={},Le=[],de=[],J=(L=L||{}).autoSize||!1,ue=L.printHeaders!==!1,Pe=L.css&&L.css["font-size"]!==void 0?16*L.css["font-size"]:L.fontSize||12,D=L.margins||Object.assign({width:this.getPageWidth()},n),B=typeof L.padding=="number"?L.padding:3,ee=L.headerBackgroundColor||"#c8c8c8",Y=L.headerTextColor||"#000";if(r.call(this),this.internal.__cell__.printHeaders=ue,this.internal.__cell__.margins=D,this.internal.__cell__.table_font_size=Pe,this.internal.__cell__.padding=B,this.internal.__cell__.headerBackgroundColor=ee,this.internal.__cell__.headerTextColor=Y,this.setFontSize(Pe),C==null)U=k=Object.keys(x[0]),$=k.map(function(){return"left"});else if(Array.isArray(C)&&Yt(C[0])==="object")for(k=C.map(function(Ae){return Ae.name}),U=C.map(function(Ae){return Ae.prompt||Ae.name||""}),$=C.map(function(Ae){return Ae.align||"left"}),v=0;v<C.length;v+=1)pe[C[v].name]=C[v].width*(19.049976/25.4);else Array.isArray(C)&&typeof C[0]=="string"&&(U=k=C,$=k.map(function(){return"left"}));if(J||Array.isArray(C)&&typeof C[0]=="string")for(v=0;v<k.length;v+=1){for(he[G=k[v]]=x.map(function(Ae){return Ae[G]}),this.setFont(void 0,"bold"),Le.push(this.getTextDimensions(U[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),V=he[G],this.setFont(void 0,"normal"),O=0;O<V.length;O+=1)Le.push(this.getTextDimensions(V[O],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);pe[G]=Math.max.apply(null,Le)+B+B,Le=[]}if(ue){var _e={};for(v=0;v<k.length;v+=1)_e[k[v]]={},_e[k[v]].text=U[v],_e[k[v]].align=$[v];var fe=u.call(this,_e,pe);de=k.map(function(Ae){return new o(f,_,pe[Ae],fe,_e[Ae].text,void 0,_e[Ae].align)}),this.setTableHeaderRow(de),this.printHeaderRow(1,!1)}var xe=C.reduce(function(Ae,$e){return Ae[$e.name]=$e.align,Ae},{});for(v=0;v<x.length;
vendor: 5,024 bytes, line 40
40v+=1){"rowStart"in L&&L.rowStart instanceof Function&&L.rowStart({row:v,data:x[v]},this);var le=u.call(this,x[v],pe);for(O=0;O<k.length;O+=1){var Ce=x[v][k[O]];"cellStart"in L&&L.cellStart instanceof Function&&L.cellStart({row:v,col:O,data:Ce},this),p.call(this,new o(f,_,pe[k[O]],le,Ce,v+2,xe[k[O]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=_,this};var u=function(f,_){var x=this.internal.__cell__.padding,C=this.internal.__cell__.table_font_size,L=this.internal.scaleFactor;return Object.keys(f).map(function(v){var V=f[v];return this.splitTextToSize(V.hasOwnProperty("text")?V.text:V,_[v]-x-x)},this).map(function(v){return this.getLineHeightFactor()*v.length*C/L+x+x},this).reduce(function(v,V){return Math.max(v,V)},0)};t.setTableHeaderRow=function(f){i.call(this),this.internal.__cell__.tableHeaderRow=f},t.printHeaderRow=function(f,_){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var x;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var C=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(C[0],C[1],C[2],C[3],void 0,-1)}this.setFont(void 0,"bold");for(var L=[],v=0;v<this.internal.__cell__.tableHeaderRow.length;v+=1){x=this.internal.__cell__.tableHeaderRow[v].clone(),_&&(x.y=this.internal.__cell__.margins.top||0,L.push(x)),x.lineNumber=f;var V=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),p.call(this,x),this.setTextColor(V)}L.length>0&&this.setTableHeaderRow(L),this.setFont(void 0,"normal"),e=!1}}(dt.API);V1={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},z1=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ud=U1(z1),W1=[100,200,300,400,500,600,700,800,900],Mv=U1(W1);kv={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},S1={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};od=["times"];(function(t){var n,e,i,r,o,p,u,f,_,x=function(T){return T=T||{},this.isStrokeTransparent=T.isStrokeTransparent||!1,this.strokeOpacity=T.strokeOpacity||1,this.strokeStyle=T.strokeStyle||"#000000",this.fillStyle=T.fillStyle||"#000000",this.isFillTransparent=T.isFillTransparent||!1,this.fillOpacity=T.fillOpacity||1,this.font=T.font||"10px sans-serif",this.textBaseline=T.textBaseline||"alphabetic",this.textAlign=T.textAlign||"left",this.lineWidth=T.lineWidth||1,this.lineJoin=T.lineJoin||"miter",this.lineCap=T.lineCap||"butt",this.path=T.path||[],this.transform=T.transform!==void 0?T.transform.clone():new f,this.globalCompositeOperation=T.globalCompositeOperation||"normal",this.globalAlpha=T.globalAlpha||1,this.clip_path=T.clip_path||[],this.currentPoint=T.currentPoint||new p,this.miterLimit=T.miterLimit||10,this.lastPoint=T.lastPoint||new p,this.lineDashOffset=T.lineDashOffset||0,this.lineDash=T.lineDash||[],this.margin=T.margin||[0,0,0,0],this.prevPageLastElemOffset=T.prevPageLastElemOffset||0,this.ignoreClearRect=typeof T.ignoreClearRect!="boolean"||T.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new C(this),n=this.internal.f2,e=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,r=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,p=this.internal.Point,u=this.internal.Rectangle,f=this.internal.Matrix,_=new x}]);var C=function(T){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=T;Object.defineProperty(this,"pdf",{get:function(){return j}});var W=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return W},set:function(Se){W=!!Se}});var X=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return X},set:function(Se){X=!!Se}});var ne=0;Object.defineProperty(this,"posX",{get:function(){return ne},set:function(Se){isNaN(Se)||(ne=Se)}});var ce=0;Object.defineProperty(this,"posY",{get:function(){return ce},set:function(Se){isNaN(Se)||(ce=Se)}}),Object.defineProperty(this,"margin",{get:function(){return _.margin},set:function(Se){var H;typeof Se=="number"?H=[Se,Se,Se,Se]:((H=new Array(4))[0]=Se[0],H[1]=Se.length>=2?Se[1]:H[0],H[2]=Se.length>=3?Se[2]:H[0],H[3]=Se.length>=4?Se[3]:H[1]),_.margin=H}});var me=!1;Object.defineProperty(this,"autoPaging",{get:function(){return me},set:function(Se){me=Se}});var ge=0;Object.defineProperty(this,"lastBreak",{get:function(){return ge},set:function(Se){ge=Se}});var je=[];Object.defineProperty(this,"pageBreaks",{get:function(){return je},set:function(Se){je=Se}}),Object.defineProperty(this,"ctx",{get:function(){return _},set:function(Se){Se instanceof x&&(_=Se)}}),Object.defineProperty(this,"path",{get:function(){return _.path}
40,set:function(Se){_.path=Se}});var Oe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Oe},set:function(Se){Oe=Se}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Se){var H;H=L(Se),this.ctx.fillStyle=H.style,this.ctx.isFillTransparent=H.a===0,this.ctx.fillOpacity=H.a,this.pdf.setFillColor(H.r,H.g,H.b,{a:H.a}),this.pdf.setTextColor(H.r,H.g,H.b,{a:H.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Se){var H=L(Se);this.ctx.strokeStyle=H.style,this.ctx.isStrokeTransparent=H.a===0,this.ctx.strokeOpacity=H.a,H.a===0?this.pdf.setDrawColor(255,255,255):(H.a,this.pdf.setDrawColor(H.r,H.g,H.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Se){["butt","round","square"].indexOf(Se)!==-1&&(this.ctx.lineCap=Se,this.pdf.setLineCap(Se))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Se){isNaN(Se)||(this.ctx.lineWidth=Se,this.pdf.setLineWidth(Se))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Se){["bevel","round","miter"].indexOf(Se)!==-1&&(this.ctx.lineJoin=Se,this.pdf.setLineJoin(Se))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Se){isNaN(Se)||(this.ctx.miterLimit=Se,this.pdf.setMiterLimit(Se))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Se){this.ctx.textBaseline=Se}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Se){["right","end","center","left","start"].indexOf(Se)!==-1&&(this.ctx.textAlign=Se)}});var Ye=null;function We(Se,H){if(Ye===null){var xt=function(rt){var Be=[];return Object.keys(rt).forEach(function(Ve){rt[Ve].forEach(function(Ke){var Ge=null;switch(Ke){case"bold":Ge={family:Ve,weight:"bold"};break;case"italic":Ge={family:Ve,style:"italic"};break;case"bolditalic":Ge={family:Ve,weight:"bold",style:"italic"};break;case"":case"normal":Ge={family:Ve}}Ge!==null&&(Ge.ref={name:Ve,style:Ke},Be.push(Ge))})}),Be}(Se.getFontList());Ye=function(rt){for(var Be={},Ve=0;Ve<rt.length;++Ve){var Ke=fd(rt[Ve]),Ge=Ke.family,at=Ke.stretch,vt=Ke.style,Pt=Ke.weight;Be[Ge]=Be[Ge]||{},Be[Ge][at]=Be[Ge][at]||{},Be[Ge][at][vt]=Be[Ge][at][vt]||{},Be[Ge][at][vt][Pt]=Ke}return Be}(xt.concat(H))}return Ye}var ut=null;Object.defineProperty(this,"fontFaces",{get:function(){return ut},set:function(Se){Ye=null,ut=Se}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Se){var H;if(this.ctx.font=Se,(H=/^\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(Se))!==null){var xt=H[1],rt=(H[2],H[3]),Be=H[4],Ve=(H[5],H[6]),Ke=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Be)[2];Be=Math.floor(Ke==="px"?parseFloat(Be)*this.pdf.internal.scaleFactor:Ke==="em"?parseFloat(Be)*this.pdf.getFontSize():parseFloat(Be)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Be);var Ge=function(mt){var Et,Xe,zi=[],Ft=mt.trim();if(Ft==="")return od;if(Ft in S1)return[S1[Ft]];for(;Ft!=="";){switch(Xe=null,Et=(Ft=A1(Ft)).charAt(0)){case'"':case"'":Xe=Bv(Ft.substring(1),Et);break;default:Xe=Ov(Ft)}if(Xe===null||(zi.push(Xe[0]),(Ft=A1(Xe[1]))!==""&&Ft.charAt(0)!==","))return od;Ft=Ft.replace(/^,/,"")}return zi}(Ve);if(this.fontFaces){var at=Dv(We(this.pdf,this.fontFaces),Ge.map(function(mt){return{family:mt,stretch:"normal",weight:rt,style:xt}}));this.pdf.setFont(at.ref.name,at.ref.style)}else{var vt="";(rt==="bold"||parseInt(rt,10)>=700||xt==="bold")&&(vt="bold"),xt==="italic"&&(vt+="italic"),vt.length===0&&(vt="normal");for(var Pt="",Tt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Dt=0;Dt<Ge.length;Dt++){if(this.pdf.internal.getFont(Ge[Dt],vt,{noFallback:!0,disableWarning:!0})!==void 0){Pt=Ge[Dt];break}if(vt==="bolditalic"&&this.pdf.internal.getFont(Ge[Dt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Pt=Ge[Dt],vt="bold";else if(this.pdf.internal.getFont(Ge[Dt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Pt=Ge[Dt],vt="normal";break}}if(Pt===""){for(var Wt=0;Wt<Ge.length;Wt++)if(Tt[Ge[Wt]]){Pt=Tt[Ge[Wt]];break}}Pt=Pt===""?"Times":Pt,this.pdf.setFont(Pt,vt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Se){this.ctx.globalCompositeOperation=Se}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Se){this.ctx.globalAlpha=Se}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Se){this.ctx.lineDashOffset=Se,$e.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Se){this.ctx.lineDash=Se,$e.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Se){this.ctx.ignoreClearRect=!!Se}})};C.prototype.setLineDash=function(T){this.lineDash=T},C.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},C.prototype.fill=function(){he.call(this,"fill",!1)},C.prototype.stroke=function(){he.call(this,"stroke",!1)},C.prototype.beginPath=function(){this.path=[{type:"begin"}]},C.prototype.moveTo=function(T,j){if(isNaN(T)||isNaN(j))throw Xt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to
40jsPDF.context2d.moveTo");var W=this.ctx.transform.applyToPoint(new p(T,j));this.path.push({type:"mt",x:W.x,y:W.y}),this.ctx.lastPoint=new p(T,j)},C.prototype.closePath=function(){var T=new p(0,0),j=0;for(j=this.path.length-1;j!==-1;j--)if(this.path[j].type==="begin"&&Yt(this.path[j+1])==="object"&&typeof this.path[j+1].x=="number"){T=new p(this.path[j+1].x,this.path[j+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new p(T.x,T.y)},C.prototype.lineTo=function(T,j){if(isNaN(T)||isNaN(j))throw Xt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var W=this.ctx.transform.applyToPoint(new p(T,j));this.path.push({type:"lt",x:W.x,y:W.y}),this.ctx.lastPoint=new p(W.x,W.y)},C.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),he.call(this,null,!0)},C.prototype.quadraticCurveTo=function(T,j,W,X){if(isNaN(W)||isNaN(X)||isNaN(T)||isNaN(j))throw Xt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ne=this.ctx.transform.applyToPoint(new p(W,X)),ce=this.ctx.transform.applyToPoint(new p(T,j));this.path.push({type:"qct",x1:ce.x,y1:ce.y,x:ne.x,y:ne.y}),this.ctx.lastPoint=new p(ne.x,ne.y)},C.prototype.bezierCurveTo=function(T,j,W,X,ne,ce){if(isNaN(ne)||isNaN(ce)||isNaN(T)||isNaN(j)||isNaN(W)||isNaN(X))throw Xt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var me=this.ctx.transform.applyToPoint(new p(ne,ce)),ge=this.ctx.transform.applyToPoint(new p(T,j)),je=this.ctx.transform.applyToPoint(new p(W,X));this.path.push({type:"bct",x1:ge.x,y1:ge.y,x2:je.x,y2:je.y,x:me.x,y:me.y}),this.ctx.lastPoint=new p(me.x,me.y)},C.prototype.arc=function(T,j,W,X,ne,ce){if(isNaN(T)||isNaN(j)||isNaN(W)||isNaN(X)||isNaN(ne))throw Xt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ce=!!ce,!this.ctx.transform.isIdentity){var me=this.ctx.transform.applyToPoint(new p(T,j));T=me.x,j=me.y;var ge=this.ctx.transform.applyToPoint(new p(0,W)),je=this.ctx.transform.applyToPoint(new p(0,0));W=Math.sqrt(Math.pow(ge.x-je.x,2)+Math.pow(ge.y-je.y,2))}Math.abs(ne-X)>=2*Math.PI&&(X=0,ne=2*Math.PI),this.path.push({type:"arc",x:T,y:j,radius:W,startAngle:X,endAngle:ne,counterclockwise:ce})},C.prototype.arcTo=function(T,j,W,X,ne){throw new Error("arcTo not implemented.")},C.prototype.rect=function(T,j,W,X){if(isNaN(T)||isNaN(j)||isNaN(W)||isNaN(X))throw Xt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(T,j),this.lineTo(T+W,j),this.lineTo(T+W,j+X),this.lineTo(T,j+X),this.lineTo(T,j),this.lineTo(T+W,j),this.lineTo(T,j)},C.prototype.fillRect=function(T,j,W,X){if(isNaN(T)||isNaN(j)||isNaN(W)||isNaN(X))throw Xt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!v.call(this)){var ne={};this.lineCap!=="butt"&&(ne.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ne.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(T,j,W,X),this.fill(),ne.hasOwnProperty("lineCap")&&(this.lineCap=ne.lineCap),ne.hasOwnProperty("lineJoin")&&(this.lineJoin=ne.lineJoin)}},C.prototype.strokeRect=function(T,j,W,X){if(isNaN(T)||isNaN(j)||isNaN(W)||isNaN(X))throw Xt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");V.call(this)||(this.beginPath(),this.rect(T,j,W,X),this.stroke())},C.prototype.clearRect=function(T,j,W,X){if(isNaN(T)||isNaN(j)||isNaN(W)||isNaN(X))throw Xt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(T,j,W,X))},C.prototype.save=function(T){T=typeof T!="boolean"||T;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,W=0;W<this.pdf.internal.getNumberOfPages();W++)this.pdf.setPage(W+1),this.pdf.internal.out("q");
40if(this.pdf.setPage(j),T){this.ctx.fontSize=this.pdf.internal.getFontSize();var X=new x(this.ctx);this.ctxStack.push(this.ctx),this.ctx=X}},C.prototype.restore=function(T){T=typeof T!="boolean"||T;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,W=0;W<this.pdf.internal.getNumberOfPages();W++)this.pdf.setPage(W+1),this.pdf.internal.out("Q");this.pdf.setPage(j),T&&this.ctxStack.length!==0&&(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,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},C.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var L=function(T){var j,W,X,ne;if(T.isCanvasGradient===!0&&(T=T.getColor()),!T)return{r:0,g:0,b:0,a:0,style:T};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(T))j=0,W=0,X=0,ne=0;else{var ce=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(T);if(ce!==null)j=parseInt(ce[1]),W=parseInt(ce[2]),X=parseInt(ce[3]),ne=1;else if((ce=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(T))!==null)j=parseInt(ce[1]),W=parseInt(ce[2]),X=parseInt(ce[3]),ne=parseFloat(ce[4]);else{if(ne=1,typeof T=="string"&&T.charAt(0)!=="#"){var me=new B1(T);T=me.ok?me.toHex():"#000000"}T.length===4?(j=T.substring(1,2),j+=j,W=T.substring(2,3),W+=W,X=T.substring(3,4),X+=X):(j=T.substring(1,3),W=T.substring(3,5),X=T.substring(5,7)),j=parseInt(j,16),W=parseInt(W,16),X=parseInt(X,16)}}return{r:j,g:W,b:X,a:ne,style:T}},v=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},V=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};C.prototype.fillText=function(T,j,W,X){if(isNaN(j)||isNaN(W)||typeof T!="string")throw Xt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(X=isNaN(X)?void 0:X,!v.call(this)){var ne=le(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;B.call(this,{text:T,x:j,y:W,scale:ce,angle:ne,align:this.textAlign,maxWidth:X})}},C.prototype.strokeText=function(T,j,W,X){if(isNaN(j)||isNaN(W)||typeof T!="string")throw Xt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!V.call(this)){X=isNaN(X)?void 0:X;var ne=le(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;B.call(this,{text:T,x:j,y:W,scale:ce,renderingMode:"stroke",angle:ne,align:this.textAlign,maxWidth:X})}},C.prototype.measureText=function(T){if(typeof T!="string")throw Xt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var j=this.pdf,W=this.pdf.internal.scaleFactor,X=j.internal.getFontSize(),ne=j.getStringUnitWidth(T)*X/j.internal.scaleFactor,ce=function(me){var ge=(me=me||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ge}}),this};return new ce({width:ne*=Math.round(96*W/72*1e4)/1e4})},C.prototype.scale=function(T,j){if(isNaN(T)||isNaN(j))throw Xt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var W=new f(T,0,0,j,0,0);this.ctx.transform=this.ctx.transform.multiply(W)},C.prototype.rotate=function(T){if(isNaN(T))throw Xt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var j=new f(Math.cos(T),Math.sin(T),-Math.sin(T),Math.cos(T),0,0);this.ctx.transform=this.ctx.transform.multiply(j)},C.prototype.translate=function(T,j){if(isNaN(T)||isNaN(j))throw Xt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var W=new f(1,0,0,1,T,j);this.ctx.transform=this.ctx.transform.multiply(W)},C.prototype.transform=function(T,j,W,X,ne,ce){if(isNaN(T)||isNaN(j)||isNaN(W)||isNaN(X)||isNaN(ne)||isNaN(ce))throw Xt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to
40jsPDF.context2d.transform");var me=new f(T,j,W,X,ne,ce);this.ctx.transform=this.ctx.transform.multiply(me)},C.prototype.setTransform=function(T,j,W,X,ne,ce){T=isNaN(T)?1:T,j=isNaN(j)?0:j,W=isNaN(W)?0:W,X=isNaN(X)?1:X,ne=isNaN(ne)?0:ne,ce=isNaN(ce)?0:ce,this.ctx.transform=new f(T,j,W,X,ne,ce)};var O=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};C.prototype.drawImage=function(T,j,W,X,ne,ce,me,ge,je){var Oe=this.pdf.getImageProperties(T),Ye=1,We=1,ut=1,Se=1;X!==void 0&&ge!==void 0&&(ut=ge/X,Se=je/ne,Ye=Oe.width/X*ge/X,We=Oe.height/ne*je/ne),ce===void 0&&(ce=j,me=W,j=0,W=0),X!==void 0&&ge===void 0&&(ge=X,je=ne),X===void 0&&ge===void 0&&(ge=Oe.width,je=Oe.height);for(var H,xt=this.ctx.transform.decompose(),rt=le(xt.rotate.shx),Be=new f,Ve=(Be=(Be=(Be=Be.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale)).applyToRectangle(new u(ce-j*ut,me-W*Se,X*Ye,ne*We)),Ke=G.call(this,Ve),Ge=[],at=0;at<Ke.length;at+=1)Ge.indexOf(Ke[at])===-1&&Ge.push(Ke[at]);if($(Ge),this.autoPaging)for(var vt=Ge[0],Pt=Ge[Ge.length-1],Tt=vt;Tt<Pt+1;Tt++){this.pdf.setPage(Tt);var Dt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Wt=Tt===1?this.posY+this.margin[0]:this.margin[0],mt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xe=Tt===1?0:mt+(Tt-2)*Et;if(this.ctx.clip_path.length!==0){var zi=this.path;H=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(H,this.posX+this.margin[3],-Xe+Wt+this.ctx.prevPageLastElemOffset),pe.call(this,"fill",!0),this.path=zi}var Ft=JSON.parse(JSON.stringify(Ve));Ft=U([Ft],this.posX+this.margin[3],-Xe+Wt+this.ctx.prevPageLastElemOffset)[0];var Vn=(Tt>vt||Tt<Pt)&&O.call(this);Vn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Dt,Et,null).clip().discardPath()),this.pdf.addImage(T,"JPEG",Ft.x,Ft.y,Ft.w,Ft.h,null,null,rt),Vn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(T,"JPEG",Ve.x,Ve.y,Ve.w,Ve.h,null,null,rt)};var G=function(T,j,W){var X=[];j=j||this.pdf.internal.pageSize.width,W=W||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ne=this.posY+this.ctx.prevPageLastElemOffset;switch(T.type){default:case"mt":case"lt":X.push(Math.floor((T.y+ne)/W)+1);break;case"arc":X.push(Math.floor((T.y+ne-T.radius)/W)+1),X.push(Math.floor((T.y+ne+T.radius)/W)+1);break;case"qct":var ce=Ce(this.ctx.lastPoint.x,this.ctx.lastPoint.y,T.x1,T.y1,T.x,T.y);X.push(Math.floor((ce.y+ne)/W)+1),X.push(Math.floor((ce.y+ce.h+ne)/W)+1);break;case"bct":var me=Ae(this.ctx.lastPoint.x,this.ctx.lastPoint.y,T.x1,T.y1,T.x2,T.y2,T.x,T.y);X.push(Math.floor((me.y+ne)/W)+1),X.push(Math.floor((me.y+me.h+ne)/W)+1);break;case"rect":X.push(Math.floor((T.y+ne)/W)+1),X.push(Math.floor((T.y+T.h+ne)/W)+1)}for(var ge=0;ge<X.length;ge+=1)for(;this.pdf.internal.getNumberOfPages()<X[ge];)k.call(this);return X},k=function(){var T=this.fillStyle,j=this.strokeStyle,W=this.font,X=this.lineCap,ne=this.lineWidth,ce=this.lineJoin;this.pdf.addPage(),this.fillStyle=T,this.strokeStyle=j,this.font=W,this.lineCap=X,this.lineWidth=ne,this.lineJoin=ce},U=function(T,j,W){for(var X=0;X<T.length;X++)switch(T[X].type){case"bct":T[X].x2+=j,T[X].y2+=W;case"qct":T[X].x1+=j,T[X].y1+=W;case"mt":case"lt":case"arc":default:T[X].x+=j,T[X].y+=W}return T},$=function(T){return T.sort(function(j,W){return j-W})},he=function(T,j){for(var W,X,ne=this.fillStyle,ce=this.strokeStyle,me=this.lineCap,ge=this.lineWidth,je=Math.abs(ge*this.ctx.transform.scaleX),Oe=this.lineJoin,Ye=JSON.parse(JSON.stringify(this.path)),We=JSON.parse(JSON.stringify(this.path)),ut=[],Se=0;Se<We.length;Se++)if(We[Se].x!==void 0)for(var H=G.call(this,We[Se]),xt=0;xt<H.length;xt+=1)ut.indexOf(H[xt])===-1&&ut.push(H[xt]);for(var rt=0;rt<ut.length;rt++)for(;this.pdf.internal.getNumberOfPages()<ut[rt];)k.call(this);if($(ut),this.autoPaging)for(var Be=ut[0],Ve=ut[ut.length-1],Ke=Be;Ke<Ve+1;Ke++){this.pdf.setPage(Ke),this.fillStyle=ne,this.strokeStyle=ce,this.lineCap=me,this.lineWidth=je,this.lineJoin=Oe;var Ge=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],at=Ke===1?this.posY+this.margin[0]:this.margin[0],vt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Pt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Tt=Ke===1?0:vt+(Ke-2)*Pt;if(this.ctx.clip_path.length!==0){var Dt=this.path;W=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(W,this.posX+this.margin[3],-Tt+at+this.ctx.prevPageLastElemOffset),pe.call(this,T,!0),this.path=Dt}if(X=JSON.parse(JSON.stringify(Ye)),this.path=U(X,this.posX+this.margin[3],-Tt+at+this.ctx.prevPageLastElemOffset),j===!1||Ke===0){var Wt=(Ke>Be||Ke<Ve)&&O.call(this);Wt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ge,Pt,null).clip().discardPath()),pe.call(this,T,j),Wt&&this.pdf.restoreGraphicsState()}this.lineWidth=ge}else this.lineWidth=je,pe.call(this,T,j),this.lineWidth=ge;this.path=Ye},pe=function(T,j){if((T!=="stroke"||j||!V.call(this))&&(T==="stroke"||j||!v.call(this))){for(var W,X,ne=[],ce=this.path,me=0;me<ce.length;me++){var ge=ce[me];switch(ge.type){case"begin":ne.push({begin:!0}
40);break;case"close":ne.push({close:!0});break;case"mt":ne.push({start:ge,deltas:[],abs:[]});break;case"lt":var je=ne.length;if(ce[me-1]&&!isNaN(ce[me-1].x)&&(W=[ge.x-ce[me-1].x,ge.y-ce[me-1].y],je>0)){for(;je>=0;je--)if(ne[je-1].close!==!0&&ne[je-1].begin!==!0){ne[je-1].deltas.push(W),ne[je-1].abs.push(ge);break}}break;case"bct":W=[ge.x1-ce[me-1].x,ge.y1-ce[me-1].y,ge.x2-ce[me-1].x,ge.y2-ce[me-1].y,ge.x-ce[me-1].x,ge.y-ce[me-1].y],ne[ne.length-1].deltas.push(W);break;case"qct":var Oe=ce[me-1].x+2/3*(ge.x1-ce[me-1].x),Ye=ce[me-1].y+2/3*(ge.y1-ce[me-1].y),We=ge.x+2/3*(ge.x1-ge.x),ut=ge.y+2/3*(ge.y1-ge.y),Se=ge.x,H=ge.y;W=[Oe-ce[me-1].x,Ye-ce[me-1].y,We-ce[me-1].x,ut-ce[me-1].y,Se-ce[me-1].x,H-ce[me-1].y],ne[ne.length-1].deltas.push(W);break;case"arc":ne.push({deltas:[],abs:[],arc:!0}),Array.isArray(ne[ne.length-1].abs)&&ne[ne.length-1].abs.push(ge)}}X=j?null:T==="stroke"?"stroke":"fill";for(var xt=!1,rt=0;rt<ne.length;rt++)if(ne[rt].arc)for(var Be=ne[rt].abs,Ve=0;Ve<Be.length;Ve++){var Ke=Be[Ve];Ke.type==="arc"?J.call(this,Ke.x,Ke.y,Ke.radius,Ke.startAngle,Ke.endAngle,Ke.counterclockwise,void 0,j,!xt):ee.call(this,Ke.x,Ke.y),xt=!0}else if(ne[rt].close===!0)this.pdf.internal.out("h"),xt=!1;else if(ne[rt].begin!==!0){var Ge=ne[rt].start.x,at=ne[rt].start.y;Y.call(this,ne[rt].deltas,Ge,at),xt=!0}X&&ue.call(this,X),j&&Pe.call(this)}},Le=function(T){var j=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,W=j*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return T-W;case"top":return T+j-W;case"hanging":return T+j-2*W;case"middle":return T+j/2-W;case"ideographic":return T;case"alphabetic":default:return T}},de=function(T){return T+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};C.prototype.createLinearGradient=function(){var T=function(){};return T.colorStops=[],T.addColorStop=function(j,W){this.colorStops.push([j,W])},T.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},T.isCanvasGradient=!0,T},C.prototype.createPattern=function(){return this.createLinearGradient()},C.prototype.createRadialGradient=function(){return this.createLinearGradient()};var J=function(T,j,W,X,ne,ce,me,ge,je){for(var Oe=fe.call(this,W,X,ne,ce),Ye=0;Ye<Oe.length;Ye++){var We=Oe[Ye];Ye===0&&(je?D.call(this,We.x1+T,We.y1+j):ee.call(this,We.x1+T,We.y1+j)),_e.call(this,T,j,We.x2,We.y2,We.x3,We.y3,We.x4,We.y4)}ge?Pe.call(this):ue.call(this,me)},ue=function(T){switch(T){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Pe=function(){this.pdf.clip(),this.pdf.discardPath()},D=function(T,j){this.pdf.internal.out(e(T)+" "+i(j)+" m")},B=function(T){var j;switch(T.align){case"right":case"end":j="right";break;case"center":j="center";break;case"left":case"start":default:j="left"}var W=this.pdf.getTextDimensions(T.text),X=Le.call(this,T.y),ne=de.call(this,X)-W.h,ce=this.ctx.transform.applyToPoint(new p(T.x,X)),me=this.ctx.transform.decompose(),ge=new f;ge=(ge=(ge=ge.multiply(me.translate)).multiply(me.skew)).multiply(me.scale);for(var je,Oe,Ye,We=this.ctx.transform.applyToRectangle(new u(T.x,X,W.w,W.h)),ut=ge.applyToRectangle(new u(T.x,ne,W.w,W.h)),Se=G.call(this,ut),H=[],xt=0;xt<Se.length;xt+=1)H.indexOf(Se[xt])===-1&&H.push(Se[xt]);if($(H),this.autoPaging)for(var rt=H[0],Be=H[H.length-1],Ve=rt;Ve<Be+1;Ve++){this.pdf.setPage(Ve);var Ke=Ve===1?this.posY+this.margin[0]:this.margin[0],Ge=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],at=this.pdf.internal.pageSize.height-this.margin[2],vt=at-this.margin[0],Pt=this.pdf.internal.pageSize.width-this.margin[1],Tt=Pt-this.margin[3],Dt=Ve===1?0:Ge+(Ve-2)*vt;if(this.ctx.clip_path.length!==0){var Wt=this.path;je=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(je,this.posX+this.margin[3],-1*Dt+Ke),pe.call(this,"fill",!0),this.path=Wt}var mt=U([JSON.parse(JSON.stringify(ut))],this.posX+this.margin[3],-Dt+Ke+this.ctx.prevPageLastElemOffset)[0];T.scale>=.01&&(Oe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Oe*T.scale),Ye=this.lineWidth,this.lineWidth=Ye*T.scale);var Et=this.autoPaging!=="text";if(Et||mt.y+mt.h<=at){if(Et||mt.y>=Ke&&mt.x<=Pt){var Xe=Et?T.text:this.pdf.splitTextToSize(T.text,T.maxWidth||Pt-mt.x)[0],zi=U([JSON.parse(JSON.stringify(We))],this.posX+this.margin[3],-Dt+Ke+this.ctx.prevPageLastElemOffset)[0],Ft=Et&&(Ve>rt||Ve<Be)&&O.call(this);Ft&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Tt,vt,null).clip().discardPath()),this.pdf.text(Xe,zi.x,zi.y,{angle:T.angle,align:j,renderingMode:T.renderingMode}),Ft&&this.pdf.restoreGraphicsState()}}else mt.y<at&&(this.ctx.prevPageLastElemOffset+=at-mt.y);
vendor: 4,096 bytes, line 40
40T.scale>=.01&&(this.pdf.setFontSize(Oe),this.lineWidth=Ye)}else T.scale>=.01&&(Oe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Oe*T.scale),Ye=this.lineWidth,this.lineWidth=Ye*T.scale),this.pdf.text(T.text,ce.x+this.posX,ce.y+this.posY,{angle:T.angle,align:j,renderingMode:T.renderingMode,maxWidth:T.maxWidth}),T.scale>=.01&&(this.pdf.setFontSize(Oe),this.lineWidth=Ye)},ee=function(T,j,W,X){W=W||0,X=X||0,this.pdf.internal.out(e(T+W)+" "+i(j+X)+" l")},Y=function(T,j,W){return this.pdf.lines(T,j,W,null,null)},_e=function(T,j,W,X,ne,ce,me,ge){this.pdf.internal.out([n(r(W+T)),n(o(X+j)),n(r(ne+T)),n(o(ce+j)),n(r(me+T)),n(o(ge+j)),"c"].join(" "))},fe=function(T,j,W,X){for(var ne=2*Math.PI,ce=Math.PI/2;j>W;)j-=ne;var me=Math.abs(W-j);me<ne&&X&&(me=ne-me);for(var ge=[],je=X?-1:1,Oe=j;me>1e-5;){var Ye=Oe+je*Math.min(me,ce);ge.push(xe.call(this,T,Oe,Ye)),me-=Math.abs(Ye-Oe),Oe=Ye}return ge},xe=function(T,j,W){var X=(W-j)/2,ne=T*Math.cos(X),ce=T*Math.sin(X),me=ne,ge=-ce,je=me*me+ge*ge,Oe=je+me*ne+ge*ce,Ye=4/3*(Math.sqrt(2*je*Oe)-Oe)/(me*ce-ge*ne),We=me-Ye*ge,ut=ge+Ye*me,Se=We,H=-ut,xt=X+j,rt=Math.cos(xt),Be=Math.sin(xt);return{x1:T*Math.cos(j),y1:T*Math.sin(j),x2:We*rt-ut*Be,y2:We*Be+ut*rt,x3:Se*rt-H*Be,y3:Se*Be+H*rt,x4:T*Math.cos(W),y4:T*Math.sin(W)}},le=function(T){return 180*T/Math.PI},Ce=function(T,j,W,X,ne,ce){var me=T+.5*(W-T),ge=j+.5*(X-j),je=ne+.5*(W-ne),Oe=ce+.5*(X-ce),Ye=Math.min(T,ne,me,je),We=Math.max(T,ne,me,je),ut=Math.min(j,ce,ge,Oe),Se=Math.max(j,ce,ge,Oe);return new u(Ye,ut,We-Ye,Se-ut)},Ae=function(T,j,W,X,ne,ce,me,ge){var je,Oe,Ye,We,ut,Se,H,xt,rt,Be,Ve,Ke,Ge,at,vt=W-T,Pt=X-j,Tt=ne-W,Dt=ce-X,Wt=me-ne,mt=ge-ce;for(Oe=0;Oe<41;Oe++)rt=(H=(Ye=T+(je=Oe/40)*vt)+je*((ut=W+je*Tt)-Ye))+je*(ut+je*(ne+je*Wt-ut)-H),Be=(xt=(We=j+je*Pt)+je*((Se=X+je*Dt)-We))+je*(Se+je*(ce+je*mt-Se)-xt),Oe==0?(Ve=rt,Ke=Be,Ge=rt,at=Be):(Ve=Math.min(Ve,rt),Ke=Math.min(Ke,Be),Ge=Math.max(Ge,rt),at=Math.max(at,Be));return new u(Math.round(Ve),Math.round(Ke),Math.round(Ge-Ve),Math.round(at-Ke))},$e=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var T,j,W=(T=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:T,lineDashOffset:j}));this.prevLineDash!==W&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=W)}}})(dt.API),function(t){var n=function(o){var p,u,f,_,x,C,L,v,V,O;for(/[^\x00-\xFF]/.test(o),u=[],f=0,_=(o+=p="\0\0\0\0".slice(o.length%4||4)).length;_>f;f+=4)(x=(o.charCodeAt(f)<<24)+(o.charCodeAt(f+1)<<16)+(o.charCodeAt(f+2)<<8)+o.charCodeAt(f+3))!==0?(C=(x=((x=((x=((x=(x-(O=x%85))/85)-(V=x%85))/85)-(v=x%85))/85)-(L=x%85))/85)%85,u.push(C+33,L+33,v+33,V+33,O+33)):u.push(122);return function(G,k){for(var U=k;U>0;U--)G.pop()}(u,p.length),String.fromCharCode.apply(String,u)+"~>"},e=function(o){var p,u,f,_,x,C=String,L="length",v=255,V="charCodeAt",O="slice",G="replace";for(o[O](-2),o=o[O](0,-2)[G](/\s/g,"")[G]("z","!!!!!"),f=[],_=0,x=(o+=p="uuuuu"[O](o[L]%5||5))[L];x>_;_+=5)u=52200625*(o[V](_)-33)+614125*(o[V](_+1)-33)+7225*(o[V](_+2)-33)+85*(o[V](_+3)-33)+(o[V](_+4)-33),f.push(v&u>>24,v&u>>16,v&u>>8,v&u);return function(k,U){for(var $=U;$>0;$--)k.pop()}(f,p[L]),C.fromCharCode.apply(C,f)},i=function(o){var p=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),p.test(o)===!1)return"";for(var u="",f=0;f<o.length;f+=2)u+=String.fromCharCode("0x"+(o[f]+o[f+1]));return u},r=function(o){for(var p=new Uint8Array(o.length),u=o.length;u--;)p[u]=o.charCodeAt(u);return o=(p=sc(p)).reduce(function(f,_){return f+String.fromCharCode(_)},"")};t.processDataByFilters=function(o,p){var u=0,f=o||"",_=[];for(typeof(p=p||[])=="string"&&(p=[p]),u=0;u<p.length;u+=1)switch(p[u]){case"ASCII85Decode":case"/ASCII85Decode":f=e(f),_.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=n(f),_.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=i(f),_.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=f.split("").map(function(x){return("0"+x.charCo
40deAt().toString(16)).slice(-2)}).join("")+">",_.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=r(f),_.push("/FlateDecode");break;default:throw new Error('The filter: "'+p[u]+'" is not implemented')}return{data:f,reverseChain:_.reverse().join(" ")}}}(dt.API),function(t){t.loadFile=function(n,e,i){return function(r,o,p){o=o!==!1,p=typeof p=="function"?p:function(){};var u=void 0;try{u=function(f,_,x){var C=new XMLHttpRequest,L=0,v=function(V){var O=V.length,G=[],k=String.fromCharCode;for(L=0;L<O;L+=1)G.push(k(255&V.charCodeAt(L)));return G.join("")};if(C.open("GET",f,!_),C.overrideMimeType("text/plain; charset=x-user-defined"),_===!1&&(C.onload=function(){C.status===200?x(v(this.responseText)):x(void 0)}),C.send(null),_&&C.status===200)return v(C.responseText)}(r,o,p)}catch{}return u}(n,e,i)},t.loadImageFile=t.loadFile}(dt.API),function(t){function n(){return(ft.html2canvas?Promise.resolve(ft.html2canvas):import("./chunk-L33VLIXZ.js")).catch(function(p){return Promise.reject(new Error("Could not load html2canvas: "+p))}).then(function(p){return p.default?p.default:p})}function e(){return(ft.DOMPurify?Promise.resolve(ft.DOMPurify):import("./chunk-6AIOB7ZC.js")).catch(function(p){return Promise.reject(new Error("Could not load dompurify: "+p))}).then(function(p){return p.default?p.default:p})}var i=function(p){var u=Yt(p);return u==="undefined"?"undefined":u==="string"||p instanceof String?"string":u==="number"||p instanceof Number?"number":u==="function"||p instanceof Function?"function":p&&p.constructor===Array?"array":p&&p.nodeType===1?"element":u==="object"?"object":"unknown"},r=function(p,u){var f=document.createElement(p);for(var _ in u.className&&(f.className=u.className),u.innerHTML&&u.dompurify&&(f.innerHTML=u.dompurify.sanitize(u.innerHTML)),u.style)f.style[_]=u.style[_];return f},o=function p(u){var f=Object.assign(p.convert(Promise.resolve()),JSON.parse(JSON.stringify(p.template))),_=p.convert(Promise.resolve(),f);return _=(_=_.setProgress(1,p,1,[p])).set(u)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(p,u){return p.__proto__=u||o.prototype,p},o.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:{},backgroundColor:"transparent"}},o.prototype.from=function(p,u){return this.then(function(){switch(u=u||function(f){switch(i(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(p)){case"string":return this.then(e).then(function(f){return this.set({src:r("div",{innerHTML:p,dompurify:f})})});case"element":return this.set({src:p});case"canvas":return this.set({canvas:p});case"img":return this.set({img:p});default:return this.error("Unknown source type.")}})},o.prototype.to=function(p){switch(p){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.")}},o.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 p={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},u=function f(_,x){for(var C=_.nodeType===3?document.createTextNode(_.nodeValue):_.cloneNode(!1),L=_.firstChild;L;L=L.nextSibling)x!==!0&&L.nodeType===1&&L.nodeName==="SCRIPT"||C.appendChild(f(L,x));return _.nodeType===1&&(_.nodeName==="CANVAS"?(C.width=_.width,C.height=_.height,C.getContext("2d").drawImage(_,0,0)):_.nodeName!=="TEXTAREA"&&_.nodeName!=="SELECT"||(C.value=_.value),C.addEventListener("load",function(){C.scrollTop=_.scrollTop,C.scrollLeft=_.scrollLeft},!0)),C}(this.prop.src,this.opt.html2canvas.javascriptEnabled);u.tagName==="BODY"&&(p.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=r("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=r("div",{className:"html2pdf__container",style:p}),this.prop.container.appendChild(u),this.prop.container.firstChild.appendChild(r("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"})},o.prototype.toCanvas=function(){var p=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(p).then(n).then(function(u){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,u(this.prop.container,f)}).then(function(u){(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var p=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(p).then(n).then(function(u){var f=this.opt.jsPDF,_=this.opt.fontFaces,x=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,C=Object.assign({async:!0,allowTaint:!0,scale:x,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete C.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=_,_)for(var L=0;L<_.length;++L){var v=_[L],V=v.src.find(function(O){return O.format==="truetype"});V&&f.addFont(V.url,v.ref.name,v.ref.style)}
40return C.windowHeight=C.windowHeight||0,C.windowHeight=C.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):C.windowHeight,f.context2d.save(!0),u(this.prop.container,C)}).then(function(u){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var p=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=p})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(p,u,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(p,u):this.outputPdf(p,u)},o.prototype.outputPdf=function(p,u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(p,u)})},o.prototype.outputImg=function(p){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(p){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 "'+p+'" is not supported.'}})},o.prototype.save=function(p){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(p?{filename:p}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(p){if(i(p)!=="object")return this;var u=Object.keys(p||{}).map(function(f){if(f in o.template.prop)return function(){this.prop[f]=p[f]};switch(f){case"margin":return this.setMargin.bind(this,p.margin);case"jsPDF":return function(){return this.opt.jsPDF=p.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,p.pageSize);default:return function(){this.opt[f]=p[f]}}},this);return this.then(function(){return this.thenList(u)})},o.prototype.get=function(p,u){return this.then(function(){var f=p in o.template.prop?this.prop[p]:this.opt[p];return u?u(f):f})},o.prototype.setMargin=function(p){return this.then(function(){switch(i(p)){case"number":p=[p,p,p,p];case"array":if(p.length===2&&(p=[p[0],p[1],p[0],p[1]]),p.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=p}).then(this.setPageSize)},o.prototype.setPageSize=function(p){function u(f,_){return Math.floor(f*_/72*96)}return this.then(function(){(p=p||dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(p.inner={width:p.width-this.opt.margin[1]-this.opt.margin[3],height:p.height-this.opt.margin[0]-this.opt.margin[2]},p.inner.px={width:u(p.inner.width,p.k),height:u(p.inner.height,p.k)},p.inner.ratio=p.inner.height/p.inner.width),this.prop.pageSize=p})},o.prototype.setProgress=function(p,u,f,_){return p!=null&&(this.progress.val=p),u!=null&&(this.progress.state=u),f!=null&&(this.progress.n=f),_!=null&&(this.progress.stack=_),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(p,u,f,_){return this.setProgress(p?this.progress.val+p:null,u||null,f?this.progress.n+f:null,_?this.progress.stack.concat(_):null)},o.prototype.then=function(p,u){var f=this;return this.thenCore(p,u,function(_,x){return f.updateProgress(null,null,1,[_]),Promise.prototype.then.call(this,function(C){return f.updateProgress(null,_),C}).then(_,x).then(function(C){return f.updateProgress(1),C})})},o.prototype.thenCore=function(p,u,f){f=f||Promise.prototype.then,p&&(p=p.bind(this)),u&&(u=u.bind(this));var _=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),x=f.call(_,p,u);return o.convert(x,this.__proto__)},o.prototype.thenExternal=function(p,u){return Promise.prototype.then.call(this,p,u)},o.prototype.thenList=function(p){var u=this;return p.forEach(function(f){u=u.thenCore(f)}),u},o.prototype.catch=function(p){p&&(p=p.bind(this));var u=Promise.prototype.catch.call(this,p);return o.convert(u,this)},o.prototype.catchExternal=function(p){return Promise.prototype.catch.call(this,p)},o.prototype.error=function(p){return this.then(function(){throw new Error(p)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.exp
vendor: 6,441 bytes, lines 40-46
40ort=o.prototype.output,o.prototype.run=o.prototype.then,dt.getPageSize=function(p,u,f){if(Yt(p)==="object"){var _=p;p=_.orientation,u=_.unit||u,f=_.format||f}u=u||"mm",f=f||"a4",p=(""+(p||"P")).toLowerCase();var x,C=(""+f).toLowerCase(),L={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(u){case"pt":x=1;break;case"mm":x=72/25.4;break;case"cm":x=72/2.54;break;case"in":x=72;break;case"px":x=.75;break;case"pc":case"em":x=12;break;case"ex":x=6;break;default:throw"Invalid unit: "+u}var v,V=0,O=0;if(L.hasOwnProperty(C))V=L[C][1]/x,O=L[C][0]/x;else try{V=f[1],O=f[0]}catch{throw new Error("Invalid format: "+f)}if(p==="p"||p==="portrait")p="p",O>V&&(v=O,O=V,V=v);else{if(p!=="l"&&p!=="landscape")throw"Invalid orientation: "+p;p="l",V>O&&(v=O,O=V,V=v)}return{width:O,height:V,unit:u,k:x,orientation:p}},t.html=function(p,u){(u=u||{}).callback=u.callback||function(){},u.html2canvas=u.html2canvas||{},u.html2canvas.canvas=u.html2canvas.canvas||this.canvas,u.jsPDF=u.jsPDF||this,u.fontFaces=u.fontFaces?u.fontFaces.map(fd):null;var f=new o(u);return u.worker?f:f.from(p).doCallback()}}(dt.API),dt.API.addJS=function(t){return T1=t,this.internal.events.subscribe("postPutResources",function(){pc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(pc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),I1=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+T1+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){pc!==void 0&&I1!==void 0&&this.internal.out("/Names <</JavaScript "+pc+" 0 R>>")}),this},function(t){var n;t.events.push(["postPutResources",function(){var e=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),o=0;o<r.length;o++){var p=r[o],u=i.exec(p);if(u!=null){var f=u[1];e.internal.newObjectDeferredBegin(f,!1)}e.internal.write(p)}if(this.outline.createNamedDestinations){var _=this.internal.pages.length,x=[];for(o=0;o<_;o++){var C=e.internal.newObject();x.push(C);var L=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+L.objId+" 0 R /XYZ null null null]>> endobj")}var v=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<x.length;o++)e.internal.write("(page_"+(o+1)+")"+x[o]+" 0 R");e.internal.write(" ] >>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+v+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+n+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(i,r,o){var p={title:r,options:o,children:[]};return i==null&&(i=this.root),i.children.push(p),p},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(i){i.id=e.internal.newObjectDeferred();for(var r=0;r<i.children.length;r++)this.genIds_r(i.children[r])},e.outline.renderRoot=function(i){this.objStart(i),this.line("/Type /Outlines"),i.children.length>0&&(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()},e.outline.renderItems=function(i){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<i.children.length;o++){var p=i.children[o];this.objStart(p),this.line("/Title "+this.makeString(p.title)),this.line("/Parent "+this.makeRef(i)),o>0&&this.line("/Prev "+this.makeRef(i.children[o-1])),o<i.children.length-1&&this.line("/Next "+this.makeRef(i.children[o+1])),p.children.length>0&&(this.line("/First "+this.makeRef(p.children[0])),this.line("/Last "+this.makeRef(p.children[p.children.length-1])));var u=this.count=this.count_r({count:0},p);if(u>0&&this.line("/Count "+u),p.options&&p.options.pageNumber){var f=e.internal.getPageInfo(p.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var _=0;_<i.children.length;_++)this.renderItems(i.children[_])},e.outline.line=function(i){this.ctx.val+=i+`\r 41`},e.outline.makeRef=function(i){return i.id+" 0 R"},e.outline.makeString=function(i){return"("+e.internal.pdfEscape(i)+")"},e.outline.objStart=function(i){this.ctx.val+=`\r 42`+i.id+` 0 obj\r 43<<\r 44`},e.outline.objEnd=function(){this.ctx.val+=`>> \r 45endobj\r 46`},e.outline.count_r=function(i,r){for(var o=0;o<r.children.length;o++)i.count++,this.count_r(i,r.children[o]);return i.count}}])}(dt.API),function(t){var n=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,i,r,o,p,u){var f,_=this.decode.DCT_DECODE,x=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=p||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(f=function(C){for(var L,v=256*C.charCodeAt(4)+C.charCodeAt(5),V=C.length,O={width:0,height:0,numcomponents:1},G=4;G<V;G+=2){if(G+=v,n.indexOf(C.charCodeAt(G+1))!==-1){L=256*C.charCodeAt(G+5)+C.charCodeAt(G+6),O={width:256*C.charCodeAt(G+7)+C.charCodeAt(G+8),height:L,numcomponents:C.charCodeAt(G+9)};break}v=256*C.charCodeAt(G+2)+C.charCodeAt(G+3)}return O}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:u=this.color_spaces.DEVICE_GRAY;break;case 4:u=this.color_spaces.DEVICE_CMYK;break;case 3:u=this.color_spaces.DEVICE_RGB}
vendor: 7,652 bytes, line 46
46x={data:e,width:f.width,height:f.height,colorSpace:u,bitsPerComponent:8,filter:_,index:i,alias:r}}return x}}(dt.API);Fv=function(){var t,n,e;function i(o){var p,u,f,_,x,C,L,v,V,O,G,k,U,$;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},C=null;;){switch(p=this.readUInt32(),V=function(){var he,pe;for(pe=[],he=0;he<4;++he)pe.push(String.fromCharCode(this.data[this.pos++]));return pe}.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(p);break;case"fcTL":C&&this.animation.frames.push(C),this.pos+=4,C={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},x=this.readUInt16(),_=this.readUInt16()||100,C.delay=1e3*x/_,C.disposeOp=this.data[this.pos++],C.blendOp=this.data[this.pos++],C.data=[];break;case"IDAT":case"fdAT":for(V==="fdAT"&&(this.pos+=4,p-=4),o=C?.data||this.imgData,k=0;0<=p?k<p:k>p;0<=p?++k:--k)o.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(f=this.palette.length/3,this.transparency.indexed=this.read(p),this.transparency.indexed.length>f)throw new Error("More transparent colors than palette size");if((O=f-this.transparency.indexed.length)>0)for(U=0;0<=O?U<O:U>O;0<=O?++U:--U)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(p)[0];break;case 2:this.transparency.rgb=this.read(p)}break;case"tEXt":L=(G=this.read(p)).indexOf(0),v=String.fromCharCode.apply(String,G.slice(0,L)),this.text[v]=String.fromCharCode.apply(String,G.slice(L+1));break;case"IEND":return C&&this.animation.frames.push(C),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=($=this.colorType)===4||$===6,u=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*u,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+=p}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(o){var p,u;for(u=[],p=0;0<=o?p<o:p>o;0<=o?++p:--p)u.push(this.data[this.pos++]);return u},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(o){var p=this.pixelBitlength/8,u=new Uint8Array(this.width*this.height*p),f=0,_=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function x(C,L,v,V){var O,G,k,U,$,he,pe,Le,de,J,ue,Pe,D,B,ee,Y,_e,fe,xe,le,Ce,Ae=Math.ceil((_.width-C)/v),$e=Math.ceil((_.height-L)/V),T=_.width==Ae&&_.height==$e;for(B=p*Ae,Pe=T?u:new Uint8Array(B*$e),he=o.length,D=0,G=0;D<$e&&f<he;){switch(o[f++]){case 0:for(U=_e=0;_e<B;U=_e+=1)Pe[G++]=o[f++];break;case 1:for(U=fe=0;fe<B;U=fe+=1)O=o[f++],$=U<p?0:Pe[G-p],Pe[G++]=(O+$)%256;break;case 2:for(U=xe=0;xe<B;U=xe+=1)O=o[f++],k=(U-U%p)/p,ee=D&&Pe[(D-1)*B+k*p+U%p],Pe[G++]=(ee+O)%256;break;case 3:for(U=le=0;le<B;U=le+=1)O=o[f++],k=(U-U%p)/p,$=U<p?0:Pe[G-p],ee=D&&Pe[(D-1)*B+k*p+U%p],Pe[G++]=(O+Math.floor(($+ee)/2))%256;break;case 4:for(U=Ce=0;Ce<B;U=Ce+=1)O=o[f++],k=(U-U%p)/p,$=U<p?0:Pe[G-p],D===0?ee=Y=0:(ee=Pe[(D-1)*B+k*p+U%p],Y=k&&Pe[(D-1)*B+(k-1)*p+U%p]),pe=$+ee-Y,Le=Math.abs(pe-$),J=Math.abs(pe-ee),ue=Math.abs(pe-Y),de=Le<=J&&Le<=ue?$:J<=ue?ee:Y,Pe[G++]=(O+de)%256;break;default:throw new Error("Invalid filter algorithm: "+o[f-1])}if(!T){var j=((L+D*V)*_.width+C)*p,W=D*B;for(U=0;U<Ae;U+=1){for(var X=0;X<p;X+=1)u[j++]=Pe[W++];j+=(v-1)*p}}D++}}return o=g1(o),_.interlaceMethod==1?(x(0,0,8,8),x(4,0,8,8),x(0,4,4,8),x(2,0,4,4),x(0,2,2,4),x(1,0,2,2),x(0,1,1,2)):x(0,0,1,1),u},i.prototype.decodePalette=function(){var o,p,u,f,_,x,C,L,v;for(u=this.palette,x=this.transparency.indexed||[],_=new Uint8Array((x.length||0)+u.length),f=0,o=0,p=C=0,L=u.length;C<L;p=C+=3)_[f++]=u[p],_[f++]=u[p+1],_[f++]=u[p+2],_[f++]=(v=x[o++])!=null?v:255;return _},i.prototype.copyToImageData=function(o,p){var u,f,_,x,C,L,v,V,O,G,k;if(f=this.colors,O=null,u=this.hasAlphaChannel,this.palette.length&&(O=(k=this._decodedPalette)!=null?k:this._decodedPalette=this.decodePalette(),f=4,u=!0),V=(_=o.data||o).length,C=O||p,x=L=0,f===1)for(;x<V;)v=O?4*p[x/4]:L,G=C[v++],_[x++]=G,_[x++]=G,_[x++]=G,_[x++]=u?C[v++]:255,L=v;else for(;x<V;)v=O?4*p[x/4]:L,_[x++]=C[v++],_[x++]=C[v++],_[x++]=C[v++],_[x++]=u?C[v++]:255,L=v},i.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var r=function(){if(Object.prototype.toString.call(ft)==="[object Window]"){try{n=ft.document.createElement("canvas"),e=n.getContext("2d")}catch{return!1}return!0}return!1};return r(),t=function(o){var p;if(r()===!0)return e.width=o.width,e.height=o.height,e.clearRect(0,0,o.width,o.height),e.putImageData(o,0,0),(p=new Image).src=n.toDataURL(),p;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(o){var p,u,f,_,x,C,L,v;if(this.animation){for(v=[],u=x=0,C=(L=this.animation.frames).length;x<C;u=++x)p=L[u],f=o.createImageData(p.width,p.height),_=this.decodePixels(new Uint8Array(p.data)),this.copyToImageData(f,_),p.imageData=f,v.push(p.image=t(f));return v}},i.prototype.renderFrame=function(o,p){var u,f,_;return u=(f=this.animation.frames)[p],_=f[p-1],p===0&&o.clearRect(0,0,this.width,this.height),_?.disposeOp===1?o.clearRect(_.xOffset,_.yOffset,_.width,_.height):_?.disposeOp===2&&o.putImageData(_.imageData,_.xOffset,_.yOffset),u.blendOp===0&&o.clearRect(u.xOffset,u.yOffset,u.width,u.height),o.drawImage(u.image,u.xOffset,u.yOffset)},i.prototype.animate=function(o){var p,u,f,_,x,C,L=this;return u=0,C=this.animation,_=C.numFrames,f=C.frames,x=C.numPlays,(p=function(){var v,V;if(v=u++%_,V=f[v],L.renderFrame(o,v),_>1&&u/_<x)return L.animation._timeout=setTimeout(p,V.delay)})()},i.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},i.prototype.render=function(o){var p,u;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,p=o.getContext("2d"),this.animation?(this.decodeFrames(p),this.animate(p)):(u=p.createImageData(this.width,this.height),this.copyToImageData(u,this.decodePixels()),p.putImageData(u,0,0))},i}();(function(t){var n=function(){return typeof sc=="function"},e=function(L,v,V,O){var G=4,k=p;switch(O){case t.image_compression.FAST:G=1,k=o;break;case t.image_compression.MEDIUM:G=6,k=u;break;case t.image_compression.SLOW:G=9,k=f}L=i(L,v,V,k);var U=sc(L,{level:G});return t.__addimage__.arrayBufferToBinaryString(U)},i=function(L,v,V,O){for(var G,k,U,$=L.length/v,he=new Uint8Array(L.length+$),pe=x(),Le=0;Le<$;Le+=1){if(U=Le*v,G=L.subarray(U,U+v),O)he.set(O(G,V,k),U+Le);else{for(var de,J=pe.length,ue=[];de<J;de+=1)ue[de]=pe[de](G,V,k);var Pe=C(ue.concat());he.set(ue[Pe],U+Le)}k=G}return he},r=function(L){var v=Array.apply([],L);return v.unshift(0),v},o=function(L,v){var V,O=[],G=L.length;O[0]=1;for(var k=0;k<G;k+=1)V=L[k-v]||0,O[k+1]=L[k]-V+256&255;return O},p=function(L,v,V){var O,G=[],k=L.length;G[0]=2;
46for(var U=0;U<k;U+=1)O=V&&V[U]||0,G[U+1]=L[U]-O+256&255;return G},u=function(L,v,V){var O,G,k=[],U=L.length;k[0]=3;for(var $=0;$<U;$+=1)O=L[$-v]||0,G=V&&V[$]||0,k[$+1]=L[$]+256-(O+G>>>1)&255;return k},f=function(L,v,V){var O,G,k,U,$=[],he=L.length;$[0]=4;for(var pe=0;pe<he;pe+=1)O=L[pe-v]||0,G=V&&V[pe]||0,k=V&&V[pe-v]||0,U=_(O,G,k),$[pe+1]=L[pe]-U+256&255;return $},_=function(L,v,V){if(L===v&&v===V)return L;var O=Math.abs(v-V),G=Math.abs(L-V),k=Math.abs(L+v-V-V);return O<=G&&O<=k?L:G<=k?v:V},x=function(){return[r,o,p,u,f]},C=function(L){var v=L.map(function(V){return V.reduce(function(O,G){return O+Math.abs(G)},0)});return v.indexOf(Math.min.apply(null,v))};t.processPNG=function(L,v,V,O){var G,k,U,$,he,pe,Le,de,J,ue,Pe,D,B,ee,Y,_e=this.decode.FLATE_DECODE,fe="";if(this.__addimage__.isArrayBuffer(L)&&(L=new Uint8Array(L)),this.__addimage__.isArrayBufferView(L)){if(L=(U=new Fv(L)).imgData,k=U.bits,G=U.colorSpace,he=U.colors,[4,6].indexOf(U.colorType)!==-1){if(U.bits===8){J=(de=U.pixelBitlength==32?new Uint32Array(U.decodePixels().buffer):U.pixelBitlength==16?new Uint16Array(U.decodePixels().buffer):new Uint8Array(U.decodePixels().buffer)).length,Pe=new Uint8Array(J*U.colors),ue=new Uint8Array(J);var xe,le=U.pixelBitlength-U.bits;for(ee=0,Y=0;ee<J;ee++){for(B=de[ee],xe=0;xe<le;)Pe[Y++]=B>>>xe&255,xe+=U.bits;ue[ee]=B>>>xe&255}}if(U.bits===16){J=(de=new Uint32Array(U.decodePixels().buffer)).length,Pe=new Uint8Array(J*(32/U.pixelBitlength)*U.colors),ue=new Uint8Array(J*(32/U.pixelBitlength)),D=U.colors>1,ee=0,Y=0;for(var Ce=0;ee<J;)B=de[ee++],Pe[Y++]=B>>>0&255,D&&(Pe[Y++]=B>>>16&255,B=de[ee++],Pe[Y++]=B>>>0&255),ue[Ce++]=B>>>16&255;k=8}O!==t.image_compression.NONE&&n()?(L=e(Pe,U.width*U.colors,U.colors,O),Le=e(ue,U.width,1,O)):(L=Pe,Le=ue,_e=void 0)}if(U.colorType===3&&(G=this.color_spaces.INDEXED,pe=U.palette,U.transparency.indexed)){var Ae=U.transparency.indexed,$e=0;for(ee=0,J=Ae.length;ee<J;++ee)$e+=Ae[ee];if(($e/=255)===J-1&&Ae.indexOf(0)!==-1)$=[Ae.indexOf(0)];else if($e!==J){for(de=U.decodePixels(),ue=new Uint8Array(de.length),ee=0,J=de.length;ee<J;ee++)ue[ee]=Ae[de[ee]];Le=e(ue,U.width,1)}}var T=function(j){var W;switch(j){case t.image_compression.FAST:W=11;break;case t.image_compression.MEDIUM:W=13;break;case t.image_compression.SLOW:W=14;break;default:W=12}return W}(O);return _e===this.decode.FLATE_DECODE&&(fe="/Predictor "+T+" "),fe+="/Colors "+he+" /BitsPerComponent "+k+" /Columns "+U.width,(this.__addimage__.isArrayBuffer(L)||this.__addimage__.isArrayBufferView(L))&&(L=this.__addimage__.arrayBufferToBinaryString(L)),(Le&&this.__addimage__.isArrayBuffer(Le)||this.__addimage__.isArrayBufferView(Le))&&(Le=this.__addimage__.arrayBufferToBinaryString(Le)),{alias:V,data:L,index:v,filter:_e,decodeParameters:fe,transparency:$,palette:pe,sMask:Le,predictor:T,width:U.width,height:U.height,bitsPerComponent:k,colorSpace:G}}}})(dt.API),function(t){t.processGIF89A=function(n,e,i,r){var o=new Rv(n),p=o.width,u=o.height,f=[];o.decodeAndBlitFrameRGBA(0,f);var _={data:f,width:p,height:u},x=new sd(100).encode(_,100);return t.processJPEG.call(this,x,e,i,r)},t.processGIF87A=t.processGIF89A}(dt.API),ar.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+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var n=0;n<t;n++){var e=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[n]={red:r,green:i,blue:e,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ar.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,n=this.width*this.height*4;this.data=new Uint8Array(n),this[t]()}catch(e){Xt.log("bit decode error:"+e)}},ar.prototype.bit1=function(){var t,n=Math.ceil(this.width/8),e=n%4;for(t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,r=0;r<n;r++)for(var o=this.datav.getUint8(this.pos++,!0),p=i*this.width*4+8*r*4,u=0;u<8&&8*r+u<this.width;u++){var f=this.palette[o>>7-u&1];this.data[p+4*u]=f.blue,this.data[p+4*u+1]=f.green,this.data[p+4*u+2]=f.red,this.data[p+4*u+3]=255}e!==0&&(this.pos+=4-e)}},ar.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),n=t%4,e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,r=0;r<t;r++){var o=this.datav.getUint8(this.pos++,!0),p=i*this.width*4+2*r*4,u=o>>4,f=15&o,_=this.palette[u];if(this.data[p]=_.blue,this.data[p+1]=_.green,this.data[p+2]=_.red,this.data[p+3]=255,2*r+1>=this.width)break;_=this.palette[f],this.data[p+4]=_.blue,this.data[p+4+1]=_.green,this.data[p+4+2]=_.red,this.data[p+4+3]=255}n!==0&&(this.pos+=4-n)}},ar.prototype.bit8=function(){for(var t=this.width%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var r=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*i;
vendor: 4,283 bytes, line 46
46if(r<this.palette.length){var p=this.palette[r];this.data[o]=p.red,this.data[o+1]=p.green,this.data[o+2]=p.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}t!==0&&(this.pos+=4-t)}},ar.prototype.bit15=function(){for(var t=this.width%3,n=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var p=(o&n)/n*255|0,u=(o>>5&n)/n*255|0,f=(o>>10&n)/n*255|0,_=o>>15?255:0,x=i*this.width*4+4*r;this.data[x]=f,this.data[x+1]=u,this.data[x+2]=p,this.data[x+3]=_}this.pos+=t}},ar.prototype.bit16=function(){for(var t=this.width%3,n=parseInt("11111",2),e=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var r=this.bottom_up?i:this.height-1-i,o=0;o<this.width;o++){var p=this.datav.getUint16(this.pos,!0);this.pos+=2;var u=(p&n)/n*255|0,f=(p>>5&e)/e*255|0,_=(p>>11)/n*255|0,x=r*this.width*4+4*o;this.data[x]=_,this.data[x+1]=f,this.data[x+2]=u,this.data[x+3]=255}this.pos+=t}},ar.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),p=n*this.width*4+4*e;this.data[p]=o,this.data[p+1]=r,this.data[p+2]=i,this.data[p+3]=255}this.pos+=this.width%4}},ar.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),p=this.datav.getUint8(this.pos++,!0),u=n*this.width*4+4*e;this.data[u]=o,this.data[u+1]=r,this.data[u+2]=i,this.data[u+3]=p}},ar.prototype.getData=function(){return this.data},function(t){t.processBMP=function(n,e,i,r){var o=new ar(n,!1),p=o.width,u=o.height,f={data:o.getData(),width:p,height:u},_=new sd(100).encode(f,100);return t.processJPEG.call(this,_,e,i,r)}}(dt.API),k1.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(n,e,i,r){var o=new k1(n,!1),p=o.width,u=o.height,f={data:o.getData(),width:p,height:u},_=new sd(100).encode(f,100);return t.processJPEG.call(this,_,e,i,r)}}(dt.API),dt.API.processRGBA=function(t,n,e){for(var i=t.data,r=i.length,o=new Uint8Array(r/4*3),p=new Uint8Array(r/4),u=0,f=0,_=0;_<r;_+=4){var x=i[_],C=i[_+1],L=i[_+2],v=i[_+3];o[u++]=x,o[u++]=C,o[u++]=L,p[f++]=v}var V=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(p),data:V,index:n,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},dt.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"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 (Canad
46a)","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:"North Macedonia",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"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ro=dt.API,dc=Ro.getCharWidthsArray=function(t,n){var e,i,r=(n=n||{}).font||this.internal.getFont(),o=n.fontSize||this.internal.getFontSize(),p=n.charSpace||this.internal.getCharSpace(),u=n.widths?n.widths:r.metadata.Unicode.widths,f=u.fof?u.fof:1,_=n.kerning?n.kerning:r.metadata.Unicode.kerning,x=_.fof?_.fof:1,C=n.doKerning!==!1,L=0,v=t.length,V=0,O=u[0]||f,G=[];for(e=0;e<v;e++)i=t.charCodeAt(e),typeof r.metadata.widthOfString=="function"?G.push((r.metadata.widthOfGlyph(r.metadata.characterToGlyph(i))+p*(1e3/o)||0)/1e3):(L=C&&Yt(_[i])==="object"&&!isNaN(parseInt(_[i][V],10))?_[i][V]/x:0,G.push((u[i]||O)/f+L)),V=i;return G},N1=Ro.getStringUnitWidth=function(t,n){var e=(n=n||{}).fontSize||this.internal.getFontSize(),i=n.font||this.internal.getFont(),r=n.charSpace||this.internal.getCharSpace();return Ro.processArabic&&(t=Ro.processArabic(t)),typeof i.metadata.widthOfString=="function"?i.metadata.widthOfString(t,e,r)/e:dc.apply(this,arguments).reduce(function(o,p){return o+p},0)},E1=function(t,n,e,i){for(var r=[],o=0,p=t.length,u=0;o!==p&&u+n[o]<e;)u+=n[o],o++;r.push(t.slice(0,o));var f=o;for(u=0;o!==p;)u+n[o]>i&&(r.push(t.slice(f,o)),u=0,f=o),u+=n[o],o++;return f!==o&&r.push(t.slice(f,o)),r},L1=function(t,n,e){e||(e={});var i,r,o,p,u,f,_,x=[],C=[x],L=e.textIndent||0,v=0,V=0,O=t.split(" "),G=dc.apply(this,[" ",e])[0];if(f=e.lineIndent===-1?O[0].length+2:e.lineIndent||0){var k=Array(f).join(" "),U=[];O.map(function(he){(he=he.split(/\s*\n/)).length>1?U=U.concat(he.map(function(pe,Le){return(Le&&pe.length?` 47`:"")+pe})):U.push(he[0])}),O=U,f=N1.apply(this,[k,e])}for(o=0,p=O.length;o<p;o++){var $=0;if(i=O[o],f&&i[0]==` 48`&&(i=i.substr(1),$=1),L+v+(V=(r=dc.apply(this,[i,e])).reduce(function(he,pe){return he+pe},0))>n||$){if(V>n){for(u=E1.apply(this,[i,r,n-(L+v),n]),x.push(u.shift()),x=[u.pop()];u.length;)C.push([u.shift()]);V=r.slice(i.length-(x[0]?x[0].length:0)).reduce(function(he,pe){return he+pe},0)}else x=[i];C.push(x),L=V+f,v=G}else x.push(i),L+=v+V,v=G}return _=f?function(he,pe){return(pe?k:"")+he.join(" ")}:function(he){return he.join(" ")},C.map(_)},Ro.splitTextToSize=function(t,n,e){var i,r=(e=e||{}).fontSize||this.internal.getFontSize(),o=function(x){if(x.widths&&x.kerning)return{widths:x.widths,kerning:x.kerning};var C=this.internal.getFont(x.fontName,x.fontStyle);return C.metadata.Unicode?{widths:C.metadata.Unicode.widths||{0:1},kerning:C.metadata.Unicode.kerning||{}}:{font:C.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var p=1*this.internal.scaleFactor*n/r;o.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/r:0,o.lineIndent=e.lineIndent;var u,f,_=[];for(u=0,f=i.length;u<f;u++)_=_.concat(L1.apply(this,[i[u],p,o]));return _},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="klmnopqrstuvwxyz",e={},i={},r=0;r<n.length;r++)e[n[r]]="0123456789abcdef"[r],i["0123456789abcdef"[r]]=n[r];var o=function(C){return"0x"+parseInt(C,10).toString(16)},p=t.__fontmetrics__.compress=function(C){var L,v,V,O,G=["{"];for(var k in C){if(L=C[k],isNaN(parseInt(k,10))?v="'"+k+"'":(k=parseInt(k,10),v=(v=o(k).slice(2)).slice(0,-1)+i[v.slice(-1)]),typeof L=="number")L<0?(V=o(L).slice(3),O="-"):(V=o(L).slice(2),O=""),V=O+V.slice(0,-1)+i[V.slice(-1)];
48else{if(Yt(L)!=="object")throw new Error("Don't know what to do with value type "+Yt(L)+".");V=p(L)}G.push(v+V)}return G.push("}"),G.join("")},u=t.__fontmetrics__.uncompress=function(C){if(typeof C!="string")throw new Error("Invalid argument passed to uncompress.");for(var L,v,V,O,G={},k=1,U=G,$=[],he="",pe="",Le=C.length-1,de=1;de<Le;de+=1)(O=C[de])=="'"?L?(V=L.join(""),L=void 0):L=[]:L?L.push(O):O=="{"?($.push([U,V]),U={},V=void 0):O=="}"?((v=$.pop())[0][v[1]]=U,V=void 0,U=v[0]):O=="-"?k=-1:V===void 0?e.hasOwnProperty(O)?(he+=e[O],V=parseInt(he,16)*k,k=1,he=""):he+=O:e.hasOwnProperty(O)?(pe+=e[O],U[V]=parseInt(pe,16)*k,k=1,V=void 0,pe=""):pe+=O;return G},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},_={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},x={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'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":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
48dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'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:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
48dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
48dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'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}
48fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":u("{'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":u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
48dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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}}}")}};t.events.push(["addFont",function(C){var L=C.font,v=x.Unicode[L.postScriptName];v&&(L.metadata.Unicode={},L.metadata.Unicode.widths=v.widths,L.metadata.Unicode.kerning=v.kerning);var V=_.Unicode[L.postScriptName];V&&(L.metadata.Unicode.encoding=V,L.encoding=V.codePages[0])}])}(dt.API),function(t){var n=function(e){for(var i=e.length,r=new Uint8Array(i),o=0;o<i;o++)r[o]=e.charCodeAt(o);return r};t.API.events.push(["addFont",function(e){var i=void 0,r=e.font,o=e.instance;if(!r.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(i=o.existsFileInVFS(r.postScriptName)===!1?o.loadFile(r.postScriptName):o.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(p,u){u=/^\x00\x01\x00\x00/.test(u)?n(u):n(Ns(u)),p.metadata=t.API.TTFFont.open(u),p.metadata.Unicode=p.metadata.Unicode||{encoding:{},kerning:{},widths:[]},p.metadata.glyIdsUsed=[0]})(r,i)}}])}(dt),function(t){function n(){return(ft.canvg?Promise.resolve(ft.canvg):import("./chunk-ZQABSTGU.js")).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}dt.API.addSvgAsImage=function(e,i,r,o,p,u,f,_){if(isNaN(i)||isNaN(r))throw Xt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(p))throw Xt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var x=document.createElement("canvas");x.width=o,x.height=p;var C=x.getContext("2d");C.fillStyle="#fff",C.fillRect(0,0,x.width,x.height);var L={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},v=this;return n().then(function(V){return V.fromString(C,e,L)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(V){return V.render(L)}).then(function(){v.addImage(x.toDataURL("image/jpeg",1),i,r,o,p,f,_)})}}(),dt.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var r=0;r<this.internal.pages[i].length;r++)this.internal.pages[i][r]=this.internal.pages[i][r].replace(n,e);return this},dt.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var i,r,o,p={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}},u=Object.keys(p),f=[],_=0,x=0,C=0;function L(V,O){var G,k=!1;for(G=0;G<V.length;G+=1)V[G]===O&&(k=!0);return k}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(p)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var v=u.length;for(C=0;C<v;C+=1)e[u[C]].value=e[u[C]].defaultValue,e[u[C]].explicitSet=!1}if(Yt(t)==="object"){for(r in t)if(o=t[r],L(u,r)&&o!==void 0){if(e[r].type==="boolean"&&typeof o=="boolean")e[r].value=o;else if(e[r].type==="name"&&L(e[r].valueSet,o))e[r].value=o;else if(e[r].type==="integer"&&Number.isInteger(o))e[r].value=o;else if(e[r].type==="array"){for(_=0;_<o.length;_+=1)if(i=!0,o[_].length===1&&typeof o[_][0]=="number")f.push(String(o[_]-1));else if(o[_].length>1){for(x=0;x<o[_].length;x+=1)typeof o[_][x]!="number"&&(i=!1);i===!0&&f.push([o[_][0]-1,o[_][1]-1].join(" "))}e[r].value="["+f.join(" ")+"]"}else e[r].value=e[r].defaultValue;e[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var V,O=[];for(V in e)e[V].explicitSet===!0&&(e[V].type==="name"?O.push("/"+V+" /"+e[V].value):O.push("/"+V+" "+e[V].value));O.length!==0&&this.internal.write(`/ViewerPreferences 49<< 50`+O.join(` 51`)+` 52>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(t){var n=function(){var i='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',r=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(i)),p=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),u=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),_=o.length+p.length+u.length+r.length+f.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+_+" >>"),this.internal.write("stream"),this.internal.write(r+o+p+u+f),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(i,r){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:i,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",n)),this}}(dt.API),function(t){var n=t.API,e=n.pdfEscape16=function(o,p){for(var u,f=p.metadata.Unicode.widths,_=["","0","00","000","0000"],x=[""],C=0,L=o.length;C<L;
52++C){if(u=p.metadata.characterToGlyph(o.charCodeAt(C)),p.metadata.glyIdsUsed.push(u),p.metadata.toUnicode[u]=o.charCodeAt(C),f.indexOf(u)==-1&&(f.push(u),f.push([parseInt(p.metadata.widthOfGlyph(u),10)])),u=="0")return x.join("");u=u.toString(16),x.push(_[4-u.length],u)}return x.join("")},i=function(o){var p,u,f,_,x,C,L;for(x=`/CIDInit /ProcSet findresource begin 5312 dict begin 54begincmap 55/CIDSystemInfo << 56 /Registry (Adobe) 57 /Ordering (UCS) 58 /Supplement 0 59>> def 60/CMapName /Adobe-Identity-UCS def 61/CMapType 2 def 621 begincodespacerange 63<0000><ffff> 64endcodespacerange`,f=[],C=0,L=(u=Object.keys(o).sort(function(v,V){return v-V})).length;C<L;C++)p=u[C],f.length>=100&&(x+=` 65`+f.length+` beginbfchar 66`+f.join(` 67`)+` 68endbfchar`,f=[]),o[p]!==void 0&&o[p]!==null&&typeof o[p].toString=="function"&&(_=("0000"+o[p].toString(16)).slice(-4),p=("0000"+(+p).toString(16)).slice(-4),f.push("<"+p+"><"+_+">"));return f.length&&(x+=` 69`+f.length+` beginbfchar 70`+f.join(` 71`)+` 72endbfchar 73`),x+=`endcmap 74CMapName currentdict /CMap defineresource pop 75end 76end`};n.events.push(["putFont",function(o){(function(p){var u=p.font,f=p.out,_=p.newObject,x=p.putStream;if(u.metadata instanceof t.API.TTFFont&&u.encoding==="Identity-H"){for(var C=u.metadata.Unicode.widths,L=u.metadata.subset.encode(u.metadata.glyIdsUsed,1),v="",V=0;V<L.length;V++)v+=String.fromCharCode(L[V]);var O=_();x({data:v,addLength1:!0,objectId:O}),f("endobj");var G=_();x({data:i(u.metadata.toUnicode),addLength1:!0,objectId:G}),f("endobj");var k=_();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+qo(u.fontName)),f("/FontFile2 "+O+" 0 R"),f("/FontBBox "+t.API.PDFObject.convert(u.metadata.bbox)),f("/Flags "+u.metadata.flags),f("/StemV "+u.metadata.stemV),f("/ItalicAngle "+u.metadata.italicAngle),f("/Ascent "+u.metadata.ascender),f("/Descent "+u.metadata.decender),f("/CapHeight "+u.metadata.capHeight),f(">>"),f("endobj");var U=_();f("<<"),f("/Type /Font"),f("/BaseFont /"+qo(u.fontName)),f("/FontDescriptor "+k+" 0 R"),f("/W "+t.API.PDFObject.convert(C)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+u.encoding+")"),f(">>"),f(">>"),f("endobj"),u.objectNumber=_(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+G+" 0 R"),f("/BaseFont /"+qo(u.fontName)),f("/Encoding /"+u.encoding),f("/DescendantFonts ["+U+" 0 R]"),f(">>"),f("endobj"),u.isAlreadyPutted=!0}})(o)}]),n.events.push(["putFont",function(o){(function(p){var u=p.font,f=p.out,_=p.newObject,x=p.putStream;if(u.metadata instanceof t.API.TTFFont&&u.encoding==="WinAnsiEncoding"){for(var C=u.metadata.rawData,L="",v=0;v<C.length;v++)L+=String.fromCharCode(C[v]);var V=_();x({data:L,addLength1:!0,objectId:V}),f("endobj");var O=_();x({data:i(u.metadata.toUnicode),addLength1:!0,objectId:O}),f("endobj");var G=_();f("<<"),f("/Descent "+u.metadata.decender),f("/CapHeight "+u.metadata.capHeight),f("/StemV "+u.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+V+" 0 R"),f("/Flags 96"),f("/FontBBox "+t.API.PDFObject.convert(u.metadata.bbox)),f("/FontName /"+qo(u.fontName)),f("/ItalicAngle "+u.metadata.italicAngle),f("/Ascent "+u.metadata.ascender),f(">>"),f("endobj"),u.objectNumber=_();for(var k=0;k<u.metadata.hmtx.widths.length;k++)u.metadata.hmtx.widths[k]=parseInt(u.metadata.hmtx.widths[k]*(1e3/u.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+O+" 0 R/BaseFont/"+qo(u.fontName)+"/FontDescriptor "+G+" 0 R/Encoding/"+u.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(u.metadata.hmtx.widths)+">>"),f("endobj"),u.isAlreadyPutted=!0}})(o)}]);var r=function(o){var p,u=o.text||"",f=o.x,_=o.y,x=o.options||{},C=o.mutex||{},L=C.pdfEscape,v=C.activeFontKey,V=C.fonts,O=v,G="",k=0,U="",$=V[O].encoding;if(V[O].encoding!=="Identity-H")return{text:u,x:f,y:_,options:x,mutex:C};for(U=u,O=v,Array.isArray(u)&&(U=u[0]),k=0;k<U.length;k+=1)V[O].metadata.hasOwnProperty("cmap")&&(p=V[O].metadata.cmap.unicode.codeMap[U[k].charCodeAt(0)]),p||U[k].charCodeAt(0)<256&&V[O].metadata.hasOwnProperty("Unicode")?G+=U[k]:G+="";var he="";return parseInt(O.slice(1))<14||$==="WinAnsiEncoding"?he=L(G,O).split("").map(function(pe){return pe.charCodeAt(0).toString(16)}).join(""):$==="Identity-H"&&(he=e(G,V[O])),C.isHex=!0,{text:he,x:f,y:_,options:x,mutex:C}};n.events.push(["postProcessText",function(o){var p=o.text||"",u=[],f={text:p,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(p)){var _=0;for(_=0;_<p.length;_+=1)Array.isArray(p[_])&&p[_].length===3?u.push([r(Object.assign({},f,{text:p[_][0]})).text,p[_][1],p[_][2]]):u.push(r(Object.assign({},f,{text:p[_]})).text);o.text=u}else o.text=r(Object.assign({},f,{text:p})).text}])}(dt),function(t){var n=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,i){return n.call(this),this.internal.vFS[e]=i,this},t.getFileFromVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(dt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(i){var r,o,p,u,f,_,x,C=n,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]],v=[[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]],V={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},O={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},G=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],k=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)$/),U=!1,$=0;this.__bidiEngine__={};
76var he=function(D){var B=D.charCodeAt(),ee=B>>8,Y=O[ee];return Y!==void 0?C[256*Y+(255&B)]:ee===252||ee===253?"AL":k.test(ee)?"L":ee===8?"R":"N"},pe=function(D){for(var B,ee=0;ee<D.length;ee++){if((B=he(D.charAt(ee)))==="L")return!1;if(B==="R")return!0}return!1},Le=function(D,B,ee,Y){var _e,fe,xe,le,Ce=B[Y];switch(Ce){case"L":case"R":U=!1;break;case"N":case"AN":break;case"EN":U&&(Ce="AN");break;case"AL":U=!0,Ce="R";break;case"WS":Ce="N";break;case"CS":Y<1||Y+1>=B.length||(_e=ee[Y-1])!=="EN"&&_e!=="AN"||(fe=B[Y+1])!=="EN"&&fe!=="AN"?Ce="N":U&&(fe="AN"),Ce=fe===_e?fe:"N";break;case"ES":Ce=(_e=Y>0?ee[Y-1]:"B")==="EN"&&Y+1<B.length&&B[Y+1]==="EN"?"EN":"N";break;case"ET":if(Y>0&&ee[Y-1]==="EN"){Ce="EN";break}if(U){Ce="N";break}for(xe=Y+1,le=B.length;xe<le&&B[xe]==="ET";)xe++;Ce=xe<le&&B[xe]==="EN"?"EN":"N";break;case"NSM":if(p&&!u){for(le=B.length,xe=Y+1;xe<le&&B[xe]==="NSM";)xe++;if(xe<le){var Ae=D[Y],$e=Ae>=1425&&Ae<=2303||Ae===64286;if(_e=B[xe],$e&&(_e==="R"||_e==="AL")){Ce="R";break}}}Ce=Y<1||(_e=B[Y-1])==="B"?"N":ee[Y-1];break;case"B":U=!1,r=!0,Ce=$;break;case"S":o=!0,Ce="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":U=!1;break;case"BN":Ce="N"}return Ce},de=function(D,B,ee){var Y=D.split("");return ee&&J(Y,ee,{hiLevel:$}),Y.reverse(),B&&B.reverse(),Y.join("")},J=function(D,B,ee){var Y,_e,fe,xe,le,Ce=-1,Ae=D.length,$e=0,T=[],j=$?v:L,W=[];for(U=!1,r=!1,o=!1,_e=0;_e<Ae;_e++)W[_e]=he(D[_e]);for(fe=0;fe<Ae;fe++){if(le=$e,T[fe]=Le(D,W,T,fe),Y=240&($e=j[le][V[T[fe]]]),$e&=15,B[fe]=xe=j[$e][5],Y>0)if(Y===16){for(_e=Ce;_e<fe;_e++)B[_e]=1;Ce=-1}else Ce=-1;if(j[$e][6])Ce===-1&&(Ce=fe);else if(Ce>-1){for(_e=Ce;_e<fe;_e++)B[_e]=xe;Ce=-1}W[fe]==="B"&&(B[fe]=0),ee.hiLevel|=xe}o&&function(X,ne,ce){for(var me=0;me<ce;me++)if(X[me]==="S"){ne[me]=$;for(var ge=me-1;ge>=0&&X[ge]==="WS";ge--)ne[ge]=$}}(W,B,Ae)},ue=function(D,B,ee,Y,_e){if(!(_e.hiLevel<D)){if(D===1&&$===1&&!r)return B.reverse(),void(ee&&ee.reverse());for(var fe,xe,le,Ce,Ae=B.length,$e=0;$e<Ae;){if(Y[$e]>=D){for(le=$e+1;le<Ae&&Y[le]>=D;)le++;for(Ce=$e,xe=le-1;Ce<xe;Ce++,xe--)fe=B[Ce],B[Ce]=B[xe],B[xe]=fe,ee&&(fe=ee[Ce],ee[Ce]=ee[xe],ee[xe]=fe);$e=le}$e++}}},Pe=function(D,B,ee){var Y=D.split(""),_e={hiLevel:$};return ee||(ee=[]),J(Y,ee,_e),function(fe,xe,le){if(le.hiLevel!==0&&x)for(var Ce,Ae=0;Ae<fe.length;Ae++)xe[Ae]===1&&(Ce=G.indexOf(fe[Ae]))>=0&&(fe[Ae]=G[Ce+1])}(Y,ee,_e),ue(2,Y,B,ee,_e),ue(1,Y,B,ee,_e),Y.join("")};return this.__bidiEngine__.doBidiReorder=function(D,B,ee){if(function(_e,fe){if(fe)for(var xe=0;xe<_e.length;xe++)fe[xe]=xe;u===void 0&&(u=pe(_e)),_===void 0&&(_=pe(_e))}(D,B),p||!f||_)if(p&&f&&u^_)$=u?1:0,D=de(D,B,ee);else if(!p&&f&&_)$=u?1:0,D=Pe(D,B,ee),D=de(D,B);else if(!p||u||f||_){if(p&&!f&&u^_)D=de(D,B),u?($=0,D=Pe(D,B,ee)):($=1,D=Pe(D,B,ee),D=de(D,B));else if(p&&u&&!f&&_)$=1,D=Pe(D,B,ee),D=de(D,B);else if(!p&&!f&&u^_){var Y=x;u?($=1,D=Pe(D,B,ee),$=0,x=!1,D=Pe(D,B,ee),x=Y):($=0,D=Pe(D,B,ee),D=de(D,B),$=1,x=!1,D=Pe(D,B,ee),x=Y,D=de(D,B))}}else $=0,D=Pe(D,B,ee);else $=u?1:0,D=Pe(D,B,ee);return D},this.__bidiEngine__.setOptions=function(D){D&&(p=D.isInputVisual,f=D.isOutputVisual,u=D.isInputRtl,_=D.isOutputRtl,x=D.isSymmetricSwapping)},this.__bidiEngine__.setOptions(i),this.__bidiEngine__};var n=["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"],e=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(i){var r=i.text,o=(i.x,i.y,i.options||{}),p=(i.mutex,o.lang,[]);if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,e.setOptions(o),Object.prototype.toString.call(r)==="[object Array]"){var u=0;for(p=[],u=0;u<r.length;u+=1)Object.prototype.toString.call(r[u])==="[object Array]"?p.push([e.doBidiReorder(r[u][0]),r[u][1],r[u][2]]):p.push([e.doBidiReorder(r[u])]);i.text=p}else i.text=e.doBidiReorder(r);e.setOptions({isInputVisual:!0})}])}(dt),dt.API.TTFFont=function(){function t(n){var e;if(this.rawData=n,e=this.contents=new va(n),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Zv(this),this.registerTTF()}return t.open=function(n){return new t(n)},t.prototype.parse=function(){return this.directory=new jv(this.contents),this.head=new Uv(this),this.name=new Gv(this),this.cmap=new H1(this),this.toUnicode={},this.hhea=new Vv(this),this.maxp=new Yv(this),this.hmtx=new Jv(this),this.post=new Wv(this),this.os2=new zv(this),this.loca=new Qv(this),this.glyf=new $v(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]},t.prototype.registerTTF=function(){var n,e,i,r,o;
vendor: 14,339 bytes, line 76
76if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var p,u,f,_;for(_=[],p=0,u=(f=this.bbox).length;p<u;p++)n=f[p],_.push(Math.round(n*this.scaleFactor));return _}.call(this),this.stemV=0,this.post.exists?(i=255&(r=this.post.italic_angle),(32768&(e=r>>16))!=0&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+i)):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=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(n){var e;return((e=this.cmap.unicode)!=null?e.codeMap[n]:void 0)||0},t.prototype.widthOfGlyph=function(n){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(n).advance*e},t.prototype.widthOfString=function(n,e,i){var r,o,p,u;for(p=0,o=0,u=(n=""+n).length;0<=u?o<u:o>u;o=0<=u?++o:--o)r=n.charCodeAt(o),p+=this.widthOfGlyph(this.characterToGlyph(r))+i*(1e3/e)||0;return p*(e/1e3)},t.prototype.lineHeight=function(n,e){var i;return e==null&&(e=!1),i=e?this.lineGap:0,(this.ascender+i-this.decender)/1e3*n},t}();va=function(){function t(n){this.data=n??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(n){return this.data[this.pos++]=n},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(n){return this.writeByte(n>>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt32=function(){var n;return(n=this.readUInt32())>=2147483648?n-4294967296:n},t.prototype.writeInt32=function(n){return n<0&&(n+=4294967296),this.writeUInt32(n)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(n){return this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt16=function(){var n;return(n=this.readUInt16())>=32768?n-65536:n},t.prototype.writeInt16=function(n){return n<0&&(n+=65536),this.writeUInt16(n)},t.prototype.readString=function(n){var e,i;for(i=[],e=0;0<=n?e<n:e>n;e=0<=n?++e:--e)i[e]=String.fromCharCode(this.readByte());return i.join("")},t.prototype.writeString=function(n){var e,i,r;for(r=[],e=0,i=n.length;0<=i?e<i:e>i;e=0<=i?++e:--e)r.push(this.writeByte(n.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(n){return this.writeInt16(n)},t.prototype.readLongLong=function(){var n,e,i,r,o,p,u,f;return n=this.readByte(),e=this.readByte(),i=this.readByte(),r=this.readByte(),o=this.readByte(),p=this.readByte(),u=this.readByte(),f=this.readByte(),128&n?-1*(72057594037927940*(255^n)+281474976710656*(255^e)+1099511627776*(255^i)+4294967296*(255^r)+16777216*(255^o)+65536*(255^p)+256*(255^u)+(255^f)+1):72057594037927940*n+281474976710656*e+1099511627776*i+4294967296*r+16777216*o+65536*p+256*u+f},t.prototype.writeLongLong=function(n){var e,i;return e=Math.floor(n/4294967296),i=4294967295&n,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(n){return this.writeInt32(n)},t.prototype.read=function(n){var e,i;for(e=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)e.push(this.readByte());return e},t.prototype.write=function(n){var e,i,r,o;for(o=[],i=0,r=n.length;i<r;i++)e=n[i],o.push(this.writeByte(e));return o},t}(),jv=function(){var t;function n(e){var i,r,o;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},r=0,o=this.tableCount;0<=o?r<o:r>o;r=0<=o?++r:--r)i={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[i.tag]=i}return n.prototype.encode=function(e){var i,r,o,p,u,f,_,x,C,L,v,V,O;for(O in v=Object.keys(e).length,f=Math.log(2),C=16*Math.floor(Math.log(v)/f),p=Math.floor(C/f),x=16*v-C,(r=new va).writeInt(this.scalarType),r.writeShort(v),r.writeShort(C),r.writeShort(p),r.writeShort(x),o=16*v,_=r.pos+o,u=null,V=[],e)for(L=e[O],r.writeString(O),r.writeInt(t(L)),r.writeInt(_),r.writeInt(L.length),V=V.concat(L),O==="head"&&(u=_),_+=L.length;_%4;)V.push(0),_++;return r.write(V),i=2981146554-t(r.data),r.pos=u+8,r.writeUInt32(i),r.data},t=function(e){var i,r,o,p;for(e=G1.call(e);e.length%4;)e.push(0);for(o=new va(e),r=0,i=0,p=e.length;i<p;i=i+=4)r+=o.readUInt32();return 4294967295&r},n}(),qv={}.hasOwnProperty,Ir=function(t,n){for(var e in n)qv.call(n,e)&&(t[e]=n[e]);function i(){this.constructor=t}return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};sr=function(){function t(n){var e;this.file=n,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();Uv=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="head",n.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},n.prototype.encode=function(e){var i;return(i=new va).writeInt(this.version),i.writeInt(this.revision),i.writeInt(this.checkSumAdjustment),i.writeInt(this.magicNumber),i.writeShort(this.flags),i.writeShort(this.unitsPerEm),i.writeLongLong(this.created),i.writeLongLong(this.modified),i.writeShort(this.xMin),i.writeShort(this.yMin),i.writeShort(this.xMax),i.writeShort(this.yMax),i.writeShort(this.macStyle),i.writeShort(this.lowestRecPPEM),i.writeShort(this.fontDirectionHint),i.writeShort(e),i.writeShort(this.glyphDataFormat),i.data},n}(),D1=function(){function t(n,e){var i,r,o,p,u,f,_,x,C,L,v,V,O,G,k,U,$;switch(this.platformID=n.readUInt16(),this.encodingID=n.readShort(),this.offset=e+n.readInt(),C=n.pos,n.pos=this.offset,this.format=n.readUInt16(),this.length=n.readUInt16(),this.language=n.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(f=0;f<256;++f)this.codeMap[f]=n.readByte();break;case 4:for(v=n.readUInt16(),L=v/2,n.pos+=6,o=function(){var he,pe;for(pe=[],f=he=0;0<=L?he<L:he>L;f=0<=L?++he:--he)pe.push(n.readUInt16());return pe}(),n.pos+=2,O=function(){var he,pe;for(pe=[],f=he=0;0<=L?he<L:he>L;f=0<=L?++he:--he)pe.push(n.readUInt16());return pe}(),_=function(){var he,pe;for(pe=[],f=he=0;0<=L?he<L:he>L;f=0<=L?++he:--he)pe.push(n.readUInt16());return pe}(),x=function(){var he,pe;for(pe=[],f=he=0;0<=L?he<L:he>L;f=0<=L?++he:--he)pe.push(n.readUInt16());return pe}(),r=(this.length-n.pos+this.offset)/2,u=function(){var he,pe;for(pe=[],f=he=0;0<=r?he<r:he>r;f=0<=r?++he:--he)pe.push(n.readUInt16());return pe}(),f=k=0,$=o.length;k<$;f=++k)for(G=o[f],i=U=V=O[f];V<=G?U<=G:U>=G;i=V<=G?++U:--U)x[f]===0?p=i+_[f]:(p=u[x[f]/2+(i-V)-(L-f)]||0)!==0&&(p+=_[f]),this.codeMap[i]=65535&p}n.pos=C}return t.encode=function(n,e){var i,r,o,p,u,f,_,x,C,L,v,V,O,G,k,U,$,he,pe,Le,de,J,ue,Pe,D,B,ee,Y,_e,fe,xe,le,Ce,Ae,$e,T,j,W,X,ne,ce,me,ge,je,Oe,Ye;switch(Y=new va,p=Object.keys(n).sort(function(We,ut){return We-ut}),e){case"macroman":for(O=0,G=function(){var We=[];for(V=0;V<256;++V)We.push(0);return We}(),U={0:0},o={},_e=0,Ce=p.length;_e<Ce;_e++)U[ge=n[r=p[_e]]]==null&&(U[ge]=++O),o[r]={old:n[r],new:U[n[r]]},G[r]=U[n[r]];return Y.writeUInt16(1),Y.writeUInt16(0),Y.writeUInt32(12),Y.writeUInt16(0),Y.writeUInt16(262),Y.writeUInt16(0),Y.write(G),{charMap:o,subtable:Y.data,maxGlyphID:O+1};case"unicode":for(B=[],C=[],$=0,U={},i={},k=_=null,fe=0,Ae=p.length;fe<Ae;fe++)U[pe=n[r=p[fe]]]==null&&(U[pe]=++$),i[r]={old:pe,new:U[pe]},u=U[pe]-r,k!=null&&u===_||(k&&C.push(k),B.push(r),_=u),k=r;for(k&&C.push(k),C.push(65535),B.push(65535),Pe=2*(ue=B.length),J=2*Math.pow(Math.log(ue)/Math.LN2,2),L=Math.log(J/2)/Math.LN2,de=2*ue-J,f=[],Le=[],v=[],V=xe=0,$e=B.length;xe<$e;V=++xe){if(D=B[V],x=C[V],D===65535){f.push(0),Le.push(0);break}if(D-(ee=i[D].new)>=32768)for(f.push(0),Le.push(2*(v.length+ue-V)),r=le=D;D<=x?le<=x:le>=x;r=D<=x?++le:--le)v.push(i[r].new);else f.push(ee-D),Le.push(0)}for(Y.writeUInt16(3),Y.writeUInt16(1),Y.writeUInt32(12),Y.writeUInt16(4),Y.writeUInt16(16+8*ue+2*v.length),Y.writeUInt16(0),Y.writeUInt16(Pe),Y.writeUInt16(J),Y.writeUInt16(L),Y.writeUInt16(de),ce=0,T=C.length;ce<T;ce++)r=C[ce],Y.writeUInt16(r);for(Y.writeUInt16(0),me=0,j=B.length;me<j;me++)r=B[me],Y.writeUInt16(r);for(je=0,W=f.length;je<W;je++)u=f[je],Y.writeUInt16(u);for(Oe=0,X=Le.length;Oe<X;Oe++)he=Le[Oe],Y.writeUInt16(he);for(Ye=0,ne=v.length;Ye<ne;Ye++)O=v[Ye],Y.writeUInt16(O);return{charMap:i,subtable:Y.data,maxGlyphID:$+1}}},t}(),H1=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="cmap",n.prototype.parse=function(e){var i,r,o;for(e.pos=this.offset,this.version=e.readUInt16(),o=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=o?r<o:r>o;r=0<=o?++r:--r)i=new D1(e,this.offset),this.tables.push(i),i.isUnicode&&this.unicode==null&&(this.unicode=i);return!0},n.encode=function(e,i){var r,o;return i==null&&(i="macroman"),r=D1.encode(e,i),(o=new va).writeUInt16(0),o.writeUInt16(1),r.table=o.data.concat(r.subtable),r},n}(),Vv=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="hhea",n.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},n}(),zv=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="OS/2",n.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var i,r;for(r=[],i=0;i<10;++i)r.push(e.readByte());return r}(),this.charRange=function(){var i,r;for(r=[],i=0;i<4;++i)r.push(e.readInt());return r}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var i,r;for(r=[],i=0;i<2;i=++i)r.push(e.readInt());return r}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},n}(),Wv=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="post",n.prototype.parse=function(e){var i,r,o;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var p;for(r=e.readUInt16(),this.glyphNameIndex=[],p=0;0<=r?p<r:p>r;p=0<=r?++p:--p)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],o=[];e.pos<this.offset+this.length;)i=e.readByte(),o.push(this.names.push(e.readString(i)));return o;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 196608:break;case 262144:return this.map=function(){var u,f,_;for(_=[],p=u=0,f=this.file.maxp.numGlyphs;0<=f?u<f:u>f;p=0<=f?++u:--u)_.push(e.readUInt32());return _}.call(this)}},n}(),Hv=function(t,n){this.raw=t,this.length=t.length,this.platformID=n.platformID,this.encodingID=n.encodingID,this.languageID=n.languageID},Gv=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="name",n.prototype.parse=function(e){var i,r,o,p,u,f,_,x,C,L,v;for(e.pos=this.offset,e.readShort(),i=e.readShort(),f=e.readShort(),r=[],p=0;0<=i?p<i:p>i;p=0<=i?++p:--p)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+f+e.readShort()});for(_={},p=C=0,L=r.length;C<L;p=++C)o=r[p],e.pos=o.offset,x=e.readString(o.length),u=new Hv(x,o),_[v=o.nameID]==null&&(_[v]=[]),_[o.nameID].push(u);this.strings=_,this.copyright=_[0],this.fontFamily=_[1],this.fontSubfam
vendor: 4,168 bytes, line 76
76ily=_[2],this.uniqueSubfamily=_[3],this.fontName=_[4],this.version=_[5];try{this.postscriptName=_[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=_[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=_[7],this.manufacturer=_[8],this.designer=_[9],this.description=_[10],this.vendorUrl=_[11],this.designerUrl=_[12],this.license=_[13],this.licenseUrl=_[14],this.preferredFamily=_[15],this.preferredSubfamily=_[17],this.compatibleFull=_[18],this.sampleText=_[19]},n}(),Yv=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="maxp",n.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},n}(),Jv=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="hmtx",n.prototype.parse=function(e){var i,r,o,p,u,f,_;for(e.pos=this.offset,this.metrics=[],i=0,f=this.file.hhea.numberOfMetrics;0<=f?i<f:i>f;i=0<=f?++i:--i)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var x,C;for(C=[],i=x=0;0<=o?x<o:x>o;i=0<=o?++x:--x)C.push(e.readInt16());return C}(),this.widths=function(){var x,C,L,v;for(v=[],x=0,C=(L=this.metrics).length;x<C;x++)p=L[x],v.push(p.advance);return v}.call(this),r=this.widths[this.widths.length-1],_=[],i=u=0;0<=o?u<o:u>o;i=0<=o?++u:--u)_.push(this.widths.push(r));return _},n.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},n}(),G1=[].slice,$v=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(e){var i,r,o,p,u,f,_,x,C,L;return e in this.cache?this.cache[e]:(p=this.file.loca,i=this.file.contents,r=p.indexOf(e),(o=p.lengthOf(e))===0?this.cache[e]=null:(i.pos=this.offset+r,u=(f=new va(i.read(o))).readShort(),x=f.readShort(),L=f.readShort(),_=f.readShort(),C=f.readShort(),this.cache[e]=u===-1?new Xv(f,x,L,_,C):new Kv(f,u,x,L,_,C),this.cache[e]))},n.prototype.encode=function(e,i,r){var o,p,u,f,_;for(u=[],p=[],f=0,_=i.length;f<_;f++)o=e[i[f]],p.push(u.length),o&&(u=u.concat(o.encode(r)));return p.push(u.length),{table:u,offsets:p}},n}(),Kv=function(){function t(n,e,i,r,o,p){this.raw=n,this.numberOfContours=e,this.xMin=i,this.yMin=r,this.xMax=o,this.yMax=p,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Xv=function(){function t(n,e,i,r,o){var p,u;for(this.raw=n,this.xMin=e,this.yMin=i,this.xMax=r,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],p=this.raw;u=p.readShort(),this.glyphOffsets.push(p.pos),this.glyphIDs.push(p.readUInt16()),32&u;)p.pos+=1&u?4:2,128&u?p.pos+=8:64&u?p.pos+=4:8&u&&(p.pos+=2)}return t.prototype.encode=function(){var n,e,i;for(e=new va(G1.call(this.raw.data)),n=0,i=this.glyphIDs.length;n<i;++n)e.pos=this.glyphOffsets[n];return e.data},t}(),Qv=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return Ir(n,sr),n.prototype.tag="loca",n.prototype.parse=function(e){var i,r;return e.pos=this.offset,i=this.file.head.indexToLocFormat,this.offsets=i===0?function(){var o,p;for(p=[],r=0,o=this.length;r<o;r+=2)p.push(2*e.readUInt16());return p}.call(this):function(){var o,p;for(p=[],r=0,o=this.length;r<o;r+=4)p.push(e.readUInt32());return p}.call(this)},n.prototype.indexOf=function(e){return this.offsets[e]},n.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]}
76,n.prototype.encode=function(e,i){for(var r=new Uint32Array(this.offsets.length),o=0,p=0,u=0;u<r.length;++u)if(r[u]=o,p<i.length&&i[p]==u){++p,r[u]=o;var f=this.offsets[u],_=this.offsets[u+1]-f;_>0&&(o+=_)}for(var x=new Array(4*r.length),C=0;C<r.length;++C)x[4*C+3]=255&r[C],x[4*C+2]=(65280&r[C])>>8,x[4*C+1]=(16711680&r[C])>>16,x[4*C]=(4278190080&r[C])>>24;return x},n}(),Zv=function(){function t(n){this.font=n,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var n,e,i,r,o;for(e in r=this.font.cmap.tables[0].codeMap,n={},o=this.subset)i=o[e],n[e]=r[i];return n},t.prototype.glyphsFor=function(n){var e,i,r,o,p,u,f;for(r={},p=0,u=n.length;p<u;p++)r[o=n[p]]=this.font.glyf.glyphFor(o);for(o in e=[],r)(i=r[o])!=null&&i.compound&&e.push.apply(e,i.glyphIDs);if(e.length>0)for(o in f=this.glyphsFor(e))i=f[o],r[o]=i;return r},t.prototype.encode=function(n,e){var i,r,o,p,u,f,_,x,C,L,v,V,O,G,k;for(r in i=H1.encode(this.generateCmap(),"unicode"),p=this.glyphsFor(n),v={0:0},k=i.charMap)v[(f=k[r]).old]=f.new;for(V in L=i.maxGlyphID,p)V in v||(v[V]=L++);return x=function(U){var $,he;for($ in he={},U)he[U[$]]=$;return he}(v),C=Object.keys(x).sort(function(U,$){return U-$}),O=function(){var U,$,he;for(he=[],U=0,$=C.length;U<$;U++)u=C[U],he.push(x[u]);return he}(),o=this.font.glyf.encode(p,O,v),_=this.font.loca.encode(o.offsets,O),G={cmap:this.font.cmap.raw(),glyf:o.table,loca:_,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(e)},this.font.os2.exists&&(G["OS/2"]=this.font.os2.raw()),this.font.directory.encode(G)},t}();dt.API.PDFObject=function(){var t;function n(){}return t=function(e,i){return(Array(i+1).join("0")+e).slice(-i)},n.convert=function(e){var i,r,o,p;if(Array.isArray(e))return"["+function(){var u,f,_;for(_=[],u=0,f=e.length;u<f;u++)i=e[u],_.push(n.convert(i));return _}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e?.isString)return"("+e+")";if(e instanceof Date)return"(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(r in o=["<<"],e)p=e[r],o.push("/"+r+" "+n.convert(p));return o.push(">>"),o.join(` 77`)}return""+e},n}();Y1=dt});function e_(t,n){if(t&1&&(g(0,"a",25),w(1,"translate"),A(2),w(3,"translate"),h()),t&2){let e=z();S("href",e.feedbackUrl,Zn)("title",N(1,4,"terminationConfirmation.feedbackTextTooltip"))("target",e.isHybrid?void 0:"_blank"),c(2),ke(N(3,6,"terminationConfirmation.feedbackText"))}}function t_(t,n){if(t&1&&(g(0,"div",26)(1,"div",27)(2,"h3",28),A(3),w(4,"translate"),h(),g(5,"table",29)(6,"tbody")(7,"tr")(8,"td",30),A(9),w(10,"translate"),h(),g(11,"td",31),A(12),h()(),g(13,"tr")(14,"td",32),A(15),w(16,"translate"),h(),g(17,"td",33),A(18),h()(),g(19,"tr")(20,"td",32),A(21),w(22,"translate"),h(),g(23,"td",33),A(24),h()(),g(25,"tr")(26,"td",32),A(27),w(28,"translate"),h(),g(29,"td",33),A(30),h()(),g(31,"tr")(32,"td",32),A(33),w(34,"translate"),h(),g(35,"td",33),A(36),h()(),g(37,"tr")(38,"td",32),A(39),w(40,"translate"),h(),g(41,"td",33),A(42),h()(),g(43,"tr")(44,"td",32),A(45),w(46,"translate"),h(),g(47,"td",33),A(48),h()(),g(49,"tr")(50,"td",32),A(51),w(52,"translate"),h(),g(53,"td",33),A(54),h()(),g(55,"tr")(56,"td",32),A(57),w(58,"translate"),h(),g(59,"td",33),A(60),h()(),g(61,"tr")(62,"td",32),A(63),w(64,"translate"),h(),g(65,"td",33),A(66),w(67,"translate"),h()()()()()()),t&2){let e=z();c(3),R(" ",N(4,25,"terminationConfirmation.header")," "),c(6),R(" ",N(10,27,"terminationConfirmation.labelLocation")," "),c(3),fp(" ",e.subscription==null||e.subscription.address==null?null:e.subscription.address.route," ",e.subscription==null||e.subscription.address==null?null:e.subscription.address.streetNumber,", ",e.subscription==null||e.subscription.address==null?null:e.subscription.address.postalCode," ",e.subscription==null||e.subscription.address==null?null:e.subscription.address.locality," "),c(3),ke(N(16,29,"terminationConfirmation.labelPerson")),c(3),Bn(" ",e.profileService.profile==null?null:e.profileService.profile.firstName," ",e.profileService.profile==null?null:e.profileService.profile.lastName," "),c(3),ke(N(22,31,"terminationConfirmation.labelEmail")),c(3),R(" ",e.authService.loginDetail
77s==null?null:e.authService.loginDetails.email," "),c(3),R(" ",N(28,33,"terminationConfirmation.labelTerminationDate")," "),c(3),ke(e.confirmation.terminationDate),c(3),R(" ",N(34,35,"terminationConfirmation.labelContractName")," "),c(3),ke(e.confirmation.contractName),c(3),R(" ",N(40,37,"terminationConfirmation.labelBillingId")," "),c(3),ke(e.confirmation.billingId),c(3),R(" ",N(46,39,"terminationConfirmation.labelMeterNumber")," "),c(3),ke(e.confirmation.meterNumber),c(3),ke(N(52,41,"terminationConfirmation.labelDate")),c(3),ke(e.confirmation.date),c(3),ke(N(58,43,"terminationConfirmation.labelTime")),c(3),ke(e.confirmation.time),c(3),ke(N(64,45,"terminationConfirmation.labelReason")),c(3),R(" ",N(67,47,"customerTerminationReason."+e.confirmation.terminationReason)," ")}}function i_(t,n){if(t&1){let e=Ze();g(0,"a",38),w(1,"translate"),De("click",function(){Fe(e);let r=z(3);return Re(r.print())}),ve(2,"cp-icon-print",39),A(3),w(4,"translate"),h()}t&2&&(S("title",N(1,5,"terminationConfirmation.labelPrintTooltip")),c(2),tt("print mr-2"),S("viewBox","0 0 48 48"),c(),ke(N(4,7,"terminationConfirmation.labelPrint")))}function n_(t,n){if(t&1){let e=Ze();g(0,"div",11),ae(1,i_,5,9,"a",36),g(2,"a",37),w(3,"translate"),De("click",function(){Fe(e);let r=z(2);return Re(r.saveCancellationDesktop())}),ve(4,"cp-icon-download"),A(5),w(6,"translate"),h()()}if(t&2){let e=z(2);c(),S("ngIf",!e.isHybrid),c(),S("title",N(3,5,"terminationConfirmation.labelDownloadPDFTooltip")),c(2),tt("pdf-download mr-2"),c(),R("",N(6,7,"terminationConfirmation.labelDownloadPDF")," ")}}function r_(t,n){if(t&1){let e=Ze();qe(0),g(1,"div",41),A(2),w(3,"translate"),h(),g(4,"a",42),De("click",function(){Fe(e);let r=z(3);return Re(r.saveCancellationMobile())}),ve(5,"cp-icon-download"),A(6),w(7,"translate"),h(),Ue()}t&2&&(c(2),R(" ",N(3,4,"terminationConfirmation.mobileDeviceNote")," "),c(3),tt("mobile-screenshot mr-2"),c(),R(" ",N(7,6,"terminationConfirmation.mobileSaveCancellationDetails")," "))}function a_(t,n){t&1&&(qe(0),g(1,"div",43),A(2),w(3,"translate"),h(),Ue()),t&2&&(c(2),R(" ",N(3,1,"terminationConfirmation.mobileOpenCancellation")," "))}function o_(t,n){if(t&1){let e=Ze();g(0,"div",44),A(1),w(2,"translate"),h(),g(3,"a",42),De("click",function(){Fe(e);let r=z(4);return Re(r.saveCancellationMobile())}),ve(4,"cp-icon-download"),A(5),w(6,"translate"),h()}t&2&&(c(),R(" ",N(2,4,"terminationConfirmation.mobileSaveErrorAlert")," "),c(3),tt("mobile-screenshot mr-2"),c(),R(" ",N(6,6,"terminationConfirmation.mobileSaveCancellationDetails")," "))}function s_(t,n){if(t&1&&ae(0,a_,4,3,"ng-container",40)(1,o_,7,8,"ng-template",null,2,Ui),t&2){let e=Lt(2),i=z(3);S("ngIf",!i.screenshotSavedError)("ngIfElse",e)}}function l_(t,n){if(t&1&&ae(0,r_,8,8,"ng-container",40)(1,s_,3,2,"ng-template",null,1,Ui),t&2){let e=Lt(2),i=z(2);S("ngIf",!i.screenshotSaved)("ngIfElse",e)}}function c_(t,n){if(t&1&&(g(0,"div",34),ae(1,n_,7,9,"div",35)(2,l_,3,2,"ng-template",null,0,Ui),h()),t&2){let e=Lt(3),i=z();c(),S("ngIf",!i.isHybrid)("ngIfElse",e)}}var hd,yc,gd,$1=Nt(()=>{st();t1();Rf();n1();si();yr();It();hd=cp(Zf());J1();yc=cp(Wf());st();Di();ti();Ti();Rn();It();gd=(()=>{class t{constructor(){this.terminationService=ye(Ra),this.subscriptionService=ye(Bi),this.profileService=ye(vn),this.authService=ye(Un),this.translatePipe=ye(Je),this.isHybrid=bi.hybridEnabled,this.screenshotSaved=!1,this.screenshotSavedError=!1,this.fileType="image/png",this.cancellationContainer="termination-confirmation-table"}ngOnInit(){this.terminationOuid=this.terminationService.getTerminationOuid(),this.terminationReasonKey=this.terminationService.getTerminationReasonKey(),this.terminationDate=this.terminationService.getTerminationDate(),this.feedbackUrl=this.getFeedbackUrl(),this.terminationOuid&&this.subscriptionService.getMyServiceBySubscriptionOuid(this.terminationOuid).subscribe(e=>{this.subscription=e,this.terminationConfirmation()})}print(){window.print()}saveCancellationDesktop(){(0,hd.default)(document.getElementById(this.cancellationContainer)).then(e=>{let r=150*(e.height/e.width),o=new Y1("p","mm","a4");o.addImage(e.toDataURL(this.fileType),"PNG",10,10,150,r),o.save(this.fileName+".pdf")})}saveCancellationMobile(){return nt(this,null,function*(){(0,hd.default)(document.getElementById(this.cancellationContainer)).then(e=>{let i=e.toDataURL(this.fileType).toString();i1.writeFile({path:this.fileName+".png",data:i,directory:bu.Documents}).then(r=>nt(this,null,function*(){yield e1.savePhoto({path:r.uri}).then(()=>this.cancellationSaved()).catch(o=>nt(this,null,function*(){return yield this.cancellationAlert(o)}))}))})})}cancellationSaved(){this.screenshotSaved=!0,alert(this.getMobileSaveSuccessAlert())}terminationConfirmation(){this.fileName=this.getFileName();let e=new Date;this.confirmation={date:(0,yc.default)(e).format("DD.MM.YYYY"),time:(0,yc.default)(e).format("HH:mm"),terminationReason:this.terminationReasonKey,meterNumber:this.subscription.meterNumber,billingId:this.subscription.billingId,terminationDate:(0,yc.default)(Number(this.terminationDate)).format("DD.MM.YYYY"),contractName:this.subscription.productOverview.displayName}}getFeedbackUrl(){return this.translatePipe.transform("terminationConfirmation.feedbackUrl")}getMobileSaveSuccessAlert(){return this.translatePipe.transform("terminationConfirmation.mobileSaveSuccessAlert")}getFileName(){return this.translatePipe.transform("terminationConfirmation.cancellationFileName")}cancellationAlert(e){return nt(this,null,function*(){let i=yield this.retrievePlatform();i==="ios"?(this.screenshotSavedError=!0,alert(e)):i==="android"&&this.cancellationSaved()})}retrievePlatform(){return nt(this,null,function*(){return(yield s0.getInfo()).platform==="ios"?"ios":"android"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ct({type:t,selectors:[["cp-terminate-success-page"]],standalone:!1,decls:39,vars:31,consts:[["hybridNotice",""],["screenshotSavedNotice",""],["screenshotSavedSuccess",""],[1,"activity-log","container"],[1,"sub-header"],[1,"row","align-items-center"],[1,"col-12","col-md-6","text-left"],["ng-reflect-class-name","sub-header__heading ",1,"sub-header__heading"],[1,"col-12","col-md-6","c-brand-purple","address-align"],[1,"signup-energy-requirements","text-center"],[1,"row","justify-content-center","termination-confirmation-email"],[1,"col-sm-12","col-lg-5"],[1,"gradient-icon"],[3,"width","height","viewBox"],[1,"c-brand-purple","text-center"],[1,"c-brand-purple","semi-bold"],[1,"row","justify-content-center","termination-confirmation-feedback","mb-4"],["class","c-brand-purple mr-4",3,"href","title","target",4,"ngIf"],["class","row justify-content-center termination-confirmation-detail
77s",4,"ngIf"],["class","row justify-content-center termination-confirmation-cta text-left mt-4",4,"ngIf"],[1,"signup-navigation"],[1,"col-6","text-left"],["routerLink","/profil/meine-services",1,"btn","btn-secondary"],[1,"col-6","text-right"],[3,"hideCardShowButton","serviceType","addressIndex"],[1,"c-brand-purple","mr-4",3,"href","title","target"],[1,"row","justify-content-center","termination-confirmation-details"],["id","termination-confirmation-table",1,"col-sm-12","col-lg-5"],[1,"c-brand-purple","mt-4","text-left"],[1,"mt-4"],[1,"description","location"],[1,"details","location"],[1,"description"],[1,"details"],[1,"row","justify-content-center","termination-confirmation-cta","text-left","mt-4"],["class","col-sm-12 col-lg-5",4,"ngIf","ngIfElse"],["class","c-brand-purple mr-4",3,"title","click",4,"ngIf"],[1,"c-brand-purple",3,"click","title"],[1,"c-brand-purple","mr-4",3,"click","title"],[3,"viewBox"],[4,"ngIf","ngIfElse"],[1,"col-sm-12","col-lg-5","mb-4"],[1,"c-brand-purple","text-left","d-block","mt-3","ml-3","width-100",3,"click"],[1,"col-sm-12","col-lg-5","c-positive"],[1,"col-sm-12","col-lg-5","c-negative"]],template:function(i,r){i&1&&(g(0,"section",3)(1,"header",4)(2,"div",5)(3,"div",6)(4,"h2",7),A(5),w(6,"translate"),h()(),g(7,"div",8),A(8),h()()(),g(9,"section",9)(10,"div",10)(11,"div",11)(12,"div",12),ve(13,"cp-icon-tick-circle-gradient",13),h(),g(14,"h1",14),A(15),w(16,"translate"),h(),g(17,"p"),A(18),w(19,"translate"),h(),g(20,"p",15),A(21),h(),g(22,"p"),A(23),w(24,"translate"),h()()(),g(25,"div",16)(26,"div",11),ve(27,"cp-icon-feedback"),ae(28,e_,4,8,"a",17),h()(),ae(29,t_,68,49,"div",18)(30,c_,4,2,"div",19),h(),g(31,"nav",20)(32,"div",5)(33,"div",21)(34,"a",22),A(35),w(36,"translate"),h()(),g(37,"div",23),ve(38,"cp-add-service-button",24),h()()()()),i&2&&(c(5),R(" ",N(6,21,"terminateService.terminateSuccessTitle")," "),c(3),fp(" ",r.subscription==null||r.subscription.address==null?null:r.subscription.address.route," ",r.subscription==null||r.subscription.address==null?null:r.subscription.address.streetNumber,", ",r.subscription==null||r.subscription.address==null?null:r.subscription.address.postalCode," ",r.subscription==null||r.subscription.address==null?null:r.subscription.address.locality," "),c(5),tt("terminate-success"),S("width",50)("height",50)("viewBox","0 0 70 70"),c(2),R(" ",N(16,23,"profileCancel.request.title")," "),c(3),R(" ",N(19,25,"profileCancel.request.copy")," "),c(3),R(" ",r.authService.loginDetails==null?null:r.authService.loginDetails.email," "),c(2),R(" ",N(24,27,"profileCancel.request.updates")," "),c(5),S("ngIf",r.feedbackUrl),c(),S("ngIf",r.confirmation),c(),S("ngIf",r.confirmation),c(5),R(" ",N(36,29,"myProfile.myServices.backToContracts")," "),c(3),S("hideCardShowButton",!0)("serviceType","")("addressIndex",null))},dependencies:[wr,St,No,O0,U0,To,Rl,Je],encapsulation:2})}}return t})()});var bc=Nt(()=>{bc();Du();Bu();Ou();ju();qu();Uu();Wu();Hu();Gu();Ju();$u();Xu();Qu();$1()});var p_,K1,X1=Nt(()=>{Di();So();Vf();bc();Hf();st();p_=[{path:"",children:[{path:"",pathMatch:"full",redirectTo:"profil-daten"},{path:"profil-daten",canActivate:[on,an],component:Dp,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL,animation:"ProfileData",hybridHeaderBackTarget:Cs}},{path:"meine-services",canActivate:[on,an],component:Vp,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL,animation:"ProfileServices",hybridHeaderBackTarget:Cs}},{path:"bonus",canActivate:[on,an],component:Bp,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL}},{path:"service-kuendigen",canActivate:[on,an],component:Gp,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL}},{path:"vertrag-wechseln",canActivate:[on,an],component:Op,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL}},{path:"vertrag-wechseln/bestaetigen",canActivate:[on,an],component:Rp,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL}},{path:"vertrag-wechseln/bestaetigung",canActivate:[on,an],component:Wp,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL}},{path:"kuendigungsbestaetigung",canActivate:[on,an],component:gd,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL}},{path:"tarif-informationen/:id",canActivate:[on,an],component:Hp,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL}},{path:"ziehen-um",canActivate:[on,an],component:qp,data:{navbar:rn.CUSTOMER_PORTAL}},{path:"bewegender-erfolg",canActivate:[on,an],component:Up,data:{navbar:rn.CUSTOMER_PORTAL}},{path:"communications",canActivate:[on,an],component:Fp,data:{navbar:rn.CUSTOMER_PORTAL,animation:"ProfileCommunications",hybridHeaderBackTarget:Cs}},{path:"zahlungsart/inactive",canActivate:[on,an],component:jp,data:{navbar:rn.CUSTOMER_PORTAL}},{path:"zahlungsart",canActivate:[on,an],component:zp,pathMatch:"full",data:{navbar:rn.CUSTOMER_PORTAL,animation:"ProfilePaymentTypes",hybridHeaderBackTarget:Cs}}]}],K1=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=xl({type:t})}static{this.\u0275inj=bl({imports:[yp.forChild(p_),yp]})}}return t})()});var tw,d_=Nt(()=>{ti();tr();zf();Ur();qa();X1();bc();la();X0();vu();du();st();tw=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=xl({type:t})}static{this.\u0275inj=bl({providers:[ec],imports:[K1,S0,r0,K0,J0,Yl,P0,V0,tc]})}}return t})()});d_();export{tw as MyProfileModule};
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.